From 3925d9587584b514d70bb79b4fd176c9d5db38c7 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期一, 28 八月 2023 12:53:03 +0800 Subject: [PATCH] #出差完善 --- 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