Browse Source

修复表单内组织获取异常

caixiaofeng 1 month ago
parent
commit
8d83b0fd6e

+ 3 - 3
flow-workflow/flow-workflow-entity/src/main/java/com/flow/entity/node/AssigneeNode.java

@@ -135,13 +135,13 @@ public abstract class AssigneeNode extends Node {
                     OrganizationTypeEnum organizationType = this.getOrganizationType();
                     List<User> userList = Lists.newArrayList();
                     if (organizationType == OrganizationTypeEnum.LEADER) {
-                        userList = deptService.getLeader(this.getOrganizations());
+                        userList = deptService.getLeader(orgIds);
                     }
                     if (organizationType == OrganizationTypeEnum.ALL) {
-                        userList = deptService.getUsers(this.getOrganizations());
+                        userList = deptService.getUsers(orgIds);
                     }
                     if (organizationType == OrganizationTypeEnum.ROLE) {
-                        userList = deptService.getRoleUsers(this.getOrganizations(), this.getOrganizationRoles());
+                        userList = deptService.getRoleUsers(orgIds, this.getOrganizationRoles());
                     }
                     if (CollectionUtils.isNotEmpty(userList)) {
                         List<String> userIds = userList.stream()