From 6dd22ad03cb1d9641100c900cd0f5c67e7027ed1 Mon Sep 17 00:00:00 2001 From: "WIN-C27C5MSVTPO\\16961" <1696136552@qq.com> Date: Mon, 28 Jul 2025 09:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E6=8F=90=E9=86=92=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E7=8A=B6=E6=80=81=E6=A0=87=E8=AE=B0=EF=BC=8C=E8=B7=9F?= =?UTF-8?q?=E8=BF=9B=E6=95=B0=E7=BB=9F=E8=AE=A1=E8=AE=A1=E7=AE=97=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/crm/controller/CustomerController.php | 4 ++-- app/process/Task.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/crm/controller/CustomerController.php b/app/crm/controller/CustomerController.php index 998c721..42003c0 100644 --- a/app/crm/controller/CustomerController.php +++ b/app/crm/controller/CustomerController.php @@ -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, //客户数 diff --git a/app/process/Task.php b/app/process/Task.php index 540eb8f..910b5ad 100644 --- a/app/process/Task.php +++ b/app/process/Task.php @@ -30,6 +30,8 @@ class Task 'receive type'=>'person' ]; \Webman\RedisQueue\Redis::send("feishu-message",$res); + $item->warn = 1; + $item->save(); } Log::info('send follow start',[time()]);