fix: 企标变更流程责任部门变更报错
This commit is contained in:
+7
-1
@@ -194,6 +194,7 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
String userId = UserUtils.getUserId();
|
String userId = UserUtils.getUserId();
|
||||||
CommonVO commonVO = initChangeDataVO.getCommonVO();
|
CommonVO commonVO = initChangeDataVO.getCommonVO();
|
||||||
List<ProcessEsInitChange> initChangeList = initChangeDataVO.getDataList();
|
List<ProcessEsInitChange> initChangeList = initChangeDataVO.getDataList();
|
||||||
|
InitChangeFlowUserVO flowUserInfoVO = initChangeDataVO.getFlowUserInfoVO();
|
||||||
String taskId = commonVO.getTaskId();
|
String taskId = commonVO.getTaskId();
|
||||||
if (StrUtil.isBlank(taskId) && !actFlowCommonService.taskExists(taskId)) {
|
if (StrUtil.isBlank(taskId) && !actFlowCommonService.taskExists(taskId)) {
|
||||||
throw new JeroBootException("taskId为空或任务不存在");
|
throw new JeroBootException("taskId为空或任务不存在");
|
||||||
@@ -201,12 +202,17 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
|||||||
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
String processInstanceId = actFlowCommonService.getProcessInstanceIdByTaskId(taskId);
|
||||||
String processDefinitionId = actFlowCommonService.getProcessDefId(processInstanceId);
|
String processDefinitionId = actFlowCommonService.getProcessDefId(processInstanceId);
|
||||||
if (pass) {
|
if (pass) {
|
||||||
if (initChangeList != null) {
|
if (initChangeList != null && flowUserInfoVO != null) {
|
||||||
saveOrUpdateBatch(initChangeList);
|
saveOrUpdateBatch(initChangeList);
|
||||||
Map<String, Object> variables = this.setVariables(initChangeDataVO);
|
Map<String, Object> variables = this.setVariables(initChangeDataVO);
|
||||||
processNodeLinkService.saveNodeUserLink(processDefinitionId, processInstanceId, this.getUserMap(variables));
|
processNodeLinkService.saveNodeUserLink(processDefinitionId, processInstanceId, this.getUserMap(variables));
|
||||||
actFlowCommonService.setProcessVariables(processInstanceId, variables);
|
actFlowCommonService.setProcessVariables(processInstanceId, variables);
|
||||||
}
|
}
|
||||||
|
if (flowUserInfoVO != null) {
|
||||||
|
Map<String, Object> variables = this.setVariables(initChangeDataVO);
|
||||||
|
processNodeLinkService.saveNodeUserLink(processDefinitionId, processInstanceId, this.getUserMap(variables));
|
||||||
|
actFlowCommonService.setProcessVariables(processInstanceId, variables);
|
||||||
|
}
|
||||||
runtimeService.setVariable(processInstanceId, "pass", true);
|
runtimeService.setVariable(processInstanceId, "pass", true);
|
||||||
} else {
|
} else {
|
||||||
// 设置流程变量
|
// 设置流程变量
|
||||||
|
|||||||
Reference in New Issue
Block a user