组织架构图,根结点为部门时,层级问题处理

pull/274/head
dxfeng 9 months ago
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…
Cancel
Save