There were 20 new deaths, all in the financial hub of Shanghai, taking the toll to 5,112. Mainland China had 217,836 confirmed infections by May 2, authorities said.