|
|
|
@@ -181,10 +181,12 @@ public class WxPressOrderController extends BaseController { |
|
|
|
if (null != wxCouponCVo.getPressSupportIsNew() && EnumYesOrNo.YES.getCode().intValue() == wxCouponCVo.getPressSupportIsNew().intValue()) { |
|
|
|
int orderCount = wxOrderService.countCouponConditionType1(tenantEntity.getTenantId(),memberId); |
|
|
|
if (orderCount > 0) { |
|
|
|
redisLock.unlock(orderIdStr, timeStr); |
|
|
|
return new ResultData(ErrorCode.COUPON_PRESS_IS_EXIST.getCode(),"您进行过消费,无法参与新用户砍价."); |
|
|
|
} |
|
|
|
int pressCount = wxOrderPressService.userCount(tenantEntity, memberId); |
|
|
|
if (pressCount > 0) { |
|
|
|
redisLock.unlock(orderIdStr, timeStr); |
|
|
|
return new ResultData(ErrorCode.COUPON_PRESS_IS_EXIST.getCode(),"您进行过砍价活动,无法参与新用户砍价."); |
|
|
|
} |
|
|
|
} |
|
|
|
|