Explorar el Código

//press

release_toaliyun_real
xhxu hace 3 años
padre
commit
4b5df90272
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java

+ 2
- 0
mallinkCApi/src/main/java/com/iformall/controller/WxPressOrderController.java Ver fichero

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


Cargando…
Cancelar
Guardar