fix: 修复 SzxxView 重复 values 导致 500,财务累计统计去重
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user