package cn.estsh.i3plus.ext.mes.pojo.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;

/**
 * 文件描述
 *
 * @author xiangming.liao
 * @date 2021年06月16日 9:56
 */
@Data
@ApiModel("工程集计报表model")
public class ProjectContainersComputeChartResultModel  implements Serializable {

    private static final long serialVersionUID = -7716216069770535370L;

    @ApiParam("生产日期")
    private String workTime;

    @ApiParam("生产台数")
    private Double produceQty;

    @ApiParam("物料编码")
    private String partNo;

    @ApiParam("物料名称")
    private String partName;

    @ApiParam("不良现象代码")
    private String defectCode;

    @ApiParam("不良现象名称")
    private String defectName;

    @ApiParam("不良部品编码")
    private String badPartNo;

    @ApiParam("不良部品名称")
    private String badPartName;

    @ApiParam("不良部品厂家")
    private String badPartVender;

    @ApiParam("不良类型")
    private Integer repairJudge;

    @ApiParam("不良类型名称")
    private String repairJudgeName;

    @ApiParam("不良数量")
    private Double badQty;

    @ApiParam("不良率")
    private String badRate;

    public ProjectContainersComputeChartResultModel() {
    }

    public ProjectContainersComputeChartResultModel(String workTime, Double produceQty, String partNo, String partName) {
        this.workTime = workTime;
        this.produceQty = produceQty;
        this.partNo = partNo;
        this.partName = partName;
    }

    public ProjectContainersComputeChartResultModel(String defectCode, String defectName, Double badQty) {
        this.defectCode = defectCode;
        this.defectName = defectName;
        this.badQty = badQty;
    }

    public ProjectContainersComputeChartResultModel(String workTime, Double produceQty, String partNo, String partName, String defectCode, String defectName, Double badQty) {
        this.workTime = workTime;
        this.produceQty = produceQty;
        this.partNo = partNo;
        this.partName = partName;
        this.defectCode = defectCode;
        this.defectName = defectName;
        this.badQty = badQty;
    }
}
