#
Junjie
2024-04-13 1c02fedc5c6856522b4fe9699a726cb3c106d255
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java
@@ -208,7 +208,7 @@
    @Override
    public ShuttleProtocol getStatus() {
        return this.shuttleProtocol;
        return this.shuttleProtocol.clone();
    }
    @Override
@@ -420,6 +420,22 @@
    }
    @Override
    public boolean isDeviceIdle() {
        if (this.shuttleProtocol.getDeviceStatus() == null
                || this.shuttleProtocol.getPakMk() == null
                || this.shuttleProtocol.getErrorCode() == null
        ) {
            return false;
        }
        boolean res = (this.shuttleProtocol.getDeviceStatus() == 3 || this.shuttleProtocol.getDeviceStatus() == 11)
                && this.shuttleProtocol.getPakMk()
                && this.shuttleProtocol.getErrorCode().equals("0")
                ;
        return res;
    }
    @Override
    public boolean isRequireCharge() {
        if (this.shuttleProtocol.getDeviceStatus() == null
                || this.shuttleProtocol.getPakMk() == null
@@ -499,6 +515,9 @@
                    return path;
                }
                List<NavigateNode> nodes = redisCommand.getAssignCommand().getNodes();//穿梭车预计路径
                if (nodes == null) {
                    return path;
                }
                if (!nodes.isEmpty()) {
                    path.addAll(nodes);
                }