From 09ef3693a19b49166b7d89874e7d3ae47a5050c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E7=AB=B9=E7=BA=A2?= Date: Fri, 28 Nov 2025 16:58:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=97=A8=E5=BA=97=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/StoreMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/coolstore-partner-dao/src/main/resources/mapper/StoreMapper.xml b/coolstore-partner-dao/src/main/resources/mapper/StoreMapper.xml index df9ccf488..654e68817 100644 --- a/coolstore-partner-dao/src/main/resources/mapper/StoreMapper.xml +++ b/coolstore-partner-dao/src/main/resources/mapper/StoreMapper.xml @@ -121,7 +121,7 @@ FROM store_${enterpriseId} a WHERE a.is_delete = 'effective' and a.store_status != 'closed' - AND a.store_name LIKE CONCAT('%', #{storeName}, '%') + AND (a.store_name LIKE CONCAT('%', #{storeName}, '%') or a.store_num LIKE CONCAT('%', #{storeName}, '%')) AND a.store_num = #{storeNum} @@ -139,7 +139,7 @@ INNER JOIN store_master_signer_info_${enterpriseId} b ON a.store_id = b.store_id WHERE a.is_delete = 'effective' and a.store_status != 'closed' - AND a.store_name LIKE CONCAT('%', #{storeName}, '%') + AND (a.store_name LIKE CONCAT('%', #{storeName}, '%') or a.store_num LIKE CONCAT('%', #{storeName}, '%')) AND a.store_num = #{storeNum} @@ -154,7 +154,7 @@ INNER JOIN store_master_signer_info_${enterpriseId} b ON a.store_id = b.store_id WHERE a.is_delete = 'effective' and a.store_status != 'closed' - AND a.store_name LIKE CONCAT('%', #{storeName}, '%') + AND (a.store_name LIKE CONCAT('%', #{storeName}, '%') or a.store_num LIKE CONCAT('%', #{storeName}, '%')) AND a.store_num = #{storeNum}