review:重构代码,校验选择的下一个节点的审批人,是否合法

This commit is contained in:
smallNorthLee 2025-03-11 22:40:53 +08:00
parent cc61bb1a61
commit 42eb89b243
1 changed files with 2 additions and 2 deletions

View File

@ -610,7 +610,7 @@ public class BpmTaskServiceImpl implements BpmTaskService {
}
}
// 校验通过的全部节点和审批人
processVariables.put(nextFlowNode.getId(), nextAssignees.get(nextFlowNode.getId()));
processVariables.put(nextFlowNode.getId(), assignees);
variables.put(BpmnVariableConstants.PROCESS_INSTANCE_VARIABLE_START_USER_SELECT_ASSIGNEES, processVariables);
}
// 2.2 情况二如果节点中的审批人策略为 审批人在审批时选择下一个节点的审批人并且该节点的审批人为空
@ -631,7 +631,7 @@ public class BpmTaskServiceImpl implements BpmTaskService {
}
}
// 校验通过的全部节点和审批人
processVariables.put(nextFlowNode.getId(), nextAssignees.get(nextFlowNode.getId()));
processVariables.put(nextFlowNode.getId(), assignees);
variables.put(BpmnVariableConstants.PROCESS_INSTANCE_VARIABLE_APPROVE_USER_SELECT_ASSIGNEES, processVariables);
}
}