|
|
@@ -716,10 +716,10 @@ def clerk_integral_list_api(request):
|
716
|
716
|
return response(SaleclerkStatusCode.CLERK_NOT_FOUND)
|
717
|
717
|
|
718
|
718
|
integrals = SaleclerkIntegralIncomeExpensesInfo.objects.filter(clerk_id=clerk.clerk_id).order_by('-pk')
|
719
|
|
- if ftime and ttime:
|
720
|
|
- fdt = tc.string_to_utc_datetime(ftime)
|
721
|
|
- tdt = tc.string_to_utc_datetime(ttime)
|
722
|
|
- integrals = integrals.filter(created_at__gte=fdt, created_at__lte=tdt)
|
|
719
|
+ if ftime:
|
|
720
|
+ integrals = integrals.filter(created_at__gte=tc.string_to_utc_datetime(ftime))
|
|
721
|
+ if ttime:
|
|
722
|
+ integrals = integrals.filter(created_at__lte=tc.string_to_utc_datetime(ttime))
|
723
|
723
|
integrals, left = pagination(integrals, page, num)
|
724
|
724
|
integrals = [integral.data for integral in integrals]
|
725
|
725
|
|