|
|
|
@@ -178,10 +178,10 @@ public class HaiKangWeiShiV3ParkService extends BaseParkService implements ParkA |
|
|
|
if (null == valueMap) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置。"+coupon.getTitle()); |
|
|
|
} |
|
|
|
String ruleSyscode = valueMap.get("ruleSyscode"); |
|
|
|
if (StringUtils.isBlank(ruleSyscode)) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置[ruleSyscode]。"+coupon.getTitle()); |
|
|
|
} |
|
|
|
//String ruleSyscode = valueMap.get("ruleSyscode"); |
|
|
|
//if (StringUtils.isBlank(ruleSyscode)) { |
|
|
|
// return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置[ruleSyscode]。"+coupon.getTitle()); |
|
|
|
//} |
|
|
|
String couponCode = valueMap.get("couponCode"); |
|
|
|
if (StringUtils.isBlank(couponCode)) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置[couponCode]。"+coupon.getTitle()); |
|
|
|
@@ -196,7 +196,7 @@ public class HaiKangWeiShiV3ParkService extends BaseParkService implements ParkA |
|
|
|
return new ResultData(ErrorCode.CYF_STOP_FEE_FAIL.getCode(), "已经使用过优惠券, 不能重复使用."); |
|
|
|
} |
|
|
|
|
|
|
|
JSONObject retObj = haikangV3.useCoupon(park,getConfig(park),carNumber,ruleSyscode,couponCode); |
|
|
|
JSONObject retObj = haikangV3.useCoupon(park,getConfig(park),carNumber,couponCode); |
|
|
|
RedisCacheUtils.cache(redisTemplate, "carStop:haikangv2StopInfoUseCoupon:"+carNumber+":"+inRecordSyscode, 1, 24*3600); |
|
|
|
return new ResultData(); |
|
|
|
|
|
|
|
|