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 SamplingInspection extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long objId;

    @Excel(name = "检验单号")
    private String inspectionNo;

    @Excel(name = "产品编号")
    private String productCode;

    @Excel(name = "产品名称")
    private String productName;

    @Excel(name = "工单编号")
    private String workOrderNo;

    @Excel(name = "批次号")
    private String batchNo;

    @Excel(name = "批次数量")
    private Integer batchQty;

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

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

    @Excel(name = "检验员")
    private String inspector;

    @Excel(name = "检验时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inspectionTime;

    @Excel(name = "检验结果")
    private String inspectionResult;

    @Excel(name = "合格数量")
    private Integer qualifiedQty;

    @Excel(name = "不合格数量")
    private Integer unqualifiedQty;

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

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

    @Excel(name = "缺陷描述")
    private String defectDescription;

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

    @Excel(name = "状态")
    private String status;

    @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 getInspectionNo() {
        return inspectionNo;
    }

    public void setInspectionNo(String inspectionNo) {
        this.inspectionNo = inspectionNo;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getWorkOrderNo() {
        return workOrderNo;
    }

    public void setWorkOrderNo(String workOrderNo) {
        this.workOrderNo = workOrderNo;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public Integer getBatchQty() {
        return batchQty;
    }

    public void setBatchQty(Integer batchQty) {
        this.batchQty = batchQty;
    }

    public String getSamplingPlanCode() {
        return samplingPlanCode;
    }

    public void setSamplingPlanCode(String samplingPlanCode) {
        this.samplingPlanCode = samplingPlanCode;
    }

    public Integer getSampleSize() {
        return sampleSize;
    }

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

    public String getInspector() {
        return inspector;
    }

    public void setInspector(String inspector) {
        this.inspector = inspector;
    }

    public Date getInspectionTime() {
        return inspectionTime;
    }

    public void setInspectionTime(Date inspectionTime) {
        this.inspectionTime = inspectionTime;
    }

    public String getInspectionResult() {
        return inspectionResult;
    }

    public void setInspectionResult(String inspectionResult) {
        this.inspectionResult = inspectionResult;
    }

    public Integer getQualifiedQty() {
        return qualifiedQty;
    }

    public void setQualifiedQty(Integer qualifiedQty) {
        this.qualifiedQty = qualifiedQty;
    }

    public Integer getUnqualifiedQty() {
        return unqualifiedQty;
    }

    public void setUnqualifiedQty(Integer unqualifiedQty) {
        this.unqualifiedQty = unqualifiedQty;
    }

    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 getDefectDescription() {
        return defectDescription;
    }

    public void setDefectDescription(String defectDescription) {
        this.defectDescription = defectDescription;
    }

    public String getRemark() {
        return remark;
    }

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

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    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("inspectionNo", getInspectionNo())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("workOrderNo", getWorkOrderNo())
                .append("batchNo", getBatchNo())
                .append("batchQty", getBatchQty())
                .append("samplingPlanCode", getSamplingPlanCode())
                .append("sampleSize", getSampleSize())
                .append("inspector", getInspector())
                .append("inspectionTime", getInspectionTime())
                .append("inspectionResult", getInspectionResult())
                .append("qualifiedQty", getQualifiedQty())
                .append("unqualifiedQty", getUnqualifiedQty())
                .append("acceptNumber", getAcceptNumber())
                .append("rejectNumber", getRejectNumber())
                .append("defectDescription", getDefectDescription())
                .append("remark", getRemark())
                .append("status", getStatus())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
