作者 lyh

gx

@@ -17,7 +17,7 @@ class InquiryMonthlyCount extends Command @@ -17,7 +17,7 @@ class InquiryMonthlyCount extends Command
17 * 17 *
18 * @var string 18 * @var string
19 */ 19 */
20 - protected $signature = 'yesterday_count'; 20 + protected $signature = 'month_count';
21 21
22 /** 22 /**
23 * The console command description. 23 * The console command description.
@@ -140,18 +140,18 @@ class InquiryMonthlyCount extends Command @@ -140,18 +140,18 @@ class InquiryMonthlyCount extends Command
140 //受访界面前15 140 //受访界面前15
141 $arr['referrer_url'] = DB::table('gl_customer_visit_item') 141 $arr['referrer_url'] = DB::table('gl_customer_visit_item')
142 ->select('url',DB::raw('COUNT(*) as num')) 142 ->select('url',DB::raw('COUNT(*) as num'))
143 - ->orderBy('num','desc') 143 + ->orderBy('num','desc')->where(['domain'=>$domain])
144 ->where('updated_date','>=',$startTime->toDateString()) 144 ->where('updated_date','>=',$startTime->toDateString())
145 ->where('updated_date','<=',$endTime->toDateString()) 145 ->where('updated_date','<=',$endTime->toDateString())
146 - ->groupBy('url')->where(['domain'=>'http://lxl.petuu.shop/']) 146 + ->groupBy('url')
147 ->limit(15)->get()->toArray(); 147 ->limit(15)->get()->toArray();
148 //访问断后 148 //访问断后
149 - $arr['referrer_url'] = DB::table('gl_customer_visit_item') 149 + $arr['referrer_port'] = DB::table('gl_customer_visit_item')
150 ->select('device_port',DB::raw('COUNT(*) as num')) 150 ->select('device_port',DB::raw('COUNT(*) as num'))
151 - ->orderBy('num','desc') 151 + ->orderBy('num','desc')->where(['domain'=>$domain])
152 ->where('updated_date','>=',$startTime->toDateString()) 152 ->where('updated_date','>=',$startTime->toDateString())
153 ->where('updated_date','<=',$endTime->toDateString()) 153 ->where('updated_date','<=',$endTime->toDateString())
154 - ->groupBy('url')->where(['domain'=>'http://lxl.petuu.shop/']) 154 + ->groupBy('device_port')
155 ->limit(15)->get()->toArray(); 155 ->limit(15)->get()->toArray();
156 return $arr; 156 return $arr;
157 } 157 }