@@ -37,14 +37,9 @@
<if test="search != null">
and title_ like '%' #{search} '%'
</if>
- <choose>
- <when test="memo != null and memo != ''">
- and memo_ = #{memo}
- </when>
- <otherwise>
- and memo_ is null
- </otherwise>
- </choose>
+ <if test="memo != null">
+ and memo_ = #{memo}
+ </if>
</where>
</sql>