Statistical Mechanics of Quantum Integrable Systems