feige
2024-06-10 f34203dacf5485b06d9d80618e5e14cf4463c2d7
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,27 +21,23 @@
 * @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;
    /**
     * 地点
     */
    private String address;
    /**
     * 时间
     */
    private LocalDateTime noteDate;
    /**
     * 标题
@@ -47,64 +49,35 @@
     */
    private String remark;
    /**
     * 人物
     */
    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;
    }
    /**
     * 电子文件路径
     */
    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 +
        "}";
    }
}