bug调整
This commit is contained in:
parent
a61dfeddb0
commit
e479ee3337
|
|
@ -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();
|
entity = entity.Where(s => checkDistance(s.drone_lat, s.drone_lon, deviceinfo.Lat, deviceinfo.Lon) == true).ToList();
|
||||||
if (O4entity.Any())
|
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())
|
if (entity.Any())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue