delete from sys_user_role where user_id = #{userId} delete from sys_user_role where role_id in #{roleId}