自动化立体仓库 - WCS系统
#
Junjie
2025-02-11 ed265ddfb8f08f69af064a9adf65fcbf06289ffe
src/main/java/com/zy/asrs/domain/vo/ShuttleStateTableVo.java
@@ -1,9 +1,6 @@
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.ShuttleProtocolStatusType;
import com.zy.core.enums.ShuttleStatusType;
import lombok.Data;
@@ -14,7 +11,7 @@
    private Integer shuttleNo;
    // 状态
    private String status = "-";
    private Integer status;
    //四向穿梭车忙装填
    private String busyStatus = "-";
@@ -101,11 +98,6 @@
    private String statusErrorCode;
    /**
     * 错误信息码枚举
     */
    private ShuttleErrorCodeType errorCodeType;
    /**
     * PLC输入状态
     */
    private Short plcInputStatus;
@@ -128,7 +120,7 @@
    /**
     * 当前的电压值
     */
    private Double currentVoltage;
    private Integer currentVoltage;
    /**
     * 当前的模拟量值
@@ -165,21 +157,6 @@
     */
    public String loca = "-";
    public String getErrorCode$() {
        if(this.errorCodeType == null) return null;
        return this.errorCodeType.desc;
    }
    public void setErrorCode(Short errorCode) {
        this.errorCode = ShuttleErrorCodeType.get(errorCode.intValue()).desc;
        this.errorCodeType = ShuttleErrorCodeType.get(errorCode.intValue());
    }
    public void setErrorCode(ShuttleErrorCodeType type) {
        this.errorCode = type.desc;
        this.errorCodeType = type;
    }
    public String getPlcOutputLift$() {
        if (this.plcOutputLift == null) {
            return null;
@@ -208,4 +185,18 @@
        return this.plcOutputCharge ? "Y" : "N";
    }
    public String getStatus$() {
        if (this.status == null) {
            return ShuttleProtocolStatusType.OFFLINE.desc;
        }
        return ShuttleProtocolStatusType.get(this.status).desc;
    }
    public String getCurrentVoltage$() {
        if (this.currentVoltage == null) {
            return "";
        }
        return (this.currentVoltage / 1000.0) + "V";
    }
}