From f25c6122eb7e26be5e7f036cf29b9019c4953be2 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 21 十二月 2020 19:44:02 +0800 Subject: [PATCH] Merge branch 'WJC' into NewFilePath --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs old mode 100644 new mode 100755 index 3144977..8a0f17e --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -5,7 +5,7 @@ namespace HDL_ON.UI.UI2.Intelligence.Automation { - public class LogicMethod + public class LogicMethod { /// <summary> /// 琛ㄧず鏄潯浠� @@ -135,7 +135,6 @@ /// <returns></returns> public static List<HDL_ON.Entity.Room> GetGatewayRoomList(string name) { - List<Entity.Room> roomList = new List<Entity.Room>(); Entity.Room room1 = new Entity.Room(); room1.roomName = name;//榛樿涓�涓埧闂村悕涓�:鍏ㄩ儴鍖哄煙 @@ -144,9 +143,14 @@ var roomLists = GetGatewayRoomList(); foreach (var room in roomLists) { + var devlist = GetRoomDevice(room); + if (devlist.Count == 0) + { + //杩囨护鎺夋病鏈夎澶囩殑鎴块棿; + continue; + } roomList.Add(room); } - return roomList; } /// <summary> -- Gitblit v1.8.0