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:
@@ -28,6 +28,7 @@ import com.jsowell.pile.vo.base.StationInfoVO;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import com.jsowell.thirdparty.amap.service.AMapService;
|
||||
import com.jsowell.thirdparty.platform.service.impl.GuiZhouPlatformServiceImpl;
|
||||
import com.jsowell.thirdparty.platform.service.impl.SiChuanPlatformServiceImpl;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -225,7 +226,7 @@ public class JsowellTask {
|
||||
}
|
||||
|
||||
/**
|
||||
* 贵州省平台推送充电站实时功率
|
||||
* 贵州省平台推送充电站实时功率 15分钟执行一次
|
||||
*/
|
||||
public void pushStationRealTimePowerInfo() {
|
||||
String env = SpringUtils.getActiveProfile();
|
||||
@@ -243,6 +244,55 @@ public class JsowellTask {
|
||||
|
||||
GuiZhouPlatformServiceImpl guiZhouPlatformService = new GuiZhouPlatformServiceImpl();
|
||||
guiZhouPlatformService.notificationPowerInfo(stationIdList);
|
||||
|
||||
//四川省平台推送充电站实时功率
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 推送统计信息 24小时执行一次
|
||||
*/
|
||||
public void pushStatisticsInfo() {
|
||||
String env = SpringUtils.getActiveProfile();
|
||||
if (StringUtils.equalsIgnoreCase(env, "pre")) {
|
||||
log.debug("PRE环境不执行");
|
||||
return;
|
||||
}
|
||||
|
||||
// 贵州推送充电站统计信息
|
||||
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);
|
||||
}
|
||||
|
||||
//四川省平台推送充电站实时功率
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user