From deb0f819063c72203cca516aa4fdee77e0c3bb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?niohe=C2=B7erbao?= Date: Tue, 9 May 2023 16:11:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8F=AF=E6=8E=A7=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E4=B8=8D=E5=8C=85=E5=90=AB=20=E8=87=AA=E5=B7=B1=E6=8B=A5?= =?UTF-8?q?=E6=9C=89=E7=9A=84=E8=A7=92=E8=89=B2?= 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3d7fd7a..5641ec5 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 @@ -519,7 +519,7 @@ public class UserInfoManage { List controlledRoleIdList = new ArrayList<>(); if (CollUtil.isNotEmpty(userRoleList)) { List roleIdList = userRoleList.stream().map(UserRole::getRoleId).distinct().collect(Collectors.toList()); - controlledRoleIdList.addAll(roleIdList); + List roleList = iRoleService.list(Wrappers.lambdaQuery(Role.class).in(Role::getId, roleIdList)); for (Role role : roleList) {