fix build list

This commit is contained in:
dev02 2022-11-12 16:09:40 +08:00
parent 671a9b84e9
commit 0f1a27df44

View File

@ -136,10 +136,10 @@ namespace FrontendWebApi.ApiControllers
try try
{ {
var sqlString = @$"select d.device_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, d.device_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 });