正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -48,7 +48,7 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -48,7 +48,7 @@ class AdminStatisticsController extends AdminBaseController{ | ||
48 | $hospital[$k]=$v['hospital']; | 48 | $hospital[$k]=$v['hospital']; |
49 | $num[$k]=$v['num']; | 49 | $num[$k]=$v['num']; |
50 | } | 50 | } |
51 | - | 51 | + var_dump($hospital); |
52 | $this->assign('hospitalJson',json_encode($hospital)); | 52 | $this->assign('hospitalJson',json_encode($hospital)); |
53 | $this->assign('num',json_encode($num)); | 53 | $this->assign('num',json_encode($num)); |
54 | 54 | ||
@@ -126,6 +126,7 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -126,6 +126,7 @@ class AdminStatisticsController extends AdminBaseController{ | ||
126 | public function getNote(){ | 126 | public function getNote(){ |
127 | $param=$this->request->param(); | 127 | $param=$this->request->param(); |
128 | $data=Db::name('equipment')->where(['hospital'=>$param['hospital'],'is_delete'=>0])->group('note')->select()->toArray(); | 128 | $data=Db::name('equipment')->where(['hospital'=>$param['hospital'],'is_delete'=>0])->group('note')->select()->toArray(); |
129 | + | ||
129 | return $data; | 130 | return $data; |
130 | } | 131 | } |
131 | 132 |
-
请 注册 或 登录 后发表评论