A charging and discharging management apparatus, comprising a charging and discharging management chip, primary battery positive and negative electrode contacts (106,107), secondary battery positive and negative electrode contacts (108,109), and first, second, third and fourth electronic switches (102,103,104,105) connected to the primary battery positive and negative electrode contacts (106,107) and the secondary battery positive and negative electrode contacts (108,109), and further comprising: a detecting unit configured to detect in-place states of a primary battery and a secondary battery; and an electronic switch controlling unit connected to the detecting unit and configured to control the electronic switches (102,103,104,105) to be on/off according to the in-place states of the batteries, so that the charging and discharging management chip performs charging and discharging management for a battery in place; wherein the electronic switch controlling unit comprises a controller, a first control interface, a comparator, an AND gate, and a second control interface; the first control interface and the second control interface are connected to the controller; the first control interface is further connected to the first and second electronic switches (103,104), wherein one endpoint of the first electronic switch is connected to the primary battery negative electrode contact and the other endpoint of the first electronic switch is connected to the charging and discharging management chip, wherein one endpoint of the second electronic switch is connected to the secondary battery positive electrode contact and the other endpoint of the second electronic switch is connected to the charging and discharging management chip; an input end of the comparator is connected to the secondary battery positive electrode contact, another input end inputs a fixed voltage, and an output end is connected to an input end of the AND gate; another input end of the AND gate is connected to the second control interface, and an output end of the AND gate is connected to the third and fourth electronic switches (102,105), wherein one endpoint of the third electronic switch is connected to the primary battery positive electrode contact and the other endpoint of the third electronic swith is connected to the charging and discharging management chip, one endpoint of the fourth electronic switch is connected to the secondary battery negative electrode contact and the other endpoint of the fourth electronic switch is connected to the charging and discharging management chip; and the controller controls electrical connections between the charging and discharging management chip and the primary battery/the secondary battery through the electronic switches (102,103,104,105) to be on/off by using the first control interface and the second control interface to enable the charging and discharging management chip to perform charging and discharging management for a battery in place. a detecting unit configured to detect in-place states of a primary battery and a secondary battery; and an electronic switch controlling unit connected to the detecting unit and configured to control the electronic switches (102,103,104,105) to be on/off according to the in-place states of the batteries, so that the charging and discharging management chip performs charging and discharging management for a battery in place;