Commit edb302521f4338a0b72cae2ac58dbc47a8bb852d
Committed by
Gitee
!1340 fix(bpm):修复自选审批人时存在多个并行节点时审批人覆盖问题
Merge pull request !1340 from whc/master-jdk17
Showing
1 changed file
with
5 additions
and
0 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskServiceImpl.java
| @@ -646,6 +646,11 @@ public class BpmTaskServiceImpl implements BpmTaskService { | @@ -646,6 +646,11 @@ public class BpmTaskServiceImpl implements BpmTaskService { | ||
| 646 | approveUserSelectAssignees = new HashMap<>(); | 646 | approveUserSelectAssignees = new HashMap<>(); |
| 647 | } | 647 | } |
| 648 | approveUserSelectAssignees.put(nextFlowNode.getId(), assignees); | 648 | approveUserSelectAssignees.put(nextFlowNode.getId(), assignees); |
| 649 | + @SuppressWarnings("unchecked") | ||
| 650 | + Map<String,List<Long>> existing = (Map<String,List<Long>>) variables.get(BpmnVariableConstants.PROCESS_INSTANCE_VARIABLE_APPROVE_USER_SELECT_ASSIGNEES); | ||
| 651 | + if(CollUtil.isNotEmpty(existing)) { | ||
| 652 | + approveUserSelectAssignees.putAll(existing); | ||
| 653 | + } | ||
| 649 | variables.put(BpmnVariableConstants.PROCESS_INSTANCE_VARIABLE_APPROVE_USER_SELECT_ASSIGNEES, approveUserSelectAssignees); | 654 | variables.put(BpmnVariableConstants.PROCESS_INSTANCE_VARIABLE_APPROVE_USER_SELECT_ASSIGNEES, approveUserSelectAssignees); |
| 650 | } | 655 | } |
| 651 | } | 656 | } |