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>
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/16971.html