diff --git a/FrontendWebApi/ApiControllers/BuildController.cs b/FrontendWebApi/ApiControllers/BuildController.cs index 5cebf40..00a8c2f 100644 --- a/FrontendWebApi/ApiControllers/BuildController.cs +++ b/FrontendWebApi/ApiControllers/BuildController.cs @@ -382,9 +382,9 @@ namespace FrontendWebApi.ApiControllers device_building_tag, device_system_tag FROM building_menu - WHERE building_guid = @building_guid - AND main_system_guid = @main_system_guid - AND sub_system_guid = @sub_system_guid + WHERE building_tag = @building_tag + AND main_system_tag = @main_system_tag + AND sub_system_tag = @sub_system_tag "; var tagName = await backendRepository.GetOneAsync(sql, post); diff --git a/FrontendWebApi/Models/Build.cs b/FrontendWebApi/Models/Build.cs index f08c8ec..be0a4ca 100644 --- a/FrontendWebApi/Models/Build.cs +++ b/FrontendWebApi/Models/Build.cs @@ -123,9 +123,9 @@ namespace FrontendWebApi.Models public class PostTagName { - public string building_guid { get; set; } - public string main_system_guid { get; set; } - public string sub_system_guid { get; set; } + public string building_tag { get; set; } + public string main_system_tag { get; set; } + public string sub_system_tag { get; set; } } public class BuildingSystemTagName