From bda52da89628d1587ab804510f9995c671a318ca Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期日, 07 四月 2024 14:49:19 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/ShuttleProtocol.java |   39 +++++++++++++++++++--------------------
 1 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/ShuttleProtocol.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/ShuttleProtocol.java
index ad5496b..97b5d64 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/ShuttleProtocol.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/model/protocol/ShuttleProtocol.java
@@ -29,7 +29,7 @@
     /**
      * 鍥涘悜绌挎杞﹀彿
      */
-    private String shuttleNo;
+    private Integer shuttleNo;
 
     /**
      * 浠诲姟鍙�
@@ -89,6 +89,11 @@
      * 鏄惁椤跺崌
      */
     private Boolean hasLift;
+
+    /**
+     * 鏄惁鏈夋墭鐩�
+     */
+    private Boolean hasPallet;
 
     /**
      * 琛岄┒鏂瑰悜
@@ -163,6 +168,11 @@
     private Device device;
 
     /**
+     * 鎵╁睍瀛楁
+     */
+    private Object extend;
+
+    /**
      * 璁剧疆灏忚溅鐘舵��
      */
     public void setProtocolStatus(Integer status) {
@@ -230,6 +240,14 @@
         return this.taskNo == null ? 0 : this.taskNo;
     }
 
+    public void setTaskNo(Integer taskNo) {
+        RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class);
+        if (null != redisUtil) {
+            redisUtil.set(DeviceRedisConstant.SHUTTLE_FLAG + this.shuttleNo, taskNo);
+            this.taskNo = taskNo;
+        }
+    }
+
     //閫氳繃褰撳墠浜岀淮鐮佽幏鍙栧綋鍓嶅簱浣嶅彿
     public String getCurrentLocNo() {
         LocService locService = SpringUtils.getBean(LocService.class);
@@ -250,25 +268,6 @@
         }
 
         return currentLoc.getLocNo();
-    }
-
-    // 鏄惁澶勪簬绌洪棽寰呭懡鐘舵��
-    public Boolean isIdle() {
-        if (this.deviceStatus == null
-                || this.pakMk == null
-                || this.errorCode == null
-                || this.protocolStatus == null
-        ) {
-            return false;
-        }
-
-        boolean res = this.deviceStatus.equals(ShuttleDeviceStatusType.IDLE)
-                && this.pakMk
-                && !this.errorCode.equals("0")
-                && this.getTaskNo() == 0
-                && this.protocolStatus.intValue() == ShuttleProtocolStatusType.IDLE.id
-                ;
-        return res;
     }
 
 }

--
Gitblit v1.9.1