ソースを参照

修改操作按钮分页逻辑

xuezizhuo 1 年間 前
コミット
c58a032337

+ 5 - 3
zkqy-system/src/main/java/com/zkqy/system/service/impl/DragTableBtnServiceImpl.java

@@ -68,9 +68,11 @@ public class DragTableBtnServiceImpl implements IDragTableBtnService
         }
         List<DragTableBtn> childNodes = dragTableBtnMapper.selectChildNodeById(ids);
         //递归处理树结构
-        return rootNodes.stream().peek(
-                root -> root.setChildren(getChildrenList(root, childNodes))
-        ).collect(Collectors.toList());
+        for (DragTableBtn root : rootNodes) {
+            List<DragTableBtn> children = getChildrenList(root, childNodes);
+            root.setChildren(children);
+        }
+        return rootNodes;
     }
 
     private List<DragTableBtn> getChildrenList(DragTableBtn root, List<DragTableBtn> childNodes) {