疯狂的狮子Li
2022-03-05 98418272abb98cf5711c689568e63b1389383d97
ruoyi-system/src/main/resources/mapper/system/SysRoleMapper.xml
@@ -39,12 +39,22 @@
                 left join sys_dept d on u.dept_id = d.dept_id
    </sql>
    <select id="selectPageRoleList" resultMap="SysRoleResult">
        <include refid="selectRoleVo"/>
        ${ew.getCustomSqlSegment}
    </select>
    <select id="selectRoleList" resultMap="SysRoleResult">
        <include refid="selectRoleVo"/>
        ${ew.getCustomSqlSegment}
    </select>
    <select id="selectRolePermissionByUserId" parameterType="Long" resultMap="SysRoleResult">
        <include refid="selectRoleVo"/>
        WHERE r.del_flag = '0' and ur.user_id = #{userId}
    </select>
    <select id="selectRoleListByUserId" parameterType="Long" resultType="Integer">
    <select id="selectRoleListByUserId" parameterType="Long" resultType="Long">
        select r.role_id
        from sys_role r
                 left join sys_user_role ur on ur.role_id = r.role_id
@@ -57,4 +67,4 @@
        WHERE r.del_flag = '0' and u.user_name = #{userName}
    </select>
</mapper>
</mapper>