组织架构图,根结点为部门时,层级问题处理
This commit is contained in:
parent
be807d032b
commit
5c05759ad4
|
|
@ -141,6 +141,10 @@ public class ChartServiceImpl extends Service implements ChartService {
|
|||
|
||||
// 向下查询数据
|
||||
if (null != topChartPO) {
|
||||
// 如果根结点是部门,顶层层级设置为1
|
||||
if(topChartPO.getFtype().equals("2")){
|
||||
topChartPO.setDepartmentDepth(1);
|
||||
}
|
||||
findChildData(topChartPO, dataList, Integer.parseInt(depth), id, hideDepartment);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue