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

import cn.estsh.i3plus.ext.mes.pojo.util.MesExtEnumUtil;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.common.Pager;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description :返工范围MODEL
 * @Reference :
 * @Author : xinwang.yi
 * @CreateDate : 2023-06-30
 * @Modify:
 **/
@Data
@Api("返工范围MODEL")
public class SxReworkRangeModel implements Serializable {

    private static final long serialVersionUID = 5527091893308865228L;

    @ApiParam("初始工单号")
    private String workOrderNo;

    @ApiParam("返工工单号")
    private String reworkOrderNo;

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

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

    @ApiParam("大包装条码")
    private String outerPackageNo;

    @ApiParam("包装条码")
    private String packageNo;

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

    @ApiParam("检验结果")
    @AnnoOutputColumn(refClass = MesExtEnumUtil.OQC_CHECK_RESULT.class)
    private Integer checkResult;

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

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

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

    @ApiParam("班次名称")
    private String shiftName;

    @ApiParam("下线时间")
    private String outWcTime;

    @ApiParam("关联状态")
    @AnnoOutputColumn(refClass = MesExtEnumUtil.REWORK_RANGE_IS_BAND.class)
    private Integer bindStatus;

    @ApiParam("id")
    private Long id;

    @ApiParam("是否有效")
    private Integer isValid;

    @ApiParam("是否删除")
    private Integer isDeleted;

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

    @ApiParam("创建用户")
    private String createUser;

    @ApiParam("创建日期")
    private String createDatetime;

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

    @ApiParam("修改日期")
    private String modifyDatetime;

    @ApiParam("更新日期开始")
    private String modifyDatetimeStart;

    @ApiParam("更新日期结束")
    private String modifyDatetimeEnd;

    @ApiParam("年月查询条件")
    private String yearMonth;

    @ApiParam("流水号范围开始")
    private Integer batchLimitStart;

    @ApiParam("流水号范围结束")
    private Integer batchLimitEnd;

    //（如果outerPackageNo等于packageNo则不存在大包装条码）该字段用于避免其他业务获取该缓存结果
    @ApiParam("大包装条码（如果outerPackageNo等于packageNo则不存在大包装条码）")
    private String outerPackageNoShow;

    @ApiParam("Pager")
    private Pager pager;


}
