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.databind.ser.std.ToStringSerializer;
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;


/**
 * <p>
 * v3.0非洲猪瘟检测登记
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("hb_check_asf")
@ApiModel(value="HbCheckAsf", description="v3.0非洲猪瘟检测登记")
public class HbCheckAsfEntity extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "检测报告编号")
    private String recordId;

    @ApiModelProperty(value = "采样编号")
    private String markNoGroup;

    @ApiModelProperty(value = "检测生猪数")
    private Integer quantity;

    @ApiModelProperty(value = "样品编号")
    private String sampleNoGroup;

    @ApiModelProperty(value = "对应检疫证号码")
    private String animalCertNo;

    @ApiModelProperty(value = "试剂名称")
    private String drugName;

    @ApiModelProperty(value = "生产厂家")
    private String producerName;

    @ApiModelProperty(value = "有效期至")
    private LocalDateTime expireTime;

    @ApiModelProperty(value = "混样记录")
    private String mixedRecord;

    @ApiModelProperty(value = "检测方法")
    private String checkMethod;

    @ApiModelProperty(value = "检测结果")
    private String checkResult;

    @ApiModelProperty(value = "屠宰厂检测人（签名）")
    private String examinerName;

    @ApiModelProperty(value = "屠宰厂负责人（签名）")
    private String ownerName;

    @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 chargeTime;

    @ApiModelProperty(value = "官方兽医确认（签名）")
    private String veterinaryName;

    @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 veterinaryTime;

    @ApiModelProperty(value = "入场批次ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long entranceBatchId;

}
