How to effectively treat wastewater from sand and gravel plants?

A large amount of waste residue can be generated in the process of sand and stone production, and a lot of wastewater which casued serious pollution to the river water body can be produced. So what should be done to resolve this problem?