From 772efb8d96b7a63b10ce9a0690a7eed6ffcfda87 Mon Sep 17 00:00:00 2001 From: khj0414 Date: Thu, 27 Feb 2025 16:17:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/worddictyMapper.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/worddictyMapper.xml b/src/main/resources/mapper/worddictyMapper.xml index 8dcd672..4828422 100644 --- a/src/main/resources/mapper/worddictyMapper.xml +++ b/src/main/resources/mapper/worddictyMapper.xml @@ -4,8 +4,10 @@ - and (w.WRDDICTTL like CONCAT('%', #{searchKeyword}, '%') - or w.WRDDICCON like CONCAT('%', #{searchKeyword}, '%')) + and ( + REGEXP_REPLACE(w.WRDDICTTL, '\\[\\{.*?"insert":"', '') LIKE CONCAT('%', #{searchKeyword}, '%') + OR REGEXP_REPLACE(w.WRDDICCON, '\\[\\{.*?"insert":"', '') LIKE CONCAT('%', #{searchKeyword}, '%') + )