|
...
|
...
|
@@ -108,8 +108,8 @@ class InquiryMonthlyCount extends Command |
|
|
|
//加上其他询盘
|
|
|
|
ProjectServer::useProject($project_id);
|
|
|
|
$arr['total'] += InquiryFormData::count();
|
|
|
|
$arr['month_total'] += InquiryFormData::whereBetween('submit_time',[$startTime, $endTime])->count();
|
|
|
|
$countryData = InquiryFormData::whereBetween('submit_time',[$startTime, $endTime])
|
|
|
|
$arr['month_total'] += InquiryFormData::whereBetween('submit_at',[$startTime, $endTime])->count();
|
|
|
|
$countryData = InquiryFormData::whereBetween('submit_at',[$startTime, $endTime])
|
|
|
|
->select("country",DB::raw('COUNT(*) as count'))
|
|
|
|
->groupBy('country')->get()->toArray();
|
|
|
|
foreach ($countryData as $v1){
|
...
|
...
|
|