Showing
1 changed file
with
3 additions
and
5 deletions
| ... | ... | @@ -74,17 +74,15 @@ public class TransactorHandler { |
| 74 | 74 | log.info("================== listTransactorsByRoleCodeAndDeptId invoke start, roleCode:{}, deptId:{}", roleCode, deptId); |
| 75 | 75 | // 获取角色下人员 |
| 76 | 76 | List<String> userIdList = sysUserRoleService.listUserIdByRoleCodes(Collections.singletonList(roleCode)); |
| 77 | + log.info("================== listTransactorsByRoleCodeAndDeptId invoke userIdList, userIdList:{}", userIdList); | |
| 77 | 78 | if (CollectionUtils.isEmpty(userIdList)) { |
| 78 | 79 | return new ArrayList<>(); |
| 79 | 80 | } |
| 80 | 81 | List<String> result = new ArrayList<>(); |
| 81 | 82 | // 获取所有部门(包含子部门) |
| 82 | 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 | 86 | for (String id : userIdList) { |
| 89 | 87 | log.info("================== listTransactorsByRoleCodeAndDeptId userId:{}", id); |
| 90 | 88 | List<SysUserDept> sysUserDeptList = userDeptService.getByUserId(id); | ... | ... |