From 7650d4b3594e57db81ffe943b77967a67684372b Mon Sep 17 00:00:00 2001 From: jiahao Date: Sat, 9 Sep 2023 00:34:44 +0800 Subject: [PATCH] =?UTF-8?q?debug=EF=BC=9A=20=E5=89=8D=E5=8F=B0=E6=A8=93?= =?UTF-8?q?=E5=B1=A4=E9=87=8D=E8=A4=87=E5=95=8F=E9=A1=8C(=E6=9C=AA?= =?UTF-8?q?=E9=81=8E=E6=BF=BE=20deleted)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/BuildController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FrontendWebApi/ApiControllers/BuildController.cs b/FrontendWebApi/ApiControllers/BuildController.cs index ff5117e..b52bcf7 100644 --- a/FrontendWebApi/ApiControllers/BuildController.cs +++ b/FrontendWebApi/ApiControllers/BuildController.cs @@ -330,7 +330,9 @@ namespace FrontendWebApi.ApiControllers List Floors = new List(); var floorsql = await backendRepository.GetAllAsync($@" select * from (select * from sub_system_floor ssf where ssf.deleted = 0 and ssf.status = 0 and ssf.building_tag = '{get.building_tag}' and ssf.main_system_tag = '{get.main_system_tag}' and ssf.sub_system_tag = '{get.sub_system_tag}') a - left join floor on floor.full_name = a.floor_tag and a.building_tag = floor.building_tag order by floor.priority"); + left join floor on floor.full_name = a.floor_tag and a.building_tag = floor.building_tag + where floor.deleted = 0 + order by floor.priority"); Sub_system sub_System = new Sub_system() { sub_system_tag = sub_system.sub_system_tag,