|
|
|
@@ -1205,6 +1205,15 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
// 有价券 |
|
|
|
order = saveNoFreeOrderForCoupon(user, coupon, orderSaveDto.getCouponChannelId(), isPress, orderSaveDto.getOrderGroupId(), orderSaveDto.getFormId()); |
|
|
|
} |
|
|
|
// couponActionLog |
|
|
|
try { |
|
|
|
wxCouponActionLogService.addOne(user.getTenantId(), order.getProductId(), order.getOrderNumber(), EnumCouponSendSendType.ACTIVE.getCode(), orderSaveDto.getCouponChannelId()); |
|
|
|
} catch (Exception e) { |
|
|
|
// 库存恢复 |
|
|
|
stockBack(order); |
|
|
|
logger.error("保存订单:" + e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.ORDER_SAVE_ERR); |
|
|
|
} |
|
|
|
return order; |
|
|
|
} |
|
|
|
|
|
|
|
|