摘要: $list = Cash::find()->alias('c')->select([ 'sum(case when c.status = 0 then 1 else 0 end) count_1', 'sum(case when c.status = 1 then 1 else 0 end) cou 阅读全文