zqy
5 天以前 b02beccf4567068cb47a3f1181a00039456c872d
zhang-content/src/main/java/com/ruoyi/domain/ZfClean.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,99 @@
 * @since 2023-03-12
 */
@TableName("zf_clean")
@Data
public class ZfClean implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long id;
    /**
     * 0:保洁,1:收纳
     */
    @Excel(name = "类型(必须是保洁或者收纳)",readConverterExp = "0=保洁,1=收纳")
    private Integer kind;
    /**
     * 适用人
     */
    @Excel(name = "适用人")
    private String suitable;
    /**
     * 类别
     */
    @Excel(name = "类别")
    private String type;
    /**
     * 保洁方法
     */
    @Excel(name = "保洁方法")
    private String method;
    /**
     * 材料存放地
     */
    @Excel(name = "材料存放地")
    private String place;
    /**
     * 放置地点
     */
    @Excel(name = "放置地点")
    private String location;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
    /**
     * 电子文件路径
     */
    private String url;
    public Integer getId() {
        return id;
    }
    @Excel(name="所属家庭编号(导入数据时请删除此栏)")
    private Long familyId;
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getKind() {
        return kind;
    }
    /**
     * 是否是本家庭的数据(0:不是,1:是)
     */
    @TableField(exist = false)
    private Integer ownData = 0;
    public void setKind(Integer kind) {
        this.kind = kind;
    }
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    public String getSuitable() {
        return suitable;
    }
    /**
     * 开始时间
     */
    @TableField(exist = false)
    private Date happenStartTime;
    public void setSuitable(String suitable) {
        this.suitable = suitable;
    }
    /**
     * 结束时间
     */
    @TableField(exist = false)
    private Date happenEndTime;
    public String getType() {
        return type;
    }
    /**
     * 发生时间
     */
//    @Excel(name = "记录时间", dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date happenTime;
    public void setType(String type) {
        this.type = type;
    }
    /**
     * 分享人id
     */
    private Integer shareId;
    public String getMethod() {
        return method;
    }
    public void setMethod(String method) {
        this.method = method;
    }
    public String getPlace() {
        return place;
    }
    public void setPlace(String place) {
        this.place = place;
    }
    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 "ZfClean{" +
        "id=" + id +
        ", kind=" + kind +
        ", suitable=" + suitable +
        ", type=" + type +
        ", method=" + method +
        ", place=" + place +
        ", location=" + location +
        ", remark=" + remark +
        "}";
    }
}