From dfd3466b46b4928c3ad3316cac10fd8303785e62 Mon Sep 17 00:00:00 2001
From: wenc000 <450292408@qq.com>
Date: Sun, 26 Apr 2020 15:27:37 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A8=A1=E6=9D=BF=E5=85=B3?=
=?UTF-8?q?=E9=94=AE=E5=AD=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../templates/codetemplate/default/mapper/mapper.ftl | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/mapper/mapper.ftl b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/mapper/mapper.ftl
index f85e6cf..29203b5 100644
--- a/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/mapper/mapper.ftl
+++ b/cloud-common-plugin-dynamic/src/main/resources/templates/codetemplate/default/mapper/mapper.ftl
@@ -171,11 +171,11 @@
WHERE
t1.is_delete = 0
-
AND (
- t1.id LIKE CONCAT('%', #{keywords}, '%')
+ t1.id LIKE CONCAT('%', ${r"#{keywords}"}, '%')
OR
- t1.${underLineTableName}_id LIKE CONCAT('%', #{keywords}, '%')
+ t1.${underLineTableName}_id LIKE CONCAT('%', ${r"#{keywords}"}, '%')
+
)