From 1bd2237b161e519c340052916c8e941a16595ba3 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 31 七月 2023 02:06:41 +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