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;