From 2fbf9ab7be550f9272edf312a81837952d1b31f6 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 14 二月 2022 17:29:43 +0800 Subject: [PATCH] fix 修复因升级 sa-token 导致 doLogin 无法获取 token 问题 --- ruoyi-common/src/main/java/com/ruoyi/common/utils/TreeBuildUtils.java | 9 ++------- 1 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/TreeBuildUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/TreeBuildUtils.java index 7d25410..76bf864 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/TreeBuildUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/TreeBuildUtils.java @@ -22,13 +22,8 @@ */ public static final TreeNodeConfig DEFAULT_CONFIG = TreeNodeConfig.DEFAULT_CONFIG.setNameKey("label"); - /** - * 榛樿鏍戠埗鑺傜偣id - */ - public static final Long DEFAULT_PARENT_ID = 0L; - - public static <T> List<Tree<Long>> build(List<T> list, NodeParser<T, Long> nodeParser) { - return TreeUtil.build(list, DEFAULT_PARENT_ID, DEFAULT_CONFIG, nodeParser); + public static <T> List<Tree<Long>> build(List<T> list, Long parentId, NodeParser<T, Long> nodeParser) { + return TreeUtil.build(list, parentId, DEFAULT_CONFIG, nodeParser); } } -- Gitblit v1.9.3