This commit is contained in:
YAS\29473
2025-04-28 09:19:01 +08:00
parent 4d5a151119
commit 2bc08c3724
2 changed files with 28 additions and 2 deletions

View File

@@ -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;
}
/**
* 推送订单结算信息 (联联推给我们)
*

View File

@@ -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 {