房间小时榜

This commit is contained in:
2025-09-29 14:14:20 +08:00
parent 2fb4b136ed
commit bd3af537cc

View File

@@ -32,7 +32,7 @@ class RoomHourRanking
//当前小时开始时间
$start_time = strtotime(date('Y-m-d H:00:00'));
$profit = db::name('vs_room')->alias('a')
->join('vs_give_gift b', 'a.id = b.room_id','left')
->join('vs_give_gift b', 'a.id = b.from_id','left')
->join('vs_room_label c', 'a.label_id = c.id','left')
->field('a.id as room_id,a.room_name,a.label_id,a.room_cover,sum(b.total_price) as total_price,c.label_icon')
->where('b.from',2)