package com.huimv.management.entity;

import com.baomidou.mybatisplus.annotation.*;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 隔离记录
 * 
 * @author yinhao
 * @email yinhao@163.com
 * @date 2021-06-10 09:44:06
 */
@Data
@TableName("health_isolation_record")
public class HealthIsolationRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 疾病名称
	 */
	private String diseaseName;
	/**
	 * 小猪编号
	 */
	private String pigCode;
	/**
	 * 病历号
	 */
	private Integer medicalRecordId;
	/**
	 * 入栏时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date entryTime;
	/**
	 * 离栏时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date offTime;
	/**
	 * 牧场id
	 */
	private Integer farmId;
	/**
	 * 数据有效性
	 */
	@TableLogic(delval = "0",value = "1")
	private Integer effective;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date createTime;
	/**
	 * 操作人姓名
	 */
	private String manName;
	/**
	 * 操作人编号
	 */
	private Integer manId;

}
