优化:Give_Gift 表查询处理

This commit is contained in:
2026-01-13 11:21:18 +08:00
parent 6582f9ca96
commit 74db686f47

View File

@@ -328,7 +328,7 @@ class Statistical extends adminApi
'count' => $count,
'lists' => $lists,
'total' =>[
'total_price' => db::name('vs_give_gift')->where($where)->sum('total_price'),
'total_price' => db::name($table_name)->where($where)->sum('total_price'),
'total_lucky_coin' => db::name('vs_room_luck_value')->where($where_lucky)->sum('luck_value'),
]
];