From 3d0e47f4a021d9568fe9ae59c4e2f381ef877f9a Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 22 Jul 2024 16:35:17 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=88=97=E8=A1=A8=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=8E=E7=94=A8=E6=88=B7=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1153677006438400]用户管理-列表回显的数据与用户详情的数据不一样 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1153677006438400 --- .../java/neatlogic/module/tenant/api/user/UserGetApi.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java b/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java index 3b52e6c8..ee26b4f8 100644 --- a/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java +++ b/src/main/java/neatlogic/module/tenant/api/user/UserGetApi.java @@ -110,9 +110,10 @@ public class UserGetApi extends PrivateApiComponentBase { throw new UserNotFoundException(userUuid); } userVo.setTeamUuidList(authenticationInfoVo.getTeamUuidList()); - userVo.setRoleUuidList(authenticationInfoVo.getRoleUuidList()); - if (CollectionUtils.isNotEmpty(authenticationInfoVo.getRoleUuidList())) { - userVo.setRoleList(roleMapper.getRoleByUuidList(authenticationInfoVo.getRoleUuidList())); +// userVo.setRoleUuidList(authenticationInfoVo.getRoleUuidList()); + userVo.setRoleUuidList(roleMapper.getRoleUuidListByUserUuid(userUuid)); + if (CollectionUtils.isNotEmpty(userVo.getRoleUuidList())) { + userVo.setRoleList(roleMapper.getRoleByUuidList(userVo.getRoleUuidList())); } //超级管理员拥有所有权限 if (userVo.getIsSuperAdmin() != null && userVo.getIsSuperAdmin()) { -- Gitee