|
@@ -110,6 +110,10 @@ public class TmDepartmentServiceImpl extends ServiceImpl<ITmDepartmentMapper, Tm
|
|
|
return this.getDeptListByParentId(dept);
|
|
|
}
|
|
|
dept.setChildren(this.getDeptListByParentId(dept));
|
|
|
+ TmDepartment parentDept = this.getById(dept.getParentId());
|
|
|
+ if(parentDept !=null){
|
|
|
+ dept.setParentName(parentDept.getName());
|
|
|
+ }
|
|
|
return Arrays.asList(dept);
|
|
|
}
|
|
|
|