mybatis处理集合和数组
1. 如果传入的参数类型是一个List的时候,collection属性值为list2. 如果传入的参数类型是一个array数组的时候,collection的属性值为array
<delete id="deleteMul" parameterType="java.util.List">
delete from time_rule where id in (
<foreach collection="array" item="item" index="index"open="" close="" separator=","> <!-- property="id" -->
#{item}
</foreach>
);
</delete>
页:
[1]