|
@@ -67,7 +67,7 @@ public class SysDeptServiceImpl implements ISysDeptService {
|
|
|
List<Long> deptList = new ArrayList<>();
|
|
|
//获取到子孙级部门id
|
|
|
Long deptId = loginUser.getDeptId();
|
|
|
- if (deptService.hasChildByDeptId(loginUser.getDeptId())) {
|
|
|
+ if (deptService.hasChildByDeptId(deptId)) {
|
|
|
List<Long> children = deptService.getDeptChildren(deptId);
|
|
|
System.err.println(children.size());
|
|
|
deptList.addAll(children);
|