Andy Murray staged an encouraging recovery from his miserable Chinese stint with a comfortable win over Yannick Hanfmann at the Swiss Indoors in Basel.