自动化立体仓库 - WMS系统
13
zhang
昨天 82de5a307466894bbb0258f8a63a26a7bb96d80d
src/main/java/com/zy/system/entity/User.java
@@ -110,7 +110,7 @@
    public String getHostName() {
        HostService service = SpringUtils.getBean(HostService.class);
        Host host = service.selectById(this.hostId);
        if (!Cools.isEmpty(host)){
        if (!Cools.isEmpty(host)) {
            return host.getName();
        }
        return null;
@@ -185,9 +185,11 @@
        return sex;
    }
    public String getSex$(){
        if (null == this.sex){ return null; }
        switch (this.sex){
    public String getSex$() {
        if (null == this.sex) {
            return null;
        }
        switch (this.sex) {
            case 0:
                return "男";
            case 1:
@@ -207,18 +209,19 @@
        return roleId;
    }
    public String getRoleName(){
    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 String getRoleLeaderCode(){
    public String getRoleLeaderCode() {
        RoleService service = SpringUtils.getBean(RoleService.class);
        Role role = service.selectById(this.roleId);
        if (!Cools.isEmpty(role)){
        if (!Cools.isEmpty(role)) {
            return role.getLeaderCode();
        }
        return null;
@@ -232,8 +235,8 @@
        return createTime;
    }
    public String getCreateTime$(){
        if (Cools.isEmpty(this.createTime)){
    public String getCreateTime$() {
        if (Cools.isEmpty(this.createTime)) {
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
@@ -247,9 +250,11 @@
        return status;
    }
    public String getStatus$(){
        if (null == this.status){ return null; }
        switch (this.status){
    public String getStatus$() {
        if (null == this.status) {
            return null;
        }
        switch (this.status) {
            case 1:
                return "启用";
            case 0: