mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-03-13 09:40:52 +08:00
update 修改框架中批量接口,改为原生mybatis执行foreach,改善性能
This commit is contained in:
@@ -9,4 +9,11 @@
|
||||
<result property="menuId" column="menu_id"/>
|
||||
</resultMap>
|
||||
|
||||
</mapper>
|
||||
<insert id="batchRoleMenu">
|
||||
insert into sys_role_menu(role_id, menu_id) values
|
||||
<foreach item="item" index="index" collection="list" separator=",">
|
||||
(#{item.roleId},#{item.menuId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user