## 提货生成订单取消提货基数倍数校验
This commit is contained in:
parent
01c9a4d80c
commit
47fb7ff263
|
@ -217,7 +217,7 @@ public class ApiPickController extends BaseController {
|
|||
// 会员提货商品不存在
|
||||
return AjaxResult.error(TransactionUtils.getContent(ActivityMsgConstants.PICK_PRODUCT_NOT_EXIST));
|
||||
}
|
||||
if (!acPick.getUsableQuantity().equals(param.getQuantity()) && param.getQuantity() % acPick.getBaseQuantity() != 0) {
|
||||
if (param.getQuantity() < acPick.getBaseQuantity()) {
|
||||
// 提货数量等于可提数量 或 提货数量是提货基数的倍数才能进行处理
|
||||
return AjaxResult.error(TransactionUtils.getContent(ActivityMsgConstants.PICK_QUANTITY_BASE, acPick.getBaseQuantity()));
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ public class ActivityMsgConstants {
|
|||
/**
|
||||
* 会员提货时,提货数量只能为配置基数的倍数(比如:沙棘果汁一次只能提3箱) -- 提货数量只能为%s的倍数
|
||||
*/
|
||||
public static final String PICK_QUANTITY_BASE = "提货数量只能为%s的倍数";
|
||||
public static final String PICK_QUANTITY_BASE = "提货数量不能小于提货基数%s";
|
||||
|
||||
/**
|
||||
* 会员提货时,不包邮但是邮费模板配置有错误或者缺失 -- 提货邮费计算错误
|
||||
|
|
Loading…
Reference in New Issue