*
lsh
1 天以前 3759a40aad8191f82f4a2eac54c9045dcf6a0fb3
src/main/java/com/zy/asrs/domain/vo/CrnListVo.java
@@ -1,6 +1,7 @@
package com.zy.asrs.domain.vo;
import com.zy.asrs.utils.Utils;
import com.zy.core.enums.CrnStatusType;
import lombok.Data;
@Data
@@ -8,6 +9,7 @@
    // 堆垛机号
    private Integer crnNo;
    private Integer laneNo;
    // 模式
    private String statusType = "-";
@@ -52,7 +54,7 @@
    private Short workNo = 0;
    // 任务状态
    private String wrkStatus = "-";
    private Integer wrkStatus;
    // 异常码
    private String warnCode = "-";
@@ -105,6 +107,17 @@
    // 设备状态
    private String deviceStatus = "-";
    // 可入
    private String inEnable;
    // 可出
    private String outEnable;
    private String hpMk;
    private String taskComplete = "无";
    private String errorCrn;
    private String demo;
    private Integer demoValue;
    public void setXspeed(Float xspeed) {
        this.xspeed = Utils.scale(xspeed);
    }
@@ -133,4 +146,25 @@
        this.yduration = Utils.scale(yduration);
    }
    public String getWrkStatus$() {
        if (this.wrkStatus == null) {
            return "-";
        }
        return CrnStatusType.get(this.wrkStatus.shortValue()).desc;
    }
    public String getDemoValue$() {
        switch (this.demoValue) {
            case 0:
                return "停止";
            case 1:
                return "运行启动中";
            case 2:
                return "运行中";
            case 3:
                return "停止中";
            default:
                return "未知状态";
        }
    }
}