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());