fix: 88295 外来标准法规文本库--标准解读--查询--涉及系统/部件选项没有下级建议去掉前方三角

This commit is contained in:
2024-08-08 19:57:40 +08:00
parent 84fbcb26da
commit 59e89f7e7d
@@ -97,6 +97,11 @@ public class PartNameServiceImpl extends ServiceImpl<PartNameMapper, PartName>
topLevelNodes.add(node);
}
}
// Set leafFlag for each node
for (PartName node : nodesCollection) {
node.setLeafFlag(node.getChildPartNameList() == null || node.getChildPartNameList().isEmpty());
}
return topLevelNodes;
}