|
...
|
...
|
@@ -84,6 +84,13 @@ class InquiryMonthlyCount extends Command |
|
|
|
$arr['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$arr['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
$arr['project_id'] = $project_id;
|
|
|
|
$pv_ip = DB::table('gl_count')
|
|
|
|
->where(['project_id'=>1])
|
|
|
|
->where('date','>=',$startTime->toDateString().' 00:00:00')
|
|
|
|
->where('date','<=',$endTime->toDateString().' 23:59:59')
|
|
|
|
->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num'))
|
|
|
|
->get();
|
|
|
|
|
|
|
|
DB::table('gl_inquiry_month_count')->insert($arr);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|