From 7438064a85a63d46e210ce37e63c4ca823d52f63 Mon Sep 17 00:00:00 2001 From: swb <jpy123456> Date: Thu, 04 Jul 2024 09:50:02 +0800 Subject: [PATCH] fix:补充提交 --- screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java b/screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java index 4c7b3a7..c4a6323 100644 --- a/screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java +++ b/screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java @@ -7,7 +7,10 @@ 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; @@ -32,6 +35,14 @@ @Autowired private HistoryMonthlyService historyMonthlyService; + + + @Autowired + private ManageCoordinateDetailService manageCoordinateDetailService; + + + @Autowired + private HistorySecondCruiserService historySecondCruiserService; //5������������������ @XxlJob("insertHistoryFiveMinutely") @@ -130,4 +141,50 @@ } + //������������������������������ + @XxlJob("dateInsertHistoryHourlyJKAvg") + public ReturnT dateInsertHistoryHourlyJKAvg(){ + try { + historyHourlyService.dateInsertHistoryHourlyJKAvg(null,null); + } catch (Exception e) { + e.printStackTrace(); + return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); + } + return ReturnT.SUCCESS; + } + + + /** + * ������������������ + * @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; + + } + } -- Gitblit v1.8.0