|
@@ -256,7 +256,8 @@ public class DeptServiceImpl implements DeptService {
|
|
if (parentId == null || DeptIdEnum.ROOT.getId().equals(parentId)) {
|
|
if (parentId == null || DeptIdEnum.ROOT.getId().equals(parentId)) {
|
|
return deptDO;
|
|
return deptDO;
|
|
} else {
|
|
} else {
|
|
- return getSecondDept(deptDO);
|
|
|
|
|
|
+ DeptDO parentDept = deptMapper.selectById(parentId);
|
|
|
|
+ return getSecondDept(parentDept);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|