数据权限查询

This commit is contained in:
陈淳
2022-09-15 19:45:51 +08:00
parent 2a4f646181
commit 71cf85f535
11 changed files with 117 additions and 36 deletions

View File

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