| | |
| | | @Scheduled(cron = "0 30 0 * * ?") |
| | | public void superviseNotificationOperationStatsInfo() { |
| | | String port = System.getProperty("server.port"); |
| | | if("5071".equals(port)){ |
| | | if("5701".equals(port)){ |
| | | StationStatsInfoResult res = new StationStatsInfoResult(); |
| | | int dayOfMonth1 = LocalDateTime.now().getYear(); |
| | | int dayOfMonth2 = LocalDateTime.now().getMonthValue(); |
| | |
| | | @Scheduled(cron = "0 0/15 * * * ?") |
| | | public void supervise_notification_realtime_power_info() { |
| | | String port = System.getProperty("server.port"); |
| | | if("5071".equals(port)){ |
| | | if("5701".equals(port)){ |
| | | List<Site> data = siteClient.getSiteAll().getData(); |
| | | List<Integer> siteIds = data.stream().filter(s->s.getStatus() == 1).map(Site::getId).collect(Collectors.toList()); |
| | | List<TChargingPile> tChargingPiles = chargingPileClient.getChargingPileBySiteIds(siteIds).getData(); |