代码模板关键字

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 WHERE
t1.is_delete = 0 t1.is_delete = 0
<if test="keywords != null and keywords != ''"> <if test="keywords != null and keywords != ''">
<!-- 这里添加检索关键字 -->
AND ( AND (
t1.id LIKE CONCAT('%', #{keywords}, '%') t1.id LIKE CONCAT('%', ${r"#{keywords}"}, '%')
OR OR
t1.${underLineTableName}_id LIKE CONCAT('%', #{keywords}, '%') t1.${underLineTableName}_id LIKE CONCAT('%', ${r"#{keywords}"}, '%')
<!-- 这里添加其他条件 -->
) )
</if> </if>
<if test="startTime != null and startTime != ''"> <if test="startTime != null and startTime != ''">