作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

XIAOPAN

@@ -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