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

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

import java.io.Serializable;

/**
 * @author wangjie
 * @version 1.0
 * @date 2021/1/15 15:32
 **/
@Data
@ApiModel("修理品票明细报表model")
public class SxRepairRecordReportModel implements Serializable {

    private static final long serialVersionUID = -3051452940922582123L;

    @ApiParam("ID")
    public Long id;

    @ApiParam("组织代码")
    public String organizeCode;

    @ApiParam("生产日期开始")
    public String workTimeStart;

    @ApiParam("生产日期结束")
    public String workTimeEnd;

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

    @ApiParam("班次")
    private String shiftCode;

    @ApiParam(value = "生产工单号")
    public String workOrderNo;

    @ApiParam("生产线代码")
    private String workCenterCode;

    @ApiParam("工位代码")
    private String workCellCode;

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

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

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

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

    @ApiParam("不良标识代码")
    private String defectCode;

    @ApiParam("不良标识描述")
    private String defectName;

    @ApiParam("不良类型")
    private String defectType;

    @ApiParam("不良类型描述")
    private String defectTypeName;

    @ApiParam("不良时间")
    private String defectActionTime;

    @ApiParam("缺陷原因代码")
    private String dcCode;

    @ApiParam("缺陷原因描述")
    private String dcName;

    @ApiParam("维修代码")
    private String repairCode;

    @ApiParam("维修名称")
    private String repairName;

    @ApiParam("维修状态")
    private Integer repairStatus;

    @ApiParam("维修状态描述")
    private String repairStatusName;

    @ApiParam("审批状态: 未审批=30, 通过=10, 驳回=20")
    private Integer approvalStatus;

    @ApiParam("审批状态描述")
    private String approvalStatusName;

    @ApiParam("备注")
    private String memo;

    @ApiParam("维修判定")
    private String repairJudgeCode;

    @ApiParam("维修判定描述")
    private String repairJudgeName;

    @ApiParam("维修时间")
    private String repairDatetime;

    @ApiParam("不良创建人")
    private String createUser;

    @ApiParam("维修人")
    private String modifyUser;

    public SxRepairRecordReportModel() {}

    public SxRepairRecordReportModel(Long id, String workTime, String shiftCode, String workOrderNo, String workCenterCode, String workCellCode,
                                     String serialNumber, String productSn, String partNo, String partNameRdd, String defectCode, String defectName, String defectType,
                                     String defectTypeName, String defectActionTime, Integer repairStatus, String createUser, String dcCode, String dcName,
                                     String repairCode, String repairName, Integer approvalStatus,String memo, String repairJudgeCode, String repairJudgeName,
                                     String repairDatetime, String modifyUser) {
        this.id = id;
        this.workTime = workTime;
        this.shiftCode = shiftCode;
        this.workOrderNo = workOrderNo;
        this.workCenterCode = workCenterCode;
        this.workCellCode = workCellCode;
        this.serialNumber = serialNumber;
        this.productSn = productSn;
        this.partNo = partNo;
        this.partNameRdd = partNameRdd;
        this.defectCode = defectCode;
        this.defectName = defectName;
        this.defectType = defectType;
        this.defectTypeName = defectTypeName;
        this.defectActionTime = defectActionTime;
        this.repairStatus = repairStatus;
        this.createUser = createUser;
        this.dcCode = dcCode;
        this.dcName = dcName;
        this.repairCode = repairCode;
        this.repairName = repairName;
        this.approvalStatus=approvalStatus;
        this.memo = memo;
        this.repairJudgeCode = repairJudgeCode;
        this.repairJudgeName = repairJudgeName;
        this.repairDatetime = repairDatetime;
        this.modifyUser = modifyUser;
    }
}
