| | |
| | | private String memo; |
| | | |
| | | @TableField(exist = false) |
| | | private List<Role> roles; |
| | | |
| | | @TableField(exist = false) |
| | | private List<Menu> authorities; |
| | | |
| | | public User() {} |
| | |
| | | DeptService service = SpringUtils.getBean(DeptService.class); |
| | | Dept dept = service.getById(this.deptId); |
| | | if (!Cools.isEmpty(dept)){ |
| | | return String.valueOf(dept.getId()); |
| | | return String.valueOf(dept.getName()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | HostService service = SpringUtils.getBean(HostService.class); |
| | | Host host = service.getById(this.hostId); |
| | | if (!Cools.isEmpty(host)){ |
| | | return String.valueOf(host.getId()); |
| | | return String.valueOf(host.getName()); |
| | | } |
| | | return null; |
| | | } |