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}"}, '%') + )