select(['id', 'level', 'category', 'log_time', 'prefix']); $dataProvider = new ActiveDataProvider([ 'query' => $query, ]); if (!($this->load($params) && $this->validate())) { return $dataProvider; } $query->andFilterWhere([ 'id' => $this->id, 'level' => $this->level, 'log_time' => $this->log_time, ]); $query->andFilterWhere([LikeQueryManager::getActionName(), 'category', $this->category]) ->andFilterWhere([LikeQueryManager::getActionName(), 'prefix', $this->prefix]); return $dataProvider; } }