|
|
|
@@ -194,9 +194,9 @@ public class WxPressBatchServiceImpl implements WxPressBatchService { |
|
|
|
orderPressQ.setTenantId(order.getTenantId()); |
|
|
|
orderPressQ.setUserId(cUserId); |
|
|
|
orderPressQ.setCouponIds(batchCouponIds); |
|
|
|
int count = wxOrderPressMapper.selectCount(new QueryWrapper<>(orderPressQ)); |
|
|
|
int count = wxOrderPressMapper.findCount(orderPressQ); |
|
|
|
if(count >= pressBatch.getBargainerAllowCount().intValue()) { |
|
|
|
return new ResultData(Result.ERROR,"当前用户砍价次数已达批次活动设定上限,"); |
|
|
|
return new ResultData(Result.ERROR,"当前用户砍价次数已达批次活动设定上限["+pressBatch.getName()+"]"); |
|
|
|
} else { |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|