fix: 修复 SzxxView 重复 values 导致 500,财务累计统计去重

This commit is contained in:
XingQue
2026-06-24 06:44:44 +08:00
parent bfc38c2d43
commit 467bb71736
2 changed files with 0 additions and 2 deletions

View File

@@ -7345,7 +7345,6 @@ class SzxxView(APIView):
payout_qs = filter_queryset_by_club(
DailyPayoutStat.query.filter(**payout_filter), request,
).values(group_field) \
.values(group_field) \
.annotate(total_payout=Sum('total_amount'), total_count=Sum('total_count')) \
.order_by(group_field)

View File

@@ -190,6 +190,5 @@ def build_caiwu_payload(request):
'total_income': round(total_income, 2),
'total_payout': round(total_payout, 2),
'platform_profit': platform_profit,
'szjilu': szjilu_payload,
'daily_stats': daily_stats,
}