中扬CRM客户关系管理系统
Junjie
2023-09-07 8cbd2425dc7e21e9dfb56f3f68f13ec82142655b
src/main/java/com/zy/crm/system/entity/User.java
@@ -92,6 +92,11 @@
     */
    private Integer status;
    /**
     * 个人全年目标
     */
    private String target;
    public Long getId() {
        return id;
    }
@@ -217,6 +222,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;
    }
@@ -256,5 +270,11 @@
        this.status = status;
    }
    public String getTarget() {
        return target;
    }
    public void setTarget(String target) {
        this.target = target;
    }
}