A method for electric energy transmission, comprising: determining a resource value of a unit of electric energy of a grid at a target time, the resource value representing a price of the electric energy per unit; and under a condition that the resource value is greater than or equal to a first resource threshold, that is under a condition that the grid is in a high-load state, determining a number of available batteries in a battery swapping station and an ordered number of batteries in the battery swapping station within a target time period, wherein the available battery is a battery in the battery swapping station satisfying conditions for being swapped to a vehicle, the ordered number is the number of batteries in the battery swapping station ordered by vehicles to be swapped to the vehicles, the target time period is a time period between the target time and a time when the resource value falls below the first resource threshold, and wherein determining the number of available batteries in the battery swapping station comprises: under a condition that one battery is installed on the vehicle, determining whether a state parameter of the available batteries is within a preset value range, wherein if the state parameter of the available batteries is within the preset value range, the available batteries satisfy the conditions for being swapped to a vehicle; and under a condition that L batteries are installed on the vehicle, obtaining N groups of available batteries and determining whether L available batteries in each of the N groups of available batteries satisfy a preset group of conditions, wherein L is an integer greater than or equal to 2, and N is an integer; and under a condition that the number of available batteries is greater than a number of reserved batteries, controlling a charging and discharging module to transmit electric energy of a first battery in the battery swapping station to the grid, wherein the reserved batteries are batteries selected from the available batteries and reserved for battery swapping service for vehicles in the target time period, the number of reserved batteries is greater than or equal to the ordered number, in order to ensure the battery swapping capability of the battery swapping station in the target time period, and the first battery comprises one or more of the batteries other than the reserved batteries in the battery swapping station. determining a resource value of a unit of electric energy of a grid at a target time, the resource value representing a price of the electric energy per unit; and under a condition that the resource value is greater than or equal to a first resource threshold, that is under a condition that the grid is in a high-load state, determining a number of available batteries in a battery swapping station and an ordered number of batteries in the battery swapping station within a target time period, wherein the available battery is a battery in the battery swapping station satisfying conditions for being swapped to a vehicle, the ordered number is the number of batteries in the battery swapping station ordered by vehicles to be swapped to the vehicles, the target time period is a time period between the target time and a time when the resource value falls below the first resource threshold, and wherein determining the number of available batteries in the battery swapping station comprises: under a condition that one battery is installed on the vehicle, determining whether a state parameter of the available batteries is within a preset value range, wherein if the state parameter of the available batteries is within the preset value range, the available batteries satisfy the conditions for being swapped to a vehicle; and under a condition that L batteries are installed on the vehicle, obtaining N groups of available batteries and determining whether L available batteries in each of the N groups of available batteries satisfy a preset group of conditions, wherein L is an integer greater than or equal to 2, and N is an integer; and under a condition that one battery is installed on the vehicle, determining whether a state parameter of the available batteries is within a preset value range, wherein if the state parameter of the available batteries is within the preset value range, the available batteries satisfy the conditions for being swapped to a vehicle; and under a condition that L batteries are installed on the vehicle, obtaining N groups of available batteries and determining whether L available batteries in each of the N groups of available batteries satisfy a preset group of conditions, wherein L is an integer greater than or equal to 2, and N is an integer; and under a condition that the number of available batteries is greater than a number of reserved batteries, controlling a charging and discharging module to transmit electric energy of a first battery in the battery swapping station to the grid, wherein the reserved batteries are batteries selected from the available batteries and reserved for battery swapping service for vehicles in the target time period, the number of reserved batteries is greater than or equal to the ordered number, in order to ensure the battery swapping capability of the battery swapping station in the target time period, and the first battery comprises one or more of the batteries other than the reserved batteries in the battery swapping station.