疯狂的狮子Li
2021-05-31 38c3c878e1f9427ee8cfc1fd2bb1ed42e73d0138
ruoyi-system/src/main/resources/mapper/system/SysUserPostMapper.xml
@@ -9,4 +9,11 @@
        <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>