我是兴高采烈
为嘛我生成是integer类型,而不是string
YourModel::find() ->andWhere(['!=','keyword','']) ->andWhere(['is not','keyword',null]) ->andWhere(['!=','keyword','*']) ->All();
谢谢,主要是
->andWhere(['is not','keyword',null])
这个写不好