作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

@@ -28,9 +28,9 @@ use think\Db; @@ -28,9 +28,9 @@ use think\Db;
28 class AdminStatisticsController extends AdminBaseController{ 28 class AdminStatisticsController extends AdminBaseController{
29 29
30 public function index(){ 30 public function index(){
31 - $hospital=$this->request->param('hospital'); 31 + $param=$this->request->param();
32 $where=array(); 32 $where=array();
33 - dump($hospital); 33 + dump($param);
34 34
35 //医院总体时长统计 35 //医院总体时长统计
36 $data=Db::name('order') 36 $data=Db::name('order')
@@ -98,6 +98,8 @@ class AdminStatisticsController extends AdminBaseController{ @@ -98,6 +98,8 @@ class AdminStatisticsController extends AdminBaseController{
98 $interval[$k]=$interval[$k][0]['num']; 98 $interval[$k]=$interval[$k][0]['num'];
99 } 99 }
100 $this->assign('interval',json_encode($interval)); 100 $this->assign('interval',json_encode($interval));
  101 +
  102 + $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : '');
101 return $this->fetch(); 103 return $this->fetch();
102 } 104 }
103 105