From 86d65e6f837ff14b090ffc3312c013987b6f67d8 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期二, 14 十月 2025 21:59:13 +0800
Subject: [PATCH] 荣誉 新增两个字段的查询
---
zhang-content/src/main/java/com/ruoyi/domain/ZExperience.java | 82 ++++++++++++++---------------------------
1 files changed, 28 insertions(+), 54 deletions(-)
diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZExperience.java b/zhang-content/src/main/java/com/ruoyi/domain/ZExperience.java
index 458954c..8d817cc 100644
--- a/zhang-content/src/main/java/com/ruoyi/domain/ZExperience.java
+++ b/zhang-content/src/main/java/com/ruoyi/domain/ZExperience.java
@@ -3,8 +3,14 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.common.annotation.Excel;
+import lombok.Data;
+import lombok.ToString;
+
import java.io.Serializable;
import java.time.LocalDateTime;
+import java.util.Date;
/**
* <p>
@@ -14,83 +20,51 @@
* @author ojq
* @since 2023-03-14
*/
+
+@Data
+@ToString
@TableName("z_experience")
public class ZExperience implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
- private Integer id;
+ private Long id;
/**
* 鐢ㄦ埛id
*/
- private Integer userId;
+ private Long userId;
/**
* 涓昏瀛︿範缁忓巻銆佸伐浣滃崟浣嶅強浠昏亴鎯呭喌
*/
+
+ @Excel(name = "涓昏瀛︿範缁忓巻銆佸伐浣滃崟浣嶅強浠昏亴鎯呭喌")
private String content;
/**
* 璧峰鏃ユ湡
*/
- private LocalDateTime startDate;
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "璧峰鏃ユ湡", dateFormat = "yyyy-MM-dd")
+ private Date startDate;
+
+ /**
+ * 缁撴潫鏃ユ湡
+ */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "缁撴潫鏃ユ湡", dateFormat = "yyyy-MM-dd")
+ private Date endDate;
/**
* 璇佹槑浜哄悕瀛�
*/
+ @Excel(name = "璇佹槑浜哄悕瀛�")
private String witness;
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public Integer getUserId() {
- return userId;
- }
-
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
-
- public String getContent() {
- return content;
- }
-
- public void setContent(String content) {
- this.content = content;
- }
-
- public LocalDateTime getStartDate() {
- return startDate;
- }
-
- public void setStartDate(LocalDateTime startDate) {
- this.startDate = startDate;
- }
-
- public String getWitness() {
- return witness;
- }
-
- public void setWitness(String witness) {
- this.witness = witness;
- }
-
- @Override
- public String toString() {
- return "ZExperience{" +
- "id=" + id +
- ", userId=" + userId +
- ", content=" + content +
- ", startDate=" + startDate +
- ", witness=" + witness +
- "}";
- }
+ /**
+ * 鍒嗕韩浜�
+ */
+ private Integer shareId;
}
--
Gitblit v1.9.1