We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
排序设置: sortOrder: 'asc', sortName: 'ReportTime,AqiValue,Pm25Iaqi,Pm10Iaqi', 实际只有最后一个有效。 我的办法: 修改数据库排序字段处理,sqlserver修改:SqlServerDatabase.cs 下 private async Task<(int total, IEnumerable list)> FindList(IQueryable tempData, string orderField, bool isAsc, int pageSize, int pageIndex)
if(index==0 ) resultExp = Expression.Call(typeof(Queryable), isAsc ? "OrderBy" : "OrderByDescending", new Type[] { typeof(T), property.PropertyType }, tempData.Expression, Expression.Quote(orderByExp)); else resultExp = Expression.Call(typeof(Queryable), isAsc ? "ThenBy" : "OrderByDescending", new Type[] { typeof(T), property.PropertyType }, resultExp, Expression.Quote(orderByExp));
The text was updated successfully, but these errors were encountered:
谢谢你的反馈,回头我会根据你这个修改一下。
Sorry, something went wrong.
#24 修复多字段排序问题
7effddb
No branches or pull requests
排序设置:
sortOrder: 'asc',
sortName: 'ReportTime,AqiValue,Pm25Iaqi,Pm10Iaqi',
实际只有最后一个有效。
我的办法:
修改数据库排序字段处理,sqlserver修改:SqlServerDatabase.cs 下
private async Task<(int total, IEnumerable list)> FindList(IQueryable tempData, string orderField, bool isAsc, int pageSize, int pageIndex)
The text was updated successfully, but these errors were encountered: