小时榜
This commit is contained in:
@@ -94,7 +94,7 @@ class RoomHourRanking extends Model
|
||||
$is_open_xlh = db::name('vs_hour_ranking_config')->where('id', 1)->value('is_open_xlh');
|
||||
// 查询这个时间段内收礼的房间ID集合,并实现分页
|
||||
$room_query = Db::name('vs_give_gift')
|
||||
->where('from', 2)
|
||||
->where(['from' => 2, 'from_id' => ['>',0]])
|
||||
->whereBetween('createtime', [$start_time, $end_time])
|
||||
->group('from_id')
|
||||
->field('from_id, SUM(total_price) as total_price');
|
||||
|
||||
Reference in New Issue
Block a user