package com.prolog.cs.biz.outbound.model.vo;

import com.prolog.framework.core.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Table("wms_task_out_back")
public class InfTaskOutBackVO {

    @Id
    @ApiModelProperty(value = "主键id")
    @Column(value = "MSG_ID")
    private String msgId;

    @ApiModelProperty(value = "仓库id")
    @Column(value = "WAREHOUSE_ID")
    private String warehouseId;


    @ApiModelProperty(value = "仓库id")
    @Column(value = "enterprise_id")
    private String enterpriseId;

    @ApiModelProperty(value = "货主ID")
    @Column(value = "OWNER_ID")
    private String ownerId;

    @ApiModelProperty(value = "任务ID")
    @Column("task_id")
    private String taskId;

    @ApiModelProperty(value = "出库单号，移库单号，盘点单号，养护单号")
    @Column(value = "BILLNO")
    private String billNo;

    @ApiModelProperty(value = "有任务取任务的行号，无任务的业务取单明细的行号")
    @Column(value = "SEQNO")
    private String seqNo;

    @ApiModelProperty(value = "作业类型（见上述接口清单作业类型与业务类型约定）")
    @Column(value = "WORK_TYPE")
    private String workType;

    @ApiModelProperty(value = "业务类型（见上述接口清单作业类型与业务类型约定）")
    @Column(value = "BUSINESS_TYPE")
    private String businessType;

    @ApiModelProperty(value = "商品包装ID")
    @Column("pack_id")
    private String packId;

    @ApiModelProperty(value = "商品编码")
    @Column(value = "ITEM_ID")
    private String itemId;

    @ApiModelProperty(value = "商品编码")
    @Column(value = "ITEM_CODE")
    private String itemCode;

    @ApiModelProperty(value = "商品名称")
    @Column(value = "ITEM_NAME")
    private String itemName;

    @ApiModelProperty(value = "包装数量")
    @Column(value = "PACK_QTY")
    private BigDecimal packQty;

    @ApiModelProperty(value = "数量")
    @Column(value = "QTY")
    private BigDecimal qty;

    @ApiModelProperty(value = "源货位")
    @Column(value = "LOC_CODE")
    private String locCode;

    @ApiModelProperty(value = "批次ID")
    @Column(value = "LOT_ID")
    private String lotId;

    @ApiModelProperty(value = "批号")
    @Column(value = "LOT_NO")
    private String lotNo;

    @ApiModelProperty(value = "生产日期")
    @Column(value = "YIELD_DATE")
    private Date yieldDate;

    @ApiModelProperty(value = "有效日期")
    @Column(value = "EXP_DATE")
    private Date expDate;

    @ApiModelProperty(value = "容器编号")
    @Column(value = "CONTAINER_NO")
    private String containerNo;

    @ApiModelProperty(value = "0正常出，1补货任务，2移库任务")
    @Column(value = "TYPE")
    private String type;

    @ApiModelProperty(value = "0,未回盘,1,已回盘")
    @Column(value = "STATUS")
    private String status;

    @ApiModelProperty(value = "扩展字段1（返回异常订单类型）")
    @Column(value = "EXTEND01")
    private String extend01;

    @ApiModelProperty(value = "扩展字段2（异常订单描述）")
    @Column(value = "EXTEND02")
    private String extend02;

    @ApiModelProperty(value = "扩展字段3（出库站台号）")
    @Column(value = "EXTEND03")
    private String extend03;

    @ApiModelProperty(value = "扩展字段4")
    @Column(value = "EXTEND04")
    private String extend04;

    @ApiModelProperty(value = "扩展字段5")
    @Column(value = "EXTEND05")
    private String extend05;

    @ApiModelProperty(value = "接口状态N/Y/E")
    @Column(value = "WMFLG")
    private String wmFlg;

    @ApiModelProperty(value = "出库口")
    @Column(value = "outbound_platform")
    private String outboundPlatform;

    @ApiModelProperty(value = "WMS货位")
    @Column(value = "sourcelocation")
    private String sourcelocation;

    @ApiModelProperty(value = "目标位置")
    @Column(value = "targetlocation")
    private String targetlocation;

    @ApiModelProperty(value = "出库方式 1、整托，2、整件, 3、零货")
    @Column(value = "outtype")
    private String outtype;

    @ApiModelProperty(value = "标签号")
    @Column(value = "label")
    private String label;

    @ApiModelProperty(value = "货格号")
    @Column(value = "location_no")
    private String locationNo;

    @ApiModelProperty(value = "回传EIS状态N/Y/E")
    @Column(value = "eis_flag")
    private String eisFlag;

    @ApiModelProperty(value = "回传EIS次数")
    @Column(value = "to_eis_cnt")
    private BigDecimal toEisCnt;
	
	@ApiModelProperty(value = "标签数量")
    @Ignore
    private BigDecimal labelqty;

    @ApiModelProperty(value = "货位")
    @Ignore
    private String wmslocationCode;
}
