From a90fe81bb6da87ceb3735eee35d57e719da72d26 Mon Sep 17 00:00:00 2001 From: xjl <2595686544@qq.com> Date: Sat, 6 Jul 2024 13:38:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E6=8F=90=E4=BA=A4=EF=BC=9A?= =?UTF-8?q?=E6=95=85=E9=9A=9C=E6=B6=88=E9=99=A4bug=E4=BA=8C=E6=AC=A1?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Plc/Client/PlcClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Service/Plc/Client/PlcClient.cs b/Service/Plc/Client/PlcClient.cs index 0254ee2..c57faa2 100644 --- a/Service/Plc/Client/PlcClient.cs +++ b/Service/Plc/Client/PlcClient.cs @@ -161,7 +161,7 @@ public class PlcClient : ModbusTcpMaster { #region 有报警比较两边差异,新出现的报警就添加,消失的报警就处理并记录 - var lstEquipAlarmRecord=EquipAlarmRecordRepository.Query(); + var lstEquipAlarmRecord=EquipAlarmRecordRepository.QueryListByClause(i => i.EquipTypeCode == 3); var sqllstAlarm=lstEquipAlarmRecord.Select(obj => obj.ErrorCode).ToList(); // 找出实时报警中存在但数据库中不存在的元素