diff --git a/Backend/ApiControllers/DeviceApiController.cs b/Backend/ApiControllers/DeviceApiController.cs index 724d76d..c72b574 100644 --- a/Backend/ApiControllers/DeviceApiController.cs +++ b/Backend/ApiControllers/DeviceApiController.cs @@ -61,10 +61,10 @@ namespace Backend.ApiControllers { { "@user_guid", myUser.userinfo_guid }, { "@operation_type", 1 }, //1:名稱修改 - { "@building_guid", GetOne.building_tag }, - { "@main_system_guid", GetOne.device_system_tag }, - { "@sub_system_guid", GetOne.device_name_tag }, - { "@floor_guid", GetOne.floor_tag }, + { "@building_tag", GetOne.device_building_tag }, + { "@main_system_tag", GetOne.device_system_tag }, + { "@sub_system_tag", GetOne.device_name_tag }, + { "@floor_tag", GetOne.device_floor_tag }, { "@device_guid", GetOne.Device_guid }, { "@action_name", "修改名稱" }, { "@parameter", JsonConvert.SerializeObject(change) }, diff --git a/Backend/Models/Device.cs b/Backend/Models/Device.cs index ece58ee..898d9ca 100644 --- a/Backend/Models/Device.cs +++ b/Backend/Models/Device.cs @@ -54,13 +54,13 @@ namespace Backend.Models public string Device_guid { get; set; } public byte Deleted { get; set; } public byte Status { get; set; } - public string building_tag { get; set; } + public string device_building_tag { get; set; } public string Building_full_name { get; set; } public string Main_system_guid { get; set; } public string Main_system_full_name { get; set; } public string Sub_system_guid { get; set; } public string Sub_system_full_name { get; set; } - public string floor_tag { get; set; } + public string device_floor_tag { get; set; } public string Floor_full_name { get; set; } public string Device_coordinate { get; set; } public string Device_full_name { get; set; }