linwu 3 kuukautta sitten
vanhempi
commit
ad45175c34
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      app/Http/Controllers/Mobile/Health/RecruitController.php

+ 4 - 0
app/Http/Controllers/Mobile/Health/RecruitController.php

@@ -51,6 +51,7 @@ class RecruitController extends MobileBaseController
                 }
             }
         }
+        $params['health_type'] = $request->input('health_type', 1);
 
         //查询条件
         $size  = 10;
@@ -69,6 +70,9 @@ class RecruitController extends MobileBaseController
         if (!empty($params['education'])) {
             $where[] = ['education', '=', $params['education']];
         }
+        if (!empty($params['health_type'])) {
+            $where[] = ['health_type', '=', $params['health_type']];
+        }
 
         $list = Jobs::where($where)->orderBy('updated_at', 'desc')->paginate($size);
         if ($list->total() > 0) {