This commit is contained in:
YAS\29473
2025-08-14 08:35:16 +08:00
parent c71dead186
commit 3f47868cb0
2 changed files with 44 additions and 1 deletions

View File

@@ -487,4 +487,25 @@ public class JiLinPlatformController extends ThirdPartyBaseController{
return response; return response;
} }
/**
* 推送充换电站用能统计信息
* @param stationId
* @return
*/
@GetMapping("/v1/notificationOperationStatsInfo/{stationId}")
public RestApiResponse<?> notificationOperationStatsInfo(@PathVariable("stationId") String stationId) {
RestApiResponse<?> response = null;
String result = null;
try {
result = platformLogic.notificationOperationStatsInfo(stationId);
response = new RestApiResponse<>(result);
} catch (Exception e) {
logger.error("{}-推送充换电站用能统计信息 error", platformName, e);
return new RestApiResponse<>(e);
}
logger.info("{}-平台推送充换电站用能统计信息 result:{}",platformName, result);
return response;
}
} }

View File

@@ -257,6 +257,17 @@ public class JsowellTask {
SiChuanPlatformServiceImpl sichuanPlatformService = new SiChuanPlatformServiceImpl(); SiChuanPlatformServiceImpl sichuanPlatformService = new SiChuanPlatformServiceImpl();
sichuanPlatformService.notificationPowerInfo(stationIdList2); sichuanPlatformService.notificationPowerInfo(stationIdList2);
// 吉林省平台推送充电站实时功率
String thirdPartyType3 = ThirdPlatformTypeEnum.SI_CHUAN_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);
} }
@@ -282,7 +293,7 @@ public class JsowellTask {
guiZhouPlatformService.notificationOperationStatsInfo(stationId); guiZhouPlatformService.notificationOperationStatsInfo(stationId);
} }
//四川省平台推送充电站实时功率 //四川省平台推送用能统计
String thirdPartyType2 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode(); String thirdPartyType2 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode();
List<StationInfoVO> stationInfoVOS2 = thirdPartyStationRelationService.selectStationList(thirdPartyType2); List<StationInfoVO> stationInfoVOS2 = thirdPartyStationRelationService.selectStationList(thirdPartyType2);
@@ -294,6 +305,17 @@ public class JsowellTask {
sichuanPlatformService.notificationOperationStatsInfo(stationId); sichuanPlatformService.notificationOperationStatsInfo(stationId);
} }
// 吉林省平台推送充电站用能统计
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);
}
} }