$query, ]); $this->load($params); if (!$this->validate()) { // uncomment the following line if you do not want to return any records when validation fails // $query->where('0=1'); return $dataProvider; } $query->andFilterWhere([ 'user_id' => $this->user_id, 'view_count' => $this->view_count, 'date_visit' => $this->date_visit, 'user_info_id' => $this->user_info_id, 'contract' => $this->contract, 'estimate' => $this->estimate, 'purchase' => $this->purchase, 'delivery' => $this->delivery, 'prepayment' => $this->prepayment, ]); $query->andFilterWhere(['like', 'busy', $this->busy]) ->andFilterWhere(['like', 'experience', $this->experience]) ->andFilterWhere(['like', 'rank', $this->rank]) ->andFilterWhere(['like', 'salary', $this->salary]) ->andFilterWhere(['like', 'job', $this->job]) ->andFilterWhere(['like', 'location', $this->location]) ->andFilterWhere(['like', 'soft', $this->soft]) ->andFilterWhere(['like', 'guarantee', $this->guarantee]) ->andFilterWhere(['like', 'about', $this->about]); return $dataProvider; } }