fix(dal): в UnitFilter исправлена ошибка когда один ЭК попадал в несколько работ одной группы работ типа зонтик.
This commit is contained in:
@@ -11,9 +11,9 @@ namespace PARR.DAL.DomainServices.UnitFilterService
|
||||
/// <param name="jobId">ID Job</param>
|
||||
/// <param name="takeCount">Максимальное количество Unit'ов (опционально)</param>
|
||||
/// <returns>Список ID Unit'ов или null, если Job не найден</returns>
|
||||
Task<IEnumerable<Guid>?> GetUnitsIdByJobFilterAsync(
|
||||
Guid jobId,
|
||||
int? takeCount = null);
|
||||
//Task<IEnumerable<Guid>?> GetUnitsIdByJobFilterAsync(
|
||||
// Guid jobId,
|
||||
// int? takeCount = null);
|
||||
|
||||
/// <summary>
|
||||
/// Получает список ID Unit'ов, соответствующих фильтрам Job.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace PARR.DAL.DomainServices.UnitFilterService.Models
|
||||
{
|
||||
internal class FilteredUnitContext
|
||||
{
|
||||
public Guid UnitId { get; set; }
|
||||
public HashSet<Guid> ValidParentIds { get; set; } = new();
|
||||
public HashSet<Guid> ValidChildIds { get; set; } = new();
|
||||
}
|
||||
}
|
||||
@@ -30,4 +30,4 @@
|
||||
/// </summary>
|
||||
public List<RelatedUnitDto> Children { get; set; } = new();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace PARR.DAL.DomainServices.UnitFilterService.Models
|
||||
{
|
||||
internal class UnitFilterServiceOptions
|
||||
{
|
||||
public int LoadBatchSize { get; set; } = 1000;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user