@@ -48,6 +48,14 @@
<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 or memo_ = '')
+ </otherwise>
+ </choose>
</where>
</sql>