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

This commit is contained in:
dxfeng 2024-08-06 09:59:18 +08:00
parent be807d032b
commit 5c05759ad4
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}