From a40b27c3e22a152d7514d3148835238c23be303e Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期三, 10 四月 2024 14:41:14 +0800 Subject: [PATCH] Merge branch 'Four-Way-Rack' of http://47.97.1.152:5880/r/zy-asrs-master into Four-Way-Rack --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/command/ShuttleCommandService.java | 16 ++++------------ 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/command/ShuttleCommandService.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/command/ShuttleCommandService.java index e276f9a..1ef90fd 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/command/ShuttleCommandService.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/kernel/command/ShuttleCommandService.java @@ -63,14 +63,14 @@ public Boolean accept(Motion motion) { Integer deviceNo = Integer.parseInt(motion.getDevice()); ShuttleThread shuttleThread = (ShuttleThread) SlaveConnection.get(SlaveType.Shuttle, deviceNo); + if (shuttleThread == null) { + return false; + } ShuttleProtocol shuttleProtocol = shuttleThread.getStatus(); if (null == shuttleProtocol) { return false; } - if (!shuttleProtocol.getIdle()) {//璁惧涓嶇┖闂� - return false; - } - if (!shuttleProtocol.getPakMk()) { + if (!shuttleThread.isIdle()) {//璁惧涓嶇┖闂� return false; } if (motionService.count(new LambdaQueryWrapper<Motion>() @@ -91,14 +91,6 @@ LiftThread liftThread = null; LiftProtocol liftProtocol = null; - - //鍒ゆ柇灏忚溅鐘舵�� - if (shuttleProtocol.getIdle() - && shuttleProtocol.getProtocolStatusType().equals(ShuttleProtocolStatusType.IDLE) - && shuttleProtocol.getTaskNo() != 0 - ) { - return false; - } switch (Objects.requireNonNull(MotionCtgType.get(motion.getMotionCtgEl()))){ case SHUTTLE_MOVE: -- Gitblit v1.9.1