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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author wujunjie
 * @desc 移库信息
 */
@Data
@ApiModel
public class WmsMovePdaDetailVO implements Serializable {

    private static final long serialVersionUID = -8532376183365583669L;
    /**
     * 批次ID
     */
    @ApiModelProperty(value = "批次ID")
    @NotBlank(message = "{required}")
    private String batchId;

    /**
     * 零散数
     */
    @NotNull(message = "{required}")
    @ApiModelProperty(value = "零散数")
    @Digits(integer = 30, fraction = 4, message = "{invalid}")
    private BigDecimal oddPieceQuantity;

    /**
     * 数量
     */
    @NotNull(message = "{required}")
    @ApiModelProperty(value = "整件数")
    @Digits(integer = 30, fraction = 4, message = "{invalid}")
    private BigDecimal caseQuantity;

    /**
     * 库存状态
     */
    @ApiModelProperty(value = "库存状态")
    @NotBlank(message = "{required}")
    private String stockStatus;
}
