Account multi-level linkage system and method across new and old systems
By designing a multi-level linkage system across new and old systems in large systems, and using linkage nodes and atomic trading mechanisms, the problem of inability to pre-routine linkage across new and old systems is solved, and efficient multi-level linkage operation is achieved without affecting the performance of the original system.
Patent Information
- Application Number
- CN202110993481.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-27
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2041-08-27
AI Technical Summary
In large systems, the multi-level linkage of accounts across new and old systems has the problem that they cannot be pre-routed, and the linked accounts may exist in the new and old systems, resulting in transaction security and performance problems.
A multi-level linkage system for account crossing new and old systems is designed. Through multiple linkage nodes, each node corresponds to a new system or old system, receives transaction success messages, querys linkage parameter tables, generates atomic transactions, and realizes multi-level linkage without synchronizing accounts across systems.
It realizes multi-level linkage between accounts across new and old systems, avoids the need to synchronize accounts across systems, does not affect the account operation performance of the original system, and provides a complete multi-level linkage operation status, which facilitates subsequent review and troubleshooting.
Smart Images

Figure CN113610530B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed technology, and in particular to a multi-level account linkage system and method across new and old systems. Background Art
[0002] In large-scale systems, high-performance national services with large business volumes are provided. In large-scale systems, new systems have been developed and need to be switched part by part for safety reasons. Since the switching period may be long (such as 1-2 years), any transaction must not only consider the processing of a single old system or a single new system (distributed), but also consider transactions across the old and new systems. Since the account that triggers multi-level linkage is not within the transaction elements, there is a problem that it cannot be pre-routed. In addition, the linked accounts may exist in the new and old systems. If the system is a host system, it may not be allowed to be transferred externally due to transaction security considerations. Multi-level linkage is limited by the account's own balance, transfer balance, and linkage conditions, so it can only be linked in sequence. Therefore, there is currently a lack of a multi-level linkage method for accounts across the old and new systems. Summary of the invention
[0003] The embodiment of the present invention proposes a multi-level linkage system for accounts across new and old systems, which is used to realize multi-level linkage of accounts across new and old systems. The system includes:
[0004] Multiple linkage nodes, where each linkage node corresponds to a new system or an old system;
[0005] Linkage nodes are used to:
[0006] Receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system;
[0007] Query the linkage parameter table to determine whether the current account meets the trigger conditions. If so, read the linkage parameter table of the corresponding system to obtain the linked account;
[0008] Generate atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account;
[0009] Send the atomic transaction corresponding to the current account to the corresponding system;
[0010] Send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account;
[0011] After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account;
[0012] Receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account.
[0013] The embodiment of the present invention proposes a method for multi-level linkage of accounts across new and old systems, which is applied to the aforementioned system to achieve multi-level linkage of accounts across new and old systems. The method includes:
[0014] Receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system;
[0015] Query the linkage parameter table to determine whether the current account meets the trigger conditions. If so, read the linkage parameter table of the corresponding system to obtain the linked account;
[0016] Generate atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account;
[0017] Send the atomic transaction corresponding to the current account to the corresponding system;
[0018] Send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account;
[0019] After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account;
[0020] Receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account.
[0021] An embodiment of the present invention further proposes a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-level account linkage method across the new and old systems when executing the computer program.
[0022] The embodiment of the present invention further proposes a computer-readable storage medium, which stores a computer program for executing the above-mentioned multi-level account linkage method across the new and old systems.
[0023] In an embodiment of the present invention, each linkage node corresponds to a new system or an old system; the linkage node is used to: receive a transaction success message of the current account sent by the corresponding system, the system being the new system or the old system; query the linkage parameter table to determine whether the current account meets the trigger condition, if so, read the linkage parameter table of the corresponding system to obtain the linked account; generate 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 system; send the atomic transaction corresponding to the linked account to the linkage node corresponding to the system corresponding to the linked account; after receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, send the transaction success message of the atomic transaction corresponding to the current account to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account; receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account. 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
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0025] Figure 1 A schematic diagram of a multi-level linkage system for accounts across new and old systems in an embodiment of the present invention;
[0026] Figure 2 This is a specific application diagram of the multi-level linkage system of accounts across new and old systems in an embodiment of the present invention;
[0027] Figure 3 Flow chart of a multi-level account linkage method across new and old systems in an embodiment of the present invention;
[0028] Figure 4 Another flow chart of the multi-level linkage method for accounts across new and old systems in an embodiment of the present invention;
[0029] Figure 5 Schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0031] In the description of this specification, the terms "include", "including", "have", "contain", etc. are all open terms, which mean including but not limited to. The descriptions with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", etc. mean that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may 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 the present application, and the order of steps is not limited and can be appropriately adjusted as needed.
[0032] Figure 1 FIG. 1 is a schematic diagram of a multi-level linkage system for accounts across new and old systems in an embodiment of the present invention. Figure 1 As shown, the system includes:
[0033] Multiple linkage nodes, where each linkage node corresponds to a new system or an old system;
[0034] Linkage nodes are used to:
[0035] Receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system;
[0036] Query the linkage parameter table to determine whether the current account meets the trigger conditions. If so, read the linkage parameter table of the corresponding system to obtain the linked account;
[0037] Generate atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account;
[0038] Send the atomic transaction corresponding to the current account to the corresponding system;
[0039] Send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account;
[0040] After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account;
[0041] Receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account.
[0042] In the embodiment of the present invention, the multi-level linkage does not require cross-system account synchronization and does not affect the performance of the original system and original account operations.
[0043] In specific implementation, multi-level account linkage means that in some large enterprises, there will be multi-level institutions and corresponding multi-level accounts managed by the enterprise. In order to achieve account balance management, a multi-level account balance linkage mechanism will be used in the bank, 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 will be used for accounts C and B. In this way, a transaction may implicitly trigger an account linkage operation that is not easily perceived by the user.
[0044] Table 1 is an example of a linkage parameter table.
[0045] Table 1
[0046]
[0047] In specific implementation, each linkage node corresponds to a new system or an old system. The new systems or old systems do not communicate with each other, but through the linkage node. The new system or the old system conducts transactions normally. Each time a transaction is successful, a transaction success message is sent to the corresponding linkage node.
[0048] In one embodiment, the transaction success message is sent through a message queue. The message queue is a one-way asynchronous operation, which avoids the host external call operation of the new system or the old system. In the high-performance operation of the host, it will not cause performance bottlenecks for existing transactions. When the message queue is unblocked, its connection speed will be very fast.
[0049] In addition, in the old and new systems of the bank, multi-level linkage accounts account for a small proportion, so the transformation of the main logic of the old and new systems will cause the performance of other transactions to decline. Therefore, the embodiment of the present invention proposes a multi-level linkage system for accounts across the old and new systems, which is independent of the existing old and new systems. The multi-level linkage account processing logic is relatively centralized, which can improve processing efficiency.
[0050] Multiple linkage nodes can form a P2P sub-network for a small amount of complex internal interactions. Each linkage node can be served by an internal interaction module attached to the new system or the old system. This does not increase the hardware complexity of the original system, and the P2P sub-network has the fastest point-to-point network interaction speed. Although it seems complicated, in fact, if there are N systems, each node only has N-1 connections to manage.
[0051] It should be pointed out that each new system or old system only operates the linkage between the account of the system and the next account. Since the transfer operation of the two accounts requires transaction consistency, it must be completed on the same initiator, but the linkage operation of the next account is moved to the system to which the next account belongs. The advantage of this is that each account and its linkage parameters do not need to be copied and synchronized across systems, as long as they are saved locally. It provides convenience for the division of accounts and their linkage parameters by system and region.
[0052] In one embodiment, the linkage node is specifically used for:
[0053] Send the received atomic transaction corresponding to the linked account to the corresponding system;
[0054] After receiving the transaction success message of the atomic transaction corresponding to the linked account returned by the corresponding system, read the linkage parameter table of the corresponding system to determine whether the linked account meets the triggering conditions;
[0055] If the linked account meets the triggering conditions, wait for the transaction success message of the atomic transaction corresponding to the current account;
[0056] When receiving the transaction success message of the atomic transaction corresponding to the current account, read the linkage parameter table of the corresponding system to obtain the linked account of the corresponding system;
[0057] When the transaction success message of the atomic transaction corresponding to the current account times out, the linkage result is determined to be a linkage failure message, and sent to the linkage node corresponding to the system corresponding to the current account;
[0058] If the linked account does not meet the triggering condition, the linkage result is determined as a linkage success message, and sent to the linkage node corresponding to the system corresponding to the current account.
[0059] In the above embodiment, when the transaction success message of the atomic transaction corresponding to the current account is received, the linkage parameter table of the corresponding system is read to obtain the linked account of the corresponding system, so that the multi-level account linkage can continue according to the aforementioned method, and regardless of whether the linkage succeeds or fails, the linkage result will be sent to the previous linkage node, so the linkage result will be gathered to the first linkage node.
[0060] In one embodiment, the linkage node is further used for:
[0061] After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, record the linkage operation log;
[0062] After receiving the linkage result, record the linkage operation log.
[0063] In the above embodiment, the first linkage node will record the linkage operation log for subsequent review and verification.
[0064] In one embodiment, the linkage node is further used for:
[0065] 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 corresponding system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the linkage node corresponding to the system corresponding to the linked account.
[0066] A specific embodiment is given below to illustrate the specific application of the system proposed in the embodiment of the present invention.
[0067] Figure 2 It is a specific application schematic diagram of the multi-level linkage system for accounts across the old and new systems in an embodiment of the present invention. The multi-level linkage system for accounts across the old and new systems includes four linkage nodes 1, namely linkage node 1, linkage node 2, linkage node 3, and linkage node 4, which correspond to the systems of four banks, namely old system 1, new system 2, new system 3, and new system 4.
[0068] Linkage node 1 receives the transaction success message of account 1 sent by old system 1, queries linkage parameter table 1, determines that account 1 meets the trigger condition, reads linkage parameter table 1 corresponding to system 1, and obtains linked account 2; generates atomic transaction corresponding to account 1 and atomic transaction corresponding to linked account 2; sends the atomic transaction corresponding to account 1 to old system 1; sends the atomic transaction corresponding to linked account 2 to linkage node 2 corresponding to new system 2 corresponding to linked account 2; after receiving the transaction success message of the atomic transaction corresponding to account 1 returned by old system 1, sends the transaction success message of the atomic transaction corresponding to account 1 to linkage node 2; receives linkage result 1.
[0069] Linkage node 2 sends the received atomic transaction corresponding to linked account 2 to new system 2; after receiving the transaction success message of the atomic transaction corresponding to the linked account returned by new system 2, linkage node 2 reads linkage parameter table 2 of new system 2 to determine whether linked account 2 meets the triggering condition;
[0070] If the linked account 2 meets the triggering conditions, wait for the transaction success message of the atomic transaction corresponding to account 1;
[0071] When receiving the transaction success message of the atomic transaction corresponding to account 1, read the linkage parameter table 2 of the new system 2, obtain the linked account 3 of the new system 2, and then continue to link the linked account 2 and the linked account 3 to obtain the linkage result 2;
[0072] When the transaction success message of the atomic transaction corresponding to account 1 times out, linkage result 1 is determined to be a linkage failure message, and is sent to linkage node 1 corresponding to old system 1 corresponding to account 1;
[0073] If the linked account 2 does not meet the trigger condition, the linkage result 1 is determined to be a linkage success message, and is sent to the linkage node 1 corresponding to the old system 1 corresponding to the account 1.
[0074] Linkage node 1 records the linkage operation log according to linkage result 1 and the transaction success message of the atomic transaction corresponding to account 1.
[0075] In summary, in the system proposed in the embodiment of the present invention, each linkage node corresponds to a new system or an old system; the linkage node is used to: receive a transaction success message of the current account sent by the corresponding system, the system being the new system or the old system; query the linkage parameter table to determine whether the current account meets the trigger condition, if so, read the linkage parameter table of the corresponding system to obtain the linked account; generate 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 system; send the atomic transaction corresponding to the linked account to the linkage node corresponding to the system corresponding to the linked account; after receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, send the transaction success message of the atomic transaction corresponding to the current account to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account. 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 out of an account and the transfer in of another account can easily achieve consistency of things due to the single point control. If a certain linkage link fails, the successful linkage operation is complete. The connectivity of the P2P network composed of multiple linkage nodes is actually not complicated and has good performance. Finally, a complete multi-level linkage operation status is provided, which is convenient for subsequent reference and troubleshooting.
[0076] The embodiment of the present invention further proposes a method for multi-level linkage of accounts across new and old systems, the principle of which is similar to the multi-level linkage system of accounts across new and old systems, and will not be described in detail here.
[0077] Figure 3FIG. 1 is a flow chart of a method for multi-level linkage of accounts across new and old systems in an embodiment of the present invention. Figure 3 As shown, including:
[0078] Step 301, receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system;
[0079] Step 302, query the linkage parameter table to determine whether the current account meets the trigger condition, and if so, read the linkage parameter table of the corresponding system to obtain the linked account;
[0080] Step 303, generating an atomic transaction corresponding to the current account and an atomic transaction corresponding to the linked account;
[0081] Step 304, sending the atomic transaction corresponding to the current account to the corresponding system;
[0082] Step 305: Send the atomic transaction corresponding to the linked account to the linkage node corresponding to the system corresponding to the linked account;
[0083] Step 306, after receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account;
[0084] Step 307: receiving the linkage result returned by the linkage node corresponding to the system corresponding to the linked account.
[0085] Figure 4 Another flow chart of the multi-level linkage method for accounts across new and old systems in an embodiment of the present invention. In one embodiment, the method further includes:
[0086] Step 401, sending the received atomic transaction corresponding to the linked account to the corresponding system;
[0087] Step 402, after receiving the transaction success message of the atomic transaction corresponding to the linked account returned by the corresponding system, read the linkage parameter table of the corresponding system to determine whether the linked account meets the triggering condition;
[0088] Step 4021, if the linked account meets the triggering condition, wait for the transaction success message of the atomic transaction corresponding to the current account;
[0089] Step 40211, upon receiving a transaction success message of an atomic transaction corresponding to the current account, reading the linkage parameter table of the corresponding system to obtain the linked account of the corresponding system;
[0090] Step 40212, when the transaction success message of the atomic transaction corresponding to the current account times out, determining the linkage result as a linkage failure message, and sending it to the linkage node corresponding to the system corresponding to the current account;
[0091] Step 4022: If the linked account does not meet the trigger condition, the linkage result is determined as a linkage success message, and sent to the linkage node corresponding to the system corresponding to the current account.
[0092] In one embodiment, sending the atomic transaction corresponding to the current account to the corresponding system, and sending the atomic transaction corresponding to the linked account to the linkage node corresponding to the system corresponding to the linked account, includes:
[0093] 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 corresponding system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the linkage node corresponding to the system corresponding to the linked account.
[0094] In one embodiment, the method further comprises:
[0095] After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, record the linkage operation log;
[0096] After receiving the linkage result, record the linkage operation log.
[0097] In summary, in the method proposed in the embodiment of the present invention, a transaction success message of the current account sent by the corresponding system is received, and the system is a new system or an old system; the linkage parameter table is queried to determine whether the current account meets the trigger condition, and if so, the linkage parameter table of the corresponding system is read to obtain the linked account; the atomic transaction corresponding to the current account and the atomic transaction corresponding to the linked account are generated; the atomic transaction corresponding to the current account is sent to the corresponding system; the atomic transaction corresponding to the linked account is sent to the linkage node corresponding to the system corresponding to the linked account; after receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account. In the above process, multi-level linkage does not need to synchronize accounts across systems, and does not affect the performance of the original account operation of the original system. In addition, the transfer-out operation of an account and the transfer-in operation of another account can easily achieve consistency of things due to single-point control. If a certain linkage link fails, the successful linkage operation is complete. The connectivity of the P2P network composed of multiple linked nodes is actually not complicated and has good performance. Finally, a complete multi-level linked operation status is provided, which is convenient for subsequent reference and troubleshooting.
[0098] An embodiment of the present invention further provides a computer device, Figure 5 The schematic diagram of the computer device in the embodiment of the present invention is a schematic diagram of the computer device in the embodiment of the present invention. The computer device can implement all the steps in the multi-level linkage method of accounts across the new and old systems in the above embodiment. The computer device specifically includes the following contents:
[0099] Processor (processor) 501, memory (memory) 502, communication interface (CommunicationsInterface) 503 and communication bus 504;
[0100] The processor 501, the memory 502, and the communication interface 503 communicate with each other through the communication bus 504; the communication interface 503 is used to realize information transmission between the server-side device, the detection device, the user-side device and other related devices;
[0101] The processor 501 is used to call the computer program in the memory 502, and when the processor executes the computer program, all steps in the multi-level account linkage method across the new and old systems in the above embodiment are implemented.
[0102] An embodiment of the present invention also provides a computer-readable storage medium that can implement all steps in the multi-level account linkage method across the new and old systems in the above embodiment. The computer-readable storage medium stores a computer program that, when executed by a processor, implements all steps in the multi-level account linkage method across the new and old systems in the above embodiment.
[0103] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may 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.
[0104] The present invention is described with reference to 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, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A multi-level linkage system for accounts across new and old systems, characterized in that: include: Multiple linkage nodes, where each linkage node corresponds to a new system or an old system; Linkage nodes are used to: Receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system; Query the linkage parameter table to determine whether the current account meets the trigger conditions. If so, read the linkage parameter table of the corresponding system to obtain the linked account; Generate atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account; Send the atomic transaction corresponding to the current account to the corresponding system; Send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account; After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account; Receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account; The linkage node is specifically used for: Send the received atomic transaction corresponding to the linked account to the corresponding system; After receiving the transaction success message of the atomic transaction corresponding to the linked account returned by the corresponding system, read the linkage parameter table of the corresponding system to determine whether the linked account meets the triggering conditions; If the linked account meets the triggering conditions, wait for the transaction success message of the atomic transaction corresponding to the current account; When receiving the transaction success message of the atomic transaction corresponding to the current account, read the linkage parameter table of the corresponding system to obtain the linked account of the corresponding system; When the transaction success message of the atomic transaction corresponding to the current account times out, the linkage result is determined to be a linkage failure message, and sent to the linkage node corresponding to the system corresponding to the current account; If the linked account does not meet the triggering condition, the linkage result is determined as a linkage end message and sent to the linkage node corresponding to the system corresponding to the current account.
2. The multi-level account linkage system across new and old systems as claimed in claim 1, characterized in that: The linkage node 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 corresponding system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the linkage node corresponding to the system corresponding to the linked account.
3. The multi-level account linkage system across new and old systems as claimed in claim 1, characterized in that: The linkage node is also used to: After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, record the linkage operation log; After receiving the linkage result, record the linkage operation log.
4. The multi-level linkage system for accounts across new and old systems as claimed in claim 1, characterized in that: The transaction success message is sent through a message queue.
5. A multi-level linkage method for accounts across new and old systems, characterized in that: The system applied to any one of claims 1 to 4, comprising: Receiving a transaction success message of the current account sent by a corresponding system, the system being a new system or an old system; Query the linkage parameter table to determine whether the current account meets the trigger conditions. If so, read the linkage parameter table of the corresponding system to obtain the linked account; Generate atomic transactions corresponding to the current account and atomic transactions corresponding to the linked account; Send the atomic transaction corresponding to the current account to the corresponding system; Send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account; After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, the transaction success message of the atomic transaction corresponding to the current account is sent to the linkage node corresponding to the system corresponding to the linked account; the linkage node corresponding to the system corresponding to the linked account returns the linkage result according to the transaction result of the atomic transaction corresponding to the linked account and the transaction success message of the atomic transaction corresponding to the current account; Receive the linkage result returned by the linkage node corresponding to the system corresponding to the linked account; Also includes: Send the received atomic transaction corresponding to the linked account to the corresponding system; After receiving the transaction success message of the atomic transaction corresponding to the linked account returned by the corresponding system, read the linkage parameter table of the corresponding system to determine whether the linked account meets the triggering conditions; If the linked account meets the triggering conditions, wait for the transaction success message of the atomic transaction corresponding to the current account; When receiving the transaction success message of the atomic transaction corresponding to the current account, read the linkage parameter table of the corresponding system to obtain the linked account of the corresponding system; When the transaction success message of the atomic transaction corresponding to the current account times out, the linkage result is determined to be a linkage failure message, and sent to the linkage node corresponding to the system corresponding to the current account; If the linked account does not meet the triggering condition, the linkage result is determined as a linkage end message and sent to the linkage node corresponding to the system corresponding to the current account.
6. The multi-level linkage method for accounts across new and old systems as claimed in claim 5, characterized in that: Send the atomic transaction corresponding to the current account to the corresponding system, and send the atomic transaction corresponding to the linked account to the linked node corresponding to the system corresponding to the linked account, including: 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 corresponding system according to the transaction order, and the atomic transaction corresponding to the linked account is sent to the linkage node corresponding to the system corresponding to the linked account.
7. The multi-level linkage method for accounts across new and old systems as claimed in claim 5, characterized in that: Also includes: After receiving the transaction success message of the atomic transaction corresponding to the current account returned by the corresponding system, record the linkage operation log; After receiving the linkage result, record the linkage operation log.
8. The multi-level linkage method for accounts across new and old systems as claimed in claim 5, characterized in that: The transaction success message is sent through a message queue.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: 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