jinpengyong
2020-08-25 a251876c40e679f797d5925ae8ffa82cd1b3e561
src/main/java/com/moral/task/ForecastWeatherInsertTask.java
@@ -21,7 +21,11 @@
    @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, "插入失败");
        }
    }
}