提交 aecfd567 authored 作者: chengye's avatar chengye

修复抄表单列表页曝移动电量没有乘以倍率的错误

上级 ef0e9802
......@@ -42,7 +42,7 @@ class Useage extends Base
$data = self::alias('ue')
->field('ue.*')
->field('station.station_name')
->field('em.em_numb')
->field('em.em_numb,em.rate')
->join(['em'],'em.id=ue.em_id')
->join(['station_info'=>'station'],'station.station_id=em.station_id')
->where($map)
......@@ -52,7 +52,7 @@ class Useage extends Base
->toarray();
foreach ($data as $k => $v){
$data[$k]['repo_numb'] = round($v['current_sum_numb'] - $v['last_sum_numb'],2);
$data[$k]['repo_numb'] = round(round($v['current_sum_numb'] - $v['last_sum_numb'],2)*$v['rate'],2);
}
return $data;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论