From ff0d2c3d1a3b696b03b6c3eec4ee2f9075925430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Mon, 3 Apr 2023 11:25:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=20=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java index c51f3a8..76b0ac4 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/user/manage/UserInfoManage.java @@ -161,8 +161,7 @@ public class UserInfoManage { if (CollUtil.isEmpty(userRoleList)) { return null; } - List roleIdList = iUserRoleService.list() - .stream().map(UserRole::getRoleId).collect(Collectors.toList()); + List roleIdList = userRoleList.stream().map(UserRoleVO::getId).collect(Collectors.toList()); List compliantUserIdList = iUserRoleService.list(Wrappers.lambdaQuery(UserRole.class) .in(UserRole::getRoleId, roleIdList)).stream().map(UserRole::getUserId).distinct().collect(Collectors.toList());