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

order

... ... @@ -35,10 +35,13 @@ class AdminStatisticsController extends AdminBaseController{
}
$where=array();
for ($i = 0; $i<15; $i++){
$where[$i]=['between',[$week[$i],$week[$i+1]]];
$where[$i]=[$week[$i],$week[$i+1]];
}
dump($where);
$Week_statistics=array();
for ($i = 0; $i<15; $i++){
$Week_statistics[]=Db::name('order')->where('start_time','between',$where[$i])->count();
}
dump($Week_statistics);
$month=array();
for ($i = 0; $i <= 24; $i++){
... ...