优化排序

master
chenzhi 5 years ago
parent 8a83e17485
commit 0d8ec00225

@ -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 tab_promote_company p ON m.company_id = p.id")
->where($where)
->order('create_time desc, id desc');
->order("FIELD(m.status,0,1,-1,-2,2),id desc");
if(isset($params['export'])){
$dbres = $dbres->select();
}else{

Loading…
Cancel
Save