正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -45,8 +45,9 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -45,8 +45,9 @@ class AdminStatisticsController extends AdminBaseController{ | ||
45 | 45 | ||
46 | echo strtotime('10:15:30'); | 46 | echo strtotime('10:15:30'); |
47 | 47 | ||
48 | - $where['start_time']=['between',[strtotime(date('7:i:s')),strtotime(date('Y-m-d 12:i:s'))]]; | ||
49 | - $num=Db::name('order')->where($where)->count(); | 48 | + $sql="SELECT * FROM sleep_order where FROM_UNIXTIME(start_time,'%H:%i:%S')>'06:00:00' AND FROM_UNIXTIME(start_time,'%H:%i:%S')<'11:00:00'"; |
49 | + $num=Db::query($sql); | ||
50 | + | ||
50 | 51 | ||
51 | dump($num); | 52 | dump($num); |
52 | 53 |
-
请 注册 或 登录 后发表评论