CN-116049504-B - Information query method, system, device, computer equipment and storage medium
Abstract
The application relates to an information query method, an information query system, an information query device, computer equipment, a storage medium and a computer program product, and relates to the technical field of cloud computing. The method comprises the steps of receiving an account identifier query message sent by a terminal, querying a target account identifier in a preset data information table to obtain a query result, establishing the preset data information table based on weights of account identifiers corresponding to all objects, determining a target characteristic value corresponding to the target account identifier under the condition that the query result is failure, determining a target node identifier corresponding to the target characteristic value according to the position of the target characteristic value in a target circular linked list, querying target object information corresponding to the target account identifier in a storage node corresponding to the target node identifier, and sending the target object information to the terminal. By adopting the method, the target object information can be obtained according to the target account identification inquiry, manual input by a user is not needed, and the efficiency and the accuracy of resource transfer are improved.
Inventors
- LI FADA
- GENG LIANGPU
Assignees
- 中国工商银行股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230216
Claims (10)
- 1. An information query method, the method comprising: extracting account identifiers of all objects and object information corresponding to the account identifiers based on message interaction records among the objects; aiming at each account identifier, obtaining the message sending times and the message successful sending times corresponding to the account identifier according to each message interaction record; Calculating the weight of each account identifier according to the message sending times, the message successful sending times and the initial weight of the object corresponding to the account identifier; Sequencing the account identifications according to the order of the weights from large to small to obtain an account identification sequence, and constructing a preset data information table based on the preset number of the account identifications in the account identification sequence and object information corresponding to the account identifications; Receiving an account identifier query message sent by a terminal, wherein the account identifier query message carries a target account identifier; inquiring the target account identifier in a preset data information table to obtain an inquiry result, wherein the preset data information table is established based on the weight of the account identifier corresponding to each object; Under the condition that the query result is that the query fails, determining a target characteristic value corresponding to the target account identifier, and determining a target node identifier corresponding to the target characteristic value according to the position of the target characteristic value in a target annular linked list; And inquiring target object information corresponding to the target account identifier in a storage node corresponding to the target node identifier, and sending the target object information to the terminal.
- 2. The method according to claim 1, wherein the method further comprises: acquiring a first data information table, wherein the first data information table comprises each account identifier and object information corresponding to the account identifier; Dividing the first data information table into a preset number of sub-tables, determining a database corresponding to each sub-table, and respectively storing each sub-table into a corresponding database; Determining the number of storage nodes corresponding to each sub-table according to the number of preset databases, and determining the node identification of each storage node based on the internet protocol address corresponding to each preset database; and generating a target annular linked list according to the number of the storage nodes, the node identifiers and the pre-constructed initial annular linked list sum.
- 3. The method according to claim 1, wherein after the querying, in the storage node corresponding to the target node identifier, the target object information corresponding to the target account identifier, the method further comprises: Acquiring a second data information table under the condition that target object information corresponding to the target account identifier is not queried in a storage node corresponding to the target node identifier, wherein the second data information table comprises a plurality of object information; and carrying out fuzzy matching in the second data information table according to a fuzzy matching verification algorithm and a target object identification code contained in the target account identification to obtain the target object information.
- 4. The method according to claim 3, wherein said performing fuzzy matching in the second data information table according to a fuzzy matching verification algorithm and a target object identification code included in the target account identification to obtain the target object information includes: Obtaining a target object name corresponding to the target object identification code contained in the target account identification according to a preset corresponding relation between the object name and the object identification code; And according to the target object name and each second data information in the second data information table, checking the target object name through a preset fuzzy matching checking algorithm, and obtaining the target object information according to a checking result, wherein the checking result is used for indicating whether fuzzy matching is successful or not.
- 5. A method according to claim 3, characterized in that the method further comprises: Under the condition of failure of fuzzy matching, acquiring the target object information returned by the terminal, and determining the target account identifier and the node identifier corresponding to the target object information according to the target account identifier corresponding to the target object information and the target annular linked list; and storing the target account identifier and the target object information into a sub-table corresponding to the node identifier according to the node identifier.
- 6. An information query system, comprising a terminal, a first server, and a second server, wherein: the terminal is used for acquiring a target account identifier to be identified and sending a first account identifier query message carrying the target account identifier to the first server; The first server is configured to respond to the first account identifier query message, query the target account identifier in a preset data information table, generate a query result message, and send the query result message to the terminal; the preset data information table is used for extracting account identifications of objects and object information corresponding to the account identifications based on message interaction records among the objects, obtaining message sending times and message successful sending times corresponding to the account identifications according to the message interaction records for each account identification, calculating the weight of each account identification according to the message sending times, the message successful sending times and the initial weight of the object corresponding to the account identification, sorting the account identifications according to the order of the weights from large to small to obtain an account identification sequence, and constructing based on the preset number of the account identifications and the object information corresponding to the account identifications in the account identification sequence; The terminal is further configured to send a second account identifier query message carrying the target account identifier to a second service when the query result is that the query fails; The second server is configured to determine a target feature value corresponding to the target account identifier in response to the second account identifier query message, determine a target node identifier corresponding to the target feature value according to a position of the target feature value in a target circular linked list, query target object information corresponding to the target account identifier in a storage node corresponding to the target node identifier, and send the target object information to the terminal.
- 7. An information query apparatus, the apparatus comprising: The extraction module is used for extracting the account identifier of each object and the object information corresponding to the account identifier based on the message interaction record among the objects; The calculation module is used for obtaining the message sending times and the message successful sending times corresponding to the account identifications according to the message interaction records for each account identification; calculating the weight of each account identifier according to the message sending times, the message successful sending times and the initial weight of the object corresponding to the account identifier; The construction module is used for sequencing the account identifications according to the order of the weights from large to small to obtain an account identification sequence, and constructing a preset data information table based on the account identifications of the preset number and the object information corresponding to the account identifications in the account identification sequence; The receiving module is used for receiving an account identification inquiry message sent by the terminal, wherein the account identification inquiry message carries a target account identification; the first query module is used for querying the target account identifier in a preset data information table to obtain a query result, and the preset data information table is established based on the weight of the account identifier corresponding to each object; the first determining module is used for determining a target characteristic value corresponding to the target account identifier under the condition that the query result is that the query fails, and determining a target node identifier corresponding to the target characteristic value according to the position of the target characteristic value in a target annular linked list; And the second query module is used for querying target object information corresponding to the target account identifier in the storage node corresponding to the target node identifier and sending the target object information to the terminal.
- 8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
- 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
Description
Information query method, system, device, computer equipment and storage medium Technical Field The present application relates to the field of cloud computing technology, and in particular, to an information query method, system, apparatus, computer device, storage medium, and computer program product. Background With the development of cloud computing technology, a user can transfer resources through a mobile banking client, and the user can complete the resource transfer by inputting information such as a target account identifier and a corresponding banking name for the resource transfer. In the traditional technology, after a user inputs a target account identifier, a mobile phone bank client automatically displays a corresponding primary target bank, and then the user selects a corresponding secondary target bank or a specific target bank website under the primary target bank to finish resource transfer. However, in the current resource transfer method, a user is required to manually select a secondary target bank or a specific target bank website under the primary target bank, and if the user makes an error in the selection, the resource transfer may fail, so that the problem of low efficiency of the resource transfer exists. Disclosure of Invention In view of the foregoing, it is desirable to provide an information query method, system, apparatus, computer device, computer readable storage medium, and computer program product that can improve resource transfer efficiency. In a first aspect, the present application provides an information query method. The method comprises the following steps: Receiving an account identifier query message sent by a terminal, wherein the account identifier query message carries a target account identifier; inquiring the target account identifier in a preset data information table to obtain an inquiry result, wherein the preset data information table is established based on the weight of the account identifier corresponding to each object; Under the condition that the query result is that the query fails, determining a target characteristic value corresponding to the target account identifier, and determining a target node identifier corresponding to the target characteristic value according to the position of the target characteristic value in a target annular linked list; And inquiring target object information corresponding to the target account identifier in a storage node corresponding to the target node identifier, and sending the target object information to the terminal. In one embodiment, before the account identifier query message sent by the receiving terminal, the method further includes: extracting account identifiers of all objects and object information corresponding to the account identifiers based on message interaction records among the objects; According to the message interaction records, the account identifications, the object information corresponding to the account identifications and a preset weight calculation strategy, calculating the weight of each account identification; And sequencing the account identifications according to the order of the weights from large to small to obtain an account identification sequence, and constructing a preset data information table based on the preset number of the account identifications in the account identification sequence and object information corresponding to the account identifications. In one embodiment, the calculating the weight of each account identifier according to each message interaction record, each account identifier, the object information corresponding to the account identifier, and a preset weight calculation policy includes: aiming at each account identifier, obtaining the message sending times and the message successful sending times corresponding to the account identifier according to each message interaction record; and calculating the weight of each account identifier according to the message sending times, the message successful sending times and the initial weight of the object corresponding to the account identifier. In one embodiment, the method further comprises: acquiring a first data information table, wherein the first data information table comprises each account identifier and object information corresponding to the account identifier; Dividing the first data information table into a preset number of sub-tables, determining a database corresponding to each sub-table, and respectively storing each sub-table into a corresponding database; Determining the number of storage nodes corresponding to each sub-table according to the number of preset databases, and determining the node identification of each storage node based on the internet protocol address corresponding to each preset database; and generating a target annular linked list according to the number of the storage nodes, the node identifiers and the pre-constructed initial annular linked list sum. In one embodiment, aft