fix: 81816 年度制修订计划(各部门主动上报)(联络人主管级上一级领导审批) 驳回后节点不正确

This commit is contained in:
2024-02-06 09:36:35 +08:00
parent 1f9dd92060
commit bf48f6b29b
@@ -208,6 +208,7 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
String contactUserLeaderLeader;
LambdaQueryWrapper<ProcessEsAnnualReport> wrapper = new LambdaQueryWrapper<>();
Map<String, Object> userVariable = new HashMap<>();
runtimeService.setVariableLocal(processInstanceId, "pass", pass);
switch (taskName) {
case CONTACT_USER_DISTRIBUTE:
annualReport = annualReportDataVO.getDataList().get(0);
@@ -295,10 +296,12 @@ public class ProcessEsAnnualReportServiceImpl extends ServiceImpl<ProcessEsAnnua
processNodeLinkService.incrementSaveNodeUserLink(processDefinitionId, processInstanceId, userVariable);
}
// 转办
runtimeService.setVariable(executionId, "contactUserLeaderLeader", UserUtils.getUserId());
String curLeader = UserUtils.getUserId();
taskService.setVariable(taskId, contactUser + "-ContactUserLeaderLeader", curLeader);
userVariable.put("contactUserLeaderLeader", curLeader);
processNodeLinkService.incrementSaveNodeUserLink(processDefinitionId, processInstanceId, userVariable);
break;
}
runtimeService.setVariableLocal(processInstanceId, "pass", pass);
// 更新审批表为完成,填充数据
actFlowCommonService.updateApprovalInfo(commonVO, taskId, pass);
// 审批节点