diff --git a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/JiLinPlatformController.java b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/JiLinPlatformController.java index e9cc0a662..078cf4b0b 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/JiLinPlatformController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/thirdparty/JiLinPlatformController.java @@ -487,4 +487,25 @@ public class JiLinPlatformController extends ThirdPartyBaseController{ 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; + } + } diff --git a/jsowell-quartz/src/main/java/com/jsowell/quartz/task/JsowellTask.java b/jsowell-quartz/src/main/java/com/jsowell/quartz/task/JsowellTask.java index e4cade2a5..1bb463e8e 100644 --- a/jsowell-quartz/src/main/java/com/jsowell/quartz/task/JsowellTask.java +++ b/jsowell-quartz/src/main/java/com/jsowell/quartz/task/JsowellTask.java @@ -257,6 +257,17 @@ public class JsowellTask { SiChuanPlatformServiceImpl sichuanPlatformService = new SiChuanPlatformServiceImpl(); sichuanPlatformService.notificationPowerInfo(stationIdList2); + // 吉林省平台推送充电站实时功率 + String thirdPartyType3 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode(); + List stationInfoVOS3 = thirdPartyStationRelationService.selectStationList(thirdPartyType3); + + List 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); } - //四川省平台推送充电站实时功率 + //四川省平台推送用能统计 String thirdPartyType2 = ThirdPlatformTypeEnum.SI_CHUAN_PLATFORM.getTypeCode(); List stationInfoVOS2 = thirdPartyStationRelationService.selectStationList(thirdPartyType2); @@ -294,6 +305,17 @@ public class JsowellTask { sichuanPlatformService.notificationOperationStatsInfo(stationId); } + // 吉林省平台推送充电站用能统计 + String thirdPartyType3 = ThirdPlatformTypeEnum.JI_LIN_PLATFORM.getTypeCode(); + List stationInfoVOS3 = thirdPartyStationRelationService.selectStationList(thirdPartyType3); + + List stationIdList3 = stationInfoVOS3.stream() + .map(StationInfoVO::getStationId) + .collect(Collectors.toList()); + JiLinPlatformServiceImpl jiLinPlatformService = new JiLinPlatformServiceImpl(); + for (String stationId : stationIdList3) { + jiLinPlatformService.notificationOperationStatsInfo(stationId); + } }