From 88fc713144a877a4257b4173fbfadafd926c94de Mon Sep 17 00:00:00 2001
From: skyouc <creaycat@gmail.com>
Date: 星期五, 09 一月 2026 20:35:19 +0800
Subject: [PATCH] 出库再入库

---
 src/main/java/com/zy/asrs/entity/OrderDetl.java |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/entity/OrderDetl.java b/src/main/java/com/zy/asrs/entity/OrderDetl.java
index aa96844..8f25411 100644
--- a/src/main/java/com/zy/asrs/entity/OrderDetl.java
+++ b/src/main/java/com/zy/asrs/entity/OrderDetl.java
@@ -1,5 +1,6 @@
 package com.zy.asrs.entity;
 
+import com.alibaba.excel.annotation.ExcelProperty;
 import com.baomidou.mybatisplus.annotations.TableField;
 import com.baomidou.mybatisplus.annotations.TableId;
 import com.baomidou.mybatisplus.annotations.TableName;
@@ -15,12 +16,14 @@
 import com.zy.system.service.UserService;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
+import org.springframework.beans.BeanUtils;
 import org.springframework.format.annotation.DateTimeFormat;
 
 import java.io.Serializable;
 import java.text.SimpleDateFormat;
 import java.util.Date;
 import java.util.List;
+import java.util.Objects;
 
 @Data
 @TableName("man_order_detl")
@@ -46,6 +49,7 @@
      * 鍗曟嵁缂栧彿
      */
     @ApiModelProperty(value= "鍗曟嵁缂栧彿")
+    @ExcelProperty(index = 0, value = "鍗曞彿")
     @TableField("order_no")
     private String orderNo;
 
@@ -54,6 +58,7 @@
      * 鏁伴噺
      */
     @ApiModelProperty(value= "鏁伴噺")
+    @ExcelProperty(value = "鏁伴噺")
     private Double anfme;
 
     /**
@@ -79,30 +84,35 @@
      * 鍟嗗搧缂栫爜
      */
     @ApiModelProperty(value= "鍟嗗搧缂栫爜")
+    @ExcelProperty(value = "鍟嗗搧缂栫爜")
     private String matnr;
 
     /**
      * 鍟嗗搧鍚嶇О
      */
     @ApiModelProperty(value= "鍟嗗搧鍚嶇О")
+    @ExcelProperty(value = "鍟嗗搧鍚嶇О")
     private String maktx;
 
     /**
      * 鎵瑰彿
      */
     @ApiModelProperty(value= "鎵瑰彿")
+    @ExcelProperty(value = "鎵瑰彿")
     private String batch;
 
     /**
      * 瑙勬牸
      */
     @ApiModelProperty(value= "瑙勬牸")
+    @ExcelProperty(value = "瑙勬牸")
     private String specs;
 
     /**
      * 鍨嬪彿
      */
     @ApiModelProperty(value= "鍨嬪彿")
+    @ExcelProperty(value = "鍨嬪彿")
     private String model;
 
     /**
@@ -115,12 +125,14 @@
      * 鍝佺墝
      */
     @ApiModelProperty(value= "鍝佺墝")
+    @ExcelProperty(value = "鍝佺墝")
     private String brand;
 
     /**
      * 鍗曚綅
      */
     @ApiModelProperty(value= "鍗曚綅")
+    @ExcelProperty(value = "鍗曚綅")
     private String unit;
 
     /**
@@ -145,6 +157,7 @@
      * 鏉$爜
      */
     @ApiModelProperty(value= "鏉$爜")
+    @ExcelProperty(value = "SN鐮�")
     private String barcode;
 
     /**
@@ -178,6 +191,7 @@
      */
     @ApiModelProperty(value= "瀹夊叏搴撳瓨閲�")
     @TableField("safe_qty")
+    @ExcelProperty(value = "褰掗浂闃�鍊�")
     private Double safeQty;
 
     /**
@@ -197,6 +211,7 @@
      * 浣撶Н
      */
     @ApiModelProperty(value= "浣撶Н")
+    @ExcelProperty(value = "km/cm")
     private Double volume;
 
     /**
@@ -628,7 +643,9 @@
     }
 
     public void sync(Object source) {
-        Synchro.Copy(source, this);
+        if (!Objects.isNull(source)) {
+            BeanUtils.copyProperties(source, this);
+        }
     }
 
 }
\ No newline at end of file

--
Gitblit v1.9.1