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,