| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.moral.api.service.CityAqiDailyService; |
| | | import com.moral.api.service.CityAqiService; |
| | | import com.moral.api.service.HistoryAqiService; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | |
| | | |
| | | @Autowired |
| | | private HistoryAqiService historyAqiService; |
| | | |
| | | @Autowired |
| | | private CityAqiDailyService cityAqiDailyService; |
| | | |
| | | @Autowired |
| | | private CityAqiService cityAqiService; |
| | |
| | | @XxlJob("insertCityAqiDaily") |
| | | public ReturnT insertCityAqiDaily(){ |
| | | try { |
| | | cityAqiService.insertCityAqiDaily(); |
| | | cityAqiDailyService.insertCityAqiDaily(); |
| | | } catch (Exception e) { |
| | | XxlJobHelper.log(e.getMessage()); |
| | | return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); |