A transaction query method, device, electronic device and readable storage medium thereof

By receiving and processing merchant query requests in financial transaction queries, and using cache and query frequency control, the database CPU high load and data hotspot problems caused by concurrent queries are solved, and efficient transaction query and system stability are achieved.

CN111897838BActive Publication Date: 2024-11-22CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010597540.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-28
Publication Date
2024-11-22
Estimated Expiration
2040-06-28

AI Technical Summary

Technical Problem

During the transaction query process in the financial field, the concurrent execution of multiple query statements leads to high database CPU usage, slow query execution, and data hot issues trigger operational risks.

Method used

By receiving the query request from the target merchant, search the cache query request set within the preset period. If the conditions are met, conduct a transaction query. If the conditions are not met, cache the request and update the set to generate a query key-value pair, including the transaction query frequency, Type and identity information to avoid concurrent query hotspots.

Benefits of technology

Effectively control query database access, avoid slow query and system crash risks, improve query efficiency, and reduce the occurrence of data hotspots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111897838B_ABST
    Figure CN111897838B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of bank transactions, and in particular to a transaction query method, device, electronic device and computer-readable storage medium, wherein the transaction query method comprises: receiving a first query request from a target merchant; retrieving a query request set cached by the target merchant within a preset time period; if the cached query request set meets a set first condition, performing a transaction query according to the first query request; if the cached query request set does not meet the set first condition, caching the first query request and updating the cached query request set. Based on the disclosed scheme of the application, the query request in the cache can be queried according to the set query frequency to control the query database, thereby avoiding the risk of slow query or query system crash caused by query hotspots due to a large number of queries.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of bank transactions, and in particular to a transaction query method, device, electronic device and computer-readable storage medium. Background Art

[0002] At present, the transaction query services for merchants in the financial field are commonly single query and paging query. Single query generally locates a transaction flow based on factors such as merchant number + merchant order number / bank serial number / retrieval reference number / terminal serial number for query, and is often used for merchant asynchronous query to confirm transaction results. Paging query generally queries the results of large data sets based on factors such as merchant number + transaction date, and is used for transaction reconciliation, etc. The acquiring system generally uses a strongly consistent OLTP (On-Line Transaction Processing) database as the database for accounting records, and query transactions are generally queried on this database to ensure accuracy. During the query process, the database will lock the data to ensure data consistency. If there is concurrent execution of query statements for the same data and conditions, multiple query statements will be queued for execution, causing high database CPU usage and slow query execution. The data involved will become hot data, causing operational risks. Summary of the invention

[0003] The purpose of this application is to solve at least one of the above technical defects. The technical solution adopted by this application is as follows:

[0004] In a first aspect, an embodiment of the present application provides a transaction query method, the method comprising:

[0005] Receiving a first query request from a target merchant;

[0006] Retrieving a set of query requests cached by the target merchant within a preset time period;

[0007] If the cached query request set meets the set first condition, then perform transaction query according to the first query request;

[0008] If the cached query request set does not meet the set first condition, the first query request is cached and the cached query request set is updated.

[0009] Optionally, if the cached query request set meets a set first condition, the method further includes:

[0010] Whether a third query request in the search cache is querying the database; wherein the third query request has the same conditions as the first query request;

[0011] If it does not exist, the query database is driven to perform transaction query according to the first query request.

[0012] Optionally, after receiving the first query request of the target merchant, the method further includes: generating a corresponding first query key-value pair according to the first query request;

[0013] The cached query request set is a set including multiple query key-value pairs;

[0014] Optionally, the key-value pair includes transaction query frequency, transaction type and target merchant identity information.

[0015] Optionally, the method comprises:

[0016] Generate a timestamp for each query request in the first query request and the query request set cached by the target merchant respectively;

[0017] If the time difference between the first query request and a second query request in the query request set exceeds a preset period of time, the query request set deletes the second query request; wherein the second query request is included in the query request set of the target merchant in the cache.

[0018] In a second aspect, an embodiment of the present invention provides a transaction query device, characterized in that the device comprises: an interface module, a storage module, a retrieval module, and a query module, wherein:

[0019] The interface module is used to receive a first query request from a target merchant;

[0020] The retrieval module is used to retrieve the query request set cached by the target merchant within a preset time period;

[0021] The retrieval module is further used to determine whether the cached query request set meets a set first condition, and the query module is used to perform a transaction query according to the first query request;

[0022] The retrieval module is further used to determine that the cached query request set does not meet the set first condition, and the storage module is used to cache the first query request and update the cached query request set;

[0023] The storage module is further used to store the query request set and the first setting condition cached by the target merchant.

[0024] Optionally, the retrieval module is further used to: retrieve whether a third query request in the cache is querying the database; wherein the third query request has the same conditions as the first query request; if not,

[0025] The query module is further used to drive the query database to perform transaction query according to the first query request.

[0026] Optionally, the device further comprises a data processing module, wherein the data processing module is configured to:

[0027] After receiving a first query request from a target merchant, generating a corresponding first query key-value pair according to the first query request;

[0028] The data processing module is further used to process the cached query request set into a set containing a plurality of corresponding query key-value pairs;

[0029] Optionally, the key-value pair includes transaction time information, transaction type and target merchant identity information.

[0030] Optionally, the device comprises a timestamp module, and the timestamp module is used to: generate a timestamp for each query request in the first query request and the query request set cached by the target merchant respectively;

[0031] If the time difference between the first query request and a second query request in the query request set exceeds a preset period, the storage module is used to control the deletion of the second query request in the query request set; wherein the second query request is included in the query request set of the target merchant in the cache.

[0032] On the other hand, an embodiment of the present invention further provides an electronic device, including a display, a processor and a memory; wherein:

[0033] The memory is used to store operation instructions;

[0034] The processor is used to execute the method described in any of the above embodiments by calling the operation instruction.

[0035] On the other hand, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0036] The technical solution provided by the embodiment of the present application has the following beneficial effects: by receiving the first query request of the target merchant; retrieving the query request set cached by the target merchant within a preset time period; if the cached query request set meets the set first condition, then performing a transaction query according to the first query request; if the cached query request set does not meet the set first condition, then caching the first query request and updating the cached query request set. Based on this solution, the query database can be controlled by querying the query requests in the cache according to the set query frequency, avoiding the risk of slow query or query system crash caused by query hotspots due to a large number of queries. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in describing the embodiments of the present application.

[0038] Figure 1 A flowchart of a transaction query method provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of the structure of a transaction query device provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present invention.

[0042] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0043] In order to more clearly introduce the technical solution of this application, the existing technologies and technical concepts that may be involved in this application are introduced as follows:

[0044] Acquiring business: Acquiring business refers to the RMB and foreign currency funds settlement services provided by the contracted bank to merchants.

[0045] Acquiring system: It undertakes the acquiring business, is responsible for accessing the front-end channels (POS, QR code, online payment, etc.) to provide online services, and processes the cardholder and merchant funds. The main technical function of the acquiring system is to process the cardholder accounts and merchant accounts when acting as an acquiring institution. Taking payment transactions as an example, the main process is to receive the request message from the front-end channel system, calculate the amount to be deducted from the cardholder, the amount to be deposited into the merchant account, and the amount of the handling fee based on the request message, and then send the corresponding account operation message to the corresponding back-end cardholder, merchant account, and handling fee system to complete the entire acquiring online processing process.

[0046] Financial IC card: Financial IC card is issued by commercial banks (credit unions) or payment institutions, uses integrated circuit technology, complies with national financial industry standards, has all or part of the financial functions of consumer credit, transfer settlement, cash deposit and withdrawal, and may have other commercial services and social management functions.

[0047] Card issuer: An institution that issues bank cards or maintains accounts associated with cards and has an agreement relationship with the cardholder in these two aspects.

[0048] Acquirer: A clearing member that has an agreement with a merchant or provides services to cardholders and directly or indirectly participates in the exchange of transaction documents (including electronic or paper documents).

[0049] Designated merchant: a retailer, individual, company or other organization that has signed a merchant agreement with an acquiring institution and accepts bank cards, that is, the target merchant in the following embodiments.

[0050] Distributed cache: refers to the cache being deployed in a cluster consisting of multiple servers, providing cache services in a cluster manner.

[0051] Key-Value: Key-value pair storage is the simplest organizational form of a database. Key: is the number of the value to be stored Value: is the data to be stored.

[0052] OLTP (On-Line Transaction Processing) is an online transaction processing process, also known as a transaction-oriented processing process. Its basic feature is that the user data received at the front desk can be immediately transmitted to the computing center for processing, and the processing results can be given in a very short time. It is one of the ways to quickly respond to user operations.

[0053] Query hotspot: When querying data, the database will lock the data block and release the lock after the query is completed. When the concurrency of querying a certain block of data is relatively high, lock contention and lock waiting will occur, thus the data block will become a query hotspot, the query efficiency will be slow, and the database utilization rate will increase.

[0054] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0055] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0056] Figure 1 A flow chart of a transaction query method provided in an embodiment of the present application is shown. Figure 1 As shown, the method includes:

[0057] S101, receiving a first query request from a target merchant;

[0058] S102, retrieving a query request set cached by the target merchant within a preset period of time;

[0059] S1031. If the cached query request set meets a set first condition, perform a transaction query according to the first query request;

[0060] S1032: If the cached query request set does not meet the set first condition, cache the first query request and update the cached query request set.

[0061] In this embodiment, the first condition set is that the number of query requests within a preset time period is less than or equal to the set frequency. For example, the first condition set is that the number of query requests within 1 minute does not exceed 3 times. Then, the query request set cached by the target merchant within the preset time period is retrieved from the query request set cached within 1 minute from the moment T when the first query request is received. If the elements of the query request set do not exceed 3, it is considered that the query request within 1 minute before T does not exceed 3 times, and the acquiring system responds to the first query request for query, and the first query request cache is recorded in the query request set. On the contrary, if the cached query request set does not meet the set first condition, that is, the query request exceeds 3 times within 1 minute before T, then the acquiring system will no longer respond to the first query request to ensure the high-speed operation of the query system, and the first query request cache is recorded in the query request set. Based on the scheme of this embodiment, the request frequency of a certain type of query transaction of a merchant can be controlled at a macro level according to the merchant dimension.

[0062] In an optional embodiment, if the cached query request set meets the set first condition, the method further includes: retrieving whether the third query request in the cache is querying the database; wherein the third query request has the same condition as the first query request; if not, driving the query database to perform transaction query according to the first query request. Wherein, the present embodiment is further introduced based on the previous embodiment, when the query request set of the target merchant cached within the preset period meets the set first condition, that is, the number of cached query requests within 1 minute before the moment of receiving the first query request does not exceed 3 times, then further determine whether the third query request in the cache with the same query condition or query content as the first query request is querying the database, if the third query request with the same condition is still querying the database, then refuse to query the database according to the first query request and send an error message to the merchant at the same time, the error message is used to prompt the merchant that the query with the same condition is in progress, prompting the merchant to query later or not to initiate the query request with the same condition again, so as to avoid the probability of data hot spots and CPU usage rate increasing due to the same query request queuing query. On the contrary, the query database is driven to query the target transaction corresponding to the first query request in the data according to the first query request. Based on the solution of this embodiment, the query hotspot problem caused by the concurrency of the same query request, that is, the same conditional query statement can be avoided at a micro level.

[0063] Further, in an optional embodiment of the present application, the cached query request set is a set containing multiple query key-value pairs; the key-value pair contains transaction query frequency, transaction type and target merchant identity information. At present, in financial transaction technology, various request messages are processed and stored or cached in the form of key-value pair data. In the embodiment of the present invention, this method is also used to process and store the merchant's query request message. Specifically, after receiving the first query request of the target merchant, the corresponding first query key-value pair (including the first key-value pair and the second key-value pair) is generated according to the first query request, that is, the key-value pair corresponding to the first query request is constructed, and the first key-value pair can contain transaction query frequency, target merchant information and transaction type, wherein the transaction query frequency can be defined as the number of transactions / queries within a unit time period. Accordingly, in the present application, judging whether the cached target merchant's query request set meets the set first condition is converted into judging whether the cached target merchant's query request key-value pair set meets the set first condition. The judgment method is the same as the above embodiment, and it will not be repeated here. Furthermore, the query request set of the target merchant cached in the cache area is also constructed according to the same construction logic as the first query request key-value pair, that is, a second key-value pair is formed. The second key-value pair may include the target merchant information, the first query request content and the transaction type, so as to form a cache query request key-value pair set corresponding to the first query request key-value pair. The corresponding query request for judging whether the first query request is the same as the query request in the database in this application is converted into a query to see whether the second key-value pair is the same as the key-value pair corresponding to the query request in the database, so as to avoid concurrent queries of the same query request in the database and cause query data hotspots.

[0064] In an optional embodiment, the transaction query method includes: generating a timestamp for each query request in the first query request and the query request set cached by the target merchant; if the time difference between the first query request and the second query request in the query request set exceeds a preset period, the query request set deletes the second query request; wherein the second query request is included in the query request set of the cached target merchant. In this embodiment, timestamp generation processing can be performed for all query requests. When the time difference between the timestamp T2 of any second query request in the cached query request set and the timestamp T1 of the first query request exceeds a preset period, the second query request can be deleted from the cache area as invalid cache data. The timestamp in this embodiment can not only increase the speed of retrieving the cached query request set, but also release the cache area according to the query request and actual business needs to avoid causing the cache area data to run slowly.

[0065] In the supplementary implementation, if there is a failure in reading the cached data, the acquiring system can directly query the target transaction in the database and return the query result to the target merchant based on the first query request or the key-value pair generated by the first query request. This solution solves the problem of query failure caused by cache area abnormalities.

[0066] Furthermore, in an optional embodiment of the present application, the query request set of the target merchant is cached in a distributed cache database to achieve rapid retrieval.

[0067] Based on Figure 1 The same principle as shown in the method, Figure 2 The present application embodiment provides a transaction query device, which is applied to the above-mentioned acquiring system, such as Figure 2 As shown, the device includes: 201 interface module, 202 storage module, 203 retrieval module, 204 query module, wherein:

[0068] The 201 interface module is used to receive a first query request from a target merchant;

[0069] The 203 retrieval module is used to retrieve the query request set cached by the target merchant within a preset period of time;

[0070] The retrieval module 203 is further used to determine that the cached query request set meets a set first condition, and the query module 204 is used to perform a transaction query according to the first query request;

[0071] The 203 retrieval module is further used to determine that the cached query request set does not meet the set first condition, and the storage module is used to cache the first query request and update the cached query request set;

[0072] The storage module 202 is further used to store the query request set and the first setting condition cached by the target merchant.

[0073] In an optional embodiment, the retrieval module is further used to: retrieve whether a third query request in the cache is querying the database; wherein the third query request has the same conditions as the first query request; if not,

[0074] The query module is further used to drive the query database to perform transaction query according to the first query request.

[0075] In an optional embodiment, the device further includes a data processing module, and the data processing module is used to:

[0076] After receiving a first query request from a target merchant, generating a corresponding first query key-value pair according to the first query request;

[0077] The data processing module is further used to process the cached query request set into a set containing a plurality of corresponding query key-value pairs;

[0078] In an optional embodiment, the key-value pair includes transaction time information, transaction type, and target merchant identity information.

[0079] In an optional embodiment, the device includes a timestamp module, which is used to: generate a timestamp for each query request in the first query request and the query request set cached by the target merchant; if the time difference between the first query request and the second query request in the query request set exceeds a preset time period, the storage module is used to control the deletion of the second query request in the query request set; wherein the second query request is included in the query request set of the cached target merchant.

[0080] Optionally, the transaction query device, distributed cache database and transaction database can all be built into the acquiring system; or the transaction query device and distributed cache database are built into the acquiring system, and the transaction database is stored in a server of a financial institution such as a bank.

[0081] It can be understood that the above modules of the transaction query device in this embodiment have the function of realizing Figure 1 The functions of the corresponding steps of the transaction query method in the embodiment shown in . The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions. The above modules can be software and / or hardware, and the above modules can be implemented separately or integrated with multiple modules. For the functional description of each module of the above transaction query device, please refer to Figure 1 The corresponding description of the transaction query method in the embodiment shown in will not be repeated here.

[0082] As an example, Figure 3 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown. Figure 3 As shown, the electronic device 2000 includes: a processor 2001 and a memory 2003. The processor 2001 and the memory 2003 are connected, such as through a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that in actual applications, the transceiver 2004 is not limited to one, and the structure of the electronic device 2000 does not constitute a limitation on the embodiments of the present application.

[0083] The processor 2001 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter. The transceiver 2004 is applied in the embodiment of the present application to implement the function of the electronic device of the embodiment of the present application communicating with other devices when executed.

[0084] Processor 2001 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 2001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0085] The bus 2002 may include a path to transmit information between the above components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 2002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0086] The memory 2003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0087] Optionally, the memory 2003 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 2001. The processor 2001 is used to execute the application code stored in the memory 2003 to implement the method provided in any embodiment of the present application.

[0088] The electronic device provided in the embodiment of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0089] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method shown in the above method embodiment is implemented.

[0090] The computer-readable storage medium provided in the embodiments of the present application is applicable to any embodiment of the above method and will not be described in detail here.

[0091] The solution provided by the embodiment of the present application is to receive a first query request from a target merchant; retrieve a set of query requests cached by the target merchant within a preset time period; if the cached query request set meets the set first condition, perform a transaction query according to the first query request; if the cached query request set does not meet the set first condition, cache the first query request and update the cached query request set. Based on this solution, the query database can be controlled by querying the query requests in the cache according to the set query frequency, avoiding the risk of slow query or query system crash caused by query hotspots caused by a large number of queries. The request frequency of a certain type of query transaction of a merchant can be controlled at the macro level according to the merchant dimension, and the query hotspot problem caused by the concurrency of the same query request, i.e., the same conditional query statement, can be avoided at the micro level.

[0092] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0093] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A transaction query method, characterized in that: The method comprises: Receiving a first query request from a target merchant; Retrieving a query request set cached by the target merchant within a preset period of time, wherein the query request set of the target merchant is cached in a distributed cache database; If the cached query request set meets the set first condition, searching whether a third query request in the cache is querying the database, and the third query request has the same condition as the first query request; If it does not exist, the query database is driven to perform transaction query according to the first query request; if the cached query request set does not meet the set first condition, the first query request is cached and the cached query request set is updated.

2. The transaction query method according to claim 1, characterized in that: After receiving a first query request from a target merchant, the method further includes: generating a corresponding first query key-value pair according to the first query request; The cached query request set is a set including multiple query key-value pairs.

3. The transaction query method according to claim 2, characterized in that: The key-value pair includes transaction query frequency, transaction type and target merchant identity information.

4. The transaction query method according to any one of claims 1 to 3, characterized in that: The method comprises: Generate a timestamp for each query request in the first query request and the query request set cached by the target merchant respectively; If the time difference between the first query request and a second query request in the query request set exceeds a preset period of time, the query request set deletes the second query request; wherein the second query request is included in the query request set of the target merchant in the cache.

5. A transaction query device, characterized in that: The device comprises: an interface module, a storage module, a retrieval module, and a query module, wherein: The interface module is used to receive a first query request from a target merchant; The retrieval module is used to retrieve the query request set cached by the target merchant within a preset period of time, and the query request set of the target merchant is cached in the distributed cache database; The retrieval module is further used to determine whether the cached query request set meets a set first condition, and the query module is used to perform a transaction query according to the first query request; The retrieval module is further used to determine that the cached query request set does not meet the set first condition, and the storage module is used to cache the first query request and update the cached query request set; The retrieval module is further used to: retrieve whether the third query request in the cache is querying the database; wherein the third query request has the same conditions as the first query request; if not, the query module is further used to drive the query database to perform transaction query according to the first query request; The storage module is further used to store the query request set and the first setting condition cached by the target merchant.

6. The transaction inquiry device according to claim 5, characterized in that: The device further comprises a data processing module, wherein the data processing module is used for: After receiving a first query request from a target merchant, generating a corresponding first query key-value pair according to the first query request; The data processing module is further used to process the cached query request set into a set containing multiple corresponding query key-value pairs.

7. An electronic device, characterized in that: comprising a display, a processor and a memory; wherein, The memory is used to store operation instructions; The processor is used to execute the method according to any one of claims 1 to 4 by calling the operation instruction.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.