package com.ruoyi.web.v2.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

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;

/**
 * <p>
 * v2.0样品留存登记
 * </p>
 *
 * @author author
 * @since 2025-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("js_sample")
@ApiModel(value="JsSample对象", description="v2.0样品留存登记")
public class JsSample extends AbstractEntity implements Serializable {

    private static final long serialVersionUID = 1L;

//    @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    @ApiModelProperty(value = "留存日期")
    private String keepTime;
    private String animalType;

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

    @ApiModelProperty(value = "产品名称")
    private String produceName;

    @ApiModelProperty(value = "供应商id")
    private Integer supplierId;

    @ApiModelProperty(value = "供应商")
    private String supplierName;

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

    @ApiModelProperty(value = "留样人")
    private String userName;

    @ApiModelProperty(value = "样品处理去向")
    private String sampleDeal;

    @ApiModelProperty(value = "处理时间")
    private String dealTime;

    private Integer entranceBatchId;

    @ApiModelProperty(value = "批次序列号集")
    private String seriesNoGroup;

    @ApiModelProperty(value = "检测项目")
    private String examineItem;

    @ApiModelProperty(value = "水分值")
    private String moisture;

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

    @ApiModelProperty(value = "清除人")
    private String clearPerson;

    @ApiModelProperty(value = "检测项目集")
    private String examineItems;
    private String recheckTime;
    private String recheckItem;

}
