跟进提醒推送状态标记,跟进数统计计算调整

This commit is contained in:
2025-07-28 09:36:16 +08:00
parent 714f8dc41e
commit 6dd22ad03c
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -390,12 +390,12 @@ class CustomerController extends BaseController
//拜访数
$whereVisit = $where;
$whereVisit[] = ['type', '=', 0];
$visit = Follow::where($whereVisit)->distinct('customer_id')->count();
$visit = Follow::where($whereVisit)->count();
//跟进数
$whereVisit = $where;
$whereVisit[] = ['type', '=', 1];
$follow = Follow::where($whereVisit)->distinct('customer_id')->count();
$follow = Follow::where($whereVisit)->count();
$res = [
'customer' => $customer, //客户数