From e9a4418c14ef68fb454300b092c413e8df259ec2 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期六, 13 四月 2024 11:50:56 +0800
Subject: [PATCH] #

---
 zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/entity/Task.java |   44 +++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 41 insertions(+), 3 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..4ec07d8 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;
@@ -224,9 +225,39 @@
     @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;
+
     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) {
         this.uuid = uuid;
         this.busId = busId;
         this.taskNo = taskNo;
@@ -255,9 +286,14 @@
         this.updateTime = updateTime;
         this.updateBy = updateBy;
         this.memo = memo;
+        this.shuttleNo = shuttleNo;
+        this.liftNo = liftNo;
+        this.crnNo = crnNo;
+        this.rgvNo = rgvNo;
+        this.agvNo = agvNo;
     }
 
-//    Task task = new Task(
+    //    Task task = new Task(
 //            null,    // 缂栧彿
 //            null,    // 鎬荤嚎
 //            null,    // 浠诲姟鍙�
@@ -299,7 +335,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