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

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Author: xiangming.liao
 * @CreateDate: 2020/12/22 14:38 下午
 * @Description: 每个月/天的冻结数、报废数、生产总数、占比回model
 **/
@Api("每个月/天的冻结数、报废数、生产总数、占比返回model")
@Data
public class ProduceDispPassRateModel {
    @ApiParam("统计时间")
    private String statisticalTime;

    @ApiParam("产品条码")
    private String srialNumber;

    //统计选项（10=全部，20=冻结，30=报废）
    @ApiParam("统计选项")
    private Integer statisticalOption;

    @ApiParam("冻结数")
    private BigDecimal freezeQty;

    @ApiParam("报废数")
    private BigDecimal scrapQty;

    @ApiParam("生产总数")
    private BigDecimal produceSumQty;

    @ApiParam("占比率")
    private BigDecimal ratio;

    public ProduceDispPassRateModel(String statisticalTime, Integer statisticalOption, BigDecimal freezeQty, BigDecimal scrapQty, BigDecimal produceSumQty, BigDecimal ratio) {
        this.statisticalTime = statisticalTime;
        this.statisticalOption = statisticalOption;
        this.freezeQty = freezeQty;
        this.scrapQty = scrapQty;
        this.produceSumQty = produceSumQty;
        this.ratio = ratio;
    }

    public ProduceDispPassRateModel(String statisticalTime, String srialNumber, Integer statisticalOption, BigDecimal freezeQty, BigDecimal scrapQty, BigDecimal produceSumQty, BigDecimal ratio) {
        this.statisticalTime = statisticalTime;
        this.srialNumber = srialNumber;
        this.statisticalOption = statisticalOption;
        this.freezeQty = freezeQty;
        this.scrapQty = scrapQty;
        this.produceSumQty = produceSumQty;
        this.ratio = ratio;
    }

    public ProduceDispPassRateModel() {
    }
}
