自动化立体仓库 - WMS系统
pang.jiabao
2024-09-03 587fee18e22ed0ceee502ca12025a40e9d63989f
src/main/java/com/zy/asrs/entity/WrkMastStaLog.java
@@ -180,4 +180,85 @@
        Synchro.Copy(source, this);
    }
    public Integer getStaEnd(Integer souSta) {
        switch (souSta) {
            case 100:
            case 103:
            case 106:
            case 109:
            case 112:
            case 115:
                return souSta + 1;
            default:
                return souSta;
        }
    }
    public String getType$() {
        if (Cools.isEmpty(this.type)) {
            return "未知";
        }
        switch (this.type) {
            case 1:
                return "非空";
            case 2:
                return "空板";
            default:
                return "未知";
        }
    }
    /**
     * 工作状态 0:初始 1:等待小车取 2:等待小车放 3:完成
     */
    public String getWrkSts$() {
        if (Cools.isEmpty(this.wrkSts)) {
            try {
                if (this.wrkSts==0){
                    return "初始";
                }
            }catch (Exception e){
                return "未知";
            }
            return "未知";
        }
        switch (this.wrkSts) {
            case 0:
                return "初始";
            case 1:
                return "等待小车取";
            case 2:
                return "等待小车放";
            case 3:
                return "完成";
            default:
                return "未知";
        }
    }
    /**
     * 工作类型 1:取(叠盘)  2:拆盘  3:取放 5:满取  6:满放
     */
    public String getWrkType$() {
        if (Cools.isEmpty(this.wrkType)) {
            return "未知";
        }
        switch (this.wrkType) {
            case 1:
                return "叠盘";
            case 2:
                return "拆盘";
            case 3:
                return "取放";
            case 4:
                return "行走";
            case 5:
                return "满取";
            case 6:
                return "满放";
            default:
                return "未知";
        }
    }
}