فهرست منبع

Merge branch 'fix/call_1203' into test

qinchaoyue 5 ماه پیش
والد
کامیت
f6b06a2179
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      src/Hotline.Api/Controllers/OrderController.cs

+ 2 - 4
src/Hotline.Api/Controllers/OrderController.cs

@@ -288,9 +288,8 @@ public class OrderController : BaseController
     [HttpGet("publish/items")]
     public async Task<IList<PublishDto>> GetPublishOrderListAsync([FromQuery] QueryOrderPublishDto dto)
     { 
-        var fixedQueryCount = _systemSettingCacheManager.FixedQueryCount;
         var query = _orderApplication.GetPublishOrderList(dto);
-        return (await query.ToFixedListAsync(dto.QueryIndex, fixedQueryCount, HttpContext.RequestAborted))
+        return (await query.ToFixedListAsync(dto.QueryIndex, dto.PageSize, HttpContext.RequestAborted))
             .Adapt<List<PublishDto>>();
     }
 
@@ -664,9 +663,8 @@ public class OrderController : BaseController
     [HttpGet("published/items")]
     public async Task<IList<PublishedDto>> GetPublishedOrderListAsync([FromQuery] PublishedPagedRequest dto)
     {
-        var fixedQueryCount = _systemSettingCacheManager.FixedQueryCount;
         var query = _orderApplication.GetPublishedOrder(dto);
-        return (await query.ToFixedListAsync(dto.QueryIndex, fixedQueryCount, HttpContext.RequestAborted))
+        return (await query.ToFixedListAsync(dto.QueryIndex, dto.PageSize, HttpContext.RequestAborted))
             .Adapt<List<PublishedDto>>();
     }