From c065fab6539704b2ce28f58ccab922d7d647b7cb Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 3 Dec 2021 15:26:43 +0800 Subject: [PATCH] admin_goods_1203_2 --- admin/controllers/items/goods/Goods.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/controllers/items/goods/Goods.php b/admin/controllers/items/goods/Goods.php index a123a6ff..e06b6735 100644 --- a/admin/controllers/items/goods/Goods.php +++ b/admin/controllers/items/goods/Goods.php @@ -103,10 +103,10 @@ class Goods extends HD_Controller if ($res_biz && $res_addr) { $str_ids = implode(',', array_column($res_biz, 'id')); $str_addr_ids = implode(',', array_column($res_addr, 'id')); - $where["biz_id in ({$str_ids}) or addr_id in ({$str_addr_ids})"] = null; - $where_1["biz_id in ({$str_ids}) or addr_id in ({$str_addr_ids})"] = null; - $where_2["m.biz_id in ({$str_ids}) or m.addr_id in ({$str_addr_ids})"] = null; - $where_3["m.biz_id in ({$str_ids}) or m.addr_id in ({$str_addr_ids})"] = null; + $where["(biz_id in ({$str_ids}) or addr_id in ({$str_addr_ids}))"] = null; + $where_1["(biz_id in ({$str_ids}) or addr_id in ({$str_addr_ids}))"] = null; + $where_2["(m.biz_id in ({$str_ids}) or m.addr_id in ({$str_addr_ids}))"] = null; + $where_3["(m.biz_id in ({$str_ids}) or m.addr_id in ({$str_addr_ids}))"] = null; } else if ($res_biz) { $str_ids = implode(',', array_column($res_biz, 'id')); $where["biz_id in ({$str_ids})"] = null;