Sfoglia il codice sorgente

//press

release_toaliyun_real
xhxu 3 anni fa
parent
commit
4b5df90272
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java

+ 2
- 0
mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java Vedi File

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


Caricamento…
Annulla
Salva