[FrontedWebApi][運維管理] 棟別下拉選單 調整

This commit is contained in:
dev01 2022-11-12 16:42:34 +08:00
commit 0fae910469

View File

@ -136,10 +136,10 @@ namespace FrontendWebApi.ApiControllers
try try
{ {
var sqlString = @$"select b.building_tag, b.full_name as building_name var sqlString = @$"select building_tag as device_building_tag, b.full_name as building_name
from building b from building b
where deleted = 0 and area_tag = @device_area_tag where deleted = 0 and area_tag = @device_area_tag
group by b.full_name, b.building_tag"; group by b.full_name, building_tag";
bl = await backendRepository.GetAllAsync<BuildingList>(sqlString, new { @device_area_tag = b.device_area_tag }); bl = await backendRepository.GetAllAsync<BuildingList>(sqlString, new { @device_area_tag = b.device_area_tag });