优化:Give_Gift 表查询处理

This commit is contained in:
2026-01-12 20:12:15 +08:00
parent 48625c4845
commit 46821425a8

View File

@@ -208,7 +208,7 @@ class Statistical extends adminApi
->group('user_id')
->count();
$lists = db::name('user_coin_log')
->field('log_id,createtime,user_id,sum(change_value) as change_value')
->field('id,createtime,user_id,sum(coin) as change_value')
->where($where)
->group('user_id')
->order('change_value desc')
@@ -226,7 +226,7 @@ class Statistical extends adminApi
'count' => $count,
'lists' => $lists,
'total' =>[
'total_price' => db::name('vs_user_money_log')->where($where)->sum('change_value')
'total_price' => db::name('user_coin_log')->where($where)->sum('coin')
]
];
return V(1,"成功", $return_data);