修改area
This commit is contained in:
parent
3a6bcd530e
commit
671a9b84e9
@ -100,7 +100,7 @@ namespace FrontendWebApi.ApiControllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<ApiResult<List<BuildingList>>> AreaList([FromBody] BuildingList b)
|
||||
public async Task<ApiResult<List<BuildingList>>> AreaList()
|
||||
{
|
||||
ApiResult<List<BuildingList>> apiResult = new ApiResult<List<BuildingList>>();
|
||||
List<BuildingList> bl = new List<BuildingList>();
|
||||
@ -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<BuildingList>(sqlString, new { @main_system_tag = b.main_system_tag, @sub_system_tag = b.sub_system_tag });
|
||||
bl = await backendRepository.GetAllAsync<BuildingList>(sqlString, null);
|
||||
|
||||
apiResult.Code = "0000";
|
||||
apiResult.Data = bl;
|
||||
|
Loading…
Reference in New Issue
Block a user