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