Junjie
2023-05-10 11b28c7a6c5f0882b8385a370b20919c6246fc1d
src/main/java/com/zy/asrs/domain/vo/LiftStateTableVo.java
@@ -1,5 +1,6 @@
package com.zy.asrs.domain.vo;
import com.zy.core.enums.LiftNotReadyType;
import com.zy.core.enums.LiftProtocolStatusType;
import lombok.Data;
@@ -17,7 +18,7 @@
    /**
     * 当前提升机状态(内部自我维护)
     */
    private String protocolStatus;
    private Integer protocolStatus;
    /**
     * 提升机锁定
@@ -161,63 +162,122 @@
    private Boolean pakMk = true;
    public String getLiftLock$() {
        if (this.liftLock == null) {
            return "N";
        }
        return this.liftLock ? "Y" : "N";
    }
    public String getReady$() {
        if (this.ready == null) {
            return "N";
        }
        return this.ready ? "Y" : "N";
    }
    public String getNotReady$() {
        if (this.notReady == null) {
            return "-";
        }
        return LiftNotReadyType.get((int) this.notReady).desc;
    }
    public String getRunning$() {
        if (this.running == null) {
            return "N";
        }
        return this.running ? "Y" : "N";
    }
    public String getMode$() {
        if (this.mode == null) {
            return "N";
        }
        return this.mode ? "Y" : "N";
    }
    public String getLineFrontHasStock$() {
        if (this.lineFrontHasStock == null) {
            return "N";
        }
        return this.lineFrontHasStock ? "Y" : "N";
    }
    public String getForwardRotationFeedback$() {
        if (this.forwardRotationFeedback == null) {
            return "N";
        }
        return this.forwardRotationFeedback ? "Y" : "N";
    }
    public String getReverseFeedback$() {
        if (this.reverseFeedback == null) {
            return "N";
        }
        return this.reverseFeedback ? "Y" : "N";
    }
    public String getMotorOverload$() {
        if (this.motorOverload == null) {
            return "N";
        }
        return this.motorOverload ? "Y" : "N";
    }
    public String getLineEndHasStock$() {
        if (this.lineEndHasStock == null) {
            return "N";
        }
        return this.lineEndHasStock ? "Y" : "N";
    }
    public String getInConveyLineCardTrayAlarm$() {
        if (this.inConveyLineCardTrayAlarm == null) {
            return "N";
        }
        return this.inConveyLineCardTrayAlarm ? "Y" : "N";
    }
    public String getOutConveyLineCardTrayAlarm$() {
        if (this.outConveyLineCardTrayAlarm == null) {
            return "N";
        }
        return this.outConveyLineCardTrayAlarm ? "Y" : "N";
    }
    public String getPlatPositionDeviationAlarm$() {
        if (this.platPositionDeviationAlarm == null) {
            return "N";
        }
        return this.platPositionDeviationAlarm ? "Y" : "N";
    }
    public String getPlatTorqueDeviationAlarm$() {
        if (this.platTorqueDeviationAlarm == null) {
            return "N";
        }
        return this.platTorqueDeviationAlarm ? "Y" : "N";
    }
    public String getPlatShuttleCheck$() {
        if (this.platShuttleCheck == null) {
            return "N";
        }
        return this.platShuttleCheck ? "Y" : "N";
    }
    public String getPakMk$() {
        if (this.pakMk == null) {
            return "N";
        }
        return this.pakMk ? "Y" : "N";
    }
    public String getProtocolStatus$() {
        if (this.protocolStatus == null) {
            return LiftProtocolStatusType.OFFLINE.desc;
        }
        return LiftProtocolStatusType.get(this.protocolStatus).desc;
    }
}