@@ -16,9 +16,9 @@ namespace IRaCIS.Core.Infrastructure.Extention
|
||||
//单字段排序 异步 (或者默认排序字段是空,多字段排序,传递了,就以传递的单字段为准)
|
||||
public static async Task<PageOutput<T>> ToPagedListAsync<T>(this IQueryable<T> source, PageInput pageInput, string[] sortArray = default, CancellationToken cancellationToken = default)
|
||||
{
|
||||
var isMultiSortFiled = true;
|
||||
var isMultiSortFiled = false;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(pageInput.SortField) && sortArray != default)
|
||||
if (string.IsNullOrWhiteSpace(pageInput.SortField) && sortArray != default && sortArray != null)
|
||||
{
|
||||
isMultiSortFiled = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user