From 141f60bd32ea2027665a0495b6d9f538e8b7dad0 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 10 四月 2025 14:19:04 +0800
Subject: [PATCH] #修改 1. 修改收货单历史档显示 2. 修改采购PO单显示问题

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java |   37 ++++++++++++++++++++++---------------
 1 files changed, 22 insertions(+), 15 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java
index 2889ab5..d256b0c 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/StockItem.java
@@ -3,19 +3,17 @@
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
+import com.baomidou.mybatisplus.annotation.*;
 import com.vincent.rsf.server.manager.service.*;
+import lombok.experimental.Accessors;
 import org.springframework.format.annotation.DateTimeFormat;
-import com.baomidou.mybatisplus.annotation.TableLogic;
+
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
-import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import com.vincent.rsf.framework.common.Cools;
@@ -23,9 +21,9 @@
 import com.vincent.rsf.server.system.service.UserService;
 import com.vincent.rsf.server.system.entity.User;
 import java.io.Serializable;
-import java.util.Date;
 
 @Data
+@Accessors(chain = true)
 @TableName("man_stock_item")
 public class StockItem implements Serializable {
 
@@ -39,10 +37,16 @@
     private Long id;
 
     /**
+     * 浠诲姟鏄庣粏ID
+     */
+    @ApiModelProperty("浠诲姟鏄庣粏ID")
+    private Long taskItemId;
+
+    /**
      * 搴撳瓨澶栭敭鏍囪瘑
      */
     @ApiModelProperty(value= "搴撳瓨澶栭敭鏍囪瘑")
-    private String stockId;
+    private Long stockId;
 
     /**
      * 鐗╂枡鏍囪瘑
@@ -54,7 +58,7 @@
      * 鐗╂枡缂栫爜
      */
     @ApiModelProperty(value= "鐗╂枡缂栫爜")
-    private String code;
+    private String matnrCode;
 
 
     @ApiModelProperty(value = "閫氱煡鍗曟槑缁嗘爣璇�")
@@ -64,7 +68,7 @@
      * 鍚嶇О
      */
     @ApiModelProperty(value= "鍚嶇О")
-    private String matnrk;
+    private String maktx;
 
     /**
      * 鏁伴噺
@@ -142,24 +146,28 @@
      * ASN鍗曟嵁,甯﹀嚭PO鍗�
      */
     @ApiModelProperty(value= "ASN鍗曟嵁,甯﹀嚭PO鍗�")
+    @TableField(exist = false)
     private String asnOrder;
 
     /**
      * ERP鍑瘉
      */
     @ApiModelProperty(value= "ERP鍑瘉")
+    @TableField(exist = false)
     private String erpToken;
 
     /**
      * ERP鍗曞彿
      */
     @ApiModelProperty(value= "ERP鍗曞彿")
+    @TableField(exist = false)
     private String erpOrder;
 
     /**
      * ERP搴撳瓨鍦板潃
      */
     @ApiModelProperty(value= "ERP搴撳瓨鍦板潃")
+    @TableField(exist = false)
     private String erpStkAdr;
 
     /**
@@ -202,7 +210,6 @@
      * 閿佸畾鏃堕棿
      */
     @ApiModelProperty(value= "閿佸畾鏃堕棿")
-    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
     private Date lockedTime;
 
     /**
@@ -258,12 +265,12 @@
 
     public StockItem() {}
 
-    public StockItem(String stockId,Long matnrId,Long asnItemId, String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
+    public StockItem(Long stockId,Long matnrId,Long asnItemId, String code,String matnrk,Double anfme,Double workQty,Double qty,Double weight,String unit,Long shipperId,String splrId,String brand,String batch,String prodTime,Long inspectId,String splrBtch,String asnOrder,String erpToken,String erpOrder,String erpStkAdr,Long locId,String barcode,Double purPrice,String lockReason,Short lockStatus,String locker,Date lockedTime,Integer status,Integer deleted,Integer tenantId,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
         this.stockId = stockId;
         this.matnrId = matnrId;
         this.asnItemId = asnItemId;
-        this.code = code;
-        this.matnrk = matnrk;
+        this.matnrCode = code;
+        this.maktx = matnrk;
         this.anfme = anfme;
         this.workQty = workQty;
         this.qty = qty;
@@ -375,7 +382,7 @@
         QlyInspectService service = SpringUtils.getBean(QlyInspectService.class);
         QlyInspect qlyInspect = service.getById(this.inspectId);
         if (!Cools.isEmpty(qlyInspect)){
-            return String.valueOf(qlyInspect.getName());
+            return String.valueOf(qlyInspect.getCode());
         }
         return null;
     }
@@ -384,7 +391,7 @@
         LocService service = SpringUtils.getBean(LocService.class);
         Loc loc = service.getById(this.locId);
         if (!Cools.isEmpty(loc)){
-            return String.valueOf(loc.getName());
+            return String.valueOf(loc.getCode());
         }
         return null;
     }

--
Gitblit v1.9.1