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,