$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; } // grid filtering conditions $query->andFilterWhere([ 'ID' => $this->ID, 'ROLE_SYS' => $this->ROLE_SYS, 'PARENT_MENU_ID' => $this->PARENT_MENU_ID, 'CANCEL_FLAG' => $this->CANCEL_FLAG, 'CREATE_USER_ID' => $this->CREATE_USER_ID, 'UPDATE_USER_ID' => $this->UPDATE_USER_ID, 'SEQ' => $this->SEQ, ]); $query->andFilterWhere(['like', 'MENU_TITLE', $this->MENU_TITLE]) ->andFilterWhere(['like', 'ROLE_NAME', $this->ROLE_NAME]) ->andFilterWhere(['like', 'MENU_ICON', $this->MENU_ICON]) ->andFilterWhere(['like', 'CREATE_TIME', $this->CREATE_TIME]) ->andFilterWhere(['like', 'UPDATE_TIME', $this->UPDATE_TIME]) ->andFilterWhere(['like', 'TARGET', $this->TARGET]) ->andFilterWhere(['like', 'NOTE', $this->NOTE]); return $dataProvider; } }