修改分页列表bug
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-08-20 14:58:35 +08:00
parent 3096671595
commit 8e8b55fa46
2 changed files with 4 additions and 4 deletions
@@ -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;
}