<iftest="taskcardIds!=null and taskcardIds.size>0">
and taskcard_id in
<foreachcollection="taskcardIds"item="item"open="("close=")"separator=",">
#{item}
</foreach></if>
<if test="taskcardIds!=null and taskcardIds.size>0"> and taskcard_id in <foreach collection="taskcardIds" item="item" open="(" close=")" separator=","> #{item} </foreach></if>