<foreachcollection="tagIdList"item="item"index="index"open="("separator=" or "close=")">
find_in_set(item,res.tag_ids)
</foreach>
</if>
<iftest="hisHandlerUserid !=null "> and exists (select 1 from xm_question_handle h where h.question_id = res.id and h.handler_userid=#{hisHandlerUserid} and handle_status=#{hisHandleStatus})</if>
<iftest=" createTimeStart !=null "> and res.create_time between #{createTimeStart} and #{createTimeEnd} </if>
<iftest=" ltimeStart !=null "> and res.ltime between #{ltimeStart} and #{ltimeEnd} </if>