From 545f0bd4b0b2f84fb54c165bc551aa08ca9c073e Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期三, 25 八月 2021 20:24:35 +0800 Subject: [PATCH] saveAll支持有id则更新和无id则插入 --- ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml index 8d70825..0ff9265 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml @@ -9,11 +9,4 @@ <result property="postId" column="post_id"/> </resultMap> - <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}) - </foreach> - </insert> - </mapper> -- Gitblit v1.9.3