From 4d4ef936c94b1a807ae1350ea26856322a5a01b1 Mon Sep 17 00:00:00 2001 From: stylefeng Date: Thu, 31 Oct 2024 18:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.3.1=E3=80=91=E3=80=90role=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E8=8E=B7=E5=8F=96app?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=8A=9F=E8=83=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modular/menu/service/impl/SysMenuServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/menu/service/impl/SysMenuServiceImpl.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/menu/service/impl/SysMenuServiceImpl.java index 66d8203df..c3f9d32c8 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/menu/service/impl/SysMenuServiceImpl.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/menu/service/impl/SysMenuServiceImpl.java @@ -486,7 +486,7 @@ public class SysMenuServiceImpl extends ServiceImpl impl sysMenuLambdaQueryWrapper.eq(SysMenu::getAppId, appId); sysMenuLambdaQueryWrapper.select(SysMenu::getMenuId); List list = this.list(sysMenuLambdaQueryWrapper); - if (ObjectUtil.isEmpty(totalIdList)) { + if (ObjectUtil.isEmpty(list)) { return totalIdList; } Set menuIdList = list.stream().map(SysMenu::getMenuId).collect(Collectors.toSet());