<delete id="deleteByParam"> DELETE FROM YZ_SECURITIES_CURRENCY WHERE ID IN <foreach collection="array" item="id" open="(" separator="," close=")"> #{id} </foreach> </delete>
其中item属性代指数组中的每一个对象