From 671a9b84e9be3551d9444ed2a8cb5e0d0053e3b1 Mon Sep 17 00:00:00 2001 From: dev02 Date: Sat, 12 Nov 2022 15:53:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9area?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 25e0e1d..ea4ae71 100644 --- a/FrontendWebApi/ApiControllers/OperationController.cs +++ b/FrontendWebApi/ApiControllers/OperationController.cs @@ -100,7 +100,7 @@ namespace FrontendWebApi.ApiControllers /// /// [HttpPost] - public async Task>> AreaList([FromBody] BuildingList b) + public async Task>> AreaList() { ApiResult> apiResult = new ApiResult>(); List bl = new List(); @@ -109,7 +109,7 @@ namespace FrontendWebApi.ApiControllers { var sqlString = @$"select system_value as device_area_tag, system_key as area_name from variable where system_type = 'area' and deleted = 0"; - bl = await backendRepository.GetAllAsync(sqlString, new { @main_system_tag = b.main_system_tag, @sub_system_tag = b.sub_system_tag }); + bl = await backendRepository.GetAllAsync(sqlString, null); apiResult.Code = "0000"; apiResult.Data = bl;