提交 77fa9af6 authored 作者: chengye's avatar chengye

test

上级 e934d640
...@@ -87,12 +87,13 @@ class EmInvoice extends Base ...@@ -87,12 +87,13 @@ class EmInvoice extends Base
$data = self::alias('inv') $data = self::alias('inv')
->field('inv.*') ->field('inv.*')
->field('station.station_name') ->field('station.station_name')
->field('em.em_numb') ->field('em.em_numb,em.em_type_id')
->join(['em_account'=>'ea'],'ea.account_id = inv.account_id') ->join(['em_account'=>'ea'],'ea.account_id = inv.account_id')
->join(['em'],'em.id=ea.em_id') ->join(['em'],'em.id=ea.em_id')
->join(['station_info'=>'station'],'station.station_id=em.station_id') ->join(['station_info'=>'station'],'station.station_id=em.station_id')
->where(['inv.invoice_id'=>$ids]) ->where(['inv.invoice_id'=>$ids])
// ->where('inv.payment_balance','neq',0) ->whereNotIn('em.em_type_id','2,4')
->where('inv.payment_balance','neq',0)
->select(); ->select();
return $data; return $data;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论