A business data error correction method, device, equipment and readable storage medium

By monitoring the data operation event messages in the transaction process and using the target data comparison component to identify and correct errors in business data, the problem of error correction lag and performance impact in the existing technology is solved, and real-time error correction and system impact are realized. alleviate.

CN114022279BActive Publication Date: 2024-09-24SERVYOU SOFTWARE GRP
View PDF 16 Cites 0 Cited by

Patent Information

Application Number
CN202111308125.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-09-24
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

Existing business data error correction methods lag behind in the real-time transaction process and cannot perform data error correction in a timely manner, resulting in unnecessary business losses and a greater impact on the performance of the trading system.

Method used

By monitoring the data operation event messages in the transaction process, the corresponding business data is obtained and matched, the target data comparison component is used to identify erroneous data, and the data is pushed to the transaction subsystem for error correction in a timely manner to avoid additional data extraction steps.

Benefits of technology

It realizes real-time error correction of business data, reduces the probability of business loss, and reduces the impact on the trading system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114022279B
    Figure CN114022279B
Patent Text Reader

Abstract

The present invention discloses a business data error correction method, which includes the following steps: monitoring data operation event messages generated in a transaction process; obtaining business data corresponding to the data operation event messages; performing rule matching on the data operation event messages to obtain a target data comparison component; using the target data comparison component to identify whether there is erroneous data in the business data; if so, obtaining the erroneous data, and pushing the erroneous data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs an error correction operation on the erroneous data. The business data error correction method provided by the present invention can be used to timely determine whether there is erroneous data in the business data, and timely perform business remediation, which greatly reduces the probability of business losses, does not require additional data extraction links, and greatly reduces the impact on the business transaction system. The present invention also discloses a business data error correction device, equipment and storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a business data error correction method, device, equipment and computer-readable storage medium. Background Art

[0002] In the real-time transaction process, business data is stored in different forms in different storage instances at various stages of the transaction. Some are stored in relational databases in structured form, some are stored in non-relational data in semi-structured form, and some are even stored in the form of process data on the middleware server. In the business system, it is necessary to retrieve the data of each transaction stage to see if it is consistent with expectations, and then find problematic data and identify abnormal business.

[0003] At present, general massive data comparison or error correction solutions often need to be processed through data extraction and offline analysis after the data of each link of the business is landed. Such solutions are more lagging than business transactions, and cannot make necessary interventions and compensation for the business in time, which is easy to cause unnecessary business losses. At the same time, data extraction and other links will have a certain performance impact on the business transaction library. When the data volume is large, a certain business window period needs to be reserved, which has a greater impact on the business transaction system.

[0004] To sum up, how to effectively solve the problems that the existing business data error correction methods cannot make necessary intervention and compensation to the business in a timely manner, easily cause unnecessary business losses, and have a significant impact on the business transaction system, is an issue that technical personnel in this field urgently need to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a business data error correction method, which can promptly determine whether there is erroneous data in the business data, and perform business remediation in a timely manner, thereby greatly reducing the probability of business losses. It does not require additional data extraction links, and greatly reduces the impact on the business transaction system; another purpose of the present invention is to provide a business data error correction device, equipment and computer-readable storage medium.

[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0007] A business data error correction method, comprising:

[0008] Monitor data operation event messages generated in the transaction process;

[0009] Obtaining the business data corresponding to the data operation event message;

[0010] Performing rule matching on the data operation event message to obtain a target data comparison component;

[0011] Using the target data comparison component to identify whether there is erroneous data in the business data;

[0012] If so, the error data is obtained and pushed to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs an error correction operation on the error data.

[0013] In a specific implementation of the present invention, rule matching is performed on the data operation event message to obtain a target data comparison component, including:

[0014] Determine the service type corresponding to the data operation event message;

[0015] A target data comparison component corresponding to the business type is filtered from the data comparison component set.

[0016] In a specific implementation of the present invention, selecting a target data comparison component corresponding to the business type from a data comparison component set includes:

[0017] Determine whether the business type is a multi-link mass transaction behavior business;

[0018] If so, then selecting the Bloom filter component corresponding to the multi-link massive transaction behavior business from the data comparison component set;

[0019] Using the target data comparison component to identify whether there is erroneous data in the business data includes:

[0020] When the post-data in the business data lands, the Bloom filter component is used to compare the pre-key information bits of the pre-data in the business data with the post-key information bits of the post-data for consistency;

[0021] Determine whether there is erroneous data in the business data based on the consistency comparison result.

[0022] In a specific implementation of the present invention, selecting a target data comparison component corresponding to the business type from a data comparison component set includes:

[0023] Determining whether the service type is a complex rule matching service;

[0024] If so, selecting the built-in rule engine component corresponding to the complex rule matching business from the data comparison component set;

[0025] Using the target data comparison component to identify whether there is erroneous data in the business data includes:

[0026] The built-in rule engine component is used to call the custom business error correction rule to identify whether there is erroneous data in the business data.

[0027] In a specific implementation of the present invention, selecting a target data comparison component corresponding to the business type from a data comparison component set includes:

[0028] Determining whether the service type is a data delay service;

[0029] If so, the data fault-tolerant window component corresponding to the data delay service is selected from the data comparison component set;

[0030] Using the target data comparison component to identify whether there is erroneous data in the business data includes:

[0031] The data fault-tolerant window component is used to identify whether there is erroneous data in the business data according to a preset fault-tolerant delay.

[0032] In a specific implementation of the present invention, monitoring the data operation event message generated in the transaction process includes:

[0033] Obtaining the data source type to which each of the transaction subsystems belongs;

[0034] Determine the monitoring converter type corresponding to each of the transaction subsystems according to the data source type;

[0035] The data operation event messages generated in the transaction process are monitored by using monitoring converters of the monitoring converter types respectively corresponding to the transaction subsystems.

[0036] In a specific implementation of the present invention, after monitoring the data operation event message generated in the transaction process, the method further includes:

[0037] Determining whether the data operation event message is in a preset unified data format;

[0038] If not, convert the data operation event message into data in the preset unified data format.

[0039] A service data error correction device, comprising:

[0040] The event message monitoring module is used to monitor the data operation event messages generated in the transaction process;

[0041] A data acquisition module, used to acquire the business data corresponding to the data operation event message;

[0042] A data comparison component acquisition module is used to perform rule matching on the data operation event message to obtain a target data comparison component;

[0043] An error data identification module, used to identify whether there is error data in the business data by using the target data comparison component;

[0044] The data error correction module is used to obtain the error data when it is determined that there is error data in the business data, and push the error data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operations on the error data.

[0045] A business data error correction device, comprising:

[0046] Memory for storing computer programs;

[0047] A processor is used to implement the steps of the business data error correction method as described above when executing the computer program.

[0048] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the business data error correction method as described above are implemented.

[0049] The business data error correction method provided by the present invention monitors the data operation event messages generated in the transaction process; obtains the business data corresponding to the data operation event messages; performs rule matching on the data operation event messages to obtain a target data comparison component; uses the target data comparison component to identify whether there is erroneous data in the business data; if so, obtains the erroneous data and pushes the erroneous data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operations on the erroneous data.

[0050] It can be seen from the above technical solution that by timely monitoring the data operation event messages generated in the transaction process, and pre-setting various data comparison components for real-time judgment of business data, by matching the target data comparison component corresponding to the data operation event message, the target data comparison component is used to timely determine whether there is erroneous data in the business data during the business process. Therefore, when erroneous data is identified, business remediation is carried out in a timely manner, which greatly reduces the probability of business losses. Compared with the method of extracting and analyzing data after the data is landed, the present invention does not require additional data extraction links, which greatly reduces the impact on the business transaction system.

[0051] Correspondingly, the present invention also provides a business data error correction device, equipment and computer-readable storage medium corresponding to the above-mentioned business data error correction method, which have the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.

[0053] Figure 1 A flowchart of an implementation of a business data error correction method in an embodiment of the present invention;

[0054] Figure 2 Another implementation flow chart of the service data error correction method in the embodiment of the present invention;

[0055] Figure 3 It is a structural block diagram of a service data error correction device in an embodiment of the present invention;

[0056] Figure 4 This is a structural block diagram of a service data error correction device in an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of the specific structure of a business data error correction device provided in this embodiment. DETAILED DESCRIPTION

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0059] See also Figure 1 , Figure 1 This is a flow chart of an implementation of a service data error correction method in an embodiment of the present invention. The method may include the following steps:

[0060] S101: Monitor data operation event messages generated in the transaction process.

[0061] When business transactions are conducted between various transaction subsystems, various operation events will occur in the transaction process. For example, in the shopping platform, there are data operation events such as submitting orders, making payments, etc., which are written and modified. The data operation event messages generated in the transaction process are monitored.

[0062] S102: Acquire business data corresponding to the data operation event message.

[0063] After monitoring the data operation event message generated in the transaction process, the business data corresponding to the data operation event message is obtained. For example, the order amount and the amount to be paid corresponding to the data operation events such as submitting an order and making a payment can be obtained.

[0064] S103: Perform rule matching on the data operation event message to obtain a target data comparison component.

[0065] Pre-set corresponding data comparison components for different types of operation event messages, and pre-set matching rules between operation event messages and data comparison components. After obtaining the business data corresponding to the data operation event message, match the data operation event message with rules to obtain the target data comparison component.

[0066] S104: Use the target data comparison component to identify whether there is erroneous data in the business data. If so, execute step S105; if not, do nothing.

[0067] After matching the data operation event message with rules and obtaining the target data comparison component, the target data comparison component is used to identify whether there is erroneous data in the business data. If so, it means that there is an abnormality in the current business transaction, and step S105 is executed. If not, it means that the current business transaction is abnormal and no processing is performed.

[0068] S105: Acquire error data, and push the error data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operations on the error data.

[0069] When the target data comparison component is used to identify erroneous data in the business data, it indicates that there is an abnormality in the current business transaction. The erroneous data is obtained and pushed to each transaction subsystem corresponding to the transaction process. Each transaction subsystem performs error correction operations on the erroneous data, that is, performs secondary verification and correction on the suspicious data, so as to timely discover the problem data and perform online stop loss for abnormal business in time.

[0070] It can be seen from the above technical solution that by timely monitoring the data operation event messages generated in the transaction process, and pre-setting various data comparison components for real-time judgment of business data, by matching the target data comparison component corresponding to the data operation event message, the target data comparison component is used to timely determine whether there is erroneous data in the business data during the business process. Therefore, when erroneous data is identified, business remediation is carried out in a timely manner, which greatly reduces the probability of business losses. Compared with the method of extracting and analyzing data after the data is landed, the present invention does not require additional data extraction links, which greatly reduces the impact on the business transaction system.

[0071] It should be noted that, based on the above embodiment, the embodiment of the present invention also provides corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiment can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.

[0072] See also Figure 2 , Figure 2 Another implementation flow chart of the service data error correction method in an embodiment of the present invention is shown in FIG. 1 . The method may include the following steps:

[0073] S201: Obtain the data source type to which each transaction subsystem belongs.

[0074] The data sources of the data operation event messages processed by each transaction subsystem may be different. For example, the data source may be a relational database, a non-relational database, a message middleware, etc. Get the data source type of each transaction subsystem.

[0075] S202: Determine the monitoring converter type corresponding to each transaction subsystem according to each data source type.

[0076] For data monitoring in various data sources, it is necessary to use a monitoring converter that is compatible with the data source, such as a binlog monitoring converter for relational databases, an oplog monitoring converter for non-relational databases, and a heterogeneous message monitoring converter for message middleware. After obtaining the data source type to which each transaction subsystem belongs, determine the type of monitoring converter corresponding to each transaction subsystem based on the data source type.

[0077] S203: Using the monitoring converters of the monitoring converter types corresponding to the transaction subsystems to monitor the data operation event messages generated in the transaction process.

[0078] After determining the monitoring converter types corresponding to the transaction subsystems according to the data source types, the monitoring converters of the monitoring converter types corresponding to the transaction subsystems are used to monitor the data operation event messages generated in the transaction process.

[0079] It can be pre-configured to perform subsequent business data error correction or analysis only on data operation event messages that are of concern to the current business, and other event messages are automatically discarded, thereby avoiding analysis of irrelevant operation events.

[0080] S204: Determine whether the data operation event message is in a preset unified data format. If so, do not process it. If not, execute step S205.

[0081] Since the data formats of data operation event messages in different data sources may be different, in order to facilitate subsequent comprehensive analysis of the data operation event messages, after using the monitoring converters of the monitoring converter types corresponding to each transaction subsystem to monitor the data operation event messages generated in the transaction process, it is determined whether the data operation event messages are in the preset unified data format. If so, it means that there is no need to perform data format conversion on the data operation event messages and no processing is performed. If not, it means that there is a need to perform data format conversion on the data operation event messages and step S205 is executed.

[0082] It should be noted that the preset unified data format can be set and adjusted according to actual conditions, and the embodiment of the present invention does not limit this.

[0083] S205: Convert the data operation event message into data in a preset unified data format.

[0084] When it is determined that the data operation event message is not in the preset unified data format, it indicates that the data operation event message needs to be converted into data format, and the data operation event message is converted into data in the preset unified data format. By converting the data operation event message into data in the preset unified data format, that is, converting it into a standard event message, it is convenient to conduct a comprehensive analysis of the data operation event message later.

[0085] A kafka server cluster can be pre-set to analyze data operation event messages. Different titles (TOPIC) can be set according to different business categories. After obtaining the data operation event message in a preset unified data format, the corresponding type of data operation event message is sent to the corresponding kafka server to ensure relative isolation between businesses and reduce the impact of each other's analysis rate.

[0086] S206: Acquire business data corresponding to the data operation event message.

[0087] S207: Determine the service type corresponding to the data operation event message.

[0088] After obtaining the business data corresponding to the data operation event message, determine the business type corresponding to the data operation event message. The business type may include multi-link massive transaction behavior business, complex rule matching business, data delay business, etc.

[0089] S208: Filter the target data comparison component corresponding to the business type from the data comparison component set.

[0090] A data comparison component set including data comparison components corresponding to different business types is pre-set. After determining the business type corresponding to the data operation event message, the target data comparison component corresponding to the business type is selected from the data comparison component set. By selecting the matching data comparison component according to the actual business type to identify errors in business data, the recognition efficiency and accuracy of erroneous business data are greatly improved.

[0091] S209: Use the target data comparison component to identify whether there is erroneous data in the business data. If so, execute step S210; if not, execute without processing.

[0092] S210: Acquire error data, and push the error data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operations on the error data.

[0093] In a specific implementation of the present invention, step S208 may include the following steps:

[0094] Step 1: Determine whether the business type is a multi-link mass transaction behavior business. If so, proceed to step 2. If not, perform other business type matching;

[0095] Step 2: Select the Bloom filter component corresponding to the multi-link massive transaction behavior business from the data comparison component set;

[0096] Accordingly, step S209 may include the following steps:

[0097] Step 1: When the post-data in the business data lands, the Bloom filter component is used to compare the consistency of the pre-data key information bits in the business data with the post-data key information bits in the post-data;

[0098] Step 2: Determine whether there is erroneous data in the business data based on the consistency comparison results.

[0099] For the convenience of description, the above steps can be combined for explanation.

[0100] After determining the business type corresponding to the data operation event message, determine whether the business type is a multi-link massive transaction behavior business. If so, it means that the current business data has a large amount of data, and the Bloom filter component corresponding to the multi-link massive transaction behavior business is selected from the data comparison component set. When the post-data in the business data lands, the Bloom filter component is used to compare the pre-data key information bits (bits) in the business data with the post-data key information bits in the post-data for consistency, and determine whether there is erroneous data in the business data based on the consistency comparison results. Make full use of the advantage of the Bloom filter component that less memory and computing resources can be used to meet the quasi-real-time judgment of massive transaction data. If the business type is not a multi-link massive transaction behavior business, other business types are matched.

[0101] In a specific implementation of the present invention, step S208 may include the following steps:

[0102] Step 1: Determine whether the business type is a complex rule matching business. If so, execute step 2. If not, perform other business type matching.

[0103] Step 2: Filter the built-in rule engine component corresponding to the complex rule matching business from the data comparison component set;

[0104] Accordingly, step S209 may include the following steps:

[0105] Use the built-in rule engine component to call custom business error correction rules to identify whether there is erroneous data in the business data.

[0106] For the convenience of description, the above steps can be combined for explanation.

[0107] For complex rule matching services, custom business error correction rules can be pre-set as needed. After determining the business type corresponding to the data operation event message, determine whether the business type is a complex rule matching business. If so, select the built-in rule engine component corresponding to the complex rule matching business from the data comparison component set, and use the built-in rule engine component to call the custom business error correction rules to identify whether there is erroneous data in the business data. If the business type is not a complex rule matching business, perform other business type matching.

[0108] In a specific implementation of the present invention, step S208 may include the following steps:

[0109] Step 1: Determine whether the service type is a data delay service. If so, execute step 2. If not, perform other service type matching.

[0110] Step 2: Filter the data fault tolerance window component corresponding to the data delay business from the data comparison component set;

[0111] Accordingly, step S209 may include the following steps:

[0112] The data fault-tolerant window component is used to identify whether there is erroneous data in the business data according to the preset fault-tolerant delay.

[0113] For the convenience of description, the above steps can be combined for explanation.

[0114] The timeliness of data processing varies, and different data fault tolerance windows can be set in advance for different businesses according to their own needs. After determining the business type corresponding to the data operation event message, determine whether the business type is a data delay business. If so, select the data fault tolerance window component corresponding to the data delay business from the data comparison component set, and use the data fault tolerance window component to identify whether there is erroneous data in the business data according to the preset fault tolerance delay. By setting the preset fault tolerance delay, unnecessary misjudgments are avoided and the accuracy of business data error identification is greatly improved. If the business type is not a data delay business, other business types are matched.

[0115] Corresponding to the above method embodiment, the present invention further provides a service data error correction device. The service data error correction device described below and the service data error correction method described above can be referred to each other.

[0116] See also Figure 3 , Figure 3 This is a structural block diagram of a service data error correction device in an embodiment of the present invention, and the device may include:

[0117] An event message monitoring module 31 is used to monitor data operation event messages generated in the transaction process;

[0118] A data acquisition module 32, used to acquire business data corresponding to the data operation event message;

[0119] The data comparison component acquisition module 33 is used to perform rule matching on the data operation event message to obtain the target data comparison component;

[0120] An error data identification module 34 is used to identify whether there is error data in the business data by using a target data comparison component;

[0121] The data error correction module 35 is used to obtain the error data when it is determined that there is error data in the business data, and push the error data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operations on the error data.

[0122] It can be seen from the above technical solution that by timely monitoring the data operation event messages generated in the transaction process, and pre-setting various data comparison components for real-time judgment of business data, by matching the target data comparison component corresponding to the data operation event message, the target data comparison component is used to timely determine whether there is erroneous data in the business data during the business process. Therefore, when erroneous data is identified, business remediation is carried out in a timely manner, which greatly reduces the probability of business losses. Compared with the method of extracting and analyzing data after the data is landed, the present invention does not require additional data extraction links, which greatly reduces the impact on the business transaction system.

[0123] In a specific embodiment of the present invention, the data comparison component acquisition module 33 includes:

[0124] A business type determination submodule, used to determine the business type corresponding to the data operation event message;

[0125] The data comparison component screening submodule is used to screen the target data comparison component corresponding to the business type from the data comparison component set.

[0126] In a specific embodiment of the present invention, the data comparison component screening submodule includes:

[0127] The first judgment unit is used to judge whether the business type is a multi-link massive transaction behavior business;

[0128] A first component screening unit is used to screen a Bloom filter component corresponding to the multi-link massive transaction behavior business from a data comparison component set when the business type is determined to be a multi-link massive transaction behavior business;

[0129] The error data identification module 34 includes:

[0130] The bit comparison submodule is used to compare the pre-key information bits of the pre-key information of the business data with the post-key information bits of the post-key information of the post-key information of the business data using the Bloom filter component when the post-key information of the business data is landed;

[0131] The judgment submodule is used to judge whether there is erroneous data in the business data based on the consistency comparison results.

[0132] In a specific embodiment of the present invention, the data comparison component screening submodule includes:

[0133] The second judgment unit is used to judge whether the service type is a complex rule matching service;

[0134] The second component screening unit is used to screen the built-in rule engine component corresponding to the complex rule matching business from the data comparison component set when the business type is determined to be a complex rule matching business;

[0135] The error data identification module 34 is specifically a module that uses a built-in rule engine component to call a custom business error correction rule to identify whether there is error data in the business data.

[0136] In a specific embodiment of the present invention, the data comparison component screening submodule includes:

[0137] A third judgment unit is used to judge whether the service type is a data delay service;

[0138] A third component screening unit is used to screen a data fault tolerance window component corresponding to the data delay business from the data comparison component set when the business type is determined to be a data delay business;

[0139] The error data identification module 34 is specifically a module that uses the data fault tolerance window component to identify whether there is error data in the business data according to the preset fault tolerance delay.

[0140] In a specific implementation of the present invention, the event message monitoring module 31 includes:

[0141] The data source type acquisition submodule is used to obtain the data source type to which each transaction subsystem belongs;

[0142] A monitoring converter type determination submodule is used to determine the type of monitoring converter corresponding to each transaction subsystem according to each data source type;

[0143] The event message monitoring submodule is used to monitor the data operation event messages generated in the transaction process by using the monitoring converters of the monitoring converter types corresponding to each transaction subsystem.

[0144] In a specific embodiment of the present invention, the device may further include:

[0145] A judgment module, used to judge whether the data operation event message is in a preset unified data format after monitoring the data operation event message generated in the transaction process;

[0146] The format conversion module is used to convert the data operation event message into data in the preset unified data format when it is determined that the data operation event message is not in the preset unified data format.

[0147] Corresponding to the above method embodiment, see Figure 4 , Figure 4 This is a schematic diagram of a service data error correction device provided by the present invention, and the device may include:

[0148] A memory 332, for storing computer programs;

[0149] The processor 322 is used to implement the steps of the service data error correction method of the above method embodiment when executing a computer program.

[0150] For details, please refer to Figure 5 , Figure 5 A specific structural diagram of a business data error correction device provided for this embodiment, the business data error correction device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer applications 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the business data error correction device 301.

[0151] The service data error correction device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0152] The steps in the service data error correction method described above can be implemented by the structure of the service data error correction device.

[0153] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0154] Monitor the data operation event messages generated in the transaction process; obtain the business data corresponding to the data operation event messages; perform rule matching on the data operation event messages to obtain the target data comparison component; use the target data comparison component to identify whether there is erroneous data in the business data; if so, obtain the erroneous data and push the erroneous data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem can perform error correction operations on the erroneous data.

[0155] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0156] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0157] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0158] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the technical solution and core ideas of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A business data error correction method, characterized in that: include: Get the data source type of each transaction subsystem; Determine the monitoring converter type corresponding to each of the transaction subsystems according to the data source type; Using the monitoring converters of the monitoring converter types corresponding to the transaction subsystems to monitor the data operation event messages generated in the transaction process; Determining whether the data operation event message is in a preset unified data format; If not, converting the data operation event message into data in the preset unified data format; Obtaining business data corresponding to the data operation event message; Determine the service type corresponding to the data operation event message; Filtering a target data comparison component corresponding to the business type from the data comparison component set; Using the target data comparison component to identify whether there is erroneous data in the business data; If yes, the error data is obtained, and the error data is pushed to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs error correction operation on the error data; Wherein, selecting a target data comparison component corresponding to the business type from the data comparison component set includes: Determining whether the service type is a data delay service; If so, the data fault-tolerant window component corresponding to the data delay service is selected from the data comparison component set; Using the target data comparison component to identify whether there is erroneous data in the business data includes: The data fault-tolerant window component is used to identify whether there is erroneous data in the business data according to a preset fault-tolerant delay.

2. The service data error correction method according to claim 1, characterized in that: Selecting a target data comparison component corresponding to the business type from the data comparison component set includes: Determine whether the business type is a multi-link mass transaction behavior business; If so, selecting a Bloom filter component corresponding to the multi-link massive transaction behavior business from the data comparison component set; Using the target data comparison component to identify whether there is erroneous data in the business data includes: When the post-data in the business data lands, the Bloom filter component is used to compare the pre-key information bits of the pre-data in the business data with the post-key information bits of the post-data for consistency; Determine whether there is erroneous data in the business data based on the consistency comparison result.

3. The service data error correction method according to claim 1, characterized in that: Selecting a target data comparison component corresponding to the business type from the data comparison component set includes: Determining whether the service type is a complex rule matching service; If so, selecting the built-in rule engine component corresponding to the complex rule matching business from the data comparison component set; Using the target data comparison component to identify whether there is erroneous data in the business data includes: The built-in rule engine component is used to call the custom business error correction rule to identify whether there is erroneous data in the business data.

4. A service data error correction device, characterized in that: include: Event message monitoring module, the event message monitoring module includes: The data source type acquisition submodule is used to obtain the data source type to which each transaction subsystem belongs; A monitoring converter type determination submodule is used to determine the monitoring converter type corresponding to each transaction subsystem according to each data source type; An event message monitoring submodule, used for monitoring data operation event messages generated in the transaction process by using monitoring converters of monitoring converter types corresponding to each transaction subsystem; A judgment module, used to judge whether the data operation event message is in a preset unified data format after monitoring the data operation event message generated in the transaction process; A format conversion module, configured to convert the data operation event message into data in a preset unified data format when it is determined that the data operation event message is not in a preset unified data format; A data acquisition module, used to acquire the business data corresponding to the data operation event message; The data comparison component acquisition module includes: A business type determination submodule, used to determine the business type corresponding to the data operation event message; The data comparison component screening submodule is used to screen the target data comparison component corresponding to the business type from the data comparison component set; An error data identification module, used to identify whether there is error data in the business data by using the target data comparison component; A data error correction module, for obtaining the error data when it is determined that there is error data in the business data, and pushing the error data to each transaction subsystem corresponding to the transaction process, so that each transaction subsystem performs an error correction operation on the error data; Among them, the data comparison component screening submodule includes: A third judgment unit is used to judge whether the service type is a data delay service; A third component screening unit is used to screen a data fault tolerance window component corresponding to the data delay business from the data comparison component set when the business type is determined to be a data delay business; The error data identification module is specifically a module that uses the data fault-tolerant window component to identify whether there is error data in the business data according to the preset fault-tolerant delay.

5. A service data error correction device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the business data error correction method as described in any one of claims 1 to 3 when executing the computer program.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the business data error correction method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Mass data-based real-time structural data comparison system

    CN104317947A

  • Service error correction method and apparatus

    CN105827481A

  • Business error correcting method and device

    CN105933177A

  • Business conflict processing method and device, storage medium and electronic equipment

    CN107885609A

  • Data exchange monitoring method of enterprise internal systems

    CN108173711A