<if test="myList != null and myList.size() >0">
<foreach collection="myList" index="index" item="item" open="and (" separator=" or " close=")">
name like concat("%",#{item,jdbcType=VARCHAR},";%")
</foreach>
</if>
<if test="myList != null and myList.size() >0">
<foreach collection="myList" index="index" item="item" open="and (" separator=" or " close=")">
name like concat("%",#{item,jdbcType=VARCHAR},";%")
</foreach>
</if>