In this paper, we study the finite temperature-dependent Schr{o}dinger equation by using the Nikiforov-Uvarov method. We consider the sum of the Cornell, inverse quadratic, and harmonic-type potential as the potential part of the radial Schr{o}dinger equation. Analytical expressions for the energy eigenvalues and the radial wave function are presented. Application of the results for the heavy quarkonia and $B_c$ meson masses are good agreement with the current experimental data except for zero angular momentum quantum numbers. Numerical results for the temperature dependence indicates a different behaviour for different quantum numbers. Temperature-dependent results are in agreement with some QCD sum rule results from the ground states.