From 5ef407e617576a83c9b8c25ce510f263ed031d03 Mon Sep 17 00:00:00 2001
From: swb <jpy123456>
Date: Wed, 03 Jul 2024 15:02:17 +0800
Subject: [PATCH] fix:走航车排名接口提交
---
screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java | 88 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 87 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 199f6ae..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,10 +7,16 @@
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;
+
+import javax.xml.crypto.Data;
+import java.util.Date;
@Component
public class HistoryTableInsertTask {
@@ -30,6 +36,14 @@
@Autowired
private HistoryMonthlyService historyMonthlyService;
+
+ @Autowired
+ private ManageCoordinateDetailService manageCoordinateDetailService;
+
+
+ @Autowired
+ private HistorySecondCruiserService historySecondCruiserService;
+
//5������������������
@XxlJob("insertHistoryFiveMinutely")
public ReturnT insertHistoryFiveMinutely() {
@@ -46,7 +60,8 @@
@XxlJob("insertHistoryDaily")
public ReturnT insertHistoryDaily() {
try {
- historyDailyService.insertHistoryDaily();
+ Date now = new Date();
+ historyDailyService.insertHistoryDaily(null);
} catch (Exception e) {
XxlJobHelper.log(e.getMessage());
return ReturnT.FAIL;
@@ -101,4 +116,75 @@
}
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;
+
+ }
+
+
+ /**
+ * ���������������������
+ * @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