|
@@ -0,0 +1,24 @@
|
|
|
|
|
+package com.zd.base.job.task;
|
|
|
|
|
+
|
|
|
|
|
+import com.zd.algorithm.api.fire.RemoteFireDeviceService;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @Author: xxf
|
|
|
|
|
+ * @Date: 2022/12/28/14:46
|
|
|
|
|
+ * @Description:
|
|
|
|
|
+ */
|
|
|
|
|
+@Component("fireTask")
|
|
|
|
|
+public class FireDeviceTask {
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private RemoteFireDeviceService remoteFireDeviceService;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 定时器定时查询灭火主机状态
|
|
|
|
|
+ */
|
|
|
|
|
+ public void getFireDeviceStatus() {
|
|
|
|
|
+ remoteFireDeviceService.getFireDeviceStatus();
|
|
|
|
|
+ }
|
|
|
|
|
+}
|