正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -73,7 +73,7 @@ class UpgradeProjectCount extends Command | @@ -73,7 +73,7 @@ class UpgradeProjectCount extends Command | ||
| 73 | */ | 73 | */ |
| 74 | public function country20Top($day){ | 74 | public function country20Top($day){ |
| 75 | $country = DB::connection('custom_mysql')->table('gl_customer_visit') | 75 | $country = DB::connection('custom_mysql')->table('gl_customer_visit') |
| 76 | - ->whereDate('updated_date', $day)->where('inquiry_num',1) | 76 | + ->whereDate('updated_date', $day)->where('is_inquiry',1) |
| 77 | ->select('country', DB::raw('COUNT(*) as count')) | 77 | ->select('country', DB::raw('COUNT(*) as count')) |
| 78 | ->groupBy('country') | 78 | ->groupBy('country') |
| 79 | ->orderByDesc('count')->limit(20)->get()->toArray(); | 79 | ->orderByDesc('count')->limit(20)->get()->toArray(); |
| @@ -88,7 +88,7 @@ class UpgradeProjectCount extends Command | @@ -88,7 +88,7 @@ class UpgradeProjectCount extends Command | ||
| 88 | * @time :2024/1/8 9:24 | 88 | * @time :2024/1/8 9:24 |
| 89 | */ | 89 | */ |
| 90 | public function inquiry_num($day){ | 90 | public function inquiry_num($day){ |
| 91 | - $count = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $day)->where('inquiry_num',1)->count(); | 91 | + $count = DB::connection('custom_mysql')->table('gl_customer_visit')->whereDate('updated_date', $day)->where('is_inquiry',1)->count(); |
| 92 | return $count; | 92 | return $count; |
| 93 | } | 93 | } |
| 94 | 94 |
-
请 注册 或 登录 后发表评论