|
...
|
...
|
@@ -73,7 +73,7 @@ class UpgradeProjectCount extends Command |
|
|
|
*/
|
|
|
|
public function country20Top($day){
|
|
|
|
$country = DB::connection('custom_mysql')->table('gl_customer_visit')
|
|
|
|
->whereDate('updated_date', $day)->where('inquiry_num',1)
|
|
|
|
->whereDate('updated_date', $day)->where('is_inquiry',1)
|
|
|
|
->select('country', DB::raw('COUNT(*) as count'))
|
|
|
|
->groupBy('country')
|
|
|
|
->orderByDesc('count')->limit(20)->get()->toArray();
|
|
...
|
...
|
@@ -88,7 +88,7 @@ class UpgradeProjectCount extends Command |
|
|
|
* @time :2024/1/8 9:24
|
|
|
|
*/
|
|
|
|
public function inquiry_num($day){
|
|
|
|
$count = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $day)->where('inquiry_num',1)->count();
|
|
|
|
$count = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $day)->where('is_inquiry',1)->count();
|
|
|
|
return $count;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|