mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 平台配置页面
This commit is contained in:
@@ -2,6 +2,7 @@ package com.jsowell.web.controller.thirdparty;
|
||||
|
||||
import com.jsowell.common.core.controller.BaseController;
|
||||
import com.jsowell.common.core.domain.AjaxResult;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.thirdparty.common.NotificationDTO;
|
||||
import com.jsowell.thirdparty.common.NotificationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -25,6 +26,9 @@ public class ThirdPartyNotificationController extends BaseController {
|
||||
try {
|
||||
notificationService.notificationStationInfo(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("充电站信息变化推送失败", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("充电站信息变化推送失败", e);
|
||||
result = AjaxResult.error();
|
||||
@@ -41,6 +45,9 @@ public class ThirdPartyNotificationController extends BaseController {
|
||||
try {
|
||||
notificationService.notificationStationStatus(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("设备状态变化推送失败", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("设备状态变化推送失败", e);
|
||||
result = AjaxResult.error();
|
||||
@@ -57,6 +64,9 @@ public class ThirdPartyNotificationController extends BaseController {
|
||||
try {
|
||||
notificationService.notificationConnectorChargeStatus(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("设备充电中状态变化推送失败", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("设备充电中状态变化推送失败", e);
|
||||
result = AjaxResult.error();
|
||||
@@ -73,6 +83,9 @@ public class ThirdPartyNotificationController extends BaseController {
|
||||
try {
|
||||
notificationService.notificationChargeOrderInfo(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("充电订单信息推送失败", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("充电订单信息推送失败", e);
|
||||
result = AjaxResult.error();
|
||||
@@ -89,6 +102,9 @@ public class ThirdPartyNotificationController extends BaseController {
|
||||
try {
|
||||
notificationService.notificationStationFee(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (BusinessException e) {
|
||||
logger.error("站点费率变化推送失败", e);
|
||||
result = AjaxResult.error(e.getMessage());
|
||||
} catch (Exception e) {
|
||||
logger.error("站点费率变化推送失败", e);
|
||||
result = AjaxResult.error();
|
||||
|
||||
Reference in New Issue
Block a user