package com.prolog.upcloud.base.wh.operate.model;

import com.prolog.framework.core.annotation.AutoKey;
import com.prolog.framework.core.annotation.Column;
import com.prolog.framework.core.annotation.Id;
import com.prolog.framework.core.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @auther KingYan
 * @create 2022-07-13 18:00:14
 * @describe 合托单明细实体类
 */
@Data
@Table("wms_stereo_d")
@ApiModel(value = "WmsStereoD对象", description = "合托单明细")
public class WmsStereoD implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行ID")
    @Id
    @AutoKey(type = AutoKey.TYPE_SNOWFLAKE)
    @Column("detail_id")
    private String detailId;

    @ApiModelProperty(value = "立库合托单号")
    @Column("header_id")
    private String headerId;

    @ApiModelProperty(value = "货主id")
    @Column("cargo_owner_id")
    private String cargoOwnerId;

    @ApiModelProperty(value = "移入容器")
    @Column("to_container_code")
    private String toContainerCode;

    @ApiModelProperty(value = "商品ID")
    @Column("item_id")
    private String itemId;

    @ApiModelProperty(value = "商品编号")
    @Column("item_code")
    private String itemCode;

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

    @ApiModelProperty(value = "状态（0-初始；1-到位；2-完成；）")
    @Column("status")
    private Integer status;

    @ApiModelProperty(value = "商品批次ID")
    @Column("batch_id")
    private String batchId;

    @ApiModelProperty(value = "库存状态（合格/不合格/待检/退货）1-合格;2-不合格;3-待检;4-退货;")
    @Column("stock_status")
    private String stockStatus;

    @ApiModelProperty(value = "商品批次编号")
    @Column("batch_num")
    private String batchNum;

    @ApiModelProperty(value = "库存数量")
    @Column("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "转移数量")
    @Column("act_quantity")
    private BigDecimal actQuantity;

    @ApiModelProperty(value = "单位")
    @Column("uom")
    private String uom;

    @ApiModelProperty(value = "是否被删除（0-否；1-是）")
    @Column("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "批号")
    @Column("manufacturer_lot_num")
    private String manufacturerLotNum;

    @ApiModelProperty(value = "Create time, common column by DB rules")
    @Column("gmt_create")
    private Date gmtCreate;

    @ApiModelProperty(value = "Creator,common column by DB rules")
    @Column("creator")
    private String creator;

    @ApiModelProperty(value = "Creator name,common column by DB rules")
    @Column("creator_name")
    private String creatorName;

    @ApiModelProperty(value = "Modified time,common column by DB rules")
    @Column("gmt_modified")
    private Date gmtModified;

    @ApiModelProperty(value = "Modifier,common column by DB rules")
    @Column("modifier")
    private String modifier;

    @ApiModelProperty(value = "Modifier name,common column by DB rules")
    @Column("modifier_name")
    private String modifierName;

    @ApiModelProperty(value = "是否已发出库指令（0-否；1-已发未达；2-已送达）")
    @Column("outbound_instruct")
    private Integer outboundInstruct;

    @ApiModelProperty(value = "被锁库存ID")
    @Column("lock_stock_lot_id")
    private String lockStockLotId;

}