xf 9 months ago
parent
commit
6331e15a99
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/Hotline.Api/Controllers/OrgController.cs

+ 2 - 5
src/Hotline.Api/Controllers/OrgController.cs

@@ -45,12 +45,9 @@ namespace Hotline.Api.Controllers
         [Permission(EPermission.GetOrgJson)]
         [HttpGet("getorgjson")]
         [AllowAnonymous]
-        public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson([FromQuery] string? rootId)
+        public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson()
         {
-            //return await _systemOrganizeRepository.GetOrgJson();
-            return await _systemOrganizeRepository.Queryable()
-                   .OrderBy(d => d.Id)
-                   .ToTreeAsync(x => x.Children, it => it.ParentId, rootId);
+            return await _systemOrganizeRepository.GetOrgJson();
         }
 
         [Permission(EPermission.GetOrgJson)]