package com.ruoyi.web.v3.model.request;

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.web.v3.model.BasePageRequest;
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)
@ApiModel(value="HbAnteMortemInspectionPageReq", description="v3.0 宰前检验记录")
public class HbAnteMortemInspectionPageReq extends BasePageRequest implements Serializable {

    @ApiModelProperty(value = "数据唯一性标识id")
    private String id;

    @ApiModelProperty(value = "生猪批次")
    private String batchSeriesNo;

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

    @ApiModelProperty(value = "检验数量")
    private Integer examineQuantity;

    @ApiModelProperty(value = "准宰数量")
    private Integer permissionSlaughterQuantity;

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

    @ApiModelProperty(value = "死亡数量")
    private Integer deadQuantity;

    @ApiModelProperty(value = "处理情况")
    private String processDetail;

    @ApiModelProperty(value = "检验人")
    private String examinerName;

}
