From 0f441e7c682972f9c0460b902b7ca84ca1a76b3d Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Tue, 12 Oct 2021 11:03:03 +0800 Subject: [PATCH] edit-api-filter_limimt --- api/controllers/wxapp/licheb/Cusorder.php | 4 +++- api/controllers/wxapp/licheb/Customers.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index 7980c48a..425b2a0b 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -268,7 +268,9 @@ class Cusorder extends Wxapp{ ]; $group_id == 1 && $where['admin_id'] = $uid;//销售 - $group_id == 4 && $where['brand_id!='] = 3; //渠道经理过滤 + if($group_id == 4 && $biz_id!=1){ + $where['brand_id!='] = 3; //渠道经理过滤 + } if($keyword){ $where["(name='{$keyword}' or mobile='{$keyword}')"] = null; diff --git a/api/controllers/wxapp/licheb/Customers.php b/api/controllers/wxapp/licheb/Customers.php index d83b81ed..5431200a 100644 --- a/api/controllers/wxapp/licheb/Customers.php +++ b/api/controllers/wxapp/licheb/Customers.php @@ -372,7 +372,9 @@ class Customers extends Wxapp{ if($group_id==1 || $ismy){ $where["admin_id"] = $uid; } - $group_id == 4 && $where['brand_id!='] = 3; //渠道经理过滤 + if($group_id == 4 && $biz_id!=1){ + $where['brand_id!='] = 3; //渠道经理过滤 + } if($s_time && $e_time){ $where['c_time >='] = strtotime($s_time); $where['c_time <='] = strtotime(date('Y-m-d 23:59:59',strtotime($e_time)));