[後端] 修改api 判斷

This commit is contained in:
dev02 2023-10-04 10:42:10 +08:00
parent 6bcaaef80f
commit af876d7e77
2 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ namespace Backend.Services.Implement
//}
#endregion
foreach(var n in conPoint)
foreach (var n in conPoint)
{
if (n.name.Split('/').Length == 9)
{

View File

@ -570,7 +570,7 @@ namespace FrontendWebApi.ApiControllers
join variable v1 on v1.system_value = b.device_system_tag and v1.deleted = 0 and v1.system_type = 'device_system_category_layer2'
join variable v2 on v2.system_value = b.device_name_tag and v2.deleted = 0 and v2.system_type = 'device_system_category_layer3'
where a.deleted = 0 and b.deleted = 0 and v2.deleted = 0 and v1.deleted = 0
and a.unit is not null and b.device_number in @Device_number
and a.unit is not null and b.device_number in @Device_number and a.is_link = 1
order by c.priority,b.priority;"
, new { Device_number = postDevice.select_data.Select(a => a.device_number).ToList() }
);