认证清单-补充提交-给责任人分配待办中心任务。

This commit is contained in:
wangzhijiang
2023-04-24 17:55:36 +08:00
parent 0e918df557
commit 5d47fe6d34
@@ -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("批量更新状态成功!");