| | |
| | | throw new BusinessException("当前用户没有角色"); |
| | | } |
| | | List<Long> roleIdList = roles.stream().map(Role::getId).collect(Collectors.toList()); |
| | | List<Long> menuIdList = roleMenuRelationService.list(Wrappers.lambdaQuery(RoleMenuRelation.class).in(RoleMenuRelation::getRoleId, roleIdList).select(RoleMenuRelation::getMenuId)) |
| | | .stream().map(RoleMenuRelation::getMenuId).distinct().collect(Collectors.toList()); |
| | | List<Long> menuIdList = roleMenuRelationService.list(Wrappers.lambdaQuery(RoleMenuRelation.class).in(RoleMenuRelation::getRoleId, roleIdList) |
| | | .select(RoleMenuRelation::getMenuId)).stream().map(RoleMenuRelation::getMenuId).distinct().collect(Collectors.toList()); |
| | | |
| | | Set<String> menuPermissions = new HashSet<>(); |
| | | // 菜单权限 |