Photosynthesis is used by producers to produce food all the way through the trophic levels so without photosynthesis there would be no food. Sort of like how 100 units are transferred from the sun to the plant then the plant uses some in making its own food then the next animals receieve less energy.
sorryy this is a bit disjointed but hopefully it helps