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}