查询条件中 and中有or条件的写法
2017-05-15 本文已影响0人
IT_min
$query->andWhere(['or',
['in', 'order.status', ['paid', 'refunding']],
['in', 'order.refund_type', 'part'],
])
sql => and (order.status in (['paid', 'refunding') or order.refund_type in('part'))