Browse Source

检查树状图问题

xiaochan 1 year ago
parent
commit
d6cdfe96e4

+ 2 - 1
src/main/java/thyyxxk/webserver/service/zhuyuanyisheng/JianYanJianChaShenQingService.java

@@ -631,7 +631,8 @@ public class JianYanJianChaShenQingService {
                 for (Map.Entry<String, List<JyJcItem>> entry : tempMap.entrySet()) {
                     // 如果部位是空的就直接添加到父节点
                     if (StringUtil.isBlank(entry.getKey())) {
-                        temp.setChildren(entry.getValue());
+                        JyJcItem temp1 = new JyJcItem();
+                        temp.getChildren().addAll(entry.getValue());
                     } else {
                         // 添加到指定的部位
                         JyJcItem temp1 = new JyJcItem();