|
|
@ -52,7 +52,7 @@ class CompanyGameRatioController extends AdminController
|
|
|
|
->join("left JOIN ({$gameres}) g ON m.relation_game_id = g.relation_game_id")
|
|
|
|
->join("left JOIN ({$gameres}) g ON m.relation_game_id = g.relation_game_id")
|
|
|
|
->join("left JOIN tab_promote_company p ON m.company_id = p.id")
|
|
|
|
->join("left JOIN tab_promote_company p ON m.company_id = p.id")
|
|
|
|
->where($where)
|
|
|
|
->where($where)
|
|
|
|
->order('create_time desc, id desc');
|
|
|
|
->order("FIELD(m.status,0,1,-1,-2,2),id desc");
|
|
|
|
if(isset($params['export'])){
|
|
|
|
if(isset($params['export'])){
|
|
|
|
$dbres = $dbres->select();
|
|
|
|
$dbres = $dbres->select();
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|