@@ -60,6 +60,7 @@ public class QueryListTreeService { | |||
deptTreeVoList.add(deptTreeVo); | |||
} else { | |||
DeptTreeVo parent = deptVoMap.get(child.getPid()); | |||
deptTreeVo.setPName(parent.getName()); | |||
parent.getChildren().add(child); | |||
} | |||
} |
@@ -37,6 +37,11 @@ public class DeptTreeVo { | |||
*/ | |||
private String pid; | |||
/** | |||
* 上级部门名称 | |||
*/ | |||
private String pname; | |||
/** | |||
* 子部门 | |||
*/ |