增加配置属性

This commit is contained in:
sxu 2024-12-10 16:16:54 +08:00
parent 02ba8fc45b
commit ad156afb83
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ public class TreeBuild {
for (TreeNode treeNode : nodeList) {
// 判断当前节点的父节点ID是否等于根节点的ID即当前节点为其下的子节点
if (treeNode.getParentId() == pNode.getId()) {
if (!"1".equals(pNode.getLevel())) {
treeNode.setPropertyNames(pNode.getPropertyNames());
}
// 再递归进行判断当前节点的情况调用自身方法
childTree.add(buildChildTree(treeNode));
}