| | |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.Department; |
| | | import com.zy.asrs.service.DepartmentService; |
| | | import com.zy.system.service.HostService; |
| | | import com.zy.system.service.RoleService; |
| | | |
| | |
| | | */ |
| | | @TableField("host_id") |
| | | private Long hostId; |
| | | |
| | | |
| | | /** |
| | | * 所属部门 |
| | |
| | | } |
| | | |
| | | public String getDeptName() { |
| | | // DeptService service = SpringUtils.getBean(DeptService.class); |
| | | // Dept dept = service.selectById(this.deptId); |
| | | // if (!Cools.isEmpty(dept)){ |
| | | // return dept.getName(); |
| | | // } |
| | | DepartmentService service = SpringUtils.getBean(DepartmentService.class); |
| | | Department dept = service.selectById(this.deptId); |
| | | if (!Cools.isEmpty(dept)) { |
| | | return dept.getName(); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | |
| | | public void setStatus(Integer status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | |
| | | } |