$query->andFilterWhere(['not like', 'name', $this->name])
->andFilterWhere(['like', 'keywords', $this->keywords])
->andFilterWhere(['like', 'desc', $this->desc])
->andFilterWhere(['like', 'thumb', $this->thumb])
return $dataProvider;
如果是“ = ”,那么like
要改为什么呢?
直接改成=
就可以
直接把like改为 = ,就行了吧>where(['last_name' => 'Smith'])