yii2 orwhere andwhere的复杂写法:https://www.codercto.com/a/6513.html
$files = XXXX::find()
->andWhere(['<>', 'queue_name', ''])
->andWhere(['or',
['queue_status' => ''],
[
'and',
['queue_status' =>'error'],
['retry' => 0]
]
])
->all();
yii2 orwhere andwhere的复杂写法:https://www.codercto.com/a/6513.html
$files = XXXX::find()
->andWhere(['<>', 'queue_name', ''])
->andWhere(['or',
['queue_status' => ''],
[
'and',
['queue_status' =>'error'],
['retry' => 0]
]
])
->all();