From c66610c3acec573615a2f8ac585b9d656d17ec33 Mon Sep 17 00:00:00 2001 From: 27942 Date: Thu, 25 Dec 2025 18:15:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=A0=E9=99=A4=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/views.py b/business/views.py index c9833d3..52889c8 100644 --- a/business/views.py +++ b/business/views.py @@ -1247,7 +1247,7 @@ class WarehousingDetail(APIView): if unit: Q_obj &= Q(unit__icontains=unit) - seas = Warehousing.objects.filter(Q_obj) + seas = Warehousing.objects.filter(Q_obj).order_by('-id') total = len(seas) paginator = Paginator(seas, per_page) @@ -1374,7 +1374,7 @@ class PlatformDetail(APIView): """ page = request.data.get('page') per_page = request.data.get('per_page') - seas = RegisterPlatform.objects.all() + seas = RegisterPlatform.objects.all().order_by('-id') total = len(seas) paginator = Paginator(seas, per_page) @@ -1685,7 +1685,7 @@ class ScheduleDetail(APIView): :param kwargs: :return: """ - sches = Schedule.objects.filter(state="未完成") + sches = Schedule.objects.filter(state="未完成").order_by('-id') page = request.data.get('page') per_page = request.data.get('per_page') total = len(sches)