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