From 0f1a27df44bfe80d7477471c0fe44ccc6c376ade Mon Sep 17 00:00:00 2001 From: dev02 Date: Sat, 12 Nov 2022 16:09:40 +0800 Subject: [PATCH] fix build list --- FrontendWebApi/ApiControllers/OperationController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FrontendWebApi/ApiControllers/OperationController.cs b/FrontendWebApi/ApiControllers/OperationController.cs index ea4ae71..21e242e 100644 --- a/FrontendWebApi/ApiControllers/OperationController.cs +++ b/FrontendWebApi/ApiControllers/OperationController.cs @@ -136,10 +136,10 @@ namespace FrontendWebApi.ApiControllers 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 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(sqlString, new { @device_area_tag = b.device_area_tag });