Method and apparatus for processing services
By identifying the target systems and services of the bank's new and old core systems, and using configuration and mapping tables to process transaction requests, the problem of transactions not being automatically mapped to interface services was solved, improving system availability and data consistency.
Patent Information
- Application Number
- CN202210303305.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2042-03-25
AI Technical Summary
In the current technology, during the transition between the old and new core systems of a bank, user-initiated transactions cannot be automatically sent to the corresponding service interface, resulting in one-to-many and many-to-one mapping problems, as well as high complexity of calls between heterogeneous systems and poor data consistency.
By determining the target system and target service based on the transaction request information, and using the transaction configuration table, transaction mapping table, and message mapping table, a target message is generated and sent to the target service to execute the scheduled transaction.
This system enables the automatic transmission of transaction request information to the corresponding target service during the transition between the old and new core systems of a bank, resolving one-to-many and many-to-one mapping issues and improving system availability and data consistency.
Smart Images

Figure CN114677208B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the banking field, and in particular, to a service processing method, a processing device, a computer-readable storage medium, a processor, and an electronic device. Background Art
[0002] Core banking systems are crucial for the smooth operation of various banking businesses. These systems are complex and diverse, with numerous interdependent systems interfacing with them. Over time, these systems become difficult to modify, and their code gradually rots. To replace the existing system, a refactoring process is necessary, implementing a new one while maintaining the normal operation of the old one.
[0003] To enable the simultaneous operation of new and legacy systems, existing technologies typically introduce an anti-corruption layer between the two systems to isolate them. This layer sits between new and legacy applications, ensuring that the new application's design is not constrained by the legacy application and acting as a mechanism for transitioning between them. An anti-corruption layer is created to provide functionality to clients based on their own domain models. This layer communicates with the other system through its existing interfaces, requiring minimal modification. Therefore, anti-corruption layer isolation not only protects the system from malicious code but also separates different domains and ensures they remain separate in the future.
[0004] However, the anti-corruption layer technology currently available on the market cannot effectively solve the automatic one-to-many and many-to-one mapping problems during the switching of banks' old and new core systems. One-to-many means that a transaction initiated by a customer needs to be sent to multiple services in an interface of the new or old system to complete, and many-to-one means that a transaction initiated by a customer needs to be sent to one service in an interface of the new or old system to complete. In other words, during the switching of the old and new core systems, it is impossible to automatically determine which services in the interface the customer's transaction corresponds to.
[0005] In addition, the current anti-corruption layer technology cannot effectively solve the heterogeneous problems between the bank's new and old core systems. For example, the C language system and the Java language (computer programming language) system, the inter-system calls and decoupling mostly rely on message middleware such as MQ (MessageQueue, message queue), resulting in low system availability, high complexity and poor data consistency, and cannot simply and accurately realize the transaction conversion between the new core system and the old core system.
[0006] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country to those skilled in the art. Summary of the Invention
[0007] The main purpose of this application is to provide a service processing method, processing device, computer-readable storage medium, processor and electronic device to solve the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems.
[0008] According to one aspect of an embodiment of the present invention, a service processing method is provided, comprising: determining a target system at least based on transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is used to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the scheduled transaction, and the request message is a message generated according to the request operation of the scheduled transaction; determining a corresponding target service and a target message based on the transaction request information and the target system, the target service being the service that executes the scheduled transaction, and the target message being message information recognizable by the target system; and sending the target message to the target service so that the target service executes the scheduled transaction.
[0009] Optionally, determining the target system at least based on the transaction request information includes: obtaining a transaction configuration table, the transaction configuration table including a plurality of the systems and a first transaction code of each of the interfaces corresponding to the systems; and when the transaction configuration table contains the first transaction code identical to the requested transaction code, determining that the system corresponding to the first transaction code identical to the requested transaction code is the target system.
[0010] Optionally, when the first transaction code identical to the requested transaction code does not exist in the transaction configuration table, the method further includes: acquiring the target system corresponding to the requested transaction code.
[0011] Optionally, the transaction request information further includes transaction parameters of the predetermined transaction. Determining the corresponding target service based on the transaction request information and the target system includes: obtaining a transaction mapping table corresponding to the target system, the transaction mapping table including a plurality of second transaction codes, a plurality of the services, and a plurality of mapping elements, wherein the second transaction code is a code corresponding to each of the interfaces in the target system, the mapping element is an information type required to execute each of the services in the target system, the second transaction code corresponds to at least one of the mapping elements, and the service corresponds to at least one of the mapping elements. If all of the mapping elements corresponding to the second transaction code are empty, it indicates that the second transaction code corresponds to a services, and when at least part of the mapping elements corresponding to the second transaction code are not empty, it indicates that the second transaction code corresponds to multiple services; according to the transaction mapping table and the request transaction code, it is determined whether all the mapping elements corresponding to the second predetermined transaction code are empty, and the second predetermined transaction code is the same as the request transaction code; when all the mapping elements corresponding to the second predetermined transaction code are empty, it is determined that the service corresponding to the mapping element is the target service; when part of the mapping elements corresponding to the second predetermined transaction code is not empty, the target service is determined according to the request transaction code, the transaction parameters and the transaction mapping table.
[0012] Optionally, the transaction mapping table also includes multiple mapping values, the mapping value is the specific content corresponding to the information type, and the mapping element corresponds to the mapping value one-to-one, the transaction parameters include a predetermined type and predetermined content, the predetermined type is the information type required to execute the predetermined transaction, and the predetermined content is the specific content corresponding to the predetermined type, and the target service is determined according to the request transaction code, the transaction parameters and the transaction mapping table, including: determining that the mapping element corresponding to the request transaction code in the transaction mapping table is the first target element; determining that all the mapping elements corresponding to the predetermined service in the transaction mapping table are the second target elements, and the predetermined service is the service corresponding to the first target element; when the predetermined type is the same as the second target element, and the predetermined content is the same as the mapping value corresponding to the second target element, determining the predetermined service as the target service.
[0013] Optionally, when the predetermined type is different from the second target element, or the predetermined content is different from the mapping value corresponding to the second target element, the method further includes: generating an error message.
[0014] Optionally, determining the corresponding target message based on the transaction request information and the target system includes: obtaining a message mapping table corresponding to the target system, the message mapping table including multiple original messages and corresponding final messages, the original message being a message generated according to the request operation of each transaction, and the final message being a message recognizable by the target system; performing predetermined processing on the request message to obtain an intermediate message, the predetermined processing including at least one of extraction processing, splicing processing and interception processing; determining in the message mapping table that the final message corresponding to the original message that is identical to the intermediate message is the target message.
[0015] Optionally, the request message is subjected to predetermined processing to obtain an intermediate message, including: determining whether the request message is an array; if the request message is the array, extracting all array elements and first identification information from the request message, the first identification information including information representing the partial content of the corresponding array element to be intercepted, and / or information representing the splicing rule of at least part of the array elements; if the request message is not the array, obtaining all data information and second identification information in the request message, the second identification information including information representing the partial content of the corresponding data information to be intercepted, and / or information representing the splicing rule of at least part of the data information; splicing and / or intercepting each array element according to the first identification information to obtain the intermediate message, or splicing and / or intercepting each data information according to the second identification information to obtain the intermediate message.
[0016] According to another aspect of an embodiment of the present invention, a service processing device is further provided, the service processing device including a first determination unit, a second determination unit, and a sending unit, wherein the first determination unit is used to determine a target system based at least on transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is used to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the scheduled transaction, and the request message is a message generated based on the request operation of the scheduled transaction; the second determination unit is used to determine a corresponding target service and a target message based on the transaction request information and the target system, the target service is the service that executes the scheduled transaction, and the target message is message information recognizable by the target system; the sending unit is used to send the target message to the target service so that the target service executes the scheduled transaction.
[0017] According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein the program is used to execute any one of the methods described above.
[0018] According to yet another aspect of the embodiments of the present invention, a processor is provided, wherein the processor is configured to run a program, wherein any one of the methods is executed when the program is run.
[0019] According to another aspect of an embodiment of the present invention, an electronic device is also provided, which includes one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described.
[0020] In an embodiment of the present invention, in the service processing method, first, a target system is determined based on at least transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is used to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the scheduled transaction, and the request message is a message generated according to the request operation of the scheduled transaction; then, based on the transaction request information and the target system, a corresponding target service and a target message are determined, the target service is the service that executes the scheduled transaction, and the target message is message information recognizable by the target system; finally, the target message is sent to the target service so that the target service executes the scheduled transaction. Compared with the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems, the service processing method of the present application determines the target system through the transaction request information, and then determines the target service and the target message through the transaction request information and the target system, ensuring that the target service and the target message can be obtained according to the transaction request information, so that the target service can execute the scheduled transaction, and ensuring that during the switching of the bank's old and new core systems, the transaction request information can be automatically sent to the corresponding target service to process the scheduled transaction corresponding to the transaction request information, solving the one-to-many and many-to-one mapping problems in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings that constitute part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0022] Figure 1 A schematic diagram showing a process flow of a method for processing a service according to an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram showing a service processing device according to an embodiment of the present application;
[0024] Figure 3 A process flow chart of a service according to an embodiment of the present application is shown;
[0025] Figure 4 A flow chart of determining a target service according to an embodiment of the present application is shown;
[0026] Figure 5 A flow chart of determining a target message according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element or intervening elements may be present. Moreover, in the specification and claims, when it is described that an element is "connected to" another element, the element may be "directly connected to" the other element or "connected to" the other element through a third element.
[0031] As mentioned in the background technology, in the prior art, during the switching of the bank's old and new core systems, transactions initiated by users cannot be automatically sent to the service corresponding to the interface. In order to solve the above problem, a typical embodiment of the present application provides a service processing method, processing device, computer-readable storage medium, processor and electronic device.
[0032] According to an embodiment of the present application, a service processing method is provided.
[0033] Figure 1 This is a flow chart of a method for processing services according to an embodiment of the present application. Figure 1 As shown, the method includes the following steps:
[0034] Step S101, determining a target system based at least on the transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is configured to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the predetermined transaction, and the request message is a message generated based on the request operation for the predetermined transaction;
[0035] Step S102: Determine a corresponding target service and target message based on the transaction request information and the target system. The target service is the service for executing the predetermined transaction, and the target message is message information recognizable by the target system.
[0036] Step S103: sending the target message to the target service, so that the target service executes the predetermined transaction.
[0037] In the processing method of the above-mentioned service, first, a target system is determined based on at least the transaction request information, wherein the above-mentioned target system is a system for processing the above-mentioned transaction request information, the above-mentioned target system includes multiple interfaces, one of the above-mentioned interfaces is used to execute at least one service, the above-mentioned request information includes a request transaction code and a request message, the above-mentioned request transaction code is the code of the above-mentioned interface corresponding to the scheduled transaction, and the above-mentioned request message is a message generated according to the request operation of the above-mentioned scheduled transaction; then, based on the above-mentioned transaction request information and the above-mentioned target system, the corresponding target service and target message are determined, the above-mentioned target service is the above-mentioned service for executing the above-mentioned scheduled transaction, and the above-mentioned target message is message information recognizable by the above-mentioned target system; finally, the above-mentioned target message is sent to the above-mentioned target service, so that the above-mentioned target service executes the above-mentioned scheduled transaction. Compared with the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems, the processing method of the above-mentioned service in the present application determines the above-mentioned target system through the above-mentioned transaction request information, and then determines the above-mentioned target service and target message through the above-mentioned transaction request information and the above-mentioned target system, ensuring that the above-mentioned target service and the above-mentioned target message can be obtained according to the above-mentioned transaction request information, so that the above-mentioned target service can execute the above-mentioned scheduled transaction, and ensures that during the switching of the bank's old and new core systems, the above-mentioned transaction request information can be automatically sent to the corresponding above-mentioned target service to process the above-mentioned scheduled transaction corresponding to the above-mentioned transaction request information, solving the one-to-many and many-to-one mapping problems in the prior art.
[0038] In actual application, the above target system is the bank's new core system or the bank's old core system.
[0039] According to a specific embodiment of the present application, determining a target system based at least on transaction request information includes: obtaining a transaction configuration table, the transaction configuration table including a plurality of systems and first transaction codes corresponding to the interfaces of the systems; and, if the transaction configuration table contains a first transaction code identical to the request transaction code, determining that the system corresponding to the first transaction code identical to the request transaction code is the target system. By determining that the first transaction code identical to the request transaction code is the target system, the target system corresponding to the first transaction code is automatically and conveniently confirmed.
[0040] In order to further ensure that the target system corresponding to the above-mentioned transaction request information is determined relatively simply and quickly, and further facilitate the subsequent determination of the corresponding target service, according to another specific embodiment of the present application, when the above-mentioned first transaction code that is identical to the above-mentioned request transaction code does not exist in the above-mentioned transaction configuration table, the above-mentioned method also includes: obtaining the above-mentioned target system corresponding to the above-mentioned request transaction code.
[0041] In a specific embodiment, when the first transaction code identical to the requested transaction code does not exist in the transaction configuration table, the target system corresponding to the requested transaction code can be determined through system analysis. In addition, when the system analysis fails to determine the target system corresponding to the requested transaction code, the target system can be fixedly specified for the transaction request information or an error message can be generated based on the previous settings of the system.
[0042] According to another specific embodiment of the present application, the transaction request information also includes transaction parameters of the predetermined transaction. According to the transaction request information and the target system, the corresponding target service is determined, including: obtaining a transaction mapping table corresponding to the target system, the transaction mapping table including multiple second transaction codes, multiple services and multiple mapping elements, wherein the second transaction code is a code corresponding to each of the interfaces in the target system, the mapping element is an information type required to execute each of the services in the target system, the second transaction code corresponds to at least one of the mapping elements, and the service corresponds to at least one of the mapping elements. When all of the mapping elements corresponding to the second transaction code are empty, it indicates that the second transaction code is not available. The transaction code corresponds to one of the above-mentioned services. If at least part of the above-mentioned mapping elements corresponding to the above-mentioned second transaction code are not empty, it indicates that the above-mentioned second transaction code corresponds to multiple above-mentioned services. According to the above-mentioned transaction mapping table and the above-mentioned request transaction code, it is determined whether all the above-mentioned mapping elements corresponding to the second predetermined transaction code are empty. The above-mentioned second predetermined transaction code is the same as the above-mentioned request transaction code. If all the above-mentioned mapping elements corresponding to the above-mentioned second predetermined transaction code are empty, it is determined that the above-mentioned service corresponding to the above-mentioned mapping elements is the above-mentioned target service. If part of the above-mentioned mapping elements corresponding to the above-mentioned second predetermined transaction code are not empty, the above-mentioned target service is determined according to the above-mentioned request transaction code, the above-mentioned transaction parameters and the above-mentioned transaction mapping table. When all of the mapping elements corresponding to the second predetermined transaction code are empty, it indicates that the second transaction code that is the same as the request transaction code corresponds to only one of the services, and the single service is determined to be the target service. When some of the mapping elements corresponding to the second predetermined transaction code are not empty, it indicates that the second transaction code that is the same as the request transaction code corresponds to multiple services. In this case, the target service is determined based on the request transaction code, the transaction parameters and the transaction mapping table, which further ensures that the target service can be obtained more accurately and simply based on the transaction request information.
[0043] In order to further solve the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the old and new core systems of the bank, and to further ensure that the target service can be automatically determined based on the above-mentioned transaction request information, according to a specific embodiment of the present application, the above-mentioned transaction mapping table also includes multiple mapping values, the above-mentioned mapping values are specific contents corresponding to the above-mentioned information types, and the above-mentioned mapping elements correspond one-to-one to the above-mentioned mapping values, the above-mentioned transaction parameters include a predetermined type and predetermined contents, the above-mentioned predetermined type is the above-mentioned information type required to execute the above-mentioned predetermined transaction, and the above-mentioned predetermined contents are the above-mentioned specific contents corresponding to the above-mentioned predetermined type, and the above-mentioned target service is determined according to the above-mentioned request transaction code, the above-mentioned transaction parameters and the above-mentioned transaction mapping table, including: determining that the above-mentioned mapping element corresponding to the above-mentioned request transaction code in the above-mentioned transaction mapping table is a first target element; determining that all the above-mentioned mapping elements corresponding to the predetermined service in the above-mentioned transaction mapping table are second target elements, and the above-mentioned predetermined service is the above-mentioned service corresponding to the above-mentioned first target element; when the above-mentioned predetermined type is the same as the above-mentioned second target element, and the above-mentioned predetermined content is the same as the above-mentioned mapping value corresponding to the above-mentioned second target element, determining the above-mentioned predetermined service as the above-mentioned target service. In the case where the above-mentioned request transaction code corresponds to multiple above-mentioned services, by determining the above-mentioned mapping element corresponding to the above-mentioned request transaction code as the first target element in the above-mentioned transaction mapping table, and then determining all the above-mentioned mapping elements corresponding to the above-mentioned reserved services as the above-mentioned second target elements, and when the above-mentioned reserved type is the same as the above-mentioned second target element, and the above-mentioned reserved content is the same as the above-mentioned mapping value corresponding to the above-mentioned second target element, the above-mentioned target service is determined, thereby further ensuring that the above-mentioned target service can be obtained according to the above-mentioned transaction request information.
[0044] According to another specific embodiment of the present application, when the above-mentioned predetermined type is different from the above-mentioned second target element, or the above-mentioned predetermined content is different from the above-mentioned mapping value corresponding to the above-mentioned second target element, the above-mentioned method also includes: generating an error message.
[0045] Specifically, the mapping elements include transaction date, ID card number, bank account number, etc., and the mapping value includes specific information such as transaction date, ID card number, bank account number, etc.
[0046] According to another specific embodiment of the present application, based on the transaction request information and the target system, determining the corresponding target message includes: obtaining a message mapping table corresponding to the target system, the message mapping table including multiple original messages and corresponding final messages, the original message being a message generated according to the request operation of each transaction, and the final message being a message recognizable by the target system; performing predetermined processing on the request message to obtain an intermediate message, the predetermined processing including at least one of extraction processing, splicing processing, and interception processing; determining that the final message corresponding to the original message identical to the intermediate message in the message mapping table is the target message. By performing predetermined processing on the request message to obtain the intermediate message, and then determining that the final message corresponding to the original message identical to the intermediate message in the message mapping table is the target message through the intermediate message and the message mapping table, it is further ensured that the target message recognizable by the target service can be determined based on the original message corresponding to the service request information, and further ensured that the target service of the target system can process the service request information.
[0047] In a specific embodiment, the process of determining that the final message corresponding to the original message that is identical to the intermediate message in the message mapping table is the target message is called message mapping. The message of the old core system of the bank is in TUXEDO (middleware) FML (Field Manipulation Language) format, that is, all communication messages of the old core system of the bank are composed of a series of FML fields, and the message of the new core system of the bank is in HTTP (HyperText Transfer Protocol) JSON (JavaScript Object Notation, lightweight data exchange format) format. The message format of the old core system is different from that of the new core system, and the request message needs to be processed to obtain the target message that can be recognized by the target system.
[0048] Specifically, after performing message mapping on the request message, an assignment process is also included, i.e., assigning the mapped message to a format recognizable by the target system to obtain the target message. The above splicing and interception processes are not required for every request message and are mainly determined based on the actual situation of the request message.
[0049] According to a specific embodiment of the present application, the above-mentioned request message is subjected to predetermined processing to obtain an intermediate message, including: determining whether the above-mentioned request message is an array; in the case that the above-mentioned request message is the above-mentioned array, extracting all array elements and first identification information from the above-mentioned request message, the above-mentioned first identification information includes information representing the partial content of the corresponding above-mentioned array element to be intercepted, and / or information representing the splicing rule of at least part of the above-mentioned array element; in the case that the above-mentioned request message is not the above-mentioned array, obtaining all data information and second identification information in the above-mentioned request message, the above-mentioned second identification information includes information representing the partial content of the corresponding above-mentioned data information to be intercepted, and / or information representing the splicing rule of at least part of the above-mentioned data information; according to the above-mentioned first identification information, splicing and / or intercepting each of the above-mentioned array elements to obtain the above-mentioned intermediate message, or according to the above-mentioned second identification information, splicing and / or intercepting each of the above-mentioned data information to obtain the above-mentioned intermediate message. By determining whether the above-mentioned request message is an array, and extracting it when the above-mentioned request message is the above-mentioned array, all array elements and the first identification information are obtained. If the above-mentioned request message is not the above-mentioned array, by obtaining the data information and the second identification information, and then splicing and / or intercepting each of the above-mentioned array elements according to the above-mentioned first identification information, or splicing and / or intercepting each of the above-mentioned data information according to the above-mentioned second identification information, the above-mentioned intermediate message is obtained, which ensures that the above-mentioned target message can be obtained according to the above-mentioned intermediate message, and further ensures that the above-mentioned target system can process the above-mentioned service request information.
[0050] Specifically, when the request message is the array, among the intermediate messages obtained, the intermediate messages that do not exist in the message mapping table are discarded, and the other intermediate messages continue to obtain the target message according to the message mapping table.
[0051] In a specific embodiment, after the target service executes the predetermined transaction, the method further includes: generating a return message. Specifically, the generating of the return message includes: generating a result message, the result message representing the processing result of the transaction request information; obtaining a return message mapping table corresponding to the predetermined system, the return message mapping table including multiple initial messages and predetermined messages, the initial message being a message generated by the target system, the predetermined message being a message recognizable by the predetermined system, and the predetermined system being a system that generates the transaction request information in response to the request operation; determining whether the result message is an array, and in the case that the result message is an array, extracting all array elements and first identification information from the request message, the first identification information including information representing the interception of part of the content of the corresponding array element, and / or representing at least part of the array. information on the splicing rules of the group elements, and in the case that the above-mentioned result message is not the above-mentioned array, all the data information and the second identification information in the above-mentioned result message are obtained, the above-mentioned second identification information includes information representing the partial content of the above-mentioned data information corresponding to the interception, and / or information representing the splicing rules of at least part of the above-mentioned data information, according to the above-mentioned first identification information, each of the above-mentioned array elements is spliced and / or intercepted to obtain the return intermediate message, or according to the above-mentioned second identification information, each of the above-mentioned data information is spliced and / or intercepted to obtain the above-mentioned return intermediate message, according to the above-mentioned return message mapping table, determine that the above-mentioned predetermined message corresponding to the above-mentioned initial message that is the same as the above-mentioned return intermediate message is the above-mentioned return message; and send the above-mentioned return message to the above-mentioned predetermined system.
[0052] Specifically, the transaction configuration table, the transaction mapping table, the message mapping table, and the return message mapping table are obtained by the staff through a large amount of data analysis in the early stage. The processing process of the above services is flexible and configurable, not dependent on the business, can be productized, has high availability, low complexity, and can also ensure data consistency.
[0053] The embodiment of the present application further provides a service processing device. It should be noted that the service processing device of the embodiment of the present application can be used to execute the service processing method provided by the embodiment of the present application. The service processing device provided by the embodiment of the present application is introduced below.
[0054] Figure 2 Schematic diagram of a service processing device according to an embodiment of the present application. Figure 2As shown, the device includes a first determination unit 10, a second determination unit 20 and a sending unit 30, wherein the first determination unit 10 is used to determine a target system based on at least transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is used to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the scheduled transaction, and the request message is a message generated according to the request operation of the scheduled transaction; the second determination unit 20 is used to determine a corresponding target service and a target message based on the transaction request information and the target system, the target service is the service that executes the scheduled transaction, and the target message is message information recognizable by the target system; the sending unit 30 is used to send the target message to the target service so that the target service executes the scheduled transaction.
[0055] In the processing device of the above-mentioned service, the target system is determined by the above-mentioned first determination unit at least based on the transaction request information, wherein the above-mentioned target system is a system for processing the above-mentioned transaction request information, the above-mentioned target system includes multiple interfaces, one of the above-mentioned interfaces is used to execute at least one service, the above-mentioned request information includes a request transaction code and a request message, the above-mentioned request transaction code is the code of the above-mentioned interface corresponding to the scheduled transaction, and the above-mentioned request message is a message generated according to the request operation of the above-mentioned scheduled transaction; the corresponding target service and target message are determined by the above-mentioned second determination unit based on the above-mentioned transaction request information and the above-mentioned target system, the above-mentioned target service is the above-mentioned service for executing the above-mentioned scheduled transaction, and the above-mentioned target message is message information recognizable by the above-mentioned target system; the above-mentioned target message is sent to the above-mentioned target service by the above-mentioned sending unit, so that the above-mentioned target service executes the above-mentioned scheduled transaction. Compared with the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems, the processing device of the above-mentioned service in the present application determines the above-mentioned target system through the above-mentioned transaction request information, and then determines the above-mentioned target service and target message through the above-mentioned transaction request information and the above-mentioned target system, ensuring that the above-mentioned target service and the above-mentioned target message can be obtained according to the above-mentioned transaction request information, so that the above-mentioned target service can execute the above-mentioned scheduled transaction, and ensuring that during the switching of the bank's old and new core systems, the above-mentioned transaction request information can be automatically sent to the corresponding above-mentioned target service to process the above-mentioned scheduled transaction corresponding to the above-mentioned transaction request information, solving the one-to-many and many-to-one mapping problems in the prior art.
[0056] In actual application, the above target system is the bank's new core system or the bank's old core system.
[0057] According to a specific embodiment of the present application, the first determination unit includes a first acquisition module and a first determination module. The first acquisition module is configured to acquire a transaction configuration table, the transaction configuration table including a plurality of systems and first transaction codes for each of the interfaces corresponding to the systems. The first determination module is configured to, if the transaction configuration table contains a first transaction code identical to the request transaction code, determine that the system corresponding to the first transaction code identical to the request transaction code is the target system. By determining that the first transaction code identical to the request transaction code is the target system, the system corresponding to the first transaction code is determined to be the target system, thereby further ensuring that the target system corresponding to the transaction request information can be automatically and conveniently confirmed.
[0058] In order to further ensure that the target system corresponding to the above-mentioned transaction request information is determined relatively simply and quickly, and to further facilitate the subsequent determination of the corresponding target service, according to another specific embodiment of the present application, the above-mentioned device also includes an acquisition unit, which is used to obtain the above-mentioned target system corresponding to the above-mentioned request transaction code when the above-mentioned first transaction code that is identical to the above-mentioned request transaction code does not exist in the above-mentioned transaction configuration table.
[0059] In a specific embodiment, when the first transaction code identical to the requested transaction code does not exist in the transaction configuration table, the target system corresponding to the requested transaction code can be determined through system analysis. In addition, when the system analysis fails to determine the target system corresponding to the requested transaction code, the target system can be fixedly specified for the transaction request information or an error message can be generated based on the previous settings of the system.
[0060] According to another specific embodiment of the present application, the transaction request information also includes the transaction parameters of the predetermined transaction, and the second determination unit includes a second acquisition module, a second determination module, a third determination module and a fourth determination module, wherein the second acquisition module is used to obtain the transaction mapping table corresponding to the target system, and the transaction mapping table includes multiple second transaction codes, multiple services and multiple mapping elements, wherein the second transaction code is a code corresponding to each of the above interfaces in the target system, and the mapping element is an information type required to execute each of the above services in the target system, the second transaction code corresponds to at least one of the above mapping elements, and the above service corresponds to at least one of the above mapping elements. When all of the above mapping elements corresponding to the second transaction code are empty, it indicates that the second transaction code corresponds to one of the above-mentioned services, and when at least part of the above-mentioned mapping elements corresponding to the above-mentioned second transaction code are not empty, it indicates that the above-mentioned second transaction code corresponds to multiple above-mentioned services; the above-mentioned second determination module is used to determine whether all the above-mentioned mapping elements corresponding to the second predetermined transaction code are empty based on the above-mentioned transaction mapping table and the above-mentioned request transaction code, and the above-mentioned second predetermined transaction code is the above-mentioned second transaction code that is the same as the above-mentioned request transaction code; the above-mentioned third determination module is used to determine that the above-mentioned service corresponding to the above-mentioned mapping element is the above-mentioned target service when all the above-mentioned mapping elements corresponding to the above-mentioned second predetermined transaction code are empty; the above-mentioned fourth determination module is used to determine the above-mentioned target service based on the above-mentioned request transaction code, the above-mentioned transaction parameters and the above-mentioned transaction mapping table when part of the above-mentioned mapping elements corresponding to the above-mentioned second predetermined transaction code are not empty. When all of the mapping elements corresponding to the second predetermined transaction code are empty, it indicates that the second transaction code that is the same as the request transaction code corresponds to only one of the services, and the single service is determined to be the target service. When some of the mapping elements corresponding to the second predetermined transaction code are not empty, it indicates that the second transaction code that is the same as the request transaction code corresponds to multiple services. In this case, the target service is determined based on the request transaction code, the transaction parameters and the transaction mapping table, which further ensures that the target service can be obtained more accurately and simply based on the transaction request information.
[0061] In order to further solve the problem in the prior art that user-initiated transactions cannot be automatically sent to the service corresponding to the interface during the switching of the old and new core systems of the bank, and to further ensure that the target service can be automatically determined based on the transaction request information, according to a specific embodiment of the present application, the transaction mapping table also includes multiple mapping values, the mapping values are specific contents corresponding to the information types, and the mapping elements correspond one-to-one to the mapping values. The transaction parameters include a predetermined type and predetermined contents, the predetermined type is the information type required to execute the predetermined transaction, and the predetermined contents are the specific contents corresponding to the predetermined type. The fourth determination module includes a first determination submodule, a second determination submodule, and a third determination submodule, wherein the first determination submodule is configured to determine that the mapping element corresponding to the request transaction code in the transaction mapping table is a first target element; the second determination submodule is configured to determine that all the mapping elements corresponding to the predetermined service in the transaction mapping table are second target elements, and the predetermined service is the service corresponding to the first target element; and the third determination submodule is configured to determine that the predetermined service is the target service when the predetermined type is the same as the second target element and the predetermined contents are the same as the mapping values corresponding to the second target element. In the case where the above-mentioned request transaction code corresponds to multiple above-mentioned services, by determining the above-mentioned mapping element corresponding to the above-mentioned request transaction code as the first target element in the above-mentioned transaction mapping table, and then determining all the above-mentioned mapping elements corresponding to the above-mentioned reserved services as the above-mentioned second target elements, and when the above-mentioned reserved type is the same as the above-mentioned second target element, and the above-mentioned reserved content is the same as the above-mentioned mapping value corresponding to the above-mentioned second target element, the above-mentioned target service is determined, thereby further ensuring that the above-mentioned target service can be obtained according to the above-mentioned transaction request information.
[0062] According to another specific embodiment of the present application, the above-mentioned device also includes a first generation unit, which is used to generate an error message when the above-mentioned predetermined type is different from the above-mentioned second target element, or the above-mentioned predetermined content is different from the above-mentioned mapping value corresponding to the above-mentioned second target element.
[0063] Specifically, the mapping elements include transaction date, ID card number, bank account number, etc., and the mapping value includes specific information such as transaction date, ID card number, bank account number, etc.
[0064] According to another specific embodiment of the present application, the above-mentioned second determination unit also includes a third acquisition module, a processing module and a fifth determination module, wherein the above-mentioned third acquisition module is used to obtain the message mapping table corresponding to the above-mentioned target system, the above-mentioned message mapping table includes multiple original messages and corresponding final messages, the above-mentioned original message is a message generated according to the request operation of each transaction, and the above-mentioned final message is a message recognizable by the above-mentioned target system; the above-mentioned processing module is used to perform predetermined processing on the above-mentioned request message to obtain an intermediate message, and the above-mentioned predetermined processing includes at least one of extraction processing, splicing processing and interception processing; the above-mentioned fifth determination module is used to determine that in the above-mentioned message mapping table, the above-mentioned final message corresponding to the above-mentioned original message that is the same as the above-mentioned intermediate message is the above-mentioned target message. By performing predetermined processing on the above-mentioned request message, the above-mentioned intermediate message is obtained, and then through the above-mentioned intermediate message and the above-mentioned message mapping table, it is determined that the above-mentioned final message corresponding to the above-mentioned original message that is the same as the above-mentioned intermediate message in the above-mentioned message mapping table is the above-mentioned target message, which further ensures that the above-mentioned target message that can be identified by the target service can be determined according to the original message corresponding to the service request information, and further ensures that the target service of the above-mentioned target system can process the above-mentioned service request information.
[0065] In a specific embodiment, the process of determining that the final message corresponding to the original message that is identical to the intermediate message in the message mapping table is the target message is called message mapping. The message of the old core system of the bank is in TUXEDO (middleware) FML (Field Manipulation Language) format, that is, all communication messages of the old core system of the bank are composed of a series of FML fields, and the message of the new core system of the bank is in HTTP (HyperText Transfer Protocol) JSON (JavaScript Object Notation, lightweight data exchange format) format. The message format of the old core system is different from that of the new core system, and the request message needs to be processed to obtain the target message that can be recognized by the target system.
[0066] Specifically, after performing message mapping on the request message, an assignment process is also included, i.e., assigning the mapped message to a format recognizable by the target system to obtain the target message. The above splicing and interception processes are not required for every request message and are mainly determined based on the actual situation of the request message.
[0067] According to a specific embodiment of the present application, the above-mentioned processing module includes a fourth determination submodule, a splitting submodule, an acquisition submodule and a processing submodule, wherein the above-mentioned fourth determination submodule is used to determine whether the above-mentioned request message is an array; the above-mentioned splitting submodule is used to extract all array elements and first identification information from the above-mentioned request message when the above-mentioned request message is the above-mentioned array, and the above-mentioned first identification information includes information representing the partial content of the corresponding above-mentioned array element to be intercepted, and / or information representing the splicing rule of at least part of the above-mentioned array elements; the above-mentioned acquisition submodule is used to obtain all data information and second identification information in the above-mentioned request message when the above-mentioned request message is not the above-mentioned array, and the above-mentioned second identification information includes information representing the partial content of the corresponding above-mentioned data information to be intercepted, and / or information representing the splicing rule of at least part of the above-mentioned data information; the above-mentioned processing submodule is used to splice and / or intercept each of the above-mentioned array elements according to the above-mentioned first identification information to obtain the above-mentioned intermediate message, or splice and / or intercept each of the above-mentioned data information according to the above-mentioned second identification information to obtain the above-mentioned intermediate message. By determining whether the above-mentioned request message is an array, and extracting it when the above-mentioned request message is the above-mentioned array, all array elements and the first identification information are obtained. If the above-mentioned request message is not the above-mentioned array, by obtaining the data information and the second identification information, and then splicing and / or intercepting each of the above-mentioned array elements according to the above-mentioned first identification information, or splicing and / or intercepting each of the above-mentioned data information according to the above-mentioned second identification information, the above-mentioned intermediate message is obtained, which ensures that the above-mentioned target message can be obtained according to the above-mentioned intermediate message, and further ensures that the above-mentioned target system can process the above-mentioned service request information.
[0068] Specifically, when the request message is the array, among the intermediate messages obtained, the intermediate messages that do not exist in the message mapping table are discarded, and the other intermediate messages continue to obtain the target message according to the message mapping table.
[0069] In a specific embodiment, after the target service executes the predetermined transaction, the device further includes a second generating unit, which is used to generate a return message. Specifically, the generation of the return message includes generating a result message, wherein the result message represents the processing result of the transaction request information; obtaining a return message mapping table corresponding to the predetermined system, wherein the return message mapping table includes multiple initial messages and predetermined messages, wherein the initial message is a message generated by the target system, and the predetermined message is a message recognizable by the predetermined system, wherein the predetermined system is a system that generates the transaction request information in response to the request operation; determining whether the result message is an array, and in the case that the result message is an array, extracting all array elements and first identification information from the request message, wherein the first identification information includes information representing the interception of part of the content of the corresponding array element, and / or representing at least part of the array. information on the splicing rules of the group elements, and in the case that the above-mentioned result message is not the above-mentioned array, all the data information and the second identification information in the above-mentioned result message are obtained, the above-mentioned second identification information includes information representing the partial content of the above-mentioned data information corresponding to the interception, and / or information representing the splicing rules of at least part of the above-mentioned data information, according to the above-mentioned first identification information, each of the above-mentioned array elements is spliced and / or intercepted to obtain the return intermediate message, or according to the above-mentioned second identification information, each of the above-mentioned data information is spliced and / or intercepted to obtain the above-mentioned return intermediate message, according to the above-mentioned return message mapping table, determine that the above-mentioned predetermined message corresponding to the above-mentioned initial message that is the same as the above-mentioned return intermediate message is the above-mentioned return message; and send the above-mentioned return message to the above-mentioned predetermined system.
[0070] Specifically, the transaction configuration table, the transaction mapping table, the message mapping table, and the return message mapping table are obtained by the staff through a large amount of data analysis in the early stage. The processing process of the above services is flexible and configurable, not dependent on the business, can be productized, has high availability, low complexity, and can also ensure data consistency.
[0071] Specifically, the processing flow of the above service includes the following steps, which will be combined with Figures 3 to 5 Provide explanation.
[0072] Step 1, such as Figure 3 As shown, the transaction request information is received through the online gateway;
[0073] Step 2, such as Figure 3As shown, determining the target system based on the transaction request information includes: obtaining a transaction configuration table, and if the first transaction code identical to the request transaction code exists in the transaction configuration table, determining the system corresponding to the first transaction code identical to the request transaction code as the target system; if the first transaction code identical to the request transaction code does not exist in the transaction configuration table, determining the target system corresponding to the request transaction code through system analysis; and further, if the system analysis fails to determine the target system corresponding to the request transaction code, the target system may be fixedly determined based on the transaction request information according to the previous settings of the system, or an error message may be generated;
[0074] Step 3, such as Figure 3 and Figure 4 As shown, determining the target service includes: obtaining a transaction mapping table, and determining, based on the transaction mapping table and the request transaction code, whether all the mapping elements corresponding to the second predetermined transaction code are empty; if all the mapping elements corresponding to the second predetermined transaction code are empty, determining that the service corresponding to the mapping element is the target service; if some of the mapping elements corresponding to the second predetermined transaction code are not empty, determining that the mapping element corresponding to the request transaction code in the transaction mapping table is the first target element; determining that all the mapping elements corresponding to the predetermined service in the transaction mapping table are the second target elements; and if the predetermined type is the same as the second target element, and the predetermined content is the same as the mapping value corresponding to the second target element, determining that the predetermined service is the target service;
[0075] Step 4, such as Figure 5 As shown, determining the target message includes: obtaining a message mapping table to determine whether the above-mentioned request message is an array; in the case that the above-mentioned request message is the above-mentioned array, extracting all array elements and first identification information from the above-mentioned request message, the above-mentioned first identification information includes information representing the partial content of the above-mentioned array element corresponding to the interception, and / or information representing the splicing rule of at least part of the above-mentioned array elements; in the case that the above-mentioned request message is not the above-mentioned array, obtaining all data information and second identification information in the above-mentioned request message, the above-mentioned second identification information includes information representing the partial content of the above-mentioned data information corresponding to the interception, and / or information representing the splicing rule of at least part of the above-mentioned data information; according to the above-mentioned first identification information, splicing and / or intercepting each of the above-mentioned array elements to obtain the above-mentioned intermediate message, or according to the above-mentioned second identification information, splicing and / or intercepting each of the above-mentioned data information to obtain the above-mentioned intermediate message; according to the above-mentioned intermediate message and the above-mentioned message mapping table, and through the assignment process, finally obtaining the above-mentioned target message;
[0076] Step 5, such as Figure 3 As shown, after the target system completes the transaction request information, a return message is generated after flow registration and response code conversion. The generating of the return message includes: generating a result message, determining whether the result message is an array, and if the result message is an array, extracting all array elements and first identification information from the result message, the first identification information including information representing the partial content of the corresponding array element intercepted, and / or information representing the splicing rule of at least part of the array elements; if the result message is not an array, obtaining all data information and second identification information in the result message, the second identification information including information representing the partial content of the corresponding data information intercepted, and / or information representing the splicing rule of at least part of the data information; splicing and / or intercepting each array element according to the first identification information, or splicing and / or intercepting each data information according to the second identification information, to obtain the return intermediate message; and determining, according to the return message mapping table, the predetermined message corresponding to the initial message identical to the return intermediate message as the return message;
[0077] Step 6, such as Figure 3 As shown, the above return message is sent to the above online gateway.
[0078] The processing device of the above service includes a processor and a memory. The above first determination unit, the above second determination unit and the above sending unit are all stored in the memory as program units, and the processor executes the above program units stored in the memory to realize corresponding functions.
[0079] The processor includes a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and kernel parameters can be adjusted to address the existing issue of user-initiated transactions not being automatically routed to the corresponding service during the transition between the bank's old and new core systems.
[0080] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM), and non-volatile memory such as read-only memory (ROM) or flash RAM. The memory includes at least one memory chip.
[0081] An embodiment of the present invention provides a computer-readable storage medium storing a program, which implements the above-mentioned service processing method when executed by a processor.
[0082] An embodiment of the present invention provides a processor, which is used to run a program, wherein the processing method of the service is executed when the program is run.
[0083] An embodiment of the present invention provides a device, comprising a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are performed:
[0084] Step S101, determining a target system based at least on the transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is configured to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the predetermined transaction, and the request message is a message generated based on the request operation for the predetermined transaction;
[0085] Step S102: Determine a corresponding target service and target message based on the transaction request information and the target system. The target service is the service for executing the predetermined transaction, and the target message is message information recognizable by the target system.
[0086] Step S103: sending the target message to the target service, so that the target service executes the predetermined transaction.
[0087] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0088] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program for initializing at least the following method steps:
[0089] Step S101, determining a target system based at least on the transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is configured to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the predetermined transaction, and the request message is a message generated based on the request operation for the predetermined transaction;
[0090] Step S102: Determine a corresponding target service and target message based on the transaction request information and the target system. The target service is the service for executing the predetermined transaction, and the target message is message information recognizable by the target system.
[0091] Step S103: sending the target message to the target service, so that the target service executes the predetermined transaction.
[0092] According to another typical embodiment of the present application, a processor is further provided, and the processor is used to run a program, wherein the program executes any one of the above-mentioned service processing methods when running.
[0093] According to another typical embodiment of the present application, an electronic device is also provided, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a processing method for executing any of the above-mentioned services.
[0094] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0095] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of the above-mentioned units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0096] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0097] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0098] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0099] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0100] 1) In the processing method of the above-mentioned service of the present application, first, a target system is determined at least based on the transaction request information, wherein the above-mentioned target system is a system for processing the above-mentioned transaction request information, the above-mentioned target system includes multiple interfaces, one of the above-mentioned interfaces is used to execute at least one service, the above-mentioned request information includes a request transaction code and a request message, the above-mentioned request transaction code is the code of the above-mentioned interface corresponding to the scheduled transaction, and the above-mentioned request message is a message generated according to the request operation of the above-mentioned scheduled transaction; then, based on the above-mentioned transaction request information and the above-mentioned target system, the corresponding target service and target message are determined, the above-mentioned target service is the above-mentioned service for executing the above-mentioned scheduled transaction, and the above-mentioned target message is message information recognizable by the above-mentioned target system; finally, the above-mentioned target message is sent to the above-mentioned target service, so that the above-mentioned target service executes the above-mentioned scheduled transaction. Compared with the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems, the processing method of the above-mentioned service in the present application determines the above-mentioned target system through the above-mentioned transaction request information, and then determines the above-mentioned target service and target message through the above-mentioned transaction request information and the above-mentioned target system, ensuring that the above-mentioned target service and the above-mentioned target message can be obtained according to the above-mentioned transaction request information, so that the above-mentioned target service can execute the above-mentioned scheduled transaction, and ensures that during the switching of the bank's old and new core systems, the above-mentioned transaction request information can be automatically sent to the corresponding above-mentioned target service to process the above-mentioned scheduled transaction corresponding to the above-mentioned transaction request information, solving the one-to-many and many-to-one mapping problems in the prior art.
[0101] 2) In the processing device of the above-mentioned service of the present application, the target system is determined at least according to the transaction request information through the above-mentioned first determination unit, wherein the above-mentioned target system is a system for processing the above-mentioned transaction request information, the above-mentioned target system includes multiple interfaces, one of the above-mentioned interfaces is used to execute at least one service, the above-mentioned request information includes a request transaction code and a request message, the above-mentioned request transaction code is the code of the above-mentioned interface corresponding to the scheduled transaction, and the above-mentioned request message is a message generated according to the request operation of the above-mentioned scheduled transaction; the corresponding target service and target message are determined according to the above-mentioned transaction request information and the above-mentioned target system through the above-mentioned second determination unit, the above-mentioned target service is the above-mentioned service for executing the above-mentioned scheduled transaction, and the above-mentioned target message is message information recognizable by the above-mentioned target system; the above-mentioned target message is sent to the above-mentioned target service through the above-mentioned sending unit, so that the above-mentioned target service executes the above-mentioned scheduled transaction. Compared with the problem in the prior art that transactions initiated by users cannot be automatically sent to the service corresponding to the interface during the switching of the bank's old and new core systems, the processing device of the above-mentioned service in the present application determines the above-mentioned target system through the above-mentioned transaction request information, and then determines the above-mentioned target service and target message through the above-mentioned transaction request information and the above-mentioned target system, ensuring that the above-mentioned target service and the above-mentioned target message can be obtained according to the above-mentioned transaction request information, so that the above-mentioned target service can execute the above-mentioned scheduled transaction, and ensuring that during the switching of the bank's old and new core systems, the above-mentioned transaction request information can be automatically sent to the corresponding above-mentioned target service to process the above-mentioned scheduled transaction corresponding to the above-mentioned transaction request information, solving the one-to-many and many-to-one mapping problems in the prior art.
[0102] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A service processing method, characterized in that: include: Determining a target system based at least on the transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is configured to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the predetermined transaction, and the request message is a message generated based on the request operation for the predetermined transaction; Determining a corresponding target service and a target message based on the transaction request information and the target system, wherein the target service is the service for executing the predetermined transaction, and the target message is message information recognizable by the target system; sending the target message to the target service, so that the target service executes the predetermined transaction; The transaction request information also includes transaction parameters of the predetermined transaction. According to the transaction request information and the target system, the corresponding target service is determined, including: obtaining a transaction mapping table corresponding to the target system, the transaction mapping table including multiple second transaction codes, multiple services, and multiple mapping elements, wherein the second transaction code is a code corresponding to each interface in the target system, the mapping element is an information type required to execute each service in the target system, the second transaction code corresponds to at least one mapping element, and the service corresponds to at least one mapping element. When all the mapping elements corresponding to the second transaction code are empty, it indicates that the second transaction code corresponds to a target system. the service, if at least some of the mapping elements corresponding to the second transaction code are not empty, it indicates that the second transaction code corresponds to multiple services; based on the transaction mapping table and the request transaction code, determining whether all the mapping elements corresponding to the second predetermined transaction code are empty, the second predetermined transaction code is the same as the request transaction code; if all the mapping elements corresponding to the second predetermined transaction code are empty, determining that the service corresponding to the mapping element is the target service; if some of the mapping elements corresponding to the second predetermined transaction code are not empty, determining the target service based on the request transaction code, the transaction parameters, and the transaction mapping table; Determining a corresponding target message based on the transaction request information and the target system includes: obtaining a message mapping table corresponding to the target system, the message mapping table including multiple original messages and corresponding final messages, the original message being a message generated based on the request operation of each transaction, and the final message being a message recognizable by the target system; performing predetermined processing on the request message to obtain an intermediate message, the predetermined processing including at least one of extraction processing, splicing processing, and interception processing; and determining in the message mapping table that the final message corresponding to the original message that is identical to the intermediate message is the target message.
2. The method according to claim 1, characterized in that Determine the target system based on at least the transaction request information, including: Obtaining a transaction configuration table, the transaction configuration table including a plurality of the systems and a first transaction code of each of the interfaces corresponding to the systems; In a case where the first transaction code identical to the requested transaction code exists in the transaction configuration table, the system corresponding to the first transaction code identical to the requested transaction code is determined as the target system.
3. The method according to claim 2, characterized in that In a case where the first transaction code identical to the requested transaction code does not exist in the transaction configuration table, the method further includes: Obtain the target system corresponding to the requested transaction code.
4. The method according to claim 1, wherein The transaction mapping table further includes a plurality of mapping values, each of which is a specific content corresponding to the information type, and each mapping element corresponds to the mapping value in a one-to-one manner. The transaction parameters include a predetermined type and predetermined content, wherein the predetermined type is the information type required to execute the predetermined transaction, and the predetermined content is the specific content corresponding to the predetermined type. Determining the target service based on the request transaction code, the transaction parameters, and the transaction mapping table includes: Determine, in the transaction mapping table, that the mapping element corresponding to the requested transaction code is a first target element; Determine in the transaction mapping table that all the mapping elements corresponding to the scheduled service are second target elements, and the scheduled service is the service corresponding to the first target element; In a case where the predetermined type is the same as the second target element, and the predetermined content is the same as the mapping value corresponding to the second target element, the predetermined service is determined to be the target service.
5. The method according to claim 4, characterized in that In a case where the predetermined type is different from the second target element, or the predetermined content is different from the mapping value corresponding to the second target element, the method further includes: Generates an error message.
6. The method according to claim 1, characterized in that Performing predetermined processing on the request message to obtain an intermediate message includes: Determine whether the request message is an array; In a case where the request message is the array, extracting all array elements and first identification information from the request message, where the first identification information includes information representing the intercepted portion of content of the corresponding array element and / or information representing a splicing rule for at least part of the array elements; When the request message is not the array, obtaining all data information and second identification information in the request message, where the second identification information includes information representing the intercepted portion of the corresponding data information and / or information representing a splicing rule for at least part of the data information; According to the first identification information, each of the array elements is spliced and / or intercepted to obtain the intermediate message, or according to the second identification information, each of the data information is spliced and / or intercepted to obtain the intermediate message.
7. A service processing device, characterized in that: include: a first determining unit configured to determine a target system based at least on the transaction request information, wherein the target system is a system that processes the transaction request information, the target system includes multiple interfaces, one of the interfaces is configured to execute at least one service, the request information includes a request transaction code and a request message, the request transaction code is a code of the interface corresponding to the predetermined transaction, and the request message is a message generated based on the request operation of the predetermined transaction; a second determining unit, configured to determine a corresponding target service and a target message according to the transaction request information and the target system, wherein the target service is the service for executing the predetermined transaction, and the target message is message information recognizable by the target system; a sending unit, configured to send the target message to the target service, so that the target service executes the predetermined transaction; The transaction request information also includes transaction parameters for the predetermined transaction. The second determination unit includes a second acquisition module, a second determination module, a third determination module, and a fourth determination module. The second acquisition module is used to obtain a transaction mapping table corresponding to the target system. The transaction mapping table includes multiple second transaction codes, multiple services, and multiple mapping elements. The second transaction code is a code corresponding to each interface in the target system. The mapping element is an information type required to execute each service in the target system. The second transaction code corresponds to at least one mapping element, and the service corresponds to at least one mapping element. If all the mapping elements corresponding to the second transaction code are empty, it indicates that the second transaction code corresponds to one service. If at least some of the mapping elements corresponding to the second transaction code are not empty, it indicates that the second transaction code corresponds to multiple services. The second determination module is configured to determine, based on the transaction mapping table and the request transaction code, whether all of the mapping elements corresponding to the second predetermined transaction code are empty, and the second predetermined transaction code is the same as the request transaction code. The third determination module is configured to determine, if all of the mapping elements corresponding to the second predetermined transaction code are empty, that the service corresponding to the mapping element is the target service. The fourth determination module is configured to determine, based on the request transaction code, the transaction parameters, and the transaction mapping table, the target service if some of the mapping elements corresponding to the second predetermined transaction code are not empty. The second determination unit also includes a third acquisition module, a processing module and a fifth determination module, wherein the third acquisition module is used to obtain a message mapping table corresponding to the target system, the message mapping table includes multiple original messages and corresponding final messages, the original message is a message generated according to the request operation of each transaction, and the final message is a message recognizable by the target system; the processing module is used to perform predetermined processing on the request message to obtain an intermediate message, the predetermined processing includes at least one of extraction processing, splicing processing and interception processing; the fifth determination module is used to determine that in the message mapping table, the final message corresponding to the original message that is the same as the intermediate message is the target message.
8. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 6.
9. A processor, characterized in that: The processor is configured to run a program, wherein the program executes the method according to any one of claims 1 to 6 when running.
10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Service request routing method and device, electronic equipment and computer storage medium
CN113448993A
Transaction routing method and device, electronic equipment and storage medium
CN114168276A