Преглед изворни кода

//press

release_toaliyun_real
xhxu пре 3 година
родитељ
комит
4b5df90272
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java

+ 2
- 0
mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java Прегледај датотеку

@@ -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(),"您进行过砍价活动,无法参与新用户砍价.");
}
}


Loading…
Откажи
Сачувај