| | |
| | | import com.ruoyi.chargingPile.api.model.Site; |
| | | import com.ruoyi.chargingPile.api.model.TChargingGun; |
| | | import com.ruoyi.chargingPile.api.model.TChargingPile; |
| | | import com.ruoyi.chargingPile.api.vo.GetChargingGunByChargingPileIdsVo; |
| | | import com.ruoyi.common.core.utils.DateUtils; |
| | | import com.ruoyi.integration.drainage.TCECSuperviseUtil; |
| | | import com.ruoyi.integration.drainage.TokenUtil; |
| | |
| | | List<Integer> siteIds = data.stream().filter(s->s.getStatus() == 1).map(Site::getId).collect(Collectors.toList()); |
| | | List<TChargingPile> tChargingPiles = chargingPileClient.getChargingPileBySiteIds(siteIds).getData(); |
| | | List<Integer> collect1 = tChargingPiles.stream().map(TChargingPile::getId).collect(Collectors.toList()); |
| | | List<TChargingGun> chargingGunList = chargingGunClient.getChargingGunByChargingPileIds(collect1).getData(); |
| | | GetChargingGunByChargingPileIdsVo vo = new GetChargingGunByChargingPileIdsVo(); |
| | | vo.setChargingPileIds(collect1); |
| | | List<TChargingGun> chargingGunList = chargingGunClient.getChargingGunByChargingPileIds(vo).getData(); |
| | | SupStationPowerInfoResult supStationPowerInfoResult = new SupStationPowerInfoResult(); |
| | | List<SupStationPowerInfo> stationStatsInfos = new ArrayList<>(); |
| | | LocalDateTime now = LocalDateTime.now(); |