From 41cd6c8db40bceb08290828ae0d4fc5caeea7147 Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期六, 18 十一月 2023 15:58:25 +0800 Subject: [PATCH] 调整车牌识别配置 --- src/main/java/com/fzzy/gateway/GatewayRunner.java | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/GatewayRunner.java b/src/main/java/com/fzzy/gateway/GatewayRunner.java index 738714d..8f25135 100644 --- a/src/main/java/com/fzzy/gateway/GatewayRunner.java +++ b/src/main/java/com/fzzy/gateway/GatewayRunner.java @@ -1,7 +1,9 @@ package com.fzzy.gateway; -import com.fzzy.gateway.sc2023.service.ApiInitService; +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; @@ -18,17 +20,28 @@ @Resource private ApiInitService apiInitService; + @Resource + private MqttPublishService mqttPublishService; + @Resource + private GatewayTimerScheduled scheduled; + @Override public void run(String... args) throws Exception { - log.info("缃戝叧鎺ュ彛闅忕郴缁熷惎鍔�------------"); - - - //鍥涘窛缃戝叧鎺ュ彛锛屽惎鍔ㄩ粯璁よ幏鍙栭壌鏉冧俊鎭紝闀挎湡鏈夋晥 + mqttPublishService.init(); + //鎵ц鍒濆鍖栨柟妗� apiInitService.init(); + //鑾峰彇姘旇薄淇℃伅 + scheduled.doWeatherExe(); + + //鏇存柊璁惧缂撳瓨 + apiInitService.updateDeviceCache(); + + //鍒濆鍖栬溅鐗岃瘑鍒� + apiInitService.initAllLpr(); } } -- Gitblit v1.9.3