Account multi-level linkage system and method
Through the multi-level account linkage system and methods, the multi-level account linkage problem during large-scale system switching is solved, efficient transaction processing and system performance maintenance are achieved, and complete operation status and consistency are provided.
Patent Information
- Application Number
- CN202110780222.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-09
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2041-07-09
AI Technical Summary
During the switching of large systems, the existing technology lacks multi-level linkage methods for account, which leads to the inability to pre-rout and may have transaction security problems. Especially when switching between new and old systems, the balance and linkage conditions of the account can only be linked in sequence, and efficient multi-level linkage cannot be achieved.
A multi-level linkage system and method for account is proposed, including a linkage parameter setting module, a linkage device and a distribution device. By setting up a linkage parameter table, a multi-level linkage of accounts is realized, avoid cross-system synchronization, and keep the original system performance unaffected.
It realizes efficient multi-level account linkage during large-scale system switching, keeps the original system performance unaffected, provides a complete operating state, facilitates subsequent review and troubleshooting, and ensures transaction consistency.
Smart Images

Figure CN113448991B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed technologies, and particularly to an account multi-level linkage system and method. Background Art
[0002] In large-scale systems, high-performance national large-volume services are provided. When a new system of a large-scale system has been developed, for security reasons, it needs to be switched in parts. Since the switching period may be relatively long (such as 1 - 2 years), any transaction not only needs to consider the processing of a single old system or a single new system (distributed), but also needs to consider transactions across the old and new systems. Since the accounts triggering multi-level linkages are not within the transaction elements, there is a problem of inability to route in advance. In addition, the linked accounts may exist in the new system and the old system. If the system is a mainframe system, external calls may not be allowed due to considerations of transaction security. Due to the limitations of the balance of the account itself, the transferred balance, and the linkage conditions, multi-level linkages can only be carried out sequentially. Therefore, there is currently a lack of an account multi-level linkage method. Summary of the Invention
[0003] An embodiment of the present invention provides an account multi-level linkage system for implementing account multi-level linkages. The system includes:
[0004] A linkage parameter setting module, configured to: set the field values of each banking system in the linkage parameter table;
[0005] A linkage device, configured to: after receiving a linkage request sent by a banking system, query the linkage parameter table, determine whether the current account of the banking system meets the trigger condition, and if so, read the linkage parameter table to obtain the linked account of the current account of the banking system; generate a linkage transaction based on the current account and the linked account; receive the result of the linkage transaction;
[0006] A distribution device, configured to: split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to the banking system, and receive the transaction result of the atomic transaction corresponding to the current account returned; send the atomic transaction corresponding to the linked account to the banking system corresponding to the linked account, and receive the transaction result of the atomic transaction corresponding to the linked account; splice the transaction results of the atomic transaction corresponding to the current account and the transaction results of the atomic transaction corresponding to the linked account to generate a linkage transaction result, and send it to the linkage device.
[0007] An embodiment of the present invention provides an account multi-level linkage method for implementing account multi-level linkages. The method includes:
[0008] Set the field values of each banking system in the linkage parameter table;
[0009] After receiving a linkage request sent by a banking system, query the linkage parameter table to determine whether the current account of the banking system meets the trigger condition. If so, read the linkage parameter table to obtain the linked account of the current account of the banking system.
[0010] Generate a linkage transaction based on the current account and the linked account.
[0011] Split the linkage transaction into atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account.
[0012] Send the atomic transaction corresponding to the current account to the banking system and receive the transaction result of the atomic transaction corresponding to the current account.
[0013] Send the atomic transaction corresponding to the linked account to the banking system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account.
[0014] Concatenate the transaction results of the atomic transaction corresponding to the current account and the transaction results of the atomic transaction corresponding to the linked account to generate a linkage transaction result and send it to the linkage device.
[0015] An embodiment of the present invention also proposes a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above account multi-level linkage method is implemented.
[0016] An embodiment of the present invention also proposes a computer-readable storage medium, which stores a computer program for executing the above account multi-level linkage method.
[0017] In an embodiment of the present invention, a linkage parameter setting module is configured to: set field values of each banking system in a linkage parameter table; a linkage device is configured to: after receiving a linkage request sent by a banking system, query the linkage parameter table, determine whether the current account of the banking system meets the trigger condition, and if so, read the linkage parameter table to obtain the linked account of the current account of the banking system; generate a linkage transaction according to the current account and the linked account; receive a linkage transaction result; a distribution device is configured to: split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to the banking system and receive the transaction result of the atomic transaction corresponding to the current account returned; send the atomic transaction corresponding to the linked account to the banking system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account; splice the transaction result of the atomic transaction corresponding to the current account and the transaction result of the atomic transaction corresponding to the linked account to generate a linkage transaction result and send it to the linkage device. In the above process, multi-level linkage does not require cross-system synchronization of accounts and does not affect the performance of the original system's original account operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts. In the drawings:
[0019] Figure 1 It is a schematic diagram of an account multi-level linkage system in an embodiment of the present invention;
[0020] Figure 2 It is another schematic diagram of an account multi-level linkage system in an embodiment of the present invention;
[0021] Figure 3 It is a flowchart of an account multi-level linkage method in an embodiment of the present invention;
[0022] Figure 4 It is another flowchart of an account multi-level linkage method in an embodiment of the present invention;
[0023] Figure 5 It is a schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] In order to make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer and more understandable, the following will further describe the embodiments of the present invention in detail with reference to the drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but not to limit the present invention.
[0025] In the description of this specification, the terms "comprising", "including", "having", "containing", etc. are all open-ended terms, meaning including but not limited to. The description referring to terms such as "one embodiment", "one specific embodiment", "some embodiments", "for example", etc. means that the specific features, structures or characteristics described in connection with that embodiment or example are included in at least one embodiment or example of this application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. The order of steps involved in each embodiment is used to schematically illustrate the implementation of this application, and the order of steps is not limited and can be adjusted appropriately as needed.
[0026] Figure 1 It is a schematic diagram of the account multi-level linkage system in an embodiment of the present invention. As Figure 1 shown, the system includes:
[0027] A linkage parameter setting module, which is used to: set the field values of each bank system in the linkage parameter table;
[0028] A linkage device, which is used to: after receiving a linkage request sent by a bank system, query the linkage parameter table, judge whether the current account of this bank system meets the trigger condition. If so, read the linkage parameter table to obtain the linked account of the current account of this bank system; generate a linkage transaction according to the current account and the linked account; receive the linkage transaction result;
[0029] A distribution device, which is used to: split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to this bank system and receive the transaction result of the atomic transaction corresponding to the current account returned; send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account; splice the transaction result of the atomic transaction corresponding to the current account and the transaction result of the atomic transaction corresponding to the linked account to generate a linkage transaction result and send it to the linkage device.
[0030] In the embodiment of the present invention, multi-level linkage does not require cross-system synchronization of accounts and does not affect the performance of the original system's original account operations.
[0031] In specific implementation, multi-level account linkage means that in some large enterprises, there are multi-level organizations for enterprise management and corresponding multi-level accounts. To achieve the balance management of accounts, a mechanism for multi-level linkage of account balances is used in banks, such as 4-level linkage. A<-B<-C<-D. For example, when the balance of account D exceeds a certain upper limit, the balance will be transferred to C according to certain rules, and the same mechanism is applied to accounts C and B. In this way, a transaction may implicitly trigger an account linkage operation that is not easily noticed by users. The linkage of accounts is managed separately from the accounts, and the operations and management of the accounts are still carried out according to each bank system or according to a distributed management strategy within the bank system.
[0032] In addition, in the embodiments of the present invention, the bank system can be an old system or a new system. If the new system is deployed in a distributed manner, there can be multiple of them. Table 1 is an example of a linkage parameter table. Among them, the account number is the current account number, that is, the account that initiates the linkage. There are various linkage methods. For example, the balance is pushed to the linked account, or vice versa. The trigger condition can be, for example, the balance reaching the trigger condition, and the result after triggering can be, for example, the remaining balance after the transfer. The linkage parameter setting module is used to set the field values in Table 1, including multiple account numbers of multiple bank systems, and update Table 1 in real time. Table 1 can be synchronized to each bank system. The linkage parameter setting module can be deployed in a system with low pressure and a central geographical location (relatively close to the computer rooms of other systems), which can improve the efficiency of synchronization to each bank system.
[0033] Table 1
[0034]
[0035]
[0036] Figure 2 This is another schematic diagram of the multi-level account linkage system in the embodiments of the present invention. In one embodiment, there are multiple linkage devices, multiple distribution devices, and multiple linkage parameter tables. Among them, one bank system corresponds to one linkage device, one distribution device, and one linkage parameter table respectively;
[0037] The linkage parameter setting module is specifically used for: setting the field values of the linkage parameter table corresponding to each bank system;
[0038] The linkage device is specifically used for: after receiving the linkage request sent by the corresponding bank system, querying the corresponding linkage parameter table, judging whether the current account of the corresponding bank system meets the trigger condition. If so, reading the corresponding linkage parameter table to obtain the linked account of the current account of the bank system; generating a linkage transaction according to the current account and the linked account; receiving the result of the linkage transaction;
[0039] The distribution device is specifically used for: splitting the linked transaction into atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account; sending the atomic transactions corresponding to the current account to the corresponding banking system and receiving the transaction results of the atomic transactions corresponding to the current account returned; sending the atomic transactions corresponding to the linked account to the banking system corresponding to the linked account and receiving the transaction results of the atomic transactions corresponding to the linked account; splicing the transaction results of the atomic transactions corresponding to the current account and the transaction results of the atomic transactions corresponding to the linked account to generate a linked transaction result and sending it to the corresponding linkage device.
[0040] Figure 1 and Figure 2 The biggest difference is that the deployment methods of the account multi-level linkage system are different. In Figure 1 , both the linkage device and the distribution device can communicate with all banking systems. The linkage device can receive linkage requests sent by all banking systems, and the linkage parameter table stores the field values of all banking systems. While Figure 2 In, the linkage device only communicates with the corresponding banking system, can only receive linkage requests sent by the corresponding banking system, the distribution device can communicate with multiple banking systems, and the linkage parameter table only stores the field values of the corresponding banking system.
[0041] In an embodiment, the distribution device is further used for:
[0042] When there are multiple atomic transactions corresponding to the current account and multiple atomic transactions corresponding to the linked account, according to the transaction order, send the atomic transactions corresponding to the current account to the banking system and send the atomic transactions corresponding to the linked account to the banking system corresponding to the linked account.
[0043] In an embodiment, the linkage device is further used for:
[0044] After receiving the linked transaction result, record the linked operation log.
[0045] In an embodiment, the linkage request is sent through a message queue. The message queue is a one-way asynchronous operation, avoiding the external call operation of the host of the new system or the old system. In the high-performance operation of the host, it will not cause a performance bottleneck to the existing transactions. When the message queue is unblocked, its connection speed will be very fast. In Figure 1 's account multi-level linkage system, after each banking system processes a transaction (or atomic transaction), it sends a linkage request to the linkage device, and the linkage device is responsible for judging whether the trigger condition is met. If it is always met, multi-level account linkage can be achieved until the current account of a certain banking system does not meet the trigger condition and the linkage ends. In Figure 2In the multi-level linked account system, the principle of multi-level linkage is the same. However, after each bank system processes a transaction (or atomic transaction), it sends a linkage request to the corresponding linkage device.
[0046] In addition, in the old and new systems of the bank, the proportion of multi-level linked accounts is very small. Therefore, the main logic for reforming the old and new systems will cause a decline in the performance of other transactions. Therefore, the embodiment of the present invention proposes a multi-level linked account system that is independent from the existing old and new systems. The processing logic of multi-level linked accounts is relatively centralized, which can improve the processing efficiency.
[0047] In summary, in the system proposed in the embodiment of the present invention, the linkage parameter setting module is used to: set the field values of each bank system in the linkage parameter table; the linkage device is used to: after receiving a linkage request sent by a bank system, query the linkage parameter table, judge whether the current account of the bank system meets the trigger condition. If so, read the linkage parameter table to obtain the linked account of the current account of the bank system; generate a linkage transaction according to the current account and the linked account; receive the result of the linkage transaction; the distribution device is used to: split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to the bank system and receive the transaction result of the atomic transaction corresponding to the current account returned; send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account; splice the transaction result of the atomic transaction corresponding to the current account and the transaction result of the atomic transaction corresponding to the linked account to generate a linkage transaction result and send it to the linkage device. In the above process, multi-level linkage does not require cross-system synchronization of accounts and does not affect the performance of the original account operations of the original system. In addition, the transfer of an account and the transfer operation of another account can relatively easily achieve transaction consistency due to single-point control. If a linkage link fails, the successfully completed linkage operations are complete. Finally, a complete multi-level linkage operation state is provided, which is convenient for subsequent reference and troubleshooting.
[0048] The embodiment of the present invention also proposes a method for multi-level linked accounts. The principle is similar to that of the multi-level linked account system and will not be elaborated here.
[0049] Figure 3 It is a flowchart of the method for multi-level linked accounts in the embodiment of the present invention. As Figure 3 shown, it includes:
[0050] Step 301, set the field values of each bank system in the linkage parameter table;
[0051] Step 302, after receiving a linkage request sent by a bank system, query the linkage parameter table to determine whether the current account of the bank system meets the trigger condition. If so, read the linkage parameter table to obtain the linked account of the current account of the bank system;
[0052] Step 303, generate a linkage transaction based on the current account and the linked account;
[0053] Step 304, split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account;
[0054] Step 305, send the atomic transaction corresponding to the current account to the bank system and receive the transaction result of the atomic transaction corresponding to the current account returned;
[0055] Step 306, send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account;
[0056] Step 307, splice the transaction results of the atomic transaction corresponding to the current account and the transaction results of the atomic transaction corresponding to the linked account to generate a linkage transaction result and send it to the linkage device.
[0057] Figure 4 Another flowchart of the account multi-level linkage method in an embodiment of the present invention. In one embodiment, the method further includes:
[0058] Step 401, set the field values of the linkage parameter table corresponding to each bank system;
[0059] Step 402, after receiving a linkage request sent by the corresponding bank system, query the corresponding linkage parameter table to determine whether the current account of the corresponding bank system meets the trigger condition. If so, read the corresponding linkage parameter table to obtain the linked account of the current account of the bank system;
[0060] Step 403, generate a linkage transaction based on the current account and the linked account;
[0061] Step 404, split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account;
[0062] Step 405, send the atomic transaction corresponding to the current account to the corresponding bank system and receive the transaction result of the atomic transaction corresponding to the current account returned;
[0063] Step 406, send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account and receive the transaction result of the atomic transaction corresponding to the linked account;
[0064] Step 407: splice the transaction results of the atomic transactions corresponding to the current account and the transaction results of the atomic transactions corresponding to the linked account to generate a linked transaction result.
[0065] In one embodiment, the method further includes:
[0066] When there are multiple atomic transactions corresponding to the current account and multiple atomic transactions corresponding to the linked account, according to the transaction order, send the atomic transactions corresponding to the current account to the bank system, and send the atomic transactions corresponding to the linked account to the bank system corresponding to the linked account.
[0067] In one embodiment, the method further includes:
[0068] After receiving the linked transaction result, record the linked operation log.
[0069] In one embodiment, the linked request is sent through a message queue.
[0070] In summary, in the method proposed in the embodiment of the present invention, set the field values of each bank system in the linked parameter table; after receiving a linked request sent by a bank system, query the linked parameter table to determine whether the current account of the bank system meets the trigger condition. If so, read the linked parameter table to obtain the linked account of the current account of the bank system; generate a linked transaction according to the current account and the linked account; split the linked transaction into atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account; send the atomic transactions corresponding to the current account to the bank system and receive the transaction results of the atomic transactions corresponding to the current account returned; send the atomic transactions corresponding to the linked account to the bank system corresponding to the linked account and receive the transaction results of the atomic transactions corresponding to the linked account; splice the transaction results of the atomic transactions corresponding to the current account and the transaction results of the atomic transactions corresponding to the linked account to generate a linked transaction result and send it to the linked device. In the above process, multi-level linkage does not require cross-system synchronization of accounts and does not affect the performance of the original system's original account operations. In addition, the transfer of an account and the transfer operation of another account can relatively easily achieve transaction consistency due to single-point control. If a failure occurs in a certain linked link, the successfully completed linked operations are complete. Finally, a complete multi-level linkage operation status is provided, facilitating subsequent review and troubleshooting.
[0071] An embodiment of the present invention also provides a computer device, Figure 5 is a schematic diagram of the computer device in the embodiment of the present invention. The computer device can implement all steps in the account multi-level linkage method in the above embodiment. The computer device specifically includes the following content:
[0072] A processor 501, a memory 502, a communications interface 503, and a communication bus 504;
[0073] Among them, the processor 501, the memory 502, and the communications interface 503 communicate with each other through the communication bus 504; the communications interface 503 is used to implement information transmission between related devices such as server-side devices, detection devices, and client-side devices;
[0074] The processor 501 is used to call a computer program in the memory 502, and when the processor executes the computer program, all steps in the account multi-level linkage method in the above embodiments are implemented.
[0075] An embodiment of the present invention also provides a computer-readable storage medium that can implement all steps in the account multi-level linkage method in the above embodiments. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, all steps in the account multi-level linkage method in the above embodiments are implemented.
[0076] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0077] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of processes and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the specified functions in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0078] These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured product including an instruction device, and the instruction device implements the processFigure 1 one process or multiple processes and / or boxes Figure 1 the functions specified in one box or multiple boxes.
[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one process or multiple processes and / or boxes Figure 1 the functions specified in one box or multiple boxes.
[0080] In the specific embodiments described above, the objectives, technical solutions, and beneficial effects of the present invention have been further described in detail. It should be understood that the above are only specific embodiments of the present invention and are not used to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-level account linkage system, characterized in that: There is no need to synchronize accounts across systems. Transfers out of one account and into another are controlled from a single point, including: The linkage parameter setting module is used to: set the field value of each bank system in the linkage parameter table; The linkage device is configured to: upon receiving a linkage request from a bank system, query a linkage parameter table to determine whether a current account in the bank system meets a trigger condition; if so, read the linkage parameter table to obtain a linked account of the current account in the bank system; generate a linkage transaction based on the current account and the linked account; and receive a linkage transaction result; The distribution device is configured to: split the linkage transaction into an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to the bank system and receive a returned transaction result of the atomic transaction corresponding to the current account; send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account and receive a transaction result of the atomic transaction corresponding to the linked account; concatenate the transaction results of the atomic transaction corresponding to the current account and the atomic transaction corresponding to the linked account to generate a linkage transaction result, and send the result to the linkage device; The linkage request is sent through the message queue. After each bank system processes an atomic transaction, it sends a linkage request to the linkage device, which determines whether the trigger conditions are met. If they are always met, multi-level account linkage can be achieved until the current account of a certain bank system does not meet the trigger conditions and the linkage ends.
2. The multi-level account linkage system according to claim 1, characterized in that: There are multiple linkage devices, multiple distribution devices, and multiple linkage parameter tables, wherein one banking system corresponds to one linkage device, one distribution device, and one linkage parameter table respectively; The linkage parameter setting module is specifically used to: set the field values of the linkage parameter table corresponding to each bank system; The linkage device is specifically configured to: after receiving a linkage request from a corresponding bank system, query a corresponding linkage parameter table to determine whether a current account in the corresponding bank system meets a triggering condition; if so, read the corresponding linkage parameter table to obtain a linked account of the current account in the bank system; generate a linkage transaction based on the current account and the linked account; and receive a linkage transaction result; The distribution device is specifically used to: split the linkage transaction into the atomic transaction corresponding to the current account and the atomic transaction corresponding to the linked account; send the atomic transaction corresponding to the current account to the corresponding bank system, and receive the returned transaction result of the atomic transaction corresponding to the current account; send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account, and receive the transaction result of the atomic transaction corresponding to the linked account; splice the transaction result of the atomic transaction corresponding to the current account and the transaction result of the atomic transaction corresponding to the linked account to generate a linkage transaction result, and send it to the corresponding linkage device.
3. The multi-level account linkage system according to claim 1, characterized in that: The dispensing device is also used to: When there are multiple atomic transactions corresponding to the current account and the linked account, the atomic transaction corresponding to the current account is sent to the bank system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the bank system corresponding to the linked account.
4. The multi-level account linkage system according to claim 1, characterized in that: The linkage is also used for: After receiving the linkage transaction result, record the linkage operation log.
5. A multi-level account linkage method, characterized in that: There is no need to synchronize accounts across systems. Transfers out of one account and into another are controlled from a single point, including: Set the field value of each bank system in the linkage parameter table; After receiving a linkage request from a bank system, query the linkage parameter table to determine whether the current account of the bank system meets the trigger condition. If so, read the linkage parameter table to obtain the linked account of the current account of the bank system; Generate a linkage transaction based on the current account and the linked account; Split the linked transaction into the atomic transaction corresponding to the current account and the atomic transaction corresponding to the linked account; Send the atomic transaction corresponding to the current account to the bank system, and receive the transaction result of the atomic transaction corresponding to the current account in return; Send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account, and receive the transaction result of the atomic transaction corresponding to the linked account; The transaction results of the atomic transaction corresponding to the current account and the transaction results of the atomic transaction corresponding to the linked account are combined to generate a linked transaction result, and then sent to the linkage device; The linkage request is sent through the message queue. After each bank system processes an atomic transaction, it sends a linkage request to the linkage device, which determines whether the trigger conditions are met. If they are always met, multi-level account linkage can be achieved until the current account of a certain bank system does not meet the trigger conditions and the linkage ends.
6. The multi-level account linkage method according to claim 5, characterized in that: Also includes: Set the field values of the linkage parameter table corresponding to each bank system; After receiving the linkage request sent by the corresponding bank system, query the corresponding linkage parameter table to determine whether the current account of the corresponding bank system meets the trigger condition. If so, read the corresponding linkage parameter table to obtain the linked account of the current account of the bank system; Generate a linkage transaction based on the current account and the linked account; Split the linked transaction into the atomic transaction corresponding to the current account and the atomic transaction corresponding to the linked account; Send the atomic transaction corresponding to the current account to the corresponding bank system, and receive the transaction result of the atomic transaction corresponding to the current account in return; Send the atomic transaction corresponding to the linked account to the bank system corresponding to the linked account, and receive the transaction result of the atomic transaction corresponding to the linked account; The transaction results of the atomic transaction corresponding to the current account and the transaction results of the atomic transaction corresponding to the linked account are spliced together to generate the linked transaction results.
7. The multi-level account linkage method according to claim 5, characterized in that: Also includes: When there are multiple atomic transactions corresponding to the current account and the linked account, the atomic transaction corresponding to the current account is sent to the bank system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the bank system corresponding to the linked account.
8. The multi-level account linkage method according to claim 5, characterized in that: Also includes: After receiving the linkage transaction result, record the linkage operation log.
9. A computer 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 computer program, the method according to any one of claims 5 to 8 is implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program for executing the method according to any one of claims 5 to 8.
Citation Information
Patent Citations
Flexible fund management method and device among multiple accounts
CN112215701A