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

interface

@@ -95,7 +95,6 @@ class AdminStatisticsController extends AdminBaseController{ @@ -95,7 +95,6 @@ class AdminStatisticsController extends AdminBaseController{
95 $interval[2]=Db::query($sql); 95 $interval[2]=Db::query($sql);
96 $sql="SELECT sleep_equipment.hospital,count(*) as num FROM sleep_order INNER JOIN sleep_equipment ON sleep_order.eq_name=sleep_equipment.name where ".$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 sleep_equipment.hospital,count(*) as num FROM sleep_order INNER JOIN sleep_equipment ON sleep_order.eq_name=sleep_equipment.name where ".$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);  
99 foreach ($interval as $k=>$v){ 98 foreach ($interval as $k=>$v){
100 $interval[$k]=$interval[$k][0]['num']; 99 $interval[$k]=$interval[$k][0]['num'];
101 } 100 }