|
@@ -765,11 +765,15 @@ public class OrderController : BaseController
|
|
|
/// <param name="dto"></param>
|
|
|
/// <returns></returns>
|
|
|
[HttpGet("published/items")]
|
|
|
- public async Task<IList<PublishedDto>> GetPublishedOrderListAsync([FromQuery] PublishedPagedRequest dto)
|
|
|
+ public async Task<IReadOnlyList<PublishedDto>> GetPublishedOrderListAsync([FromQuery] PublishedPagedRequest dto)
|
|
|
{
|
|
|
- var query = _orderApplication.GetPublishedOrder(dto);
|
|
|
- return (await query.ToFixedListAsync(dto.QueryIndex, 200, HttpContext.RequestAborted))
|
|
|
- .Adapt<List<PublishedDto>>();
|
|
|
+ //var query = _orderApplication.GetPublishedOrder(dto);
|
|
|
+ //return (await query.ToFixedListAsync(dto.QueryIndex, 200, HttpContext.RequestAborted))
|
|
|
+ //.Adapt<List<PublishedDto>>();
|
|
|
+ var orderPublishs = await _orderApplication.GetPublishedOrder(dto)
|
|
|
+ .ToPageListWithoutTotalAsync(dto, HttpContext.RequestAborted);
|
|
|
+
|
|
|
+ return _mapper.Map<IReadOnlyList<PublishedDto>>(orderPublishs);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|