mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
打印日志
This commit is contained in:
@@ -58,7 +58,8 @@ public class NotificationService {
|
||||
String postResult = platformService.notificationStationInfo(stationId);
|
||||
result.append(postResult).append("\n");
|
||||
} catch (Exception e) {
|
||||
logger.error("充电站信息变化推送error", e);
|
||||
logger.error("平台类型:{}, 平台名称:{}, 站点id:{}, 充电站信息变化推送error:{}",
|
||||
secretInfoVO.getPlatformType(), secretInfoVO.getPlatformName(), stationId, e.getMessage());
|
||||
}
|
||||
}
|
||||
return result.toString();
|
||||
@@ -93,7 +94,8 @@ public class NotificationService {
|
||||
ThirdPartyPlatformService platformService = ThirdPartyPlatformFactory.getInvokeStrategy(secretInfoVO.getPlatformType());
|
||||
platformService.notificationStationStatus(stationId, pileConnectorCode, status, secretInfoVO);
|
||||
} catch (Exception e) {
|
||||
logger.error("设备状态变化推送error", e);
|
||||
logger.error("平台类型:{}, 平台名称:{}, 站点id:{}, 枪口编号:{}, 设备状态变化推送error:{}",
|
||||
secretInfoVO.getPlatformType(), secretInfoVO.getPlatformName(), stationId, pileConnectorCode, e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,9 +127,9 @@ public class NotificationService {
|
||||
ThirdPartyPlatformService platformService = ThirdPartyPlatformFactory.getInvokeStrategy(secretInfoVO.getPlatformType());
|
||||
try {
|
||||
platformService.notificationConnectorChargeStatus(orderCode, secretInfoVO);
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("设备充电中状态变化推送error:", e);
|
||||
logger.error("平台类型:{}, 平台名称:{}, 站点id:{}, 订单编号:{}, 设备充电中状态变化推送error:{}",
|
||||
secretInfoVO.getPlatformType(), secretInfoVO.getPlatformName(), stationId, orderCode, e.getMessage());
|
||||
}
|
||||
try {
|
||||
platformService.notificationEquipChargeStatus(orderCode);
|
||||
|
||||
Reference in New Issue
Block a user