From 93417ec8ea512bbd8419653ff30fdfb64558e556 Mon Sep 17 00:00:00 2001 From: dev02 Date: Wed, 6 Sep 2023 17:25:13 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=B3=87=E6=96=99=E9=A1=AF=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Controllers/DeviceManageController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/Controllers/DeviceManageController.cs b/Backend/Controllers/DeviceManageController.cs index ceb04f3..0875c61 100644 --- a/Backend/Controllers/DeviceManageController.cs +++ b/Backend/Controllers/DeviceManageController.cs @@ -55,8 +55,8 @@ namespace Backend.Controllers sv.system_priority AS sPriority FROM building_menu bm LEFT JOIN building b ON bm.building_tag = b.building_tag AND b.deleted = 0 - LEFT JOIN variable mv ON bm.main_system_tag = mv.system_value AND mv.deleted = 0 - LEFT JOIN variable sv ON bm.sub_system_tag = sv.system_value AND sv.deleted = 0"; + LEFT JOIN variable mv ON bm.main_system_tag = mv.system_value AND mv.deleted = 0 and mv.system_type = '{main_system_type}' + LEFT JOIN variable sv ON bm.sub_system_tag = sv.system_value AND sv.deleted = 0 and sv.system_type = '{sub_system_type}'"; if (!string.IsNullOrEmpty(filter)) {