diff --git a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/LianLianController.java b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/LianLianController.java index 6316ace8a..39bf2d366 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/LianLianController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/LianLianController.java @@ -379,7 +379,7 @@ public class LianLianController extends ThirdPartyBaseController { * @return */ @GetMapping("/v1/notification_start_charge_result/{orderCode}") - public RestApiResponse notification_start_charge_result(@RequestParam("orderCode") String orderCode) { + public RestApiResponse notification_start_charge_result(@PathVariable("orderCode") String orderCode) { logger.info("【{}】推送启动充电结果 params:{}", this.getClass().getSimpleName(), orderCode); RestApiResponse response = null; try { @@ -470,6 +470,32 @@ public class LianLianController extends ThirdPartyBaseController { } + /** + * 推送停止充电结果 + * http://localhost:8080/hainan/notificationStopChargeResult + * @param orderCode + * @return + */ + @GetMapping("/v1/notification_stop_charge_result/{orderCode}") + public RestApiResponse notification_stop_charge_result(@PathVariable("orderCode") String orderCode) { + logger.info("推送停止充电结果 params:{}", orderCode); + RestApiResponse response = null; + try { + String result = platformLogic.notificationStopChargeResult(orderCode); + logger.info("推送停止充电结果 result:{}", result); + response = new RestApiResponse<>(result); + }catch (BusinessException e) { + logger.error("推送停止充电结果 error",e); + response = new RestApiResponse<>(e.getCode(), e.getMessage()); + }catch (Exception e) { + logger.error("推送停止充电结果 error", e); + response = new RestApiResponse<>(e); + } + logger.info("推送停止充电结果 result:{}", response); + return response; + } + + /** * 推送订单结算信息 (联联推给我们) * diff --git a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/WeiWangKuaiDianController.java b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/WeiWangKuaiDianController.java index 31f58420f..76261d6f2 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/WeiWangKuaiDianController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/WeiWangKuaiDianController.java @@ -296,7 +296,7 @@ public class WeiWangKuaiDianController extends ThirdPartyBaseController { * @return */ @GetMapping("/v1/notification_start_charge_result/{orderCode}") - public RestApiResponse notification_start_charge_result(@RequestParam("orderCode") String orderCode) { + public RestApiResponse notification_start_charge_result(@PathVariable("orderCode") String orderCode) { logger.info("【{}】推送启动充电结果 params:{}", this.getClass().getSimpleName(), orderCode); RestApiResponse response = null; try {