diff --git a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/RJController.java b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/RJController.java index 23ba5f3cf..7bd01af17 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/RJController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/RJController.java @@ -5,7 +5,7 @@ import com.jsowell.common.annotation.Anonymous; import com.jsowell.common.core.controller.BaseController; import com.jsowell.common.response.RestApiResponse; import com.jsowell.pile.dto.ruanjie.UseCouponDTO; -import com.jsowell.thirdparty.ruanjie.service.RJService; +import com.jsowell.thirdparty.parking.service.RJService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; diff --git a/jsowell-admin/src/test/java/SpringBootTestController.java b/jsowell-admin/src/test/java/SpringBootTestController.java index 3ccce38bd..5841fe2fe 100644 --- a/jsowell-admin/src/test/java/SpringBootTestController.java +++ b/jsowell-admin/src/test/java/SpringBootTestController.java @@ -77,7 +77,7 @@ import com.jsowell.thirdparty.common.NotificationDTO; import com.jsowell.thirdparty.common.NotificationService; import com.jsowell.thirdparty.huawei.HuaWeiService; import com.jsowell.thirdparty.lianlian.service.LianLianService; -import com.jsowell.thirdparty.lutongyunting.service.LTYTService; +import com.jsowell.thirdparty.parking.service.LTYTService; import com.jsowell.thirdparty.platform.service.ThirdPartyPlatformService; import com.jsowell.thirdparty.platform.util.Cryptos; import com.jsowell.thirdparty.platform.util.Encodes; diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/UploadRealTimeMonitorHandler.java b/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/UploadRealTimeMonitorHandler.java index 81567a66d..8a33bd772 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/UploadRealTimeMonitorHandler.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/UploadRealTimeMonitorHandler.java @@ -322,28 +322,28 @@ public class UploadRealTimeMonitorHandler extends AbstractYkcHandler { } // 判断该订单是否需要下发优惠券 - String redisKey = CacheConstants.CAR_BIND_COUPON_BY_ORDER_CODE + orderInfo.getOrderCode(); - Object cacheObject = redisCache.getCacheObject(redisKey); - if (cacheObject == null && sumChargingTime >= 10) { - // 异步绑定优惠券并设置缓存 - CompletableFuture.runAsync(() -> { - try { - commonService.bindCoupon(orderInfo); - redisCache.setCacheObject(redisKey, Boolean.TRUE, 24, TimeUnit.HOURS); - } catch (Exception e) { - log.error("异步绑定车辆优惠券 error,", e); - } - }, executor); - } + // String redisKey = CacheConstants.CAR_BIND_COUPON_BY_ORDER_CODE + orderInfo.getOrderCode(); + // Object cacheObject = redisCache.getCacheObject(redisKey); + // if (cacheObject == null && sumChargingTime >= 10) { + // // 异步绑定优惠券并设置缓存 + // CompletableFuture.runAsync(() -> { + // try { + // commonService.bindCoupon(orderInfo); + // redisCache.setCacheObject(redisKey, Boolean.TRUE, 24, TimeUnit.HOURS); + // } catch (Exception e) { + // log.error("异步绑定车辆优惠券 error,", e); + // } + // }, executor); + // } // 异步绑定优惠券 - // CompletableFuture.runAsync(() -> { - // try { - // commonService.bindParkingCoupon(realTimeMonitorData, orderInfo); - // } catch (Exception e) { - // log.error("异步绑定车辆停车优惠券error", e); - // } - // }, executor); + CompletableFuture.runAsync(() -> { + try { + commonService.bindParkingCoupon(realTimeMonitorData, orderInfo); + } catch (Exception e) { + log.error("异步绑定车辆停车优惠券error", e); + } + }, executor); } // 充电时保存实时数据到redis diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java index f7a6e8ad4..bb75331e8 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/common/CommonService.java @@ -34,14 +34,14 @@ import com.jsowell.pile.vo.web.ChargeParkingDiscountVO; import com.jsowell.pile.vo.web.PileStationVO; import com.jsowell.thirdparty.huawei.HuaweiServiceV2; import com.jsowell.thirdparty.lianlian.service.LianLianService; -import com.jsowell.thirdparty.lutongyunting.service.LTYTService; +import com.jsowell.thirdparty.parking.service.LTYTService; import com.jsowell.thirdparty.nanrui.service.NRService; import com.jsowell.thirdparty.platform.service.impl.DianXingPlatformServiceImpl; import com.jsowell.thirdparty.platform.service.impl.HaiNanPlatformServiceImpl; import com.jsowell.thirdparty.platform.service.impl.NingXiaPlatformServiceImpl; import com.jsowell.thirdparty.platform.service.impl.QingHaiPlatformServiceImpl; import com.jsowell.thirdparty.platform.util.HttpRequestUtil; -import com.jsowell.thirdparty.ruanjie.service.RJService; +import com.jsowell.thirdparty.parking.service.RJService; import com.jsowell.thirdparty.service.ThirdpartySecretInfoService; import com.jsowell.thirdparty.xindiantu.service.XDTService; import com.jsowell.thirdparty.yongchengboche.dto.YCBCGetTokenDTO; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonParams.java similarity index 93% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonParams.java index 8f3563db8..481baa0c3 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonParams.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonParams.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyunting.common; +package com.jsowell.thirdparty.parking.common; import lombok.Data; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonResult.java similarity index 82% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonResult.java index d21570b0f..c0e3a247d 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/common/LTYTCommonResult.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/common/LTYTCommonResult.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyunting.common; +package com.jsowell.thirdparty.parking.common; import lombok.Data; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/LTYTService.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/LTYTService.java similarity index 91% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/LTYTService.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/LTYTService.java index 43638939c..709793f2d 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/LTYTService.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/LTYTService.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyunting.service; +package com.jsowell.thirdparty.parking.service; import com.jsowell.pile.dto.lutongyunting.BindCouponDTO; import com.jsowell.pile.dto.lutongyunting.GetTokenDTO; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/RJService.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/RJService.java similarity index 85% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/RJService.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/RJService.java index e6751083c..a8c60de50 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/RJService.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/RJService.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.ruanjie.service; +package com.jsowell.thirdparty.parking.service; import com.jsowell.pile.dto.ruanjie.UseCouponDTO; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/impl/LTYTServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/LTYTServiceImpl.java similarity index 97% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/impl/LTYTServiceImpl.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/LTYTServiceImpl.java index 94cabc553..981e5a6bd 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/lutongyunting/service/impl/LTYTServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/LTYTServiceImpl.java @@ -1,4 +1,4 @@ -package com.jsowell.thirdparty.lutongyunting.service.impl; +package com.jsowell.thirdparty.parking.service.impl; import cn.hutool.http.HttpUtil; import com.alibaba.fastjson2.JSON; @@ -14,8 +14,7 @@ import com.jsowell.pile.domain.OrderBasicInfo; import com.jsowell.pile.dto.lutongyunting.BindCouponDTO; import com.jsowell.pile.dto.lutongyunting.GetTokenDTO; import com.jsowell.pile.service.CarCouponRecordService; -import com.jsowell.thirdparty.lutongyunting.common.LTYTCommonParams; -import com.jsowell.thirdparty.lutongyunting.service.LTYTService; +import com.jsowell.thirdparty.parking.service.LTYTService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/impl/RJServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/RJServiceImpl.java similarity index 93% rename from jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/impl/RJServiceImpl.java rename to jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/RJServiceImpl.java index 1e805e5b3..0319921b8 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/ruanjie/service/impl/RJServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/parking/service/impl/RJServiceImpl.java @@ -1,12 +1,12 @@ -package com.jsowell.thirdparty.ruanjie.service.impl; +package com.jsowell.thirdparty.parking.service.impl; import cn.hutool.http.HttpUtil; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONObject; import com.jsowell.common.util.sign.MD5Util; import com.jsowell.pile.dto.ruanjie.UseCouponDTO; -import com.jsowell.thirdparty.lutongyunting.service.impl.LTYTServiceImpl; -import com.jsowell.thirdparty.ruanjie.service.RJService; +import com.jsowell.thirdparty.parking.service.impl.LTYTServiceImpl; +import com.jsowell.thirdparty.parking.service.RJService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service;