|
|
@@ -129,7 +129,7 @@ public class CouponReceiveService extends BaseService<CouponReceive> {
|
|
|
|
|
|
//region 是否新建优惠券使用
|
|
|
//新建之后再查一遍 查询优惠券获取对应的优惠券发出已有多少人助力
|
|
|
- Long addAfterCount = couponReceiveMapper.countByCond(new CouponReceiveQuery().setSendId(couponReceiveVO.getSendId()));
|
|
|
+ Long addAfterCount = couponReceiveMapper.countByCond(new CouponReceiveQuery().setSendId(couponReceiveVO.getSendId()).setCpId(couponReceiveVO.getCpId()));
|
|
|
//当前优惠券获取个数等于优惠券发出所需助力人数
|
|
|
if (addAfterCount == Long.valueOf(userNum)) {
|
|
|
|