|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.enums.IdType; | 
|---|
|  |  |  | import com.core.common.Cools; | 
|---|
|  |  |  | import com.core.common.SpringUtils; | 
|---|
|  |  |  | import com.zy.crm.system.service.DeptService; | 
|---|
|  |  |  | import com.zy.crm.system.service.HostService; | 
|---|
|  |  |  | import com.zy.crm.system.service.RoleService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeptName() { | 
|---|
|  |  |  | //        DeptService service = SpringUtils.getBean(DeptService.class); | 
|---|
|  |  |  | //        Dept dept = service.selectById(this.deptId); | 
|---|
|  |  |  | //        if (!Cools.isEmpty(dept)){ | 
|---|
|  |  |  | //            return dept.getName(); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | DeptService service = SpringUtils.getBean(DeptService.class); | 
|---|
|  |  |  | Dept dept = service.selectById(this.deptId); | 
|---|
|  |  |  | if (!Cools.isEmpty(dept)){ | 
|---|
|  |  |  | return dept.getName(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | 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; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setStatus(Integer status) { | 
|---|
|  |  |  | this.status = status; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|