From 32cc13189371ee1e367897a64fbc22f90b53add8 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 19 Jun 2024 16:24:26 +0800 Subject: [PATCH] fix:尘负荷排序接口提交 --- screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 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 9f33024..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") @@ -105,4 +110,59 @@ } return ReturnT.SUCCESS; } + + @XxlJob("dateToChangShu") + public ReturnT dateToChangShu(){ + try { + historyHourlyService.dateToChangShu(null); + } catch (Exception e) { + e.printStackTrace(); + return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); + } + return ReturnT.SUCCESS; + } + + //������������������������ + @XxlJob("dateInsertHistoryHourlyAvg") + public ReturnT dateInsertHistoryHourlyAvg(){ + try { + historyHourlyService.dateInsertHistoryHourlyAvg(); + } catch (Exception e) { + e.printStackTrace(); + return new ReturnT(ReturnT.FAIL_CODE, e.getMessage()); + } + return ReturnT.SUCCESS; + } + + + //������������������������������ + @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; + + } + + } -- Gitblit v1.8.0