From ebf0db91e09be33fcbfe97ed5b91965dc2e61dfd Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期四, 01 八月 2024 10:54:26 +0800
Subject: [PATCH] 1. 托盘管理 2. 入库通知档导入功能 3. 工作档明细 新增来源单据类型及单据编号 4. 库存明细统计表 增加一栏ERP数量(需跟ERP确认接口实现方式)。 5. 存货档案、单据管理、库存管理可以支持模糊搜索(各个单据界面)。

---
 zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java b/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java
index 417fb05..e1ea2c5 100644
--- a/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java
+++ b/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/entity/WrkDetl.java
@@ -4,6 +4,7 @@
 import java.util.Date;
 
 import com.zy.asrs.common.utils.Synchro;
+import com.zy.asrs.common.wms.service.OrderService;
 import org.springframework.format.annotation.DateTimeFormat;
 import java.text.SimpleDateFormat;
 import java.util.Date;
@@ -280,9 +281,18 @@
     @ApiModelProperty(value= "鎺堟潈鍟嗘埛")
     private Long hostId;
 
+    /**
+     * 宸ヤ綔妗D
+     */
+    @ApiModelProperty(value= "宸ヤ綔妗D")
+    private Long wrkMastId;
+
+    @ApiModelProperty(value= "璐т富")
+    private String owner;
+
     public WrkDetl() {}
 
-    public WrkDetl(Integer wrkNo,Date ioTime,Double anfme,String zpallet,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId) {
+    public WrkDetl(Integer wrkNo,Date ioTime,Double anfme,String zpallet,String matnr,String maktx,String batch,String orderNo,String specs,String model,String color,String brand,String unit,Double price,String sku,Double units,String barcode,String origin,String manu,String manuDate,String itemNum,Double safeQty,Double weight,Double length,Double volume,String threeCode,String supp,String suppCode,Integer beBatch,String deadTime,Integer deadWarn,Integer source,Integer inspect,Integer danger,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String memo,Long hostId,String owner) {
         this.wrkNo = wrkNo;
         this.ioTime = ioTime;
         this.anfme = anfme;
@@ -323,6 +333,7 @@
         this.appeTime = appeTime;
         this.memo = memo;
         this.hostId = hostId;
+        this.owner = owner;
     }
 
 //    WrkDetl wrkDetl = new WrkDetl(
@@ -374,7 +385,6 @@
         }
         return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ioTime);
     }
-
     public String getBeBatch$(){
         if (null == this.beBatch){ return null; }
         switch (this.beBatch){
@@ -466,6 +476,20 @@
         return null;
     }
 
+    public String getOrderType(){
+        if(Cools.isEmpty(orderNo)){
+            return "";
+        }
+
+        OrderService orderService = SpringUtils.getBean(OrderService.class);
+        Order order = orderService.selectByNo(orderNo, hostId);
+        if(!Cools.isEmpty(order)){
+            return order.getDocType$();
+        }
+
+        return "";
+    }
+
     public void sync(Object source) {
         Synchro.Copy(source, this);
     }

--
Gitblit v1.9.1