In this paper, we study the finite temperature-dependent Schrödinger equation by using the Nikiforov-Uvarov method. We consider the sum of the Cornell, inverse quadratic, and harmonic-type potentials as the potential part of the radial Schrö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 in 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.