A phosphorus-containing compound represented by formula and a preparation method thereof are provided. Using the method provided by the present invention to prepare azoxystrobin can significantly improve the yield of azoxystrobin, and can obtain azoxystrobin products having high purity. The moulding materials of polymers containing triazine segments can be processed by means of conventional fusion methods and can be used as hot-melt adhesives and for producing plates, tubes, profiles, injection moulded parts, fibres, coatings and foamed material. A motor lock prevents the downhole motor from turning as fluid pressure is applied to properly anchor the whipstock below the production tubing.