中扬CRM客户关系管理系统
#
whycq
2023-11-23 c37dc71489ea9659bc895fefff5f56619ed6e065
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;
    }
@@ -255,6 +264,4 @@
    public void setStatus(Integer status) {
        this.status = status;
    }
}