From 16dbf4a7062e0a228ebde98e1eaedd7a499b9b1d Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期三, 06 五月 2026 15:43:13 +0800
Subject: [PATCH] refactor(procurement): 优化库存记录方法调用

---
 src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java |  170 ++++++++++++--------------------------------------------
 1 files changed, 37 insertions(+), 133 deletions(-)

diff --git a/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java b/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java
index d531eac..5dd5160 100644
--- a/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java
+++ b/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java
@@ -1,13 +1,11 @@
 package com.ruoyi.production.bean.dto;
 
-import com.fasterxml.jackson.annotation.JsonFormat;
 import com.ruoyi.framework.aspectj.lang.annotation.Excel;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Data;
 
 import java.math.BigDecimal;
-import java.util.Date;
+import java.time.LocalDate;
 
 /**
  * <br>
@@ -19,159 +17,65 @@
  * @since 2026/03/11 11:28
  */
 @Data
-@ApiModel("閿�鍞敓浜ч渶姹� Excel瀵煎叆瀵煎嚭DTO")
+@Schema(name = "閿�鍞敓浜ч渶姹� Excel瀵煎叆瀵煎嚭DTO")
 public class ProductionPlanImportDto {
-    /**
-     * 鐢宠鍗曠紪鍙�
-     */
-    @ApiModelProperty("鐢宠鍗曠紪鍙�")
-    @Excel(name = "鐢宠鍗曠紪鍙�")
-    private String applyNo;
 
-    /**
-     * 瀹㈡埛鍚嶇О
-     */
-    @ApiModelProperty("瀹㈡埛鍚嶇О")
-    @Excel(name = "瀹㈡埛鍚嶇О")
-    private String customerName;
+    @Schema(description = "涓荤敓浜ц鍒掑彿")
+    @Excel(name = "涓荤敓浜ц鍒掑彿")
+    private String mpsNo;
 
-    /**
-     * 鐗╂枡缂栫爜
-     */
-    @ApiModelProperty("鐗╂枡缂栫爜")
-    @Excel(name = "鐗╂枡缂栫爜")
-    private String materialCode;
+    @Schema(description = "闇�姹傛棩鏈�")
+    @Excel(name = "闇�姹傛棩鏈�")
+    private LocalDate requiredDate;
 
-    /**
-     * 浜у搧鍚嶇О
-     */
-    @ApiModelProperty("浜у搧鍚嶇О")
+    @Schema(description = "澶囨敞")
+    @Excel(name = "澶囨敞")
+    private String remark;
+
+    @Schema(description = "闇�姹傛暟閲�")
+    @Excel(name = "闇�姹傛暟閲�")
+    private BigDecimal qtyRequired;
+
+    @Schema(description = "鏉ユ簮 閿�鍞�/鍐呴儴")
+    @Excel(name = "鏉ユ簮 閿�鍞�/鍐呴儴")
+    private String source;
+
+    @Schema(description = "鎵胯鏃ユ湡")
+    @Excel(name = "鎵胯鏃ユ湡")
+    private LocalDate promisedDeliveryDate;
+
+    @Schema(description = "浜у搧鍚嶇О")
     @Excel(name = "浜у搧鍚嶇О")
     private String productName;
 
-    /**
-     * 浜у搧瑙勬牸
-     */
-    @ApiModelProperty("浜у搧瑙勬牸")
-    @Excel(name = "浜у搧瑙勬牸")
-    private String productSpec;
+    @Schema(description = "瑙勬牸鍨嬪彿")
+    @Excel(name = "瑙勬牸鍨嬪彿")
+    private String model;
 
-    /**
-     * 闀�
-     */
-    @ApiModelProperty("闀�")
-    @Excel(name = "闀�(mm)")
-    private Integer length;
+    @Schema(description = "鍗曚綅")
+    @Excel(name = "鍗曚綅")
+    private String unit;
 
-    /**
-     * 瀹�
-     */
-    @ApiModelProperty("瀹�")
-    @Excel(name = "瀹�(mm)")
-    private Integer width;
-
-    /**
-     * 楂�
-     */
-    @ApiModelProperty("楂�")
-    @Excel(name = "楂�(mm)")
-    private Integer height;
-
-    /**
-     * 鍧楁暟
-     */
-    @ApiModelProperty("鍧楁暟")
-    @Excel(name = "鍧楁暟")
-    private Integer quantity;
-
-    /**
-     * 鏂规暟
-     */
-    @ApiModelProperty("鏂规暟")
-    @Excel(name = "鏂规暟")
-    private BigDecimal volume;
-
-    /**
-     * 寮哄害
-     */
-    @ApiModelProperty("寮哄害")
-    @Excel(name = "寮哄害")
-    private String strength;
-
-    /**
-     * 寮�濮嬫棩鏈�
-     */
-    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    @ApiModelProperty("寮�濮嬫棩鏈�")
-    @Excel(name = "寮�濮嬫棩鏈�", width = 20, dateFormat = "yyyy-MM-dd")
-    private Date startDate;
-
-    /**
-     * 缁撴潫鏃ユ湡
-     */
-    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    @ApiModelProperty("缁撴潫鏃ユ湡")
-    @Excel(name = "缁撴潫鏃ユ湡", width = 20, dateFormat = "yyyy-MM-dd")
-    private Date endDate;
-
-    /**
-     * 鎻愪氦浜�
-     */
-    @ApiModelProperty("鎻愪氦浜�")
-    @Excel(name = "鎻愪氦浜�")
-    private String submitter;
-
-    /**
-     * 鎻愪氦浜虹粍缁�
-     */
-    @ApiModelProperty("鎻愪氦浜虹粍缁�")
-    @Excel(name = "鎻愪氦浜虹粍缁�")
-    private String submitOrg;
-
-    /**
-     * 澶囨敞1
-     */
-    @ApiModelProperty("澶囨敞1")
-    @Excel(name = "澶囨敞1")
-    private String remarkOne;
-
-    /**
-     * 澶囨敞2
-     */
-    @ApiModelProperty("澶囨敞2")
-    @Excel(name = "澶囨敞2")
-    private String remarkTwo;
 
     /**
      * 鍒涘缓浜�
      */
-    @ApiModelProperty("鍒涘缓浜�")
+    @Schema(description = "鍒涘缓浜�")
     @Excel(name = "鍒涘缓浜�", type = Excel.Type.EXPORT)
     private String creatorName;
 
     /**
      * 淇敼浜�
      */
-    @ApiModelProperty("淇敼浜�")
+    @Schema(description = "淇敼浜�")
     @Excel(name = "淇敼浜�", type = Excel.Type.EXPORT)
     private String modifierName;
 
-    /**
-     * 鏁版嵁鍚屾绫诲瀷锛�1=鎵嬪姩 2=瀹氭椂浠诲姟
-     */
-    @ApiModelProperty("鏁版嵁鍚屾绫诲瀷锛�1=鎵嬪姩 2=瀹氭椂浠诲姟")
-    private Integer dataSyncType;
 
     /**
-     * 鏁版嵁鏉ユ簮绫诲瀷锛�1=鍚屾 2=鏂板
+     * 宸蹭笅鍙戞暟閲�
      */
-    @ApiModelProperty("鏁版嵁鏉ユ簮绫诲瀷锛�1=鍚屾 2=鏂板")
-    private Integer dataSourceType;
-
-    /**
-     * 涓嬪彂鏁伴噺
-     */
-    @ApiModelProperty("涓嬪彂鏁伴噺")
-    @Excel(name = "涓嬪彂鏁伴噺", type = Excel.Type.EXPORT)
+    @Schema(description = "宸蹭笅鍙戞暟閲�")
+    @Excel(name = "宸蹭笅鍙戞暟閲�", type = Excel.Type.EXPORT)
     private BigDecimal assignedQuantity;
 }

--
Gitblit v1.9.3