feat: 增加高级查询

This commit is contained in:
wintel
2025-05-06 21:15:47 +08:00
parent a28458347a
commit 576ff6e98a
3 changed files with 12 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ namespace OpenAuth.App
{
objs = objs.Where(u => u.Name.Contains(request.key));
}
if (!string.IsNullOrEmpty(request.sqlWhere))
{
objs = objs.Where(request.sqlWhere);
}
result.data = objs.OrderBy(u => u.Name)
.Skip((request.page - 1) * request.limit)