Business data consistency processing method, electronic equipment and storage medium
By setting identification information for business data in the business processing link of the real estate finance industry and generating target mapping data, the problem of inconsistency between business data between different link operation nodes is solved, and data consistency and business processing efficiency are improved. .
Patent Information
- Application Number
- CN202411532381.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-14
AI Technical Summary
In the business processing link of the real estate finance industry, the filing data of real estate receipts often inconsistent with the filing data during risk control review or ownership verification, resulting in the need to refill in or check the data, increase the workload and extend the business processing cycle.
Target mapping data is generated by acquiring service data at the front link operation node and setting identification information for it. When the back link operation node needs to operate business data, the service data in the target mapping data is obtained based on the identification information, and data consistency is ensured through temporary data tables and message queue mechanisms.
实现了在整个业务处理链路中各个链路操作节点的业务数据一致性,减少了重新填写或核对数据的需求,降低了工作量并缩短了业务处理周期。
Smart Images

Figure CN119444379A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a business data consistency processing method, electronic equipment and storage medium. Background Art
[0002] In the daily operation of the real estate finance industry, the order business data needs to be processed through the business processing chain consisting of the real estate application, risk control review, ownership verification and other chain operation nodes. During the processing of the entire business processing chain, the order business data needs to be consistent throughout the entire business processing chain.
[0003] However, currently, there is often a situation where the order business data of the real estate application is inconsistent with the order business data during the risk control review or ownership verification process. This requires the problematic order business data to be sent back to the real estate application stage and required to re-fill or verify the order business data. This practice increases the workload and prolongs the business processing cycle.
[0004] Therefore, finding a business data processing method that can ensure the consistency of business data of each link operation node in the entire business processing link has become a research hotspot. Summary of the invention
[0005] The present invention provides a business data consistency processing method, electronic equipment and storage medium, which can ensure the consistency of business data of each link operation node in the entire business processing link.
[0006] The present invention provides a method for processing business data consistency, which is applied to a business processing link, wherein the business processing link includes a front link operation node and a rear link operation node, and the method includes: acquiring business data formed at the front link operation node, and setting identification information for the business data to obtain target mapping data, wherein the target mapping data includes the business data and the identification information having a mapping relationship; and acquiring the business data in the target mapping data based on the identification information when the rear link operation node needs to operate the business data.
[0007] The present invention provides a method for processing business data consistency. After obtaining the target mapping data, the method also includes: storing the target mapping data in a temporary data table, and generating a message queue corresponding to the target mapping data based on the target mapping data; when the subsequent link operation node successfully consumes the message queue, deleting the target mapping data stored in the temporary data table; when the subsequent link operation node needs to operate the business data, obtaining the business data in the target mapping data based on the identification information, specifically including: when the subsequent link operation node needs to operate the business data, obtaining the business data in the target mapping data based on the message queue and the identification information.
[0008] The present invention provides a method for processing business data consistency. When the subsequent link operation node needs to operate the business data, the business data in the target mapping data is obtained based on the identification information. Specifically, the method includes: when the subsequent link operation node needs to operate the business data and the subsequent link operation node fails to successfully consume the message queue, the business data in the target mapping data is obtained from the temporary data table based on the identification information.
[0009] The present invention provides a method for processing business data consistency. After obtaining the business data in the target mapping data based on the identification information, the method further includes: obtaining standard business data bound to the subsequent link operation node; based on the standard business data, verifying the business data obtained by the subsequent link operation node based on the identification information to verify whether the business data obtained by the subsequent link operation node is consistent with the business data formed by the preceding link operation node.
[0010] The present invention provides a method for processing business data consistency, which verifies the business data obtained by the subsequent link operation node based on the identification information based on the standard business data, specifically including: when the standard business data is the same as the business data obtained by the subsequent link operation node based on the identification information, determining that the business data obtained by the subsequent link operation node is consistent with the business data formed by the preceding link operation node; when the standard business data is not the same as the business data obtained by the subsequent link operation node based on the identification information, determining that the business data obtained by the subsequent link operation node is inconsistent with the business data formed by the preceding link operation node, and initiating an alarm reminder.
[0011] The present invention provides a method for processing consistency of business data, wherein identification information is set for the business data to obtain target mapping data, specifically comprising: setting identification information for the business data based on an optimistic locking mechanism to obtain target mapping data.
[0012] The present invention provides a method for processing business data consistency. Before obtaining the business data formed at the previous link operation node, the method also includes: judging whether it is necessary to configure identification information for the business data formed at the previous link operation node; obtaining the business data formed at the previous link operation node specifically includes: in the case where it is necessary to configure identification information for the business data formed at the previous link operation node, calling a first interface to obtain the business data formed at the previous link operation node; in the case where it is not necessary to configure identification information for the business data formed at the previous link operation node, calling a second interface to obtain the business data formed at the previous link operation node, wherein the first interface is different from the second interface.
[0013] The present invention also provides a business data consistency processing device, which is applied to a business processing link, and the business processing link includes a front link operation node and a rear link operation node. The device includes: an acquisition module, which is used to acquire the business data formed at the front link operation node, and set identification information for the business data to obtain target mapping data, wherein the target mapping data includes the business data and the identification information having a mapping relationship; a processing module, which is used to acquire the business data in the target mapping data based on the identification information when the rear link operation node needs to operate the business data.
[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the business data consistency processing method described in any one of the above methods is implemented.
[0015] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the business data consistency processing method as described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned business data consistency processing methods.
[0017] The service data consistency processing method, electronic device and storage medium provided by the present invention are applied to a service processing link, wherein the service processing link includes a front link operation node and a rear link operation node, and the method includes: obtaining service data formed at the front link operation node, and setting identification information for the service data to obtain target mapping data; when the rear link operation node needs to operate the service data, obtaining the service data in the target mapping data based on the identification information. This ensures that the service data of each link operation node in the entire service processing link are consistent. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 creative work.
[0019] Figure 1 This is one of the flow charts of the business data consistency processing method provided by the present invention.
[0020] Figure 2 It is a schematic diagram of a process for acquiring business data in target mapping data based on identification information provided by the present invention.
[0021] Figure 3 This is the second flow chart of the business data consistency processing method provided by the present invention.
[0022] Figure 4 It is a structural schematic diagram of the business data consistency processing device provided by the present invention.
[0023] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] For scenarios where consistency processing of business data in a business processing link is required, identification information can be set for the business data generated by the previous link operation node. For example, the concept of important moment data version identification can be introduced. When the subsequent link operation node needs to operate the business data, the business data in the target mapping data can be obtained based on the identification information. This ensures that the business data of each link operation node in the entire business processing link is consistent, reduces workload, and shortens the business processing cycle.
[0026] Figure 1 This is one of the flow charts of the business data consistency processing method provided by the present invention.
[0027] The following will be combined Figure 1 The process of the business data consistency processing method provided by the present invention is described.
[0028] In an exemplary embodiment of the present invention, the service data consistency processing method can be applied to a service processing link, wherein the service processing link includes a front link operation node and a rear link operation node. Figure 1 It can be known that the service data consistency processing method may include step 110 and step 120, and each step will be introduced below.
[0029] In step 110, the service data formed at the previous link operation node is acquired, and identification information is set for the service data to obtain target mapping data, wherein the target mapping data includes the service data and the identification information having a mapping relationship.
[0030] In step 120, when the subsequent link operation node needs to operate the service data, the service data in the target mapping data is acquired based on the identification information.
[0031] In one embodiment, the business processing link can be described by taking the real estate financial business processing link as an example. Among them, the order business data of the real estate financial business processing link needs to be processed by the link operation nodes such as real estate application, risk control review, and ownership verification. It can be understood that the real estate application node can be considered as the front link operation node, and the risk control review and ownership verification can be considered as the back link operation node.
[0032] In the application process, the service data formed in the preceding link operation node can be obtained, and further, identification information can be set for the service data to obtain target mapping data. The identification information can be information used to uniquely identify the service data, for example, the identification information can be an important moment data version identifier of the order service data, for example, it can be an order moment data version identifier.
[0033] In another example, the target mapping data includes business data and identification information having a mapping relationship. It can be understood that the business data can be uniquely determined based on the identification information in the target mapping data.
[0034] In another embodiment, when the following link operation node needs to operate the business data, the business data in the target mapping data can be obtained based on the identification information. It should be noted that since the identification information uniquely identifies the business data, if the identification information is about the data version identification of the current latest order moment, then based on the identification information, the business data of the previous latest order moment formed by the preceding link operation node can be uniquely and accurately determined, thereby ensuring the consistency of the business data of each link operation node in the entire business processing link, avoiding the problem of rework, reducing the workload, and shortening the business processing cycle.
[0035] Figure 2 It is a schematic diagram of a process for acquiring business data in target mapping data based on identification information provided by the present invention.
[0036] The following will be combined Figure 2 The process of acquiring business data in target mapping data based on identification information provided by the present invention is described.
[0037] In an exemplary embodiment of the present invention, Figure 2 It can be known that acquiring the business data in the target mapping data based on the identification information may include steps 210 to 240, and each step will be introduced below.
[0038] In step 210, the target mapping data is stored in a temporary data table.
[0039] In step 220, based on the target mapping data, a message queue corresponding to the target mapping data is generated.
[0040] In one embodiment, the target mapping data may also be stored in a temporary data table, such as tmp. Furthermore, a message queue corresponding to the target mapping data may be generated based on the target mapping data, so that the post-link operation node can conveniently obtain the message about the target mapping data in the message queue without omission, and the post-link operation node can conveniently consume the message queue accordingly.
[0041] In step 230, when the subsequent link operation node successfully consumes the message queue, the target mapping data stored in the temporary data table is deleted.
[0042] In step 240, when the subsequent link operation node needs to operate the service data, the service data in the target mapping data is acquired based on the message queue and the identification information.
[0043] In one embodiment, when the subsequent link operation node successfully consumes the message queue, the target mapping data stored in the temporary data table can be deleted, and when the subsequent link operation node needs to operate on the business data, the business data in the target mapping data can be obtained based on the message queue and identification information.
[0044] It should be noted that storing the target mapping data in a temporary data table can ensure that when the post-link operation node successfully consumes the message queue, the business data can still be obtained based on the temporary data table. In the case where the post-link operation node successfully consumes the message queue, there is no need to save the target mapping data in a temporary data table, and the target mapping data stored in the temporary data table can be deleted to save the storage space of the temporary data table. Furthermore, in the case where the post-link operation node needs to operate on the business data, the business data in the target mapping data can be obtained based on the message queue and identification information.
[0045] It can be understood that, through the present invention, business data can be obtained from a specific data table, and the device for executing the business data consistency processing method, such as the storage space of the real estate financial model, can be released to improve the running speed of the real estate financial model.
[0046] In order to further illustrate the business data consistency processing method provided by the present invention, the following is an example of a business processing link as a real estate financial business processing link. It should be noted that in the processing process of the real estate financial business processing link, it is necessary to implement it based on the real estate application model, wherein the real estate application model includes a real estate application module, a unified application module, a risk control module, a property rights processing module, a financial order processing module, etc.
[0047] In one example, the version data of business data (such as application form data) can be initialized. In the application process, after selecting product information on the front end, crm will be called to create an order; crm will initialize the corresponding data and call addLoan to generate application information; the order creation data will be initialized and the unified application module (a module used to process application form data in a unified manner) createAppV2 will be called to create an application; when generating the main table data, the unified application module needs to initialize and assign loan_application-version (version=0), and generate a unified application number and return it to the real estate application module (a module used to process application form data); the real estate application module obtains the unified application number and initializes the application data; the real estate application module calls the unified application saveAllForm to update the application data. In the process of saving the version of the incoming application data, that is, setting identification information and saving the incoming application data, taking the risk control module retrieving the incoming application data as an example, since the data sealing trigger time point in the incoming application field occurs at the time of the application, the trigger system is the time when the risk control module receives the Artmis message. Because the data of the incoming application no longer changes at this time, it is suitable for the operation of saving the data version.During the application process, Artmis MQ message notifies the risk control module at the time of order submission; the risk control module consumes the message and calls the interface of the real estate application module to save the version (corresponding to the identification information in the target mapping data); the real estate application module calls the unified application module to obtain the current latest version number; the unified application module goes to the application main application form loan_application to obtain the corresponding version field (the unified application of the order creation interface initializes version=0); the real estate application module obtains the current version number oldVersion returned by the unified application module; the version number oldVersion calls the unified application module for optimistic lock version control; the unified application module performs optimistic lock judgment, update loan_application set version = oldVersion+1 where version = oldVersion ; The unified application module determines whether the optimistic lock version update is successful or failed; The unified application module fails to save the optimistic lock version, returns an error that the version save fails, and the risk control module retries; The unified application module saves the optimistic lock version + 1, persists the corresponding version number + data to the temporary tmp table, and returns the corresponding version number + corresponding version data after success; The unified application module sends an MQ message at the same time to send the corresponding version data information to the message queue; The real estate application module consumes the message and performs model conversion and encryption on the returned data; The real estate application module assembles RowKey according to the rules; The real estate application module saves data to the HBase database according to RowKey; The real estate application module fails to save data in HBase and returns the risk control module that the version save fails, and returns an error that the version save fails; The real estate application module saves data successfully in HBase and returns version + data under the current version; If the real estate application module returns the version result timeout, it is nothing more than saving the version data once more. The risk control module did not get the version number, and tried to retry and submit the order again; If the real estate application module successfully returns the version result, the risk control module binds the relationship between the business ID + the current version number to facilitate subsequent business processing.
[0048] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for explanation. When the following link operation node needs to operate the service data, the service data in the target mapping data is obtained based on the identification information, which can be implemented in the following manner: When the post-link operation node needs to operate on the service data and the post-link operation node fails to successfully consume the message queue, the service data in the target mapping data is obtained from the temporary data table based on the identification information.
[0049] In one embodiment, when the post-link operation node fails to consume the message queue successfully, if the post-link operation node needs to operate the service data, since the target mapping data is temporarily stored in the temporary data table, the service data in the target mapping data can be obtained from the temporary data table based on the identification information. Through this embodiment, even if the post-link operation node fails to consume the message queue successfully, the service data in the target mapping data can be effectively obtained from the temporary data table, thereby ensuring the consistency of the service data of each link operation node in the entire service processing link.
[0050] In one embodiment, continuing with the embodiment described above as an example, when the unified submission module updates the version number +1, the corresponding data (corresponding target mapping data) can be persistently stored in a temporary table; the unified submission module sends the version information to the real estate submission module via MQ; the real estate submission module consumes the corresponding MQ and writes it to HBase until the message is consumed successfully; after writing to HBase, it is determined that the return status of HBase confirms that the save is successful, and the submission deletes the corresponding tmp data; for the data in tmp that has not been deleted successfully, a scheduled task is used for inspection and deletion compensation.
[0051] In another embodiment, the process of obtaining business data at the back-link operation node is described by taking the risk control module querying the corresponding version data as an example: During the application process, the risk control module requests the real estate application module to obtain data based on the version number; the real estate application module assembles RowKey to query HBase first; if HBase has data, the data of HBase is used directly; if HBase has no data, the unified application tmp table is queried; the returned data is decrypted; and the data is returned to the risk control module.
[0052] Figure 3 This is the second flow chart of the business data consistency processing method provided by the present invention.
[0053] The following will be combined Figure 3 The process of another business data consistency processing method provided by the present invention is described.
[0054] In an exemplary embodiment of the present invention, Figure 3 It can be seen that the business data consistency processing method may include steps 310 to 340, wherein steps 310 to 320 are respectively the same or similar to steps 110 to 120 described above. For the specific testing methods and beneficial effects, please refer to the above description. No specific limitation is made in this embodiment. Steps 330 and 340 will be introduced below.
[0055] In step 330, standard service data bound to the subsequent link operation node is obtained; In step 340, based on the standard service data, the service data acquired by the subsequent link operation node based on the identification information is verified to verify whether the service data acquired by the subsequent link operation node is consistent with the service data formed by the preceding link operation node.
[0056] In one embodiment, the subsequent link operation node also needs to verify the acquired service data to ensure data consistency. During the application process, standard service data bound to the subsequent link operation node can be obtained, wherein the standard service data can be determined based on the latest version of service data, that is, determined based on the service data of the configured identification information; further, based on the standard service data, the service data acquired by the subsequent link operation node based on the identification information can be verified to verify whether the service data acquired by the subsequent link operation node is consistent with the service data formed by the previous link operation node.
[0057] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for explanation. Based on the standard service data, verifying the service data acquired by the subsequent link operation node based on the identification information may include the following steps: In the case where the standard service data is identical to the service data acquired by the subsequent link operation node based on the identification information, determining that the service data acquired by the subsequent link operation node is consistent with the service data formed by the preceding link operation node; When the standard service data is different from the service data acquired by the subsequent link operation node based on the identification information, it is determined that the service data acquired by the subsequent link operation node is inconsistent with the service data formed by the preceding link operation node, and an alarm is initiated.
[0058] In one embodiment, the query of version data by the ownership module is used as an example for explanation. During the application process, the ownership module calls the real estate application module to determine whether the grayscale strategy is hit, wherein the grayscale strategy is used to characterize whether the current scene is processed using the business data consistency processing method provided by the present invention to ensure the consistency of the entire processing link. The real estate application module can determine whether the grayscale strategy is hit based on the city + product. It should be noted that different products in different cities may be processed using the business data consistency processing method provided by the present invention, so it can be determined whether the grayscale strategy is hit based on the city + product. In one example, if there is no hit, it means that the old logic directly queries the redundant data, and the front end displays the data; if it hits, the ownership module queries the corresponding version version bound under the associated risk control task. The ownership module can obtain the latest version number newVersion (corresponding to the business data of the identification information) of the application. The ownership module performs a version check of currentVersion newVersion to determine whether the bound version number (corresponding to the standard business data) and the latest version number (corresponding to the business data of the identification information) are consistent. An alarm is issued for inconsistent version numbers and a business prompt is issued to refresh the page. The version number is consistent. The ownership module queries the corresponding real estate application to obtain data according to the version number. The real estate application module assembles RowKey according to the rules to query the HBase data. After the data is decrypted, it is returned to the ownership module so that the ownership module can obtain the business data.
[0059] In another exemplary embodiment of the present invention, setting identification information for service data to obtain target mapping data can be implemented in the following manner: Based on the optimistic locking mechanism, identification information is set for the business data to obtain the target mapping data.
[0060] In one embodiment, optimistic locking assumes that conflicts rarely occur, and checks the version number or timestamp (corresponding identification information) to ensure that the data has not been modified during the period from reading the data to updating the data. During the application process, identification information can be set for business data based on the optimistic locking mechanism to obtain target mapping data, thereby ensuring that the same identification information will not be marked by different business data.
[0061] In an exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for explanation. Before obtaining the service data formed at the previous link operation node, the service data consistency processing method may further include the following steps: Determine whether it is necessary to configure identification information for the service data formed by the previous link operation node; The acquisition of service data formed at the previous link operation node may be implemented in the following manner: In the case where identification information needs to be configured for the service data formed by the previous link operation node, calling the first interface to obtain the service data formed by the previous link operation node; In the case where identification information configuration is not required for the service data formed at the previous link operation node, the second interface is called to acquire the service data formed at the previous link operation node, wherein the first interface is different from the second interface.
[0062] In one embodiment, whether it is necessary to configure identification information for the business data formed by the previous link operation node is often determined according to business needs. For example, for certain cities and certain business products, it is necessary to configure identification information for the business data formed by the previous link operation node. In the case where it is necessary to configure identification information for the business data formed by the previous link operation node, the first interface can be called to obtain the business data formed at the previous link operation node; in the case where it is not necessary to configure identification information for the business data formed by the previous link operation node, the second interface can be called to obtain the business data formed at the previous link operation node. By obtaining the business data formed at the previous link operation node through different interfaces, it can be determined which business data formed at the previous link operation node needs to be configured with identification information, so as to facilitate verification of whether the business data that needs to be configured with identification information is configured with the corresponding identification information.
[0063] According to the foregoing description, the service data consistency processing method provided by the present invention is applied to a service processing link, and the service processing link includes a front link operation node and a rear link operation node, and the method includes: obtaining service data formed in the front link operation node, and setting identification information for the service data to obtain target mapping data; when the rear link operation node needs to operate the service data, obtaining the service data in the target mapping data based on the identification information. It is achieved to ensure that the service data of each link operation node in the entire service processing link is consistent.
[0064] The business data consistency processing device provided by the present invention is described below. The business data consistency processing device described below and the business data consistency processing method described above can be referenced to each other.
[0065] Figure 4 It is a structural schematic diagram of the business data consistency processing device provided by the present invention.
[0066] In an exemplary embodiment of the present invention, the service data consistency processing device can be applied to a service processing link, wherein the service processing link includes a front link operation node and a rear link operation node. Figure 4 It can be known that the service data consistency processing device may include an acquisition module 410 and a processing module 420, and each module will be introduced below.
[0067] The acquisition module 410 may be configured to acquire the service data formed at the previous link operation node, and set identification information for the service data to obtain target mapping data, wherein the target mapping data includes the service data and the identification information having a mapping relationship; The processing module 420 may be configured to acquire the service data in the target mapping data based on the identification information when the subsequent link operation node needs to operate the service data.
[0068] In an exemplary embodiment of the present invention, the processing module 420 may also be configured to: storing the target mapping data in a temporary data table, and
[0069] Based on the target mapping data, generating a message queue corresponding to the target mapping data; In the case where the subsequent link operation node successfully consumes the message queue, deleting the target mapping data stored in the temporary data table; The processing module 420 may adopt the following method to obtain the service data in the target mapping data based on the identification information when the subsequent link operation node needs to operate the service data: In the case where the subsequent link operation node needs to operate the service data, the service data in the target mapping data is acquired based on the message queue and the identification information.
[0070] In an exemplary embodiment of the present invention, the processing module 420 may adopt the following method to obtain the service data in the target mapping data based on the identification information when the subsequent link operation node needs to operate the service data: In the case where the subsequent link operation node needs to operate the business data and the subsequent link operation node fails to successfully consume the message queue, the business data in the target mapping data is obtained from the temporary data table based on the identification information.
[0071] In an exemplary embodiment of the present invention, the processing module 420 may also be configured to: Acquiring standard service data bound to the post-link operation node; Based on the standard service data, the service data acquired by the following link operation node based on the identification information is verified to verify whether the service data acquired by the following link operation node is consistent with the service data formed by the preceding link operation node.
[0072] In an exemplary embodiment of the present invention, the processing module 420 may implement verification of the service data acquired by the subsequent link operation node based on the identification information based on the standard service data in the following manner: In a case where the standard service data is identical to the service data acquired by the following link operation node based on the identification information, determining that the service data acquired by the following link operation node is consistent with the service data formed by the preceding link operation node; When the standard service data is different from the service data acquired by the subsequent link operation node based on the identification information, it is determined that the service data acquired by the subsequent link operation node is inconsistent with the service data formed by the preceding link operation node, and an alarm is initiated.
[0073] In an exemplary embodiment of the present invention, the acquisition module 410 may use the following method to set identification information for the service data to obtain the target mapping data: Based on the optimistic locking mechanism, identification information is set for the business data to obtain target mapping data.
[0074] In an exemplary embodiment of the present invention, the acquisition module 410 may also be configured to: Determining whether it is necessary to configure identification information for the service data formed by the previous link operation node; The acquisition module 410 may acquire the service data formed at the preceding link operation node in the following manner: In the case where identification information needs to be configured for the service data formed by the preceding link operation node, calling the first interface to acquire the service data formed by the preceding link operation node; In the case where identification information configuration is not required for the service data formed at the previous link operation node, a second interface is called to acquire the service data formed at the previous link operation node, wherein the first interface is different from the second interface.
[0075] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete mutual communication through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a service data consistency processing method, the method being applied to a service processing link, the service processing link including a front link operation node and a rear link operation node, the method including: obtaining service data formed at the front link operation node, and setting identification information for the service data to obtain target mapping data, wherein the target mapping data includes the service data and the identification information having a mapping relationship; when the rear link operation node needs to operate the service data, obtaining the service data in the target mapping data based on the identification information.
[0076] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0077] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the business data consistency processing method provided by the above methods. The method is applied to a business processing link, and the business processing link includes a front link operation node and a rear link operation node. The method includes: obtaining business data formed at the front link operation node, and setting identification information for the business data to obtain target mapping data, wherein the target mapping data includes the business data and the identification information having a mapping relationship; when the rear link operation node needs to operate the business data, obtaining the business data in the target mapping data based on the identification information.
[0078] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the business data consistency processing method provided by the above-mentioned methods. The method is applied to a business processing link, and the business processing link includes a front link operation node and a rear link operation node. The method includes: obtaining business data formed at the front link operation node, and setting identification information for the business data to obtain target mapping data, wherein the target mapping data includes the business data and the identification information having a mapping relationship; when the rear link operation node needs to operate the business data, obtaining the business data in the target mapping data based on the identification information.
[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing business data consistency, characterized in that: The method is applied to a service processing link, the service processing link includes a front link operation node and a rear link operation node, and the method includes: Acquire the service data formed at the previous link operation node, and set identification information for the service data to obtain target mapping data, wherein the target mapping data includes the service data and the identification information having a mapping relationship; In the case where the subsequent link operation node needs to operate the service data, the service data in the target mapping data is acquired based on the identification information.
2. The method for processing business data consistency according to claim 1, characterized in that: After obtaining the target mapping data, the method further includes: storing the target mapping data in a temporary data table, and Based on the target mapping data, generating a message queue corresponding to the target mapping data; In the case where the subsequent link operation node successfully consumes the message queue, deleting the target mapping data stored in the temporary data table; In a case where the subsequent link operation node needs to operate the service data, acquiring the service data in the target mapping data based on the identification information specifically includes: In the case where the subsequent link operation node needs to operate the service data, the service data in the target mapping data is acquired based on the message queue and the identification information.
3. The method for processing business data consistency according to claim 2, characterized in that: In a case where the subsequent link operation node needs to operate the service data, acquiring the service data in the target mapping data based on the identification information specifically includes: In the case where the subsequent link operation node needs to operate the business data and the subsequent link operation node fails to successfully consume the message queue, the business data in the target mapping data is obtained from the temporary data table based on the identification information.
4. The method for processing business data consistency according to claim 1, characterized in that: After acquiring the service data in the target mapping data based on the identification information, the method further includes: Acquiring standard service data bound to the post-link operation node; Based on the standard service data, the service data acquired by the following link operation node based on the identification information is verified to verify whether the service data acquired by the following link operation node is consistent with the service data formed by the preceding link operation node.
5. The method for processing business data consistency according to claim 4, characterized in that: The verifying, based on the standard service data, the service data acquired by the subsequent link operation node based on the identification information specifically includes: In a case where the standard service data is identical to the service data acquired by the following link operation node based on the identification information, determining that the service data acquired by the following link operation node is consistent with the service data formed by the preceding link operation node; When the standard service data is different from the service data acquired by the subsequent link operation node based on the identification information, it is determined that the service data acquired by the subsequent link operation node is inconsistent with the service data formed by the preceding link operation node, and an alarm is initiated.
6. The method for processing business data consistency according to claim 1, characterized in that: The step of setting identification information for the business data to obtain target mapping data specifically includes: Based on the optimistic locking mechanism, identification information is set for the business data to obtain target mapping data.
7. The method for processing business data consistency according to claim 1, characterized in that: Before acquiring the service data formed at the preceding link operation node, the method further includes: Determining whether it is necessary to configure identification information for the service data formed by the previous link operation node; The acquiring of the service data formed at the preceding link operation node specifically includes: In the case where identification information needs to be configured for the service data formed by the preceding link operation node, calling the first interface to acquire the service data formed by the preceding link operation node; In the case where identification information configuration is not required for the service data formed at the previous link operation node, a second interface is called to acquire the service data formed at the previous link operation node, wherein the first interface is different from the second interface.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the business data consistency processing method as described in any one of claims 1 to 7 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the business data consistency processing method as described in any one of claims 1 to 7 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the business data consistency processing method as described in any one of claims 1 to 7 is implemented.