排除掉不为空的device_type
This commit is contained in:
parent
2a4fc03bf6
commit
f72fae2154
|
|
@ -49,7 +49,8 @@ namespace LY.App.Service
|
|||
var entity = input.data.Adapt<List<Alarm>>();
|
||||
if (entity.Any())
|
||||
{
|
||||
var O4entity = entity.Where(s => s.device_type == "O4" || s.serial_number == "O4"||s.device_type== "UAV");
|
||||
// 排除掉不这几个类型的设备
|
||||
var O4entity = entity.Where(s => s.device_type == "O4" || s.serial_number == "O4" || s.device_type == "UAV" || !string.IsNullOrEmpty(s.device_type));
|
||||
entity = entity.Where(s => checkDistance(s.drone_lat, s.drone_lon, deviceinfo.Lat, deviceinfo.Lon) == true).ToList();
|
||||
if (O4entity.Any())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue