zqy
5 天以前 b02beccf4567068cb47a3f1181a00039456c872d
zhang-content/src/main/java/com/ruoyi/domain/ZSelfNote.java
@@ -1,10 +1,16 @@
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.time.LocalDateTime;
import java.util.Date;
/**
 * <p>
@@ -15,96 +21,72 @@
 * @since 2023-03-14
 */
@TableName("z_self_note")
@Data
public class ZSelfNote 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 uid;
    /**
     * 地点
     */
    @Excel(name = "地点")
    private String address;
    /**
     * 时间
     */
    private LocalDateTime noteDate;
    /**
     * 标题
     */
    @Excel(name = "事件标题")
    private String title;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
    /**
     * 人物
     */
    @Excel(name = "人物")
    private String people;
    public Integer getId() {
        return id;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * 发生时间
     */
    @Excel(name = "时间",dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date happenTime;
    public Integer getUserId() {
        return userId;
    }
    /**
     * 电子文件路径
     */
    @Excel(name = "电子文件路径")
    private String url;
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date happenStartTime;
    public String getAddress() {
        return address;
    }
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date happenEndTime;
    public void setAddress(String address) {
        this.address = address;
    }
    public LocalDateTime getNoteDate() {
        return noteDate;
    }
    public void setNoteDate(LocalDateTime noteDate) {
        this.noteDate = noteDate;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Override
    public String toString() {
        return "ZSelfNote{" +
        "id=" + id +
        ", userId=" + userId +
        ", address=" + address +
        ", noteDate=" + noteDate +
        ", title=" + title +
        ", remark=" + remark +
        "}";
    }
    /**
     * 分享人
     */
    private Integer shareId;
}