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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author wujunjie
 * @desc 紧急补货明细信息
 * @date 2021-05-14
 */
@Data
@ApiModel
public class ReplenishUrgentSaveDetailVO implements Serializable {

    private static final long serialVersionUID = -7822491218882629099L;

    /**
     * 货主ID
     */
    @NotBlank(message = "{required}")
    @Length(max = 32, message = "{noMoreThan}")
    @ApiModelProperty("货主ID")
    private String cargoOwnerId;

    /**
     * 商品ID
     */
    @NotBlank(message = "{required}")
    @Length(max = 32, message = "{noMoreThan}")
    @ApiModelProperty("商品ID")
    private String itemId;

    /**
     * 货位ID
     */
    @NotBlank(message = "{required}")
    @Length(max = 32, message = "{noMoreThan}")
    @ApiModelProperty("货位ID")
    private String whLocatorId;

    /**
     * 商品批次ID
     */
    @NotBlank(message = "{required}")
    @Length(max = 32, message = "{noMoreThan}")
    @ApiModelProperty("商品批次ID")
    private String batchId;


    /**
     * 补货数量
     */
    @ApiModelProperty("补货数量")
    @NotNull(message = "{required}")
    private BigDecimal pieceQuantity;

    @ApiModelProperty("下架容器号")
    private String containerCode;

    /**
     * 目标货位ID
     */
    @NotBlank(message = "{required}")
    @Length(max = 32, message = "{noMoreThan}")
    @ApiModelProperty("目标货位ID")
    private String toWhLocatorId;

    @ApiModelProperty("目标容器号")
    private String toContainerCode;
}
