diff --git a/PARR.AIHITRelationshipsSyncer/Services/Implementations/RelationshipsSyncSrevice.cs b/PARR.AIHITRelationshipsSyncer/Services/Implementations/RelationshipsSyncSrevice.cs index 926e71a6..cb5e2e09 100644 --- a/PARR.AIHITRelationshipsSyncer/Services/Implementations/RelationshipsSyncSrevice.cs +++ b/PARR.AIHITRelationshipsSyncer/Services/Implementations/RelationshipsSyncSrevice.cs @@ -45,8 +45,6 @@ namespace PARR.AIHITRelationshipsSyncer.Services.Implementations //Проходим циклом по полученному списку для актуализации связей в полученном нами экземпляре Unit foreach (var childName in childsName) { - //if (childName.ToLower() != "рпа-робин-рцку-спиуи-прочее-26-гор") - // continue; await SyncChildUnit(unit, childName!); } @@ -84,8 +82,17 @@ namespace PARR.AIHITRelationshipsSyncer.Services.Implementations } } + + /// + /// Синхронизация дочерней связи в ЭК по имени + /// + /// Unit должен иметь в себе все данные о дочерних связях + /// Имя дочернего ЭК + /// private async Task SyncChildUnit(Unit unit, string childName) { + //if (childName.ToLower() != "рпа-робин-рцку-спиуи-прочее-26-гор") + // continue; //Ищем детей по имени var child = unit.ChildUnits.FirstOrDefault(t => t.ChildUnit?.Name.ToLower() == childName!.ToLower().Trim());