package com.aucma.base.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aucma.common.annotation.Excel;
import com.aucma.common.core.domain.BaseEntity;

public class SamplingPlan extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long objId;

    @Excel(name = "抽样方案编号")
    private String planCode;

    @Excel(name = "抽样方案名称")
    private String planName;

    @Excel(name = "AQL标准")
    private String aqlStandard;

    @Excel(name = "检验水平")
    private String inspectionLevel;

    @Excel(name = "抽样类型")
    private String samplingType;

    @Excel(name = "批次范围")
    private String batchRange;

    @Excel(name = "样本数量")
    private Integer sampleSize;

    @Excel(name = "接收数")
    private Integer acceptNumber;

    @Excel(name = "拒收数")
    private Integer rejectNumber;

    @Excel(name = "备注")
    private String remark;

    @Excel(name = "启用标识")
    private Long isFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedTime;

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }

    public String getPlanCode() {
        return planCode;
    }

    public void setPlanCode(String planCode) {
        this.planCode = planCode;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getAqlStandard() {
        return aqlStandard;
    }

    public void setAqlStandard(String aqlStandard) {
        this.aqlStandard = aqlStandard;
    }

    public String getInspectionLevel() {
        return inspectionLevel;
    }

    public void setInspectionLevel(String inspectionLevel) {
        this.inspectionLevel = inspectionLevel;
    }

    public String getSamplingType() {
        return samplingType;
    }

    public void setSamplingType(String samplingType) {
        this.samplingType = samplingType;
    }

    public String getBatchRange() {
        return batchRange;
    }

    public void setBatchRange(String batchRange) {
        this.batchRange = batchRange;
    }

    public Integer getSampleSize() {
        return sampleSize;
    }

    public void setSampleSize(Integer sampleSize) {
        this.sampleSize = sampleSize;
    }

    public Integer getAcceptNumber() {
        return acceptNumber;
    }

    public void setAcceptNumber(Integer acceptNumber) {
        this.acceptNumber = acceptNumber;
    }

    public Integer getRejectNumber() {
        return rejectNumber;
    }

    public void setRejectNumber(Integer rejectNumber) {
        this.rejectNumber = rejectNumber;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getIsFlag() {
        return isFlag;
    }

    public void setIsFlag(Long isFlag) {
        this.isFlag = isFlag;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("objId", getObjId())
                .append("planCode", getPlanCode())
                .append("planName", getPlanName())
                .append("aqlStandard", getAqlStandard())
                .append("inspectionLevel", getInspectionLevel())
                .append("samplingType", getSamplingType())
                .append("batchRange", getBatchRange())
                .append("sampleSize", getSampleSize())
                .append("acceptNumber", getAcceptNumber())
                .append("rejectNumber", getRejectNumber())
                .append("remark", getRemark())
                .append("isFlag", getIsFlag())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
