From a664fb99a7f2855bedb2a9f216ca0f0e36d7f304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Thu, 4 Jul 2024 16:08:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/dromara/system/dubbo/RemoteUserServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java index 210f2576..5c017abf 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/dubbo/RemoteUserServiceImpl.java @@ -259,7 +259,7 @@ public class RemoteUserServiceImpl implements RemoteUserService { loginUser.setRolePermission(permissionService.getRolePermission(userVo.getUserId())); TenantHelper.dynamic(userVo.getTenantId(), () -> { SysDeptVo dept = null; - if (ObjectUtil.isNotNull(userVo.getUserId())) { + if (ObjectUtil.isNotNull(userVo.getDeptId())) { dept = deptService.selectDeptById(userVo.getDeptId()); } loginUser.setDeptName(ObjectUtil.isNull(dept) ? "" : dept.getDeptName());