The check method of a kind of data and device
Technical field
The application relates to computer internet technical field, particularly relates to check method and the device of a kind of data.
Background technology
Flourish along with the Internet, increasing data are transmitted by network, thus complete one
Item task.
A kind of typical tasks make progress is: initial data is transferred to terminal from origin, by terminal
Initial data is done certain particular procedure, will process after data be transferred to destination, final destination based on
The initial data received completes a certain task.If there is mistake when processing data in terminal, then just
Mission failure or task can be caused to make mistakes.
Such as, being transferred accounts by Web bank, user A wants to be given to user B 100 yuan, and operation system is by this
Business data message sends to the system (abbreviation interactive system) mutual with bank, and interactive system is by " user
A transfers accounts to user B 100 yuan " this data message processes, and generates the report that banking system is capable of identify that
Literary composition (abbreviation bank message), then bank message is sent to banking system, banking system complete from user
A account subtracts 100 yuan, and user's B account is added 100 yuan.In actual applications, if interactive system is being given birth to
Become during bank message and make mistakes, may result in data in bank message (as transfer amounts and/or transfer accounts right
As etc.) make mistakes, cause economic loss.Technology verifies number in bank message often through manual type now
According to accuracy, inefficient.
Similarly, after the original data processing that terminal will receive, a kind of check method is not had to carry out core yet
Investigate and prosecute the expectation the result whether data after reason are initial datas.
Summary of the invention
The embodiment of the present application provides the check method of a kind of data, verifies the data after process for providing a kind of
It it is whether the scheme of the expectation result of initial data.
The embodiment of the present application provides the check device of a kind of data, verifies the data after process for providing a kind of
It it is whether the scheme of the expectation result of initial data.
The embodiment of the present application employing following technical proposals:
A kind of check method of data, including: receive initial data and characteristic information;Original to receive
Data do particular procedure, the data after being processed;According to the data after processing and expection processing result information
The most consistent, determine verification result.
A kind of check device of data, including: receive unit, be used for receiving initial data and characteristic information;
Processing unit, for the initial data received is done particular procedure, the data after being processed;Check list
Unit, for the most consistent with expection processing result information according to the data after processing, determines verification result.
At least one technical scheme above-mentioned that the embodiment of the present application uses can reach following beneficial effect:
Due to provide a kind of verify process after data be whether the scheme of expectation result of initial data,
Such that it is able to replace the artificial work verifying data, the most just solve by manually verifying the efficiency caused low, accurate
The really problem of property difference.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application,
The schematic description and description of the application is used for explaining the application, is not intended that the improper limit to the application
Fixed.In the accompanying drawings:
The check method of a kind of data that Fig. 1 provides for the embodiment of the present application 1 implement schematic flow sheet;
The concrete structure schematic diagram of the check device of a kind of data that Fig. 2 provides for the embodiment of the present application 2;
The schematic diagram of the check method of a kind of banking business data that Fig. 3 provides for the embodiment of the present application 3.
Detailed description of the invention
For making the purpose of the application, technical scheme and advantage clearer, specifically real below in conjunction with the application
Execute example and technical scheme is clearly and completely described by corresponding accompanying drawing.Obviously, described
Embodiment is only some embodiments of the present application rather than whole embodiments.Based on the enforcement in the application
Example, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise
Example, broadly falls into the scope of the application protection.
Below in conjunction with accompanying drawing, describe the technical scheme that each embodiment of the application provides in detail.
Embodiment 1
Embodiment 1 provides the check method of a kind of data, for provide a kind of verify process after data be
The scheme of the no expectation result being initial data.The idiographic flow schematic diagram of the method as it is shown in figure 1,
Comprise the steps:
Step 11, receives initial data and characteristic information;Wherein, what characteristic information comprised initial data is pre-
Phase processing result information;
Step 12, does particular procedure to the initial data received, the data after being processed;
Step 13, the most consistent with expection processing result information according to the data after processing, determine verification result.
Using the method that embodiment 1 provides, whether the data after verifying process owing to offer is a kind of are original
The scheme of the expectation result of data, such that it is able to replace the artificial work verifying data, the most just solves
Low by manually verifying the efficiency caused, the problem of poor accuracy.
Step 11 is discussed in detail individually below to step 13:
For for step 11, initial data can be, but not limited to include: data file;Service request;
Assignment instructions etc..Characteristic information comprises the expection processing result information to initial data.
Such as, initial data is a service request: China Merchants Bank user A turns to China Merchants Bank user B
Account 100 yuan;After receiving this request, need this request is generated as the message that China Merchants Bank can identify,
Initial data is expected, and processing result information can be just the information in message.
And for example, initial data is a data file, needs this data file is encrypted compression, feature
The expection processing result information to initial data in information be password be the compressed package of the RAR form of " 111 ".
For for step 12, due to network or other reasons, it is possible to occur that transmitting terminal sends out former
The situation that beginning data are inconsistent with the initial data received.In order to determine the concordance of data, can carry out
One-time authentication.
Specifically, it is possible to use the raw data calibration information that characteristic information also comprises, it is judged that receive
Initial data is the most consistent with raw data calibration information.When consistent, the initial data received is spy
Fixed process, the data after being processed.When inconsistent, delete the data and characteristic information received;Send out
Send false alarm.Wherein, particular procedure can be, but not limited to include: the initial data received is carried out lattice
Formula conversion and/or data encryption.
Such as, initial data is a service request: China Merchants Bank user A turns to China Merchants Bank user B
Account 100 yuan;Characteristic information is business flowing water list, and the raw data calibration information comprised in characteristic information is industry
The service requesting information that comprises in business flowing water list: China Merchants Bank user A transfers accounts 100 to China Merchants Bank user B
Unit.Concordance can be judged, when judging the service request and the industry that receive by the coupling method such as keyword
When business solicited message is consistent, this service request is carried out form conversion the process encrypted, be generated as silver of promoting trade and investment
The message that row can identify;When judging that the service request that receives and service requesting information are inconsistent, delete
Business flowing water list except this service request and correspondence, it is also possible to send miscue to transmitting terminal or manager.
For step 12 furthermore, when receiving initial data and characteristic information, in fact it could happen that due to
The factor of the unstable networks such as network jitter, and cause the feelings repeating to receive identical initial data and characteristic information
Condition, finally may be repeatedly performed twice identical service request.Such as, service request 1 (user is received
A transfers accounts 100 yuan to user B) after, the situation of unstable networks occurs, receives again service request 1,
Finally completed twice identical operation, result is exactly that user A transfers accounts 200 yuan to user B, and this very may be used
The wish of user A can have been run counter to.So in order to avoid the problem caused due to repeating transmission, following side can be passed through
Method solves.
Concrete grammar is as follows:
Utilize the Data Identification also comprised in characteristic information and verification state, search in history feature information bank,
Existence comprises the history feature information of described Data Identification;
History feature information is to receive other characteristic informations received before described characteristic information, history feature information
Storehouse is used for preserving history feature information;History service flowing water list is to receive its that receive before current business flowing water list
Its business flowing water list, the data base of history service flowing water list is used for preserving history service flowing water list.
Verify whether state representation completes to verify the data after processing (altogether with expection processing result information
There is two states: verified and do not verified).
Data Identification refers to describe unique identifier (e.g., corresponding with each service request industry of initial data
Flowing water odd numbers in business flowing water list);So, the meaning searched in characteristic information storehouse is, it can be determined that
The initial data received is the most processed.Such as, as a example by service request, if currently received
To business flowing water list (be called for short " the flowing water list received ") the most single-phase with history flowing water with, it is believed that
The service request that the flowing water single pair of received is answered is the most processed;Otherwise, it is possible to be due to network reason
Repeat the service request received, and the most processed, and be checked.
So,
In the presence of not, the verification status modifier in the characteristic information that will receive is not for verify, to receiving
Initial data do particular procedure, the data after being processed.Now it is believed that the service request received
It is not processed mistake, then by the verification status modifier of this service request for not verify, generates bank and can recognize that
Message.
When it is present, the initial data received and characteristic information are deleted.Now it is believed that be currently received
Service request repeat to receive, generated message when receiving for the first time.Then delete reception
The service request arrived and business flowing water list, it is to avoid repetitive operation, including deleting in characteristic information, and currently connect
The full detail that the initial data that receives is corresponding: raw data calibration information, expection processing result information, number
According to odd numbers, verify state;As the solicited message in business flowing water list, expection message information, flowing water odd numbers,
Verification state.
For for step 13, first determine whether that the data after processing are the most consistent with expection processing result information,
Such as, still with the service request of bank, (China Merchants Bank user A transfers accounts 100 to China Merchants Bank user B
Unit) as a example by, the data after process are exactly the message that China Merchants Bank can identify, it is contemplated that processing result information is just
It is expection message information, it is judged that expection message information is the most consistent with the content of message;
When consistent, determine that verification result is that data are errorless;Verification state in the characteristic information that will receive
It is revised as verifying.
Such as, message can be as shown in following table 1-1:
Table 1-1
Expection message information can be as shown in following table 1-2:
Table 1-2
Judge the type of service in message, business odd numbers, produce, proceed to, the data of the amount of money whether with expection
Content corresponding in message information is the most consistent;When consistent, determine that verification result is that data are errorless, by industry
Verification status modifier in business flowing water list is for verify, to represent that this service request has been disposed, and core
Look into errorless.
When inconsistent, determine that verification result is that data are wrong;Delete receive data, characteristic information and
Data after process;Send false alarm.
Such as, the type of service in message, business odd numbers, produce, proceed to, the data transformation of the amount of money with
The content of expection message information is consistent (amount of money is inconsistent);Then determine that verification result is that data are wrong, delete
Except business flowing water list, service request and message;The warning of mistake is sent to manager.
It should be noted that the executive agent of each step of the provided method of embodiment 1 may each be same and sets
Standby, or, each step of the method can also be by distinct device as executive agent.Such as, step 11
Can be equipment 1 with the executive agent of step 12, the executive agent of step 13 can be equipment 2;Again than
As, the executive agent of step 11 can be the executive agent of equipment 1, step 12 and step 13 can be to set
Standby 2;Etc..
Embodiment 2
Based on identical inventive concept, embodiment 2 provides the check device of a kind of data, for offer one
Whether the data after kind of verification processes are the schemes of expectation result of initial data.As in figure 2 it is shown, should
The check device of data includes:
Receive unit 21, may be used for receiving initial data and characteristic information;Wherein, characteristic information comprise right
The expection processing result information of initial data;
Processing unit 22, may be used for the initial data to receiving and does particular procedure, the number after being processed
According to;
Verify unit 23, may be used for according to the data after processing the most consistent with expection processing result information,
Determine verification result.
Using this device that embodiment 2 provides, whether the data after verifying process owing to offer is a kind of are original
The scheme of the expectation result of data, such that it is able to replace the artificial work verifying data, the most just solves
Low by manually verifying the efficiency caused, the problem of poor accuracy.
In one embodiment, characteristic information also comprises Data Identification and verification state;Then processing unit 22,
May be used for:
Search in history feature information bank, if there is the history feature information comprising Data Identification;Wherein,
History feature information is to receive the further feature information received before characteristic information.
In the presence of not, the verification status modifier in the characteristic information that will receive is not for verify, to receiving
Initial data do particular procedure, the data after being processed.
In one embodiment, processing unit 22, it is also possible to be used for:
When it is present, the initial data received and characteristic information are deleted.
In one embodiment, verify unit 23, may be used for:
Judge that the data after processing are the most consistent with expection processing result information;
When consistent, determine that verification result is that data are errorless;
Verification status modifier in the characteristic information that will receive is for verify.
In one embodiment, unit 23 is verified, it is also possible to be used for:
When inconsistent, determine that verification result is that data are wrong;
Delete the data after initial data, characteristic information and the process received;
Send false alarm.
In one embodiment, characteristic information also comprises raw data calibration information;Then processing unit 22,
May be used for:
Judge that the initial data received is the most consistent with raw data calibration information;
When consistent, the initial data received is done particular procedure, the data after being processed.
In one embodiment, processing unit 21, it is also possible to be used for:
When inconsistent, delete the data and characteristic information received;
Send false alarm.
Embodiment 3
Based on identical inventive concept, embodiment 3 provides the check method of a kind of banking business data, uses
In provide a kind of verify process after data be whether the scheme of expectation result of initial data, the method
Schematic diagram as it is shown on figure 3, comprise the steps:
Service request is: China Merchants Bank user A transfers accounts 100 yuan to China Merchants Bank user B.
Step 31, receives service request and business flowing water list;Wherein, China Merchants Bank's business flowing water list can be
As shown in following table 3-1:
Table 3-1
Step 32, it is judged that the service request (user A transfers accounts 100 yuan to user B) received with please
Ask information consistent.
Step 33, there is not flowing water odd numbers in the data base of query history business flowing water list is 201501201500
History service flowing water list, the verification status maintenance as shown in following table 3-2, in the business flowing water list that will receive
Change into not verifying.
Table 3-2
Step 34, according to service request, generates the message that China Merchants Bank can identify, as shown in following table 3-3:
Table 3-3
Step 35, by the content in China Merchants Bank's message and the expection message letter in China Merchants Bank's business flowing water list
Breath and flowing water odd numbers mate, and result is that each item data is the most correct, it is determined that verifying result is that data are errorless,
And the verification state in China Merchants Bank's business flowing water list of revising is for verify, as shown in following table 3-4:
Table 3-4
Using the method that embodiment 3 provides, whether the data after verifying process owing to offer is a kind of are original
The scheme of the expectation result of data, such that it is able to replace the artificial work verifying data, the most just solves
Low by manually verifying the efficiency caused, the problem of poor accuracy.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or meter
Calculation machine program product.Therefore, the application can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the application can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.
The application is with reference to method, equipment (system) and the computer program product according to the embodiment of the present application
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-can be by appointing
Where method or technology realize information storage.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only
Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment accesses.According to defining herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data signal and the carrier wave of modulation.
Also, it should be noted term " includes ", " comprising " or its any other variant are intended to non-row
Comprising, so that include that the process of a series of key element, method, commodity or equipment not only include of his property
Those key elements, but also include other key elements being not expressly set out, or also include for this process,
The key element that method, commodity or equipment are intrinsic.In the case of there is no more restriction, statement " include
One ... " key element that limits, it is not excluded that in including the process of key element, method, commodity or equipment
There is also other identical element.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software and
The form of the embodiment of hardware aspect.And, the application can use and wherein include calculating one or more
The computer-usable storage medium of machine usable program code (include but not limited to disk memory, CD-ROM,
Optical memory etc.) form of the upper computer program implemented.
These are only embodiments herein, be not limited to the application.For people in the art
For Yuan, the application can have various modifications and variations.All made within spirit herein and principle
Any modification, equivalent substitution and improvement etc., within the scope of should be included in claims hereof.