Interface data migration method, device and equipment based on bidirectional mapping processing
By employing a bidirectional mapping method for interface data migration in financial trading systems, the problem of low reliability during system reconstruction was solved, smooth migration of interface data was achieved, maintenance costs were reduced, and the system's flexibility and iteration efficiency were improved.
Patent Information
- Application Number
- CN202510988518.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-17
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2045-07-17
AI Technical Summary
Existing technologies and methods suffer from low reliability in the reconstruction of financial trading systems, resulting in high system maintenance costs, poor deployment flexibility, and low iteration efficiency.
The interface data migration method based on bidirectional mapping is adopted. By configuring a bidirectional field mapping table and business logic bridging strategy in the business server, bidirectional mapping processing is performed on the documents to be processed, and the initial processing request and interface data processing request are synchronously stored in the message middleware for execution.
It enables smooth interface data migration between the first and second business systems, avoids code redundancy, improves the flexibility and iteration efficiency of system deployment, and enhances the reliability of the financial system.
Smart Images

Figure CN120821716A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to an interface data migration method, device and equipment based on bidirectional mapping processing. Background Art
[0002] During the system transformation process of the financial transaction system, the core system needs to be reconstructed; the reconstruction of the core system involves migrating the transaction bill query and repayment logic to the new promissory note system; the interface of the old transaction system called by the business party needs to be replaced by the interface of the new promissory note system. It is necessary to implement logical processing such as old interface parameter parsing, calling the new system interface, and data format conversion in the own code, resulting in the need to develop the same functions for each business system, causing high code duplication and version fragmentation at the system level, which seriously affects the maintenance cost of the system; and because various processing logics are set directly in the business code, the flexibility of system deployment is poor and the iteration efficiency is low, resulting in poor reliability of the financial system after reconstruction, affecting the stability of the financial system operation. Therefore, the technical methods for reconstructing financial transaction systems in the existing technical methods have the problem of low reliability. Summary of the Invention
[0003] The embodiments of the present invention provide an interface data migration method, apparatus and device based on bidirectional mapping processing, aiming to solve the problem of low reliability of the technical methods for reconstructing financial transaction systems in the existing technical methods.
[0004] In a first aspect, an embodiment of the present invention provides an interface data migration method based on bidirectional mapping processing, wherein the method is applied to a business server, wherein the business server is configured with a first business system and a second business system that independently perform business processing, and the method includes:
[0005] receiving an initial processing request corresponding to the first business system, and obtaining a to-be-processed document corresponding to the initial processing request from the first business system;
[0006] Perform bidirectional mapping on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapping document information;
[0007] Performing business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information to obtain an interface data processing request corresponding to the second business system;
[0008] The initial processing request and the interface data processing request are synchronously stored in a preset message middleware, so that the initial processing request and the interface data processing request are synchronously executed through the message middleware.
[0009] In a second aspect, an embodiment of the present invention further provides an interface data migration device based on bidirectional mapping processing, wherein the device is configured in a business server, wherein the business server is configured with a first business system and a second business system that independently perform business processing, and the device is used to perform the interface data migration method based on bidirectional mapping processing as described in the first aspect above, and the device includes:
[0010] a document acquisition unit, configured to receive an initial processing request corresponding to the first business system, and acquire a to-be-processed document corresponding to the initial processing request from the first business system;
[0011] A mapping document information acquisition unit, configured to perform bidirectional mapping processing on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapping document information;
[0012] an interface data processing request acquiring unit, configured to perform business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information, and obtain an interface data processing request corresponding to the second business system;
[0013] The request execution unit is used to synchronously store the initial processing request and the interface data processing request into a preset message middleware, so as to synchronously execute the initial processing request and the interface data processing request through the message middleware.
[0014] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0015] Memory for storing computer programs;
[0016] The processor is configured to implement the steps of the interface data migration method based on bidirectional mapping processing described in the first aspect when executing the program stored in the memory.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the interface data migration method based on bidirectional mapping processing as described in the first aspect above are implemented.
[0018] The embodiment of the present invention provides an interface data migration method, device and equipment based on bidirectional mapping processing, the method comprising: receiving an initial processing request corresponding to a first business system and obtaining a corresponding document to be processed; performing bidirectional mapping processing on the document to be processed to obtain corresponding mapping document information; performing business logic decomposition on the initial processing request using the mapping document information to obtain an interface data processing request corresponding to the second business system; synchronously storing the initial processing request and the interface data processing request into a preset message middleware for synchronous execution through the message middleware. The above-mentioned interface data migration method based on bidirectional mapping processing performs bidirectional mapping processing on the input and output parameters of the document to be processed through a bidirectional field mapping table, thereby realizing smooth migration of interface data between the first business system and the second business system, avoiding code redundancy to increase maintenance costs, improving the flexibility and iteration efficiency of system deployment, and greatly improving the reliability of financial system reconstruction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A flow chart of a method for migrating interface data based on bidirectional mapping provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of an application scenario of the interface data migration method based on bidirectional mapping processing provided by an embodiment of the present invention;
[0022] Figure 3 A schematic block diagram of an interface data migration device based on bidirectional mapping processing provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0025] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0026] It should also be understood that the terms used in the present specification are only for the purpose of describing particular embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0027] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0028] The embodiment of the present invention provides an interface data migration method based on bidirectional mapping processing. The method is applied to a business server. The business server 10 executes a stored software program to implement the above-mentioned interface data migration method based on bidirectional mapping processing. The business server 10 can be a server end configured in an enterprise or organization for business processing. The business server 10 can be a server device such as a cluster server, a parallel processing server, etc. Figure 2 As shown in the figure, the business server 10 is configured with a first business system 11 and a second business system 12 that independently perform business processing. The business server 10 is used to process the initial processing request corresponding to the first business system received and to perform interface data migration between the first business system 11 and the second business system 12; the first business system 11 and the second business system 12 are both virtual software systems that perform business processing. Figure 1 As shown, the method includes steps S110 to S140.
[0029] S110: Receive an initial processing request corresponding to the first business system, and obtain a to-be-processed document corresponding to the initial processing request from the first business system.
[0030] The business server can receive an initial processing request corresponding to the first business system. The initial processing request is also the request information for querying, adding, modifying, and other operations on the business data within the first business system, thereby realizing financial transactions. The business server obtains the corresponding to-be-processed documents from the first business system based on the received initial processing request. The first business system stores documents dedicated to transaction settlement for the first business system. Correspondingly, the second business system also stores documents dedicated to transaction settlement for the second business system. Since the second business system is a new business system reconstructed based on the first business system, there are significant differences between the two business systems in terms of interface parameters, field names, data formats, business processing logic, etc. Therefore, direct data interaction between the first business system and the second business system is not possible. In order to achieve a smooth migration of the interface data of the first business system to the second business system, it is necessary to perform the following steps in sequence to achieve a smooth migration of the interface data between the systems.
[0031] S120 , performing bidirectional mapping processing on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapped document information.
[0032] The business server is pre-configured with a bidirectional field mapping table, and bidirectional mapping processing can be performed on the documents to be processed based on the bidirectional field mapping table. The bidirectional mapping specifically includes input parameter reconstruction and output parameter adaptation; input parameter reconstruction is the reconstruction processing of the parameter information associated with the first business system, and output parameter adaptation is the adaptation of the parameter information associated with the second business system. These two processing steps constitute the bidirectional mapping processing. After the bidirectional mapping processing, the mapped document information corresponding to the document to be processed can be obtained.
[0033] In a specific embodiment, step S120 includes sub-steps: reconstructing relevant parameter information of the first field in the document to be processed according to the two-way field mapping table; mapping the first field in the document to be processed according to the field mapping information to obtain a second field corresponding to the first field; the first field and the second field correspond to the first business system and the second business system respectively; obtaining the first value corresponding to the first field in the document to be processed to assign a value to the second field to determine the second value corresponding to the second field; adjusting the format of the second field and the second value according to the format information in the two-way field mapping table to obtain corresponding mapping document information.
[0034] Reconstruct the relevant parameter information of the first field in the pending document based on the two-way field mapping table; this reconstruction specifically includes field alias mapping and intelligent filling of missing values. If the two-way field mapping table contains multiple aliases corresponding to the first field, the field alias corresponding to the first field can be obtained through field alias mapping. Furthermore, the field alias corresponding to the first field can be intelligently filled with missing values to facilitate subsequent financial settlement and payment. At the same time, during payment, the real-time balance information of the payment account can be obtained in real time to avoid payment failures due to insufficient balance.
[0035] The first field in the document to be processed is mapped according to the field mapping information in the bidirectional field mapping table. The field mapping information includes the field with the same traceId in the first business system and the field in the second business system. Then, a mapping relationship is established between different fields in the two business systems based on the same traceId. The first field in the document to be processed can be matched with the field mapping information to obtain a traceId that matches the first field. The first field is mapped through the mapping relationship of the traceId to achieve input parameter reconstruction and obtain the second field corresponding to the first field.
[0036] Furthermore, the first value corresponding to the first field can be obtained from the document to be processed to assign a value to the second field, thereby completing the missing data value. The value corresponding to the second field after the assignment is then the second value, and the first value and the second value are equal.
[0037] The bidirectional field mapping table is also configured with format information, which includes a first format corresponding to the fields and values in the first business system and a second format corresponding to the fields and values in the second business system. Since output parameter adaptation is required here, the second format can be used to adjust the format of the second field and the second value, thereby achieving output parameter adaptation and obtaining mapping document information. Specifically, the field format of the second field can be adjusted based on the second format, such as adjusting the format of the second field according to the new JSON format to adapt it to the second business system; for the second value, its data type can be converted according to the second format, such as different systems have different processing methods for numerical precision (truncation, rounding). The second value obtained after format adjustment is not necessarily equal to the first value.
[0038] Based on the above steps, if an initial processing request corresponding to the second business system is received, bidirectional mapping processing can also be performed based on the above bidirectional field mapping table to obtain mapping document information corresponding to the first business system.
[0039] In a specific embodiment, mapping the first field in the document to be processed according to the field mapping information in the bidirectional field mapping table to obtain the second field corresponding to the first field includes: determining whether there is a mapping field corresponding to the first field in the field mapping information; if there is a mapping field corresponding to the first field, determining that the mapping field is the corresponding second field; if there is no mapping field corresponding to the first field, mapping the operation logic of the first field including the logic field according to the field mapping information to obtain the corresponding second field.
[0040] Furthermore, it is also possible to determine whether there is a mapping field corresponding to the first field in the field mapping information. If there is a corresponding mapping field, the mapping field is directly determined to be the second field; if there is no corresponding mapping field, it is necessary to obtain the logical field contained in the operation logic of the first field, and map the logical field to obtain the second field.
[0041] If the first field is A, its operation logic is B+C, that is, the value of field A is obtained by calculating based on the values of field B and field C, and there is no corresponding mapping field for the first field A in the field mapping information, then field B and field C can be mapped, and the mapped field can be determined as the second field.
[0042] In a specific embodiment, before step S120, the following steps are also included: determining whether the request type of the initial processing request is payment processing; if it is payment processing, obtaining real-time balance information corresponding to the document to be processed from the first database corresponding to the first business system; determining whether the real-time balance information matches the initial processing request; if the real-time balance information matches the initial processing request, executing the step of performing bidirectional mapping processing on the document to be processed according to the preset bidirectional field mapping table to obtain corresponding mapped document information.
[0043] The business server is also configured with a first database corresponding to the first business system, and the basic data for business processing is stored in the first database. Furthermore, it can also be determined whether the request type of the initial processing request is payment processing. If it is payment processing, the real-time balance information corresponding to the document to be processed is obtained from the first database, and it is determined whether the real-time balance information matches the initial processing request. Specifically, it can be determined whether the real-time balance information is not less than the payment amount in the initial processing request. If it is not less than, it indicates that the real-time balance information matches the initial processing request; if it is less than, it indicates that the real-time balance information does not match the initial processing request. If the judgment result is a match, step S120 is executed; if it does not match, a prompt message indicating that the request failed can be generated to prompt the user who submitted the initial processing request.
[0044] S130 , performing business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information to obtain an interface data processing request corresponding to the second business system.
[0045] The initial processing request is further decomposed into business logic based on the business logic bridging strategy and mapped document information preset in the business server, thereby adapting the business logic processing to the second business system. After the business logic decomposition of the initial processing request, an interface data processing request corresponding to the second business system is obtained. Based on this interface data processing request, interface data processing can be performed in the second business system, thereby achieving smooth migration of the processing process in the first business system to the second business system, thereby achieving smooth migration of interface data.
[0046] In a specific embodiment, step S130 includes sub-steps: performing business logic decomposition on the initial processing request according to the business logic bridging strategy to obtain decomposition execution steps corresponding to the second business system; obtaining target fields and target data matching each of the decomposition execution steps from the mapping document information; and generating an interface data processing request corresponding to each of the decomposition execution steps according to the target fields and target data of each of the decomposition execution steps.
[0047] Specifically, the business logic decomposition of the business processing process in the initial processing request can be performed according to the business logic bridging strategy. For example, the business processing steps of a single query in the first business system can be split into two processing steps corresponding to the second business system, namely, calling to query the repayment details and querying the exemption details based on the business logic bridging strategy; the one or more processing steps obtained by the decomposition are also used as the decomposition execution steps corresponding to the initial processing request.
[0048] Further, fields and data matching the decomposition execution steps are obtained from the mapping document information as target fields and target data matching each decomposition execution step; a decomposition execution step can have one or more target fields, and a hierarchical execution step can have one or more target data matching.
[0049] Based on the target fields and target data of each hierarchical execution step, an interface data processing request corresponding to the hierarchical execution step can be generated. The resulting interface processing request then corresponds to the second business system. The hierarchical execution steps include corresponding execution actions. The logic code corresponding to the execution action can be obtained and combined with the target fields and target data to generate the corresponding interface data processing request. For example, the logic code for the "query" execution action is "search," and the logic code for the "select" execution action is "select."
[0050] S140: Synchronously store the initial processing request and the interface data processing request into a preset message middleware, so as to synchronously execute the initial processing request and the interface data processing request through the message middleware.
[0051] The above-mentioned initial processing request and the obtained interface data processing request are synchronously stored in a pre-set message middleware, such as a message middleware constructed based on a Kafka stream processing platform. The synchronously stored initial processing request and interface data processing request can be used as a group of synchronous processing requests. The message middleware queues the stored multiple groups of synchronous processing requests and obtains the synchronous processing requests in sequence for processing based on the first-in-first-out principle. The message middleware can then process the initial processing request and the interface data processing request in a group of synchronous processing requests in parallel. The initial processing request is executed in the first business system, and the interface data processing request is synchronously executed in the second business system. This achieves synchronous execution of the initial processing request and the interface data processing request, thereby improving the consistency of data processing.
[0052] In a specific embodiment, after step S140, the following steps are also included: after the message middleware executes the initial processing request and the interface data processing request, obtaining first response data and second response data corresponding to the execution results of the initial processing request and the interface data processing request respectively; judging whether there is a difference between the first response data and the second response data; if there is a difference, marking the first response data and the second response data to obtain corresponding difference marking information.
[0053] Executing the initial processing request can obtain the corresponding execution result, and executing the interface data processing request can obtain the corresponding execution result. Furthermore, the first response data corresponding to the initial processing request in the execution result of the first business system can also be obtained. The first response data is the corresponding processed response value and corresponding fields after executing the initial processing request in the first business system; the second response data is the corresponding processed response value and corresponding fields after executing the interface data processing request in the second business system.
[0054] Determine whether there are differences between the first and second response data. Specifically, determine whether any fields in the first response data differ from those in the second response data. If so, mark the difference and record it as difference information. If not, the field names are identical and do not need to be marked as difference information.
[0055] In a specific embodiment, after marking the first response data and the second response data to obtain corresponding difference marking information, the method further includes: determining whether the numerical difference of the difference marking information is within a preset difference range; if the numerical difference of the difference marking information is not within the preset difference range, numerically repairing the second response data according to the first response data in the difference marking information.
[0056] The numerical difference between the two response values in each set of difference marker information is further obtained to determine whether the numerical difference of each set of difference marker information is within a preset difference range. If the numerical difference is within the preset difference range, it indicates that the error is a normal error caused by the numerical format conversion and can be ignored. For example, the preset difference range can be set to [-0.02, 0.02]. For example, if the original value is 2.3456, the corresponding value is 2.34 when truncated to two decimal places; the corresponding value is 2.35 when rounded to two decimal places, and the numerical difference between the two data is 0.01.
[0057] If the numerical difference is not within the preset difference range, it indicates that the error is not an error caused by numerical format conversion, but an abnormal error caused by field mapping error or calculation error. If the numerical difference is not within the preset difference range, the second response data can be numerically corrected according to the first response data, such as taking the response value in the first response data and performing numerical format conversion (such as performing numerical format conversion according to the second format in the format information), thereby obtaining the corresponding conversion value and replacing the response value in the second response data, thereby achieving numerical repair of the second response data. If the numerical difference is within the preset difference range, there is no need to perform the above-mentioned numerical repair processing.
[0058] In the interface data migration method based on bidirectional mapping processing disclosed in the above embodiment, the method includes: receiving an initial processing request corresponding to the first business system and obtaining the corresponding document to be processed; performing bidirectional mapping processing on the document to be processed to obtain the corresponding mapping document information; performing business logic decomposition on the initial processing request using the mapping document information to obtain the interface data processing request corresponding to the second business system; synchronously storing the initial processing request and the interface data processing request into a preset message middleware for synchronous execution through the message middleware. The above interface data migration method based on bidirectional mapping processing performs bidirectional mapping processing on the input and output parameters of the document to be processed through a bidirectional field mapping table, thereby realizing smooth migration of interface data between the first business system and the second business system, avoiding code redundancy to increase maintenance costs, improving the flexibility and iteration efficiency of system deployment, and greatly improving the reliability of financial system reconstruction.
[0059] The embodiment of the present invention further provides an interface data migration device based on bidirectional mapping processing, which can be configured in a service server and is used to execute any embodiment of the aforementioned interface data migration method based on bidirectional mapping processing. Figure 3 , Figure 3 A schematic block diagram of an interface data migration device based on bidirectional mapping processing provided by an embodiment of the present invention.
[0060] like Figure 3 As shown, the interface data migration device 100 based on bidirectional mapping processing includes a document acquisition unit 110 , a mapping document information acquisition unit 120 , an interface data processing request acquisition unit 130 and a request execution unit 140 .
[0061] The document acquisition unit 110 is configured to receive an initial processing request corresponding to the first business system, and acquire a to-be-processed document corresponding to the initial processing request from the first business system.
[0062] The mapping document information acquisition unit 120 is configured to perform bidirectional mapping processing on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapping document information.
[0063] The interface data processing request acquiring unit 130 is configured to perform business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information to obtain an interface data processing request corresponding to the second business system.
[0064] The request execution unit 140 is configured to synchronously store the initial processing request and the interface data processing request into a preset message middleware, so as to synchronously execute the initial processing request and the interface data processing request through the message middleware.
[0065] The interface data migration device based on bidirectional mapping processing provided in the embodiment of the present invention applies the above-mentioned interface data migration method based on bidirectional mapping processing, receives the initial processing request corresponding to the first business system and obtains the corresponding document to be processed; performs bidirectional mapping processing on the document to be processed to obtain the corresponding mapping document information; performs business logic decomposition on the initial processing request using the mapping document information to obtain the interface data processing request corresponding to the second business system; and synchronously stores the initial processing request and the interface data processing request into the preset message middleware for synchronous execution through the message middleware. The above-mentioned interface data migration method based on bidirectional mapping processing performs bidirectional mapping processing on the input and output parameters of the document to be processed through a bidirectional field mapping table, thereby realizing smooth migration of interface data between the first business system and the second business system, avoiding code redundancy and increasing maintenance costs, improving the flexibility and iteration efficiency of system deployment, and greatly improving the reliability of financial system reconstruction.
[0066] The interface data migration device based on bidirectional mapping processing can be implemented in the form of a computer program. The computer program can be used in Figure 4 Runs on the computer equipment shown.
[0067] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a service server for executing an interface data migration method based on bidirectional mapping processing to migrate interface data between a first service system 11 and a second service system 12.
[0068] See Figure 4 The computer device 500 includes a processor 502 , a memory, and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0069] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute the interface data migration method based on bidirectional mapping processing. The storage medium 503 can be a volatile storage medium or a non-volatile storage medium.
[0070] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0071] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the interface data migration method based on the bidirectional mapping process.
[0072] The communication interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0073] The processor 502 is configured to run a computer program 5032 stored in the memory to implement corresponding functions in the above-mentioned interface data migration method based on bidirectional mapping processing.
[0074] Those skilled in the art will understand that Figure 4 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and processor are the same as those in the figure. Figure 4 The embodiments shown are consistent and will not be described again here.
[0075] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0076] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be volatile or non-volatile. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps included in the above-described interface data migration method based on bidirectional mapping.
[0077] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0078] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0079] The units described 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 network units. Some or all of these units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0080] 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.
[0081] If the 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 is essentially 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 computer-readable 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 method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0082] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. An interface data migration method based on bidirectional mapping processing, characterized in that: The method is applied to a business server, wherein the business server is configured with a first business system and a second business system that independently perform business processing, and the method includes: receiving an initial processing request corresponding to the first business system, and obtaining a to-be-processed document corresponding to the initial processing request from the first business system; Perform bidirectional mapping on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapping document information; Performing business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information to obtain an interface data processing request corresponding to the second business system; The initial processing request and the interface data processing request are synchronously stored in a preset message middleware, so that the initial processing request and the interface data processing request are synchronously executed through the message middleware.
2. The interface data migration method based on bidirectional mapping processing according to claim 1 is characterized in that: The bidirectional mapping process is performed on the to-be-processed document according to the preset bidirectional field mapping table to obtain corresponding mapped document information, including: Reconstructing relevant parameter information of the first field in the document to be processed according to the bidirectional field mapping table; Mapping the first field in the to-be-processed document according to the field mapping information to obtain a second field corresponding to the first field; the first field and the second field correspond to a first business system and a second business system, respectively; Obtaining a first value corresponding to the first field in the to-be-processed document to assign a value to the second field, thereby determining a second value corresponding to the second field; The format of the second field and the second value is adjusted according to the format information in the bidirectional field mapping table to obtain corresponding mapping document information.
3. The interface data migration method based on bidirectional mapping processing according to claim 2 is characterized in that: The mapping of the first field in the to-be-processed document according to the field mapping information in the bidirectional field mapping table to obtain a second field corresponding to the first field includes: Determining whether there is a mapping field corresponding to the first field in the field mapping information; If there is a mapping field corresponding to the first field, determining the mapping field to be the corresponding second field; If there is no mapping field corresponding to the first field, the operation logic of the first field including the logic field is mapped according to the field mapping information to obtain a corresponding second field.
4. The interface data migration method based on bidirectional mapping processing according to claim 1 is characterized in that: Before performing bidirectional mapping processing on the to-be-processed document according to the preset bidirectional field mapping table to obtain corresponding mapped document information, the method further includes: determining whether the request type of the initial processing request is payment processing; If the payment is to be processed, obtaining real-time balance information corresponding to the to-be-processed document from a first database corresponding to the first business system; determining whether the real-time balance information matches the initial processing request; If the real-time balance information matches the initial processing request, the step of performing bidirectional mapping processing on the to-be-processed document according to the preset bidirectional field mapping table to obtain corresponding mapped document information is executed.
5. The interface data migration method based on bidirectional mapping processing according to claim 1 is characterized in that: The performing business logic decomposition on the initial processing request according to the preset business logic bridging strategy and the mapping document information to obtain an interface data processing request corresponding to the second business system includes: Performing business logic decomposition on the initial processing request according to the business logic bridging strategy to obtain decomposition execution steps corresponding to the second business system; Acquire target fields and target data matching each of the decomposition execution steps from the mapping document information; An interface data processing request corresponding to each decomposition execution step is generated according to the target field and target data of each decomposition execution step.
6. The interface data migration method based on bidirectional mapping processing according to claim 1 is characterized in that: After synchronously storing the initial processing request and the interface data processing request in a preset message middleware so as to synchronously execute the initial processing request and the interface data processing request through the message middleware, the method further includes: After the message middleware completes executing the initial processing request and the interface data processing request, obtaining first response data and second response data corresponding to the execution results of the initial processing request and the interface data processing request respectively; determining whether there is a difference between the first response data and the second response data; If there is a difference, the first response data and the second response data are marked to obtain corresponding difference marking information.
7. The interface data migration method based on bidirectional mapping processing according to claim 6 is characterized in that: After marking the first response data and the second response data to obtain corresponding difference marking information, the method further includes: Determining whether the numerical difference of the difference mark information is within a preset difference range; If the numerical difference of the difference mark information is not within the preset difference range, the numerical value of the second response data is repaired according to the first response data in the difference mark information.
8. An interface data migration device based on bidirectional mapping processing, characterized in that: The device is configured and applied to a business server, wherein the business server is configured with a first business system and a second business system that independently perform business processing. The device is used to execute the interface data migration method based on bidirectional mapping processing according to any one of claims 1 to 7, and the device includes: a document acquisition unit, configured to receive an initial processing request corresponding to the first business system, and acquire a to-be-processed document corresponding to the initial processing request from the first business system; A mapping document information acquisition unit, configured to perform bidirectional mapping processing on the document to be processed according to a preset bidirectional field mapping table to obtain corresponding mapping document information; an interface data processing request acquiring unit, configured to perform business logic decomposition on the initial processing request according to a preset business logic bridging strategy and the mapping document information, and obtain an interface data processing request corresponding to the second business system; The request execution unit is used to synchronously store the initial processing request and the interface data processing request into a preset message middleware, so as to synchronously execute the initial processing request and the interface data processing request through the message middleware.
9. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; The processor is configured to implement the steps of the interface data migration method based on bidirectional mapping processing according to any one of claims 1 to 7 when executing the program stored in the memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the interface data migration method based on bidirectional mapping processing are implemented as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Data migration method and device of heterogeneous system, computer equipment and storage medium
CN112434004A
Migration data verification method and device, equipment and storage medium
CN119127832A
Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device
WO2021218063A1