fix(dal): в UnitFilter исправлена ошибка когда один ЭК попадал в несколько работ одной группы работ типа зонтик.

This commit is contained in:
Mikhail Kuznetsov
2026-02-19 17:28:12 +10:00
parent 6def0f200d
commit d056f8b0c9
11 changed files with 682 additions and 747 deletions

View File

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

View File

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

View File

@@ -30,4 +30,4 @@
/// </summary>
public List<RelatedUnitDto> Children { get; set; } = new();
}
}
}

View File

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