Why are these hydroelectric plants not connected to the main grid that powers Shanghai and Beijing? If the turbines are otherwise literally turned off, surely the transmission losses become irrelevant?
It sounds like a distance and power storage issue.
According to Wikipedia the distance shouldn't be an issue with HVDC lines and there's no need to store power, you can take some of the coal plants near the cities offline.