From 7b56d4ad1eed851d1127bbb634191db6b0edd1b4 Mon Sep 17 00:00:00 2001 From: "lilong@dgg.net" <123456789> Date: Wed, 14 Apr 2021 10:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BE=A4=E5=91=BC=E9=98=9F?= =?UTF-8?q?=E5=88=97=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index ed7715f3..8446d585 100644 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -38,7 +38,7 @@ class IndexController extends Controller //总客户数 $customerCount = Customer::count(); //我的客户数 - $myCustomerCount = Customer::where('owner_user_id','=',auth()->user()->id)->count(); + $myCustomerCount = Customer::where('owner_user_id','=',auth()->user()->id)->where('status',3)->count(); return View::make("index.console",compact('departmentCount','userCount','customerCount','myCustomerCount')); }