认证清单-补充提交-给责任人分配待办中心任务。
This commit is contained in:
+15
@@ -795,6 +795,21 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
||||
pciEo.setFlowStatus(flowStatus);
|
||||
});
|
||||
this.updateBatchById(pciEoList);
|
||||
|
||||
// 如果是责任人操作补充提交按钮。给责任人生成对应待办中心的待办任务。
|
||||
if(StringUtils.equals(flowStatus,CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())){
|
||||
List<ProcessInfoDetailEO> processInfoDetailEOList = new ArrayList<>();
|
||||
pciEoList.forEach(pciEo -> {
|
||||
ProcessInfoDetailEO processInfoDetailEO = new ProcessInfoDetailEO();
|
||||
processInfoDetailEO.setUserId(pciEo.getDutyPerson());
|
||||
processInfoDetailEO.setEndTime(pciEo.getEndTime());
|
||||
processInfoDetailEO.setProjectLawsInventoryId(pciEo.getId());
|
||||
processInfoDetailEOList.add(processInfoDetailEO);
|
||||
});
|
||||
|
||||
// 给责任人分配待办中心的任务 (待提交)
|
||||
this.addProcessInfoDetailEO(processInfoDetailEOList,pciEoList.get(0).getProjectLibraryId(),CertificationFlowNodeEnum.ZRRTJRW.getKey());
|
||||
}
|
||||
}
|
||||
}
|
||||
return new Result<>().success("批量更新状态成功!");
|
||||
|
||||
Reference in New Issue
Block a user