[FrontendWebApi] DeviceManage GetDeviceList 取得設備清單增加 room_dbid欄位

This commit is contained in:
dev01 2022-12-31 15:33:19 +08:00
parent a3a0a0c963
commit edba8b60ea
2 changed files with 3 additions and 1 deletions

View File

@ -278,7 +278,8 @@ namespace FrontendWebApi.ApiControllers
sqlString = $@"select d.device_guid, d.full_name, d.device_coordinate, d.priority, dk.device_image, d.device_number, CONCAT('{baseURL}', '{deviceKindFilePath}', dk.device_image) AS device_image_url,d.status,
dk.device_normal_point_id, dk.device_normal_point_guid, dk.device_normal_point_col, dk.device_normal_point_value, dk.device_normal_flashing, dk.device_normal_point_name,
dk.device_close_point_id, dk.device_close_point_guid, dk.device_close_point_col, dk.device_close_point_value, dk.device_close_flashing, dk.device_close_point_name,
dk.device_error_point_id, dk.device_error_point_guid, dk.device_error_point_col, dk.device_error_point_value, dk.device_error_flashing, dk.device_error_point_name
dk.device_error_point_id, dk.device_error_point_guid, dk.device_error_point_col, dk.device_error_point_value, dk.device_error_flashing, dk.device_error_point_name,
d.room_dbid
from device d
left join device_kind dk on d.device_building_tag = dk.device_building_tag and d.device_system_tag = dk.device_system_tag
and d.device_name_tag = dk.device_name_tag

View File

@ -73,6 +73,7 @@ namespace FrontendWebApi.Models
public string device_error_point_name { get; set; }
public string device_error_point_value { get; set; }
public string device_error_flashing { get; set; }
public string room_dbid { get; set; }
public List<DeviceNode> Device_nodes { get; set; }
}