UAT问题清单,89条,修改认证清单责任人,将旧的责任人待办任务转给新的责任人。
This commit is contained in:
+19
@@ -248,6 +248,25 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl<Proj
|
||||
userIdList,
|
||||
userInfoList
|
||||
);
|
||||
|
||||
// 如果责任人有变更,将之前责任人的待办中心任务,移交给新的责任人。
|
||||
QueryWrapper<ProcessInfoDetailEO> detailQueryWrap = new QueryWrapper<>();
|
||||
List<String> idList = Arrays.asList(projectCertificationInventoryEO.getId().split(","));
|
||||
detailQueryWrap.lambda().in(ProcessInfoDetailEO::getProjectLawsInventoryId,idList);
|
||||
detailQueryWrap.lambda().eq(ProcessInfoDetailEO::getFlowType,FlowTypeEnum.CERTIFICATION_LC.getValue());
|
||||
detailQueryWrap.lambda().eq(ProcessInfoDetailEO::getStatus,TaskStatusEnum.NOT_DONE.getValue());
|
||||
List<String> taskDefinitionKeyList = new ArrayList<>();
|
||||
taskDefinitionKeyList.add(CertificationFlowNodeEnum.ZRRJSRW.getKey());
|
||||
taskDefinitionKeyList.add(CertificationFlowNodeEnum.ZRRTJRW.getKey());
|
||||
detailQueryWrap.lambda().in(ProcessInfoDetailEO::getTaskDefinitionKey,taskDefinitionKeyList);
|
||||
|
||||
List<ProcessInfoDetailEO> processInfoDetailEOList = this.processInfoDetailEOService.list(detailQueryWrap);
|
||||
if(CollectionUtils.isNotEmpty(processInfoDetailEOList)){
|
||||
processInfoDetailEOList.forEach(detail -> {
|
||||
detail.setUserId(projectCertificationInventoryEO.getDutyPerson());
|
||||
});
|
||||
this.processInfoDetailEOService.updateBatchById(processInfoDetailEOList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user