From 514037196eb9aaa8d48f562b5c5e55cc9f887e62 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Fri, 22 Sep 2023 15:13:13 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.0=E3=80=91=E3=80=90system=E3=80=91?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=8F=9C=E5=8D=95id=E6=94=B9=E4=B8=BALong?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modular/role/service/impl/PermissionAssignServiceImpl.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/role/service/impl/PermissionAssignServiceImpl.java b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/PermissionAssignServiceImpl.java index 08f54bbb1..f8973a98b 100644 --- a/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/PermissionAssignServiceImpl.java +++ b/kernel-s-system/system-business-permission/src/main/java/cn/stylefeng/roses/kernel/sys/modular/role/service/impl/PermissionAssignServiceImpl.java @@ -142,7 +142,7 @@ public class PermissionAssignServiceImpl implements PermissionAssignService { // 获取所有的菜单上的功能 LambdaQueryWrapper optionsLambdaQueryWrapper = new LambdaQueryWrapper<>(); optionsLambdaQueryWrapper.select(SysMenuOptions::getMenuId, SysMenuOptions::getMenuOptionId, SysMenuOptions::getOptionName); - Set menuIds = totalResultMenus.stream().map(RoleBindPermissionItem::getNodeId).collect(Collectors.toSet()); + Set menuIds = totalResultMenus.stream().map(i -> Long.valueOf(i.getNodeId())).collect(Collectors.toSet()); optionsLambdaQueryWrapper.in(SysMenuOptions::getMenuId, menuIds); // 如果限制了范围,则只查询限制范围内的功能 if (ObjectUtil.isNotEmpty(limitMenuIdsAndOptionIds)) {