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

    private Long objId;

    @Excel(name = "追溯编号")
    private String traceNo;

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

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

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

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

    @Excel(name = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date productionDate;

    @Excel(name = "生产线")
    private String productionLine;

    @Excel(name = "工位编号")
    private String stationCode;

    @Excel(name = "工位名称")
    private String stationName;

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

    @Excel(name = "检验类型")
    private String inspectionType;

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

    @Excel(name = "缺陷编号")
    private String defectCode;

    @Excel(name = "缺陷名称")
    private String defectName;

    @Excel(name = "缺陷数量")
    private Integer defectQty;

    @Excel(name = "处理措施")
    private String handlingMeasure;

    @Excel(name = "责任人")
    private String responsiblePerson;

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

    @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 getTraceNo() {
        return traceNo;
    }

    public void setTraceNo(String traceNo) {
        this.traceNo = traceNo;
    }

    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 Date getProductionDate() {
        return productionDate;
    }

    public void setProductionDate(Date productionDate) {
        this.productionDate = productionDate;
    }

    public String getProductionLine() {
        return productionLine;
    }

    public void setProductionLine(String productionLine) {
        this.productionLine = productionLine;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getInspectionNo() {
        return inspectionNo;
    }

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

    public String getInspectionType() {
        return inspectionType;
    }

    public void setInspectionType(String inspectionType) {
        this.inspectionType = inspectionType;
    }

    public String getInspectionResult() {
        return inspectionResult;
    }

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

    public String getDefectCode() {
        return defectCode;
    }

    public void setDefectCode(String defectCode) {
        this.defectCode = defectCode;
    }

    public String getDefectName() {
        return defectName;
    }

    public void setDefectName(String defectName) {
        this.defectName = defectName;
    }

    public Integer getDefectQty() {
        return defectQty;
    }

    public void setDefectQty(Integer defectQty) {
        this.defectQty = defectQty;
    }

    public String getHandlingMeasure() {
        return handlingMeasure;
    }

    public void setHandlingMeasure(String handlingMeasure) {
        this.handlingMeasure = handlingMeasure;
    }

    public String getResponsiblePerson() {
        return responsiblePerson;
    }

    public void setResponsiblePerson(String responsiblePerson) {
        this.responsiblePerson = responsiblePerson;
    }

    public String getRemark() {
        return remark;
    }

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

    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("traceNo", getTraceNo())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("workOrderNo", getWorkOrderNo())
                .append("batchNo", getBatchNo())
                .append("productionDate", getProductionDate())
                .append("productionLine", getProductionLine())
                .append("stationCode", getStationCode())
                .append("stationName", getStationName())
                .append("inspectionNo", getInspectionNo())
                .append("inspectionType", getInspectionType())
                .append("inspectionResult", getInspectionResult())
                .append("defectCode", getDefectCode())
                .append("defectName", getDefectName())
                .append("defectQty", getDefectQty())
                .append("handlingMeasure", getHandlingMeasure())
                .append("responsiblePerson", getResponsiblePerson())
                .append("remark", getRemark())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
