chuweiqiang 1 rok temu
rodzic
commit
3b3bf3c01f
1 zmienionych plików z 3 dodań i 1 usunięć
  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'];
                 $schooling = $data['schooling'];
                 $where = [];
                 $where = [];
-                $where['schooling'] = $schooling;
+                if(isset($data['schooling']) && $data['schooling'] != '' && $data['schooling'] != null){
+                    $where['schooling'] = $schooling;
+                }
                 $list = DataRecruitment::mk()
                 $list = DataRecruitment::mk()
                     ->where('is_del',1)
                     ->where('is_del',1)
                     ->where('state',1)
                     ->where('state',1)