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

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
public class ReplenishInitiativeSaveDetailVO implements Serializable {

    private static final long serialVersionUID = 4486322573848715147L;
    /**
     * 货主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;

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

    /**
     * 库别
     */
    @ApiModelProperty("库别")
    @NotBlank(message = "{required}")
    private String warehouseAreaCategory;
}
