With the rapid development of economy and urbanization in China, cities are expanding rapidly and more constructions are being built, then lead to the fast-growing part in urban residential energy consumption. In China’s hot summer and cold winter regions, many buildings are not centrally heated and commonly rely on electrical equipment such as air conditioners which are all energy-inefficient thermoregulation devices. In order to analyze the relationship between building energy consumption and the energy efficiency ratio (EER) of air conditioning and the area of photovoltaic (PV) on the roof, the influence of the building envelope on building energy consumption in hot summer and cold winter regions in China is clarified. This paper uses energy plus software to analyze the impact of different EER and PV area on building energy consumption using a typical case study of a public health upgrading project in the eastern part of the Wuxing district, Huzhou, Zhejiang province in China. The simulation results show that the factor that has a greater impact on the energy consumption of the health center in summer is the PV area parameter of the building compared to the performance parameters of the air conditioning equipment. The PV area parameter settings and air conditioning equipment performance adjustments are dependent on the actual situation and the comprehensive energy saving rate of the outpatient building for public health in the eastern part of Tai Wu Xing District can exceed 50%. Finally, an economic analysis of the carbon tax and input costs is carried out, and the best combination is of which 60% of the area covered by Longi Green PV panels and an air conditioning efficiency ratio of 4.87. The research result combines renewable energy and efficient equipment to achieve dual optimization of environmental and economic aspects of building energy consumption, while providing reference opinions on the comprehensive evaluation method of building energy consumption from the perspective of carbon tax.