Transaction data bookkeeping processing method and device, electronic equipment and storage medium

By obtaining associated data from the local database on the trading application side and establishing a bookkeeping task queue, the problem of deadlock in transaction data bookkeeping processing is solved, and efficient and stable transaction data bookkeeping processing is achieved.

CN119831593AActive Publication Date: 2025-04-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510029760.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-08
Publication Date
2025-04-15
Estimated Expiration
2045-01-08

AI Technical Summary

Technical Problem

The prior art can easily lead to data resource deadlocks when bookkeeping and processing of transaction data, and the user experience is poor when frequent bookkeeping of hot accounts.

Method used

By obtaining the target bookkeeping associated data from the local bookkeeping database based on the account information that needs to be bookkeeping on the trading application side, and when the transaction data meets the bookkeeping requirements, a bookkeeping task is established and added to the existing bookkeeping task queue, and finally writing the transaction data to the database on the server side.

Benefits of technology

It avoids deadlocks of data resources, improves the user experience when frequent bookkeeping of hot accounts, and ensures the efficiency and stability of transaction data bookkeeping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119831593A_ABST
    Figure CN119831593A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a transaction data bookkeeping processing method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining target bookkeeping associated data from a local bookkeeping database based on account information of a to-be-bookkeeping transaction, the target bookkeeping associated data being data associated with transaction data of the to-be-bookkeeping transaction; based on the target bookkeeping associated data, checking whether the transaction data of the transaction needing bookkeeping meets bookkeeping requirements or not; when the transaction data of the to-be-bookstowed transaction meets the bookkeeping requirement, establishing a bookkeeping task of the to-be-bookstowed transaction, and adding the bookkeeping task of the to-be-bookstowed transaction into the existing bookkeeping task queue to obtain a latest bookkeeping task queue; and based on the latest bookkeeping task queue, writing the transaction data of the transaction needing bookkeeping into a database of the server side. The embodiment of the invention can avoid data resource deadlock and improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular to a transaction data bookkeeping processing method, device, electronic device and storage medium. Background Art

[0002] With the development of bookkeeping business in the financial field, the resources involved in the bookkeeping process of the transaction application end, such as data resources, are increasing, and the calculation process is becoming more and more complicated. The bookkeeping method in the prior art needs to retrieve the corresponding data objects from the server's database and occupy them exclusively when performing bookkeeping of transaction data. The same bookkeeping resource is executed serially at the database level, that is, the same account cannot obtain the corresponding resources for update when the previous business is not released, which easily leads to deadlock of data resources; and if the hot account frequently bookkeeping and instantaneous outbreak occurs, the existing solution can only reject the relevant requests, and the user experience is poor. Summary of the invention

[0003] The embodiments of the present invention provide a transaction data bookkeeping processing method, device, electronic device and storage medium, which can avoid data resource deadlock and improve user experience.

[0004] In a first aspect, an embodiment of the present invention provides a transaction data bookkeeping processing method, comprising:

[0005] Acquire target bookkeeping associated data from a local bookkeeping database based on account information of the transaction to be booked, wherein the target bookkeeping associated data is data associated with transaction data of the transaction to be booked;

[0006] Checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping association data;

[0007] When the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task for the transaction to be booked is established, and the bookkeeping task for the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue; and

[0008] The transaction data of the transaction to be booked is written into a database on the server side based on the latest bookkeeping task queue.

[0009] In a second aspect, an embodiment of the present invention provides a transaction data bookkeeping processing device, including:

[0010] A related data acquisition module, used for acquiring target bookkeeping related data from a local bookkeeping database based on the account information of the transaction to be booked, wherein the target bookkeeping related data is data associated with the transaction data of the transaction to be booked;

[0011] A checking module, configured to check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data;

[0012] A queue adding module, used for establishing a bookkeeping task for the transaction to be booked when the transaction data of the transaction to be booked meets the bookkeeping requirements, and adding the bookkeeping task for the transaction to be booked to the existing bookkeeping task queue to obtain the latest bookkeeping task queue; and

[0013] The database writing module is used to write the transaction data of the transaction to be booked into the database of the server based on the latest bookkeeping task queue.

[0014] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a transaction data bookkeeping processing method as described in any one of the embodiments of the present invention is implemented.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a transaction data bookkeeping processing method as described in any one of the embodiments of the present invention.

[0016] The transaction data bookkeeping processing method, device, electronic device and storage medium provided by the embodiments of the present invention obtain target bookkeeping related data from a local bookkeeping database based on the account information of the transaction to be booked at the transaction application end, and obtain target bookkeeping related data from the local bookkeeping database based on the account information of the transaction to be booked. When the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task for the transaction to be booked is established, and the bookkeeping task for the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue. Finally, based on the latest bookkeeping task queue, the transaction data of the transaction to be booked is written into the database on the server side. When performing transaction data bookkeeping processing, there is no need to retrieve the corresponding data objects from the database on the server side and occupy them exclusively, thereby avoiding deadlock in data resources. In addition, when bookkeeping of hot accounts is frequent, there is no need to reject bookkeeping requests, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 It is a flow chart of a transaction data bookkeeping processing method provided by an embodiment of the present invention;

[0019] Figure 2 is another flow chart of the transaction data bookkeeping processing method provided by an embodiment of the present invention;

[0020] Figure 3 is another flow chart of the transaction data bookkeeping processing method provided by an embodiment of the present invention;

[0021] Figure 4 is another flow chart of the transaction data bookkeeping processing method provided by an embodiment of the present invention;

[0022] Figure 5 is another flow chart of the transaction data bookkeeping processing method provided by an embodiment of the present invention;

[0023] Figure 6 It is a structural schematic diagram of a transaction data bookkeeping processing device provided by an embodiment of the present invention;

[0024] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

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

[0027] Figure 1A flowchart of a transaction data bookkeeping processing method provided by an embodiment of the present invention is provided. This embodiment is applicable to a scenario in which a transaction application terminal books transaction data. The method can be executed by a transaction data bookkeeping processing device provided by an embodiment of the present invention, and the device can be implemented in software and / or hardware. In a specific embodiment, the device can be integrated in an electronic device, such as a computer. The following embodiments will be described by taking the device integrated in an electronic device as an example.

[0028] refer to Figure 1 , the method may specifically include the following steps:

[0029] Step 101, based on the account information of the transaction to be booked, target bookkeeping associated data is obtained from the local bookkeeping database, where the target bookkeeping associated data is data associated with the transaction data to be booked. This step enables the transaction data to be booked without the need to retrieve the corresponding data object from the server database and occupy it exclusively when the transaction data is booked, and facilitates checking whether the transaction data to be booked meets the requirements based on the target bookkeeping associated data.

[0030] Specifically, the account information collected by the embodiments of the present invention is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] Optionally, the target bookkeeping associated data includes status information data of a corresponding account, and the status information of the account may be, for example, a normal operation status and a loss report status.

[0032] Optionally, the target bookkeeping associated data includes restricted service information data of a corresponding account. The restricted service information of the account may be, for example, corresponding data of restricted service information set by a user, restricted service information of a bank, and restricted service information of a regulatory agency.

[0033] Optionally, the target bookkeeping associated data includes balance data of corresponding accounts, and the balance data may specifically include current book balance, cashable balance, transferable balance, overdraft balance and adjustable amount, etc.

[0034] Specifically, the above-mentioned adjustable amount can be understood as the amount that can be "adjusted" from other accounts according to the pre-set service agreement requirements.

[0035] Specifically, for a transfer transaction, the target bookkeeping associated data may include a transferable balance.

[0036] Optionally, before step 101, the local bookkeeping database is established based on the data type of data associated with the transaction data of the transaction to be book-recorded.

[0037] Optionally, before step 101, the target bookkeeping associated data is obtained from a database on the server side, and the target bookkeeping associated data is stored in a local bookkeeping database.

[0038] Specifically, when the transaction data of transactions requiring bookkeeping of each account are booked for the first time through the embodiment of the present invention, the target bookkeeping associated data may be obtained before step 1 and stored in the local bookkeeping database.

[0039] Optionally, the process of acquiring target bookkeeping associated data from the local bookkeeping database based on the account information of the transaction to be booked includes: acquiring the target bookkeeping associated data from the local bookkeeping database based on the type of the transaction to be booked and the account information of the transaction to be booked.

[0040] Step 102: Check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data. This step can help obtain the transaction to be booked that meets the bookkeeping requirements, establish the corresponding bookkeeping task, and add the corresponding bookkeeping task to the existing bookkeeping task queue.

[0041] Specifically, the bookkeeping task queue may be established before step 102 , and specifically, the bookkeeping task queue may be established by defining a queue structure, configuring queue parameters, and developing a task queue entry interface before step 102 .

[0042] Optionally, the above-mentioned process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data includes: for a transfer transaction, checking whether the transferable balance of the corresponding debit account is less than the transfer amount of the transfer transaction to be booked, and determining that the transaction data of the transaction to be booked meets the bookkeeping requirements when the transferable balance of the corresponding debit account is not less than the transfer amount of the transfer transaction to be booked, and determining that the transaction data of the transaction to be booked does not meet the bookkeeping requirements when the transferable balance of the corresponding debit account is less than the transfer amount of the transfer transaction to be booked.

[0043] Optionally, the above-mentioned process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data includes: for a transfer transaction, when the transferable balance of the corresponding debit account is less than the transfer amount of the transaction to be booked, checking whether the total amount of the transferable balance and the adjustable amount of the corresponding debit account is less than the transfer amount of the transfer transaction to be booked, and determining that the transaction data of the transaction to be booked meets the bookkeeping requirements when the corresponding total amount is not less than the transfer amount of the transfer transaction to be booked, and determining that the transaction data of the transaction to be booked does not meet the bookkeeping requirements when the corresponding total amount is less than the transfer amount of the transfer transaction to be booked.

[0044] In a specific usage scenario, such as Figure 5 As shown, for transaction 1: account B is used as the debit account, and account A and account C are used as the credit accounts; check whether the transferable amount of account B is less than the transfer amount that needs to be transferred to account A and account C; when the transferable amount of account B is not less than the transfer amount that needs to be transferred to account A and account C, determine that the transfer amount that account B needs to transfer to account A and account C meets the bookkeeping requirements.

[0045] Optionally, the process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data includes: checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data and the existing bookkeeping task queue.

[0046] Optionally, the above process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping association data and the existing bookkeeping task queue includes: checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping association data and the transaction data of the bookkeeping task for the same account as the transaction to be booked in the existing bookkeeping task queue.

[0047] Optionally, the above process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data and the transaction data of the bookkeeping tasks with the same account as the transaction to be booked in the existing bookkeeping task queue includes: checking whether the difference between the transferable balance of the corresponding debit account and the transfer amount of the associated transfer bookkeeping task in the existing bookkeeping task queue is less than the transfer amount of the transaction to be booked, and determining that the transaction data of the transaction to be booked meets the bookkeeping requirements when the corresponding difference is not less than the transfer amount of the transaction to be booked, wherein the associated transfer bookkeeping task is the bookkeeping task corresponding to the transfer transaction with the same debit account as the transaction to be booked.

[0048] Optionally, the process of checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data and the transaction data of the bookkeeping task with the same account as the transaction to be booked in the existing bookkeeping task queue includes: when the difference between the transferable balance of the above-mentioned corresponding debit account and the transfer amount of the associated transfer bookkeeping task in the existing bookkeeping task queue is less than the transfer amount of the transaction to be booked, determining that the transaction data of the transaction to be booked meets the bookkeeping requirements and determining that the transaction data of the transaction to be booked does not meet the bookkeeping requirements.

[0049] Specifically, it is also possible to check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping association data and other information such as the priority of the bookkeeping tasks in the existing bookkeeping task queue that have the same transaction account as the transaction to be booked.

[0050] It is understandable that when there is a bookkeeping task corresponding to an account that needs to bookkeeping transactions in an existing bookkeeping queue, the information of the corresponding bookkeeping task will also affect whether the transaction that needs to be bookkeeping can be successful. Therefore, it is necessary to check whether the transaction data of the transaction that needs to be bookkeeping meets the bookkeeping requirements based on the bookkeeping task corresponding to the account that needs to bookkeeping transactions in the existing bookkeeping queue.

[0051] Step 103, when the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task of the transaction to be booked is established, and the bookkeeping task of the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue. This step can facilitate writing the transaction data of the transaction to be booked into the database of the server based on the latest bookkeeping task queue.

[0052] Specifically, the above-mentioned bookkeeping task of establishing transactions that require bookkeeping may include: locally recording the debit and credit accounts, transaction amounts and account balances of corresponding accounts involved in the transactions that require bookkeeping, and generating a database write task based on the recorded data to obtain the bookkeeping task of the above-mentioned transactions that require bookkeeping.

[0053] Specifically, the bookkeeping task of the transaction to be booked may be added to the existing bookkeeping task queue based on priority rules, task type rules and / or dependency rules.

[0054] Specifically, when the transaction data of the transaction requiring bookkeeping meets the bookkeeping requirements, a bookkeeping task for the transaction requiring bookkeeping can be established.

[0055] Step 104, write the transaction data of the transaction to be booked into the database on the server side based on the latest bookkeeping task queue. This step is based on steps 101 to 103, by obtaining the target bookkeeping-related data from the local bookkeeping database based on the account information of the transaction to be booked at the transaction application end, and obtaining the target bookkeeping-related data from the local bookkeeping database based on the account information of the transaction to be booked. When the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task for the transaction to be booked is established, and the bookkeeping task for the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue. Finally, based on the latest bookkeeping task queue, the transaction data of the transaction to be booked is written into the database on the server side. When the transaction data bookkeeping is performed, there is no need to retrieve the corresponding data object from the database on the server side and occupy it exclusively, thereby avoiding deadlock of data resources. Moreover, when the bookkeeping of hot accounts is frequent, there is no need to reject the bookkeeping request, thereby improving the user experience.

[0056] Specifically, the above-mentioned process of writing the transaction data of the transactions to be booked into the database on the server side based on the latest bookkeeping task queue can be based on execution rules such as priority processing rules, first-in-first-out rules and / or resource allocation rules, and execute and process each bookkeeping task in the latest bookkeeping task queue, including the bookkeeping tasks corresponding to the transactions to be booked.

[0057] Optionally, when the transaction to be booked includes multiple transactions, the bookkeeping tasks corresponding to each transaction are executed based on the first-in-first-out rule.

[0058] Optionally, the transaction data bookkeeping processing method provided by the embodiment of the present invention further includes: when the transaction data of the transaction to be booked meets the bookkeeping requirements, updating the local bookkeeping database based on the transaction data of the transaction to be booked.

[0059] Specifically, the balance information of the account involved, such as the transferable balance, can be determined based on the transaction data of the transaction to be booked, and the bookkeeping related data of the corresponding account in the local bookkeeping database can be updated based on the balance information of the account involved.

[0060] The following further introduces the transaction data bookkeeping processing method, such as Figure 3 As shown, Figure 1 Step 103 in the method may include the following steps:

[0061] Step 1031, for each account corresponding to the transaction to be booked, a corresponding bookkeeping task is established to obtain multiple bookkeeping tasks for the transaction to be booked.

[0062] It is understandable that a transaction requiring bookkeeping involves at least two accounts, and the accounts involved in the transaction requiring bookkeeping can be understood as the accounts corresponding to the above-mentioned transactions requiring bookkeeping.

[0063] In a specific example, if Figure 5 As shown, the accounts corresponding to transactions 1 and 2 that need to be booked include account A, account B and account C. For transactions 1 and 2, one bookkeeping task for account A, two bookkeeping tasks for account B and one bookkeeping task for account C are established respectively, resulting in four bookkeeping tasks for transaction 1 and four bookkeeping tasks for transaction 2.

[0064] Step 1032, sorting the multiple bookkeeping tasks of the transactions to be booked based on the corresponding accounts to obtain a bookkeeping task sequence corresponding to the transactions to be booked.

[0065] Specifically, multiple bookkeeping tasks of the transactions to be booked may be arranged in ascending or descending order based on corresponding accounts to obtain a bookkeeping task sequence corresponding to the transactions to be booked.

[0066] Specifically, the corresponding accounts may be arranged based on the last digit of the account and the dependency relationship between the various bookkeeping tasks to obtain a bookkeeping task sequence corresponding to the transactions to be booked.

[0067] Step 1033, based on the bookkeeping task sequence corresponding to the transaction to be booked, multiple bookkeeping tasks of the transaction to be booked are added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue.

[0068] Specifically, based on the order determined by the bookkeeping task sequence corresponding to the transaction to be booked, multiple bookkeeping tasks of the transaction to be booked can be added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue.

[0069] The embodiments of the present invention can help avoid resource contention caused by disordered processing order within a transaction and avoid data resource deadlock.

[0070] The following further introduces the transaction data bookkeeping processing method, such as Figure 3 As shown, Figure 1 Step 104 in may include the following steps:

[0071] Step 1041, based on the task characteristics of the bookkeeping tasks in the latest bookkeeping task queue, determine the execution rules of the bookkeeping tasks in the latest bookkeeping task queue.

[0072] Specifically, the task characteristics of the above-mentioned bookkeeping tasks include the type of each bookkeeping task, the total number of bookkeeping tasks, and the establishment time of each bookkeeping task.

[0073] Optionally, the process of determining the execution rule of the bookkeeping task in the latest bookkeeping task queue based on the task characteristics of the bookkeeping task in the latest bookkeeping task queue includes:

[0074] When the number of bookkeeping tasks is less than a preset number threshold, the execution rule is determined to be a first-in-first-out rule.

[0075] Specifically, the above-mentioned preset quantity threshold can be determined based on experience.

[0076] Optionally, the process of determining the execution rule of the bookkeeping task in the latest bookkeeping task queue based on the task characteristics of the bookkeeping task in the latest bookkeeping task queue includes:

[0077] When the maximum interval length of multiple bookkeeping tasks corresponding to the same account in the latest bookkeeping task queue is not greater than the preset time threshold, the execution rule of the corresponding multiple bookkeeping tasks is determined to merge the corresponding multiple bookkeeping tasks.

[0078] Specifically, the preset time threshold may be set based on experience, and may be set to 100 ms, for example.

[0079] Optionally, the process of determining the execution rules of the bookkeeping tasks in the latest bookkeeping task queue based on the task characteristics of the bookkeeping tasks in the latest bookkeeping task queue includes: determining the above execution rules to first process the debit bookkeeping tasks and then the credit bookkeeping tasks for multiple bookkeeping tasks corresponding to the same account.

[0080] Step 1042, executing and processing corresponding bookkeeping tasks based on the execution rules to write the transaction data of the transactions to be booked into the database on the server side.

[0081] Optionally, the above process of executing and processing corresponding bookkeeping tasks based on execution rules includes: obtaining the bookkeeping tasks corresponding to the transactions to be booked based on the serial number or event number of the transactions to be booked, and calling the corresponding data server to write the transaction data of the transactions to be booked into the server-side database.

[0082] This step can help to quickly release queue resources for hotspot accounts and reduce the time and resources required for the inspection process.

[0083] The transaction data bookkeeping processing method provided by the embodiment of the present invention is further described below. Figure 4 As shown, it may include:

[0084] Step 401 : acquiring target bookkeeping associated data from a local bookkeeping database based on account information of the transaction to be booked, where the target bookkeeping associated data is data associated with transaction data of the transaction to be booked.

[0085] Step 402: Check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data.

[0086] Step 403, when the transaction data of the transaction to be booked meets the bookkeeping requirements, a successful transaction result is generated and displayed, and a bookkeeping task for the transaction to be booked is established.

[0087] Step 404, adding the bookkeeping task of the transaction to be booked into the existing bookkeeping task queue to obtain the latest bookkeeping task queue.

[0088] Specifically, the process of generating and displaying the result of a successful transaction includes: generating a display interface of a successful transaction, and displaying the display interface.

[0089] Step 405: Write the transaction data of the transaction to be booked into the database on the server side based on the latest bookkeeping task queue.

[0090] The embodiments of the present invention can process bookkeeping operations asynchronously, shorten resource waiting time during transactions, shorten the overall time consumption of bookkeeping processing, obtain transaction results as quickly as possible and display them to users, and further improve user experience.

[0091] Figure 6 It is a structural diagram of a transaction data bookkeeping processing device provided in an embodiment of the present invention. The device is integrated in a transaction application end and is suitable for executing a transaction data bookkeeping processing method provided in an embodiment of the present invention.

[0092] like Figure 6 As shown, the device may specifically include:

[0093] The associated data acquisition module 601 is used to acquire target bookkeeping associated data from the local bookkeeping database based on the account information of the transaction to be booked, where the target bookkeeping associated data is data associated with the transaction data to be booked. This enables the transaction data to be booked without the need to retrieve the corresponding data object from the database of the server and occupy it exclusively when the transaction data is booked, and facilitates checking whether the transaction data of the transaction to be booked meets the requirements based on the target bookkeeping associated data.

[0094] The checking module 602 is used to check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data, which can be helpful to obtain the transaction to be booked that meets the bookkeeping requirements, establish the corresponding bookkeeping task and add the corresponding bookkeeping task to the existing bookkeeping task queue.

[0095] Optionally, the transaction to be booked is a transfer transaction, the target bookkeeping associated data includes the transferable balance of the debit account of the transaction to be booked, and the transaction data of the transaction to be booked includes the transfer amount of the transaction to be booked.

[0096] Optionally, the checking module 602 can be specifically used to check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data and the existing bookkeeping task queue.

[0097] Optionally, the checking module 602 can be specifically used to check whether the difference between the transferable balance of the corresponding debit account and the transfer amount of the associated transfer bookkeeping task in the existing bookkeeping task queue is less than the transfer amount of the transaction to be booked, and determine that the transaction data of the transaction to be booked meets the bookkeeping requirements when the corresponding difference is not less than the transfer amount of the transaction to be booked;

[0098] The associated transfer bookkeeping task is a bookkeeping task corresponding to a transfer transaction that is the same as the debit account of the transaction to be booked.

[0099] The queue joining module 603 is used to establish a bookkeeping task for the transaction to be booked when the transaction data of the transaction to be booked meets the bookkeeping requirements, and add the bookkeeping task for the transaction to be booked to the existing bookkeeping task queue to obtain the latest bookkeeping task queue. This can facilitate writing the transaction data of the transaction to be booked into the database of the server based on the latest bookkeeping task queue.

[0100] Optionally, the queue joining module 603 can be specifically used to establish corresponding bookkeeping tasks for each account corresponding to the transaction to be booked, respectively, to obtain multiple bookkeeping tasks for the transaction to be booked;

[0101] Sort multiple bookkeeping tasks of the transactions to be booked based on corresponding accounts to obtain a bookkeeping task sequence corresponding to the transactions to be booked; and

[0102] Based on the bookkeeping task sequence corresponding to the transaction to be booked, multiple bookkeeping tasks of the transaction to be booked are added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue.

[0103] The database writing module 604 is used to write the transaction data of the transaction to be booked into the database on the server side based on the latest bookkeeping task queue. In combination with modules 601 to 603, by obtaining the target bookkeeping-related data from the local bookkeeping database based on the account information of the transaction to be booked at the transaction application end, and obtaining the target bookkeeping-related data from the local bookkeeping database based on the account information of the transaction to be booked, when the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task for the transaction to be booked is established, and the bookkeeping task for the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue, and finally the transaction data of the transaction to be booked is written into the database on the server side based on the latest bookkeeping task queue, so that when the transaction data bookkeeping is processed, there is no need to retrieve the corresponding data object from the database on the server side and occupy it exclusively, so as to avoid deadlock of data resources, and when the bookkeeping of hot accounts is frequent, there is no need to reject the bookkeeping request, so as to improve the user experience.

[0104] Optionally, the database writing module 604 can be specifically used to determine the execution rules of the bookkeeping tasks in the latest bookkeeping task queue based on the task characteristics of the bookkeeping tasks in the latest bookkeeping task queue; and

[0105] Based on the execution rules, the corresponding bookkeeping tasks are processed to write the transaction data of the transactions to be booked into the database on the server side.

[0106] Optionally, the database writing module 604 can be specifically used to determine the execution rule as a first-in-first-out rule when the number of bookkeeping tasks is less than a preset number threshold.

[0107] Optionally, the database writing module 604 can be specifically used to determine the execution rules of the corresponding multiple bookkeeping tasks as merging the corresponding multiple bookkeeping tasks when the maximum interval length of multiple bookkeeping tasks corresponding to the same account in the latest bookkeeping task queue is not greater than a preset time threshold.

[0108] Optionally, the transaction data bookkeeping processing device provided by the embodiment of the present invention further includes: a local bookkeeping database data determination module, which is used to update the local bookkeeping database based on the transaction data of the transaction to be booked when the transaction data of the transaction to be booked meets the bookkeeping requirements.

[0109] Optionally, the local bookkeeping database data determination module is further used to obtain target bookkeeping associated data from a database on the server side, and store the target bookkeeping associated data in the local bookkeeping database.

[0110] Optionally, the transaction data bookkeeping processing device provided by the embodiment of the present invention further includes: a bookkeeping result processing module, which is used to generate and display a successful transaction result when the transaction data of the transaction to be booked meets the bookkeeping requirements.

[0111] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0112] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the transaction data bookkeeping processing method provided in any of the above embodiments is implemented.

[0113] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the transaction data bookkeeping processing method provided by any of the above embodiments is implemented.

[0114] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the transaction data bookkeeping processing method as described in any one of the embodiments of the present invention.

[0115] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer system 700 of an electronic device suitable for implementing an embodiment of the present invention. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0116] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0117] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 705 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed.

[0118] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 701, the above-mentioned functions defined in the system of the present invention are executed.

[0119] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be set in a processor, for example, it may be described as: a processor includes an associated data acquisition module, a check module, a queue joining module, and a database writing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves.

[0122] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining target bookkeeping associated data from a local bookkeeping database based on the account information of the transaction to be booked, the target bookkeeping associated data being data associated with the transaction data of the transaction to be booked; checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data; when the transaction data of the transaction to be booked meets the bookkeeping requirements, establishing a bookkeeping task for the transaction to be booked, and adding the bookkeeping task for the transaction to be booked to the existing bookkeeping task queue to obtain the latest bookkeeping task queue; and writing the transaction data of the transaction to be booked into the database on the server side based on the latest bookkeeping task queue.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A transaction data bookkeeping processing method, applied to a transaction application end, characterized in that: include: Acquire target bookkeeping associated data from a local bookkeeping database based on account information of the transaction to be booked, wherein the target bookkeeping associated data is data associated with transaction data of the transaction to be booked; Checking whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping association data; When the transaction data of the transaction to be booked meets the bookkeeping requirements, a bookkeeping task of the transaction to be booked is established, and the bookkeeping task of the transaction to be booked is added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue; as well as The transaction data of the transaction to be booked is written into a database on the server side based on the latest bookkeeping task queue.

2. The transaction data bookkeeping processing method according to claim 1, characterized in that: Also includes: When the transaction data of the transaction requiring bookkeeping meets the bookkeeping requirements, updating the local bookkeeping database based on the transaction data of the transaction requiring bookkeeping; and / or When the transaction data of the transaction to be booked meets the bookkeeping requirements, a successful transaction result is generated and displayed.

3. The transaction data bookkeeping processing method according to claim 1, characterized in that: The transaction requiring bookkeeping is a transfer transaction, the target bookkeeping associated data includes the transferable balance of the debit account of the transaction requiring bookkeeping, and the transaction data of the transaction requiring bookkeeping includes the transfer amount of the transaction requiring bookkeeping; The checking, based on the target bookkeeping association data, whether the transaction data of the transaction to be booked meets the bookkeeping requirements includes: Check whether the difference between the transferable balance of the corresponding debit account and the transfer amount of the associated transfer bookkeeping task in the existing bookkeeping task queue is less than the transfer amount of the transaction to be booked, and determine that the transaction data of the transaction to be booked meets the bookkeeping requirements when the corresponding difference is not less than the transfer amount of the transaction to be booked; The associated transfer bookkeeping task is a bookkeeping task corresponding to a transfer transaction having the same debit account as the transaction requiring bookkeeping.

4. The transaction data bookkeeping processing method according to claim 1, characterized in that: The step of writing the transaction data of the transaction to be booked into a database on the server side based on the latest bookkeeping task queue includes: Determining execution rules of the bookkeeping tasks in the latest bookkeeping task queue based on the task characteristics of the bookkeeping tasks in the latest bookkeeping task queue; and Based on the execution rules, the corresponding bookkeeping tasks are processed to write the transaction data of the transactions to be book-recorded into the database on the server side.

5. The transaction data bookkeeping processing method according to claim 4, characterized in that: The determining, based on the task characteristics of the bookkeeping tasks in the latest bookkeeping task queue, the execution rules of the bookkeeping tasks in the latest bookkeeping task queue comprises: When the number of the bookkeeping tasks is less than a preset number threshold, determining the execution rule as a first-in-first-out rule; and / or When the maximum interval length of multiple bookkeeping tasks corresponding to the same account in the latest bookkeeping task queue is not greater than the preset time threshold, the execution rule of the corresponding multiple bookkeeping tasks is determined to merge the corresponding multiple bookkeeping tasks.

6. The transaction data bookkeeping processing method according to claim 1, characterized in that: Before acquiring target bookkeeping associated data from the local bookkeeping database based on the account information of the transaction to be bookkeeping, the transaction data bookkeeping processing method further includes: The target bookkeeping associated data is obtained from a database on the server side, and the target bookkeeping associated data is stored in the local bookkeeping database.

7. The transaction data bookkeeping processing method according to claim 1, characterized in that: The step of establishing the bookkeeping task of the transaction to be booked, and adding the bookkeeping task of the transaction to be booked to an existing bookkeeping task queue to obtain a latest bookkeeping task queue includes: For each account corresponding to the transaction to be booked, a corresponding bookkeeping task is established to obtain multiple bookkeeping tasks for the transaction to be booked; Sorting the multiple bookkeeping tasks of the transactions to be booked based on corresponding accounts to obtain a bookkeeping task sequence corresponding to the transactions to be booked; and Based on the bookkeeping task sequence corresponding to the transaction requiring bookkeeping, multiple bookkeeping tasks of the transaction requiring bookkeeping are added to the existing bookkeeping task queue to obtain the latest bookkeeping task queue.

8. A transaction data bookkeeping processing device, integrated in a transaction application terminal, characterized in that: include: A related data acquisition module, used for acquiring target bookkeeping related data from a local bookkeeping database based on the account information of the transaction to be booked, wherein the target bookkeeping related data is data associated with the transaction data of the transaction to be booked; A checking module, configured to check whether the transaction data of the transaction to be booked meets the bookkeeping requirements based on the target bookkeeping associated data; A queue adding module, used for establishing a bookkeeping task for the transaction to be booked when the transaction data of the transaction to be booked meets the bookkeeping requirements, and adding the bookkeeping task for the transaction to be booked to the existing bookkeeping task queue to obtain the latest bookkeeping task queue; as well as The database writing module is used to write the transaction data of the transaction to be booked into the database of the server based on the latest bookkeeping task queue.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the transaction data bookkeeping processing method as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the transaction data bookkeeping processing method as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Transaction bookkeeping service data processing method, device and system

    CN111352719A

  • Transaction bookkeeping processing method and device

    CN117435317A

  • Bookkeeping processing method and device for transaction data, equipment and storage medium

    CN117474681A

  • A method and system for automated book-keeping

    EP1231553A1