正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
| @@ -97,8 +97,7 @@ class MonthCountLogic extends BaseLogic | @@ -97,8 +97,7 @@ class MonthCountLogic extends BaseLogic | ||
| 97 | public function flowCount(&$arr,&$startTime,&$endTime,$project_id){ | 97 | public function flowCount(&$arr,&$startTime,&$endTime,$project_id){ |
| 98 | $pv_ip = DB::table('gl_count') | 98 | $pv_ip = DB::table('gl_count') |
| 99 | ->where(['project_id'=>$project_id]) | 99 | ->where(['project_id'=>$project_id]) |
| 100 | - ->where('date','>=',$startTime.' 00:00:00') | ||
| 101 | - ->where('date','<=',$endTime.' 23:59:59') | 100 | + ->whereBetween('date', [$startTime.' 00:00:00',$endTime.' 23:59:59']) |
| 102 | ->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num')) | 101 | ->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num')) |
| 103 | ->first(); | 102 | ->first(); |
| 104 | $arr['pv'] = $pv_ip->pv_num; | 103 | $arr['pv'] = $pv_ip->pv_num; |
-
请 注册 或 登录 后发表评论