From dc194fb281e0e4c4ec34549adb4ad11f3cb67b35 Mon Sep 17 00:00:00 2001 From: whywhyo <1511349576@qq.com> Date: 星期一, 05 六月 2023 20:13:30 +0800 Subject: [PATCH] 123 --- zhang-content/src/main/java/com/ruoyi/domain/ZIdea.java | 103 +++++++++++++++------------------------------------ 1 files changed, 30 insertions(+), 73 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZIdea.java b/zhang-content/src/main/java/com/ruoyi/domain/ZIdea.java index 6657445..172a52c 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZIdea.java +++ b/zhang-content/src/main/java/com/ruoyi/domain/ZIdea.java @@ -1,9 +1,15 @@ 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 lombok.Data; + import java.io.Serializable; +import java.util.Date; /** * <p> @@ -14,124 +20,75 @@ * @since 2023-03-14 */ @TableName("z_idea") +@Data public class ZIdea implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; + + private Long uid; + + @Excel(name = "鏃堕棿") + @JsonFormat(pattern = "yyyy-MM-dd") + private Date happenTime; /** * 鐞嗘兂鏍囬/鐧惧勾鎰挎湜 */ + @Excel(name = "鐞嗘兂鏍囬/鐧惧勾鎰挎湜") private String title; /** * 濮嬩簬浣曞洜 */ + @Excel(name = "濮嬩簬浣曞洜") private String cause; /** * 鍙楁儬浜哄悕瀛� */ + @Excel(name = "鍙楁儬浜哄悕瀛�") private String beneficiary; /** * 缁ф壙浜哄悕瀛� */ + @Excel(name = "缁ф壙浜哄悕瀛�") private String heir; /** * 瀹炵幇闅惧害 */ + @Excel(name = "瀹炵幇闅惧害") private String difficulty; /** * 鏄惁渚濇棫鏈夋晥 */ + @Excel(name = "鏄惁渚濇棫鏈夋晥(濉槸鎴栧惁)",readConverterExp = "1=鏄�,0=鍚�") private Integer isEffective; /** * 澶囨敞 */ + @Excel(name = "澶囨敞") private String remark; + private String url; - public Integer getId() { - return id; - } - public void setId(Integer id) { - this.id = id; - } + @TableField(exist = false) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date happenStartTime; - public String getTitle() { - return title; - } + @TableField(exist = false) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date happenEndTime; - public void setTitle(String title) { - this.title = title; - } + @JsonFormat(pattern = "yyyy-MM-dd") + private Date createTime; - public String getCause() { - return cause; - } - public void setCause(String cause) { - this.cause = cause; - } - - public String getBeneficiary() { - return beneficiary; - } - - public void setBeneficiary(String beneficiary) { - this.beneficiary = beneficiary; - } - - public String getHeir() { - return heir; - } - - public void setHeir(String heir) { - this.heir = heir; - } - - public String getDifficulty() { - return difficulty; - } - - public void setDifficulty(String difficulty) { - this.difficulty = difficulty; - } - - public Integer getIsEffective() { - return isEffective; - } - - public void setIsEffective(Integer isEffective) { - this.isEffective = isEffective; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - @Override - public String toString() { - return "ZIdea{" + - "id=" + id + - ", title=" + title + - ", cause=" + cause + - ", beneficiary=" + beneficiary + - ", heir=" + heir + - ", difficulty=" + difficulty + - ", isEffective=" + isEffective + - ", remark=" + remark + - "}"; - } } -- Gitblit v1.9.1