|
|
|
@@ -337,7 +337,7 @@ public class WxCarController extends BaseController { |
|
|
|
|
|
|
|
|
|
|
|
if (park.getVendorType().equals(EnumCarVendor.CAR_ETCP.getCode())) { |
|
|
|
if (null != used && used.intValue() < 1) { |
|
|
|
if (null == used || (null != used && used.intValue() < 1)) { |
|
|
|
ResultData result = etcpHelper.getCoupon(paramMap, park, userCar,carNumber); |
|
|
|
if (result.code == Result.SUCCESS) { |
|
|
|
ParkCacheUtils.setCarCouponUsedCacheLock(redisTemplate, vendor.getMessage(), carNumber); |
|
|
|
@@ -351,7 +351,7 @@ public class WxCarController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "券为空"); |
|
|
|
} |
|
|
|
try { |
|
|
|
if (null != used && used.intValue() < 1) { |
|
|
|
if (null == used || (null != used && used.intValue() < 1)) { |
|
|
|
ResultData rs = parkFactory.getParkService(park.getVendorType()).useCoupon(paramMap, park, userCar, coupon, carNumber); |
|
|
|
if (rs.code == Result.SUCCESS) { |
|
|
|
etcpHelper.updateWxCouponOrderUsed(userCar, park); |
|
|
|
|