diff --git a/api/controllers/wxapp/licheb/CusorderV2.php b/api/controllers/wxapp/licheb/CusorderV2.php index f6e9cc30..8d8e9e13 100644 --- a/api/controllers/wxapp/licheb/CusorderV2.php +++ b/api/controllers/wxapp/licheb/CusorderV2.php @@ -662,7 +662,7 @@ class CusorderV2 extends Wxapp if ($group_id == 1) { $where['admin_id'] = $uid;//销售 } else if ($group_id == 2 || $group_id == 3) {//店长/老板 - $where["biz_id = {$this->biz_id} or admin_id = {$uid}"] = null; + $where["(biz_id = {$this->biz_id} OR admin_id = {$uid})"] = null; } else if ($group_id == 4) { $where['biz_id'] = $this->biz_id; $this->biz_id != 1 && $where['brand_id!='] = 3; //渠道经理过滤 @@ -960,7 +960,7 @@ class CusorderV2 extends Wxapp if ($group_id == 1) { $where['admin_id'] = $uid;//销售 } else if ($group_id == 2 || $group_id == 3) {//店长/老板 - $where["biz_id = {$this->biz_id} or admin_id = {$uid}"] = null; + $where["(biz_id = {$this->biz_id} OR admin_id = {$uid})"] = null; } else if ($group_id == 4) { $where['biz_id'] = $this->biz_id; $this->biz_id != 1 && $where['brand_id!='] = 3; //渠道经理过滤