mybatis处理集合和数组
1. 如果传入的参数类型是一个List的时候,collection属性值为list
2. 如果传入的参数类型是一个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>
相关推荐
xiuyangsong 2020-11-16
Nishinoshou 2020-11-09
jimgreatly 2020-09-01
dongxurr 2020-08-18
Dullonjiang 2020-08-15
Dullonjiang 2020-08-11
Dullonjiang 2020-08-09
dongxurr 2020-08-08
yunzhonmghe 2020-08-07
jimgreatly 2020-08-03
Dullonjiang 2020-07-30
jimgreatly 2020-07-27
liqiancao 2020-07-26
xiuyangsong 2020-07-26
dongxurr 2020-07-26
mcvsyy 2020-07-26
helloxusir 2020-07-25
牧场SZShepherd 2020-07-20