From 50f520d24e41a7f303774620cb57b42a905372a3 Mon Sep 17 00:00:00 2001 From: zhou keda <1315948824@qq.com> Date: Mon, 4 Nov 2024 13:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E8=BD=BD=E5=85=B7=E5=AE=9A=E7=82=B9?= =?UTF-8?q?=E9=85=8D=E9=80=81=E5=A2=9E=E5=8A=A0hxjB=20hxjD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs index 9f23ef85..f12a6733 100644 --- a/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/TimeWorkService.cs @@ -493,21 +493,31 @@ namespace Tnb.ProductionMgr return "YTCS没开机"; } string stateHxja = await _redisData.TryGetValueByKeyField("hxjA", "State"); + string stateHxjb = await _redisData.TryGetValueByKeyField("hxjB", "State"); string stateHxjc = await _redisData.TryGetValueByKeyField("hxjC", "State"); + string stateHxjd = await _redisData.TryGetValueByKeyField("hxjD", "State"); List hxjList = new List(); if ("OK" == stateHxja) { hxjList.Add("hxjA"); } + if ("OK" == stateHxjb) + { + hxjList.Add("hxjB"); + } if ("OK" == stateHxjc) { hxjList.Add("hxjC"); } + if ("OK" == stateHxjd) + { + hxjList.Add("hxjD"); + } if (hxjList.IsEmpty()) { - Log.Error($"hxjA,hxjC不正常"); - return "hxjA,hxjC不正常"; + Log.Error($"hxjA,hxjB,hxjC,hxjD不正常"); + return "hxjA,hxjB,hxjC,hxjD不正常"; } string msg = ""; List equipments = await _db.Queryable()