| | |
| | | List<CityConfigWeatherForecast> list = cityConfigWeatherForecastService.list(wrapper); |
| | | |
| | | List<CityWeatherForecast> cityWeatherForecasts = new ArrayList<>(); |
| | | CityWeatherForecast cityWeatherForecast = new CityWeatherForecast(); |
| | | |
| | | for (CityConfigWeatherForecast cityConfigWeatherForecast : list) { |
| | | CityWeatherForecast cityWeatherForecast = new CityWeatherForecast(); |
| | | Integer cityCode = cityConfigWeatherForecast.getCityCode(); |
| | | Integer locationId = cityConfigWeatherForecast.getLocationId(); |
| | | Map<String, Object> data = restTemplate.getForObject("https://api.qweather.com/v7/weather/72h?key=da05c6c4852d4f7aa3364a9236ee9e26&gzip=n&location={1}", Map.class, locationId); |