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_check_clenbuterol")
@ApiModel(value="hbCheckClenbuterol", description="v3.0 瘦肉精检测登记")
public class HbCheckClenbuterolEntity extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "货主名称")
    private String cargoOwnerName;

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

    @ApiModelProperty(value = "溯源单编号")
    private String traceRecordNo;

    @ApiModelProperty(value = "畜禽数量（头/只/羽）")
    private Integer livestockQuantity;

    @ApiModelProperty(value = "抽检数量")
    private Integer spotcheckQuantity;

    @ApiModelProperty(value = "盐酸克伦特罗检测结果")
    private String clenbuterol;

    @ApiModelProperty(value = "莱克多巴胺检测结果")
    private String ractopamine;

    @ApiModelProperty(value = "沙丁胺醇检测结果")
    private String salbutamol;

    @ApiModelProperty(value = "处理方式")
    private String processMethod;

    @ApiModelProperty(value = "检测人员（签字）")
    private String examinerConfirm;

}
