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/ZYearInfo.java | 117 ++++++++++++++++++----------------------------------------
1 files changed, 36 insertions(+), 81 deletions(-)
diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZYearInfo.java b/zhang-content/src/main/java/com/ruoyi/domain/ZYearInfo.java
index 38ea31a..c9990ab 100644
--- a/zhang-content/src/main/java/com/ruoyi/domain/ZYearInfo.java
+++ b/zhang-content/src/main/java/com/ruoyi/domain/ZYearInfo.java
@@ -1,10 +1,17 @@
package com.ruoyi.domain;
import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
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 com.ruoyi.common.core.domain.BaseEntity;
+import lombok.Data;
+
import java.io.Serializable;
import java.time.LocalDateTime;
+import java.util.Date;
/**
* <p>
@@ -15,124 +22,72 @@
* @since 2023-03-14
*/
@TableName("z_year_info")
+@Data
public class ZYearInfo implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
- private Integer id;
+ private Long id;
+
+ private String fileName;
/**
* 骞村害鍋ュ悍琛╥d
*/
- private Integer hid;
+ private Long uid;
/**
* 浣撴鏃堕棿
*/
- private LocalDateTime checkTime;
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ @Excel(name = "浣撴鏃堕棿")
+ private Date checkTime;
+
+ @TableField(exist = false)
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ private Date happenStartTime;
+
+ @TableField(exist = false)
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ private Date happenEndTime;
/**
- * 鐪嬬梾锛�0銆佷綋妫�锛�1
+ * 绫诲瀷
*/
- private Integer type;
+ @Excel(name = "绫诲瀷")
+ private String type;
/**
* 灏辫瘖鍖婚櫌
*/
+ @Excel(name = "灏辫瘖鍖婚櫌")
private String hospital;
/**
* 棰樺悕
*/
+ @Excel(name = "棰樺悕")
private String title;
/**
* 娉ㄦ剰浜嬮」
*/
+ @Excel(name = "娉ㄦ剰浜嬮」")
private String notice;
/**
* 澶囨敞
*/
+ @Excel(name = "澶囨敞")
private String remark;
+ /**
+ * 鍒涘缓鏃堕棿
+ */
+ @JsonFormat(pattern = "yyyy-MM-dd")
+ private Date createTime;
- public Integer getId() {
- return id;
- }
+ private String url;
- public void setId(Integer id) {
- this.id = id;
- }
-
- public Integer getHid() {
- return hid;
- }
-
- public void setHid(Integer hid) {
- this.hid = hid;
- }
-
- public LocalDateTime getCheckTime() {
- return checkTime;
- }
-
- public void setCheckTime(LocalDateTime checkTime) {
- this.checkTime = checkTime;
- }
-
- public Integer getType() {
- return type;
- }
-
- public void setType(Integer type) {
- this.type = type;
- }
-
- public String getHospital() {
- return hospital;
- }
-
- public void setHospital(String hospital) {
- this.hospital = hospital;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public String getNotice() {
- return notice;
- }
-
- public void setNotice(String notice) {
- this.notice = notice;
- }
-
- public String getRemark() {
- return remark;
- }
-
- public void setRemark(String remark) {
- this.remark = remark;
- }
-
- @Override
- public String toString() {
- return "ZYearInfo{" +
- "id=" + id +
- ", hid=" + hid +
- ", checkTime=" + checkTime +
- ", type=" + type +
- ", hospital=" + hospital +
- ", title=" + title +
- ", notice=" + notice +
- ", remark=" + remark +
- "}";
- }
}
--
Gitblit v1.9.1