package com.yunfeiyun.agmp.fms.domain.reqvo;

import lombok.Data;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;

@Data
public class WmsChangeApplyReqVo {
    /**库存标识*/
    @NotBlank(message = "库存标识不能为空")
    private String stockId;
    /**变动数量*/
    @Pattern(regexp = "(^(-)?[1-9]+(\\.\\d{1,2})*$)|(^(-)?[0-9]+(\\.\\d{1,2})*$)",message = "变动数量必须为非0实数且保留两位小数")
    private String changeNumber;
    /**备注*/
    private String remark;

    public BigDecimal getChangeNumber(){
        return new BigDecimal(changeNumber);
    }

}
