| | |
| | | private ProvinceMapper provinceMapper; |
| | | |
| | | @Override |
| | | public void insertRealWeather() throws ParseException { |
| | | public int insertRealWeather() throws ParseException { |
| | | Calendar c = Calendar.getInstance(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH"); |
| | | SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | |
| | | for (Map<String, Object> map : resultList) { |
| | | map.remove("name"); |
| | | } |
| | | realWeatherMapper.insertRealWeather(resultList); |
| | | return realWeatherMapper.insertRealWeather(resultList); |
| | | } |
| | | } |