From b00d28562b9bb393452793e715eac0f6d8a8e6ef Mon Sep 17 00:00:00 2001 From: xjl <2595686544@qq.com> Date: Thu, 4 Jul 2024 20:56:27 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Plc/Client/PlcClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/Plc/Client/PlcClient.cs b/Service/Plc/Client/PlcClient.cs index 9aed50e..0254ee2 100644 --- a/Service/Plc/Client/PlcClient.cs +++ b/Service/Plc/Client/PlcClient.cs @@ -221,7 +221,7 @@ public class PlcClient : ModbusTcpMaster { #region 没报警把已处理记录更新并删除实时报警 - var lstEquipAlarmRecord=EquipAlarmRecordRepository.Query(); + var lstEquipAlarmRecord=EquipAlarmRecordRepository.QueryListByClause(i=>i.EquipTypeCode==3); if (lstEquipAlarmRecord.Count > 0) { foreach (var VARIABLE in lstEquipAlarmRecord) @@ -239,7 +239,7 @@ public class PlcClient : ModbusTcpMaster EquipAlarmProcessRecordRepository.Insert(EquipAlarmProcessRecord); } } - EquipAlarmRecordRepository.Delete(i=>i.Id>0); + EquipAlarmRecordRepository.Delete(lstEquipAlarmRecord); #endregion