feat:完善用户查询部门过滤

This commit is contained in:
橙子
2023-05-21 13:16:04 +08:00
parent b50f2b4c7e
commit 95a91a10b3
3 changed files with 17 additions and 6 deletions

View File

@@ -12,6 +12,12 @@ namespace Yi.Furion.Application.Rbac.Services.Impl
public class DeptService : CrudAppService<DeptEntity, DeptGetOutputDto, DeptGetListOutputDto, long, DeptGetListInputVo, DeptCreateInputVo, DeptUpdateInputVo>,
IDeptService, ITransient, IDynamicApiController
{
[NonAction]
public async Task<List<long>> GetChiIds(long deptId)
{
var entities= await _DbQueryable.ToChildListAsync(x=>x.ParentId,deptId);
return entities.Select(x => x.Id).ToList();
}
/// <summary>
/// 通过角色id查询该角色全部部门