Commit fa30fab740569cb38835fe58fb2f6a4b56af9cb6

Authored by 房远帅
1 parent 27e47e76

楚江ERP:根据角色code和办事处ID获取办理人

@@ -74,17 +74,15 @@ public class TransactorHandler { @@ -74,17 +74,15 @@ public class TransactorHandler {
74 log.info("================== listTransactorsByRoleCodeAndDeptId invoke start, roleCode:{}, deptId:{}", roleCode, deptId); 74 log.info("================== listTransactorsByRoleCodeAndDeptId invoke start, roleCode:{}, deptId:{}", roleCode, deptId);
75 // 获取角色下人员 75 // 获取角色下人员
76 List<String> userIdList = sysUserRoleService.listUserIdByRoleCodes(Collections.singletonList(roleCode)); 76 List<String> userIdList = sysUserRoleService.listUserIdByRoleCodes(Collections.singletonList(roleCode));
  77 + log.info("================== listTransactorsByRoleCodeAndDeptId invoke userIdList, userIdList:{}", userIdList);
77 if (CollectionUtils.isEmpty(userIdList)) { 78 if (CollectionUtils.isEmpty(userIdList)) {
78 return new ArrayList<>(); 79 return new ArrayList<>();
79 } 80 }
80 List<String> result = new ArrayList<>(); 81 List<String> result = new ArrayList<>();
81 // 获取所有部门(包含子部门) 82 // 获取所有部门(包含子部门)
82 List<String> childDeptIds = recursionMappingService.getNodeChildIds(deptId, SysDeptNodeType.class); 83 List<String> childDeptIds = recursionMappingService.getNodeChildIds(deptId, SysDeptNodeType.class);
83 - if (CollectionUtils.isNotEmpty(childDeptIds)) {  
84 - childDeptIds.add(deptId);  
85 - } else {  
86 - return new ArrayList<>();  
87 - } 84 + childDeptIds.add(deptId);
  85 + log.info("================== listTransactorsByRoleCodeAndDeptId invoke childDeptIds, childDeptIds:{}", childDeptIds);
88 for (String id : userIdList) { 86 for (String id : userIdList) {
89 log.info("================== listTransactorsByRoleCodeAndDeptId userId:{}", id); 87 log.info("================== listTransactorsByRoleCodeAndDeptId userId:{}", id);
90 List<SysUserDept> sysUserDeptList = userDeptService.getByUserId(id); 88 List<SysUserDept> sysUserDeptList = userDeptService.getByUserId(id);