From ee9f2ff0cf709dc2cfb10d032094fe04448cac92 Mon Sep 17 00:00:00 2001 From: colin Date: Mon, 4 Dec 2023 08:19:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(platform):=20=E4=BF=AE=E5=A4=8D=E6=89=B9?= =?UTF-8?q?=E6=94=B9=E9=80=A0=E6=88=90=E7=9A=84=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LINGYUN/Platform/Layouts/LayoutAppService.cs | 2 +- .../LINGYUN/Platform/Menus/EfCoreMenuRepository.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs index cd071e320..25a1c1258 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs @@ -80,7 +80,7 @@ namespace LINGYUN.Platform.Layouts var layouts = await LayoutRepository.GetPagedListAsync( input.Framework, input.Filter, - input.Sorting, input.Reverse, false, + input.Sorting, false, input.SkipCount, input.MaxResultCount); return new PagedResultDto(count, diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs index 7ba83815f..3838c0a20 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs @@ -183,7 +183,7 @@ namespace LINGYUN.Platform.Menus menu.Path.Contains(filter) || menu.Name.Contains(filter) || menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || menu.Redirect.Contains(filter)) - .rting) + .OrderBy(sorting) .ToListAsync(GetCancellationToken(cancellationToken)); }