Battery replacement data acquisition method and device, electronic equipment and storage medium

By generating execution statements for the target database, the problem of inflexible acquisition of battery swapping data in existing technologies is solved, enabling flexible data acquisition after changes in battery swapping demand.

CN115455029BActive Publication Date: 2026-02-17北京胜能能源科技有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211116977.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2026-02-17
Estimated Expiration
2042-09-14

AI Technical Summary

Technical Problem

Existing technologies cannot flexibly acquire battery swapping data after changes in battery swapping demand.

Method used

By obtaining the original database execution statement and generating additional database execution statements based on data permission information, they are concatenated into the target database execution statement to obtain battery swapping data.

Benefits of technology

It enables flexible acquisition of battery swapping data when battery swapping demand changes, thus improving the flexibility of data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115455029B_ABST
    Figure CN115455029B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a battery swap data acquisition method and device, electronic equipment and a storage medium. The method comprises: acquiring an original database execution statement for querying battery swap data of a target battery swap station; determining data authority information of the battery swap data, and generating an additional database execution statement based on the data authority information; generating a target database execution statement based on the original database execution statement and the additional database execution statement, and executing the target database execution statement to acquire target battery swap data of the target battery swap station. The technical solution of the embodiments of the present application realizes more flexible acquisition of battery swap data after changing the acquisition of battery swap requirements.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer technology, and in particular, to a battery swap data acquisition method and device, electronic equipment and a storage medium. BACKGROUND

[0002] With the rise of the battery swap industry, battery swap stations have been deployed throughout the country, and a large amount of battery swap data will be generated in battery swap stations throughout the country. In the prior art, the method for acquiring battery swap data is usually to acquire battery swap data by executing a specific database execution statement. However, once the demand for acquiring battery swap data changes, the specific database execution statement needs to be re-written. Therefore, the prior art cannot flexibly acquire the required battery swap data. SUMMARY

[0003] The present application provides a battery swap data acquisition method, device, electronic equipment and storage medium to achieve more flexible acquisition of battery swap data after changing the demand for acquiring battery swap data.

[0004] According to an aspect of the present application, a battery swap data acquisition method is provided, which comprises:

[0005] acquiring an original database execution statement for querying battery swap data of a target battery swap station;

[0006] determining data authority information of the battery swap data, and generating an additional database execution statement based on the data authority information;

[0007] generating a target database execution statement based on the original database execution statement and the additional database execution statement, executing the target database execution statement to acquire target battery swap data of the target battery swap station.

[0008] Optionally, the original database execution statement for querying battery swap data of a target battery swap station comprises:

[0009] intercepting the original database execution statement for querying battery swap data of a target battery swap station through a preset interceptor.

[0010] Optionally, the determination of the data authority information of the battery swap data comprises:

[0011] acquiring pre-configured authority configuration information for the battery swap data, and determining the data authority information of the battery swap data based on the authority configuration information.

[0012] Optionally, before the acquisition of the pre-configured authority configuration information for the battery swap data, the method further comprises:

[0013] The permission configuration information input by a user based on a data permission configuration item in a data permission configuration interface is received.

[0014] Optionally, the receiving the permission configuration information input by a user based on a data permission configuration item in a data permission configuration interface comprises:

[0015] In response to a data permission configuration instruction, a data table corresponding to the data permission configuration instruction is determined, wherein the data table contains a table field;

[0016] The permission configuration information input by a user in a data permission configuration item in a data permission configuration interface for the table field is received.

[0017] Optionally, the generating a target database execution statement based on the original database execution statement and the additional database execution statement comprises:

[0018] The original database execution statement and the additional database execution statement are spliced to obtain a target database execution statement.

[0019] Optionally, the splicing the original database execution statement and the additional database execution statement comprises:

[0020] A first field in the original database execution statement is determined, and a second field in the additional database execution statement is determined;

[0021] The original database execution statement and the additional database execution statement are spliced according to the first field and the second field.

[0022] According to another aspect of the present application, a battery swap data acquisition device is provided. The device comprises:

[0023] An original statement acquisition module is configured to acquire an original database execution statement for querying battery swap data of a target battery swap station;

[0024] An additional statement acquisition module is configured to determine data permission information of the battery swap data, and generate an additional database execution statement based on the data permission information;

[0025] A battery swap data acquisition module is configured to generate a target database execution statement based on the original database execution statement and the additional database execution statement, and acquire target battery swap data of the target battery swap station by executing the target database execution statement.

[0026] According to another aspect of the present application, an electronic device is provided. The electronic device comprises:

[0027] at least one processor; and

[0028] a memory communicatively connected with the at least one processor; wherein

[0029] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the battery swap data acquisition method according to any one of the embodiments of the present application.

[0030] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to implement the battery swap data acquisition method according to any one of the embodiments of the present application when executed by the processor.

[0031] The technical scheme of the embodiments of the present application acquires an original database execution statement for querying target battery swap station battery swap data. Data authority information of the battery swap data is determined, and based on the data authority information, an additional database execution statement is generated, and the data authority information of the battery swap data can be flexibly configured. Based on the original database execution statement and the additional database execution statement, a target database execution statement is generated, and the target database execution statement is executed to acquire target battery swap data of the target battery swap station, thereby solving the problem that the prior art cannot flexibly acquire the required battery swap data after the battery swap demand changes, and realizing that the battery swap data can be more flexibly acquired after the battery swap demand changes.

[0032] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.

[0034] Figure 1 A flowchart of a battery swap data acquisition method provided for the first embodiment of the present application;

[0035] Figure 2 A flowchart of a battery swap data acquisition method provided for the second embodiment of the present application;

[0036] Figure 3 A data authority configuration interface screenshot suitable for the battery swap data acquisition method provided for the second embodiment of the present application;

[0037] Figure 4 A data authority configuration interface screenshot suitable for the battery swap data acquisition method provided in Embodiment Two of the present application is provided.

[0038] Figure 5 A data authority configuration interface screenshot suitable for the battery swap data acquisition method provided in Embodiment Two of the present application is provided.

[0039] Figure 6 A structural schematic diagram of a battery swap data acquisition device provided in Embodiment Three of the present application is provided.

[0040] Figure 7 A structural schematic diagram of an electronic device provided in Embodiment Four of the present application is provided. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application.

[0042] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] It can be understood that, before using the technical solutions disclosed in the embodiments of the present disclosure, the type, use range, use scenario, etc. of the personal information involved in the present disclosure should be informed to the user and the authorization of the user should be obtained in accordance with relevant laws and regulations.

[0044] For example, in response to receiving an active request of a user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using personal information of the user. Thus, the user can autonomously select whether to provide personal information to the software or hardware such as an electronic device, an application program, a server or a storage medium, etc. performing the operation of the technical solution of the present disclosure according to the prompt information.

[0045] As an optional but non-limiting implementation, in response to receiving an active request of a user, the prompt information can be sent to the user in the form of a pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to select “agree” or “disagree” to provide personal information to the electronic device.

[0046] It can be understood that the above notification and obtaining user authorization process is only illustrative and does not limit the implementation of the present disclosure, and other ways that meet the relevant laws and regulations can also be applied to the implementation of the present disclosure.

[0047] It can be understood that the data involved in the technical solution (including but not limited to the data itself, the obtaining or use of the data) should comply with the requirements of the relevant laws and regulations and the relevant provisions.

[0048] Embodiment one

[0049] Figure 1 A flowchart of a battery replacement data obtaining method provided for the first embodiment of the present disclosure is shown in the figure. The present embodiment can be applied to the case of obtaining battery replacement data. The method can be executed by a battery replacement data obtaining device, which can be realized in the form of hardware and / or software, and can be configured in an electronic device such as a computer or a server.

[0050] As shown in the figure, the method of the present embodiment includes: Figure 1

[0051] S110, obtaining an original database execution statement for querying battery replacement data of a target battery replacement station.

[0052] The target battery replacement station can be understood as a battery replacement station that needs to obtain battery replacement data. The target battery replacement station can be any battery replacement station in a battery replacement area. The battery replacement area can be understood as the area to which the battery replacement station belongs. The battery replacement data can be understood as battery replacement business data. The original database execution statement can be understood as a database execution statement initially defined in a battery replacement data obtaining platform or system.

[0053] ​Specifically, in response to the battery swap data acquisition instruction, a battery swap station identifier carried in the battery swap data acquisition instruction can be determined. Then, a battery swap station corresponding to the battery swap station identifier, i.e., a target battery swap station, is determined. After the target battery swap station is determined, an original database execution statement for querying battery swap data of the target battery swap station can be acquired. The battery swap data acquisition instruction can be a command for acquiring battery swap data based on user input. It should be noted that the battery swap station identifier can be used to distinguish between different battery swap stations. The battery swap identifier can include a battery swap region to which the battery swap station belongs, a battery swap station name, and a battery swap station geographic coordinate, etc.

[0054] Optionally, the original database execution statement for querying battery swap data of the target battery swap station is acquired by intercepting the original database execution statement for querying battery swap data of the target battery swap station through a preset interceptor.

[0055] The preset interceptor can be a pre-configured interceptor and can be used to intercept or intercept the original database execution statement for querying battery swap data of the target battery swap station.

[0056] Specifically, upon receiving the battery swap data acquisition instruction input by the user, or after receiving the battery swap data acquisition instruction input by the user, the original database execution statement for querying battery swap data of the target battery swap station can be determined. Before executing the original database execution statement, the original database execution statement is intercepted through the pre-configured interceptor.

[0057] S120, determine data permission information of the battery swap data, and generate an additional database execution statement based on the data permission information.

[0058] The data permission information can be understood as permission information for accessing the battery swap data. In the embodiment of the application, the data permission information can be permission information for accessing battery swap data in each battery swap station, wherein the battery swap region to which each battery swap station belongs can be any battery swap region. The additional database execution statement can be a database execution statement generated based on the data permission information and can be used to limit the access permission of the battery swap data.

[0059] Specifically, after receiving the battery swap data acquisition instruction, the battery swap data can be parsed to determine a user role for querying the battery swap data. Then, the data permission information of the battery swap data corresponding to the user role can be determined according to the user role. Thus, the additional database execution statement is generated according to the data permission information. It should be noted that in the embodiment of the application, the user role and the data permission information of the battery swap data corresponding to the user role can be pre-configured. Different user roles can be configured with corresponding data permission information for accessing the battery swap data.

[0060] S130, generate a target database execution statement based on the original database execution statement and the additional database execution statement, and execute the target database execution statement to obtain target battery swap data of the target battery swap station.

[0061] The target database execution statement can be a database execution statement generated based on the original database execution statement and the additional database execution statement. Alternatively, the target database execution statement is generated based on the original database execution statement and the additional database execution statement, including: splicing the original database execution statement and the additional database execution statement to obtain the target database execution statement. The target battery swap data can be battery swap data obtained by executing the target database execution statement.

[0062] Specifically, after obtaining the original database execution statement and the additional database execution statement, the original database execution statement and the additional database execution statement can be spliced. Then, the spliced database execution statement can be obtained. The spliced database execution statement is used as the target database execution statement, and the target database execution statement can be obtained. After obtaining the target database execution statement, the target database execution statement can be reloaded into a preset interceptor, and the target database execution statement is executed. Thus, the target battery swap data can be obtained.

[0063] On this basis, the original database execution statement and the additional database execution statement are spliced, including: determining a first field in the original database execution statement, and determining a second field in the additional database execution statement; and splicing the original database execution statement and the additional database execution statement according to the first field and the second field.

[0064] The first field can be understood as a field in the original database execution statement. In the embodiment of the application, the first field can be a table name of a data table, an alias of the data table, a battery swap area field, or a battery swap station field. The second field can be a field in the additional database execution statement. The second field can be a battery swap area field or a battery swap station field.

[0065] The technical scheme of the embodiment of the present application acquires an original database execution statement for querying battery swap data of a target battery swap station. Data authority information of the battery swap data is determined, and based on the data authority information, an additional database execution statement is generated, and the data authority information of the battery swap data can be flexibly configured. Based on the original database execution statement and the additional database execution statement, a target database execution statement is generated, and the target database execution statement is executed to acquire target battery swap data of the target battery swap station, thereby solving the problem that the prior art cannot flexibly acquire required battery swap data after battery swap demand changes, and realizing that battery swap data can be more flexibly acquired after battery swap demand changes.

[0066] Embodiment Two

[0067] Figure 2 A flowchart of a battery swap data acquisition method provided by the second embodiment of the present application is based on the foregoing embodiment, and optionally, the data authority information of the battery swap data is determined by acquiring preconfigured authority configuration information for the battery swap data and determining the data authority information of the battery swap data based on the authority configuration information. Wherein, the same or corresponding technical terms as the foregoing embodiment are not described herein.

[0068] As shown in the method of the present embodiment specifically includes: Figure 2

[0069] S210, an original database execution statement for querying battery swap data of a target battery swap station is acquired.

[0070] S220, preconfigured authority configuration information for the battery swap data is acquired, and data authority information of the battery swap data is determined based on the authority configuration information.

[0071] The authority configuration information can be preconfigured authority information for accessing battery swap data for different user roles. In the embodiment of the present application, the preconfigured authority configuration information can be stored in a preset data format. The preset data format can be a JavaScript Object Notation (JSON) format.

[0072] Optionally, before the preconfigured authority configuration information for the battery swap data is acquired, the method further includes receiving authority configuration information input by a user based on a data authority configuration item in a data authority configuration interface.

[0073] ​In the embodiment of the present application, for the configuration of the access right of the battery swap data, the data right can be configured for the table field of the data table in which the battery swap data is stored. Specifically, the table field for which the data right needs to be configured can be received based on the data right configuration interface (see Figure 3 ). Alternatively, the data right can be configured for different user roles (see Figure 4 ). As shown in Figure 5 , the user can input the right configuration information in the data right configuration item in the data right configuration interface.

[0074] Further, the receiving of the right configuration information input by the user in the data right configuration item in the data right configuration interface comprises: determining a data table corresponding to the data right configuration instruction in response to the data right configuration instruction, wherein the data table contains a table field; and receiving the right configuration information input by the user in the data right configuration item in the data right configuration interface for the table field.

[0075] S230, generating an additional database execution statement based on the data right information.

[0076] S240, generating a target database execution statement based on the original database execution statement and the additional database execution statement, and executing the target database execution statement to obtain target battery swap data of the target battery swap station.

[0077] The technical scheme of the embodiment of the present application realizes the technical effect of flexibly configuring the data right of accessing the battery swap data by obtaining the right configuration information pre-configured for the battery swap data and determining the data right information of the battery swap data based on the right configuration information, so that the user can.

[0078] Embodiment three

[0079] Figure 6 A structure diagram of a battery swap data acquisition device provided in the third embodiment of the present application. As shown in Figure 6 , the device comprises an original statement acquisition module 310, an additional statement acquisition module 320, and a battery swap data acquisition module 330.

[0080] The original statement acquisition module 310 is configured to acquire an original database execution statement for querying battery swap data of a target battery swap station; the additional statement acquisition module 320 is configured to determine data right information of the battery swap data and generate an additional database execution statement based on the data right information; and the battery swap data acquisition module 330 is configured to generate a target database execution statement based on the original database execution statement and the additional database execution statement, and obtain target battery swap data of the target battery swap station by executing the target database execution statement.

[0081] The technical scheme of the embodiment of the present application, through the original statement acquisition module, acquires an original database execution statement for querying battery swap data of a target battery swap station. Through the additional statement acquisition module, data authority information of the battery swap data is determined, and based on the data authority information, an additional database execution statement is generated, and the data authority information of the battery swap data can be flexibly configured. Through the battery swap data acquisition module, based on the original database execution statement and the additional database execution statement, a target database execution statement is generated, and the target database execution statement is executed to acquire target battery swap data of the target battery swap station, solving the problem that the prior art cannot flexibly acquire the required battery swap data after the battery swap demand changes, and realizing that the battery swap data can be more flexibly acquired after the battery swap demand changes.

[0082] Optionally, the original statement acquisition module 310 is specifically configured to intercept, through a preset interceptor, an original database execution statement for querying battery swap data of a target battery swap station.

[0083] Optionally, the additional statement acquisition module 320 is configured to acquire preconfigured authority configuration information for the battery swap data, and determine data authority information of the battery swap data based on the authority configuration information.

[0084] Optionally, before the preconfigured authority configuration information for the battery swap data is acquired, the apparatus further comprises an authority configuration information module configured to receive authority configuration information input by a user based on a data authority configuration item in a data authority configuration interface.

[0085] Optionally, the authority configuration information module is specifically configured to:

[0086] In response to a data authority configuration instruction, determine a data table corresponding to the data authority configuration instruction, wherein the data table comprises a table field;

[0087] Receive authority configuration information input by a user for the table field in a data authority configuration item in a data authority configuration interface.

[0088] Optionally, the battery swap data acquisition module 330 is configured to:

[0089] Splice the original database execution statement and the additional database execution statement to obtain a target database execution statement.

[0090] Optionally, the battery swap data acquisition module 330 is configured to:

[0091] Determine a first field in the original database execution statement, and determine a second field in the additional database execution statement;

[0092] According to the first field and the second field, the original database execution statement and the additional database execution statement are spliced.

[0093] The battery replacement data acquisition device provided by the embodiments of the present application can execute the battery replacement data acquisition method provided by any of the embodiments of the present application, and has the corresponding function modules and beneficial effects of the execution method.

[0094] It is worth noting that each unit and module included in the battery replacement data acquisition device is only divided according to the function logic, but is not limited to the above division, as long as the corresponding function can be realized; in addition, the specific name of each functional unit is only for the convenience of mutual differentiation, and is not used to limit the protection scope of the embodiments of the present application.

[0095] Embodiment four

[0096] Figure 7 A structural schematic diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the applications described and / or claimed in this document.

[0097] As shown in Figure 7 The electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected with the at least one processor 11, wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 11 can execute various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected with each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0098] A plurality of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0099] The processor 11 can be various general and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs various methods and processes described above, such as the battery swap data acquisition method.

[0100] In some embodiments, the battery swap data acquisition method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded onto the RAM 13 and executed by the processor 11, one or more steps of the battery swap data acquisition method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the battery swap data acquisition method by any other appropriate means, such as by means of firmware.

[0101] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0102] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, can cause instructions defined in the flow charts and / or block diagrams to be implemented. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package and partially on a remote machine or entirely on a remote machine or server.

[0103] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer-readable storage medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of a program of instructions in a transitory signal, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0105] The systems and techniques described herein can be implemented in a computing system that includes a back end component, e.g., as a data server, or that includes a middleware component, e.g., an application server, or that includes a front end component, e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described herein, or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication, e.g., a communication network. Examples of communication networks include a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] The computing system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.

[0107] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in different orders, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present disclosure is not limited herein.

[0108] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A battery replacement data acquisition method, characterized in that, The method comprises the following steps: obtaining a raw database execution statement for querying battery swap data of a target battery swap station; determining data permission information of the battery swap data, and generating an additional database execution statement based on the data permission information; generating a target database execution statement based on the raw database execution statement and the additional database execution statement, and executing the target database execution statement to obtain target battery swap data of the target battery swap station; The method comprises the following steps: intercepting, by a preset interceptor, a raw database execution statement for querying battery swap data of a target battery swap station; The method comprises the following steps: obtaining pre-configured permission configuration information for the battery swap data, and determining the data permission information of the battery swap data based on the permission configuration information; The method comprises the following steps: splicing the raw database execution statement and the additional database execution statement to obtain a target database execution statement; The method comprises the following steps: determining a first field in the raw database execution statement and a second field in the additional database execution statement; splicing the raw database execution statement and the additional database execution statement according to the first field and the second field.

2. The method of claim 1, wherein, Before the step of obtaining pre-configured permission configuration information for the battery swap data, the method further comprises the following steps: receiving permission configuration information input by a user based on a data permission configuration item in a data permission configuration interface.

3. The method of claim 2, wherein, The method comprises the following steps: in response to a data permission configuration instruction, determining a data table corresponding to the data permission configuration instruction, wherein the data table contains table fields; receiving permission configuration information input by a user for the table fields in a data permission configuration item in a data permission configuration interface.

4. A battery swap data acquisition device, characterized by, The method comprises the following steps: an original statement obtaining module for obtaining a raw database execution statement for querying battery swap data of a target battery swap station; an additional statement obtaining module for determining data permission information of the battery swap data, and generating an additional database execution statement based on the data permission information; a battery swap data obtaining module for generating a target database execution statement based on the raw database execution statement and the additional database execution statement, and obtaining target battery swap data of the target battery swap station by executing the target database execution statement; The method comprises the following steps: intercepting, by a preset interceptor, a raw database execution statement for querying battery swap data of a target battery swap station; The method comprises the following steps: obtaining pre-configured permission configuration information for the battery swap data, and determining the data permission information of the battery swap data based on the permission configuration information; The generating a target database execution statement based on the original database execution statement and the additional database execution statement comprises: splicing the original database execution statement and the additional database execution statement to obtain a target database execution statement; The splicing the original database execution statement and the additional database execution statement comprises: determining a first field in the original database execution statement and a second field in the additional database execution statement; splicing the original database execution statement and the additional database execution statement according to the first field and the second field.

5. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the battery replacement data acquisition method of any one of claims 1-3.

6. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing the processor to execute when the battery replacement data acquisition method of any one of claims 1-3 is implemented.

Citation Information

Patent Citations

  • Database operation method and device, electronic equipment and storage medium

    CN114996243A