关键字模糊搜索
This commit is contained in:
@@ -11,6 +11,13 @@
|
|||||||
<if test="param.id != null">
|
<if test="param.id != null">
|
||||||
AND a.id = #{param.id}
|
AND a.id = #{param.id}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="param.keywords != null">
|
||||||
|
AND (
|
||||||
|
a.factory LIKE CONCAT('%', #{param.keywords}, '%') or
|
||||||
|
a.code LIKE CONCAT('%', #{param.keywords}, '%') or
|
||||||
|
a.model LIKE CONCAT('%', #{param.keywords}, '%')
|
||||||
|
)
|
||||||
|
</if>
|
||||||
<if test="param.code != null">
|
<if test="param.code != null">
|
||||||
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
AND a.code LIKE CONCAT('%', #{param.code}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user