提交 7860838b authored 作者: chengye's avatar chengye

账单添加抄表日期查询

上级 0ea05e92
...@@ -33,8 +33,7 @@ class EmInvoice extends Base ...@@ -33,8 +33,7 @@ class EmInvoice extends Base
$data = self::alias('inv') $data = self::alias('inv')
->field('inv.*') ->field('inv.*')
->field('station.station_name,em.em_numb') ->field('station.station_name,em.em_numb')
->field('eu.last_sum_numb,eu.current_sum_numb') ->field('eu.last_sum_numb,eu.current_sum_numb,FROM_UNIXTIME(eu.current_date,"%Y-%m-%d %H:%i:%S") as now_date')
->field('FROM_UNIXTIME("eu.current_date") as now_date')
->join(['em_invoice_useage'=>'eiu'],'eiu.invoice_id = inv.invoice_id') ->join(['em_invoice_useage'=>'eiu'],'eiu.invoice_id = inv.invoice_id')
->join(['em_useage'=>'eu'],'eu.useage_id = eiu.useage_id') ->join(['em_useage'=>'eu'],'eu.useage_id = eiu.useage_id')
->join(['em_account'=>'ea'],'ea.account_id = inv.account_id') ->join(['em_account'=>'ea'],'ea.account_id = inv.account_id')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论