From c0c410e22df636618964523b3555c71983819204 Mon Sep 17 00:00:00 2001
From: 啊鑫 <t2856754968@163.com>
Date: 星期六, 15 二月 2025 14:50:39 +0800
Subject: [PATCH] 协客云的三个接口修改

---
 src/main/java/com/gs/xky/task/ScheduledTasks.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/gs/xky/task/ScheduledTasks.java b/src/main/java/com/gs/xky/task/ScheduledTasks.java
new file mode 100644
index 0000000..9135558
--- /dev/null
+++ b/src/main/java/com/gs/xky/task/ScheduledTasks.java
@@ -0,0 +1,30 @@
+package com.gs.xky.task;
+
+
+import com.gs.xky.service.XkyService;
+import lombok.RequiredArgsConstructor;
+import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
+
+import java.io.IOException;
+
+@Component
+@RequiredArgsConstructor
+public class ScheduledTasks {
+
+    private final XkyService xkyService;
+
+    /**
+     * 姣忎簲鍒嗛挓鎵ц涓�娆�
+     * 鑾峰彇璁惧鏈�杩戠殑涓�鏉¤褰�
+     *
+     * @return void
+     * @author tjx
+     * @description TODO
+     * @date 2024/9/27 21:48
+     */
+    @Scheduled(cron = "0 0/5 * * * ?")
+    public void getDeviceRealTimeData() throws IOException {
+        xkyService.GetSaveDetail();
+    }
+}

--
Gitblit v1.9.3