正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -95,10 +95,11 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -95,10 +95,11 @@ class AdminStatisticsController extends AdminBaseController{ | ||
95 | $interval[2]=Db::query($sql); | 95 | $interval[2]=Db::query($sql); |
96 | $sql="SELECT count(*) as num FROM sleep_order where FROM_UNIXTIME(start_time,'%H:%i:%S')>'17:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'21:00:00'"; | 96 | $sql="SELECT count(*) as num FROM sleep_order where FROM_UNIXTIME(start_time,'%H:%i:%S')>'17:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'21:00:00'"; |
97 | $interval[3]=Db::query($sql); | 97 | $interval[3]=Db::query($sql); |
98 | + dump($interval); | ||
98 | foreach ($interval as $k=>$v){ | 99 | foreach ($interval as $k=>$v){ |
99 | $interval[$k]=$interval[$k][0]['num']; | 100 | $interval[$k]=$interval[$k][0]['num']; |
100 | } | 101 | } |
101 | - dump($interval); | 102 | + |
102 | $this->assign('interval',json_encode($interval)); | 103 | $this->assign('interval',json_encode($interval)); |
103 | 104 | ||
104 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); | 105 | $this->assign('hospital', isset($param['hospital']) ? $param['hospital'] : ''); |
-
请 注册 或 登录 后发表评论