<if test="typeIds != null and typeIds.length>0" >
and tttn.type_id in
<foreach collection="typeIds" item="typeId" open="(" separator="," close=")" index="index">
#{typeId}
</foreach>
</if>
<if test="typeIds != null and typeIds.length>0" >
and tttn.type_id in
<foreach collection="typeIds" item="typeId" open="(" separator="," close=")" index="index">
#{typeId}
</foreach>
</if>