From 0d8ec00225fe06060987d9791e0a3dc85a5d490f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Thu, 21 May 2020 18:21:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/CompanyGameRatioController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Admin/Controller/CompanyGameRatioController.class.php b/Application/Admin/Controller/CompanyGameRatioController.class.php index 2d93fe309..fdb11c916 100644 --- a/Application/Admin/Controller/CompanyGameRatioController.class.php +++ b/Application/Admin/Controller/CompanyGameRatioController.class.php @@ -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{