优化:Give_Gift 表查询处理
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user