CN110659517A - Data verification method and device, computer equipment and storage medium - Google Patents

Data verification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110659517A
CN110659517A CN201910818618.1A CN201910818618A CN110659517A CN 110659517 A CN110659517 A CN 110659517A CN 201910818618 A CN201910818618 A CN 201910818618A CN 110659517 A CN110659517 A CN 110659517A
Authority
CN
China
Prior art keywords
node
verification
data
node data
target
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
CN201910818618.1A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910818618.1A priority Critical patent/CN110659517A/en
Publication of CN110659517A publication Critical patent/CN110659517A/en
Priority to PCT/CN2020/106175 priority patent/WO2021036681A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a data verification method, a data verification device, computer equipment and a storage medium. The method comprises the following steps: when detecting that node data corresponding to nodes in the service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data; obtaining a verification node corresponding to the target node, wherein the verification node is other nodes of which the node data in the service model changes along with the change of the target node data; acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node; verifying node data corresponding to the verifying node according to the reference node data to obtain a verification result, and finding the verifying node corresponding to the target node data only by identifying the target node, so that the verifying node data is verified, and the data verification efficiency is improved.

Description

Data verification method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data verification method and apparatus, a computer device, and a storage medium.
Background
With the rapid development of internet technology and computer technology, online transaction modes such as electronic commerce and the like appear. When online transaction is performed, node data in transaction services may change continuously with the transaction services, wherein one transaction service may correspond to a plurality of node data. When data of a certain node in a transaction service changes, data of other nodes corresponding to the transaction service also changes. Specifically, the computer device may perform data verification on the change condition of the node data according to the set data change rule, so as to ensure that the data change of each node is correct.
However, when the change situation of the node data is verified at present, the verification process is complicated.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data verification method, apparatus, computer device and storage medium, which can improve the efficiency of data verification.
A method of data validation, the method comprising:
when detecting that node data corresponding to nodes in a service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is another node of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
In one embodiment, the obtaining of the reference node data corresponding to the target node data includes:
acquiring a preset data change relation between a target node and a verification node;
calculating the change rate of the target node data according to the data change relation;
and acquiring reference node data corresponding to the target node data according to the change rate.
In one embodiment, the verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result includes:
when the reference node data is inconsistent with the verification node data, marking the verification node corresponding to the verification node data to obtain a marked verification node;
counting the number of the marked verification nodes;
and obtaining a verification result according to the number of the nodes.
In one embodiment, the method further comprises:
acquiring each node in the service model, and taking each node as a test node in sequence;
when detecting that the node data corresponding to the test node in the service model changes, acquiring other nodes with node data changes in the service model;
and taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
In one embodiment, the method further comprises:
acquiring an editing instruction, wherein the editing instruction comprises a test node identifier which is used for distinguishing different test nodes;
searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node;
and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
In one embodiment, the method further comprises:
acquiring a modification instruction for the verification node, wherein the modification instruction comprises modification node data;
extracting the modification node data in the modification instruction, and modifying the verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data;
and taking the modified verification node data as verification node data corresponding to the verification node.
A data verification apparatus, the apparatus comprising:
the target node data acquisition module is used for identifying the node with data change as a target node and identifying the node data corresponding to the target node as target node data when detecting that the node data corresponding to the node in the service model changes;
a verification node obtaining module, configured to obtain a verification node corresponding to the target node, where the verification node is another node in the service model whose node data changes with the target node data;
a reference node data obtaining module, configured to obtain reference node data corresponding to the target node data, where the reference node data is obtained according to a preset data change relationship between the target node and the verification node;
and the data verification module is used for verifying the verification node data according to the reference node data to obtain a verification result.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when detecting that node data corresponding to nodes in a service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is another node of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when detecting that node data corresponding to nodes in a service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is another node of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
According to the data verification method, the data verification device, the computer equipment and the storage medium, the computer equipment can directly obtain the reference node data corresponding to the target node data according to the preset data change relation between the target node and the verification, so that the efficiency of obtaining the reference node data is improved; the obtained verification nodes are other nodes of which the node data change along with the change of the target node data, the computer equipment does not need to sequentially detect the nodes in the service model one by one to determine whether the nodes of which the node data change exist, and the verification nodes corresponding to the target node data can be found only by identifying the target nodes, so that the verification node data corresponding to the verification nodes are verified, and the data verification efficiency is improved.
Drawings
FIG. 1 is a diagram of an example of an application of a data verification method;
FIG. 2 is a flow diagram illustrating a data verification method in accordance with one embodiment;
FIG. 3 is a flow diagram illustrating the acquisition of a verification node in one embodiment;
FIG. 4 is a block diagram showing the structure of a data verification apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data verification method provided by the application can be applied to the application environment shown in fig. 1. As shown in FIG. 1, the application environment includes a computer device 110. When detecting that the node data corresponding to the node in the service model changes, the computer device 110 may identify the node with the changed data as a target node, and identify the node data corresponding to the target node as target node data. The computer device 110 may obtain a verification node corresponding to the target node, where the verification node is another node in the service model whose node data changes along with the change of the target node data. The computer device 110 may obtain reference node data corresponding to the target node data, where the reference node data is obtained according to a preset data change relationship between the target node and the verification node. The computer device 110 may verify the verification node data corresponding to the verification node according to the reference node data, and obtain a verification result. The computer device 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and other devices.
In one embodiment, as shown in fig. 2, a data verification method is provided, which can be applied in a data configuration process, and includes the following steps:
step 202, when detecting that the node data corresponding to the node in the service model changes, identifying the node with the changed data as a target node, and identifying the node data corresponding to the target node as target node data.
The service model may be pre-established and used to record information about each node involved in the service flow, node data corresponding to each node, a front-back relationship between each node, and the like. For example, taking a business process as an example corresponding to an inventory, each node involved in the business process is a total inventory, a remaining inventory, an active inventory, and a sales volume, each node corresponding to each node is 100 total inventories, 50 remaining inventories, 200 active inventories, and 500 sales volumes, and the front-back relationship among the nodes may be that the total inventory is arranged at the first position; the residual stock is respectively connected with the total stock and the movable stock and arranged at the second position; the movable stock is respectively connected with the residual stock and the sales volume and arranged in a third place; the sales amount is arranged at the last position, and information related to the business process corresponding to the stock can be recorded in the business model.
The target node data is used to indicate the changed node data, and there may be one or more target node data. The target node may be configured to indicate a node corresponding to the changed node data, and when there is one target node data, there is also one corresponding target node; when there are a plurality of target node data, there are a plurality of corresponding target nodes.
When the node data corresponding to a certain node in the service model changes, the node data corresponding to other nodes in the service model can change along with the change of the node data. Specifically, node data corresponding to other nodes in the service model may change data according to the configured data change relationship. When the configuration data changes, the computer device may detect node data corresponding to each node included in the service model through a data detection tool. Specifically, the computer device may obtain, in real time, node data currently corresponding to each node, and compare the obtained current node data with the node data obtained at the previous time to obtain a comparison result. When the comparison result is that the current node data is different from the node data acquired at the previous moment, the computer device can detect that the node data corresponding to the node changes. The computer device may use the changed node data as target node data, and when there is a change in all of the plurality of node data, the computer device may use each of the node data having the changed data as the target node data. The computer device may find a node corresponding to the target node data and use the node as the target node.
And 204, acquiring a verification node corresponding to the target node, wherein the verification node is another node of which the node data in the service model changes along with the change of the target node data.
Data association exists between the verification nodes and the target nodes, and when the target node data in the target nodes are changed, the node data in the verification nodes corresponding to the target nodes can be changed accordingly. The number of verification nodes corresponding to one target node may be one, or may be multiple, and is not limited herein.
The service model comprises each node and node data corresponding to each node, wherein when the node data in one node changes, the node data of other nodes can change along with the change, and the node data of other nodes can also not change. When the target node data in the target node changes, the computer device may find the verification node corresponding to the target node according to the changed other node data.
For example, each node included in the business model is total inventory, active inventory, and sales volume, and the node data corresponding to each node is total inventory 100, active inventory 200, and sales volume 500, respectively, when the total inventory is increased by 50, the active inventory is decreased by 50, and the data corresponding to the sales volume is unchanged, so that when the total inventory is increased by 50, the data corresponding to the active inventory is changed, and therefore, when the target node is the total inventory, the corresponding verification node is the active inventory.
And step 206, acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node.
The computer device can store the set data change relationship between the target node and the verification node. Specifically, the user may set the data change relationship between the target node and the verification node through the computer device, for example, may set a data change ratio between the target node and the verification node.
The reference node data may be used to verify data after the node data corresponding to the node is changed when the target node data corresponding to the target node is changed. After obtaining the verification node corresponding to the target node, the computer device may obtain reference node data corresponding to the target node data from a preset data change between the target node and the verification node according to the target node data.
And 208, verifying the verification node data according to the reference node data to obtain a verification result.
After obtaining the verification node, the computer device may further obtain verification node data corresponding to the verification node. The computer device may verify the verification node data from the reference node data. Specifically, the computer device may verify a change of the verification node data to obtain a verification result.
In this embodiment, according to a preset data change relationship between the target node and the verification, the computer device may directly obtain reference node data corresponding to the target node data, so that the efficiency of obtaining the reference node data is improved; the obtained verification nodes are other nodes of which the node data change along with the change of the target node data, the computer equipment does not need to sequentially detect the nodes in the service model one by one to determine whether the nodes of which the node data change exist, and the verification nodes corresponding to the target node data can be found only by identifying the target nodes, so that the verification node data corresponding to the verification nodes are verified, and the data verification efficiency is improved.
In an embodiment, the provided data verification method may further include a process of acquiring reference node data, specifically including: acquiring a preset data change relation between a target node and a verification node; calculating the change rate of the target node data according to the data change relation; and acquiring reference node data corresponding to the target node data according to the change rate.
The computer device can store preset data change relations between different target nodes and the verification nodes. The computer device may sequentially use each node included in the service model as a target node, and respectively obtain a data change relationship between each target node and the verification node.
The rate of change of the target node data may be expressed as a proportion of data change between the target node and the verification node. For example, the target node and the corresponding target node data acquired by the computer device are 50 pieces of total inventory increase, and the preset data change ratio between the target node and the verification node is 1: -1, the verification node and verification node data corresponding to the target node and target node data are active inventory 100 pieces, the computer device may change the ratio 1: and 1, obtaining reference node data corresponding to the target node data as active inventory reduction of 50 pieces.
In another embodiment, the provided data verification method may further include a process of verifying the verification node data to obtain a verification result, specifically including: when the reference node data is inconsistent with the verification node data, marking the verification node corresponding to the verification node data to obtain a marked verification node; counting the number of the marked verification nodes; and obtaining a verification result according to the number of the nodes.
The computer device may compare the reference node data with the verification node data and obtain a comparison result. When the comparison result obtained by the computer equipment is that the reference node data is consistent with the verification node data, the computer equipment can obtain a verification result that the verification node data passes the verification; when the comparison result obtained by the computer device is that the reference node data is inconsistent with the verification node data, the computer device may search for the verification node corresponding to the verification node data, and mark the verification node to obtain the marked verification node.
Since there may be a plurality of acquired verification nodes, there may also be a plurality of marked verification nodes. After obtaining the marked verification nodes, the computer device may count the number of nodes of the marked verification nodes. Specifically, the computer device may count the number of nodes by using a counter, the computer device marks one verification node, the counter increments by one, and the computer device may count the number of nodes of the marked verification node according to data in the counter.
The computer equipment can obtain a verification result according to the number of the nodes, wherein the verification result can comprise a result that the verification is qualified and a result that the verification is not qualified. The computer device may compare the counted number of nodes of the marked verification node with a number threshold, thereby obtaining a verification result according to the comparison result. The quantity threshold may be a specific preset value, for example, the quantity threshold may be a value of 1, 2, 5, 6, 7, 10, etc., and is not limited herein. After the computer equipment compares the number of the nodes with the number threshold, when the obtained comparison result is that the number of the nodes is greater than the number threshold, the computer equipment can obtain a verification result which is not qualified in verification; when the obtained comparison result is that the number of the nodes is not greater than the number threshold, the computer device can obtain a verification result which is qualified in verification.
In this embodiment, when the reference node data is inconsistent with the verification node data, the computer device obtains a marked verification node by marking the verification node corresponding to the verification node data, counts the number of nodes of the marked verification node, and obtains a verification result according to the number of nodes. The computer equipment marks the verification nodes and obtains the verification result according to the number of the marked verification nodes, so that the accuracy of the obtained verification result can be improved.
In one embodiment, after the computer device performs one-to-one verification on each node, the error rates of all nodes in the service model can be obtained according to the verification result. Specifically, the computer device may obtain the number of marked nodes and the number of unmarked nodes, respectively, and calculate the error rate of the nodes in the service model. When the error rate calculated by the computer device is greater than the preset value, the computer device may sequentially display the marked erroneous nodes in the interface. The error rate of the nodes in the service model is calculated by the computer equipment, so that a user can conveniently process the error nodes, and the accuracy of data verification can be improved.
In an embodiment, the provided data verification method may further include a process of searching for a verification node, and the specific steps include:
step 302, obtaining each node in the service model, and sequentially using each node as a test node.
The service model may include a plurality of nodes, and the test node may be a node in the service model. The computer device may obtain the nodes included in the business model. Taking the example that the business model is a business process corresponding to inventory, the involved nodes are total inventory, residual inventory, active inventory and sales volume, respectively, and the computer device can acquire each node in the business model.
The computer device may sequentially use the acquired nodes as test nodes. For example, when each node acquired by the computer device is total inventory, remaining inventory, active inventory, and sales volume, the computer device may use the total inventory as a test node, the remaining inventory as a test node, the active inventory as a test node, and the sales volume as a test node.
And 304, when detecting that the node data corresponding to the test node in the service model changes, acquiring other nodes with node data changes in the service model.
The computer device can detect the node data corresponding to the test node, and when the node data corresponding to the test node is detected to be changed, the computer device can search other nodes with the changed node data in the service model. Specifically, when the node data corresponding to the test node changes, the computer device may detect the node data corresponding to each node in the service model, and mark the node corresponding to the changed node data, so as to obtain another node in the service model where the node data changes. For example, each node included in the service model is a total inventory, an active inventory, and a sales volume, the computer device detects that the node data corresponding to the total inventory has changed, and the computer device can detect the node data corresponding to the active inventory and the node data corresponding to the sales volume, so that the node data corresponding to the active inventory has changed, the node data corresponding to the sales volume has also changed, and the computer device can obtain the active inventory and the sales volume of which the node data has changed.
And step 306, taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
The verification node is used for representing other nodes of the business model, wherein the nodes are changed when the target node data are changed. When the computer device acquires that the node data corresponding to the test node changes, and after other nodes in the service model where the node data changes, the acquired node data corresponding to the other nodes change according to the change of the node data corresponding to the test node, so that the node data corresponding to the other nodes in the service model changes when the node data corresponding to the test node changes, and the computer device can use the other nodes in which the node data changes as verification nodes corresponding to the test node.
In this embodiment, the computer device sequentially uses each node as a test node by obtaining each node included in the service model, obtains other nodes in the service model where node data change occurs when detecting that node data corresponding to the test node in the service model changes, and uses the other nodes in the service model where node data change occurs as verification nodes corresponding to the test node. When the node data corresponding to the test node changes, the computer equipment searches other nodes with node data changes in the service model, and uses the other nodes as verification nodes corresponding to the test node, so that the obtained verification nodes are other nodes with node data changes in the service model caused by the change of the node data corresponding to the test node, the corresponding relation between the test node and the verification nodes is established, the verification nodes can be quickly searched, the verification node data corresponding to the verification nodes is verified, and the data verification efficiency is improved.
In one embodiment, a data validation method provided may further include a process of building a business model. The computer device can obtain each node input by a user, respectively obtain the priority of each input node, and then sort each node according to the priority of each node, thereby obtaining the service model. After the computer device obtains each node input by the user, the computer device can find the priority corresponding to each node according to the stored corresponding relationship between each node and the priority, so that each node is sorted. Each node after the sorting may have a main node and a plurality of child nodes.
And the computer equipment can edit the established service model according to the model editing instruction. Specifically, when the computer device detects a model editing instruction, the computer device may extract a model identifier in the model editing instruction, where the model identifier is used to distinguish different business models. The computer device can find the corresponding service model according to the model identification, so that the found service model is edited. The model editing instruction may further include a specific node for the computer device to edit the node. For example, the computer device finds that the service model corresponding to the model identifier is the service model a according to the model editing instruction, then the computer device may extract the node in the model editing instruction as the total inventory, and if the editing instruction is increased, the computer device may increase a node of the total inventory in the service model a, thereby completing the editing of the service model. And the computer equipment edits the service model according to the model editing instruction, and then verifies the nodes in sequence according to the sequence of each node in the edited service model, so that the verification efficiency is improved.
In an embodiment, the provided data verification method may further include a process of editing the test node, where the specific process includes: acquiring an editing instruction, wherein the editing instruction comprises a test node identifier which is used for distinguishing different test nodes; searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node; and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
The computer device can edit the verification node corresponding to the test node. Specifically, the computer device may obtain an editing instruction, where the editing instruction may be generated by a user operating the computer device. For example, a user may trigger a touch display screen in the computer device, causing the computer device to generate editing instructions; the user may also generate editing instructions, etc. by triggering buttons in the computer device, which is not limited herein. The edit instruction may include a test node identifier for distinguishing different test nodes. The computer device may extract the test node identifier in the edit instruction, and find the corresponding test node according to the test node identifier, and the computer device may use the found test node as the target test node.
The computer device can establish the corresponding relation between the target test node and other nodes in the service model according to the editing instruction. Specifically, the computer device may use other nodes in the service model as verification nodes corresponding to the target test node according to the edit instruction, that is, establish a correspondence between the target test node and other nodes in the service model. For example, the service model is a service flow of inventory, and each node acquired by the computer device is a total inventory, a remaining inventory, an active inventory, and a sales volume, respectively, where the total inventory is a target test node, and a verification node corresponding to the total inventory has an active inventory and a sales volume, and after receiving the edit instruction, the computer device may edit the node of the remaining inventory into the verification node corresponding to the total inventory according to the edit instruction.
In this embodiment, the computer device establishes a corresponding relationship between a target test node and a verification node according to an edit instruction by obtaining the edit instruction, where the edit instruction includes a test node identifier, and the test node identifier is used to distinguish different test nodes, search for a test node corresponding to the test node identifier, and use the test node corresponding to the test node identifier as the target test node. The computer equipment establishes the corresponding relation between the target test node and the verification node according to the editing instruction, so that the accuracy of the verification node corresponding to the obtained target test node can be improved, and the accuracy of data verification is further improved.
In an embodiment, the provided data verification method may further include a process of modifying the verification node, where the specific process includes: acquiring a modification instruction for the verification node, wherein the modification instruction comprises modification node data; extracting modification node data in the modification instruction, and modifying verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data; and taking the modified verification node data as verification node data corresponding to the verification node.
The computer device may make modifications to the verification node. Specifically, the computer device may obtain a modification instruction for the verification node, and modify the verification node data corresponding to the verification node according to the modification instruction. Wherein, the modification instruction can be generated by the operation of the computer device by the user. For example, a user may trigger a touch display screen in the computer device, causing the computer device to generate a modification instruction; the user may also generate modification instructions, etc. by triggering a button in the computer device, which is not limited herein. The modification instruction may include modification node data, and the computer device may modify the verification node data according to the modification node data.
The computer device may extract the modified node data in the modification instruction and modify the verification node data according to the modified node data. For example, the modified node data extracted by the computer device is obtained by modifying 100 pieces of node data in the total inventory of the verification nodes into 200 pieces, and the computer device may modify 200 pieces of node data in the total inventory according to the modified node data.
In this embodiment, the computer device obtains a modification instruction for the verification node, where the modification instruction includes modification node data, extracts the modification node data in the modification instruction, modifies the verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data, and uses the modified verification node data as the verification node data corresponding to the verification node. The computer equipment can modify the verification node data according to the modification instruction, and can update the verification node data corresponding to the verification node in real time, so that the accuracy of data verification is improved.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a data verification apparatus including: a target node data acquisition module 410, a verification node acquisition module 420, a reference node data acquisition module 430, and a data verification module 440, wherein:
the target node data obtaining module 410 is configured to, when it is detected that node data corresponding to a node in the service model changes, identify the node with the changed data as a target node, and identify node data corresponding to the target node as target node data.
And the verification node obtaining module 420 is configured to obtain a verification node corresponding to the target node, where the verification node is another node in the service model whose node data changes with the target node data.
And a reference node data obtaining module 430, configured to obtain reference node data corresponding to the target node data, where the reference node data is obtained according to a preset data change relationship between the target node and the verification node.
And the data verification module 440 is configured to verify the verification node data according to the reference node data to obtain a verification result.
In one embodiment, the reference node data obtaining module 430 is further configured to obtain a preset data change relationship between the target node and the verification node; calculating the change rate of the target node data according to the data change relation; and acquiring reference node data corresponding to the target node data according to the change rate.
In one embodiment, the data verification module 440 is further configured to mark a verification node corresponding to the verification node data when the reference node data is inconsistent with the verification node data, so as to obtain a marked verification node; counting the number of the marked verification nodes; and obtaining a verification result according to the number of the nodes.
In one embodiment, the verification node obtaining module 420 is further configured to obtain each node in the service model, and sequentially use each node as a test node; when detecting that node data corresponding to a test node in a service model changes, acquiring other nodes with the node data changes in the service model; and taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
In an embodiment, the verification node obtaining module 420 is further configured to obtain an editing instruction, where the editing instruction includes a test node identifier, and the test node identifier is used to distinguish different test nodes; searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node; and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
In an embodiment, the provided data verification apparatus may further include a verification node data obtaining module, configured to obtain a modification instruction for the verification node, where the modification instruction includes modification node data; extracting modification node data in the modification instruction, and modifying verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data; and taking the modified verification node data as verification node data corresponding to the verification node.
For the specific definition of the verification device, reference may be made to the above definition of the verification method, which is not described herein again. The modules in the verification device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of authentication. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
when detecting that node data corresponding to nodes in the service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is other nodes of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a preset data change relation between a target node and a verification node; calculating the change rate of the target node data according to the data change relation; and acquiring reference node data corresponding to the target node data according to the change rate.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the reference node data is inconsistent with the verification node data, marking the verification node corresponding to the verification node data to obtain a marked verification node; counting the number of the marked verification nodes; and obtaining a verification result according to the number of the nodes.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring each node in a service model, and taking each node as a test node in sequence; when detecting that node data corresponding to a test node in a service model changes, acquiring other nodes with the node data changes in the service model; and taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring an editing instruction, wherein the editing instruction comprises a test node identifier which is used for distinguishing different test nodes; searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node; and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a modification instruction for the verification node, wherein the modification instruction comprises modification node data; extracting modification node data in the modification instruction, and modifying verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data; and taking the modified verification node data as verification node data corresponding to the verification node.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when detecting that node data corresponding to nodes in the service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is other nodes of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a preset data change relation between a target node and a verification node; calculating the change rate of the target node data according to the data change relation; and acquiring reference node data corresponding to the target node data according to the change rate.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the reference node data is inconsistent with the verification node data, marking the verification node corresponding to the verification node data to obtain a marked verification node; counting the number of the marked verification nodes; and obtaining a verification result according to the number of the nodes.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring each node in a service model, and taking each node as a test node in sequence; when detecting that node data corresponding to a test node in a service model changes, acquiring other nodes with the node data changes in the service model; and taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring an editing instruction, wherein the editing instruction comprises a test node identifier which is used for distinguishing different test nodes; searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node; and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a modification instruction for the verification node, wherein the modification instruction comprises modification node data; extracting modification node data in the modification instruction, and modifying verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data; and taking the modified verification node data as verification node data corresponding to the verification node.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of data validation, the method comprising:
when detecting that node data corresponding to nodes in a service model change, identifying the nodes with the changed data as target nodes, and identifying the node data corresponding to the target nodes as target node data;
obtaining a verification node corresponding to the target node, wherein the verification node is another node of which the node data in the service model changes along with the change of the target node data;
acquiring reference node data corresponding to the target node data, wherein the reference node data is obtained according to a preset data change relation between the target node and the verification node;
and verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result.
2. The method of claim 1, wherein the obtaining reference node data corresponding to the target node data comprises:
acquiring a preset data change relation between a target node and a verification node;
calculating the change rate of the target node data according to the data change relation;
and acquiring reference node data corresponding to the target node data according to the change rate.
3. The method according to claim 1, wherein verifying the verification node data corresponding to the verification node according to the reference node data to obtain a verification result comprises:
when the reference node data is inconsistent with the verification node data, marking the verification node corresponding to the verification node data to obtain a marked verification node;
counting the number of the marked verification nodes;
and obtaining a verification result according to the number of the nodes.
4. The method of claim 1, further comprising:
acquiring each node in the service model, and taking each node as a test node in sequence;
when detecting that the node data corresponding to the test node in the service model changes, acquiring other nodes with node data changes in the service model;
and taking other nodes with node data change in the service model as verification nodes corresponding to the test nodes.
5. The method of claim 4, further comprising:
acquiring an editing instruction, wherein the editing instruction comprises a test node identifier which is used for distinguishing different test nodes;
searching a test node corresponding to the test node identification, and taking the test node corresponding to the test node identification as a target test node;
and establishing a corresponding relation between the target test node and other nodes in the service model according to the editing instruction.
6. The method of claim 1, further comprising:
acquiring a modification instruction for the verification node, wherein the modification instruction comprises modification node data;
extracting the modification node data in the modification instruction, and modifying the verification node data corresponding to the verification node according to the modification node data to obtain modified verification node data;
and taking the modified verification node data as verification node data corresponding to the verification node.
7. A data verification apparatus, the apparatus comprising:
the target node data acquisition module is used for identifying the node with data change as a target node and identifying the node data corresponding to the target node as target node data when detecting that the node data corresponding to the node in the service model changes;
a verification node obtaining module, configured to obtain a verification node corresponding to the target node, where the verification node is another node in the service model whose node data changes with the target node data;
a reference node data obtaining module, configured to obtain reference node data corresponding to the target node data, where the reference node data is obtained according to a preset data change relationship between the target node and the verification node;
and the data verification module is used for verifying the verification node data according to the reference node data to obtain a verification result.
8. The apparatus according to claim 7, wherein the reference node data obtaining module is further configured to obtain a preset data change relationship between the target node and the verification node; calculating the change rate of the target node data according to the data change relation; and acquiring reference node data corresponding to the target node data according to the change rate.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201910818618.1A 2019-08-30 2019-08-30 Data verification method and device, computer equipment and storage medium Pending CN110659517A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910818618.1A CN110659517A (en) 2019-08-30 2019-08-30 Data verification method and device, computer equipment and storage medium
PCT/CN2020/106175 WO2021036681A1 (en) 2019-08-30 2020-07-31 Data verification method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910818618.1A CN110659517A (en) 2019-08-30 2019-08-30 Data verification method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110659517A true CN110659517A (en) 2020-01-07

Family

ID=69036847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910818618.1A Pending CN110659517A (en) 2019-08-30 2019-08-30 Data verification method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110659517A (en)
WO (1) WO2021036681A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036681A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data verification method and apparatus, computer device and storage medium
CN113114675A (en) * 2021-04-13 2021-07-13 珠海市鸿瑞信息技术股份有限公司 Safety audit system and method based on industrial control

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10853364B2 (en) * 2016-09-28 2020-12-01 Microsoft Technology Licensing, Llc Direct table association in in-memory databases
CN108428075A (en) * 2017-02-13 2018-08-21 菜鸟智能物流控股有限公司 Inventory information updating method and device
CN108416656B (en) * 2018-03-12 2021-07-13 上海哔哩哔哩科技有限公司 High-availability inventory management method, server and high-availability inventory management system
CN108763474B (en) * 2018-05-29 2021-10-22 中国建设银行股份有限公司 Method, device and storage medium for acquiring transaction correlation and executing regression test
CN109376993A (en) * 2018-09-18 2019-02-22 深圳壹账通智能科技有限公司 Flow verification method, apparatus, computer equipment and storage medium
CN110659517A (en) * 2019-08-30 2020-01-07 深圳壹账通智能科技有限公司 Data verification method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036681A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data verification method and apparatus, computer device and storage medium
CN113114675A (en) * 2021-04-13 2021-07-13 珠海市鸿瑞信息技术股份有限公司 Safety audit system and method based on industrial control

Also Published As

Publication number Publication date
WO2021036681A1 (en) 2021-03-04

Similar Documents

Publication Publication Date Title
CN109510737B (en) Protocol interface testing method and device, computer equipment and storage medium
CN106201288B (en) A kind of storage method of finger print information, device and mobile terminal
JP6047463B2 (en) Evaluation apparatus and method for evaluating security threats
CN109472213A (en) Palm grain identification method, device, computer equipment and storage medium
CN109766483B (en) Regular expression generation method, device, computer equipment and storage medium
CN109783365A (en) Automated testing method, device, computer equipment and storage medium
CN110659517A (en) Data verification method and device, computer equipment and storage medium
CN111026647A (en) Code coverage rate obtaining method and device, computer equipment and storage medium
CN106776757B (en) Method and device for indicating user to complete online banking operation
WO2019153978A1 (en) Terminal fingerprint test method, apparatus, computer device, and storage medium
CN108921459B (en) Index generation method and device, computer equipment and storage medium
CN113468017A (en) Online service state detection method applied to block chain and service server
CN116136950B (en) Chip verification method, device, system, electronic equipment and storage medium
CN110503296B (en) Test method, test device, computer equipment and storage medium
CN111898035A (en) Data processing strategy configuration method and device based on Internet of things and computer equipment
CN112529218A (en) Building safety detection method and system based on correlation analysis
CN109542947B (en) Data statistical method, device, computer equipment and storage medium
CN110750771A (en) Login authentication method and device, computer equipment and storage medium
CN114490415A (en) Service testing method, computer device, storage medium, and computer program product
CN110177006B (en) Node testing method and device based on interface prediction model
CN109359282B (en) List data import method and device, computer equipment and storage medium
CN110647452A (en) Test method, test device, computer equipment and storage medium
CN109471840B (en) File viewing method and device, computer equipment and storage medium
CN109299300B (en) Method and device for generating inventory subdirectories, computer equipment and storage medium
CN111339317A (en) User registration identification method and device, computer equipment and 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