update 未符合项跟踪流程 转办后驳回给转办后的人

This commit is contained in:
lijiarao
2023-12-25 15:22:19 +08:00
parent bdb18046c9
commit a869cf08cd
2 changed files with 29 additions and 6 deletions
@@ -8,6 +8,7 @@ public class ProcessProjectNotMetCommon {
public static final String STANDARDS_ENGINEER = "standardsEngineer"; public static final String STANDARDS_ENGINEER = "standardsEngineer";
public static final String MANAGER_LEADER = "managerLeader"; public static final String MANAGER_LEADER = "managerLeader";
public static final String DESIGN_ENGINEER = "designEngineer"; public static final String DESIGN_ENGINEER = "designEngineer";
public static final String PASS = "pass";
/** /**
*法规工程师发起整改 *法规工程师发起整改
*/ */
@@ -164,19 +164,40 @@ public class ProcessProjectNotMetService extends ServiceImpl<ProcessProjectNotMe
break; break;
default: default:
} }
// 完成任务
Map<String, Object> variables = new HashMap<>();
variables.put(ProcessProjectAssessCommon.PASS, pass);
taskService.complete(taskId, variables);
} }
private void zgjldspApprove(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO, ProcessDTO processDTO, boolean pass) { private void zgjldspApprove(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO, ProcessDTO processDTO, boolean pass) {
// 完成任务
Map<String, Object> variables = new HashMap<>();
if (!pass){
String businessId = processInfoVO.getBusinessId();
LambdaQueryWrapper<ProcessProjectNotMetLink> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ProcessProjectNotMetLink::getProcessId,businessId);
wrapper.last("limit 1");
ProcessProjectNotMetLink projectNotMetLink = processProjectNotMetLinkService.getOne(wrapper);
String engineerId = projectNotMetLink.getEngineerId();
variables.put(ProcessProjectNotMetCommon.DESIGN_ENGINEER, engineerId);
}
variables.put(ProcessProjectNotMetCommon.PASS, pass);
taskService.complete(processDTO.getTaskId(), variables);
} }
private void fggcsspApprove(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO, ProcessDTO processDTO, boolean pass) { private void fggcsspApprove(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO, ProcessDTO processDTO, boolean pass) {
// 完成任务
Map<String, Object> variables = new HashMap<>();
if (!pass){
String businessId = processInfoVO.getBusinessId();
LambdaQueryWrapper<ProcessProjectNotMetLink> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(ProcessProjectNotMetLink::getProcessId,businessId);
wrapper.last("limit 1");
ProcessProjectNotMetLink projectNotMetLink = processProjectNotMetLinkService.getOne(wrapper);
String engineerId = projectNotMetLink.getEngineerId();
variables.put(ProcessProjectNotMetCommon.DESIGN_ENGINEER, engineerId);
}
variables.put(ProcessProjectNotMetCommon.PASS, pass);
taskService.complete(processDTO.getTaskId(), variables);
} }
public void submit(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO) { public void submit(ProcessInfoVO<ProcessProjectNotMetVO> processInfoVO) {
@@ -199,6 +220,7 @@ public class ProcessProjectNotMetService extends ServiceImpl<ProcessProjectNotMe
for (ProcessProjectNotMetLink processProjectNotMetLink : processProjectNotMetLinks) { for (ProcessProjectNotMetLink processProjectNotMetLink : processProjectNotMetLinks) {
processProjectNotMetLink.setFileId(processProjectNotMetLink.getFileId()); processProjectNotMetLink.setFileId(processProjectNotMetLink.getFileId());
processProjectNotMetLink.setDescription(processProjectNotMetLink.getDescription()); processProjectNotMetLink.setDescription(processProjectNotMetLink.getDescription());
processProjectNotMetLink.setEngineerId(CurrentUserUtil.getId());
processProjectNotMetLink.setRealityTime(now); processProjectNotMetLink.setRealityTime(now);
} }
processProjectNotMetLinkService.updateBatchById(processProjectNotMetLinks); processProjectNotMetLinkService.updateBatchById(processProjectNotMetLinks);