update pre数据库

This commit is contained in:
YAS\29473
2025-08-18 08:40:07 +08:00
parent 008441527e
commit 146bb86865
3 changed files with 61 additions and 123 deletions

View File

@@ -236,12 +236,13 @@ public class JsowellTask {
*/
public void pushStationRealTimePowerInfo() {
String env = SpringUtils.getActiveProfile();
if (StringUtils.equalsIgnoreCase(env, "prd")) {
if (StringUtils.equalsIgnoreCase(env, "pre")) {
log.debug("PRE环境不执行");
return;
}
List<String> thirdPartyTypeList = Lists.newArrayList(ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode(),
List<String> thirdPartyTypeList = Lists.newArrayList(
ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode(),
ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode(),
ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode()
);
@@ -267,53 +268,6 @@ public class JsowellTask {
}
}
}
// 查询出要推送的站点(贵州、)
// try {
// String thirdPartyType = ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode();
// List<StationInfoVO> stationInfoVOS = thirdPartyStationRelationService.selectStationList(thirdPartyType);
//
// List<String> stationIdList = stationInfoVOS.stream()
// .map(StationInfoVO::getStationId)
// .collect(Collectors.toList());
//
// GuiZhouPlatformServiceImpl guiZhouPlatformService = new GuiZhouPlatformServiceImpl();
// guiZhouPlatformService.notificationPowerInfo(stationIdList);
// } catch (Exception e) {
// log.error("贵州省平台推送充电站实时功率失败", e);
// }
//四川省平台推送充电站实时功率
// try {
// String thirdPartyType2 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode();
// List<StationInfoVO> stationInfoVOS2 = thirdPartyStationRelationService.selectStationList(thirdPartyType2);
//
// List<String> stationIdList2 = stationInfoVOS2.stream()
// .map(StationInfoVO::getStationId)
// .collect(Collectors.toList());
//
// SiChuanPlatformServiceImpl sichuanPlatformService = new SiChuanPlatformServiceImpl();
// sichuanPlatformService.notificationPowerInfo(stationIdList2);
// } catch (Exception e) {
// log.error("四川省平台推送充电站实时功率失败", e);
// }
// 吉林省平台推送充电站实时功率
// try {
// String thirdPartyType3 = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode();
// List<StationInfoVO> stationInfoVOS3 = thirdPartyStationRelationService.selectStationList(thirdPartyType3);
//
// List<String> stationIdList3 = stationInfoVOS3.stream()
// .map(StationInfoVO::getStationId)
// .collect(Collectors.toList());
//
// JiLinPlatformServiceImpl jiLinPlatformService = new JiLinPlatformServiceImpl();
// jiLinPlatformService.notificationPowerInfo(stationIdList3);
// } catch (Exception e) {
// log.error("吉林省平台推送充电站实时功率失败", e);
// }
}
@@ -322,12 +276,13 @@ public class JsowellTask {
*/
public void pushStatisticsInfo() {
String env = SpringUtils.getActiveProfile();
if (StringUtils.equalsIgnoreCase(env, "prd")) {
if (StringUtils.equalsIgnoreCase(env, "pre")) {
log.debug("PRE环境不执行");
return;
}
List<String> thirdPartyTypeList = Lists.newArrayList(ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode(),
List<String> thirdPartyTypeList = Lists.newArrayList(
ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode(),
ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode(),
ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode()
);
@@ -353,59 +308,6 @@ public class JsowellTask {
}
}
}
// 贵州推送充电站统计信息
/* try {
String thirdPartyType = ThirdPlatformTypeEnum.GUI_ZHOU_PLATFORM.getTypeCode();
List<StationInfoVO> stationInfoVOS = thirdPartyStationRelationService.selectStationList(thirdPartyType);
List<String> stationIdList = stationInfoVOS.stream()
.map(StationInfoVO::getStationId)
.collect(Collectors.toList());
GuiZhouPlatformServiceImpl guiZhouPlatformService = new GuiZhouPlatformServiceImpl();
for (String stationId : stationIdList) {
guiZhouPlatformService.notificationOperationStatsInfo(stationId);
}
} catch (Exception e) {
log.error("贵州省平台推送充电站统计信息失败", e);
}
//四川省平台推送用能统计
try {
String thirdPartyType2 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode();
List<StationInfoVO> stationInfoVOS2 = thirdPartyStationRelationService.selectStationList(thirdPartyType2);
List<String> stationIdList2 = stationInfoVOS2.stream()
.map(StationInfoVO::getStationId)
.collect(Collectors.toList());
SiChuanPlatformServiceImpl sichuanPlatformService = new SiChuanPlatformServiceImpl();
for (String stationId : stationIdList2) {
sichuanPlatformService.notificationOperationStatsInfo(stationId);
}
} catch (Exception e) {
log.error("四川省平台推送用能统计失败", e);
}
// 吉林省平台推送充电站用能统计
try {
String thirdPartyType3 = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode();
List<StationInfoVO> stationInfoVOS3 = thirdPartyStationRelationService.selectStationList(thirdPartyType3);
List<String> stationIdList3 = stationInfoVOS3.stream()
.map(StationInfoVO::getStationId)
.collect(Collectors.toList());
JiLinPlatformServiceImpl jiLinPlatformService = new JiLinPlatformServiceImpl();
for (String stationId : stationIdList3) {
jiLinPlatformService.notificationOperationStatsInfo(stationId);
}
} catch (Exception e) {
log.error("吉林省平台推送充电站用能统计失败", e);
}*/
}