商家订单列表支持时间段筛选并修正分页has_more

This commit is contained in:
XingQue
2026-06-26 20:28:34 +08:00
parent 3083096cd7
commit c8b67a2fc8
4 changed files with 85 additions and 45 deletions

View File

@@ -85,7 +85,7 @@ class StaffOrderListView(APIView):
'msg': '成功',
'data': {
'list': order_list,
'has_more': len(page_qs) == page_size and start + page_size < total_count,
'has_more': start + len(page_qs) < total_count,
'total': total_count,
'pending_count': pending_count,
'view_scope': 'all' if staff_can_view_all_orders(member) else 'self',