chuweiqiang 1 年之前
父节点
当前提交
3b3bf3c01f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/data/controller/api/auth/DemandLabor.php

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

@@ -63,7 +63,9 @@ class DemandLabor extends Auth
                 }
                 $schooling = $data['schooling'];
                 $where = [];
-                $where['schooling'] = $schooling;
+                if(isset($data['schooling']) && $data['schooling'] != '' && $data['schooling'] != null){
+                    $where['schooling'] = $schooling;
+                }
                 $list = DataRecruitment::mk()
                     ->where('is_del',1)
                     ->where('state',1)