|
@@ -1,10 +1,7 @@
|
|
|
package com.tofly.gpsboot.config;
|
|
|
|
|
|
|
|
|
-import com.tofly.gpsboot.handler.plan.AutomaticallySignBackHandler;
|
|
|
-import com.tofly.gpsboot.handler.plan.PlanExecuteStateHandler;
|
|
|
-import com.tofly.gpsboot.handler.plan.PlanTimeoutHandler;
|
|
|
-import com.tofly.gpsboot.handler.plan.PlanTimeoutRemindHandler;
|
|
|
+import com.tofly.gpsboot.handler.plan.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.SneakyThrows;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -24,6 +21,7 @@ public class ScheduledTask {
|
|
|
private final PlanExecuteStateHandler planExecuteStateHandler;
|
|
|
private final PlanTimeoutHandler planTimeoutHandler;
|
|
|
private final PlanTimeoutRemindHandler planTimeoutRemindHandler;
|
|
|
+ private final CalculationGpsHandler calculationGpsHandler;
|
|
|
|
|
|
|
|
|
* 自动签退
|
|
@@ -68,4 +66,15 @@ public class ScheduledTask {
|
|
|
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 巡检超时提醒
|
|
|
+ */
|
|
|
+ @Async
|
|
|
+ @Scheduled(cron = "0 0/10 * * * ?")
|
|
|
+ @SneakyThrows
|
|
|
+ public void calculationGpsHandler() {
|
|
|
+ calculationGpsHandler.calculationGpsHandler("");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|