@@ -111,6 +111,9 @@
<if test="topicId != null">
AND topic_id_ = #{topicId}
</if>
+ <if test="topicId == null">
+ AND topic_id_ IS NULL
+ </if>
LIMIT 1
</select>