From c247f5bf64c98595cc7e4efc9e1ae7ff1df79c11 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 23 四月 2026 14:05:32 +0800
Subject: [PATCH] refactor(swagger): 迁移Swagger注解到OpenAPI 3.0

---
 src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java |   49 ++++++++++++++++++++++++-------------------------
 1 files changed, 24 insertions(+), 25 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..a6aa0ce 100644
--- a/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java
+++ b/src/main/java/com/ruoyi/production/bean/dto/ProductionPlanImportDto.java
@@ -2,8 +2,7 @@
 
 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;
@@ -19,82 +18,82 @@
  * @since 2026/03/11 11:28
  */
 @Data
-@ApiModel("閿�鍞敓浜ч渶姹� Excel瀵煎叆瀵煎嚭DTO")
+@Schema(name = "閿�鍞敓浜ч渶姹� Excel瀵煎叆瀵煎嚭DTO")
 public class ProductionPlanImportDto {
     /**
      * 鐢宠鍗曠紪鍙�
      */
-    @ApiModelProperty("鐢宠鍗曠紪鍙�")
+    @Schema(description = "鐢宠鍗曠紪鍙�")
     @Excel(name = "鐢宠鍗曠紪鍙�")
     private String applyNo;
 
     /**
      * 瀹㈡埛鍚嶇О
      */
-    @ApiModelProperty("瀹㈡埛鍚嶇О")
+    @Schema(description = "瀹㈡埛鍚嶇О")
     @Excel(name = "瀹㈡埛鍚嶇О")
     private String customerName;
 
     /**
      * 鐗╂枡缂栫爜
      */
-    @ApiModelProperty("鐗╂枡缂栫爜")
+    @Schema(description = "鐗╂枡缂栫爜")
     @Excel(name = "鐗╂枡缂栫爜")
     private String materialCode;
 
     /**
      * 浜у搧鍚嶇О
      */
-    @ApiModelProperty("浜у搧鍚嶇О")
+    @Schema(description = "浜у搧鍚嶇О")
     @Excel(name = "浜у搧鍚嶇О")
     private String productName;
 
     /**
      * 浜у搧瑙勬牸
      */
-    @ApiModelProperty("浜у搧瑙勬牸")
+    @Schema(description = "浜у搧瑙勬牸")
     @Excel(name = "浜у搧瑙勬牸")
     private String productSpec;
 
     /**
      * 闀�
      */
-    @ApiModelProperty("闀�")
+    @Schema(description = "闀�")
     @Excel(name = "闀�(mm)")
     private Integer length;
 
     /**
      * 瀹�
      */
-    @ApiModelProperty("瀹�")
+    @Schema(description = "瀹�")
     @Excel(name = "瀹�(mm)")
     private Integer width;
 
     /**
      * 楂�
      */
-    @ApiModelProperty("楂�")
+    @Schema(description = "楂�")
     @Excel(name = "楂�(mm)")
     private Integer height;
 
     /**
      * 鍧楁暟
      */
-    @ApiModelProperty("鍧楁暟")
+    @Schema(description = "鍧楁暟")
     @Excel(name = "鍧楁暟")
     private Integer quantity;
 
     /**
      * 鏂规暟
      */
-    @ApiModelProperty("鏂规暟")
+    @Schema(description = "鏂规暟")
     @Excel(name = "鏂规暟")
     private BigDecimal volume;
 
     /**
      * 寮哄害
      */
-    @ApiModelProperty("寮哄害")
+    @Schema(description = "寮哄害")
     @Excel(name = "寮哄害")
     private String strength;
 
@@ -102,7 +101,7 @@
      * 寮�濮嬫棩鏈�
      */
     @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    @ApiModelProperty("寮�濮嬫棩鏈�")
+    @Schema(description = "寮�濮嬫棩鏈�")
     @Excel(name = "寮�濮嬫棩鏈�", width = 20, dateFormat = "yyyy-MM-dd")
     private Date startDate;
 
@@ -110,68 +109,68 @@
      * 缁撴潫鏃ユ湡
      */
     @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
-    @ApiModelProperty("缁撴潫鏃ユ湡")
+    @Schema(description = "缁撴潫鏃ユ湡")
     @Excel(name = "缁撴潫鏃ユ湡", width = 20, dateFormat = "yyyy-MM-dd")
     private Date endDate;
 
     /**
      * 鎻愪氦浜�
      */
-    @ApiModelProperty("鎻愪氦浜�")
+    @Schema(description = "鎻愪氦浜�")
     @Excel(name = "鎻愪氦浜�")
     private String submitter;
 
     /**
      * 鎻愪氦浜虹粍缁�
      */
-    @ApiModelProperty("鎻愪氦浜虹粍缁�")
+    @Schema(description = "鎻愪氦浜虹粍缁�")
     @Excel(name = "鎻愪氦浜虹粍缁�")
     private String submitOrg;
 
     /**
      * 澶囨敞1
      */
-    @ApiModelProperty("澶囨敞1")
+    @Schema(description = "澶囨敞1")
     @Excel(name = "澶囨敞1")
     private String remarkOne;
 
     /**
      * 澶囨敞2
      */
-    @ApiModelProperty("澶囨敞2")
+    @Schema(description = "澶囨敞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=瀹氭椂浠诲姟")
+    @Schema(description = "鏁版嵁鍚屾绫诲瀷锛�1=鎵嬪姩 2=瀹氭椂浠诲姟")
     private Integer dataSyncType;
 
     /**
      * 鏁版嵁鏉ユ簮绫诲瀷锛�1=鍚屾 2=鏂板
      */
-    @ApiModelProperty("鏁版嵁鏉ユ簮绫诲瀷锛�1=鍚屾 2=鏂板")
+    @Schema(description = "鏁版嵁鏉ユ簮绫诲瀷锛�1=鍚屾 2=鏂板")
     private Integer dataSourceType;
 
     /**
      * 涓嬪彂鏁伴噺
      */
-    @ApiModelProperty("涓嬪彂鏁伴噺")
+    @Schema(description = "涓嬪彂鏁伴噺")
     @Excel(name = "涓嬪彂鏁伴噺", type = Excel.Type.EXPORT)
     private BigDecimal assignedQuantity;
 }

--
Gitblit v1.9.3