提交 106c2083 authored 作者: chengye's avatar chengye

测试基站详情读取抄表数据

上级 36265b72
...@@ -46,7 +46,6 @@ class Index extends Base ...@@ -46,7 +46,6 @@ class Index extends Base
} }
public function detail(){ public function detail(){
$model = new \app\jz\model\Index(); $model = new \app\jz\model\Index();
$id = Request::param('id'); $id = Request::param('id');
...@@ -61,8 +60,6 @@ class Index extends Base ...@@ -61,8 +60,6 @@ class Index extends Base
->where('VALUE','=',$data->jz_yys)->find(); ->where('VALUE','=',$data->jz_yys)->find();
if($yys) $data->jz_yys = $yys['yys_name']; if($yys) $data->jz_yys = $yys['yys_name'];
$construct = Dictionary::field('name as qy') $construct = Dictionary::field('name as qy')
->where('type','LIKE','%JZ_QY%') ->where('type','LIKE','%JZ_QY%')
->where('VALUE','=',$data->jz_qy)->find(); ->where('VALUE','=',$data->jz_qy)->find();
...@@ -80,6 +77,14 @@ class Index extends Base ...@@ -80,6 +77,14 @@ class Index extends Base
'repo_numb' => 18766, 'repo_numb' => 18766,
'power' => round(18766/60,2) 'power' => round(18766/60,2)
]; ];
$ues = Db::connect('db_config1')
->table('em_useage')->alias('eu')
->join(['em'],'em.id=eu.em_id')
->join(['station_info'=>'s'],'em.station_id=s.station_id')
->where('s.proj_number','=',$data->project_code)
->select();
dd($ues);
//计算功耗
$this->assign('useage',$ue); $this->assign('useage',$ue);
return $this->fetch(); return $this->fetch();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论