master
洁 任 2026-02-06 15:37:08 +08:00
parent 374f8ce64d
commit 34dcd16f33
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ namespace OpenAuth.App
RefAsync<int> totalCount = 0;
var result = new PageInfo<SysRole>();
var list = await base.Repository.AsQueryable()
.WhereIF(!string.IsNullOrEmpty(request.key),r=>r.Name.Contains(request.key))
.OrderBy(r=>r.Name)
.ToPageListAsync(request.page, request.limit, totalCount);
return new Response<PageInfo<List<MiMinePoint>>>