提交 504a6065 authored 作者: chengye's avatar chengye

test

上级 20846919
......@@ -40,7 +40,7 @@ class EmPayment extends Base
// ->toarray();
$data = (new EmInvoice())->alias('e')
->field('pay.*')
->field('e.invoice_id,pay.*')
->field('case pay.status
when 0 then "未缴费"
when 1 then "已缴费"
......@@ -48,11 +48,9 @@ class EmPayment extends Base
when 3 then "凭证完整"
when 4 then "已审核"
end as status')
->field('e.invoice_id')
->field('em.em_numb')
->field('r.region_name,station.station_name')
->field('em.em_numb,r.region_name,station.station_name')
->join(['em_payment_invoice'=>'epi'],'epi.invoice_id = e.invoice_id')
->join(['em_payment'=>'pay'],'epi.payment_id = pay.payment_id')
->leftJoin(['em_payment'=>'pay'],'epi.payment_id = pay.payment_id')
->join(['em_account'=>'ea'],'ea.account_id = e.account_id')
->join(['em'],'em.id = ea.em_id')
->join(['station_info'=>'station'],'station.station_id=em.station_id')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论