mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
update
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user