| | |
| | | import com.moral.api.service.HistoryFiveMinutelyService; |
| | | import com.moral.api.service.HistoryHourlyService; |
| | | import com.moral.api.service.HistoryMonthlyService; |
| | | import com.moral.api.service.HistorySecondCruiserService; |
| | | import com.moral.api.service.HistoryWeeklyService; |
| | | import com.moral.api.service.ManageCoordinateDetailService; |
| | | import com.moral.api.service.impl.HistorySecondCruiserServiceImpl; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | | import com.xxl.job.core.context.XxlJobHelper; |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | |
| | | |
| | | @Autowired |
| | | private HistoryMonthlyService historyMonthlyService; |
| | | |
| | | |
| | | @Autowired |
| | | private ManageCoordinateDetailService manageCoordinateDetailService; |
| | | |
| | | |
| | | @Autowired |
| | | private HistorySecondCruiserService historySecondCruiserService; |
| | | |
| | | //5分钟数据统计 |
| | | @XxlJob("insertHistoryFiveMinutely") |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 路段信息录入 |
| | | * @return |
| | | */ |
| | | @XxlJob("manageCoordinateDetail") |
| | | public ReturnT manageCoordinateDetail(){ |
| | | try { |
| | | manageCoordinateDetailService.insertCoordinateDetail(null,null); |
| | | } catch (Exception e) { |
| | | XxlJobHelper.log(e.getMessage()); |
| | | return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); |
| | | } |
| | | return ReturnT.SUCCESS; |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 走航车路段排名 |
| | | * @return |
| | | */ |
| | | @XxlJob("secondCruiserSort") |
| | | public ReturnT secondCruiserSort(){ |
| | | try { |
| | | historySecondCruiserService.sort(null,null); |
| | | } catch (Exception e) { |
| | | XxlJobHelper.log(e.getMessage()); |
| | | return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); |
| | | } |
| | | return ReturnT.SUCCESS; |
| | | |
| | | } |
| | | |
| | | } |