mybatis多参数传递(其中包括数组)
来源:互联网 发布:routerpassview mac版 编辑:程序博客网 时间:2024/06/01 09:14
mapper接口的方法:
public void batchDelete(@Param(value = "activityId") Integer activityId, @Param(value = "userIds") Integer[] userIds);
mapper.xml的配置:
<insert id="batchDelete"> delete from T_ACT_USERS where ACTIVITY_ID = #{activityId} and USER_ID in <foreach collection="userIds" item="item" index="index" open="(" separator="," close=")"> #{item} </foreach></insert>
0 0
- mybatis多参数传递(其中包括数组)
- MyBatis-----MyBatis传递数组参数
- mybatis多参数传递
- MyBatis多参数传递
- 【Mybatis】多参数传递
- MyBatis多参数传递
- Mybatis多参数传递
- Mybatis传递多个参数
- Mybatis传递多个参数
- Mybatis传递多个参数
- mybatis多参数传递小结
- MYbatis 多参数传递方式
- mybatis传递多个参数
- mybatis传递多个参数
- Mybatis传递多个参数
- Mybatis传递多个参数
- MyBatis传递多个参数,
- Mybatis传递多个参数
- n^n%10
- 调试器如何工作(1)
- 请为集合指定初始容量
- miscrosoft.net framework 4.6无法安装解决方案
- Android异步更新UI的四种方式
- mybatis多参数传递(其中包括数组)
- VS 2008忽略警告的方法
- 理解OpenCV中的宏定义 CVAPI(函数返回类型)
- Mysql 不同版本 说明
- hdu 3003 Pupu
- MySQL 发展史
- C语言宏定义的简单总结
- closest pair of points(O(n*logn*logn)) solution
- sqlserver 性能查询CPU占用高的sql