自动化立体仓库 - WCS系统
Junjie
2023-04-14 9de7e9ef1f17b55278a21350d193934db158c2db
穿梭车状态和提升机状态为空问题
6个文件已修改
84 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/LiftController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/ShuttleController.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/domain/vo/LiftMsgTableVo.java 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/domain/vo/LiftStateTableVo.java 51 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/domain/vo/ShuttleStateTableVo.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/LiftController.java
@@ -14,6 +14,7 @@
import com.zy.core.cache.MessageQueue;
import com.zy.core.cache.OutputQueue;
import com.zy.core.cache.SlaveConnection;
import com.zy.core.enums.LiftProtocolStatusType;
import com.zy.core.enums.SlaveType;
import com.zy.core.model.LiftSlave;
import com.zy.core.model.Task;
@@ -56,6 +57,7 @@
            // 获取提升机信息
            LiftThread liftThread = (LiftThread) SlaveConnection.get(SlaveType.Lift, basLift.getLiftNo());
            if (liftThread == null) {
                vo.setProtocolStatus(LiftProtocolStatusType.OFFLINE.id);//离线
                continue;
            }
            LiftProtocol liftProtocol = liftThread.getLiftProtocol();
src/main/java/com/zy/asrs/controller/ShuttleController.java
@@ -144,6 +144,9 @@
            if (shuttleProtocol == null) {
                continue;
            }
            if (shuttleProtocol.getShuttleNo() == null) {
                continue;
            }
            vo.setWorkNo(shuttleProtocol.getTaskNo().intValue());//任务号
            if (shuttleProtocol.getTaskNo() > 0) {
src/main/java/com/zy/asrs/domain/vo/LiftMsgTableVo.java
@@ -57,30 +57,51 @@
    private Boolean outConveyLineCardTrayAlarm;
    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";
    }
src/main/java/com/zy/asrs/domain/vo/LiftStateTableVo.java
@@ -162,70 +162,121 @@
    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;
    }
src/main/java/com/zy/asrs/domain/vo/ShuttleStateTableVo.java
@@ -210,6 +210,9 @@
    }
    public String getStatus$() {
        if (this.status == null) {
            return ShuttleProtocolStatusType.OFFLINE.desc;
        }
        return ShuttleProtocolStatusType.get(this.status).desc;
    }
src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
@@ -277,6 +277,10 @@
    // 是否满足充电状态
    public Boolean isRequireCharge() {
        if (this.busyStatusType == null || this.pakMk == null || this.errorCodeType == null || this.taskNo == null) {
            return false;
        }
        boolean res = this.busyStatusType.equals(ShuttleStatusType.IDLE)
                && this.pakMk.equals(true)
                && this.errorCodeType.equals(ShuttleErrorCodeType.NORMAL)