mirror of https://gitee.com/stylefeng/roses
【8.0】【system】参数菜单id改为Long类型
parent
65caef2064
commit
514037196e
|
@ -142,7 +142,7 @@ public class PermissionAssignServiceImpl implements PermissionAssignService {
|
|||
// 获取所有的菜单上的功能
|
||||
LambdaQueryWrapper<SysMenuOptions> optionsLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||
optionsLambdaQueryWrapper.select(SysMenuOptions::getMenuId, SysMenuOptions::getMenuOptionId, SysMenuOptions::getOptionName);
|
||||
Set<String> menuIds = totalResultMenus.stream().map(RoleBindPermissionItem::getNodeId).collect(Collectors.toSet());
|
||||
Set<Long> menuIds = totalResultMenus.stream().map(i -> Long.valueOf(i.getNodeId())).collect(Collectors.toSet());
|
||||
optionsLambdaQueryWrapper.in(SysMenuOptions::getMenuId, menuIds);
|
||||
// 如果限制了范围,则只查询限制范围内的功能
|
||||
if (ObjectUtil.isNotEmpty(limitMenuIdsAndOptionIds)) {
|
||||
|
|
Loading…
Reference in New Issue