| | |
| | | |
| | | @XxlJob("forecastWeatherHour") |
| | | public ReturnT insertForecastWeather(String param) throws ParseException { |
| | | forecastWeatherService.insertForecastWeather(); |
| | | return new ReturnT(200, "插入成功"); |
| | | int count = forecastWeatherService.insertForecastWeather(); |
| | | if (count > 0) { |
| | | return new ReturnT(200, "插入成功"); |
| | | }else { |
| | | return new ReturnT(500, "插入失败"); |
| | | } |
| | | } |
| | | |
| | | @XxlJob("forecastWeatherHourNew") |
| | | public ReturnT insertForecastWeatherNew(String param) throws ParseException { |
| | | int count = forecastWeatherService.insertForecastWeatherNew(); |
| | | if (count > 0) { |
| | | return new ReturnT(200, "插入成功"); |
| | | }else { |
| | | return new ReturnT(500, "插入失败"); |
| | | } |
| | | } |
| | | } |