From bb039fcf5e04f177b7a75f70a5ada30ea991ca5a Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Fri, 18 Apr 2025 12:06:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=AF=B9?= =?UTF-8?q?`class=5Fall`=E5=8F=82=E6=95=B0=E7=9A=84=E5=A4=84=E7=90=86?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WarehouseProductStoregeLists.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/admin/lists/warehouse_product_storege/WarehouseProductStoregeLists.php b/app/admin/lists/warehouse_product_storege/WarehouseProductStoregeLists.php index 4b1d56d1f..e7f2c6932 100644 --- a/app/admin/lists/warehouse_product_storege/WarehouseProductStoregeLists.php +++ b/app/admin/lists/warehouse_product_storege/WarehouseProductStoregeLists.php @@ -66,7 +66,11 @@ class WarehouseProductStoregeLists extends BaseAdminDataLists implements ListsSe { if ($this->request->get('store_name')) { $this->store_name = $this->request->get('store_name'); - $ids = StoreProduct::where('store_name', 'like', '%' . $this->request->get('store_name') . '%')->column('id'); + $where[] = ['store_name', 'like', '%' . $this->request->get('store_name') . '%']; + if($this->request->get('class_all')){ + $where[] = ['top_cate_id', 'in', $this->request->get('class_all')]; + } + $ids = StoreProduct::where($where)->column('id'); if ($ids) { $this->searchWhere[] = ['product_id', 'in', $ids]; $this->ids = $ids;