正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
@@ -35,10 +35,13 @@ class AdminStatisticsController extends AdminBaseController{ | @@ -35,10 +35,13 @@ class AdminStatisticsController extends AdminBaseController{ | ||
35 | } | 35 | } |
36 | $where=array(); | 36 | $where=array(); |
37 | for ($i = 0; $i<15; $i++){ | 37 | for ($i = 0; $i<15; $i++){ |
38 | - $where[$i]=['between',[$week[$i],$week[$i+1]]]; | 38 | + $where[$i]=[$week[$i],$week[$i+1]]; |
39 | } | 39 | } |
40 | - | ||
41 | - dump($where); | 40 | + $Week_statistics=array(); |
41 | + for ($i = 0; $i<15; $i++){ | ||
42 | + $Week_statistics[]=Db::name('order')->where('start_time','between',$where[$i])->count(); | ||
43 | + } | ||
44 | + dump($Week_statistics); | ||
42 | 45 | ||
43 | $month=array(); | 46 | $month=array(); |
44 | for ($i = 0; $i <= 24; $i++){ | 47 | for ($i = 0; $i <= 24; $i++){ |
-
请 注册 或 登录 后发表评论