The invention relates to a double-effect organic macromolecular compound and a preparation method thereof. The preparation method includes: adding
Mannich base, deionized water, an initiator and a chelating agent into a reaction container, and introducing N2 to expel
oxygen, then adding p-
acrylamide sodium benzoate, carrying out condensation
reflux reaction at 50DEG C-80 DEG C for 4h-8h, and conducting reduced pressure
distillation to remove
solvent water, thus obtaining light red
polymer powder, i.e. the double-effect organic macromolecular compound. According to the invention, two monomers are prepared through
Mannich reaction and
acyl chloride aminolysis reaction, and then a double-effect organic
macromolecule is prepared by means of
aqueous solution free
radical polymerization, wherein N and O heteroatoms contained in the molecular structure of the
monomer Mannich base can combine with Fe atoms on the
metal surface to cover an equipment surface in the form of an adsorption film, thus reaching a
corrosion inhibiting effect. At the same time, the
Mannich base molecular structure contains polar groups capable of adsorbing suspended matters and the like in
wastewater, thus having certain
flocculation effect. The method provided by the invention has the advantages of simple and mild synthesis condition, small dosage, and good
corrosion inhibition and oil removing effects, etc.