提交 1f9a3342 authored 作者: chengye's avatar chengye

修复缴费单显示错误

上级 0064d8ac
......@@ -29,12 +29,12 @@ class EmSettle extends Base
->field('esi.invoice_id')
->field('em.em_numb')
->field('r.region_name')
->leftJoin(['em_settle_invoice'=>'esi'],'esi.settle_id = settle.settle_id')
->leftJoin(['em_invoice'=>'inv'],'esi.invoice_id = inv.invoice_id')
->leftJoin(['em_account'=>'ea'],'ea.account_id = settle.account_id')
->leftJoin(['em'],'em.id=ea.em_id')
->leftJoin(['station_info'=>'station'],'station.station_id=em.station_id')
->leftJoin(['region'=>'r'],'station.area_id = r.id')
->join(['em_settle_invoice'=>'esi'],'esi.settle_id = settle.settle_id')
->join(['em_invoice'=>'inv'],'esi.invoice_id = inv.invoice_id')
->join(['em_account'=>'ea'],'ea.account_id = settle.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')
->where($map)
->page($Nowpage, $limits)
->select()
......@@ -49,12 +49,12 @@ class EmSettle extends Base
->field('esi.invoice_id')
->field('em.em_numb')
->field('r.region_name')
->leftJoin(['em_settle_invoice'=>'esi'],'esi.settle_id = settle.settle_id')
->leftJoin(['em_invoice'=>'inv'],'esi.invoice_id = inv.invoice_id')
->leftJoin(['em_account'=>'ea'],'ea.account_id = settle.account_id')
->leftJoin(['em'],'em.id=ea.em_id')
->leftJoin(['station_info'=>'station'],'station.station_id=em.station_id')
->leftJoin(['region'=>'r'],'station.area_id = r.id')
->join(['em_settle_invoice'=>'esi'],'esi.settle_id = settle.settle_id')
->join(['em_invoice'=>'inv'],'esi.invoice_id = inv.invoice_id')
->join(['em_account'=>'ea'],'ea.account_id = settle.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')
->where($map)
->count();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论