|
@@ -23,12 +23,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{userId}
|
|
|
</foreach>
|
|
|
</delete>
|
|
|
-
|
|
|
- <insert id="batchUserPost">
|
|
|
- insert into sys_user_post(user_id, post_id) values
|
|
|
- <foreach item="item" index="index" collection="list" separator=",">
|
|
|
- (#{item.userId},#{item.postId})
|
|
|
+
|
|
|
+ <insert id="batchUserPost" useGeneratedKeys="false">
|
|
|
+ insert all
|
|
|
+ <foreach item="item" index="index" collection="list">
|
|
|
+ into sys_user_post(user_id, post_id) values (#{item.userId},#{item.postId})
|
|
|
</foreach>
|
|
|
+ SELECT 1 FROM DUAL
|
|
|
</insert>
|
|
|
|
|
|
</mapper>
|