|
@@ -307,7 +307,7 @@ namespace GxPress.Repository.Implement
|
|
{
|
|
{
|
|
var middles = await _repository.GetAllAsync(Q.WhereIn(nameof(Entity.Middle.Middle.Id), ids));
|
|
var middles = await _repository.GetAllAsync(Q.WhereIn(nameof(Entity.Middle.Middle.Id), ids));
|
|
if (middles == null || middles.Count == 0)
|
|
if (middles == null || middles.Count == 0)
|
|
- return ids;
|
|
|
|
|
|
+ return returnIds;
|
|
foreach (var item in middles)
|
|
foreach (var item in middles)
|
|
{
|
|
{
|
|
middles = await _repository.GetAllAsync(Q.Where(nameof(Entity.Middle.Middle.ParentId), item.Id));
|
|
middles = await _repository.GetAllAsync(Q.Where(nameof(Entity.Middle.Middle.ParentId), item.Id));
|
|
@@ -319,7 +319,7 @@ namespace GxPress.Repository.Implement
|
|
await GetAllMiddleChildrenByParentIdAsync(new List<int>{middle.Id},returnIds);
|
|
await GetAllMiddleChildrenByParentIdAsync(new List<int>{middle.Id},returnIds);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return ids;
|
|
|
|
|
|
+ return returnIds;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|