update pre数据库为生产数据库

This commit is contained in:
YAS\29473
2025-07-29 10:35:37 +08:00
parent 0dcfb04420
commit 01e554c1a9
2 changed files with 27 additions and 17 deletions

View File

@@ -405,7 +405,7 @@ public class CommonService {
*/
public void pushRealTimeInfoV2(String pileSn, String connectorCode, String connectorStatus,
RealTimeMonitorData realTimeMonitorData, String transactionCode) throws UnsupportedEncodingException {
log.info("推送实时数据到第三方平台,桩编号:{},枪口号:{},枪口状态:{},实时数据:{}", pileSn, connectorCode, connectorStatus, JSON.toJSONString(realTimeMonitorData));
// log.info("推送实时数据到第三方平台,桩编号:{},枪口号:{},枪口状态:{},实时数据:{}", pileSn, connectorCode, connectorStatus, JSON.toJSONString(realTimeMonitorData));
// 推送第三方平台,先通过桩编号查出站点信息 pushToThirdPartyPlatforms
PileBasicInfo pileBasicInfo = pileBasicInfoService.selectPileBasicInfoBySN(pileSn);
if (pileBasicInfo == null) {
@@ -445,19 +445,29 @@ public class CommonService {
){
//无须转换枪口状态
dto.setStatus(connectorStatus);
log.info("枪口状态"+connectorStatus);
// log.info("枪口状态"+connectorStatus);
}else{
dto.setStatus(changedStatus);
log.info("转换的枪口状态"+changedStatus);
// log.info("转换的枪口状态"+changedStatus);
}
// 先推送站点状态
notificationService.notificationStationStatus(dto);
try {
notificationService.notificationStationStatus(dto);
} catch (Exception e) {
log.error("推送站点状态到平台失败,平台类型:{},错误信息:{}",
thirdPartySecretInfoVO.getPlatformType(), e.getMessage(), e);
}
// 如果有订单信息,推送充电状态
if (orderInfo != null) {
dto.setOrderCode(orderInfo.getOrderCode());
notificationService.notificationConnectorChargeStatus(dto);
try {
dto.setOrderCode(orderInfo.getOrderCode());
notificationService.notificationConnectorChargeStatus(dto);
} catch (Exception e) {
log.error("推送充电状态到平台失败,平台类型:{},错误信息:{}",
thirdPartySecretInfoVO.getPlatformType(), e.getMessage(), e);
}
} else {
log.info("无订单信息,仅推送站点状态,平台类型:{}", thirdPartySecretInfoVO.getPlatformType());
}