|
|
|
@@ -186,14 +186,14 @@ public class HaiKangWeiShiV3ParkService extends BaseParkService implements ParkA |
|
|
|
return new ResultData(ErrorCode.CYF_STOP_FEE_FAIL.getCode(),"当前用户未查询到手机号!"+userCar.getcUserId()); |
|
|
|
} |
|
|
|
|
|
|
|
Map<String,String> valueMap = WxParkCouponConfig.parseValue(userCar.getVendorParams()); |
|
|
|
if (null == valueMap) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置。"+coupon.getTitle()); |
|
|
|
} |
|
|
|
String couponCode = valueMap.get("couponCode"); |
|
|
|
if (StringUtils.isBlank(couponCode)) { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置[couponCode]。"+coupon.getTitle()); |
|
|
|
} |
|
|
|
// Map<String,String> valueMap = WxParkCouponConfig.parseValue(userCar.getVendorParams()); |
|
|
|
// if (null == valueMap) { |
|
|
|
// return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置。"+coupon.getTitle()); |
|
|
|
// } |
|
|
|
// String couponCode = valueMap.get("couponCode"); |
|
|
|
// if (StringUtils.isBlank(couponCode)) { |
|
|
|
// return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"当前停车券没有关联停车场优惠券配置[couponCode]。"+coupon.getTitle()); |
|
|
|
// } |
|
|
|
|
|
|
|
//查询临停信息,判断缓存是否已经存在 |
|
|
|
JSONObject stopInfo = haikangV3.getCarStopFee(park, carNumber, getConfig(park),null); |
|
|
|
@@ -208,7 +208,7 @@ public class HaiKangWeiShiV3ParkService extends BaseParkService implements ParkA |
|
|
|
String couponStart = dateToISO8601Time(coupon.getValidStartDate()); |
|
|
|
String couponEnd = dateToISO8601Time(coupon.getValidEndDate()); |
|
|
|
ArtemisConfig config = getConfig(park); |
|
|
|
JSONObject retObj = haikangV3.useCoupon(park,config,carNumber,couponCode,couponStart,couponEnd,coupon); |
|
|
|
JSONObject retObj = haikangV3.useCoupon(park,config,carNumber,couponStart,couponEnd,coupon); |
|
|
|
haikangV3.getCarStopFee(park, carNumber, config,null); |
|
|
|
RedisCacheUtils.cache(redisTemplate, "carStop:haikangv3StopInfoUseCoupon:"+carNumber+":"+inRecordSyscode, 1, 24*3600); |
|
|
|
return new ResultData(); |
|
|
|
|