From 7180e7e7c548c78f327a9f66c2bc89af64039e7e Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期三, 12 六月 2024 13:10:38 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java |   53 +++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 49 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
index 9c5ebeb..4c1da09 100644
--- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
+++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java
@@ -3,6 +3,7 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.zy.asrs.wcs.core.service.BusService;
 import com.zy.asrs.wcs.core.service.TaskCtgService;
 import com.zy.asrs.wcs.core.service.TaskStsService;
@@ -189,7 +190,6 @@
      * 鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  
      */
     @ApiModelProperty(value= "鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  ")
-    @TableLogic
     private Integer deleted;
 
     /**
@@ -224,9 +224,46 @@
     @ApiModelProperty(value= "澶囨敞")
     private String memo;
 
+    /**
+     * 鍥涘悜绌挎杞﹀彿
+     */
+    @ApiModelProperty(value= "鍥涘悜绌挎杞﹀彿")
+    private Integer shuttleNo;
+
+    /**
+     * 鎻愬崌鏈哄彿
+     */
+    @ApiModelProperty(value= "鎻愬崌鏈哄彿")
+    private Integer liftNo;
+
+    /**
+     * 鍫嗗灈鏈哄彿
+     */
+    @ApiModelProperty(value= "鍫嗗灈鏈哄彿")
+    private Integer crnNo;
+
+    /**
+     * RGV鍙�
+     */
+    @ApiModelProperty(value= "RGV鍙�")
+    private Integer rgvNo;
+
+    /**
+     * AGV鍙�
+     */
+    @ApiModelProperty(value= "AGV鍙�")
+    private Integer agvNo;
+
+    /**
+     * 鏄惁璁板綍搴撲綅淇℃伅
+     */
+    @ApiModelProperty(value= "鏄惁璁板綍搴撲綅淇℃伅")
+    private String recordLoc;
+
+
     public Task() {}
 
-    public Task(String uuid,Long busId,String taskNo,String serialNum,String title,Long taskSts,Long taskCtg,Integer priority,String originSite,String originLoc,String destSite,String destLoc,Integer emptyMk,String zpallet,String phase,Date ioTime,Date startTime,Date endTime,Date exceptionTime,String exceptionDesc,Long hostId,Integer status,Integer deleted,Date createTime,Long createBy,Date updateTime,Long updateBy,String memo) {
+    public Task(String uuid, Long busId, String taskNo, String serialNum, String title, Long taskSts, Long taskCtg, Integer priority, String originSite, String originLoc, String destSite, String destLoc, Integer emptyMk, String zpallet, String phase, Date ioTime, Date startTime, Date endTime, Date exceptionTime, String exceptionDesc, Long hostId, Integer status, Integer deleted, Date createTime, Long createBy, Date updateTime, Long updateBy, String memo, Integer shuttleNo, Integer liftNo, Integer crnNo, Integer rgvNo, Integer agvNo, String recordLoc) {
         this.uuid = uuid;
         this.busId = busId;
         this.taskNo = taskNo;
@@ -255,9 +292,15 @@
         this.updateTime = updateTime;
         this.updateBy = updateBy;
         this.memo = memo;
+        this.shuttleNo = shuttleNo;
+        this.liftNo = liftNo;
+        this.crnNo = crnNo;
+        this.rgvNo = rgvNo;
+        this.agvNo = agvNo;
+        this.recordLoc = recordLoc;
     }
 
-//    Task task = new Task(
+    //    Task task = new Task(
 //            null,    // 缂栧彿
 //            null,    // 鎬荤嚎
 //            null,    // 浠诲姟鍙�
@@ -299,7 +342,9 @@
 
     public String getTaskSts$(){
         TaskStsService service = SpringUtils.getBean(TaskStsService.class);
-        TaskSts taskSts = service.getById(this.taskSts);
+        TaskSts taskSts = service.getOne(new LambdaQueryWrapper<TaskSts>()
+                .eq(TaskSts::getUuid, String.valueOf(this.taskSts))
+                .eq(TaskSts::getHostId, this.hostId));
         if (!Cools.isEmpty(taskSts)){
             return String.valueOf(taskSts.getName());
         }

--
Gitblit v1.9.1