|
|
|
@ -68,7 +68,7 @@ public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPosition |
|
|
|
String userId = SecurityUser.getUser().getId().toString(); |
|
|
|
IPage<SubPositionCheckInfoDTO> page = getPage(params); |
|
|
|
List<SubPositionCheckInfoDTO> list = baseDao.getSubPositionList(params); |
|
|
|
//设置删除按钮展示权限:自己只能删自己的,状态为已提交的
|
|
|
|
//设置删除、修改 按钮展示权限:自己只能删自己的,状态为已提交的
|
|
|
|
for(SubPositionCheckInfoDTO spc : list){ |
|
|
|
if (StringUtils.isNotBlank(spc.getCreatedBy()) && spc.getCreatedBy().equals(userId) && "1".equals(spc.getStatus())){ |
|
|
|
spc.setDelShow(true); |
|
|
|
@ -134,6 +134,7 @@ public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPosition |
|
|
|
entity.setApprovalTime(dateToString(new Date())); |
|
|
|
updateById(entity); |
|
|
|
//添加初审记录信息
|
|
|
|
dto.setFlag(1); |
|
|
|
subAuditRecordsLogService.addFirstTrialRecords(dto); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
@ -149,4 +150,21 @@ public class SubPositionCheckInfoServiceImpl extends BaseServiceImpl<SubPosition |
|
|
|
return sdf.format(date); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Result acceptance(FirstTrialFormDTO dto) { |
|
|
|
SubPositionCheckInfoEntity entity = baseDao.selectById(dto.getInfoId()); |
|
|
|
if(entity == null){ |
|
|
|
throw new RenException("根据id未查询到信息"); |
|
|
|
} |
|
|
|
entity.setStatus(dto.getCheckResult()); |
|
|
|
entity.setApprovalDeptId(SecurityUser.getUser().getDeptId().toString()); |
|
|
|
entity.setApprovalDeptName(SecurityUser.getUser().getDeptName()); |
|
|
|
entity.setApprovalTime(dateToString(new Date())); |
|
|
|
updateById(entity); |
|
|
|
//添加验收记录信息
|
|
|
|
dto.setFlag(2); |
|
|
|
subAuditRecordsLogService.addFirstTrialRecords(dto); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
|
|
|
|
} |