|
...
|
...
|
@@ -97,8 +97,7 @@ class MonthCountLogic extends BaseLogic |
|
|
|
public function flowCount(&$arr,&$startTime,&$endTime,$project_id){
|
|
|
|
$pv_ip = DB::table('gl_count')
|
|
|
|
->where(['project_id'=>$project_id])
|
|
|
|
->where('date','>=',$startTime.' 00:00:00')
|
|
|
|
->where('date','<=',$endTime.' 23:59:59')
|
|
|
|
->whereBetween('date', [$startTime.' 00:00:00',$endTime.' 23:59:59'])
|
|
|
|
->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num'))
|
|
|
|
->first();
|
|
|
|
$arr['pv'] = $pv_ip->pv_num;
|
...
|
...
|
|