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(); // 找出实时报警中存在但数据库中不存在的元素