CN113240351A - Business data consistency checking method and device, electronic equipment and medium - Google Patents

Business data consistency checking method and device, electronic equipment and medium Download PDF

Info

Publication number
CN113240351A
CN113240351A CN202110718372.8A CN202110718372A CN113240351A CN 113240351 A CN113240351 A CN 113240351A CN 202110718372 A CN202110718372 A CN 202110718372A CN 113240351 A CN113240351 A CN 113240351A
Authority
CN
China
Prior art keywords
check
service
nodes
node
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110718372.8A
Other languages
Chinese (zh)
Inventor
林城彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Trust Co Ltd
Original Assignee
Ping An Trust Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Trust Co Ltd filed Critical Ping An Trust Co Ltd
Priority to CN202110718372.8A priority Critical patent/CN113240351A/en
Publication of CN113240351A publication Critical patent/CN113240351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0637Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Educational Administration (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a data processing technology, and discloses a service data consistency checking method, which comprises the following steps: the method comprises the steps of obtaining a service flow, dividing the service flow into a plurality of nodes, carrying out verification processing on the service flow divided into the plurality of nodes to obtain a verification result, carrying out consistency check on the service flow by using a check rule when the verification result is that the verification is passed to obtain a check result, determining a problem node from the plurality of nodes and carrying out repair processing on the problem node when the verification result is that the verification is not passed to obtain a check result, and carrying out consistency check on the repaired service flow by using the check rule to obtain a check result. In addition, the invention also relates to a block chain technology, and the checking result can be stored in the node of the block chain. The invention also provides a service data consistency checking device, electronic equipment and a computer readable storage medium. The invention can solve the problem of low efficiency of the service data consistency check.

Description

Business data consistency checking method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for checking service data consistency, an electronic device, and a computer-readable storage medium.
Background
With the development of internet technology, more and more systems adopt a micro-service system design mode, and the micro-service design mode can not only effectively provide the stability and the robustness of the system, but also improve the expansion capability of the system. Due to the system micro-service, the data redundancy problem is inevitable, and therefore, the consistency check of the service data is required.
In the existing method, the call link between the microservices is usually used for checking, but the data problem of the service level cannot be found in time by the simple link check, and the efficiency of checking the service data consistency is low.
Disclosure of Invention
The invention provides a method and a device for checking service data consistency and a computer readable storage medium, and mainly aims to solve the problem of low efficiency of service data consistency checking.
In order to achieve the above object, a method for checking service data consistency provided by the present invention includes:
acquiring a service flow, and dividing the service flow into a plurality of nodes;
checking the service flow divided into a plurality of nodes to obtain a checking result;
when the verification result is that the verification is passed, performing consistency check on the service flow by using a check rule to obtain a check result;
and when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
Optionally, the dividing the service flow into a plurality of nodes includes:
identifying a plurality of sub-activities in the business process;
and dividing the business flow into a plurality of nodes by taking the plurality of sub-activities as a division standard.
Optionally, before dividing the business process into a plurality of nodes, the method further includes:
writing the check rule into each node according to a preset mapping relation between the node type and the check rule, and distributing a behavior bar code for indicating operation to each node.
Optionally, the obtaining a verification result according to the verification processing performed on the service flow divided into the plurality of nodes includes:
sequencing the business processes divided into a plurality of nodes according to the distribution sequence of the behavior bar codes;
judging whether the service loss time of the service flows of the sequenced nodes is larger than or equal to a preset service threshold value or not;
when the service loss time is greater than or equal to the service threshold, the check result is that the check fails;
and when the service loss time is smaller than the service threshold value, the verification result is that the verification is passed.
Optionally, the determining a problem node from the plurality of nodes and performing repair processing on the problem node includes:
judging the node of the service flow when the service loss time is greater than or equal to the service threshold value as a problem node;
acquiring the problem category of the problem node;
and acquiring a solution corresponding to the problem category from a preset solution library, and repairing the problem node by using the solution.
Optionally, after determining the problem node from the plurality of nodes, the method further includes:
and acquiring an alarm tag, and marking the problem node by using the alarm tag.
Optionally, after obtaining the checking result, the method further includes:
transmitting the checking result to a data pushing engine according to a transmission protocol; or
And pushing the inspection result to the terminal equipment by utilizing the data pushing engine.
In order to solve the above problem, the present invention further provides a device for checking service data consistency, where the device includes:
the system comprises a flow dividing module, a flow dividing module and a flow judging module, wherein the flow dividing module is used for acquiring a service flow and dividing the service flow into a plurality of nodes;
the flow verification module is used for verifying the service flow divided into a plurality of nodes to obtain a verification result;
the consistency check module is used for carrying out consistency check on the service flow by using a check rule to obtain a check result when the check result is that the check is passed;
and the problem node repairing module is used for determining a problem node from the plurality of nodes when the verification result is that the verification fails, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the service data consistency checking method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the service data consistency check method described above.
In the embodiment of the invention, the business process is divided into a plurality of nodes, the business process divided into a plurality of sub-processes taking an individual node as a standard is divided into a plurality of sub-processes, the verification processing is carried out on the business process divided into a plurality of nodes by taking the node as a unit, when the verification processing is passed, the consistency check is carried out on the business process by using the check rule to obtain the check result, when the verification processing is not passed, the problem node is determined, the position with the problem is quickly positioned, then the repair processing is carried out on the problem node, the consistency check is carried out on the repaired business process, the judgment and the check are carried out on the business process, the repair is carried out selectively according to the check result or the check rule is used for carrying out the check, the check accuracy is ensured, the check is carried out on the data of the business layer, and the consistency check efficiency is improved. Therefore, the service data consistency checking method, the service data consistency checking device, the electronic equipment and the computer readable storage medium provided by the invention can solve the problem of low service data consistency checking efficiency.
Drawings
Fig. 1 is a schematic flowchart of a method for checking service data consistency according to an embodiment of the present invention;
fig. 2 is a functional block diagram of a service data consistency checking apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device for implementing the service data consistency checking method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a method for checking service data consistency. The execution subject of the business data consistency check method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the service data consistency checking method may be executed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Fig. 1 is a schematic flow chart of a service data consistency checking method according to an embodiment of the present invention. In this embodiment, the method for checking service data consistency includes:
s1, acquiring the business process and dividing the business process into a plurality of nodes.
In the embodiment of the present invention, the business process refers to a series of activities that are completed together to achieve a specific goal, and in the embodiment of the present invention, taking an APP order system as an example, the business process may be a full business process for ordering by a trust plan.
Specifically, the dividing the service flow into a plurality of nodes includes:
identifying a plurality of sub-activities in the business process;
and dividing the business flow into a plurality of nodes by taking the plurality of sub-activities as a division standard.
Wherein a sub-activity is a node.
In detail, the sub-activities are segmented activities, the business process can be finally completed only by jointly completing a plurality of sub-activities, the business process is divided into a plurality of nodes, each part of the multi-business process can be analyzed more finely, and the follow-up data consistency check can be better ensured by starting from part.
In the embodiment of the invention, the business process is the ordering of the trust plan, and a plurality of sub-activities in the ordering of the trust plan can be divided into sub-activities such as login, registration, personal information supplement, questionnaire information supplement, real-name authentication, asset certification supplement, product browsing, product ordering, video surface signing, electronic signing, contract stamp, asset viewing and the like.
Further, before dividing the business process into a plurality of nodes, the method further includes:
writing the check rule into each node according to a preset mapping relation between the node type and the check rule, and distributing a behavior bar code for indicating operation to each node.
In detail, the check rule is predefined, and in the embodiment of the present invention, the check feature may be data check, quota check, order status check, or the like.
And distributing a behavior bar code for each node according to the sequencing sequence of the nodes in the service process, wherein the behavior bar code can be used as an operation identifier of the service process and a certificate in the subsequent verification operation.
For example, in the order of the trust plan, each node should be login, registration, personal information supplement, questionnaire information supplement, real name authentication, etc., and thus the behavior barcode should be assigned to each node in the above order, wherein the assignment order of each behavior barcode is different because the order of each node is different.
The check rule is written into each node and the behavior bar code is distributed to each node, so that on one hand, each node can be guaranteed to contain the rule and the identification, consistency check can be performed by using the rule of each node, the check accuracy is guaranteed, on the other hand, each node can be guaranteed to have the operation identification, and subsequent identification and operation are facilitated.
And S2, verifying the service flow divided into a plurality of nodes to obtain a verification result.
In the embodiment of the invention, the service flow divided into a plurality of nodes is checked, the service flow can be judged to be a normal service flow or an abnormal service flow, a corresponding mode is selected according to the result of the check processing to process the service flow, the check processing belongs to the primary judgment of the whole service flow, and the accuracy of subsequent consistency check is improved.
Specifically, the obtaining a verification result according to the verification processing performed on the service flow divided into the plurality of nodes includes:
sequencing the business processes divided into a plurality of nodes according to the distribution sequence of the behavior bar codes;
judging whether the service loss time of the service flows of the sequenced nodes is larger than or equal to a preset service threshold value or not;
when the service loss time is greater than or equal to the service threshold, the check result is that the check fails;
and when the service loss time is smaller than the service threshold value, the verification result is that the verification is passed.
In detail, each node is allocated with a corresponding behavior bar code, the behavior bar codes are allocated at different time when each node is allocated with the corresponding behavior bar code, the allocation sequence of the behavior bar codes reflects the identification time of the service flow of the node at the moment, the service flows divided into a plurality of nodes are sequenced according to the allocation sequence of the behavior bar codes, and the sub-activities in the service flows can be sequenced according to the correct operation sequence.
When the service loss time is smaller than the service threshold, the check result is that the check is passed, and the consistency check of the normal flow is entered, that is, the operation of S3 is performed.
And S3, when the verification result is that the verification is passed, using the check rule to carry out consistency check on the business process to obtain a check result.
In the embodiment of the invention, when the verification result is that the verification is passed, the consistency check of the normal flow is carried out, and the consistency check is carried out on the service flow by using the preset check rule to obtain the check result.
The checking rules comprise data checking, limit checking, order state checking and the like, and the business processes are checked one by one according to the checking rules to obtain checking results.
For example, in the embodiment of the present invention, the business process is ordering by a trust plan, the ordering by the trust plan is divided into a plurality of sub-activities, which are ordering by a product, signing by a video surface, signing by an electronic device, and the like, the ordering data between the ordering by the product and the signing by the video surface is checked for consistency by using the check rule, and the ordering data when the signing by the video surface and the signing by the electronic device is also checked for consistency, so as to obtain a check result.
And S4, when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
In the embodiment of the invention, when the verification result is that the verification fails, the service flow is problematic, and the problem of the problematic node in the service flow needs to be distinguished and a corresponding solution is provided for solving the problem.
Specifically, the determining a problem node from the plurality of nodes and performing repair processing on the problem node includes:
judging the node of the service flow when the service loss time is greater than or equal to the service threshold value as a problem node;
acquiring the problem category of the problem node;
and acquiring a solution corresponding to the problem category from a preset solution library, and repairing the problem node by using the solution.
Wherein the problem categories include, but are not limited to, data problems, interface problems, and human problems.
Further, after determining a problem node from the plurality of nodes, the method further comprises:
and acquiring an alarm tag, and marking the problem node by using the alarm tag.
In detail, the alarm tag is used for performing alarm marking, and the alarm tag is used for marking the problem node and is used for reminding and warning that the node has a problem.
Specifically, after obtaining the inspection result, the method further includes:
transmitting the checking result to a data pushing engine according to a transmission protocol; or
And pushing the inspection result to the terminal equipment by utilizing the data pushing engine.
The preset terminal device is the terminal device corresponding to the business process, and the terminal device includes but is not limited to: mobile phones, computers, tablets, etc.
In the embodiment of the invention, the business process is divided into a plurality of nodes, the business process divided into a plurality of sub-processes taking an individual node as a standard is divided into a plurality of sub-processes, the verification processing is carried out on the business process divided into a plurality of nodes by taking the node as a unit, when the verification processing is passed, the consistency check is carried out on the business process by using the check rule to obtain the check result, when the verification processing is not passed, the problem node is determined, the position with the problem is quickly positioned, then the repair processing is carried out on the problem node, the consistency check is carried out on the repaired business process, the judgment and the check are carried out on the business process, the repair is carried out selectively according to the check result or the check rule is used for carrying out the check, the check accuracy is ensured, the check is carried out on the data of the business layer, and the consistency check efficiency is improved. Therefore, the method for checking the consistency of the service data can solve the problem of low efficiency of checking the consistency of the service data.
Fig. 2 is a functional block diagram of a service data consistency check apparatus according to an embodiment of the present invention.
The service data consistency check device 100 of the present invention can be installed in an electronic device. According to the implemented functions, the service data consistency check apparatus 100 may include a flow dividing module 101, a flow checking module 102, a consistency check module 103, and a problem node repairing module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the flow dividing module 101 is configured to acquire a service flow and divide the service flow into a plurality of nodes;
the flow verification module 102 is configured to perform verification processing on a service flow divided into a plurality of nodes to obtain a verification result;
the consistency check module 103 is configured to, when the check result is that the check is passed, perform consistency check on the service flow by using a check rule to obtain a check result;
the problem node repairing module 104 is configured to determine a problem node from the plurality of nodes, repair the problem node, and perform consistency check on the repaired service flow by using the check rule to obtain a check result, when the check result indicates that the check fails.
In detail, the specific implementation of each module of the service data consistency check apparatus 100 is as follows:
step one, acquiring a service flow, and dividing the service flow into a plurality of nodes.
In the embodiment of the present invention, the business process refers to a series of activities that are completed together to achieve a specific goal, and in the embodiment of the present invention, taking an APP order system as an example, the business process may be a full business process for ordering by a trust plan.
Specifically, the dividing the service flow into a plurality of nodes includes:
identifying a plurality of sub-activities in the business process;
and dividing the business flow into a plurality of nodes by taking the plurality of sub-activities as a division standard.
Wherein a sub-activity is a node.
In detail, the sub-activities are segmented activities, the business process can be finally completed only by jointly completing a plurality of sub-activities, the business process is divided into a plurality of nodes, each part of the multi-business process can be analyzed more finely, and the follow-up data consistency check can be better ensured by starting from part.
In the embodiment of the invention, the business process is the ordering of the trust plan, and a plurality of sub-activities in the ordering of the trust plan can be divided into sub-activities such as login, registration, personal information supplement, questionnaire information supplement, real-name authentication, asset certification supplement, product browsing, product ordering, video surface signing, electronic signing, contract stamp, asset viewing and the like.
Further, before dividing the business process into a plurality of nodes, the method further includes:
writing the check rule into each node according to a preset mapping relation between the node type and the check rule, and distributing a behavior bar code for indicating operation to each node.
In detail, the check rule is predefined, and in the embodiment of the present invention, the check feature may be data check, quota check, order status check, or the like.
And distributing a behavior bar code for each node according to the sequencing sequence of the nodes in the service process, wherein the behavior bar code can be used as an operation identifier of the service process and a certificate in the subsequent verification operation.
For example, in the order of the trust plan, each node should be login, registration, personal information supplement, questionnaire information supplement, real name authentication, etc., and thus the behavior barcode should be assigned to each node in the above order, wherein the assignment order of each behavior barcode is different because the order of each node is different.
The check rule is written into each node and the behavior bar code is distributed to each node, so that on one hand, each node can be guaranteed to contain the rule and the identification, consistency check can be performed by using the rule of each node, the check accuracy is guaranteed, on the other hand, each node can be guaranteed to have the operation identification, and subsequent identification and operation are facilitated.
And step two, verifying the service process divided into a plurality of nodes to obtain a verification result.
In the embodiment of the invention, the service flow divided into a plurality of nodes is checked, the service flow can be judged to be a normal service flow or an abnormal service flow, a corresponding mode is selected according to the result of the check processing to process the service flow, the check processing belongs to the primary judgment of the whole service flow, and the accuracy of subsequent consistency check is improved.
Specifically, the obtaining a verification result according to the verification processing performed on the service flow divided into the plurality of nodes includes:
sequencing the business processes divided into a plurality of nodes according to the distribution sequence of the behavior bar codes;
judging whether the service loss time of the service flows of the sequenced nodes is larger than or equal to a preset service threshold value or not;
when the service loss time is greater than or equal to the service threshold, the check result is that the check fails;
and when the service loss time is smaller than the service threshold value, the verification result is that the verification is passed.
In detail, each node is allocated with a corresponding behavior bar code, the behavior bar codes are allocated at different time when each node is allocated with the corresponding behavior bar code, the allocation sequence of the behavior bar codes reflects the identification time of the service flow of the node at the moment, the service flows divided into a plurality of nodes are sequenced according to the allocation sequence of the behavior bar codes, and the sub-activities in the service flows can be sequenced according to the correct operation sequence.
When the service loss time is smaller than the service threshold, the verification result is that the verification is passed, and the consistency check of the normal flow is entered, that is, the operation of the third step is performed.
And step three, when the verification result is that the verification is passed, performing consistency check on the service flow by using a check rule to obtain a check result.
In the embodiment of the invention, when the verification result is that the verification is passed, the consistency check of the normal flow is carried out, and the consistency check is carried out on the service flow by using the preset check rule to obtain the check result.
The checking rules comprise data checking, limit checking, order state checking and the like, and the business processes are checked one by one according to the checking rules to obtain checking results.
For example, in the embodiment of the present invention, the business process is ordering by a trust plan, the ordering by the trust plan is divided into a plurality of sub-activities, which are ordering by a product, signing by a video surface, signing by an electronic device, and the like, the ordering data between the ordering by the product and the signing by the video surface is checked for consistency by using the check rule, and the ordering data when the signing by the video surface and the signing by the electronic device is also checked for consistency, so as to obtain a check result.
And step four, when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
In the embodiment of the invention, when the verification result is that the verification fails, the service flow is problematic, and the problem of the problematic node in the service flow needs to be distinguished and a corresponding solution is provided for solving the problem.
Specifically, the determining a problem node from the plurality of nodes and performing repair processing on the problem node includes:
judging the node of the service flow when the service loss time is greater than or equal to the service threshold value as a problem node;
acquiring the problem category of the problem node;
and acquiring a solution corresponding to the problem category from a preset solution library, and repairing the problem node by using the solution.
Wherein the problem categories include, but are not limited to, data problems, interface problems, and human problems.
Further, after determining a problem node from the plurality of nodes, the method further comprises:
and acquiring an alarm tag, and marking the problem node by using the alarm tag.
In detail, the alarm tag is used for performing alarm marking, and the alarm tag is used for marking the problem node and is used for reminding and warning that the node has a problem.
Specifically, after obtaining the inspection result, the method further includes:
transmitting the checking result to a data pushing engine according to a transmission protocol; or
And pushing the inspection result to the terminal equipment by utilizing the data pushing engine.
The preset terminal device is the terminal device corresponding to the business process, and the terminal device includes but is not limited to: mobile phones, computers, tablets, etc.
In the embodiment of the invention, the business process is divided into a plurality of nodes, the business process divided into a plurality of sub-processes taking an individual node as a standard is divided into a plurality of sub-processes, the verification processing is carried out on the business process divided into a plurality of nodes by taking the node as a unit, when the verification processing is passed, the consistency check is carried out on the business process by using the check rule to obtain the check result, when the verification processing is not passed, the problem node is determined, the position with the problem is quickly positioned, then the repair processing is carried out on the problem node, the consistency check is carried out on the repaired business process, the judgment and the check are carried out on the business process, the repair is carried out selectively according to the check result or the check rule is used for carrying out the check, the check accuracy is ensured, the check is carried out on the data of the business layer, and the consistency check efficiency is improved. Therefore, the service data consistency checking device provided by the invention can solve the problem of low service data consistency checking efficiency.
Fig. 3 is a schematic structural diagram of an electronic device implementing a method for checking service data consistency according to an embodiment of the present invention.
The electronic device may include a processor 10, a memory 11, a communication interface 12 and a bus 13, and may further include a computer program, such as a service data consistency check program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used to store not only application software installed in the electronic device and various types of data, such as codes of a service data consistency check program, but also temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., service data consistency check programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication interface 12 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus 13 may be divided into an address bus, a data bus, a control bus, etc. The bus 13 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
Fig. 3 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 3 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the electronic device may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The service data consistency check program stored in the memory 11 of the electronic device is a combination of a plurality of instructions, and when running in the processor 10, can realize:
acquiring a service flow, and dividing the service flow into a plurality of nodes;
checking the service flow divided into a plurality of nodes to obtain a checking result;
when the verification result is that the verification is passed, performing consistency check on the service flow by using a check rule to obtain a check result;
and when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
acquiring a service flow, and dividing the service flow into a plurality of nodes;
checking the service flow divided into a plurality of nodes to obtain a checking result;
when the verification result is that the verification is passed, performing consistency check on the service flow by using a check rule to obtain a check result;
and when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for checking consistency of service data is characterized in that the method comprises the following steps:
acquiring a service flow, and dividing the service flow into a plurality of nodes;
checking the service flow divided into a plurality of nodes to obtain a checking result;
when the verification result is that the verification is passed, performing consistency check on the service flow by using a check rule to obtain a check result;
and when the verification result is that the verification fails, determining a problem node from the plurality of nodes, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
2. The method for checking consistency of service data according to claim 1, wherein the dividing the service flow into a plurality of nodes comprises:
identifying a plurality of sub-activities in the business process;
and dividing the business flow into a plurality of nodes by taking the plurality of sub-activities as a division standard.
3. The method for checking consistency of service data according to claim 1, wherein before the dividing the service flow into a plurality of nodes, the method further comprises:
writing the check rule into each node according to a preset mapping relation between the node type and the check rule, and distributing a behavior bar code for indicating operation to each node.
4. The method for checking consistency of service data according to claim 3, wherein the obtaining the check result according to the check processing of the service flow divided into the plurality of nodes comprises:
sequencing the business processes divided into a plurality of nodes according to the distribution sequence of the behavior bar codes;
judging whether the service loss time of the service flows of the sequenced nodes is larger than or equal to a preset service threshold value or not;
when the service loss time is greater than or equal to the service threshold, the check result is that the check fails;
and when the service loss time is smaller than the service threshold value, the verification result is that the verification is passed.
5. The method for checking consistency of service data according to claim 4, wherein the determining a problem node from the plurality of nodes and performing a repair process on the problem node comprises:
judging the node of the service flow when the service loss time is greater than or equal to the service threshold value as a problem node;
acquiring the problem category of the problem node;
and acquiring a solution corresponding to the problem category from a preset solution library, and repairing the problem node by using the solution.
6. The traffic data consistency checking method according to any one of claims 1 to 5, wherein after determining a problem node from the plurality of nodes, the method further comprises:
and acquiring an alarm tag, and marking the problem node by using the alarm tag.
7. The method for checking consistency of business data according to any one of claims 1 to 5, wherein after obtaining the checking result, the method further comprises:
transmitting the checking result to a data pushing engine according to a transmission protocol; or
And pushing the inspection result to the terminal equipment by utilizing the data pushing engine.
8. A service data consistency check device, characterized in that the device comprises:
the system comprises a flow dividing module, a flow dividing module and a flow judging module, wherein the flow dividing module is used for acquiring a service flow and dividing the service flow into a plurality of nodes;
the flow verification module is used for verifying the service flow divided into a plurality of nodes to obtain a verification result;
the consistency check module is used for carrying out consistency check on the service flow by using a check rule to obtain a check result when the check result is that the check is passed;
and the problem node repairing module is used for determining a problem node from the plurality of nodes when the verification result is that the verification fails, repairing the problem node, and performing consistency check on the repaired service flow by using the check rule to obtain a check result.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the business data consistency check method of any one of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the business data consistency checking method according to any one of claims 1 to 7.
CN202110718372.8A 2021-06-28 2021-06-28 Business data consistency checking method and device, electronic equipment and medium Pending CN113240351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110718372.8A CN113240351A (en) 2021-06-28 2021-06-28 Business data consistency checking method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110718372.8A CN113240351A (en) 2021-06-28 2021-06-28 Business data consistency checking method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN113240351A true CN113240351A (en) 2021-08-10

Family

ID=77140918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110718372.8A Pending CN113240351A (en) 2021-06-28 2021-06-28 Business data consistency checking method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113240351A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114037543A (en) * 2021-11-13 2022-02-11 北京优全智汇信息技术有限公司 Insurance claim settlement progress supervision system and supervision method
CN114186866A (en) * 2021-12-14 2022-03-15 发明之家(北京)科技有限公司 Verification method and system of business process based on block chain
CN115310870A (en) * 2022-09-29 2022-11-08 成都飞机工业(集团)有限责任公司 Aviation discrete manufacturing quality monitoring method, device, equipment, medium and product

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161243A1 (en) * 2009-12-28 2011-06-30 Frank Brunswig Consistency checks for business process data
CN109543942A (en) * 2018-10-16 2019-03-29 平安普惠企业管理有限公司 Data verification method, device, computer equipment and storage medium
WO2019062304A1 (en) * 2017-09-26 2019-04-04 上海点融信息科技有限责任公司 Method, device and system for managing computing resources of block chain node
CN109815013A (en) * 2019-01-02 2019-05-28 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium
CN112001792A (en) * 2020-07-09 2020-11-27 贝壳技术有限公司 Configuration information consistency detection method and device
CN112800095A (en) * 2021-04-13 2021-05-14 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium
CN112819631A (en) * 2021-02-10 2021-05-18 招联消费金融有限公司 Service data processing method and device, computer equipment and storage medium
CN112965986A (en) * 2021-03-30 2021-06-15 建信金融科技有限责任公司 Service consistency processing method, device, equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161243A1 (en) * 2009-12-28 2011-06-30 Frank Brunswig Consistency checks for business process data
WO2019062304A1 (en) * 2017-09-26 2019-04-04 上海点融信息科技有限责任公司 Method, device and system for managing computing resources of block chain node
CN109543942A (en) * 2018-10-16 2019-03-29 平安普惠企业管理有限公司 Data verification method, device, computer equipment and storage medium
CN109815013A (en) * 2019-01-02 2019-05-28 深圳壹账通智能科技有限公司 Business data processing method, device, computer equipment and storage medium
CN112001792A (en) * 2020-07-09 2020-11-27 贝壳技术有限公司 Configuration information consistency detection method and device
CN112819631A (en) * 2021-02-10 2021-05-18 招联消费金融有限公司 Service data processing method and device, computer equipment and storage medium
CN112965986A (en) * 2021-03-30 2021-06-15 建信金融科技有限责任公司 Service consistency processing method, device, equipment and storage medium
CN112800095A (en) * 2021-04-13 2021-05-14 腾讯科技(深圳)有限公司 Data processing method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114037543A (en) * 2021-11-13 2022-02-11 北京优全智汇信息技术有限公司 Insurance claim settlement progress supervision system and supervision method
CN114186866A (en) * 2021-12-14 2022-03-15 发明之家(北京)科技有限公司 Verification method and system of business process based on block chain
CN115310870A (en) * 2022-09-29 2022-11-08 成都飞机工业(集团)有限责任公司 Aviation discrete manufacturing quality monitoring method, device, equipment, medium and product

Similar Documents

Publication Publication Date Title
CN113240351A (en) Business data consistency checking method and device, electronic equipment and medium
CN111429121B (en) Block chain-based electronic ticket processing method, device, equipment and storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN112115145A (en) Data acquisition method and device, electronic equipment and storage medium
CN112396547B (en) Course recommendation method, device, equipment and medium based on unsupervised learning
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN113468049A (en) Test method, device, equipment and medium based on configurable interface
CN117193975A (en) Task scheduling method, device, equipment and storage medium
CN112256783A (en) Data export method and device, electronic equipment and storage medium
CN111985545A (en) Target data detection method, device, equipment and medium based on artificial intelligence
CN111985194A (en) Data storage method and device, electronic equipment and storage medium
CN114519084A (en) Block chain-based medical data inspection method, device, equipment and medium
CN115002062A (en) Message processing method, device, equipment and readable storage medium
CN113434542A (en) Data relation identification method and device, electronic equipment and storage medium
CN112685384A (en) Data migration method and device, electronic equipment and storage medium
CN112667244A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN113434397B (en) Task system testing method and device, electronic equipment and storage medium
CN115145870A (en) Method and device for positioning reason of failed task, electronic equipment and storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN113469649A (en) Project progress analysis method and device, electronic equipment and storage medium
CN113918296A (en) Model training task scheduling execution method and device, electronic equipment and storage medium
CN114897624A (en) Policy data merging method, device, equipment and storage medium
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN113342867A (en) Data distribution and management method and device, electronic equipment and readable storage medium
CN113377857A (en) Data distribution method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20230825

AD01 Patent right deemed abandoned