标签:
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>
标签:
原文地址:http://www.cnblogs.com/yzlpersonal/p/5600556.html