|
|
|
@@ -93,12 +93,10 @@ public class WxOrderController extends BaseController { |
|
|
|
} |
|
|
|
//判断是否是拼团订单,如果是拼团订单,判断现在进行中的,和已完成的数量是否超出券的限制 |
|
|
|
if (coupon.getType().equals(EnumCouponType.COUPON_GROUP.getCode())) { |
|
|
|
if (null != orderSaveDto.getOrderGroupId() && !orderSaveDto.getOrderGroupId().equals(0L)) { |
|
|
|
int ordercount = wxOrderService.countUserCouponGroupOrder(user.getId(),coupon.getId()); |
|
|
|
if (ordercount>=coupon.getUseLimitQuantity()) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"您当前此券的有效拼团数量达到券的限购次数。"); |
|
|
|
} |
|
|
|
} |
|
|
|
int ordercount = wxOrderService.countUserCouponGroupOrder(user.getId(),coupon.getId()); |
|
|
|
if (ordercount>=coupon.getUseLimitQuantity()) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"您当前此券的有效拼团数量达到券的限购次数。"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
WxCouponCVo wxCouponCVo = null; |
|
|
|
|