From 287c844d059c43fec3deef20b5f467bd83033d5e Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sun, 24 Mar 2024 21:55:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=9F=A5=E8=AF=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs | 4 ++-- Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs b/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs index 09e3b551..57489142 100644 --- a/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs +++ b/Src/Dlhis.Basic/Organization/Controllers/GainfosController.cs @@ -51,8 +51,8 @@ public class GainfosController : ControllerBase /// /// /// - [HttpPost("page-all")] - public async Task> GetPageByCodeAsync([FromBody] string code) + [HttpGet("page-all")] + public async Task> GetPageByCodeAsync(string code) { return await _gainfoService.GetPageByCodeAsync(code); } diff --git a/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs b/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs index 07bc6916..71f18bf3 100644 --- a/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs +++ b/Src/Dlhis.Canteen/Order/Services/Implements/OrderService.cs @@ -297,6 +297,7 @@ public class OrderService : BaseOrderService, IOrderService var pageResult = await DbContext.Queryable().Where(x => x.UserNo == gainfo.No) .LeftJoin((x, bplace) => x.BusinessPlaceCode == bplace.Code) .Where(x => x.ApplicationType == CanteenApplicaitonTypeEnumType.Booking) + .OrderBy(x => x.CreateTime, OrderByType.Desc) .Select((x, bplace) => new OrderAggregationResponse { No = x.No,