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_release_record")
@ApiModel(value="hbReleaseRecord", description="v3.0 出厂情况登记")
public class HbReleaseRecordEntity 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 recordTime;

    @ApiModelProperty(value = "畜禽产品名称")
    private String productName;

    @ApiModelProperty(value = "购货人姓名")
    private String cargoOwnerName;

    @ApiModelProperty(value = "联系方式")
    private String contactMobile;

    @ApiModelProperty(value = "销售地详细地址")
    private String sellAddress;

    @ApiModelProperty(value = "销售数量")
    private Integer sellQuantity;

    @ApiModelProperty(value = "动物检疫证明编号(产品B)")
    private String animalCertNoB;

    @ApiModelProperty(value = "动物检疫证明编号(产品A)")
    private String animalCertNoA;

    @ApiModelProperty(value = "肉品品质检验证号")
    private String meatQualityCertNo;

    @ApiModelProperty(value = "退回数量(公斤)")
    private Integer returnQuantity;

    @ApiModelProperty(value = "退回原因")
    private String returnReason;

    @ApiModelProperty(value = "企业名称")
    private String orgName;

    @ApiModelProperty(value = "建档日期")
    private String archiveDuration;



}
