## 会员月限购处理调整(343);
This commit is contained in:
parent
61e7ec003d
commit
72c5c564ff
|
@ -2379,7 +2379,7 @@ public class SaOrderServiceImpl extends ServiceImpl<SaOrderMapper, SaOrder> impl
|
||||||
if (null != monthLimit) {
|
if (null != monthLimit) {
|
||||||
// 月限购 + 本次购买数量
|
// 月限购 + 本次购买数量
|
||||||
monthLimit = monthLimit + limitMap.get(tmpWares);
|
monthLimit = monthLimit + limitMap.get(tmpWares);
|
||||||
if (monthLimit > waresLimitMap.get(tmpWares).getMemberLimit()) {
|
if (monthLimit > waresLimitMap.get(tmpWares).getMemberMonthLimit()) {
|
||||||
// 购买数量 > 月限购,不能购买
|
// 购买数量 > 月限购,不能购买
|
||||||
throw new ServiceException("购买商品已经超过限购数量,无法下单");
|
throw new ServiceException("购买商品已经超过限购数量,无法下单");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue