mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 推送订单结算信息 (联联推给我们)
|
||||
*
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user