From 19d3845a9544f4c4c097fb059c7b75f763f9b5b6 Mon Sep 17 00:00:00 2001 From: dev02 Date: Wed, 24 May 2023 14:07:57 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9Device?= =?UTF-8?q?=20SaveChangeName=20api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/ApiControllers/DeviceApiController.cs | 8 ++++---- Backend/Models/Device.cs | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Backend/ApiControllers/DeviceApiController.cs b/Backend/ApiControllers/DeviceApiController.cs index cf3547f..724d76d 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_guid }, - { "@main_system_guid", GetOne.Main_system_guid }, - { "@sub_system_guid", GetOne.Sub_system_guid }, - { "@floor_guid", GetOne.Floor_guid }, + { "@building_guid", GetOne.building_tag }, + { "@main_system_guid", GetOne.device_system_tag }, + { "@sub_system_guid", GetOne.device_name_tag }, + { "@floor_guid", GetOne.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 c611d80..ece58ee 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_guid { get; set; } + public string 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_guid { get; set; } + public string floor_tag { get; set; } public string Floor_full_name { get; set; } public string Device_coordinate { get; set; } public string Device_full_name { get; set; } @@ -76,7 +76,8 @@ namespace Backend.Models public string Device_flashing { get; set; } public string Device_ip { get; set; } public string Device_port { get; set; } - public string Device_name_tag { get; set; } + public string device_name_tag { get; set; } + public string device_system_tag { get; set; } public List Device_disasters { get; set; } //防災類型 public List Device_nodes { get; set; } //設備子節點 }