|
|
|
@@ -781,15 +781,16 @@ public class WxOrderServiceImpl implements WxOrderService { |
|
|
|
if (null != cids && cids.size() > 0 ) { |
|
|
|
couponOrderQ.setCouponIds(cids); |
|
|
|
//判断这些券发起中+已完成的 |
|
|
|
WxOrder order = new WxOrder(); |
|
|
|
order.setCouponIds(cids); |
|
|
|
WxOrder orderq = new WxOrder(); |
|
|
|
orderq.updateTenantInfo(counpon); |
|
|
|
orderq.setCouponIds(cids); |
|
|
|
//if (pressBatch.getPromoterLimitRule().equals(EnumCouponUseLimitRule.TOBEUSED_USELIMIT.getCode())) { |
|
|
|
List<Integer> statusS = new ArrayList<Integer>(); |
|
|
|
statusS.add(EnumOrderStatus.ORDER_STATUS_PRESSING.getCode()); |
|
|
|
statusS.add(EnumOrderStatus.ORDER_STATUS_PRESS_COMPLETE.getCode()); |
|
|
|
order.setStatusS(statusS); |
|
|
|
orderq.setStatusS(statusS); |
|
|
|
//} |
|
|
|
int _count = wxOrderMapper.countCouponConditionType1(order); |
|
|
|
int _count = wxOrderMapper.countCouponConditionType1(orderq); |
|
|
|
if (_count > pressBatch.getPromoterAllowCount()) { |
|
|
|
throw new MallinkException(ErrorCode.ORDER_IS_FAIL.getCode(),"当前用户已达砍价["+counpon.getTitle()+"]所在批次活动发起次数上限."); |
|
|
|
} |
|
|
|
|