From 07f9e200470b261ebf7e5e9b06cf7fa38770db6e Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 07 四月 2024 10:44:45 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java |    2 ++
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasShuttle.java             |   29 +++++++++--------------------
 2 files changed, 11 insertions(+), 20 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasShuttle.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasShuttle.java
index 575f680..3846f92 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasShuttle.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/BasShuttle.java
@@ -32,10 +32,16 @@
     private static final long serialVersionUID = 1L;
 
     /**
+     * ID
+     */
+    @ApiModelProperty(value= "ID")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
      * 鍥涘悜绌挎杞﹀彿
      */
     @ApiModelProperty(value= "鍥涘悜绌挎杞﹀彿")
-    @TableId(value = "shuttle_no", type = IdType.INPUT)
     private Integer shuttleNo;
 
     /**
@@ -133,26 +139,9 @@
 
     public BasShuttle() {}
 
-    public BasShuttle(Integer shuttleNo, Integer status, Integer shuttleStatus, Integer taskNo, String idleLoc, Integer autoCharge, Integer chargeLine, Long createBy, Date createTime, Long updateBy, Date updateTime, String memo, Integer runSpeed, Integer deleted, Long hostId, String protocol) {
-        this.shuttleNo = shuttleNo;
-        this.status = status;
-        this.shuttleStatus = shuttleStatus;
-        this.taskNo = taskNo;
-        this.idleLoc = idleLoc;
-        this.autoCharge = autoCharge;
-        this.chargeLine = chargeLine;
-        this.createBy = createBy;
-        this.createTime = createTime;
-        this.updateBy = updateBy;
-        this.updateTime = updateTime;
-        this.memo = memo;
-        this.runSpeed = runSpeed;
-        this.deleted = deleted;
-        this.hostId = hostId;
-        this.protocol = protocol;
-    }
 
-    //    BasShuttle basShuttle = new BasShuttle(
+
+//    BasShuttle basShuttle = new BasShuttle(
 //            null,    // 鐘舵��
 //            null,    // 褰撳墠灏忚溅鐘舵��
 //            null,    // 浠诲姟鍙�
diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java
index 1d298e2..bee13fe 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/rcs/thread/impl/SurayShuttleThread.java
@@ -165,6 +165,8 @@
                     basShuttle = new BasShuttle();
                     //鍥涘悜绌挎杞﹀彿
                     basShuttle.setShuttleNo(Integer.valueOf(device.getDeviceNo()));
+                    basShuttle.setStatus(1);
+                    basShuttle.setDeleted(0);
                     basShuttle.setHostId(device.getHostId());
                     shuttleService.save(basShuttle);
                 }

--
Gitblit v1.9.1