朱杰
2021-05-31 8ba346faa6318bc78b5427a7feede5474c9e03d7
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>