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/measuringinstrumentledger/pojo/SparePartsRequisitionRecord.java |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/ruoyi/measuringinstrumentledger/pojo/SparePartsRequisitionRecord.java b/src/main/java/com/ruoyi/measuringinstrumentledger/pojo/SparePartsRequisitionRecord.java
index 931fe7f..672812b 100644
--- a/src/main/java/com/ruoyi/measuringinstrumentledger/pojo/SparePartsRequisitionRecord.java
+++ b/src/main/java/com/ruoyi/measuringinstrumentledger/pojo/SparePartsRequisitionRecord.java
@@ -2,8 +2,7 @@
 
 import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
 import lombok.Getter;
 import lombok.Setter;
 import org.springframework.format.annotation.DateTimeFormat;
@@ -22,7 +21,7 @@
 @Getter
 @Setter
 @TableName("spare_parts_requisition_record")
-@ApiModel(value = "SparePartsRequisitionRecord瀵硅薄", description = "")
+@Schema(name = "SparePartsRequisitionRecord瀵硅薄", description = "")
 public class SparePartsRequisitionRecord implements Serializable {
 
     private static final long serialVersionUID = 1L;
@@ -30,36 +29,36 @@
     @TableId(value = "id", type = IdType.AUTO)
     private Long id;
 
-    @ApiModelProperty("鏉ユ簮绫诲瀷(0 缁翠慨 1 淇濆吇)")
+    @Schema(description = "鏉ユ簮绫诲瀷(0 缁翠慨 1 淇濆吇)")
     private Integer sourceType;
 
-    @ApiModelProperty("鏉ユ簮id")
+    @Schema(description = "鏉ユ簮id")
     private Long sourceId;
 
-    @ApiModelProperty("璁惧id")
+    @Schema(description = "璁惧id")
     private Long deviceLedgerId;
 
-    @ApiModelProperty("澶囦欢id")
+    @Schema(description = "澶囦欢id")
     private Long sparePartsId;
 
-    @ApiModelProperty("鏁伴噺")
+    @Schema(description = "鏁伴噺")
     private Integer quantity;
 
-    @ApiModelProperty("鍒涘缓浜�")
+    @Schema(description = "鍒涘缓浜�")
     @TableField(fill = FieldFill.INSERT)
     private Integer createUser;
 
-    @ApiModelProperty("绉熸埛id")
+    @Schema(description = "绉熸埛id")
     @TableField(fill = FieldFill.INSERT)
     private Long tenantId;
 
-    @ApiModelProperty("褰曞叆鏃堕棿")
+    @Schema(description = "褰曞叆鏃堕棿")
     @TableField(fill = FieldFill.INSERT)
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private LocalDateTime createTime;
 
-    @ApiModelProperty("鏇存柊鏃堕棿")
+    @Schema(description = "鏇存柊鏃堕棿")
     @TableField(fill = FieldFill.INSERT_UPDATE)
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

--
Gitblit v1.9.3