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