Commit d85625ad9c36c018b43321deb319edbdcc3494cc
1 parent
a51d2a0c
更换获取部门信息接口
Showing
2 changed files
with
2 additions
and
2 deletions
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/service/user/AdminUserServiceImpl.java
| ... | ... | @@ -690,7 +690,7 @@ public class AdminUserServiceImpl implements AdminUserService { |
| 690 | 690 | // 递归查找父部门链中parentId=100的部门 |
| 691 | 691 | Long result = findParentDeptWithParentId(dept.getParentId(), 100L); |
| 692 | 692 | // 如果找不到parentId=100的部门,返回当前部门的id作为默认值 |
| 693 | - return result != null ? result : dept.getId(); | |
| 693 | + return result != null ? result : dept.getParentId(); | |
| 694 | 694 | } |
| 695 | 695 | |
| 696 | 696 | /** | ... | ... |