Dun.Jason 1 年間 前
コミット
6f235fa883

+ 1 - 1
src/Hotline.Repository.SqlSugar/System/SystemOrganizeRepository.cs

@@ -34,7 +34,7 @@ namespace Hotline.Repository.SqlSugar.System
             //orgCode = orgCode.Substring(0, orgCode.Length - 3);
             var list = await Db.Queryable<SystemOrganize>()
                  .Where(it => it.Id.StartsWith(orgCode))
-                .ToTreeAsync(it => it.Children, it => it.ParentId, orgCode);
+                .ToTreeAsync(it => it.Children, it => it.ParentId, orgCode.Substring(0, orgCode.Length - 3));
             return list;
         }