With the large-scale investment of distributed new energy units, the district energy supply system has developed rapidly. Based on this, this paper establishes a building energy supply system based on complementary electric and thermal energy, so as to maximize the economy of building energy supply. First, the idea of establishing a building system model considering the electric-heat energy complementary system is expounded, and the operation mode and control strategy of the wind-solar complementary system are proposed, including the daytime operation strategy and the nighttime operation strategy. On this basis, a building system energy supply optimization scheduling model considering solar collectors, wind turbines, electric boilers and heat storage tanks is established. Simulation analysis shows that the dispatching model has better economy than the traditional energy supply system.