From 0827934f66eb91d1d7dde46d8f5e5143538a28cf Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 15 Oct 2021 00:02:49 +0800 Subject: [PATCH] admin_customer_1014_2 --- admin/controllers/receiver/Customer.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/controllers/receiver/Customer.php b/admin/controllers/receiver/Customer.php index a4462585..938c5846 100644 --- a/admin/controllers/receiver/Customer.php +++ b/admin/controllers/receiver/Customer.php @@ -70,6 +70,7 @@ class Customer extends HD_Controller $where['admin_id'] = $params['admin_id']; } else { $where_lcb = array(); + $str_ids = ''; if ($params['biz_id_admin']) {//指定店铺所有销售员 $where_lcb['biz_id'] = $params['biz_id_admin']; } else { @@ -100,7 +101,11 @@ class Customer extends HD_Controller $str_ids = $str_ids . ',0'; $where["admin_id in({$str_ids})"] = null; } else { - $where['admin_id'] = -1; + if ($str_ids) { + $where['admin_id'] = 0; + } else { + $where['admin_id'] = -1; + } } } !$params['city_id_admin'] && $params['city_id_admin'] = '';