自动化立体仓库 - WCS系统
Junjie
2023-04-10 fdbbac3e711e6be54513cca6fa4ec3a17d293f49
src/main/java/com/zy/asrs/domain/vo/ShuttleStateTableVo.java
@@ -1,5 +1,8 @@
package com.zy.asrs.domain.vo;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.BasShuttleErr;
import com.zy.asrs.service.BasShuttleErrService;
import com.zy.core.enums.ShuttleErrorCodeType;
import com.zy.core.enums.ShuttleStatusType;
import lombok.Data;
@@ -33,6 +36,26 @@
    private Short currentCode;
    /**
     * 当前库位号
     */
    private String locNo;
    /**
     * 库位号-X
     */
    private int locNoX;
    /**
     * 库位号-Y
     */
    private int locNoY;
    /**
     * 当前库位层高
     */
    private int locNoLev;
    /**
     * 电池电量
     */
    public String batteryPower = "-";
@@ -53,9 +76,29 @@
    private Short plcOutputStatusIO;
    /**
     * Plc输出状态IO-顶升位
     */
    private Boolean plcOutputLift;
    /**
     * Plc输出状态IO-换向位
     */
    private Boolean plcOutputTransfer;
    /**
     * Plc输出状态IO-抱闸位
     */
    private Boolean plcOutputBrake;
    /**
     * Plc输出状态IO-充电位
     */
    private Boolean plcOutputCharge;
    /**
     * 错误信息码
     */
    private Short statusErrorCode;
    private String statusErrorCode;
    /**
     * 错误信息码枚举
@@ -85,7 +128,7 @@
    /**
     * 当前的电压值
     */
    private Short currentVoltage;
    private Double currentVoltage;
    /**
     * 当前的模拟量值
@@ -127,14 +170,42 @@
        return this.errorCodeType.desc;
    }
    public void setStatusErrorCode(Short statusErrorCode) {
        this.statusErrorCode = statusErrorCode;
        this.errorCodeType = ShuttleErrorCodeType.get(statusErrorCode);
    public void setErrorCode(Short errorCode) {
        this.errorCode = ShuttleErrorCodeType.get(errorCode.intValue()).desc;
        this.errorCodeType = ShuttleErrorCodeType.get(errorCode.intValue());
    }
    public void setStatusErrorCode(ShuttleErrorCodeType type) {
        this.statusErrorCode = type.id.shortValue();
    public void setErrorCode(ShuttleErrorCodeType type) {
        this.errorCode = type.desc;
        this.errorCodeType = type;
    }
    public String getPlcOutputLift$() {
        if (this.plcOutputLift == null) {
            return null;
        }
        return this.plcOutputLift ? "Y" : "N";
    }
    public String getPlcOutputTransfer$() {
        if (this.plcOutputTransfer == null) {
            return null;
        }
        return this.plcOutputTransfer ? "Y" : "N";
    }
    public String getPlcOutputBrake$() {
        if (this.plcOutputBrake == null) {
            return null;
        }
        return this.plcOutputBrake ? "Y" : "N";
    }
    public String getPlcOutputCharge$() {
        if (this.plcOutputCharge == null) {
            return null;
        }
        return this.plcOutputCharge ? "Y" : "N";
    }
}