SELECT a.user_role_id, a.user_id, a.role_id FROM user_role a and a.user_id = #{userId} and a.role_id = #{roleId}