chuweiqiang 1 年之前
父節點
當前提交
b4a3b0c3c3
共有 1 個文件被更改,包括 3 次插入0 次删除
  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){