疯狂的狮子li
2021-05-31 f3aaa7ea7a0f56ff4a6f9faf057a6595ab3275a7
ruoyi-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml
@@ -9,4 +9,11 @@
        <result property="deptId" column="dept_id"/>
    </resultMap>
</mapper>
    <insert id="batchRoleDept">
        insert into sys_role_dept(role_id, dept_id) values
        <foreach item="item" index="index" collection="list" separator=",">
            (#{item.roleId},#{item.deptId})
        </foreach>
    </insert>
</mapper>