房间排行榜
This commit is contained in:
@@ -178,7 +178,7 @@ class Ranking extends Model
|
||||
}
|
||||
|
||||
$lists = db::name('room_daily_income')->alias('a')
|
||||
->join('vs_room b','a.room_id = b.id','right')
|
||||
->join('vs_room b','a.room_id = b.id','left')
|
||||
->field('a.room_id,sum(a.income) as total,b.room_name,b.room_cover,b.room_number')
|
||||
->where(['a.date' => ['between', [$begin_time, $end_time]]])
|
||||
->order('total desc')
|
||||
|
||||
Reference in New Issue
Block a user