From d93dcc1aa641ae20d4365ff8dab0864ba5f7939b Mon Sep 17 00:00:00 2001 From: huangfeng Date: Tue, 10 Dec 2024 15:26:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=84=E5=88=99=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E6=98=AF=E9=80=9A=E7=9F=A5=E4=B8=B2=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xydl/cac/task/RuleCheckTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/xydl/cac/task/RuleCheckTask.java b/src/main/java/com/xydl/cac/task/RuleCheckTask.java index c12159b..148d448 100644 --- a/src/main/java/com/xydl/cac/task/RuleCheckTask.java +++ b/src/main/java/com/xydl/cac/task/RuleCheckTask.java @@ -9,6 +9,7 @@ import com.xydl.cac.model.StaticVariable; import com.xydl.cac.model.TriggerModel; import com.xydl.cac.repository.WarnRuleRepository; import com.xydl.cac.repository.WarningRepository; +import com.xydl.cac.serialport.SerialPortServer; import com.xydl.cac.service.DataService; import com.xydl.cac.socket.WebSocketServer; import com.xydl.cac.util.DateUtil; @@ -34,6 +35,8 @@ public class RuleCheckTask { DingTalkPushUtil dingTalkPushUtil; @Resource WebSocketServer webSocketServer; + @Resource + SerialPortServer serialPortServer; int shutdown = 0; @@ -76,7 +79,7 @@ public class RuleCheckTask { } if (rule.getNotifyCom() != null && rule.getNotifyCom().intValue() == Constants.TRUE) { // 通知串口 - + serialPortServer.sendData(); } } } catch (Exception e) {