SELECT * FROM `user` WHERE
(a='1' AND b='0')
OR
(a='0' AND c='-1' AND b='0')
用AR改写
$orders = Orders::find()->where([
'AND',
['a' => 1],
['b' => 0]
])->orWhere([
'AND',
['a' => 0],
['c' => 1],
['b' => 0]
])->asArray()->all();