There is not much to do in Shanghai unless you are a foodie as they have great food. Better go to Beijing for sightseeing.
There are a lot of places to go for day trip if you need to go to Shanghai. You can check on viator.com
https://www.viator.com/Shanghai/d325-ttd