From faf8649ff22b8af12c758355725389204838e02a Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 05 Aug 2021 13:23:54 +0800 Subject: [PATCH] 小时缺失数据补充定时任务 --- screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 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 88b63a2..0ef79d9 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 @@ -5,6 +5,8 @@ import com.moral.api.service.HistoryDailyService; import com.moral.api.service.HistoryFiveMinutelyService; +import com.moral.api.service.HistoryHourlyService; +import com.moral.api.service.HistoryMonthlyService; import com.moral.api.service.HistoryWeeklyService; import com.xxl.job.core.biz.model.ReturnT; import com.xxl.job.core.context.XxlJobHelper; @@ -17,10 +19,16 @@ private HistoryFiveMinutelyService historyFiveMinutelyService; @Autowired + private HistoryHourlyService historyHourlyService; + + @Autowired private HistoryDailyService historyDailyService; @Autowired private HistoryWeeklyService historyWeeklyService; + + @Autowired + private HistoryMonthlyService historyMonthlyService; //5������������������ @XxlJob("insertHistoryFiveMinutely") @@ -57,4 +65,28 @@ } return ReturnT.SUCCESS; } + + //��������������� + @XxlJob("insertHistoryMonthly") + public ReturnT insertHistoryMonthly() { + try { + historyMonthlyService.insertHistoryMonthly(); + } catch (Exception e) { + XxlJobHelper.log(e.getMessage()); + return ReturnT.FAIL; + } + return ReturnT.SUCCESS; + } + + //������������������������ + @XxlJob("historyHourlySupplement") + public ReturnT historyHourlySupplement() { + try { + historyHourlyService.insertHistoryHourly(); + } catch (Exception e) { + XxlJobHelper.log(e.getMessage()); + return ReturnT.FAIL; + } + return ReturnT.SUCCESS; + } } -- Gitblit v1.8.0