优化删除部门接口
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user