package com.huimv.management.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 饮用水检测实体类
 * </p>
 *
 * @author yinhao
 * @date 2021/6/11 10:34
 */
@Data
public class DrinkingWaterEntity implements Serializable {
    private static final long serialVersionUID = 7480204097308252507L;

    /**
     * 主键
     */
    private String id;
    /**
     * 牧场id
     */
    private Integer farmId;
    /**
     * 猪舍id
     */
    private Integer pigstyId;
    /**
     * 当前日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date date;
    /**
     * 饮用水质量
     */
    private String drinkingWaterQuality;
    /**
     * 采集时间
     */
    private Date collectTime;
    /**
     * 异常状态 0:正常 1.异常
     */
    private Boolean abnormalStatus;
    /**
     * 删除状态 0:未删除 其他:已删除
     */
    @TableLogic
    private Integer deleted;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
