#
luxiaotao1123
2024-02-13 cb2a256130549f45a3ffd3464b84f1cf2f2589c9
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/sys/entity/User.java
@@ -167,6 +167,9 @@
    private String memo;
    @TableField(exist = false)
    private List<Role> roles;
    @TableField(exist = false)
    private List<Menu> authorities;
    public User() {}
@@ -251,7 +254,7 @@
        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;
    }
@@ -260,7 +263,7 @@
        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;
    }