Fan Jieming, 65, was sentenced to death by Shanghai No 2 Intermediate People's Court for murder, robbery, and forcible seizure, illegal purchase and possession of guns last July.
Fan had a dispute at a chemical factory in the city's Baoshan District on June 22, 2013, where he beat a colleague to death with an iron pipe, the court said.
He then took a hunting rifle from his dormitory and asked a driver to take him to another district. He killed the driver on the way and took the vehicle.
He was captured by police the same day and put on trial in January, 2014.