From 65862c0f9d9449937cf17151d9462f25b3a49474 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期三, 26 七月 2023 09:40:43 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/zycrm' into zycrm --- src/main/java/com/zy/crm/system/entity/User.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/crm/system/entity/User.java b/src/main/java/com/zy/crm/system/entity/User.java index 8924465..9ddf617 100644 --- a/src/main/java/com/zy/crm/system/entity/User.java +++ b/src/main/java/com/zy/crm/system/entity/User.java @@ -217,6 +217,15 @@ return null; } + public String getRoleCode(){ + RoleService service = SpringUtils.getBean(RoleService.class); + Role role = service.selectById(this.roleId); + if (!Cools.isEmpty(role)){ + return role.getCode(); + } + return null; + } + public void setRoleId(Long roleId) { this.roleId = roleId; } -- Gitblit v1.9.1