|
@@ -16,7 +16,6 @@ namespace Hotline.Repository.SqlSugar.System
|
|
|
public async Task<IReadOnlyList<SystemOrganize>> GetOrgJson()
|
|
|
{
|
|
|
var list = await Db.Queryable<SystemOrganize>()
|
|
|
- .Where(d => d.Id != RoleSeedData.AdminId)
|
|
|
.OrderBy(d => d.Id)
|
|
|
.ToTreeAsync(x => x.Children, it => it.ParentId, null);
|
|
|
return list;
|
|
@@ -25,7 +24,7 @@ namespace Hotline.Repository.SqlSugar.System
|
|
|
public async Task<IReadOnlyList<SystemOrganize>> GetCanUseOrg()
|
|
|
{
|
|
|
var list = await Db.Queryable<SystemOrganize>()
|
|
|
- .Where(x => x.IsEnable && x.Id != RoleSeedData.AdminId)
|
|
|
+ .Where(x => x.IsEnable)
|
|
|
.ToTreeAsync(x => x.Children, it => it.ParentId, null);
|
|
|
return list;
|
|
|
}
|