package com.huimv.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 环保排水监测填报
 * </p>
 *
 * @author author
 * @since 2023-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("write_prot_data")
public class WriteProtData implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String ph;

    private String cod;

    private String tn;

    private String tp;

    private String Nh3n;

    private String flow;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    private Integer farmId;

    /**
     * 监测类型 1为进污口 2为处理口 3为排污口
     */
    private String type;

    public WriteProtData(String ph, String cod, String tn, String tp, String nh3n, String flow) {
        this.ph = ph;
        this.cod = cod;
        this.tn = tn;
        this.tp = tp;
        Nh3n = nh3n;
        this.flow = flow;
    }
}
