Applications of the Dotsenko-Fateev integral in random-matrix models