forked from ddrilling/AsbCloudServer
DetectedOperationRequest fix initialization of IEnumerables
This commit is contained in:
parent
af343626a7
commit
5572000fb5
@ -20,12 +20,12 @@ namespace AsbCloudApp.Requests
|
||||
/// Список id телеметрий
|
||||
/// пустой список - нет фильтрации
|
||||
/// </summary>
|
||||
public IEnumerable<int> IdsTelemetries { get; set; } = Enumerable.Empty<int>();
|
||||
public IEnumerable<int> IdsTelemetries { get; set; } = Array.Empty<int>();
|
||||
|
||||
/// <summary>
|
||||
/// категории операций
|
||||
/// </summary>
|
||||
public IEnumerable<int> IdsCategories { get; set; } = Enumerable.Empty<int>();
|
||||
public IEnumerable<int> IdsCategories { get; set; } = Array.Empty<int>();
|
||||
|
||||
/// <summary>
|
||||
/// Больше или равно дате
|
||||
@ -50,7 +50,7 @@ namespace AsbCloudApp.Requests
|
||||
/// <summary>
|
||||
/// Фильтр по пользователю панели
|
||||
/// </summary>
|
||||
public int? EqIdTelemetryUser { get; set; }
|
||||
public int? IdTelemetryUser { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -199,8 +199,8 @@ namespace AsbCloudInfrastructure.Services.DetectOperations
|
||||
if (request.LeDepth is not null)
|
||||
query = query.Where(o => o.DepthEnd <= request.LeDepth);
|
||||
|
||||
if (request.EqIdTelemetryUser is not null)
|
||||
query = query.Where(o => o.IdUsersAtStart == request.EqIdTelemetryUser);
|
||||
if (request.IdTelemetryUser is not null)
|
||||
query = query.Where(o => o.IdUsersAtStart == request.IdTelemetryUser);
|
||||
}
|
||||
|
||||
return query;
|
||||
|
Loading…
Reference in New Issue
Block a user