Transaction processing method and device, electronic equipment and computer program product

By using a mapping table for converting old accounts to new ones and an account configuration conversion table in the transaction processing system, the problem of not being able to process old accounts after an update was solved, thus improving the compatibility and efficiency of the transaction processing system.

CN121526802APending Publication Date: 2026-02-13CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511747347.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-26
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

The updated transaction processing system is incompatible with older accounts, causing transaction interruptions and impacting transaction processing efficiency.

Method used

By pre-setting a mapping table for converting old and new accounts and an account configuration conversion table, the updated transaction processing system can convert old accounts into new accounts and process transaction requests according to the conversion table, ensuring compatibility.

Benefits of technology

This improved the compatibility of the transaction processing system, ensuring business continuity and processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121526802A_ABST
    Figure CN121526802A_ABST
Patent Text Reader

Abstract

The invention relates to the field of transaction processing, and particularly discloses a transaction processing method and device, electronic equipment and a computer program product, and the method is used for solving the problem that a new system cannot be compatible with an old account. The method comprises the steps that a first account number processing server responds to a transaction processing request sent by a second account number processing server, a database of the first account number processing server comprises a plurality of new account numbers, the transaction processing request is analyzed, and at least one old account number carried by the transaction processing request is acquired; searching whether a conversion type which is the same as the transaction type corresponding to the old account exists in an account configuration conversion table, if the conversion type which is the same as the transaction type exists, converting the old account based on the account configuration conversion table, and processing the transaction processing request, the first account number processing server can still process the transaction processing request carrying the old account number, so that the compatibility of the first account number processing server is improved, and the processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of transaction processing, in particular to a transaction processing method and device, electronic equipment and computer program product. BACKGROUND

[0002] In the transaction processing process, the transaction processing system needs to receive the transaction data sent by the external system to complete the processing such as bookkeeping.

[0003] However, when the transaction processing system is updated due to processing needs or other reasons, and the external system is not updated, the updated transaction processing system can only process transactions with new account numbers as transaction objects. In this case, the external system still sends transaction data carrying old account numbers to the transaction processing system, but the transaction processing system cannot identify and process the transaction data carrying the old account numbers, resulting in interruption of related transactions and affecting the efficiency of transaction processing. SUMMARY

[0004] The present application provides a transaction processing method, device, electronic equipment and computer program product to solve the problem that the updated transaction processing system cannot process old account numbers during operation in the prior art.

[0005] In a first aspect, the embodiments of the present application provide a transaction processing method applied to a first account processing server, the first account processing system including at least one first account processing server and a database, and the method includes: In response to a transaction processing request, the transaction processing request is parsed and at least one old account number carried by the transaction processing request is obtained, wherein the database stores a plurality of new account numbers converted from a plurality of old account numbers based on a preset new-old account number conversion mapping table and a transaction processing mode corresponding to each new account number, and the transaction processing request is issued by a second account processing server; In the preset account configuration conversion table, it is checked whether there is a conversion type of the same transaction type corresponding to the old account number, wherein the account configuration conversion table includes a plurality of old account numbers, a plurality of conversion types and a plurality of target account numbers, and the old account numbers, conversion types and target account numbers are one-to-one corresponding; If there is a conversion type of the same transaction type in the account configuration conversion table, the old account number is converted based on the account configuration conversion table, and the transaction processing request is processed.

[0006] In a possible implementation, the first account processing system is obtained by the following way: A preset new-old account number conversion mapping table is obtained, wherein the new-old account number conversion mapping table includes a plurality of mapping relationships, and the mapping relationship indicates that one old account number corresponds to conversion to one new account number; obtain a plurality of old account numbers stored in the database and a transaction processing mode corresponding to each of the old account numbers; update the plurality of obtained old account numbers to corresponding new account numbers according to the old-new account number conversion mapping table, and associate each of the updated new account numbers with the corresponding transaction processing mode.

[0007] In a possible implementation, the account configuration conversion table is preconfigured in the following manner: a plurality of conversion types are preconfigured, wherein the conversion type is used to represent at least part of the transaction types that allow the old account number to be converted into a new account number; a one-to-one correspondence relationship between each of the old account numbers and a plurality of target account numbers is established, wherein the plurality of target account numbers are part or all of the plurality of new account numbers; each transaction type is matched with each old account number, and the account configuration conversion table is constructed based on the one-to-one correspondence relationship between the old account number, the conversion type and the target account number obtained after the matching.

[0008] In a possible implementation, in response to the transaction processing request, the transaction processing request is parsed and at least one old account number carried by the transaction processing request is obtained, including: In response to the received transaction processing request, the transaction processing request is parsed to determine the request source of the transaction processing request; determine whether the transaction processing request is sent by a second account processing server based on the request source, wherein the second account processing system includes at least one second account processing server; If yes, at least one old account number carried by the transaction processing request is obtained based on the parsed result.

[0009] In a possible implementation, if the account configuration conversion table has a conversion type identical to the transaction type, the old account number is converted based on the account configuration conversion table, and the transaction processing request is processed, including: If the account configuration conversion table has a conversion type identical to the transaction type, the old account number is converted into a target account number based on the account configuration conversion table; find a new account number identical to the target account number in the database, and determine a transaction processing mode corresponding to the new account number; process the transaction processing request using the determined transaction processing mode.

[0010] In a possible implementation, the method further includes: If the account configuration conversion table does not have a conversion type identical to the transaction type, a transaction rejection message is returned to the second account processing server; or If the target account number corresponding to the conversion of the old account number cannot be found based on the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or If the new account identical to the target account is not found in the database, a transaction rejection message is returned to the second account processing server.

[0011] In a second aspect, the application provides a transaction processing device, which comprises: The parsing module is configured to parse the transaction processing request and obtain at least one old account carried by the transaction processing request in response to the transaction processing request, wherein the database stores a plurality of new accounts converted from a plurality of old accounts based on a preset new-old account conversion mapping table and a transaction processing mode corresponding to each new account, and the transaction processing request is sent by the second account processing server. The searching module is configured to search the preset account configuration conversion table to determine whether there is a conversion type identical to the transaction type corresponding to the old account, wherein the account configuration conversion table comprises a plurality of old accounts, a plurality of conversion types, and a plurality of target accounts, and the old accounts, the conversion types, and the target accounts are in one-to-one correspondence. The processing module is configured to convert the old account based on the account configuration conversion table and process the transaction processing request if the conversion type identical to the transaction type exists in the account configuration conversion table.

[0012] In a possible implementation, the first account processing system is obtained by the following manner: A preset new-old account conversion mapping table is obtained, wherein the new-old account conversion mapping table comprises a plurality of mapping relationships, and each mapping relationship indicates that one old account is converted into one new account. A plurality of old accounts stored in the database and a transaction processing mode corresponding to each old account are obtained. The plurality of old accounts obtained are updated into corresponding new accounts according to the new-old account conversion mapping table, and each updated new account and the corresponding transaction processing mode are associated.

[0013] In a possible implementation, the account configuration conversion table is preset by the following manner: A plurality of conversion types are preset, wherein the conversion type is used to represent at least part of the transaction types allowed to be converted from the old account to the new account. A one-to-one correspondence between the plurality of old accounts and the plurality of target accounts is established, wherein the plurality of target accounts are part or all of the plurality of new accounts. Each transaction type is matched with each old account, and the account configuration conversion table is constructed based on the one-to-one correspondence of the old account, the conversion type, and the target account obtained after the matching.

[0014] In a possible implementation, the parsing module is further configured to: In response to the received transaction processing request, the transaction processing request is parsed to determine a request source of the transaction processing request; It is judged whether the transaction processing request is sent by a second account processing server based on the request source, wherein the second account processing system comprises at least one second account processing server; If yes, at least one old account carried by the transaction processing request is obtained based on the parsed result.

[0015] In a possible implementation, the processing module is further configured to: If the same conversion type as the transaction type exists in the account configuration conversion table, the old account is converted into a target account based on the account configuration conversion table; A new account identical to the target account is found in a database, and a transaction processing mode corresponding to the new account is determined; The transaction processing request is processed by using the determined transaction processing mode.

[0016] In a possible implementation, the finding module is further configured to: If the same conversion type as the transaction type does not exist in the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or If the target account corresponding to the conversion of the old account cannot be found based on the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or If the new account identical to the target account cannot be found in the database, a transaction rejection message is returned to the second account processing server.

[0017] In a third aspect, an electronic device is provided, comprising: a memory configured to store program instructions; a processor configured to invoke the program instructions stored in the memory, and perform the steps included in the method according to any one of the above transaction processing methods according to the obtained program instructions.

[0018] In a fourth aspect, a computer program product is provided, comprising computer program codes, when the computer program codes run on a computer, the computer program codes make the computer execute the method according to any one of the above transaction processing methods.

[0019] The present application has the following advantages: The embodiment of the present application provides a transaction processing method and device, electronic equipment and computer program product, the method is applied to a first account processing server, in the implementation process, the first account processing server responds to the transaction processing request sent by a second account processing server, the database of the first account processing server stores a plurality of new accounts converted from a plurality of old accounts based on a preset new-old account conversion mapping table and a transaction processing mode corresponding to each new account, the transaction processing request is parsed and at least one old account carried by the transaction processing request is acquired, whether the same conversion type as the transaction type corresponding to the old account exists in the preset account configuration conversion table is found, if the same conversion type as the transaction type exists in the account configuration conversion table, the old account is converted based on the account configuration conversion table, and the transaction processing request is processed, the account configuration conversion table comprises a plurality of old accounts, a plurality of conversion types and a plurality of target accounts, the old account, the conversion type and the target account correspond one by one, the method that the first account processing server can still be processed to the transaction processing request carrying the old account after the first account processing server is updated to the new account, effectively improves the compatibility of the first account processing server, and then ensures the continuity of the service, and improves the processing efficiency of the service. BRIEF DESCRIPTION OF DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0021] Figure 1 An application scenario diagram for processing transactions is provided for the embodiment of the present application. Figure 2 A flowchart of a transaction processing method is provided for the embodiment of the present application. Figure 3 A flowchart of obtaining an old account in a transaction processing request is provided for the embodiment of the present application. Figure 4 A flowchart of determining the same conversion type as the transaction type of the old account based on the account configuration conversion table is provided for the embodiment of the present application. Figure 5 A structural diagram of a transaction processing device is provided for the embodiment of the present application. Figure 6 A structural diagram of an electronic device is provided for the embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the objects, technical solutions and advantages of the present application clearer, the following further describes the present application in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0023] The terms "first" and "second" in the description of the application and claims and the above drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the term "comprising" and any variations thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device. "Multiple" in the present application can mean at least two, for example, can be two, three or more, and the embodiments of the present application are not limited.

[0024] The exemplary embodiments of the present application are described below with reference to the accompanying drawings, including various details of the embodiments of the present application to help understanding. They should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Also, for the sake of clarity and conciseness, the description below omits the description of well-known functions and structures. It should be noted that in the embodiments of the present application, some software, components, models and other industry solutions may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but does not mean that the applicant has or will necessarily use the solutions.

[0025] In the technical solutions of the present application, the acquisition, transmission, storage and use of data comply with the requirements of relevant national laws and regulations.

[0026] Before introducing the transaction processing method provided by the embodiments of the present application, in order to facilitate understanding, first, the technical background of the embodiments of the present application is described in detail.

[0027] In the transaction processing process, the transaction processing needs to rely on the transaction processing system to be implemented, that is, the relevant processing server processes the data in the transaction process and returns the transaction processing result to the outside. However, with the change of transaction processing requirements and the like, the relevant transaction processing system needs to be updated to meet the above changes. Exemplarily, the old account number in the database of the transaction processing system is changed to a new account number, thereby realizing the update of the transaction processing system. However, the above transaction processing system cannot process the old account number still in use sent by the external system in the system only including the new account number. The external system used in cooperation with the transaction processing system cannot be updated at the same time. In this case, the new system cannot be compatible with the old account number.

[0028] Exemplarily, in the process of recording the internal account of system A, system A receives the account data sent by system B and system C, and completes the recording of the internal account after processing the account data. However, the processing modes of system A, system B and system C are different for the above account data. Assuming that the arrangement rules of the account numbers of the account data of system A, system B and system C are different. In order to adapt to the new requirements, the transaction processing system 1 in system A needs to be upgraded, that is, the original old account numbers in the transaction processing system 1 are updated to new account numbers, and the transaction processing systems in system B and system C are not updated. In this case, the information sent by system B and system C still matches the old account number in system A, that is, the updated transaction processing system 1 cannot process the information sent by system B and system C.

[0029] Therefore, the present application provides a transaction processing method, device, electronic equipment and computer program product. The method is applied to a first account processing server. It should be noted that the first account processing server is updated from an original account processing system capable of processing old account numbers, that is, the old account numbers in the database of the first account processing system are all updated to new account numbers, and the transaction processing modes corresponding to the old account numbers are all associated with the new account numbers respectively. In the above case, the second account processing server sends a transaction processing request to the first account processing server, and the transaction processing request still carries the old account number. In the present application, a preset account configuration conversion table is provided. The first account processing server updated according to the above account configuration conversion table converts the old account number carried in the transaction processing request, and processes the transaction processing request.

[0030] Firstly, the application scenarios to which the technical solutions of the embodiments of the present application can be applied are briefly introduced. It should be noted that the following application scenarios are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.

[0031] Referring to Figure 1 As shown in FIG. 1, which is a schematic diagram of an application scenario of a transaction processing method provided by an embodiment of the present application. The application scenario diagram includes a first account processing server, which belongs to a first account processing system. In addition, the first account processing system also includes a database, which stores new accounts and transaction processing modes corresponding to each new account. When transaction processing is needed, the first account processing server uses the matching transaction processing mode in the database to perform related processing.

[0032] It should be noted that the first account processing system in the embodiment of the present application is obtained after the original account processing system is updated. That is, the original account processing system processes transaction requests related to old accounts. The original account processing system is also connected to multiple second account processing servers, that is, each second account processing server sends a transaction processing request to the original account processing system. Of course, the transaction processing request is also related to the old account.

[0033] The embodiment of the present application is aimed at the case that the original account processing system is updated to the first account processing system after the original account processing system is updated. The so-called update is to update the old account stored in the database to the new account, and to update the transaction processing mode corresponding to the old account to the transaction processing mode corresponding to the new account. However, the second account processing system to which each second account processing server belongs is not updated synchronously, that is, the second account processing server still sends a transaction processing request carrying an old account to the first account processing server. Obviously, the first account processing server in the first account processing system cannot recognize and process transaction processing requests related to the old account. Based on this, the embodiment of the present application proposes a transaction processing method, which enables the first account processing server to compatibly process transaction processing requests sent by each second account processing server.

[0034] It should be noted that each second account processing server represents a server that uses an old account to interact with the first account processing system. The updated first account processing system is still electrically connected to the second account processing server, and the updated first account processing system still allows each second account processing server to send a transaction processing request carrying an old account to it. Accordingly, the updated first account processing system can process the transaction processing request carrying the old account. That is, the second account processing server is a general term for servers that can interact with the updated first account processing system. When other servers (for example, other servers are servers that the updated first account processing system allows to interact with the first account processing server only using new accounts) send a transaction processing request to the first account processing system, the first account processing system will refuse to process the transaction processing request sent by the other servers.

[0035] It should be noted that, Figure 1 It is only an example, in fact, the number of the above-mentioned first account processing server and the second account processing server is not limited, and is not specifically limited in the embodiments of the present application.

[0036] The transaction processing method provided by the exemplary embodiments of the present application will be described below in combination with the above-described application scenarios, it should be noted that the above-mentioned application scenarios are only shown for the purpose of facilitating the understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect.

[0037] First, it is explained how the first account processing system in the embodiments of the present application is updated, the above-mentioned first account processing system is obtained by the following way: (1) obtaining a preset new-old account conversion mapping table, wherein the new-old account conversion mapping table includes a plurality of mapping relationships, and the mapping relationship indicates that one old account is converted to one new account; In the process of updating the original account processing system to the first account processing system, first, a new-old account conversion mapping table needs to be preset, the new-old account conversion mapping table includes a plurality of old accounts and a plurality of new accounts, the old account is the processing object of the original account processing system, and the new account is the processing object of the first account processing system.

[0038] In order to update the original account processing system to the first account processing system, the old account and the new account in the new-old account conversion mapping table constitute a plurality of one-to-one mapping relationships, each mapping relationship indicates that an old account is converted to a new account, that is, each old account in the database of the original account processing system can be converted to a new account according to the indication of the corresponding mapping relationship in the new-old account conversion mapping table, in this way, the old account in the database of the first account processing system is all updated to the new account.

[0039] (2) obtaining a plurality of old accounts stored in the database and a transaction processing mode corresponding to each old account; After the old account is converted to the new account in the updating process, the corresponding transaction processing mode needs to be matched for the converted new account, based on this, in the implementation process, after obtaining a plurality of old accounts stored in the database of the original account processing system, the transaction processing mode corresponding to each old account is further obtained.

[0040] It should be noted that if the transaction processing mode also needs to be updated in the updating process, then in this case, after obtaining the transaction processing mode corresponding to the old account, the obtained transaction processing mode will be modified, so that the modified transaction processing mode can meet the demand of transaction processing.

[0041] (3) According to the new-old account conversion mapping table, the obtained multiple old accounts are updated to corresponding new accounts respectively, and the updated new accounts and corresponding transaction processing modes are associated.

[0042] After obtaining the new accounts and the transaction processing modes, the first field value corresponding to the old account in the new-old account conversion mapping table is determined, and all old accounts corresponding to the first field value in the new-old account conversion mapping table are updated to corresponding new accounts respectively, so that the update of all old accounts in the first account processing system is realized. At the same time, the second field value corresponding to the transaction processing mode in the new-old account conversion mapping table is determined, and the new accounts corresponding to the first field value and the transaction processing modes corresponding to the second field value are associated, so as to constitute the association relationship between the new account and the transaction processing mode.

[0043] It should be noted that the update of the new account and the transaction processing mode is not limited to the new-old account conversion mapping table, but according to the new-old account conversion mapping table, the new accounts in the first account processing system are associated with the related transaction processing modes, and then the transaction processing modes in the first account processing system are updated, and the related transaction processing modes include the original transaction processing modes and the updated transaction processing modes.

[0044] In addition, in order to enable the first account processing server to process the transaction processing request related to the old account, the multiple old accounts before the update will also be stored in the database of the first account processing system, that is, the first account processing system stores multiple mapping relationships of old account-new account-transaction processing mode. When the first account processing server processes the transaction processing request including only the new account, the first account processing server directly obtains the transaction processing mode corresponding to the new account, and processes the transaction processing request by using the transaction processing mode; when the first account processing server processes the transaction processing request including the old account, the first account processing server first determines the new account corresponding to the old account, and then obtains the transaction processing mode corresponding to the new account, and processes the transaction processing request including the old account by using the transaction processing mode, which will be described in detail below.

[0045] Figure 2 A flowchart of a transaction processing method provided by an embodiment of the application is shown in FIG. 1. As shown in FIG. 1, the method can include the following steps: Figure 2 ​Step 201: In response to the transaction processing request, the transaction processing request is parsed and at least one old account number carried by the transaction processing request is obtained, wherein the database stores a plurality of new account numbers converted from a plurality of old account numbers based on a preset new-old account number conversion mapping table and a transaction processing mode corresponding to each new account number, and the transaction processing request is sent by the second account processing server; In the implementation process, when any one of the second account processing servers sends a transaction processing request to the first account processing server, the first account processing server first receives and responds to the transaction processing request, and then parses the transaction processing request.

[0046] Referring to Figure 3 The step of parsing the transaction processing request and obtaining the old account number specifically includes: Step 2011: In response to the received transaction processing request, the transaction processing request is parsed to determine the request source of the transaction processing request. In the implementation process, when the first account processing server receives the transaction processing request, the transaction processing request is responded to, that is, the transaction processing request is parsed first to obtain a parsed result. The parsed result includes, for example, the request source of the transaction processing request, the account number carried in the transaction processing request, the transaction processing mode corresponding to the account number, and the like. Then, the request source of the transaction processing request is extracted from the parsed result, that is, it is determined who sends the transaction processing request to the first account processing server.

[0047] Step 2012: Determine whether the transaction processing request is sent by the second account processing server based on the request source, wherein the second account processing system includes at least one second account processing server. In the implementation process, after the request source is determined, it is further determined whether the transaction processing request is sent by the second account processing server or by the other server. The second account processing server belongs to the second account processing system, and the first account processing system and the second account processing system are two independent processing systems.

[0048] The determination of the request source enables the first account processing system to determine whether to process the transaction processing request, that is, when the request source is the second account processing server, the first account processing system needs to further process the transaction processing request; when the request source is the other server, the first account processing system can refuse to process the transaction processing request.

[0049] Step 2013: If yes, at least one old account number carried by the transaction processing request is obtained based on the parsed result.

[0050] In the implementation process, in the case that it is determined that the transaction processing request is from the second account processing server, the first account processing server extracts the account included in the transaction processing request from the result of the above analysis, that is, determines the old account carried by the transaction processing request, and the number of the above old account can be one or more, which is not limited here.

[0051] It should be noted that although the first account processing system is updated, the connection relationship between the first account processing system and the corresponding systems of each second account processing server in data communication with the first account processing system does not change, in which case each second account processing server can still send a transaction processing request to the first account processing server, and after the first account processing server processes the transaction processing request, it also needs to return the related processing result to the second account processing server.

[0052] Step 202: Find whether there is a same transaction type conversion type corresponding to the old account in the preset account configuration conversion table, wherein the account configuration conversion table includes a plurality of old accounts, a plurality of conversion types and a plurality of target accounts, and the old account, the conversion type and the target account are one-to-one corresponding; In the embodiment of the application, in order for the first account processing server to be able to process the transaction processing request carrying the old account, an account configuration conversion table is set in advance, and the above account configuration conversion table is set in advance by the following method: [1] A plurality of conversion types are set in advance, wherein the conversion type is used to represent at least part of the transaction type allowed to be converted from the old account to the new account; Considering that the first account processing server can handle multiple transaction types, part of the related processing of the above transaction type needs the first account processing server to interact with the second account processing server, and another part of the related processing of the above transaction type needs the first account processing server to interact with other servers.

[0053] Based on this, when establishing the account configuration conversion table, the conversion type is used to represent at least part of the transaction type allowed to be converted from the old account to the new account, that is, only when the transaction processing request carrying the old account issued by the second account processing server belongs to one of the plurality of conversion types, the above old account can be converted to the new account.

[0054] [2] A one-to-one correspondence between a plurality of old accounts and a plurality of target accounts is established respectively, wherein the plurality of target accounts are part or all of the plurality of new accounts; After setting a plurality of conversion types, it is further necessary to determine the specific format of the old account allowed to be converted, for example, all old accounts are allowed to be converted to new accounts, or only a part of the old accounts are allowed to be converted to new accounts.

[0055] Based on this, the concept of a target account was introduced during implementation. The target account refers to all new accounts that the first account processing server can process, or a subset of all new accounts. During implementation, a one-to-one correspondence was established between each old account that was allowed to be converted and each target account. In this way, the old account carried in the transaction processing request issued by the second account processing server can be converted into the target account accordingly.

[0056] [3] Match each transaction type with each old account, and construct an account configuration conversion table based on the one-to-one correspondence between the old account, conversion type and target account obtained after matching.

[0057] During implementation, the transaction type matched by the old account is further obtained. If the transaction type belongs to the above conversion type, the transaction type can be replaced with the conversion type. In this way, a one-to-one correspondence between the old account, the conversion type and the target account can be obtained. The combination of multiple one-to-one correspondences between the old account, the conversion type and the target account constitutes the account configuration conversion table.

[0058] During implementation, after obtaining the old account carried in the transaction processing request, the transaction type corresponding to the old account is further obtained, and the account configuration conversion table above is checked to see if there is a conversion type with the same transaction type as the old account. If the same conversion type exists, the following steps are executed.

[0059] Step 203: If there is a conversion type in the account configuration conversion table that is the same as the transaction type, then convert the old account based on the account configuration conversion table and process the transaction processing request.

[0060] See Figure 4 As shown, the specific steps for processing a transaction processing request in this embodiment of the application include: Step 2031: If the account configuration conversion table contains a conversion type that is the same as the transaction type, then convert the old account to the target account based on the account configuration conversion table; During implementation, if a conversion type matching the transaction type exists in the account configuration conversion table, it indicates that the transaction processing request issued by the second account processing server is compatible with the updated first account processing server. In this case, the old account carried in the transaction processing request is further searched in the aforementioned account configuration conversion table. Based on the one-to-one correspondence between the old account, conversion type, and target account in the account configuration conversion table, the target account corresponding to the old account under the aforementioned conversion type is determined, and the old account is converted into the corresponding target account.

[0061] Step 2032: find a new account identical to the target account in the database, and determine the transaction processing mode corresponding to the new account; In the implementation process, after the target account corresponding to the old account is determined according to the account configuration conversion table, a new account identical to the target account is found in the database of the first account processing system. It should be noted that in one embodiment, identical here can mean completely identical in spelling format, for example, account A and account A. In another embodiment, the above-mentioned identical can also mean consistent in a certain specified parameter, for example, it is agreed in advance that the spelling of the account is not case-sensitive, in which case, account A and account a are also identical accounts.

[0062] After finding the new account identical to the target account in the database, the transaction processing mode corresponding to the new account in the database is further obtained. Since the target account is converted from the old account carried by the transaction processing request sent by the second account processing server, the transaction processing mode corresponding to the new account is the transaction processing mode of the transaction processing request sent by the second account processing server.

[0063] Step 2033: processing the transaction processing request by using the determined transaction processing mode.

[0064] In the implementation process, after the transaction processing mode of the transaction processing request is determined, the determined transaction processing mode can be used to process the transaction processing request. The above-mentioned processing includes but is not limited to data analysis, data operation, etc. Usually, after processing the transaction processing request, the first account processing server will also return the processing result to the second account processing server, for example, return the specific value of the processing result, return the prompt information that the processing is completed, etc. so as to perform subsequent operation by the second account processing server.

[0065] In addition, some abnormal problems will also occur in the above-mentioned transaction processing process, based on which, the above-mentioned transaction processing method further includes: If there is no conversion type identical to the transaction type in the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or In one embodiment, after the transaction type corresponding to the old account carried by the transaction processing request is determined, it is further found whether there is a conversion type identical to the transaction type in the above-mentioned account configuration conversion table. If there is no conversion type identical to the transaction type in the above-mentioned account configuration conversion table, it means that the transaction type corresponding to the transaction processing request is an updated first account processing server that cannot be compatible with the processing. In this case, the first account processing server will return a transaction rejection message to the second account processing server, that is, the second account processing server is informed by the transaction rejection message that the above-mentioned transaction processing request cannot be compatible with the processing.

[0066] If the target account corresponding to the old account cannot be found in the account configuration conversion table based on the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or

[0067] In an embodiment, after the old account carried by the transaction processing request is determined, it is checked in the account configuration conversion table whether the target account corresponding to the old account exists. If the target account corresponding to the old account cannot be found in the account configuration conversion table, it indicates that the old account may be an illegal account. In this case, the first account processing server returns a transaction rejection message to the second account processing server, that is, the second account processing server is informed by the transaction rejection message that the transaction processing request cannot be processed compatibly.

[0068] If the new account identical to the target account cannot be found in the database, a transaction rejection message is returned to the second account processing server.

[0069] In an embodiment, after the old account carried by the transaction processing request is determined, and the target account corresponding to the old account is found in the account configuration conversion table, it is necessary to continue to find the new account identical to the target account in the database of the first account processing system. If the new account can be found, the transaction processing request can be processed according to the transaction processing mode corresponding to the new account. If the new account identical to the target account cannot be found in the database, the corresponding transaction processing request cannot be obtained. In this case, the first account processing server returns a transaction rejection message to the second account processing server, that is, the second account processing server is informed by the transaction rejection message that the transaction processing request cannot be processed compatibly.

[0070] Based on the same inventive concept, the embodiments of the present application also provide a transaction processing device, which is similar to the transaction processing method described above, and the repeated parts will not be described herein again. As shown in FIG. 5, the transaction processing device comprises: Figure 5 The parsing module 501 is configured to parse the transaction processing request and obtain at least one old account carried by the transaction processing request in response to the transaction processing request, wherein the database stores a plurality of new accounts converted from a plurality of old accounts based on a preset new-old account conversion mapping table and a transaction processing mode corresponding to each new account, and the transaction processing request is sent by the second account processing server. The finding module 502 is configured to find whether a conversion type identical to a transaction type corresponding to the old account exists in a preset account configuration conversion table, wherein the account configuration conversion table comprises a plurality of old accounts, a plurality of conversion types and a plurality of target accounts, and the old account, the conversion type and the target account are one-to-one corresponding. ​The processing module 503 is configured to, if the same conversion type as the transaction type exists in the account configuration conversion table, convert the old account based on the account configuration conversion table, and process the transaction processing request.

[0071] In some optional embodiments, the parsing module 501 is further configured to: In response to the received transaction processing request, parse the transaction processing request, and determine the request source of the transaction processing request; Determine whether the transaction processing request is sent by a second account processing server based on the request source, wherein the second account processing system includes at least one second account processing server; If yes, obtain at least one old account carried by the transaction processing request based on the parsed result.

[0072] In some optional embodiments, the first account processing system is obtained by the following manner: Obtain a preset new-old account conversion mapping table, wherein the new-old account conversion mapping table includes a plurality of mapping relationships, and the mapping relationship indicates that one old account is converted into one new account; Obtain a plurality of old accounts stored in a database and a transaction processing mode corresponding to each old account; Update the obtained plurality of old accounts to corresponding new accounts according to the new-old account conversion mapping table, and associate each updated new account with the corresponding transaction processing mode.

[0073] In some optional embodiments, the account configuration conversion table is preset by the following manner: Pre-set a plurality of conversion types, wherein the conversion type is used to represent at least part of the transaction types that allow the old account to be converted into the new account; Establish a one-to-one correspondence between a plurality of old accounts and a plurality of target accounts, respectively, wherein the plurality of target accounts are part or all of the plurality of new accounts; Match each transaction type with each old account, and construct the account configuration conversion table based on the one-to-one correspondence of the old account, the conversion type, and the target account obtained after the matching.

[0074] In some optional embodiments, the processing module 503 is configured to: If the same conversion type as the transaction type exists in the account configuration conversion table, convert the old account into the target account based on the account configuration conversion table; Find the new account same as the target account in the database, and determine the transaction processing mode corresponding to the new account; Process the transaction processing request by using the determined transaction processing mode.

[0075] In some optional embodiments, the method further includes: if the same transaction type does not exist in the account configuration conversion table, returning a transaction rejection message to the second account processing server; or if the target account corresponding to the conversion of the old account cannot be found based on the account configuration conversion table, returning a transaction rejection message to the second account processing server; or if the new account identical to the target account cannot be found in the database, returning a transaction rejection message to the second account processing server.

[0076] Based on the same inventive concept, the embodiments of the present application also provide an electronic device, which is similar to the transaction processing method described above, and the repeated parts will not be described herein.

[0077] The electronic device described above can realize the functions of the transaction processing discussed above, and refer to Figure 6 The device includes a processor 601 and a memory 602, wherein the memory 602 stores program code, and when the program code is executed by the processor, the processor 601 executes the steps of the method for processing transactions according to various exemplary embodiments of the present application described in the present specification.

[0078] Based on the same inventive concept, the embodiments of the present application provide a computer program product, which stores computer program code, and when the computer program code is run on a computer, the computer executes any of the transaction processing methods discussed above. Since the problem-solving principle of the above computer readable storage medium is similar to the transaction processing method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be described herein.

[0079] The embodiment of the application discloses a transaction processing method and device, an electronic device and a computer program product. The method is applied to a first account processing server. In the implementation process, the first account processing server responds to a transaction processing request sent by a second account processing server. A database of the first account processing server stores a plurality of new accounts converted from a plurality of old accounts based on a preset new-old account conversion mapping table and a transaction processing mode corresponding to each new account. The transaction processing request is parsed and at least one old account carried by the transaction processing request is obtained. It is determined whether there is a conversion type same as a transaction type corresponding to the old account in a preset account configuration conversion table. If the conversion type same as the transaction type exists in the account configuration conversion table, the old account is converted based on the account configuration conversion table, and the transaction processing request is processed. The account configuration conversion table includes a plurality of old accounts, a plurality of conversion types and a plurality of target accounts. The old accounts, the conversion types and the target accounts correspond to each other. The method can process the transaction processing request carrying the old account after the first account processing server is updated to the new account, effectively improves the compatibility of the first account processing server, ensures the continuity of the business, and improves the processing efficiency of the business.

[0080] The application is described above with reference to block and / or flow diagrams of the method, device (system) and / or computer program product according to the embodiments of the application. It should be understood that one block and a combination of blocks in the block and / or flow diagrams 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, and / or other programmable data processing apparatus to produce a machine, so that the instructions executed by the computer processor and / or other programmable data processing apparatus create a method for implementing the functions / acts specified in the block of the block and / or flow diagram.

[0081] Accordingly, the application can also be implemented by hardware and / or software (including firmware, resident software, microcode, etc.). Furthermore, the application can take the form of a computer program product on a computer usable or computer-readable storage medium having computer usable or computer-readable program code embodied in the medium that can be executed by a computer processing system. In this context, a computer-usable or computer-readable medium can be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer-usable or computer-readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, propagation medium, or computer memory.

[0082] It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.

Claims

1. A method for transaction processing, characterized in that, Applied to a first account processing server, the first account processing system includes at least one first account processing server and a database, the method includes: In response to a transaction processing request, the transaction processing request is parsed and at least one old account is obtained from the transaction processing request. The database stores multiple new accounts converted from multiple old accounts based on a preset new and old account conversion mapping table and transaction processing methods corresponding to each of the new accounts. The transaction processing request is issued by the second account processing server. The system searches a preset account configuration conversion table to see if there is a conversion type that is the same as the transaction type corresponding to the old account. The account configuration conversion table includes multiple old accounts, multiple conversion types, and multiple target accounts, and the old accounts, conversion types, and target accounts correspond one-to-one. If the account configuration conversion table contains a conversion type that is the same as the transaction type, then the old account is converted based on the account configuration conversion table, and the transaction processing request is processed.

2. The method as described in claim 1, characterized in that, The first account processing system obtains the information in the following way: Obtain the preset old and new account conversion mapping table, wherein the old and new account conversion mapping table includes multiple mapping relationships, and the mapping relationship indicates that one old account corresponds to one new account; Obtain the multiple old accounts stored in the database and the transaction processing methods corresponding to each old account; According to the old and new account conversion mapping table, the obtained old accounts are updated to the corresponding new accounts, and the updated new accounts are associated with the corresponding transaction processing methods.

3. The method as described in claim 1, characterized in that, The account configuration conversion table is pre-set in the following way: Multiple conversion types are pre-defined, wherein the conversion types are used to characterize at least a portion of the transaction types that allow the old account to be converted into the new account; Establish a one-to-one correspondence between multiple old accounts and multiple target accounts, wherein the multiple target accounts are some or all of the multiple new accounts; Each transaction type is matched with each old account, and the account configuration conversion table is constructed based on the one-to-one correspondence between the old accounts, the conversion types, and the target accounts obtained after matching.

4. The method as described in claim 1, characterized in that, The step of responding to a transaction processing request by parsing the transaction processing request and obtaining at least one of the old accounts carried in the transaction processing request includes: In response to the received transaction processing request, the transaction processing request is parsed to determine the source of the transaction processing request; Based on the source of the request, it is determined whether the transaction processing request was sent by the second account processing server, wherein the second account processing system includes at least one second account processing server; If so, then based on the parsing result, the transaction processing request is obtained to carry at least one of the old accounts.

5. The method as described in claim 1, characterized in that, If the account configuration conversion table contains a conversion type identical to the transaction type, then the old account is converted based on the account configuration conversion table, and the transaction processing request is processed, including: If the account configuration conversion table contains a conversion type that is the same as the transaction type, then the old account is converted to the target account based on the account configuration conversion table; Search the database for a new account that is identical to the target account, and determine the transaction processing method corresponding to the new account; The transaction processing request is processed using the determined transaction processing method.

6. The method as described in claim 5, characterized in that, The method further includes: If the account configuration conversion table does not contain a conversion type that matches the transaction type, a transaction rejection message is returned to the second account processing server; or If the target account corresponding to the old account cannot be found based on the account configuration conversion table, a transaction rejection message is returned to the second account processing server; or If the new account that is identical to the target account cannot be found in the database, a transaction rejection message is returned to the second account processing server.

7. A transaction processing apparatus, characterized in that, The device includes: The parsing module is used to respond to a transaction processing request, parse the transaction processing request and obtain at least one old account carried in the transaction processing request. The database stores multiple new accounts converted from multiple old accounts based on a preset new and old account conversion mapping table and transaction processing methods corresponding to each of the new accounts. The transaction processing request is issued by the second account processing server. The search module is used to search in a preset account configuration conversion table for whether there is a conversion type with the same transaction type as the old account. The account configuration conversion table includes multiple old accounts, multiple conversion types, and multiple target accounts, and the old accounts, conversion types, and target accounts correspond one-to-one. The processing module is used to convert the old account based on the account configuration conversion table if there is a conversion type with the same transaction type as the transaction type, and to process the transaction processing request.

8. The apparatus as claimed in claim 7, characterized in that, The parsing module is also used for: In response to the received transaction processing request, the transaction processing request is parsed to determine the source of the transaction processing request; Based on the source of the request, it is determined whether the transaction processing request was sent by the second account processing server, wherein the second account processing system includes at least one second account processing server; If so, then based on the parsing result, the transaction processing request is obtained to carry at least one of the old accounts.

9. An electronic device, characterized in that, include: Memory, used to store program instructions; A processor is configured to invoke program instructions stored in the memory and execute the steps of the method according to any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the method described in any one of claims 1 to 6.