李昊 4 年之前
父節點
當前提交
009ab2d363
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      GxPress/Repository/GxPress.Repository.Implement/DepartmentRepository.cs

+ 1 - 1
GxPress/Repository/GxPress.Repository.Implement/DepartmentRepository.cs

@@ -241,7 +241,7 @@ namespace GxPress.Repository.Implement
                     item.ChildrenItems = _mapper.Map<List<DepartmentTreeResult>>(departmentParent);
                     foreach (var childrenItem in item.ChildrenItems)
                     {
-                        GetTreeAsync(departments, childrenItem.Id, items);
+                        GetTreeAsync(departments, childrenItem.Id, item.ChildrenItems);
                     }
                 }
                 return items;