From 1f6c005d4446b0bdf40d1680c385e43bd53d963d Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 25 八月 2023 11:04:28 +0800 Subject: [PATCH] 主数据 码段展示(层级码段) --- Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/wrapper/UserWrapper.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/wrapper/UserWrapper.java b/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/wrapper/UserWrapper.java index a72b04d..245038e 100644 --- a/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/wrapper/UserWrapper.java +++ b/Source/UBCS/ubcs-service/ubcs-user/src/main/java/com/vci/ubcs/system/user/wrapper/UserWrapper.java @@ -47,7 +47,7 @@ List<String> roleName = SysCache.getRoleNames(user.getRoleId()); List<String> deptName = SysCache.getDeptNames(user.getDeptId()); List<String> postName = SysCache.getPostNames(user.getPostId()); - userVO.setTenantName(tenant.getTenantName()); + userVO.setTenantName(tenant==null?"":tenant.getTenantName()); userVO.setRoleName(Func.join(roleName)); userVO.setDeptName(Func.join(deptName)); userVO.setPostName(Func.join(postName)); -- Gitblit v1.9.3