chuweiqiang 1 year ago
parent
commit
52b68d2e16
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/data/controller/api/auth/DemandLabor.php

+ 2 - 2
app/data/controller/api/auth/DemandLabor.php

@@ -95,6 +95,7 @@ class DemandLabor extends Auth
                     ->with(['shipyard'=>function($query){
                     ->with(['shipyard'=>function($query){
                         $query->field('id,name');
                         $query->field('id,name');
                     }])
                     }])
+                    ->order('create_at','desc')
                     ->paginate();
                     ->paginate();
                 foreach ($list as $v){
                 foreach ($list as $v){
                     if($v['province'] == $v['city']){
                     if($v['province'] == $v['city']){
@@ -111,8 +112,7 @@ class DemandLabor extends Auth
                     })
                     })
                     ->field('a.id,uuid,a.head_img,a.real_name,a.sex,age,work_year,schooling,job_application,scope_work_area,province,city,area,b.is_vip,b.huanxinID,a.create_at')
                     ->field('a.id,uuid,a.head_img,a.real_name,a.sex,age,work_year,schooling,job_application,scope_work_area,province,city,area,b.is_vip,b.huanxinID,a.create_at')
                     ->rightJoin('data_user b','a.uuid=b.id')
                     ->rightJoin('data_user b','a.uuid=b.id')
-//                    ->order('b.is_vip desc,a.id desc')
-                    ->order('a.create_at desc,b.is_vip desc,a.id desc')
+                    ->order('b.is_vip desc,a.id desc')
                     ->paginate();
                     ->paginate();
                 break;
                 break;
         }
         }