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