From 50da1f165cc96d49d72694606920b77c74e1747c Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期四, 04 一月 2024 10:57:26 +0800
Subject: [PATCH] 调整KFKA数据推送测试2

---
 src/main/java/com/fzzy/gateway/GatewayRunner.java |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/fzzy/gateway/GatewayRunner.java b/src/main/java/com/fzzy/gateway/GatewayRunner.java
index 92c537b..ab5dc98 100644
--- a/src/main/java/com/fzzy/gateway/GatewayRunner.java
+++ b/src/main/java/com/fzzy/gateway/GatewayRunner.java
@@ -3,7 +3,6 @@
 import com.fzzy.gateway.hx2023.service.ApiInitService;
 import com.fzzy.mqtt.MqttPublishService;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.CommandLineRunner;
 import org.springframework.core.annotation.Order;
 import org.springframework.stereotype.Service;
@@ -20,18 +19,21 @@
 
     @Resource
     private ApiInitService apiInitService;
-    @Autowired
+    @Resource
     private MqttPublishService mqttPublishService;
-
-    @Autowired
+    @Resource
     private  GatewayTimerScheduled scheduled;
 
 
 
     @Override
     public void run(String... args) throws Exception {
+
+        log.info("---------MQTT鍒濆鍖�--------------");
         mqttPublishService.init();
-        //鎵ц鍒濆鍖栨柟妗�
+
+        //缃戝叧鍒濆鍖�
+        log.info("---------缃戝叧璁惧鍒濆鍖�--------------");
         apiInitService.init();
 
 
@@ -39,8 +41,12 @@
         scheduled.doWeatherExe();
 
         //鏇存柊璁惧缂撳瓨
+        log.info("---------璁惧缂撳瓨鍒濆鍖�--------------");
         apiInitService.updateDeviceCache();
 
+        //鍒濆鍖栬溅鐗岃瘑鍒�
+        log.info("---------杞︾墝璇嗗埆鍒濆鍖�--------------");
+        apiInitService.initAllLpr();
     }
 
 }

--
Gitblit v1.9.3