zhang
2025-06-13 ae54e42cbe354ef5c39954eed2eab18de9504946
src/main/java/com/zy/system/entity/User.java
@@ -76,8 +76,16 @@
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public Long getHostId() {
        return hostId;
    }
    public void setHostId(Long hostId) {
        this.hostId = hostId;
    }
    public String getHostName() {
@@ -87,14 +95,6 @@
            return host.getName();
        }
        return null;
    }
    public void setHostId(Long hostId) {
        this.hostId = hostId;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getMobile() {
@@ -117,6 +117,10 @@
        return roleId;
    }
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public String getRoleName(){
        RoleService service = SpringUtils.getBean(RoleService.class);
        Role role = service.selectById(this.roleId);
@@ -126,12 +130,12 @@
        return null;
    }
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getCreateTime$(){
@@ -141,16 +145,18 @@
        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 void setStatus(Integer status) {
        this.status = status;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        if (null == this.status) {
            return null;
        }
        switch (this.status){
            case 1:
                return "启用";
@@ -161,10 +167,6 @@
            default:
                return String.valueOf(this.status);
        }
    }
    public void setStatus(Integer status) {
        this.status = status;
    }