From f05383c46370ec8c4f4b8b8165ffab3769dd06a2 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 19 Jun 2024 14:19:09 +0800 Subject: [PATCH] fix:路段定时任务提交 --- screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java | 24 +++++++++++++++++++++++- 1 files changed, 23 insertions(+), 1 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 712369f..9ae95c9 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 @@ -8,6 +8,7 @@ import com.moral.api.service.HistoryHourlyService; import com.moral.api.service.HistoryMonthlyService; import com.moral.api.service.HistoryWeeklyService; +import com.moral.api.service.ManageCoordinateDetailService; 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 +33,10 @@ @Autowired private HistoryMonthlyService historyMonthlyService; + + + @Autowired + private ManageCoordinateDetailService manageCoordinateDetailService; //5������������������ @XxlJob("insertHistoryFiveMinutely") @@ -132,7 +137,7 @@ //������������������������������ @XxlJob("dateInsertHistoryHourlyJKAvg") - public ReturnT dateInsertJKAvg(){ + public ReturnT dateInsertHistoryHourlyJKAvg(){ try { historyHourlyService.dateInsertHistoryHourlyJKAvg(null,null); } catch (Exception e) { @@ -143,4 +148,21 @@ } + /** + * ������������������ + * @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; + + } + + } -- Gitblit v1.8.0