feige
2024-06-16 3ad8fb4e7cc1391e8090f3da6ffa9c48690a12a3
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 = "时间",dateFormat = "yyyy-MM-dd")
    @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 +
        "}";
    }
}