package cn.estsh.i3plus.pojo.wms.modelbean;

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

/**
 * @质检完成状态模型
 * @author jason.niu
 * @date 2020/10/16
 */
@Data
@Api("质检完成状态模型")
public class WmsQCStatusModel {

    @ApiParam("工厂代码")
    private String organizeCode;

    @ApiParam("ASN单号")
    private String asnOrderNo;

    @ApiParam("质检单号")
    private String qcOrderNo;

    @ApiParam("物料号")
    private String partNo;

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

    @ApiParam("标准质检时间（分钟）")
    private Double stdQcTime;

    @ApiParam("收货时间")
    private String receiveTime;

    @ApiParam("计划质检完成时间")
    private String planCompleteTime;

    @ApiParam("实际质检完成时间")
    private String actualCompleteTime;

    @ApiParam("状态")
    private Integer status;

    @ApiParam("开始时间")
    private String startDateTime;

    @ApiParam("结束时间")
    private String endDateTime;

    @ApiParam("零件数量")
    private Double qty;

    @ApiParam("待质检比例")
    private Double proportion;

    @ApiParam("标准质检时间")
    private Double stdCheckTime;

    @ApiParam("质检时长")
    private long qcCostTime;

    public WmsQCStatusModel(String asnOrderNo, String qcOrderNo, String partNo, String partName, Double stdQcTime, Double qty, Double proportion, Double stdCheckTime) {
        this.asnOrderNo = asnOrderNo;
        this.qcOrderNo = qcOrderNo;
        this.partNo = partNo;
        this.partName = partName;
        this.stdQcTime = stdQcTime;
        this.qty = qty;
        this.proportion = proportion;
        this.stdCheckTime = stdCheckTime;
    }
    public Double getStdQcTimeVal() {
        return this.stdQcTime == null ? 0 : this.stdQcTime;
    }

}
