According to an existing method,
acetic anhydride is adopted for a reaction when a formula III is synthesized from a formula IV, the
reaction temperature is high, the reaction time is long, a large number of isomer byproducts can be generated in the reaction process, and the product purity is low. When the compound shown in the formula I is synthesized from free alkali of a compound shown in a formula II, halogenated
alkane is used as a
solvent and
thionyl chloride is used as a chlorination
reagent for reaction, alkali
quenching,
water washing extraction and
salt formation after concentrationare needed for aftertreatment, the operation is complex, and the production period is long. According to the invention, p-toluenesulfonic acid is added for
catalysis when the compound shown as the formula III is prepared, so that the reaction can be carried out at a relatively low temperature, the
side reaction is greatly reduced, and the purity of the product is improved. When the compound shownin the formula I is prepared,
ethyl acetate is used as a
solvent, a product is gradually separated out along with the reaction, the product can be obtained through direct
filtration after the reactionis completed, aftertreatment is simple, the product purity is high, and the method is suitable for industrial production.