<!-- 根据主键批量删除 --> <delete id="deleteByKeys"> DELETE FROM product WHERE id in <foreach collection="list" separator="," item="id" open="(" close=")"> #{id} </foreach> </delete>
<!-- 根据主键批量删除 --> <delete id="deleteByKeys"> DELETE FROM product WHERE id in <foreach collection="list" separator="," item="id" open="(" close=")"> #{id} </foreach> </delete>