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

    private Long objId;

    @Excel(name = "检验标准编号")
    private String standardCode;

    @Excel(name = "检验标准名称")
    private String standardName;

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

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

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

    @Excel(name = "检验项目")
    private String inspectionItems;

    @Excel(name = "检验方法")
    private String inspectionMethod;

    @Excel(name = "检验标准值")
    private String standardValue;

    @Excel(name = "公差范围")
    private String toleranceRange;

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

    @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 getStandardCode() {
        return standardCode;
    }

    public void setStandardCode(String standardCode) {
        this.standardCode = standardCode;
    }

    public String getStandardName() {
        return standardName;
    }

    public void setStandardName(String standardName) {
        this.standardName = standardName;
    }

    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 getInspectionType() {
        return inspectionType;
    }

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

    public String getInspectionItems() {
        return inspectionItems;
    }

    public void setInspectionItems(String inspectionItems) {
        this.inspectionItems = inspectionItems;
    }

    public String getInspectionMethod() {
        return inspectionMethod;
    }

    public void setInspectionMethod(String inspectionMethod) {
        this.inspectionMethod = inspectionMethod;
    }

    public String getStandardValue() {
        return standardValue;
    }

    public void setStandardValue(String standardValue) {
        this.standardValue = standardValue;
    }

    public String getToleranceRange() {
        return toleranceRange;
    }

    public void setToleranceRange(String toleranceRange) {
        this.toleranceRange = toleranceRange;
    }

    public String getSamplingPlanCode() {
        return samplingPlanCode;
    }

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

    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("standardCode", getStandardCode())
                .append("standardName", getStandardName())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("inspectionType", getInspectionType())
                .append("inspectionItems", getInspectionItems())
                .append("inspectionMethod", getInspectionMethod())
                .append("standardValue", getStandardValue())
                .append("toleranceRange", getToleranceRange())
                .append("samplingPlanCode", getSamplingPlanCode())
                .append("remark", getRemark())
                .append("isFlag", getIsFlag())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
