From 2e71bdbcdf853bb35e68016b84f0254f7366bfeb Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期五, 24 四月 2026 11:14:28 +0800
Subject: [PATCH] 文件工具类变更
---
src/main/java/com/ruoyi/lavorissue/pojo/LaborIssue.java | 53 ++++++++++++++++++++++++++++-------------------------
1 files changed, 28 insertions(+), 25 deletions(-)
diff --git a/src/main/java/com/ruoyi/lavorissue/pojo/LaborIssue.java b/src/main/java/com/ruoyi/lavorissue/pojo/LaborIssue.java
index fcd7a17..af9dd0e 100644
--- a/src/main/java/com/ruoyi/lavorissue/pojo/LaborIssue.java
+++ b/src/main/java/com/ruoyi/lavorissue/pojo/LaborIssue.java
@@ -4,8 +4,7 @@
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.approve.utils.StartAndEndDateDto;
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 org.springframework.format.annotation.DateTimeFormat;
@@ -18,7 +17,7 @@
*/
@Data
@TableName("labor_issue")
-@ApiModel
+@Schema
public class LaborIssue extends StartAndEndDateDto {
private static final long serialVersionUID = 1L;
@@ -27,7 +26,7 @@
private Long id;
@TableField(exist = false)
- @ApiModelProperty("1-宸查鍙栧姵淇濇暟閲� 2-鏈鍙栧姵淇濇暟閲� 3-瓒呮椂宸查鍙栧姵淇濇暟閲� 4-瓒呮椂鏈鍙栧姵淇濇暟閲�")
+ @Schema(description = "1-宸查鍙栧姵淇濇暟閲� 2-鏈鍙栧姵淇濇暟閲� 3-瓒呮椂宸查鍙栧姵淇濇暟閲� 4-瓒呮椂鏈鍙栧姵淇濇暟閲�")
private Integer status;
@TableField(exist = false)
@@ -36,7 +35,7 @@
/**
* 閮ㄩ棬鍚嶇О
*/
- @ApiModelProperty("閮ㄩ棬鍚嶇О")
+ @Schema(description = "閮ㄩ棬鍚嶇О")
@Excel(name = "閮ㄩ棬鍚嶇О")
@TableField(exist = false)
private String deptName;
@@ -44,19 +43,20 @@
/**
* 鍔充繚鍗曞彿
*/
- @ApiModelProperty("鍔充繚鍗曞彿")
+ @Schema(description = "鍔充繚鍗曞彿")
+ @Excel(name = "鍔充繚鍗曞彿")
private String orderNo;
/**
* 鍛樺伐id
*/
- @ApiModelProperty("鍛樺伐id")
+ @Schema(description = "鍛樺伐id")
private Long staffId;
/**
* 鍛樺伐鍚嶇О
*/
- @ApiModelProperty("鍛樺伐鍚嶇О")
+ @Schema(description = "鍛樺伐鍚嶇О")
@Excel(name = "鍛樺伐鍚嶇О")
@TableField(exist = false)
private String staffName;
@@ -64,7 +64,7 @@
/**
* 鍛樺伐缂栧彿
*/
- @ApiModelProperty("鍛樺伐缂栧彿")
+ @Schema(description = "鍛樺伐缂栧彿")
@Excel(name = "鍛樺伐缂栧彿")
@TableField(exist = false)
private String staffNo;
@@ -72,13 +72,13 @@
/**
* 鍔充繚绫诲瀷-瀛楀吀
*/
- @ApiModelProperty("鍔充繚绫诲瀷-瀛楀吀")
+ @Schema(description = "鍔充繚绫诲瀷-瀛楀吀")
private String dictType;
/**
* 鍔充繚绫诲瀷
*/
- @ApiModelProperty("鍔充繚绫诲瀷")
+ @Schema(description = "鍔充繚绫诲瀷")
@Excel(name = "鍔充繚绫诲瀷")
@TableField(exist = false)
private String dictTypeName;
@@ -86,13 +86,13 @@
/**
* 闃插叿鍚嶇О-瀛楀吀
*/
- @ApiModelProperty("闃插叿鍚嶇О-瀛楀吀")
+ @Schema(description = "闃插叿鍚嶇О-瀛楀吀")
private String dictId;
/**
* 闃插叿鍚嶇О
*/
- @ApiModelProperty("闃插叿鍚嶇О")
+ @Schema(description = "闃插叿鍚嶇О")
@Excel(name = "闃插叿鍚嶇О")
@TableField(exist = false)
private String dictName;
@@ -100,23 +100,14 @@
/**
* 棰嗙敤鏁伴噺
*/
- @ApiModelProperty("棰嗙敤鏁伴噺")
+ @Schema(description = "棰嗙敤鏁伴噺")
@Excel(name = "棰嗙敤鏁伴噺")
private Long num;
/**
- * 棰嗙敤鏃ユ湡
- */
- @ApiModelProperty("棰嗙敤鏃ユ湡")
- @Excel(name = "棰嗙敤鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
- @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
- @DateTimeFormat(pattern = "yyyy-MM-dd")
- private Date adoptedDate;
-
- /**
* 杩涘巶鏃ユ湡
*/
- @ApiModelProperty("杩涘巶鏃ユ湡")
+ @Schema(description = "杩涘巶鏃ユ湡")
@Excel(name = "杩涘巶鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
@@ -125,11 +116,20 @@
/**
* 鍙戞斁鏃ユ湡
*/
- @ApiModelProperty("鍙戞斁鏃ユ湡")
+ @Schema(description = "鍙戞斁鏃ユ湡")
@Excel(name = "鍙戞斁鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date issueDate;
+
+ /**
+ * 棰嗙敤鏃ユ湡
+ */
+ @Schema(description = "棰嗙敤鏃ユ湡")
+ @Excel(name = "棰嗙敤鏃ユ湡", width = 30, dateFormat = "yyyy-MM-dd")
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ @DateTimeFormat(pattern = "yyyy-MM-dd")
+ private Date adoptedDate;
/**
* 绛惧悕
@@ -168,4 +168,7 @@
@TableField(fill = FieldFill.INSERT)
private Long tenantId;
+
+ @TableField(fill = FieldFill.INSERT)
+ private Long deptId;
}
--
Gitblit v1.9.3