|  |  |  | 
|---|
|  |  |  | List<CityConfigWeatherForecast> list = cityConfigWeatherForecastService.list(wrapper); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<CityWeatherForecast> cityWeatherForecasts = new ArrayList<>(); | 
|---|
|  |  |  | CityWeatherForecast cityWeatherForecast = new CityWeatherForecast(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (CityConfigWeatherForecast cityConfigWeatherForecast : list) { | 
|---|
|  |  |  | Integer cityCode = cityConfigWeatherForecast.getCityCode(); | 
|---|
|  |  |  | Integer locationId = cityConfigWeatherForecast.getLocationId(); | 
|---|
|  |  |  | 
|---|
|  |  |  | String dayTime = fxTime.split("T")[0]; | 
|---|
|  |  |  | if (dayTime.equals(nextTime)) { | 
|---|
|  |  |  | String hourTime = fxTime.substring(0, 17).replaceAll("T", " "); | 
|---|
|  |  |  | CityWeatherForecast cityWeatherForecast = new CityWeatherForecast(); | 
|---|
|  |  |  | cityWeatherForecast.setCityCode(cityCode); | 
|---|
|  |  |  | cityWeatherForecast.setTime(DateUtils.getDate(hourTime, DateUtils.yyyy_MM_dd_HH_EN)); | 
|---|
|  |  |  | cityWeatherForecast.setValue(JSONObject.toJSONString(hourlyMap)); | 
|---|