bug调整

This commit is contained in:
yanghongwei 2025-09-20 16:29:21 +08:00
parent a61dfeddb0
commit e479ee3337
1 changed files with 7 additions and 1 deletions

View File

@ -56,7 +56,13 @@ namespace LY.App.Service
entity = entity.Where(s => checkDistance(s.drone_lat, s.drone_lon, deviceinfo.Lat, deviceinfo.Lon) == true).ToList();
if (O4entity.Any())
{
entity.AddRange(O4entity);
foreach (var item in O4entity)
{
if (!entity.Exists(s => s.serial_number == item.serial_number))
{
entity.Add(item);
}
}
}
if (entity.Any())
{