提交 865c9716 authored 作者: chengye's avatar chengye

test

上级 d04695a4
......@@ -39,7 +39,7 @@ class EmPayment extends Base
// ->select()
// ->toarray();
$data = (new EmPaymentInvoice())->alias('e')
$data = (new EmInvoice())->alias('e')
->field('pay.*')
->field('case pay.status
when 0 then "未缴费"
......@@ -51,9 +51,9 @@ class EmPayment extends Base
->field('e.invoice_id')
->field('em.em_numb')
->field('r.region_name,station.station_name')
->join(['em_payment'=>'pay'],'e.payment_id = pay.payment_id')
->join(['em_invoice'=>'ei'],'ei.invoice_id = e.invoice_id')
->join(['em_account'=>'ea'],'ea.account_id = ei.account_id')
->join(['em_payment_invoice'=>'epi'],'epi.invoice_id = e.invoice_id')
->join(['em_payment'=>'pay'],'epi.payment_id = pay.payment_id')
->join(['em_account'=>'ea'],'ea.account_id = epi.account_id')
->join(['em'],'em.id = ea.em_id')
->join(['station_info'=>'station'],'station.station_id=em.station_id')
->join(['region'=>'r'],'station.area_id = r.id')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论