Florian Mayer has ended wildcard Zhang Ze's fairytale run at the China Open quarter-final stage with a straight-sets win.