zc
2025-04-24 f11edf2a41cd186ce46581f0b72ebccfc650674f
src/main/java/com/zy/asrs/domain/vo/LiftStateTableVo.java
@@ -1,7 +1,6 @@
package com.zy.asrs.domain.vo;
import com.zy.core.enums.LiftNotReadyType;
import com.zy.core.enums.LiftProtocolStatusType;
import com.zy.core.enums.ForkLiftProtocolStatusType;
import lombok.Data;
@Data
@@ -25,143 +24,11 @@
     */
    private Integer protocolStatus;
    /**
     * 模式
     */
    private Boolean model;
    /**
     * 忙闲
     */
    private Boolean busy;
    /**
     * 有托盘
     */
    private Boolean hasTray;
    /**
     * 有小车
     */
    private Boolean hasCar;
    /**
     * 设备故障
     */
    private Boolean deviceError;
    /**
     * 前超限
     */
    private Boolean frontOverrun;
    /**
     * 后超限
     */
    private Boolean backOverrun;
    /**
     * 左超限
     */
    private Boolean leftOverrun;
    /**
     * 右超限
     */
    private Boolean rightOverrun;
    /**
     * 超高
     */
    private Boolean overHeight;
    /**
     * 超重
     */
    private Boolean overWeight;
    public String getModel$() {
        if (this.model == null) {
            return "离线";
        }
        return this.model ? "自动" : "手动";
    }
    public String getBusy$() {
        if (this.busy == null) {
            return "-";
        }
        return this.busy ? "忙碌" : "空闲";
    }
    public String getHasTray$() {
        if (this.hasTray == null) {
            return "-";
        }
        return this.hasTray ? "Y" : "N";
    }
    public String getHasCar$() {
        if (this.hasCar == null) {
            return "N";
        }
        return this.hasCar ? "Y" : "N";
    }
    public String getDeviceError$() {
        if (this.deviceError == null) {
            return "N";
        }
        return this.deviceError ? "Y" : "N";
    }
    public String getFrontOverrun$() {
        if (this.frontOverrun == null) {
            return "N";
        }
        return this.frontOverrun ? "Y" : "N";
    }
    public String getBackOverrun$() {
        if (this.backOverrun == null) {
            return "N";
        }
        return this.backOverrun ? "Y" : "N";
    }
    public String getLeftOverrun$() {
        if (this.leftOverrun == null) {
            return "N";
        }
        return this.leftOverrun ? "Y" : "N";
    }
    public String getRightOverrun$() {
        if (this.rightOverrun == null) {
            return "N";
        }
        return this.rightOverrun ? "Y" : "N";
    }
    public String getOverHeight$() {
        if (this.overHeight == null) {
            return "N";
        }
        return this.overHeight ? "Y" : "N";
    }
    public String getOverWeight$() {
        if (this.overWeight == null) {
            return "N";
        }
        return this.overWeight ? "Y" : "N";
    }
    public String getProtocolStatus$() {
        if (this.protocolStatus == null) {
            return LiftProtocolStatusType.OFFLINE.desc;
            return ForkLiftProtocolStatusType.NONE.desc;
        }
        return LiftProtocolStatusType.get(this.protocolStatus).desc;
        return ForkLiftProtocolStatusType.get(this.protocolStatus).desc;
    }
}