fix: 优惠券为空不消耗券
This commit is contained in:
@@ -1590,6 +1590,9 @@ public class CartService {
|
||||
}
|
||||
|
||||
private void consumeCoupon(List<TbActivateOutRecord> outRecordList, Integer memberId, TbOrderInfo orderInfo) {
|
||||
if (outRecordList.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
boolean use = shopCouponService.use(Integer.valueOf(orderInfo.getShopId()), orderInfo.getId(), memberId, outRecordList);
|
||||
if (!use) {
|
||||
throw new MsgException("消耗券失败");
|
||||
|
||||
Reference in New Issue
Block a user