|
@@ -17,11 +17,9 @@
|
|
|
<if test="promptId != null">
|
|
|
and xdp.id > #{promptId}
|
|
|
</if>
|
|
|
- <if test="keyword != null">
|
|
|
- and xdp.prompt_name like concat('%',#{keyword},'%')
|
|
|
- </if>
|
|
|
- <if test="keyword != null">
|
|
|
- OR xdp.prompt_name_en like concat('%',#{keyword},'%')
|
|
|
+ <if test="keyword != null and keyword != ''">
|
|
|
+ and (xdp.prompt_name like concat('%',#{keyword},'%')
|
|
|
+ OR xdp.prompt_name_en like concat('%',#{keyword},'%'))
|
|
|
</if>
|
|
|
LIMIT #{length}
|
|
|
</select>
|