Browse Source

依次审批使用LinkedHashSet

dongpo 7 months ago
parent
commit
09aa2bfb85

+ 1 - 1
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/service/task/BpmTaskAssignRuleServiceImpl.java

@@ -332,7 +332,7 @@ public class BpmTaskAssignRuleServiceImpl implements BpmTaskAssignRuleService {
             scripts.add(script);
         });
         // 逐个计算任务
-        Set<Long> userIds = new HashSet<>();
+        Set<Long> userIds = new LinkedHashSet<>();
         scripts.forEach(script -> CollUtil.addAll(userIds, script.calculateTaskCandidateUsers(execution)));
         return userIds;
     }