DetectedOperationRequest fix initialization of IEnumerables

This commit is contained in:
ngfrolov 2023-12-21 15:33:45 +05:00
parent af343626a7
commit 5572000fb5
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7
2 changed files with 5 additions and 5 deletions

View File

@ -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; }
}
}

View File

@ -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;