mapper.java:
int batchDeleteByLogIds(@Param("logIds") List<Integer> logIds);
mapper.xml
<delete id="batchDeleteByLogIds" parameterType="java.util.List"> DELETE FROM tb_plc_import_relation WHERE log_id IN <foreach collection="logIds" index="index" item="item" open="(" separator="," close=")"> #{item} </foreach> </delete>