package com.ruoyi.web.modules.epidemic.domain;

import java.math.BigDecimal;
import java.util.Date;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 实验室检测 biz_lab_detection
 */
public class BizLabDetection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotNull(message = "检测日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date testDate;

    @NotNull(message = "检疫点不能为空")
    private Long quarantineStationId;

    /** 列表/详情展示：检疫站名称（非表字段） */
    private String quarantineStationName;

    @NotNull(message = "样本来源不能为空")
    private Integer sampleSource;

    @NotNull(message = "检测量不能为空")
    private Integer testQuantity;

    @NotNull(message = "阳性检出数不能为空")
    private Integer positiveCount;

    /** 检出率（服务端计算，客户端传入无效） */
    private BigDecimal detectionRate;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Date getTestDate()
    {
        return testDate;
    }

    public void setTestDate(Date testDate)
    {
        this.testDate = testDate;
    }

    public Long getQuarantineStationId()
    {
        return quarantineStationId;
    }

    public void setQuarantineStationId(Long quarantineStationId)
    {
        this.quarantineStationId = quarantineStationId;
    }

    public String getQuarantineStationName()
    {
        return quarantineStationName;
    }

    public void setQuarantineStationName(String quarantineStationName)
    {
        this.quarantineStationName = quarantineStationName;
    }

    public Integer getSampleSource()
    {
        return sampleSource;
    }

    public void setSampleSource(Integer sampleSource)
    {
        this.sampleSource = sampleSource;
    }

    public Integer getTestQuantity()
    {
        return testQuantity;
    }

    public void setTestQuantity(Integer testQuantity)
    {
        this.testQuantity = testQuantity;
    }

    public Integer getPositiveCount()
    {
        return positiveCount;
    }

    public void setPositiveCount(Integer positiveCount)
    {
        this.positiveCount = positiveCount;
    }

    public BigDecimal getDetectionRate()
    {
        return detectionRate;
    }

    public void setDetectionRate(BigDecimal detectionRate)
    {
        this.detectionRate = detectionRate;
    }
}
