代码模板关键字

This commit is contained in:
wenc000 2020-04-26 15:27:37 +08:00
parent 36ee5ef13d
commit dfd3466b46

View File

@ -171,11 +171,11 @@
WHERE
t1.is_delete = 0
<if test="keywords != null and keywords != ''">
<!-- 这里添加检索关键字 -->
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}"}, '%')
<!-- 这里添加其他条件 -->
)
</if>
<if test="startTime != null and startTime != ''">