update 平台配置页面

This commit is contained in:
2024-04-26 16:08:53 +08:00
parent 92aa4262d7
commit 4885163f6e
2 changed files with 33 additions and 0 deletions

View File

@@ -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();