mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
fix #I5ZL3B 代码生成器,动态列排序,保存无效
This commit is contained in:
parent
c4a3da7027
commit
f5435b4c2f
@ -40,7 +40,9 @@ namespace OpenAuth.App
|
||||
objs = objs.Where(u => u.ColumnName.Contains(request.key));
|
||||
}
|
||||
|
||||
result.data =await objs.OrderBy(u => u.ColumnName)
|
||||
result.data =await objs.OrderByDescending(u => u.IsList)
|
||||
.ThenBy(u=>u.Sort)
|
||||
.ThenBy(u =>u.ColumnName)
|
||||
.Skip((request.page - 1) * request.limit)
|
||||
.Take(request.limit).ToListAsync();
|
||||
result.count =await objs.CountAsync();
|
||||
|
Loading…
Reference in New Issue
Block a user