Administrator
5 天以前 aa33e56e37cd19b88ae8eea69c5ebc7c6da8b1d2
src/main/java/com/zy/system/entity/User.java
@@ -76,25 +76,25 @@
        return username;
    }
    public Long getHostId() {
        return hostId;
    public void setUsername(String username) {
        this.username = username;
    }
    public String getHostName() {
        HostService service = SpringUtils.getBean(HostService.class);
        Host host = service.selectById(this.hostId);
        if (!Cools.isEmpty(host)){
            return host.getName();
        }
        return null;
    public Long getHostId() {
        return hostId;
    }
    public void setHostId(Long hostId) {
        this.hostId = hostId;
    }
    public void setUsername(String username) {
        this.username = username;
    public String getHostName() {
        HostService service = SpringUtils.getBean(HostService.class);
        Host host = service.selectById(this.hostId);
        if (!Cools.isEmpty(host)) {
            return host.getName();
        }
        return null;
    }
    public String getMobile() {
@@ -117,41 +117,47 @@
        return roleId;
    }
    public String getRoleName(){
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public String getRoleName() {
        RoleService service = SpringUtils.getBean(RoleService.class);
        Role role = service.selectById(this.roleId);
        if (!Cools.isEmpty(role)){
        if (!Cools.isEmpty(role)) {
            return role.getName();
        }
        return null;
    }
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getCreateTime$() {
        if (Cools.isEmpty(this.createTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Integer getStatus() {
        return status;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getStatus$() {
        if (null == this.status) {
            return null;
        }
        switch (this.status) {
            case 1:
                return "启用";
            case 2:
@@ -161,10 +167,6 @@
            default:
                return String.valueOf(this.status);
        }
    }
    public void setStatus(Integer status) {
        this.status = status;
    }