|  |  | 
 |  |  | 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; | 
 |  |  |     } | 
 |  |  |  |