fix(order): move all-orders list to database pagination
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m50s
All checks were successful
Build and Deploy TenantApi + SkuWorker / build-and-deploy (push) Successful in 1m50s
This commit is contained in:
@@ -63,6 +63,40 @@ public interface IOrderRepository
|
||||
string? keyword,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 全部订单分页筛选查询。
|
||||
/// </summary>
|
||||
/// <param name="tenantId">租户 ID。</param>
|
||||
/// <param name="storeId">门店 ID。</param>
|
||||
/// <param name="startAt">开始时间(含)。</param>
|
||||
/// <param name="endAt">结束时间(不含)。</param>
|
||||
/// <param name="status">订单状态。</param>
|
||||
/// <param name="refundedOnly">是否仅退款。</param>
|
||||
/// <param name="deliveryType">履约方式。</param>
|
||||
/// <param name="paymentMethod">支付方式。</param>
|
||||
/// <param name="keyword">关键词(订单号/手机号)。</param>
|
||||
/// <param name="sortBy">排序字段。</param>
|
||||
/// <param name="sortDescending">是否倒序。</param>
|
||||
/// <param name="page">页码。</param>
|
||||
/// <param name="pageSize">每页条数。</param>
|
||||
/// <param name="cancellationToken">取消标记。</param>
|
||||
/// <returns>分页订单与总数。</returns>
|
||||
Task<(IReadOnlyList<Order> Items, int TotalCount)> SearchAllOrdersPageAsync(
|
||||
long tenantId,
|
||||
long? storeId,
|
||||
DateTime? startAt,
|
||||
DateTime? endAt,
|
||||
OrderStatus? status,
|
||||
bool refundedOnly,
|
||||
DeliveryType? deliveryType,
|
||||
PaymentMethod? paymentMethod,
|
||||
string? keyword,
|
||||
string? sortBy,
|
||||
bool sortDescending,
|
||||
int page,
|
||||
int pageSize,
|
||||
CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 获取订单明细行。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user