排行榜

This commit is contained in:
2026-01-09 18:23:56 +08:00
parent 4d284c4328
commit d8a299e4a2

View File

@@ -536,7 +536,7 @@ class GiveGiftBase extends Model
// 最终统计
if ($options['group_by']) {
$finalSql = "SELECT {$options['group_by']},
SUM(total_price) as total_price,
SUM(total_price) as total_price
FROM ({$unionSql}) as tmp
GROUP BY {$options['group_by']}
ORDER BY total_price";