正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -68,6 +68,10 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -68,6 +68,10 @@ class AdminStatisticsController extends AdminBaseController{ | ||
68 | $interval[2]=Db::query($sql); | 68 | $interval[2]=Db::query($sql); |
69 | $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'"; | 69 | $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'"; |
70 | $interval[3]=Db::query($sql); | 70 | $interval[3]=Db::query($sql); |
71 | + | ||
72 | + foreach ($interval as $k=>$v){ | ||
73 | + $interval[$k]=$interval[$k][0]['num']; | ||
74 | + } | ||
71 | $this->assign('interval',json_encode($interval)); | 75 | $this->assign('interval',json_encode($interval)); |
72 | dump($interval); | 76 | dump($interval); |
73 | return $this->fetch(); | 77 | return $this->fetch(); |
-
请 注册 或 登录 后发表评论