mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-03 00:00:58 +08:00
数据权限查询
This commit is contained in:
@@ -21,5 +21,10 @@ namespace Yi.Framework.Service
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
public async Task<List<DeptEntity>> GetListByRoleId(long roleId)
|
||||
{
|
||||
return (await _repository._Db.Queryable<RoleEntity>().Includes(r => r.Depts).SingleAsync(r => r.Id == roleId)).Depts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user