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;