数据查询User::find()->all();此方法返回所有数据;User::findOne($id); 此方法返回 主键 id=1的一条数据(举个例子); User::find()->where([nam