Amide-containing bio-based benzoxazine epoxy resin copolymer and preparation method thereof