Эх сурвалжийг харах

Merge branch 'fix/call_1203' into test

qinchaoyue 5 сар өмнө
parent
commit
f6b06a2179

+ 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>>();
     }