package com.ruoyi.web.v3.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import com.ruoyi.common.core.domain.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hb_entrance_check")
@ApiModel(value="hbEntranceCheck", description="v3.0 进场查验登记")
public class HbEntranceCheckEntity extends AbstractEntity implements Serializable {

    @ApiModelProperty(value = "入厂（场点）时间")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime entranceTime;

    @ApiModelProperty(value = "动物检疫证明标注单位或名称")
    private String quarantineUnitName;

    @ApiModelProperty(value = "畜禽产地")
    private String originRegion;

    @ApiModelProperty(value = "动物检疫证明编号")
    private String animalCertNo;

    @ApiModelProperty(value = "联系电话")
    private String contactMobile;

    @ApiModelProperty(value = "数量")
    private Integer entranceQuantity;

    @ApiModelProperty(value = "合格数")
    private Integer qualifiedQuantity;

    @ApiModelProperty(value = "圈编（烫号）")
    private String pigpenName;

    @ApiModelProperty(value = "隔离数")
    private Integer quarantineQuantity;

    @ApiModelProperty(value = "急宰数")
    private Integer emergencySlaughterQuantity;

    @ApiModelProperty(value = "无害化处理数")
    private Integer disposeQuantity;

    @ApiModelProperty(value = "查验接收人（签字）")
    private String examinerConfirm;

    @ApiModelProperty(value = "备注")
    private String remarks;


}
