diff --git a/src/com/engine/organization/service/impl/ChartServiceImpl.java b/src/com/engine/organization/service/impl/ChartServiceImpl.java index 4398c23a..05553f5c 100644 --- a/src/com/engine/organization/service/impl/ChartServiceImpl.java +++ b/src/com/engine/organization/service/impl/ChartServiceImpl.java @@ -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); }