What is claimed is:1. An energy conversion apparatus comprising: a three-phase bridge arm converter, a motor winding, a two-phase two-bridge-arm converter, and a transformer, whereina direct current port of the three-phase bridge arm converter is connected to a battery;an alternating current port of the three-phase bridge arm converter is connected to the motor winding;a direct current port of the two-phase two-bridge-arm converter is connected to the battery;an alternating current port of the two-phase two-bridge-arm converter is connected to a secondary-side winding of the transformer; anda primary-side winding of the transformer is connected to an alternating current charging port.2. An energy conversion apparatus comprising: a three-phase bridge arm converter, a motor winding, and a transformer, whereina direct current port of the three-phase bridge arm converter is connected to a battery;an alternating current port of the three-phase bridge arm converter is connected to the motor winding;two bridge arms of the three-phase bridge arm converter are connected to a secondary-side winding of the transformer through a first switch group, and the first switch group is configured to control connection and disconnection between the transformer and the two bridge arms of the three-phase bridge arm converter;a second switch group is further disposed between the motor winding and the two bridge arms of the three-phase bridge arm converter, and the second switch group is configured to control connection and disconnection between the motor winding and the two bridge arms of the three-phase bridge arm converter; anda primary-side winding of the transformer is connected to an alternating current charging port.3. The energy conversion apparatus according to claim 2, wherein the first switch group and the second switch group comprise a flip-flop K1 and a flip-flop K2;one end of the flip-flop K1 is connected to an alternating current port of a first bridge arm of a two-phase two-bridge-arm converter, and the other end of the flip-flop K1 comprises two contacts respectively connected to the motor winding and a secondary-side winding of the transformer; andone end of the flip-flop K2 is connected to an alternating current port of a second bridge arm of the two-phase two-bridge-arm converter, and the other end of the flip-flop K2 comprises two contacts respectively connected to the motor winding and the secondary-side winding of the transformer.4. The energy conversion apparatus according to claim 1, wherein a fourth switch is disposed between the primary-side winding of the transformer and the alternating current charging port, and is configured to control connection and disconnection between the primary-side winding of the transformer and the alternating current charging port.5. The energy conversion apparatus according to claim 1, wherein an alternating current filter is disposed between the primary-side winding of the transformer and the alternating current charging port.6. The energy conversion apparatus according to claim 1, wherein the transformer is a power frequency transformer.7. A motor comprising: a housing, and an energy conversion apparatus which is accommodated in the housing, wherein the energy conversion apparatus comprises a three-phase bridge arm converter, a motor winding, a two-phase two-bridge-arm converter, and a transformer, whereina direct current port of the three-phase bridge arm converter is connected to a battery;an alternating current port of the three-phase bridge arm converter is connected to the motor winding;a direct current port of the two-phase two-bridge-arm converter is connected to the battery;an alternating current port of the two-phase two-bridge-arm converter is connected to a secondary-side winding of the transformer; anda primary-side winding of the transformer is connected to an alternating current charging port.8. The motor according to claim 7, wherein a fourth switch is disposed between the primary-side winding of the transformer and the alternating current charging port, and is configured to control connection and disconnection between the primary-side winding of the transformer and the alternating current charging port.9. The motor according to claim 7, wherein an alternating current filter is disposed between the primary-side winding of the transformer and the alternating current charging port.10. The motor according to claim 7, wherein the transformer is a power frequency transformer.