From a694128c0c8b39ddab1505e29c0d747c420d692e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 15 May 2024 15:04:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A8=A1=E7=B3=8A=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/lists/goods/GoodsLabelLists.php | 2 +- app/admin/lists/goods/GoodsLists.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/admin/lists/goods/GoodsLabelLists.php b/app/admin/lists/goods/GoodsLabelLists.php index 6711603..9dd07b4 100644 --- a/app/admin/lists/goods/GoodsLabelLists.php +++ b/app/admin/lists/goods/GoodsLabelLists.php @@ -26,7 +26,7 @@ class GoodsLabelLists extends BaseAdminDataLists implements ListsSearchInterface public function setSearch(): array { return [ - '=' => ['name'], + "%like%"=>['name'] ]; } diff --git a/app/admin/lists/goods/GoodsLists.php b/app/admin/lists/goods/GoodsLists.php index cd36358..d820608 100644 --- a/app/admin/lists/goods/GoodsLists.php +++ b/app/admin/lists/goods/GoodsLists.php @@ -27,7 +27,8 @@ class GoodsLists extends BaseAdminDataLists implements ListsSearchInterface public function setSearch(): array { return [ - '=' => ['name', 'class', 'brand', 'unit', 'code', 'warehouse', 'sort'], + '=' => ['class', 'brand', 'unit', 'code', 'warehouse', 'sort'], + "%like%"=>['name'] ]; }