zqy
5 天以前 b02beccf4567068cb47a3f1181a00039456c872d
zhang-content/src/main/java/com/ruoyi/domain/ZfCollection.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 lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
/**
 * <p>
@@ -15,6 +22,8 @@
 * @since 2023-03-12
 */
@TableName("zf_collection")
@Data
@ToString
public class ZfCollection implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -23,130 +32,92 @@
    private Integer id;
    /**
     * 获得时间
     */
    private LocalDateTime getTime;
    /**
     * 类别
     */
    @Excel(name = "类别")
    private String type;
    /**
     * 名字
     */
    @Excel(name = "名字")
    private String name;
    /**
     * 来源
     */
    @Excel(name = "来源")
    private String source;
    /**
     * 拥有者
     */
    @Excel(name = "拥有者")
    private String owner;
    /**
     * 价值
     */
    private Double price;
    @Excel(name = "价值")
    private String price;
    /**
     * 存放位置
     */
    @Excel(name = "存放位置")
    private String location;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
    /**
     * 电子文件路径
     */
    private String url;
    public Integer getId() {
        return id;
    }
    /**
     * 所属家庭id
     */
    @Excel(name = "所属家庭编号(导入数据时请删除此栏)")
    private Long familyId;
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * 是否是本家庭的数据(0:不是,1:是)
     */
    @TableField(exist = false)
    private Integer ownData = 0;
    public LocalDateTime getGetTime() {
        return getTime;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    public void setGetTime(LocalDateTime getTime) {
        this.getTime = getTime;
    }
    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date happenStartTime;
    public String getType() {
        return type;
    }
    /**
     * 结束时间
     */
    @TableField(exist = false)
    private Date happenEndTime;
    public void setType(String type) {
        this.type = type;
    }
    /**
     * 获得时间
     */
    @Excel(name = "获得时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date happenTime;
    public String getName() {
        return name;
    }
    /**
     * 分享人id
     */
    private Integer shareId;
    public void setName(String name) {
        this.name = name;
    }
    public String getSource() {
        return source;
    }
    public void setSource(String source) {
        this.source = source;
    }
    public String getOwner() {
        return owner;
    }
    public void setOwner(String owner) {
        this.owner = owner;
    }
    public Double getPrice() {
        return price;
    }
    public void setPrice(Double price) {
        this.price = price;
    }
    public String getLocation() {
        return location;
    }
    public void setLocation(String location) {
        this.location = location;
    }
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    @Override
    public String toString() {
        return "ZfCollection{" +
        "id=" + id +
        ", getTime=" + getTime +
        ", type=" + type +
        ", name=" + name +
        ", source=" + source +
        ", owner=" + owner +
        ", price=" + price +
        ", location=" + location +
        ", remark=" + remark +
        "}";
    }
}