CN114331661A - Data verification method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114331661A
CN114331661A CN202210032651.3A CN202210032651A CN114331661A CN 114331661 A CN114331661 A CN 114331661A CN 202210032651 A CN202210032651 A CN 202210032651A CN 114331661 A CN114331661 A CN 114331661A
Authority
CN
China
Prior art keywords
falling
fingerprint
power equal
request
accounting
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
CN202210032651.3A
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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210032651.3A priority Critical patent/CN114331661A/en
Publication of CN114331661A publication Critical patent/CN114331661A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Collating Specific Patterns (AREA)

Abstract

The invention relates to the technical field of artificial intelligence, and provides a data verification method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring a single adjustment request and a plurality of single adjustment elements; generating a tone fingerprint based on the plurality of tone elements; inquiring a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request; when the first falling single power equal table is inquired, when the order adjusting fingerprint is consistent with the request fingerprint in the first falling single power equal table, the type of an occupier preset in the first falling single power equal table is identified; and checking the first idempotent falling idempotent based on a preset occupation type, and returning a checking result. The invention increases the request fingerprint and the occupation party field in the first falling single power equal table, and quickly returns the verification result for transaction occupation or single adjustment occupation according to the power equal table, thereby improving the verification efficiency.

Description

Data verification method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a data verification method, a data verification device, electronic equipment and a storage medium.
Background
At present, after most of business of a company occurs, an accounting system is called to complete accounting operation, when the accounting system or an accounting base is abnormal, a transaction state is abnormal, a large number of transactions in timeout processing occur, and at the moment, an upstream system initiates bill-adjusting inquiry to clarify an accounting state.
However, when the prior art performs order-adjusting query to clarify the accounting state, only the record in the accounting base which is already settled and is in the final state can be subjected to explicit result return, and no settlement record exists in the accounting base, or the records in the accounting base which are successfully settled and are not in the final state are all returned, so that manual offline confirmation of the accounting state is required, and the data checking efficiency and accuracy are low.
Therefore, it is necessary to provide a method for checking data rapidly and accurately.
Disclosure of Invention
In view of the above, there is a need for a data verification method, apparatus, electronic device and storage medium, which can increase verification efficiency by adding a request fingerprint and an owner field in a first power-down table, and quickly returning a verification result for transaction occupation or single-order occupation according to the power-down table.
A first aspect of the present invention provides a data verification method, the method comprising:
analyzing the received request to be checked to obtain a single adjusting request and a plurality of single adjusting elements;
generating a tone fingerprint based on the plurality of tone elements;
inquiring a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request;
when a first falling order power equal table corresponding to the system number and the request serial number is inquired in the preset database, judging whether the order transferring fingerprint is consistent with a request fingerprint in the first falling order power equal table or not;
when the order-adjusting fingerprint is consistent with the request fingerprint in the first falling single power equal table, identifying the type of an occupier preset in the first falling single power equal table;
and checking the first falling single power idempotent based on the preset occupation type in the first falling single power idempotent, and returning a checking result.
Optionally, the generating a tone fingerprint based on the plurality of tone elements comprises:
converting the plurality of key elements into character strings, and extracting key fields from the character strings;
and encrypting the character strings by adopting a preset encryption algorithm according to a preset sequencing rule to generate a tone matching fingerprint.
Optionally, the determining whether the monotone fingerprint is consistent with the request fingerprint in the first power of falling idempotent comprises:
decrypting the tone modulation fingerprint by adopting a preset decryption algorithm to obtain a target fingerprint;
matching the target fingerprint with a request fingerprint in the first power-of-falling table;
determining that the monotone fingerprint is consistent with a request fingerprint in the first power of falling idempotent when the target fingerprint completely matches the request fingerprint in the first power of falling idempotent; or
Determining that the monotone fingerprint does not correspond to a request fingerprint in the first power of falling table when the target fingerprint does not completely match the request fingerprint in the first power of falling table.
Optionally, the identifying the type of the preset occupant in the first falling-single power equal table includes:
extracting an occupant field from the first falling single power equal table;
determining a preset occupant type based on the occupant field.
Optionally, the verifying the first falling single power equal table based on an occupant type preset in the first falling single power equal table, and returning a verification result includes:
when the preset occupier in the first falling single power equal table is not the type of the order-adjusting occupier, inquiring the accounting state in the first falling single power equal table;
when the accounting state in the first falling single power equal table is successful, determining that the checking result of the first falling single power equal table is successful in accounting; or
When the accounting state in the first falling single power equal table is failure, inquiring the accounting power equal table in the first falling single power equal table, when the accounting power equal table is inquired in the first falling single power equal table, identifying the occupation type in the accounting power equal table, and when the occupation type in the accounting power equal table is a modulation occupation type, returning an accounting result that the accounting of the first falling single power equal table is failure; or when the occupier type in the accounting power list table is not the order-adjusting occupier type, the returned check result shows that the accounting of the first order-falling power list table is successful.
Optionally, the querying an accounting power-equality table in the first falling-single power-equality table further comprises:
when the first falling single power-equal table does not inquire an accounting power-equal table, constructing a second registered accounting power-equal table;
when the second registration accounting power table is detected to be successfully constructed, the returned check result is the first single-falling power table accounting failure; or
And when detecting that the second registered accounting power equal table is failed to be constructed, returning a verification result that the first falling single power equal table is not processed.
Optionally, the querying a first idempotent power-of-falling table in a preset database according to the system number and the request sequence number of the order-changing request includes:
when a first falling single power equal table corresponding to the system number and the request serial number is not inquired in the preset database, a second falling single power equal table is constructed;
when the second drop single power equal table is successfully constructed, a first registration accounting power equal table is constructed, and when the first registration accounting power equal table is successfully constructed, a returned verification result is that the accounting of the first drop single power equal table fails; or
And when the second falling single power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed, or when the first registered accounting power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed.
A second aspect of the present invention provides a data verification apparatus, the apparatus comprising:
the analysis module is used for analyzing the received request to be checked to obtain a single adjusting request and a plurality of single adjusting elements;
a generation module for generating a tone fingerprint based on the plurality of tone elements;
the query module is used for querying a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request;
the judging module is used for judging whether the order transferring fingerprint is consistent with the request fingerprint in the first falling single power equal table or not when the first falling single power equal table corresponding to the system number and the request serial number is inquired in the preset database;
the identification module is used for identifying the type of an occupant preset in the first falling order power table when the order transfer fingerprint is consistent with the request fingerprint in the first falling order power table;
and the verification module is used for verifying the first falling single power table based on the preset occupation type in the first falling single power table and returning a verification result.
A third aspect of the invention provides an electronic device comprising a processor and a memory, the processor being configured to implement the data verification method when executing a computer program stored in the memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the data verification method.
In summary, according to the data verification method, the data verification device, the electronic device, and the storage medium of the present invention, the order-adjusting fingerprint is generated based on the plurality of the order-adjusting elements, and in the generation of the order-adjusting fingerprint according to the plurality of the order-adjusting elements, the order-adjusting fingerprint is generated by encrypting the plurality of the order-adjusting elements, so that the security of the order-adjusting fingerprint is ensured. When a first drop power equal table corresponding to the system number and the request serial number is inquired in the preset database, whether the order transferring fingerprint is consistent with the request fingerprint in the first drop power equal table or not is judged, the fact that the first drop power equal table and the drop power equal table in the order transferring request are the same can be rapidly verified, and the billing accuracy of the order transferring interface is enhanced. When the order matching fingerprint is consistent with the request fingerprint in the first falling single power equal table, the preset occupier type in the first falling single power equal table is identified, the first falling single power equal table is verified based on the preset occupier type in the first falling single power equal table, a verification result is returned, the first falling single power equal table is added with the registered transaction accounting fingerprint information and the occupier field, the registered accounting power equal table is added in the accounting transaction, meanwhile, the occupier field is added in the registered accounting power equal table, the power equal table can be rapidly determined to be transaction occupation and order matching occupation, the verification result of accounting failure is returned, and the verification efficiency is improved.
Drawings
Fig. 1 is a flowchart of a data verification method according to an embodiment of the present invention.
Fig. 2 is a structural diagram of a data verification apparatus according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Example one
Fig. 1 is a flowchart of a data verification method according to an embodiment of the present invention.
In this embodiment, the data verification method may be applied to an electronic device, and for an electronic device that needs to perform data verification, the data verification function provided by the method of the present invention may be directly integrated on the electronic device, or may be run in the electronic device in the form of a Software Development Kit (SDK).
The embodiment of the invention can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning, deep learning and the like.
As shown in fig. 1, the data verification method specifically includes the following steps, and the order of the steps in the flowchart may be changed and some steps may be omitted according to different requirements.
And S11, analyzing the received request to be checked, and acquiring a menu adjusting request and a plurality of menu adjusting elements.
In this embodiment, when performing data verification, a user initiates a data verification request to a server through a client, specifically, the client may be a smart phone, an IPAD, or other existing intelligent devices, the server may be a data verification subsystem, and during the data verification, for example, the client may send the data verification request to the data verification subsystem, and the data verification subsystem is configured to receive the data verification request sent by the client.
In this embodiment, when the server receives the data verification request, the data verification request is analyzed to obtain a reconciliation request and a plurality of reconciliation elements, specifically, the reconciliation request includes a system number and a request sequence number, the reconciliation elements refer to specific elements in the reconciliation, for example, in an accounting record completed by an accounting system after a company service occurs, the reconciliation elements may be transaction information, roll-out roll-in record, user information and other information recorded by the accounting system in the accounting record.
S12, generating a tone fingerprint based on the plurality of tone elements.
In an optional embodiment, the generating a tone fingerprint based on the plurality of tone elements comprises:
converting the plurality of key elements into character strings, and extracting key fields from the character strings;
and encrypting the character strings by adopting a preset encryption algorithm according to a preset sequencing rule to generate a tone matching fingerprint.
In this embodiment, the key field refers to key billing information in a plurality of tuning elements.
In this embodiment, an encryption algorithm may be preset, and specifically, the preset encryption algorithm may be: other existing encryption algorithms such as a symmetric encryption algorithm, an asymmetric encryption algorithm, a DES encryption algorithm, and the like.
In this embodiment, the preset ordering rule means that the predetermined fixed order may be adopted for ordering.
In this embodiment, in generating the order adjustment fingerprint according to the multiple order adjustment elements, the security of the order adjustment fingerprint is ensured by encrypting the multiple order adjustment elements and then generating the order adjustment fingerprint.
And S13, inquiring a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request.
In the embodiment, the idempotent is the protection against the repetition, so that the same transaction can only have one processing result finally, and the conditions that the order adjustment fails, the real-time transaction accounting succeeds, and the processing succeeds after the upstream order adjustment fails cannot occur are ensured.
In this embodiment, in order to distinguish other power tables such as the falling order power table and the billing power table, the system number and the request serial number in the order adjustment request are determined as a unique index, and the first falling order power table is queried through the unique index.
In this embodiment, the query of the first falling single power equal table is performed to determine whether the first falling single power equal table in the order adjustment request falls into a preset database, and when the first falling single power equal table is queried, the first falling single power equal table is determined to fall into the preset database; and when the first falling-order power table is not inquired, determining that the first falling-order power table does not fall into a preset database, possibly in a transaction state, and failing to fall into the list.
It is emphasized that, in order to further ensure the privacy and security of the falling single power equal table in the predetermined database, the predetermined database may also be stored in a node of a block chain.
Further, the querying a first idempotent power-of-falling table in a preset database according to the system number and the request sequence number of the order-changing request comprises:
when a first falling single power equal table corresponding to the system number and the request serial number is not inquired in the preset database, a second falling single power equal table is constructed;
when the second drop single power equal table is successfully constructed, a first registration accounting power equal table is constructed, and when the first registration accounting power equal table is successfully constructed, a returned verification result is that the accounting of the first drop single power equal table fails; or
And when the second falling single power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed, or when the first registered accounting power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed.
Further, the constructing the second idempotent table comprises:
identifying an interface corresponding to the system number, and calling the interface to obtain a drop record; and constructing each record in the drop record according to a preset construction mode to obtain a second drop power equal table.
Further, the method further comprises:
when detecting that the order falling states of all records in the order falling records are order falling success, determining that the second order falling idempotent table is successfully constructed; or
And when the fact that the order falling state of any one of the order falling records is the order falling failure is detected, determining that the second order falling idempotent construction fails.
In this embodiment, when the first idempotent corresponding to the system number and the request serial number is not queried in the preset database, the verification result is quickly determined according to the construction result by constructing the second idempotent or constructing the registered accounting idempotent, so that the verification efficiency is improved.
And S14, when a first power table corresponding to the system number and the request serial number is inquired in the preset database, judging whether the order-adjusting fingerprint is consistent with the request fingerprint in the first power table.
In this embodiment, the request fingerprint refers to fingerprint information for registering transaction accounting.
In an optional embodiment, the determining whether the monotone fingerprint is consistent with the request fingerprint in the first falling idempotent comprises:
decrypting the tone modulation fingerprint by adopting a preset decryption algorithm to obtain a target fingerprint;
matching the target fingerprint with a request fingerprint in the first power-of-falling table;
determining that the monotone fingerprint is consistent with a request fingerprint in the first power of falling idempotent when the target fingerprint completely matches the request fingerprint in the first power of falling idempotent; or
Determining that the monotone fingerprint does not correspond to a request fingerprint in the first power of falling table when the target fingerprint does not completely match the request fingerprint in the first power of falling table.
In this embodiment, by determining whether the order matching fingerprint is consistent with the request fingerprint in the first falling order power equal table, it can be quickly verified that the first falling order power equal table and the falling order power equal table in the order matching request are the same power equal table, and the billing accuracy of the order matching interface is enhanced.
S15, when the order fingerprint is consistent with the request fingerprint in the first falling single power equal table, the preset occupying party type in the first falling single power equal table is identified.
In this embodiment, since the power table is added with an occupant field, the preset occupant types added in the first falling-order power table can be distinguished based on the occupant field.
Specifically, the preset occupant type may include: a transaction occupant type and a call order occupant type.
In an optional embodiment, the identifying the type of the preset occupant in the first falling single power equal table includes:
extracting an occupant field from the first falling single power equal table;
determining a preset occupant type based on the occupant field.
In this embodiment, the owner field may be a field that can distinguish the type of owner for pending transactions, for preparation for invocations, etc.
In this embodiment, by adding an occupant field to the first falling single power equal table, a verification result can be obtained quickly, and verification efficiency is improved.
And S16, verifying the first falling single power table based on the preset occupation type in the first falling single power table, and returning a verification result.
In an optional embodiment, the verifying the first falling single power table based on the preset occupant type in the first falling single power table and returning a verification result includes:
when the preset occupier in the first falling single power equal table is not the type of the order-adjusting occupier, inquiring the accounting state in the first falling single power equal table;
when the accounting state in the first falling single power equal table is successful, determining that the checking result of the first falling single power equal table is successful in accounting; or
When the accounting state in the first falling single power equal table is failure, inquiring the accounting power equal table in the first falling single power equal table, when the accounting power equal table is inquired in the first falling single power equal table, identifying the type of an occupier in the accounting power equal table, checking the first falling single power equal table based on the type of the occupier in the accounting power equal table, and returning a checking result.
Further, the verifying the first falling idempotent based on the tenant type in the billing idempotent and returning a verification result comprises:
when the occupier type in the accounting power table is a tone-order occupier type, the returned check result is the accounting failure of the first drop power table; or
And when the occupier type in the accounting power list table is not the order-adjusting occupier type, the returned check result shows that the accounting of the first idempotent power list table is successful.
In an optional embodiment, the verifying the first falling single power table based on the preset occupant type in the first falling single power table includes:
and when the preset occupier in the first falling single power table is of a calling occupier type, the returned verification result is the first falling single power table accounting failure.
Further, the querying the billing power equation table in the first falling single power equation table further comprises:
when the first falling single power-equal table does not inquire an accounting power-equal table, constructing a second registered accounting power-equal table;
when the second registration accounting power table is detected to be successfully constructed, the returned check result is the first single-falling power table accounting failure; or
And when detecting that the second registered accounting power equal table is failed to be constructed, returning a verification result that the first falling single power equal table is not processed.
In the embodiment, the first falling single power equal table is added with the registered transaction accounting fingerprint information and the occupation party field, the registered accounting power equal table is added in the accounting transaction, the occupation party field is added in the registered accounting power equal table, the power equal table can be rapidly determined to be occupied by the transaction and the order adjustment based on the occupation party field, the checking result of accounting failure is rapidly returned, and the checking efficiency is improved.
In the embodiment, by inquiring and checking the occupation fields in the falling single power isolist, the multiple power isolists such as the keeping power isolist and the like and each power isolist, the condition that the transaction keeping is successful after the order adjustment is carried out is avoided, the resource loss is avoided, the verification accuracy is improved, meanwhile, the transaction adjusting function is automatically verified through the system, most of manpower is saved, and the purpose of rapidly recovering the transaction keeping is achieved, for example, the original N persons/day workload is shortened to 1 hour and the processing is finished.
And S17, when the order fingerprint is inconsistent with the request fingerprint in the first falling single power equal table, returning a verification result that the first falling single power equal table is not processed.
In this embodiment, when it is verified that the tuning fingerprint is inconsistent with the request fingerprint in the first raised idempotent, it is determined that the first raised idempotent is in a processing state, and the first raised idempotent is not processed.
In summary, in the data verification method according to this embodiment, the order adjustment fingerprint is generated based on the plurality of the order adjustment elements, and in the generation of the order adjustment fingerprint according to the plurality of the order adjustment elements, the order adjustment fingerprint is generated by encrypting the plurality of the order adjustment elements, so that the security of the order adjustment fingerprint is ensured. When a first drop power equal table corresponding to the system number and the request serial number is inquired in the preset database, whether the order transferring fingerprint is consistent with the request fingerprint in the first drop power equal table or not is judged, the fact that the first drop power equal table and the drop power equal table in the order transferring request are the same can be rapidly verified, and the billing accuracy of the order transferring interface is enhanced. When the order matching fingerprint is consistent with the request fingerprint in the first falling single power equal table, the preset occupier type in the first falling single power equal table is identified, the first falling single power equal table is verified based on the preset occupier type in the first falling single power equal table, a verification result is returned, the first falling single power equal table is added with the registered transaction accounting fingerprint information and the occupier field, the registered accounting power equal table is added in the accounting transaction, meanwhile, the occupier field is added in the registered accounting power equal table, the power equal table can be rapidly determined to be transaction occupation and order matching occupation, the verification result of accounting failure is returned, and the verification efficiency is improved.
Example two
Fig. 2 is a structural diagram of a data verification apparatus according to a second embodiment of the present invention.
In some embodiments, the data verification device 20 may include a plurality of functional modules composed of program code segments. The program code of the various program segments in the data verification device 20 may be stored in a memory of the electronic device and executed by the at least one processor to perform the functions of data verification (described in detail in fig. 1).
In this embodiment, the data verification device 20 may be divided into a plurality of functional modules according to the functions performed by the data verification device. The functional module may include: the system comprises a parsing module 201, a generating module 202, a query module 203, a judging module 204, an identifying module 205, a verifying module 206 and a returning module 207. The module referred to herein is a series of computer readable instruction segments stored in a memory that can be executed by at least one processor and that can perform a fixed function. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The analysis module 201 is configured to analyze the received request to be verified, and obtain a list adjustment request and a plurality of list adjustment elements.
In this embodiment, when performing data verification, a user initiates a data verification request to a server through a client, specifically, the client may be a smart phone, an IPAD, or other existing intelligent devices, the server may be a data verification subsystem, and during the data verification, for example, the client may send the data verification request to the data verification subsystem, and the data verification subsystem is configured to receive the data verification request sent by the client.
In this embodiment, when the server receives the data verification request, the data verification request is analyzed to obtain a reconciliation request and a plurality of reconciliation elements, specifically, the reconciliation request includes a system number and a request sequence number, the reconciliation elements refer to specific elements in the reconciliation, for example, in an accounting record completed by an accounting system after a company service occurs, the reconciliation elements may be transaction information, roll-out roll-in record, user information and other information recorded by the accounting system in the accounting record.
A generating module 202, configured to generate a tone fingerprint based on the plurality of tone elements.
In an alternative embodiment, the generating module 202 generates the tone fingerprint based on the plurality of tone elements includes:
converting the plurality of key elements into character strings, and extracting key fields from the character strings;
and encrypting the character strings by adopting a preset encryption algorithm according to a preset sequencing rule to generate a tone matching fingerprint.
In this embodiment, the key field refers to key billing information in a plurality of tuning elements.
In this embodiment, an encryption algorithm may be preset, and specifically, the preset encryption algorithm may be: other existing encryption algorithms such as a symmetric encryption algorithm, an asymmetric encryption algorithm, a DES encryption algorithm, and the like.
In this embodiment, the preset ordering rule means that the predetermined fixed order may be adopted for ordering.
In this embodiment, in generating the order adjustment fingerprint according to the multiple order adjustment elements, the security of the order adjustment fingerprint is ensured by encrypting the multiple order adjustment elements and then generating the order adjustment fingerprint.
And the query module 203 is used for querying the first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request.
In the embodiment, the idempotent is the protection against the repetition, so that the same transaction can only have one processing result finally, and the conditions that the order adjustment fails, the real-time transaction accounting succeeds, and the processing succeeds after the upstream order adjustment fails cannot occur are ensured.
In this embodiment, in order to distinguish other power tables such as the falling order power table and the billing power table, the system number and the request serial number in the order adjustment request are determined as a unique index, and the first falling order power table is queried through the unique index.
In this embodiment, the query of the first falling single power equal table is performed to determine whether the first falling single power equal table in the order adjustment request falls into a preset database, and when the first falling single power equal table is queried, the first falling single power equal table is determined to fall into the preset database; and when the first falling-order power table is not inquired, determining that the first falling-order power table does not fall into a preset database, possibly in a transaction state, and failing to fall into the list. It is emphasized that, in order to further ensure the privacy and security of the falling single power equal table in the predetermined database, the predetermined database may also be stored in a node of a block chain.
Further, the querying module 203 queries a first idempotent power-of-falling table in a preset database according to the system number and the request sequence number of the order-changing request, including:
when a first falling single power equal table corresponding to the system number and the request serial number is not inquired in the preset database, a second falling single power equal table is constructed;
when the second drop single power equal table is successfully constructed, a first registration accounting power equal table is constructed, and when the first registration accounting power equal table is successfully constructed, a returned verification result is that the accounting of the first drop single power equal table fails; or
And when the second falling single power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed, or when the first registered accounting power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed.
Further, the constructing the second idempotent table comprises:
identifying an interface corresponding to the system number, and calling the interface to obtain a drop record; and constructing each record in the drop record according to a preset construction mode to obtain a second drop power equal table.
Further, when detecting that the order falling states of all the records in the order falling records are order falling success, determining that the second order falling idempotent table is successfully constructed; or
And when the fact that the order falling state of any one of the order falling records is the order falling failure is detected, determining that the second order falling idempotent construction fails.
In this embodiment, when the first idempotent corresponding to the system number and the request serial number is not queried in the preset database, the verification result is quickly determined according to the construction result by constructing the second idempotent or constructing the registered accounting idempotent, so that the verification efficiency is improved.
The determining module 204 is configured to determine whether the order-adjusting fingerprint is consistent with a request fingerprint in a first power-of-falling table when the first power-of-falling table corresponding to the system number and the request serial number is queried in the preset database.
In this embodiment, the request fingerprint refers to fingerprint information for registering transaction accounting.
In an alternative embodiment, the determining module 204 determines whether the monotone fingerprint is consistent with the request fingerprint in the first power of falling idempotent table comprises:
decrypting the tone modulation fingerprint by adopting a preset decryption algorithm to obtain a target fingerprint;
matching the target fingerprint with a request fingerprint in the first power-of-falling table;
determining that the monotone fingerprint is consistent with a request fingerprint in the first power of falling idempotent when the target fingerprint completely matches the request fingerprint in the first power of falling idempotent; or
Determining that the monotone fingerprint does not correspond to a request fingerprint in the first power of falling table when the target fingerprint does not completely match the request fingerprint in the first power of falling table.
In this embodiment, by determining whether the order matching fingerprint is consistent with the request fingerprint in the first falling order power equal table, it can be quickly verified that the first falling order power equal table and the falling order power equal table in the order matching request are the same power equal table, and the billing accuracy of the order matching interface is enhanced.
An identifying module 205, configured to identify an occupant type preset in the first power of falling idempotent when the tuning fingerprint is consistent with the request fingerprint in the first power of falling idempotent.
In this embodiment, since the power table is added with an occupant field, the preset occupant types added in the first falling-order power table can be distinguished based on the occupant field.
Specifically, the preset occupant type may include: a transaction occupant type and a call order occupant type.
In an alternative embodiment, the identifying module 205 identifies the type of the preset occupant in the first falling-single power equal table includes:
extracting an occupant field from the first falling single power equal table;
determining a preset occupant type based on the occupant field.
In this embodiment, the owner field may be a field that can distinguish the type of owner for pending transactions, for preparation for invocations, etc.
In this embodiment, by adding an occupant field to the first falling single power equal table, a verification result can be obtained quickly, and verification efficiency is improved.
And the verification module 206 is configured to verify the first falling single power table based on an occupant type preset in the first falling single power table, and return a verification result.
In an optional embodiment, the verifying module 206 verifies the first falling single power table based on a preset type of an occupant in the first falling single power table, and the returning a verification result includes:
when the preset occupier in the first falling single power equal table is not the type of the order-adjusting occupier, inquiring the accounting state in the first falling single power equal table;
when the accounting state in the first falling single power equal table is successful, determining that the checking result of the first falling single power equal table is successful in accounting; or
When the accounting state in the first falling single power equal table is failure, inquiring the accounting power equal table in the first falling single power equal table, when the accounting power equal table is inquired in the first falling single power equal table, identifying the type of an occupier in the accounting power equal table, checking the first falling single power equal table based on the type of the occupier in the accounting power equal table, and returning a checking result.
Further, the verifying the first falling idempotent based on the tenant type in the billing idempotent and returning a verification result comprises:
when the occupier type in the accounting power table is a tone-order occupier type, the returned check result is the accounting failure of the first drop power table; or
And when the occupier type in the accounting power list table is not the order-adjusting occupier type, the returned check result shows that the accounting of the first idempotent power list table is successful.
In an optional embodiment, the verifying the first falling single power table based on the preset occupant type in the first falling single power table includes:
and when the preset occupier in the first falling single power table is of a calling occupier type, the returned verification result is the first falling single power table accounting failure.
Further, the querying the billing power equation table in the first falling single power equation table further comprises:
when the first falling single power-equal table does not inquire an accounting power-equal table, constructing a second registered accounting power-equal table;
when the second registration accounting power table is detected to be successfully constructed, the returned check result is the first single-falling power table accounting failure; or
And when detecting that the second registered accounting power equal table is failed to be constructed, returning a verification result that the first falling single power equal table is not processed.
In the embodiment, the first falling single power equal table is added with the registered transaction accounting fingerprint information and the occupation party field, the registered accounting power equal table is added in the accounting transaction, the occupation party field is added in the registered accounting power equal table, the power equal table can be rapidly determined to be occupied by the transaction and the order adjustment based on the occupation party field, the checking result of accounting failure is rapidly returned, and the checking efficiency is improved.
In the embodiment, by inquiring and checking the occupation fields in the falling single power isolist, the multiple power isolists such as the keeping power isolist and the like and each power isolist, the condition that the transaction keeping is successful after the order adjustment is carried out is avoided, the resource loss is avoided, the verification accuracy is improved, meanwhile, the transaction adjusting function is automatically verified through the system, most of manpower is saved, and the purpose of rapidly recovering the transaction keeping is achieved, for example, the original N persons/day workload is shortened to 1 hour and the processing is finished.
And a returning module 207, configured to, when the tuning fingerprint is inconsistent with the request fingerprint in the first raised power table, return a verification result that the first raised power table is not processed.
In this embodiment, when it is verified that the tuning fingerprint is inconsistent with the request fingerprint in the first raised idempotent, it is determined that the first raised idempotent is in a processing state, and the first raised idempotent is not processed.
In summary, in the data verification apparatus according to this embodiment, the order adjustment fingerprint is generated based on the plurality of order adjustment elements, and in the generation of the order adjustment fingerprint according to the plurality of order adjustment elements, the order adjustment fingerprint is generated by encrypting the plurality of order adjustment elements, so that the security of the order adjustment fingerprint is ensured. When a first drop power equal table corresponding to the system number and the request serial number is inquired in the preset database, whether the order transferring fingerprint is consistent with the request fingerprint in the first drop power equal table or not is judged, the fact that the first drop power equal table and the drop power equal table in the order transferring request are the same can be rapidly verified, and the billing accuracy of the order transferring interface is enhanced. When the order matching fingerprint is consistent with the request fingerprint in the first falling single power equal table, the preset occupier type in the first falling single power equal table is identified, the first falling single power equal table is verified based on the preset occupier type in the first falling single power equal table, a verification result is returned, the first falling single power equal table is added with the registered transaction accounting fingerprint information and the occupier field, the registered accounting power equal table is added in the accounting transaction, meanwhile, the occupier field is added in the registered accounting power equal table, the power equal table can be rapidly determined to be transaction occupation and order matching occupation, the verification result of accounting failure is returned, and the verification efficiency is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the electronic device 3 comprises a memory 31, at least one processor 32, at least one communication bus 33 and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the electronic device shown in fig. 3 does not constitute a limitation of the embodiment of the present invention, and may be a bus-type configuration or a star-type configuration, and the electronic device 3 may include more or less other hardware or software than those shown, or a different arrangement of components.
In some embodiments, the electronic device 3 is an electronic device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The electronic device 3 may also include a client device, which includes, but is not limited to, any electronic product that can interact with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the electronic device 3 is only an example, and other existing or future electronic products, such as those that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, the memory 31 is used for storing program codes and various data, such as the data verification device 20 installed in the electronic device 3, and realizes high-speed and automatic access to programs or data during the operation of the electronic device 3. The Memory 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
In some embodiments, the at least one processor 32 may be composed of an integrated circuit, 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 at least one processor 32 is a Control Unit (Control Unit) of the electronic device 3, connects various components of the electronic device 3 by using various interfaces and lines, and executes various functions and processes data of the electronic device 3 by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the electronic device 3 may further include a power supply (such as a battery) for supplying power to each component, and optionally, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption 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 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
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 integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, an electronic device, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In a further embodiment, in conjunction with fig. 2, the at least one processor 32 may execute an operating device of the electronic device 3 and various installed application programs (such as the data verification device 20), program codes, and the like, for example, the above modules.
The memory 31 has program code stored therein, and the at least one processor 32 can call the program code stored in the memory 31 to perform related functions. For example, the modules illustrated in fig. 2 are program code stored in the memory 31 and executed by the at least one processor 32, so as to implement the functions of the modules for data verification purposes.
Illustratively, the program code may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 32 to accomplish the present application. The one or more modules/units may be a series of computer readable instruction segments capable of performing certain functions, which are used for describing the execution process of the program code in the electronic device 3. For example, the program code may be partitioned into a parsing module 201, a generating module 202, a querying module 203, a determining module 204, a recognition module 205, a verification module 206, and a return module 207.
In one embodiment of the present invention, the memory 31 stores a plurality of computer readable instructions that are executed by the at least one processor 32 to implement the functionality of data verification.
Specifically, the at least one processor 32 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, and details are not repeated here.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may 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.
Further, the computer-readable storage medium may be non-volatile or volatile
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain referred by the application 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.
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 sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the present invention may also be implemented by one unit or means through software or hardware. The terms first, 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 of data verification, the method comprising:
analyzing the received request to be checked to obtain a single adjusting request and a plurality of single adjusting elements;
generating a tone fingerprint based on the plurality of tone elements;
inquiring a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request;
when a first falling order power equal table corresponding to the system number and the request serial number is inquired in the preset database, judging whether the order transferring fingerprint is consistent with a request fingerprint in the first falling order power equal table or not;
when the order-adjusting fingerprint is consistent with the request fingerprint in the first falling single power equal table, identifying the type of an occupier preset in the first falling single power equal table;
and checking the first falling single power idempotent based on the preset occupation type in the first falling single power idempotent, and returning a checking result.
2. The data validation method of claim 1, wherein the generating a tone fingerprint based on the plurality of tone elements comprises:
converting the plurality of key elements into character strings, and extracting key fields from the character strings;
and encrypting the character strings by adopting a preset encryption algorithm according to a preset sequencing rule to generate a tone matching fingerprint.
3. The data validation method of claim 1, wherein the determining whether the monotone fingerprint is consistent with the request fingerprint in the first power of falling idempotent comprises:
decrypting the tone modulation fingerprint by adopting a preset decryption algorithm to obtain a target fingerprint;
matching the target fingerprint with a request fingerprint in the first power-of-falling table;
determining that the monotone fingerprint is consistent with a request fingerprint in the first power of falling idempotent when the target fingerprint completely matches the request fingerprint in the first power of falling idempotent; or
Determining that the monotone fingerprint does not correspond to a request fingerprint in the first power of falling table when the target fingerprint does not completely match the request fingerprint in the first power of falling table.
4. The data validation method of claim 1, wherein the identifying the type of occupant preset in the first falling single power equal table comprises:
extracting an occupant field from the first falling single power equal table;
determining a preset occupant type based on the occupant field.
5. The data validation method of claim 1, wherein the validating the first idempotent based on the predetermined occupant type in the first idempotent and returning the validation result comprises:
when the preset occupier in the first falling single power equal table is not the type of the order-adjusting occupier, inquiring the accounting state in the first falling single power equal table;
when the accounting state in the first falling single power equal table is successful, determining that the checking result of the first falling single power equal table is successful in accounting; or
When the accounting state in the first falling single power equal table is failure, inquiring the accounting power equal table in the first falling single power equal table, when the accounting power equal table is inquired in the first falling single power equal table, identifying the occupation type in the accounting power equal table, and when the occupation type in the accounting power equal table is a modulation occupation type, returning an accounting result that the accounting of the first falling single power equal table is failure; or when the occupier type in the accounting power list table is not the order-adjusting occupier type, the returned check result shows that the accounting of the first order-falling power list table is successful.
6. The data validation method of claim 5, wherein said querying a billing power-equality table in the first falling single power-equality table further comprises:
when the first falling single power-equal table does not inquire an accounting power-equal table, constructing a second registered accounting power-equal table;
when the second registration accounting power table is detected to be successfully constructed, the returned check result is the first single-falling power table accounting failure; or
And when detecting that the second registered accounting power equal table is failed to be constructed, returning a verification result that the first falling single power equal table is not processed.
7. The data verification method of claim 1, wherein the querying a first idempotent table in a preset database according to the system number and the request sequence number of the order-changing request comprises:
when a first falling single power equal table corresponding to the system number and the request serial number is not inquired in the preset database, a second falling single power equal table is constructed;
when the second drop single power equal table is successfully constructed, a first registration accounting power equal table is constructed, and when the first registration accounting power equal table is successfully constructed, a returned verification result is that the accounting of the first drop single power equal table fails; or
And when the second falling single power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed, or when the first registered accounting power equal table is detected to be failed to be constructed, returning a check result that the first falling single power equal table is not processed.
8. A data verification apparatus, the apparatus comprising:
the analysis module is used for analyzing the received request to be checked to obtain a single adjusting request and a plurality of single adjusting elements;
a generation module for generating a tone fingerprint based on the plurality of tone elements;
the query module is used for querying a first falling single power equal table in a preset database according to the system number and the request serial number of the order transferring request;
the judging module is used for judging whether the order transferring fingerprint is consistent with the request fingerprint in the first falling single power equal table or not when the first falling single power equal table corresponding to the system number and the request serial number is inquired in the preset database;
the identification module is used for identifying the type of an occupant preset in the first falling order power table when the order transfer fingerprint is consistent with the request fingerprint in the first falling order power table;
and the verification module is used for verifying the first falling single power table based on the preset occupation type in the first falling single power table and returning a verification result.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory, the processor being configured to implement the data verification method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data verification method according to any one of claims 1 to 7.
CN202210032651.3A 2022-01-12 2022-01-12 Data verification method and device, electronic equipment and storage medium Pending CN114331661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210032651.3A CN114331661A (en) 2022-01-12 2022-01-12 Data verification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210032651.3A CN114331661A (en) 2022-01-12 2022-01-12 Data verification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114331661A true CN114331661A (en) 2022-04-12

Family

ID=81026637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210032651.3A Pending CN114331661A (en) 2022-01-12 2022-01-12 Data verification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114331661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166681A (en) * 2023-04-25 2023-05-26 北京阿帕科蓝科技有限公司 Intersystem data calling method, intersystem data calling system and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116166681A (en) * 2023-04-25 2023-05-26 北京阿帕科蓝科技有限公司 Intersystem data calling method, intersystem data calling system and storage medium

Similar Documents

Publication Publication Date Title
CN112445854B (en) Multi-source service data real-time processing method, device, terminal and storage medium
CN112698971A (en) Rule engine based parameter conversion method, device, equipment and medium
CN112216361A (en) Follow-up plan list generation method, device, terminal and medium based on artificial intelligence
CN111986794B (en) Anti-fake registering method and device based on face recognition, computer equipment and medium
CN112101311A (en) Double-recording quality inspection method and device based on artificial intelligence, computer equipment and medium
CN112650759A (en) Data query method and device, computer equipment and storage medium
CN111694852B (en) Data processing method, device, terminal and storage medium based on distributed transaction
CN112905437A (en) Method and device for testing case and storage medium
CN112948275A (en) Test data generation method, device, equipment and storage medium
CN114331661A (en) Data verification method and device, electronic equipment and storage medium
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN114281707A (en) Number making method, service application testing method and related equipment thereof
CN111651452B (en) Data storage method, device, computer equipment and storage medium
CN112258197A (en) Account management method, device, terminal and storage medium based on artificial intelligence
CN112598135A (en) Model training processing method and device, computer equipment and medium
CN112163009A (en) User side data acquisition method and device, electronic equipment and storage medium
CN113488128B (en) Electronic medical record retrieval method and device based on blockchain and related equipment
CN113722324B (en) Report generation method and device based on artificial intelligence, electronic equipment and medium
CN110348984B (en) Automatic credit card data input method and related equipment under different transaction channels
CN114881313A (en) Behavior prediction method and device based on artificial intelligence and related equipment
CN114357428A (en) Unbinding method and related device of Internet of things equipment
CN114741738A (en) Tracing data processing method and device based on block chain, electronic equipment and medium
CN113469649A (en) Project progress analysis method and device, electronic equipment and storage medium
CN111901299A (en) Application authentication method and device, electronic equipment and storage medium
CN114119203B (en) Resource management and control method and device based on artificial intelligence, electronic equipment and 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