jinpengyong
2020-09-21 f694728af353dcf32e270c0b1b27d81ba76fecd8
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, "插入失败");
        }
    }
}