chuweiqiang 1 year ago
parent
commit
b4a3b0c3c3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/data/controller/api/auth/DemandLabor.php

+ 3 - 0
app/data/controller/api/auth/DemandLabor.php

@@ -62,6 +62,8 @@ class DemandLabor extends Auth
                     $data['schooling'] = '';
                 }
                 $schooling = $data['schooling'];
+                $where = [];
+                $where['schooling'] = $schooling;
                 $list = DataRecruitment::mk()
                     ->where('is_del',1)
                     ->where('state',1)
@@ -98,6 +100,7 @@ class DemandLabor extends Auth
                     ->with(['shipyard'=>function($query){
                         $query->field('id,name');
                     }])
+                    ->where($where)
                     ->order('create_at','desc')
                     ->paginate();
                 foreach ($list as $v){