李昊 4 years ago
parent
commit
0dad25dd2d

+ 2 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/MiddleRepository.cs

@@ -307,7 +307,7 @@ namespace GxPress.Repository.Implement
         {
             var middles = await _repository.GetAllAsync(Q.WhereIn(nameof(Entity.Middle.Middle.Id), ids));
             if (middles == null || middles.Count == 0)
-                return ids;
+                return returnIds;
             foreach (var item in middles)
             {
                 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);
                 }
             }
-            return ids;
+            return returnIds;
         }
     }
 }