Transaction commissioning switching method and device

By introducing a proxy transaction mechanism and transaction routing direction configuration table, the problem of difficulty in decoupling between consumers and service providers during system upgrade is solved, the flexibility and stability of the system is realized, maintenance is simplified, and service continuity and reliability are maintained.

CN119648223APending Publication Date: 2025-03-18AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411716876.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

During system upgrade, the existing technology is difficult to decouple the consumer system and the service system, resulting in the inability to quickly restore services in case of system failure, affecting the customer experience.

Method used

By introducing a proxy transaction mechanism, the transaction routing direction configuration table is used to find the routing direction of the transaction request, and determine whether to execute the new transaction process or the original transaction process based on the production scope and transaction rules, so as to achieve flexible adjustment and failover of the system.

Benefits of technology

It realizes effective decoupling between the consumer and the service provider, improves the flexibility and stability of the system, allows the service provider to adjust the transaction routing direction without affecting the consumer system, simplifies system maintenance, reduces maintenance costs, and maintains the continuity and reliability of external services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119648223A_ABST
    Figure CN119648223A_ABST
Patent Text Reader

Abstract

The invention provides a transaction commissioning switching method and device, and the method comprises the steps: searching a routing direction of a transaction request according to a transaction routing direction configuration table through employing proxy transaction when the transaction request sent by a consumer system is received; if the routing direction of the transaction request is a new transaction direction, judging whether the transaction request meets a transaction rule corresponding to the commissioning range or not; if yes, starting a new transaction process corresponding to the new transaction direction to execute the transaction request and outputting a transaction result; and if not, starting an original transaction process corresponding to the original transaction direction to execute the transaction request and outputting a transaction result. According to the invention, a proxy transaction mechanism is introduced, effective decoupling between a consumer and a service party is realized, and the flexibility and stability of the system are improved. The mechanism allows the service party to flexibly adjust the transaction routing direction, simplify the system maintenance and reduce the maintenance cost under the condition of not influencing the consumer system, so that the service party performs internal transformation independent of the consumer, and keeps the continuity and reliability of external service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a transaction production switching method and device. Background Art

[0002] With the continuous development of informatization, the number of system visits is increasing day by day, so it is particularly important to ensure that each customer visit can be responded to quickly. In this context, improving system performance has become a key goal. Using new technologies to upgrade the system is a common improvement method, but after the system is upgraded, it may cause system failures due to network problems, environmental configuration problems or insufficient testing. If the problem is serious and has a wide range of impact, it is usually chosen to roll back the version of the program package that has been put into production and restore it to the old version to ensure that the system can continue to provide services.

[0003] Although package version rollback can temporarily solve the error problem in the production environment, it also brings some new challenges. First, the high coupling between systems requires the service provider and consumer system to be adjusted synchronously during rollback, which leads to a wider impact and involves multiple systems. Second, the rollback process is usually time-consuming and complicated, requiring in-depth analysis and operation by professionals, which may cause the system to be unable to provide services during the rollback period, affecting the customer experience.

[0004] Therefore, how to decouple the consumer system and the service system and ensure business continuity during system upgrades is an urgent problem that needs to be solved. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a transaction production switching method and device to solve the problem of being unable to provide services during system upgrades.

[0006] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0007] A first aspect of the present invention discloses a transaction production switching method, the method comprising:

[0008] When receiving a transaction request sent by a consumer system, the proxy transaction is used to find the routing direction of the transaction request according to the transaction routing direction configuration table; wherein the transaction routing direction configuration table is pre-constructed according to a plurality of transaction routing direction fields; the routing direction includes a new transaction direction and an original transaction direction;

[0009] If the routing direction of the transaction request is the new transaction direction, querying the production range corresponding to the transaction request;

[0010] Determining whether the transaction request satisfies the transaction rules corresponding to the production range;

[0011] If satisfied, a new transaction process corresponding to the new transaction direction is started to execute the transaction request and output the transaction result;

[0012] If not satisfied, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result.

[0013] Preferably, the step of searching the routing direction of the transaction request according to the transaction routing direction configuration table by using the proxy transaction includes:

[0014] Query the transaction code and transaction name in the transaction request using the proxy transaction;

[0015] According to the transaction code and the transaction name, the routing direction corresponding to the transaction request in the transaction routing direction configuration table is searched.

[0016] Preferably, when receiving a transaction request sent by a consumer system, after searching the routing direction of the transaction request according to the transaction routing direction configuration table using the proxy transaction, the method further includes:

[0017] If the routing direction of the transaction request is the original transaction direction, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result.

[0018] Preferably, the determining whether the transaction request satisfies the transaction rules corresponding to the production range includes:

[0019] Acquire the transaction rules corresponding to the production scope and the transaction elements in the transaction request;

[0020] Determining whether all the transaction elements satisfy the transaction rules;

[0021] If the transaction element satisfies the transaction rule, determining that the transaction request satisfies the transaction rule corresponding to the production scope;

[0022] If the transaction element does not satisfy the transaction rule, it is determined that the transaction request does not satisfy the transaction rule corresponding to the production scope.

[0023] Preferably, the process of constructing the transaction routing direction configuration table in advance according to a plurality of transaction routing direction fields includes:

[0024] Determine a database system and obtain multiple transaction routing direction field names, field type lengths and business rules corresponding to the transaction routing direction field names;

[0025] Designing a table structure according to a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and creating an initial transaction routing direction configuration table based on the table structure;

[0026] Table data is obtained, and the table data is input into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.

[0027] A second aspect of the present invention discloses a transaction production switching device, the device comprising:

[0028] A receiving unit, configured to, when receiving a transaction request sent by a consumer system, use a proxy transaction to search for a routing direction of the transaction request according to a transaction routing direction configuration table; wherein the transaction routing direction configuration table is pre-constructed according to a plurality of transaction routing direction fields; and the routing direction includes a new transaction direction and an original transaction direction;

[0029] A query unit, configured to query the production range corresponding to the transaction request if the routing direction of the transaction request is the new transaction direction;

[0030] A judging unit, used to judge whether the transaction request satisfies the transaction rules corresponding to the production range;

[0031] A new transaction unit, configured to start a new transaction process corresponding to the new transaction direction to execute the transaction request and output the transaction result if the conditions are met;

[0032] The first original transaction unit is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request and output the transaction result if the conditions are not met.

[0033] Preferably, the receiving unit is specifically used for:

[0034] The transaction code and the transaction name in the transaction request are queried by using the proxy transaction; and the routing direction corresponding to the transaction request in the transaction routing direction configuration table is searched according to the transaction code and the transaction name.

[0035] Preferably, it also includes:

[0036] The second original transaction unit is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request if the routing direction of the transaction request is the original transaction direction, and output the transaction result.

[0037] Preferably, the judging unit comprises:

[0038] An acquisition module, used to acquire the transaction rules corresponding to the production range and the transaction elements in the transaction request;

[0039] A judgment module, used to judge whether the transaction elements all meet the transaction rules;

[0040] A first determination module, configured to determine whether the transaction request satisfies the transaction rule corresponding to the production range if the transaction element satisfies the transaction rule;

[0041] The second determination module is used to determine that the transaction request does not satisfy the transaction rule corresponding to the production range if the transaction element does not satisfy the transaction rule.

[0042] Preferably, the device further comprises:

[0043] A determination unit, used to determine a database system and obtain a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules;

[0044] A creation unit, configured to design a table structure according to a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and to create an initial transaction routing direction configuration table based on the table structure;

[0045] The input unit is used to obtain table data and input the table data into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.

[0046] Based on the transaction production switching method and device provided by the above-mentioned embodiment of the present invention, when a transaction request sent by the consumer system is received, the proxy transaction is used to find the routing direction of the transaction request according to the transaction routing direction configuration table; if the routing direction of the transaction request is a new transaction direction, it is determined whether the transaction request meets the transaction rules corresponding to the production range; if it meets, the new transaction process corresponding to the new transaction direction is started to execute the transaction request and output the transaction result; if it does not meet, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result. The present invention introduces a proxy transaction mechanism to achieve effective decoupling between the consumer and the service party, and improve the flexibility and stability of the system. This mechanism allows the service party to flexibly adjust the transaction routing direction without affecting the consumer system, simplify system maintenance, reduce maintenance costs, and enable the service party to perform internal transformation independently of the consumer, and maintain the continuity and reliability of external services. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0048] Figure 1 A flow chart of a transaction production switching method provided by an embodiment of the present invention;

[0049] Figure 2 A flowchart for determining whether a transaction request satisfies a transaction rule corresponding to a production range provided by an embodiment of the present invention;

[0050] Figure 3 A flowchart of constructing a transaction routing direction configuration table provided by an embodiment of the present invention;

[0051] Figure 4 A schematic diagram of a process flow of a transaction production switching method provided by an embodiment of the present invention;

[0052] Figure 5 A structural block diagram of a transaction production switching device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0054] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0055] From the background technology, we can know that the current method of solving system failures caused by upgrades is to roll back the program package version. However, due to the high coupling between the systems, the service provider and the consumer system need to be adjusted synchronously during the rollback, which causes the impact range to expand and involve multiple systems. The system cannot provide services during the rollback period, affecting the customer experience.

[0056] Therefore, an embodiment of the present invention provides a transaction production switching method and device. When a transaction request sent by a consumer system is received, the proxy transaction is used to find the routing direction of the transaction request according to the transaction routing direction configuration table; if the routing direction of the transaction request is a new transaction direction, it is determined whether the transaction request satisfies the transaction rules corresponding to the production range; if it does, a new transaction process corresponding to the new transaction direction is started to execute the transaction request and output the transaction result; if it does not, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result. The present invention introduces a proxy transaction mechanism to achieve effective decoupling between the consumer and the service party, and improve the flexibility and stability of the system. This mechanism allows the service party to flexibly adjust the transaction routing direction without affecting the consumer system, simplifying system maintenance, reducing maintenance costs, allowing the service party to perform internal transformation independently of the consumer, and maintaining the continuity and reliability of external services.

[0057] See also Figure 1 , shows a flow chart of a transaction production switching method provided by an embodiment of the present invention, the method is applicable to a service party system, and the method includes:

[0058] It should be noted that the service-side system adds proxy transactions at the entrance, so that the consumer system only needs to interact with the proxy transactions and no longer needs to directly interact with new transactions or original transactions in the service-side system, thereby achieving the purpose of decoupling the service-side system and the consumer system.

[0059] Step S101: when receiving a transaction request sent by a consumer system, the proxy transaction is used to search for the routing direction of the transaction request according to the transaction routing direction configuration table.

[0060] In the specific implementation of step S101, when the service system receives the transaction request sent by the consumer system, the proxy transaction is used to search the transaction routing direction configuration table according to the information carried in the transaction request to obtain the routing direction of the transaction request.

[0061] Specifically, the implementation process is as follows (process A1 and process A2):

[0062] Process A1: Use proxy transaction to query the transaction code and transaction name in the transaction request.

[0063] That is, the service-side system uses the proxy transaction to query the transaction code and transaction name carried in the transaction request sent by the consumer system.

[0064] Process A2: According to the transaction code and transaction name, find the routing direction corresponding to the transaction request in the transaction routing direction configuration table.

[0065] It should be noted that the transaction routing direction configuration table includes multiple transaction routing direction fields, including but not limited to transaction code, transaction name and routing direction.

[0066] When the process A2 is specifically implemented, the transaction code and the transaction name carried in the transaction request are searched in the transaction routing direction configuration table, so as to find the routing direction corresponding to the transaction request.

[0067] It should be noted that the routing direction includes the new transaction direction and the original transaction direction.

[0068] In some specific embodiments, if the routing direction of the transaction request is found to be the original transaction direction in the transaction routing direction configuration table, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result. If the routing direction of the transaction request is found to be the new transaction direction in the transaction routing direction configuration table, step S102 is executed.

[0069] It is understandable that the transaction routing direction configuration table is pre-constructed according to a plurality of transaction routing direction fields. For example, the transaction routing direction fields included in the transaction routing direction configuration table are shown in Table 1.

[0070] Table 1

[0071]

[0072] It should be noted that the table data included in the transaction routing direction configuration table is shown in Table 2.

[0073] Table 2

[0074] Transaction Code Transaction Name Routing direction Production scope Customer Whitelist channel Province P001 Query card information OLD P002 Query customer information NEW 1 123456789xxx P003 Modify customer information NEW 2 Mini Programs P004 Deleting customer information NEW 3 Zhejiang P005 Add new customer information NEW 4

[0075] Step S102: If the routing direction of the transaction request is a new transaction direction, query the production range corresponding to the transaction request.

[0076] In the specific implementation of step S102, if the routing direction of the transaction request is found to be a new transaction direction (such as "NEW" in Table 2) from the transaction routing direction configuration table, the production range corresponding to the transaction request is queried from the transaction routing direction configuration table.

[0077] For example, as shown in Table 2: the transaction code and transaction name of the transaction request are "P001" and "query card information", and the routing direction of the transaction request is the original transaction direction (ie, "OLD").

[0078] For another example: the transaction code and transaction name of the transaction request are "P002" and "query customer information", then the routing direction of the transaction request is the new transaction direction (ie, "NEW"). At this time, it is necessary to further determine the production scope of the transaction request and execute step S103.

[0079] Step S103: Determine whether the transaction request satisfies the transaction rules corresponding to the production scope; if the transaction request satisfies the transaction rules corresponding to the production scope, execute step S104; if the transaction request does not satisfy the transaction rules corresponding to the production scope, execute step S105.

[0080] It can be understood that judging whether the transaction request satisfies the transaction rules corresponding to the production range is specifically judging whether the elements in the transaction request satisfy the transaction rules. The specific judgment process is detailed in the embodiment of the present invention. Figure 2 The content in Figure 2 include:

[0081] Step S201: Acquire the transaction rules corresponding to the production scope and the transaction elements in the transaction request.

[0082] In the specific implementation of step S201, the transaction rules corresponding to the production scope corresponding to the transaction request are obtained, and the transaction elements in the transaction request are obtained.

[0083] It should be noted that the transaction elements in the transaction request may include, for example, customer contact information, transaction channel or transaction address.

[0084] Step S202: Determine whether all transaction elements satisfy the transaction rules. If the transaction elements satisfy the transaction rules, execute step S203; if the transaction elements do not satisfy the transaction rules, execute step S204.

[0085] For example: determine whether the customer contact information in the transaction request is included in the preset customer whitelist; or determine whether the transaction channel in the transaction request is the preset channel; or determine whether the transaction address in the transaction request is the preset province or city.

[0086] For example, as shown in Table 2: the transaction code and transaction name in the transaction request are "P003" and "Modify customer information", then the routing direction of the transaction request is the new transaction direction (ie, "NEW"). Furthermore, the production range of the transaction request is 2, then the transaction channel in the transaction request is obtained. If the transaction channel in the transaction is "Mini Program", it is determined that the transaction element meets the transaction rules.

[0087] Step S203: Determine whether the transaction request satisfies the transaction rules corresponding to the production scope.

[0088] In the specific implementation of step S203, when the transaction element satisfies the transaction rule, it is determined that the transaction request satisfies the transaction rule corresponding to the production scope.

[0089] Step S204: Determine that the transaction request does not satisfy the transaction rules corresponding to the production scope.

[0090] In the process of specifically implementing step S204, when the transaction element does not satisfy the transaction rule, it is determined that the transaction request does not satisfy the transaction rule corresponding to the production scope.

[0091] It is understandable that further determining the transaction routing direction corresponding to the transaction request according to the production scope of the transaction request can effectively improve the accuracy and reliability of the judgment.

[0092] Step S104: If satisfied, a new transaction process corresponding to the new transaction direction is started to execute the transaction request and output the transaction result.

[0093] In the specific implementation of step S104, when the transaction request meets the transaction rules corresponding to the production range, a new transaction process corresponding to the new transaction direction is started to execute the transaction request, and the transaction result is obtained and output to the consumer system.

[0094] Step S105: If not satisfied, start the original transaction process corresponding to the original transaction direction to execute the transaction request and output the transaction result.

[0095] In the specific implementation of step S105, when the transaction request does not meet the transaction rules corresponding to the production range, the original transaction process corresponding to the original transaction direction is started to execute the transaction request, obtain the transaction result and output it to the consumer system.

[0096] In the embodiment of the present invention, the proxy transaction mechanism is introduced into the service system, which realizes the effective decoupling between the consumer system and the service system, and improves the flexibility and stability of the system. This mechanism allows the service system to flexibly adjust the transaction routing direction without affecting the consumer system, ensuring that it can quickly switch to the original transaction when a problem occurs in the commissioning of the new transaction, thereby eliminating the need for package rollback and quickly resolving error reporting problems. In addition, the embodiment of the present invention also simplifies system maintenance and reduces maintenance costs, allowing the service party to perform internal transformation independently of the consumer while maintaining the continuity and reliability of external services.

[0097] The above embodiments of the present invention Figure 1 The specific implementation process of constructing a transaction routing direction configuration table according to multiple transaction routing direction fields in advance is detailed in the embodiment of the present invention. Figure 3 The content includes:

[0098] Step S301: determine a database system and obtain multiple transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules.

[0099] In the specific implementation process of step S301, a database system for constructing a transaction routing direction configuration table is determined and transaction routing direction field names input by multiple users, field type lengths corresponding to the transaction routing direction field names, and business rules are obtained.

[0100] Step S302: designing a table structure according to a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and creating an initial transaction routing direction configuration table based on the table structure.

[0101] In the process of specifically implementing step S302, the table structure of the transaction routing direction configuration table is designed based on multiple transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and an initial transaction routing direction configuration table is created based on the table structure.

[0102] It is understandable that the transaction routing direction field name includes the production range field, which helps to provide a hierarchical and gradual production strategy for new transactions in practical applications.

[0103] It should be noted that there may be transactions with a particularly large transaction volume in the service system. If there are problems during production, many transactions will be reported as errors during the period from the occurrence of the problem to the switching of the routing direction, affecting the customer's experience. To solve this problem, a hierarchical production strategy was adopted.

[0104] That is to say, taking Table 2 as an example, in the transaction routing direction configuration table, a "production scope" is defined for each transaction, which is divided into four levels: 1-white list, 2-channel, 3-province and city, 4-all. Through this hierarchical production method, new transactions can be gradually promoted, so that when problems occur, the impact can be limited to a smaller range.

[0105] Specifically, in combination with the embodiments of the present invention Figure 4 As shown in the content, in the early stage of new transaction production, you can set the "production range" to "1-white list" and configure the "customer white list" field in the transaction routing direction configuration table with the customers that need to be verified. In this way, only customers who hit the white list will follow the logic of the new transaction (i.e. the new transaction process), and other customers will follow the logic of the original transaction (i.e. the original transaction process). Even if a new transaction encounters an error during production, it will only affect the white list customers, and other customers will not be affected, and the scope of impact is controllable.

[0106] After the new transaction runs stably in the "1-whitelist" mode, the production range can be set to "2-channel", and the "channel" in the transaction routing direction configuration table is configured with the channel that needs to be verified. In this way, only customers who hit the "channel" will follow the logic of the new transaction, and other customers will follow the logic of the original transaction.

[0107] After the new transaction runs stably in the "2-channel" mode, the scope can be set to "3-province and city", and the "province and city" field in the transaction routing direction configuration table can be configured with the province and city that needs to be verified. In this way, only customers who hit the "province and city" will follow the logic of the new transaction, and other customers will follow the logic of the original transaction.

[0108] After the new transaction runs stably in the "3-province and city" mode, the production scope will be set to "4-all", and all customers will follow the logic of the new transaction.

[0109] Understandably, such a phased launch strategy helps to quickly locate and resolve problems when new transactions encounter problems, while minimizing the impact on customer experience. By controlling the scope of the launch, it can be ensured that even when new transactions encounter problems, only a small number of users will be affected, thus protecting the trading experience of most customers. This approach not only improves the stability of the system, but also enhances customer trust and satisfaction.

[0110] Step S303: Acquire table data, and input the table data into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.

[0111] In the specific implementation of step S303, the table data is obtained and stored in the initial transaction routing direction configuration table, thereby obtaining the transaction routing direction configuration table.

[0112] In the embodiment of the present invention, a transaction routing direction configuration table is created in the service side system, and an independent routing direction is set for each transaction. This configuration method provides a high degree of flexibility, allowing the service side system to adjust the transaction routing as needed. When a new transaction encounters a problem in production, the service side system can quickly modify the routing direction in the configuration table, allowing the proxy transaction to call the original transaction and continue to provide services to the consumer side system. This mechanism avoids the need for package rollback, can quickly and promptly resolve error problems, and improves the stability and reliability of the service side system.

[0113] The above-mentioned embodiment of the present invention Figure 1 A transaction production switching method is provided, see Figure 5 , showing a structural block diagram of a transaction production switching device provided by an embodiment of the present invention.

[0114] The device includes: a receiving unit 501 , a query unit 502 , a judging unit 503 , a new transaction unit 504 and a first original transaction unit 505 .

[0115] The receiving unit 501 is used to use the proxy transaction to find the routing direction of the transaction request according to the transaction routing direction configuration table when receiving the transaction request sent by the consumer system; wherein the transaction routing direction configuration table is pre-constructed according to multiple transaction routing direction fields; the routing direction includes a new transaction direction and an original transaction direction.

[0116] The receiving unit 501 is specifically used to: query the transaction code and transaction name in the transaction request by using the proxy transaction; and search the routing direction corresponding to the transaction request in the transaction routing direction configuration table according to the transaction code and transaction name.

[0117] The query unit 502 is used to query the production range corresponding to the transaction request if the routing direction of the transaction request is a new transaction direction.

[0118] The judgment unit 503 is used to judge whether the transaction request satisfies the transaction rules corresponding to the production range.

[0119] The new transaction unit 504 is used to start a new transaction process corresponding to the new transaction direction to execute the transaction request and output the transaction result if the conditions are met.

[0120] The first original transaction unit 505 is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request and output the transaction result if it is not satisfied.

[0121] In the embodiment of the present invention, the proxy transaction mechanism is introduced into the service system, which realizes the effective decoupling between the consumer system and the service system, and improves the flexibility and stability of the system. This mechanism allows the service system to flexibly adjust the transaction routing direction without affecting the consumer system, ensuring that it can quickly switch to the original transaction when a problem occurs in the commissioning of the new transaction, thereby eliminating the need for package rollback and quickly resolving error reporting problems. In addition, the embodiment of the present invention also simplifies system maintenance and reduces maintenance costs, allowing the service party to perform internal transformation independently of the consumer while maintaining the continuity and reliability of external services.

[0122] Combination Figure 5 According to the content shown, the device also includes: a second original transaction unit, which is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request if the routing direction of the transaction request is the original transaction direction, and output the transaction result.

[0123] Combination Figure 5 The content shown, the judgment unit 503 includes: an acquisition module, a judgment module, a first determination module and a second determination module.

[0124] The acquisition module is used to obtain the transaction rules corresponding to the production scope and the transaction elements in the transaction request.

[0125] The judgment module is used to judge whether all transaction elements meet the transaction rules.

[0126] The first determination module is used to determine whether the transaction request satisfies the transaction rule corresponding to the production scope if the transaction element satisfies the transaction rule.

[0127] The second determination module is used to determine that the transaction request does not satisfy the transaction rule corresponding to the production scope if the transaction element does not satisfy the transaction rule.

[0128] Combination Figure 5 According to the content shown, the device also includes: a determination unit, a creation unit and an input unit.

[0129] The determination unit is used to determine the database system and obtain multiple transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules.

[0130] A creation unit is used to design a table structure according to multiple transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and to create an initial transaction routing direction configuration table based on the table structure.

[0131] The input unit is used to obtain table data and input the table data into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.

[0132] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0133] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0134] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A transaction production switching method, characterized in that: The method comprises: When receiving a transaction request sent by a consumer system, the proxy transaction is used to find the routing direction of the transaction request according to the transaction routing direction configuration table; wherein the transaction routing direction configuration table is pre-constructed according to a plurality of transaction routing direction fields; the routing direction includes a new transaction direction and an original transaction direction; If the routing direction of the transaction request is the new transaction direction, querying the production range corresponding to the transaction request; Determining whether the transaction request satisfies the transaction rules corresponding to the production range; If satisfied, a new transaction process corresponding to the new transaction direction is started to execute the transaction request and output the transaction result; If not satisfied, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result.

2. The method according to claim 1, characterized in that The using the proxy transaction to search for the routing direction of the transaction request according to the transaction routing direction configuration table includes: Query the transaction code and transaction name in the transaction request using the proxy transaction; According to the transaction code and the transaction name, the routing direction corresponding to the transaction request in the transaction routing direction configuration table is searched.

3. The method according to claim 1, characterized in that When receiving a transaction request sent by a consumer system, after using the proxy transaction to find the routing direction of the transaction request according to the transaction routing direction configuration table, it also includes: If the routing direction of the transaction request is the original transaction direction, the original transaction process corresponding to the original transaction direction is started to execute the transaction request and output the transaction result.

4. The method according to claim 1, characterized in that: The determining whether the transaction request satisfies the transaction rules corresponding to the production range includes: Acquire the transaction rules corresponding to the production scope and the transaction elements in the transaction request; Determining whether all the transaction elements satisfy the transaction rules; If the transaction element satisfies the transaction rule, determining that the transaction request satisfies the transaction rule corresponding to the production scope; If the transaction element does not satisfy the transaction rule, it is determined that the transaction request does not satisfy the transaction rule corresponding to the production scope.

5. The method according to claim 1, characterized in that The process of constructing the transaction routing direction configuration table in advance according to a plurality of transaction routing direction fields includes: Determine a database system and obtain multiple transaction routing direction field names, field type lengths and business rules corresponding to the transaction routing direction field names; Designing a table structure according to a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and creating an initial transaction routing direction configuration table based on the table structure; Table data is obtained, and the table data is input into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.

6. A transaction production switching device, characterized in that: The device comprises: A receiving unit, configured to, when receiving a transaction request sent by a consumer system, use a proxy transaction to find a routing direction of the transaction request according to a transaction routing direction configuration table; wherein the transaction routing direction configuration table is pre-constructed according to a plurality of transaction routing direction fields; and the routing direction includes a new transaction direction and an original transaction direction; A query unit, configured to query the production range corresponding to the transaction request if the routing direction of the transaction request is the new transaction direction; A judging unit, used to judge whether the transaction request satisfies the transaction rules corresponding to the production range; A new transaction unit, configured to start a new transaction process corresponding to the new transaction direction to execute the transaction request and output the transaction result if the conditions are met; The first original transaction unit is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request and output the transaction result if the conditions are not met.

7. The device according to claim 6, characterized in that The receiving unit is specifically used for: The transaction code and the transaction name in the transaction request are queried by using the proxy transaction; and the routing direction corresponding to the transaction request in the transaction routing direction configuration table is searched according to the transaction code and the transaction name.

8. The device according to claim 6, characterized in that Also includes: The second original transaction unit is used to start the original transaction process corresponding to the original transaction direction to execute the transaction request if the routing direction of the transaction request is the original transaction direction, and output the transaction result.

9. The device according to claim 6, characterized in that The judging unit comprises: An acquisition module, used to acquire the transaction rules corresponding to the production range and the transaction elements in the transaction request; A judgment module, used to judge whether the transaction elements all meet the transaction rules; A first determination module, configured to determine whether the transaction request satisfies the transaction rule corresponding to the production range if the transaction element satisfies the transaction rule; The second determination module is used to determine that the transaction request does not satisfy the transaction rule corresponding to the production scope if the transaction element does not satisfy the transaction rule.

10. The device according to claim 6, characterized in that The device also includes: A determination unit, used to determine a database system and obtain a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules; A creation unit, configured to design a table structure according to a plurality of transaction routing direction field names, field type lengths corresponding to the transaction routing direction field names, and business rules, and to create an initial transaction routing direction configuration table based on the table structure; The input unit is used to obtain table data and input the table data into the initial transaction routing direction configuration table to obtain the transaction routing direction configuration table.