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

    private Long objId;

    @Excel(name = "报表编号")
    private String reportNo;

    @Excel(name = "报表名称")
    private String reportName;

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

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

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

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

    @Excel(name = "检验工单总数")
    private Integer totalInspections;

    @Excel(name = "通过数量")
    private Integer passedQty;

    @Excel(name = "不通过数量")
    private Integer failedQty;

    @Excel(name = "未检验数量")
    private Integer pendingQty;

    @Excel(name = "合格率")
    private String passRate;

    @Excel(name = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @Excel(name = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @Excel(name = "报表生成人")
    private String createdBy;

    @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 getReportNo() {
        return reportNo;
    }

    public void setReportNo(String reportNo) {
        this.reportNo = reportNo;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

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

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

    public Integer getTotalInspections() {
        return totalInspections;
    }

    public void setTotalInspections(Integer totalInspections) {
        this.totalInspections = totalInspections;
    }

    public Integer getPassedQty() {
        return passedQty;
    }

    public void setPassedQty(Integer passedQty) {
        this.passedQty = passedQty;
    }

    public Integer getFailedQty() {
        return failedQty;
    }

    public void setFailedQty(Integer failedQty) {
        this.failedQty = failedQty;
    }

    public Integer getPendingQty() {
        return pendingQty;
    }

    public void setPendingQty(Integer pendingQty) {
        this.pendingQty = pendingQty;
    }

    public String getPassRate() {
        return passRate;
    }

    public void setPassRate(String passRate) {
        this.passRate = passRate;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    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("reportNo", getReportNo())
                .append("reportName", getReportName())
                .append("productCode", getProductCode())
                .append("productName", getProductName())
                .append("workOrderNo", getWorkOrderNo())
                .append("inspectionType", getInspectionType())
                .append("totalInspections", getTotalInspections())
                .append("passedQty", getPassedQty())
                .append("failedQty", getFailedQty())
                .append("pendingQty", getPendingQty())
                .append("passRate", getPassRate())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedTime", getUpdatedTime())
                .toString();
    }
}
