Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, this method may include following step the embodiment of the invention provides a kind of service request method of calibration
It is rapid:
Step 101: according to several service requests, determining field to be verified;
Step 102: according to the corresponding relationship of preset field and verification rule, determining the corresponding verification rule of field to be verified
Then, wherein verification rule includes field level verification rule and request level verification rule;
Step 103: rule being verified according to the corresponding field level of field to be verified, determines the field level verification of field to be verified
As a result;
Step 104: verifying rule according to field level check results and the corresponding request level of field to be verified, determine several industry
Whether business request passes through verification.
Wherein, an a service request i.e. data.Field to be verified can be the same field of different business request,
It is also possible to a variety of fields of different business request.For example, field to be verified is the password field of 10 logging requests, alternatively,
Field to be verified is the password field and login file-name field of 10 logging requests.
This method can not only determine field to be verified with the presence or absence of problem, additionally it is possible to pass through the field level of field to be verified
Check results determine several service requests with the presence or absence of problem.This method can the overall condition to several service requests carry out school
It tests, improves the quality of the service request by verification.
As shown in Fig. 2, this method may include following step the embodiment of the invention provides a kind of service request method of calibration
It is rapid:
Step 201: determining several service requests.
In embodiments of the present invention, it needs using multiple or a large amount of service request as verification basis.
Step 202: according to the corresponding relationship of preset service request type and field, being determined in the field of service request
Field to be verified corresponding with its service request type.
Service request type may include transaction request, registration request, logging request etc..Service request type can be used as
Field carries in service request.
By taking a kind of logging request as an example, as shown in table 1, service request type in logging request is A1, account, the pet name and
Password is the field in logging request, and A2, A3, A4 are the value of corresponding field.Wherein, service request type is in the form of fields
It is present in service request.
Table 1
Service request type |
Account |
The pet name |
Password |
A1 |
A2 |
A3 |
A4 |
Table 2
Service request type |
Field |
Registration request |
Cell-phone number |
Logging request |
Account |
Transaction request |
Trading volume, transaction total amount |
In practical application scene, service request type is different, and there may be difference for corresponding field to be verified.
It as shown in table 2, is the corresponding relationship of a kind of service request type and field.Using service request type as logging request
For, the field in logging request includes account, the pet name and password, and the field to be verified for determining the logging request according to table 2 is
Account.
Table 3
Field |
Verification rule |
Cell-phone number |
B1 |
Account |
B1、B2 |
Trading volume, transaction total amount |
B3 |
Step 203: according to the corresponding relationship of preset field and verification rule, determining the corresponding verification rule of field to be verified
Then, wherein verification rule includes field level verification rule and request level verification rule.
It as shown in table 3, is the corresponding relationship of a kind of field and verification rule.As shown in Table 3, a field can correspond to one
A or multiple verification rules, different fields can correspond to identical verification rule.It wherein, all include field level in B1, B2, B3
Verification rule and request level verification rule.
It should be noted that verification rule is the field to be verified for verifying several service requests, analysis is to school
Test value of the field in different business request.
Step 204: rule being verified according to the corresponding field level of field to be verified, determines the field level verification of field to be verified
As a result;According to field level check results and the corresponding request level verification rule of field to be verified, whether several service requests are determined
Pass through verification.
This method determines each business in several service requests according to the current service request type carried in service request
The field to be verified that request includes can more increase without matching one by one to all fields in each service request
Effect ground determines field to be verified.
It should be noted that the embodiment of the present invention, which is concerned with several service requests, integrally whether there is problem, if whole
There are problems can not then pass through verification for body.
In one embodiment of the invention, the value of the field to be verified of several service requests is verified, is at least deposited
In following two situation:
Situation 1: verifying rule according to the corresponding field level of field to be verified, determines the field level verification knot of field to be verified
Fruit;According to field level check results and the corresponding request level verification rule of field to be verified, determine whether several service requests lead to
Cross verification.
Determine whether the value of the field to be verified of whole service request meets current verification rule.I.e. not to service request into
Row is distinguished, and verification object is whole service request.
For example, existing 20 logging requests, according to the distribution of the value of the account of 20 logging requests and the corresponding school of account
Rule is tested, determines whether 20 logging requests pass through verification.
Situation 2: step 204 specifically includes: corresponding according to the field to be verified of the service request of target service request type
Field level verify rule, determine the field level check results of the field to be verified of the service request of target service request type;
According to the field level check results and target service request type of the field to be verified of the service request of target service request type
Service request field to be verified corresponding request level verification rule, determine target service request type service request whether
Pass through verification.
Service request is classified according to service request type, is verified according to the difference of service request type.
For example, existing 20 service requests, wherein 10 logging requests, 10 registration requests.According to 10 logging requests
Account value distribution and account corresponding verification rule, determine whether 10 logging requests pass through verification.According to 10
The distribution of the value of the account of registration request and the corresponding verification rule of account, determine whether 10 registration requests pass through verification.
In one embodiment of the invention, at least there is following several checking modes, i.e., step 103,104 include following
Several ways of realization:
Checking mode 1: verifying rule according to the corresponding field level of field to be verified, determines the value of field to be verified default
First threshold range in service request;Determine service request of the value of field to be verified in preset first threshold range
The first accounting in several service requests;According to the corresponding request level verification rule of field to be verified, determine that the first accounting is
It is no within the scope of preset first accounting, if so, determining several service requests by verification, otherwise, it determines several business are asked
Ask unverified.
The value that checking mode 1 is suitable for field to be verified is text-type, numeric type or Boolean type.
Checking mode 1 verifies the value of the field to be verified of different business request according to the size of the value of field to be verified
Distribution whether meet the requirements, the mode it can be found that field to be verified value value there is logically the problem of.
For example, service request to be verified is 10 transaction requests, the of transaction request of the value less than 1 for total amount of trading
One accounting is 100%, and the first accounting range is " less than 80% ", it can be seen that, the first accounting is not within the scope of the first accounting, then
Determine that this 10 transaction requests are unverified.
Furthermore it is also possible to which the quantity of the service request according to the value of field to be verified in preset first threshold range is
It is no to be less than preset quantitative range to determine whether several service requests are unverified.
For example, the total quantity of service request is 10, business of the value of field to be verified in preset first threshold range
The quantity of request is 7, within preset quantitative range " being greater than 6 ", determines that several service requests pass through verification.Analogously, under
Stating checking mode 3,4,5,6 can also be verified by way of the quantity of service request determining, will no longer be carried out below
Detailed description.
Checking mode 2: rule is verified according to the corresponding field level of field to be verified, determines the to be verified of several service requests
The value of field is according to the ascending ranking results being ranked up;According to ranking results, determine that preset target quartile is corresponding
The value of field to be verified;According to the corresponding request level verification rule of field to be verified, the corresponding word to be verified of target quartile is determined
Whether the value of section is within the scope of preset second threshold, if so, determine that several service requests pass through verification, otherwise, it determines if
Dry service request is unverified.
The value that checking mode 2 is suitable for field to be verified is numeric type.
Checking mode 2 is distributed according to the quantile of the value of field to be verified, and the word to be verified of multiple service requests is verified
The value of section whether there is distribution problem.
Wherein, quantile distribution includes median distribution, quartile distribution and percentile distribution etc., now with quartile
For number distribution, checking mode 2 is described in detail.
Existing 8 service requests, according to ascending sequence, the value of field to be verified be respectively " 1,2,5,8,9,11,
17,28 ", wherein target quartile is third quartile, and the value 11 of corresponding field to be verified is third quartile.Change speech
It has the value of the field to be verified of 75% (i.e. 6) service request little in the value of the field to be verified of 8 service requests
In 11, there is the value of the field to be verified of 25% (i.e. 2) service request to be greater than 11.If second threshold range is " being greater than 10 ",
Then the value of the corresponding field to be verified of target quartile determines that 8 service requests pass through verification within the scope of second threshold.
It should be noted that target quartile is there may be multiple, for example, the first percentile, the second percentile, third percentage
Position.It is accordingly, there are second threshold range corresponding with the first percentile, second threshold range corresponding with the second percentile,
The corresponding second threshold range of third percentile.It, can be according to meeting corresponding second threshold range in practical application scene
The number of target quartile and the relationship of preset number threshold value determine whether several service requests pass through verification.
Checking mode 3: rule is verified according to the corresponding field level of field to be verified, determination contains at least two word to be verified
The value of section and at least two fields to be verified meets the service request of preset mapping relations;Determination is contained at least two to school
The value for testing field and at least two fields to be verified meets the service request of preset mapping relations in several service requests
Second accounting;According to the corresponding request level verification rule of field to be verified, determine the second accounting whether in preset second accounting
In range, if so, determining several service requests by verification, otherwise, it determines several service requests are unverified.
The value that checking mode 3 is suitable for field to be verified is text-type, numeric type.
Checking mode 3 can be used for verifying the mapping relations of multiple interfields to be verified.
As shown in table 4, existing 5 transaction requests include unit price, trading volume and transaction three words of total amount in transaction request
Section.Based on the relationship of three interfields, the value of three fields can be verified.
Table 4
Transaction request |
Monovalent (member/jin) |
Trading volume (jin) |
It trades total amount (member) |
1 |
3 |
50 |
140 |
2 |
4 |
40 |
110 |
3 |
5 |
40 |
200 |
4 |
6 |
30 |
180 |
5 |
7 |
10 |
70 |
For example, preset mapping relations are " product of unit price and trading volume is equal to transaction total amount ".Based on the mapping relations
5 transaction requests in table 4 are verified, determine that the second accounting of the service request for meeting mapping relations is 60%, if
Preset second accounting range is " being greater than 80% ", it is determined that 5 transaction requests are unverified.
It should be noted that mapping relations can be the mapping relations between the different field of the same service request,
It can be the mapping relations between the different field of different business request.
Checking mode 4: rule is verified according to the corresponding field level of field to be verified, determination contains at least two word to be verified
The value of section and at least two fields to be verified meets the service request of preset mapping relations;Determination is contained at least two to school
Test second accounting of the identical service request of value of field and at least two fields to be verified in several service requests;According to
The corresponding request level verification rule of field to be verified, determine the second accounting whether within the scope of preset second accounting, if so,
Several service requests are determined by verification, otherwise, it determines several service requests are unverified
The value that checking mode 4 is suitable for field to be verified is text-type, numeric type.
Checking mode 4 is essentially a kind of special circumstances of checking mode 3.For example, the value of current check field A and current
The value of check field B is equal.
Table 5
Transaction request |
It receives cell-phone number |
Register cell-phone number |
6 |
a1 |
a1 |
7 |
a2 |
a2 |
8 |
a3 |
a3 |
9 |
a4 |
a4 |
10 |
a5 |
a5 |
As shown in table 5, the second accounting of cell-phone number of receiving transaction request identical with cell-phone number is registered as 100%, if
Second accounting range is " less than 60% ", it is determined that transaction request 6-10 is unverified.
Checking mode 5: verifying rule according to the corresponding field level of field to be verified, and it is pre- to determine that the value of field to be verified meets
If text formatting service request;Determine that the value of field to be verified meets the service request of preset text formatting in several industry
Third accounting in business request;According to the corresponding request level verification rule of field to be verified, determine third accounting whether default
Third accounting within the scope of, if so, determining several service requests by verification, otherwise, it determines several service requests do not pass through
Verification.
The value that checking mode 5 is suitable for field to be verified is text-type, numeric type, date type or Boolean type.
The format that checking mode 5 is mainly used for treating the value of check field is verified.For example, cell-phone number field is corresponding
Text formatting is " 11 bit digital ", if occurring letter in current phone number, it is determined that current phone number is unsatisfactory for preset text
This format.
For example, the corresponding text formatting of currency type field is " any one in Euro, dollar, pound, yen and RMB ",
If in current currency type when appearance won, it is determined that meet preset text formatting.
In practical application scene, what which considered is the situation of multiple service request entirety, for example, when 10
In service request, the third accounting that cell-phone number is unsatisfactory for the service request of preset text formatting is 60%, is greater than preset the
Three accounting ranges " less than 10% ", it is determined that 10 service requests are unverified.
Checking mode 6: rule is verified according to the corresponding field level of field to be verified, determines the length of the value of field to be verified
Meet the service request of preset length range;Determine that the length of the value of field to be verified meets the business of preset length range
Request the 4th accounting in several service requests;According to the corresponding request level verification rule of field to be verified, determine that the 4th accounts for
Than being verified if so, determining that several service requests pass through, otherwise, it determines several industry whether within the scope of preset 4th accounting
Business request is unverified.
The value that checking mode 6 is suitable for field to be verified is text-type and numeric type.
For example, existing 10 registration requests, length range is " being equal to 11 ", the registration request that the length of cell-phone number is 11
4th accounting is 90%, if preset 4th accounting range is " being greater than 8% ", it is determined that 10 registration request verifications pass through.
The value that checking mode 6 can be also used for verifying field to be verified is empty situation.For example, existing 10 logins are asked
It asks, length range is " being equal to 0 ", and the 4th accounting is 60%, if preset 4th accounting range is " less than 10% ", it is determined that
10 registration requests are unverified.
It should be noted that above-mentioned several checking modes can be respectively applied in above situation 1 and situation 2.Different
Checking mode can also be applied in combination, i.e., verified using different checking modes to the same field.
For example, successively being verified using the value that checking mode 6,5,1 treats check field;It can also be verified in former
In the case that modulo check passes through, verified using next checking mode.For example, first with checking mode 6 to be verified
Field is verified, and when passed the verification, is treated check field using checking mode 5 and is verified, and when passed the verification, is utilized
Checking mode 1 is treated check field and is verified.
Wherein, checking mode 1-4 can be realized the value progress for the field to be verified requested in semantic level different business
Verification reaches and verifies quality possessed by desk checking, while improving verification efficiency.For example, checking mode 1 and checking mode 2
The distribution of the value of field to be verified can be judged with the presence or absence of problem, and whether the size of the value of field to be verified meets logic.School
Wherein one or more fields to be verified can be verified using the incidence relation of the Bu Tong value of field to be verified by testing mode 3 and 4.
To sum up, compared with each field for each service request carries out verification, this method is from field in each business
Value in request is verified as entrance, and no training cost has stronger versatility.
The embodiment of the invention provides a kind of service request methods of calibration, method includes the following steps:
S1: according to several service requests, field to be verified is determined;
S2: according to the corresponding relationship of preset field and verification rule, the corresponding first verification rule of field to be verified are determined
Then, the second verification rule, third verify regular, the 4th verification rule and the 5th verification is regular, wherein first, which verifies rule, includes
First field level verification rule and the first request level verification rule, the second verification rule include the second field level verification rule and the
Two request levels verification rule, third verification rule is regular including third field level verification rule and the verification of third request level, and the 4th
Verification rule includes the 4th field level verification rule and the 4th request level verification rule, and the 5th verification rule includes the 5th field level
Verification rule and the 5th request level verification rule;
S3: verifying rule according to corresponding first field level of field to be verified, determines that the length of the value of field to be verified is full
The service request of the preset length range of foot;Determine that the length of the value of field to be verified meets the business of preset length range and asks
Seek the 5th accounting in several service requests;According to the corresponding first request level verification rule of field to be verified, the 5th is determined
Whether accounting is within the scope of preset 5th accounting, if so, executing S4;
S4: verifying rule according to corresponding second field level of field to be verified, and it is default to determine that the value of field to be verified meets
Text formatting service request;Determine that the value of field to be verified meets the service request of preset text formatting in several business
The 6th accounting in request;According to the corresponding second request level verification rule of field to be verified, determine the 6th accounting whether pre-
If the 6th accounting within the scope of, if so, execute S5;
S5: rule is verified according to the corresponding third field level of field to be verified, determines the value of field to be verified preset
Service request in third threshold range;Determine that service request of the value of field to be verified in preset third threshold range exists
The 7th accounting in several service requests;According to the corresponding third request level verification rule of field to be verified, the 7th accounting is determined
Whether within the scope of preset 7th accounting, if so, executing S6;
S6: rule is verified according to corresponding 4th field level of field to be verified, determines the word to be verified of several service requests
The value of section is according to the ascending ranking results being ranked up;According to ranking results, determine preset target quartile it is corresponding to
The value of check field;According to the corresponding 4th request level verification rule of field to be verified, determine that target quartile is corresponding to be verified
Whether the value of field is in preset 4th threshold range, if so, executing S7;
S7: verifying rule according to corresponding 5th field level of field to be verified, determine contain at least two field to be verified,
And at least two the value of field to be verified meet the service requests of preset mapping relations;Determination contains at least two word to be verified
The value of section and at least two fields to be verified meets the 8th of the service request of preset mapping relations in several service requests
Accounting;According to the corresponding 5th request level verification rule of field to be verified, determine the 8th accounting whether in preset 8th accounting
In range, if so, executing S8, otherwise, S9 is executed;
S8: determine that several service requests pass through verification;
S9: determine that several service requests are unverified.
The embodiment of the present invention is treated check field by different verification rules and is verified, and field to be verified can be verified
It whether there is problem in different levels, and then filter out the service request of high quality.
As shown in figure 3, the embodiment of the present invention is by taking all transaction requests of current service request type as an example, to service request
Method of calibration is described in detail, method includes the following steps:
Step 301: determining 5 service requests.
5 service requests obtained are as shown in table 6, and field includes unit price, trading volume and transaction total amount.
Table 6
Service request |
Service request type |
Monovalent (member/jin) |
Trading volume (jin) |
It trades total amount (member) |
11 |
Transaction request |
3 |
50 |
140 |
12 |
Transaction request |
4 |
40 |
110 |
13 |
Transaction request |
5 |
40 |
200 |
14 |
Transaction request |
6 |
30 |
180 |
15 |
Transaction request |
7 |
10 |
70 |
Step 302: according to the corresponding relationship of preset service request type and field, being determined in the field of service request
Field to be verified corresponding with its service request type, wherein field to be verified includes unit price, trading volume and transaction total amount.
Table 7
Service request type |
Field |
Registration request |
Cell-phone number |
Logging request |
Account |
Transaction request |
Unit price, trading volume, transaction total amount |
The corresponding relationship of service request type and field is as shown in table 7, determines that field to be verified is unit price, hands over according to table 7
Yi Liang, transaction total amount.
Step 303: according to the corresponding relationship of preset field and verification rule, determining the corresponding verification rule of field to be verified
Then, wherein unit price, the corresponding verification rule C5 of transaction total amount, corresponding verification rule C1, C2, C3, C4 and the C5 of trading volume.
It should be noted that each verification rule is all comprising field level verification rule and request level verification rule in C1-C5
Then.
Determine that unit price, the corresponding trading rules of transaction total amount are C5 according to table 8, the corresponding trading rules of trading volume are
C1、C2、C3、C4、C5。
Table 8
Field |
Verification rule |
Cell-phone number |
C1 |
Account |
C1、C2 |
Unit price, transaction total amount |
C5 |
Trading volume |
C1、C2、C3、C4、C5 |
Step 304: rule being verified according to the field level in the corresponding C1 of field to be verified, determines the value of field to be verified
Length meets the service request of preset length range;Determine that the length of the value of field to be verified meets preset length range
Fiveth accounting of the service request in several service requests;Rule is verified according to the request level in the corresponding C1 of field to be verified,
Determine that the 5th accounting whether within the scope of preset 5th accounting, when the 5th accounting is within the scope of preset 5th accounting, is held
Row step 305.
Step 305: rule being verified according to the field level in the corresponding C2 of field to be verified, determines that the value of field to be verified is full
The service request of the preset text formatting of foot;If determining, the value of field to be verified meets the service request of preset text formatting and exists
The 6th accounting in dry service request;Rule is verified according to the request level in the corresponding C2 of field to be verified, determines the 6th accounting
Whether within the scope of preset 6th accounting, when the 6th accounting is within the scope of preset 6th accounting, step 306 is executed.
Step 306: rule being verified according to the field level in the corresponding C3 of field to be verified, determines that the value of field to be verified exists
Service request in preset first threshold range;Determine business of the value of field to be verified in preset first threshold range
Request the 7th accounting in several service requests;Rule is verified according to the request level in the corresponding C3 of field to be verified, is determined
7th accounting, when the 7th accounting is within the scope of preset 7th accounting, executes step whether within the scope of preset 7th accounting
Rapid 307.
Step 307: according in the corresponding C4 of field to be verified field level verify rule, determine several service requests to
The value of check field is according to the ascending ranking results being ranked up;According to ranking results, preset target quartile pair is determined
The value for the field to be verified answered;Rule is verified according to the request level in the corresponding C4 of field to be verified, determines that target quartile is corresponding
Field to be verified value whether within the scope of preset second threshold, when the value of the corresponding trading volume of target quartile is preset
When in the 4th threshold range, step 308 is executed.
Step 308: rule being verified according to the field level in the corresponding C5 of field to be verified, determination is contained at least two to school
The value for testing field and at least two fields to be verified meets the service request of preset mapping relations;Determination contains at least two
The value of field to be verified and at least two fields to be verified meets the service request of preset mapping relations in several service requests
In the 8th accounting;Rule is verified according to the request level in the corresponding C5 of field to be verified, determines the 8th accounting whether default
The 8th accounting within the scope of, when the 8th accounting is within the scope of preset 8th accounting, determine 5 service requests by verification,
Otherwise, it determines 5 service requests are unverified.
The embodiment of the present invention successively uses different checking modes by way of from the superficial to the deep, and check word is treated in realization
The value of section carries out profound level, verifies with multi-angle.
As shown in figure 4, the embodiment of the invention provides a kind of service request calibration equipments, comprising:
First determination unit 401, for determining field to be verified according to several service requests;
Second determination unit 402 determines field to be verified for the corresponding relationship according to preset field and verification rule
Corresponding verification rule, wherein verification rule includes field level verification rule and request level verification rule;
First verification unit 403 determines field to be verified for verifying rule according to the corresponding field level of field to be verified
Field level check results;According to field level check results and the corresponding request level verification rule of field to be verified, determine several
Whether service request passes through verification.
In one embodiment of the invention, the first determination unit 401, for according to preset service request type and word
The corresponding relationship of section determines field to be verified corresponding with its service request type in the field of service request.
In one embodiment of the invention, the first verification unit 403, for the business according to target service request type
The corresponding field level verification rule of the field to be verified of request, determines the word to be verified of the service request of target service request type
The field level check results of section;According to the field level check results of the field to be verified of the service request of target service request type
Request level verification rule corresponding with the field to be verified of the service request of target service request type, determines that target service is requested
Whether the service request of type passes through verification.
In one embodiment of the invention, the first verification unit 403, for according to the corresponding field level of field to be verified
Verification rule, determines service request of the value of field to be verified in preset first threshold range;Determine field to be verified
It is worth the first accounting in the service request in preset first threshold range in several service requests;According to field pair to be verified
The request level verification rule answered, determines the first accounting whether within the scope of preset first accounting, if so, determining several business
Request is by verification, otherwise, it determines several service requests are unverified.
In one embodiment of the invention, the first verification unit 403, for according to the corresponding field level of field to be verified
Verification rule, determines the value of the field to be verified of several service requests according to the ascending ranking results being ranked up;According to
Ranking results determine the value of the corresponding field to be verified of preset target quartile;According to the corresponding request level school of field to be verified
Rule is tested, the value of the corresponding field to be verified of target quartile is determined whether within the scope of preset second threshold, if so, determining
Several service requests are by verification, otherwise, it determines several service requests are unverified.
In one embodiment of the invention, the first verification unit 403, for according to the corresponding field level of field to be verified
Verification rule determines that the value for containing at least two field to be verified and at least two fields to be verified meets preset mapping and closes
The service request of system;Determination contains at least two field to be verified and the value of at least two fields to be verified meets preset reflect
Penetrate second accounting of the service request of relationship in several service requests;According to the corresponding request level verification rule of field to be verified
Then, determine that the second accounting whether within the scope of preset second accounting, verifies if so, determining that several service requests pass through, it is no
Then, determine that several service requests are unverified.
In one embodiment of the invention, the value of at least two fields to be verified meets preset mapping relations, comprising:
The value of at least two fields to be verified is identical.
In one embodiment of the invention, the first verification unit 403, for according to the corresponding field level of field to be verified
Verification rule, determines that the value of field to be verified meets the service request of preset text formatting;Determine that the value of field to be verified is full
Third accounting of the service request of the preset text formatting of foot in several service requests;According to the corresponding request of field to be verified
Grade verification rule determines third accounting whether within the scope of preset third accounting, if so, determining that several service requests pass through
Verification, otherwise, it determines several service requests are unverified.
In one embodiment of the invention, the first verification unit 403, for according to the corresponding field level of field to be verified
Verification rule, determines that the length of the value of field to be verified meets the service request of preset length range;Determine field to be verified
The length of value meet fourth accounting of the service request of preset length range in several service requests;According to word to be verified
The corresponding request level verification rule of section, determines the 4th accounting whether within the scope of preset 4th accounting, if so, determination is several
Service request is by verification, otherwise, it determines several service requests are unverified.
As shown in figure 5, the embodiment of the invention provides a kind of service request calibration equipments, comprising:
Third determination unit 501, for determining field to be verified according to several service requests;
4th determination unit 502 determines field to be verified for the corresponding relationship according to preset field and verification rule
Corresponding first verification rule, the second verification rule, third verification rule, the 4th verification rule and the 5th verification rule, wherein
First verification rule includes the first field level verification rule and the first request level verification rule, and the second verification rule includes the second word
Section grade verification rule and the second request level verification rule, third verification rule include third field level verification rule and third request
Grade verification rule, the 4th verification rule include the 4th field level verification rule and the 4th request level verification rule, the 5th verification rule
It then include the 5th field level verification rule and the 5th request level verification rule;
Second verification unit 503 determines to be verified for verifying rule according to corresponding first field level of field to be verified
The length of the value of field meets the service request of preset length range;It is preset to determine that the length of the value of field to be verified meets
Fiveth accounting of the service request of length range in several service requests;According to field to be verified corresponding first request level school
Test rule, determine the 5th accounting whether within the scope of preset 5th accounting,
If the 5th accounting within the scope of preset 5th accounting, is verified according to corresponding second field level of field to be verified
Rule determines that the value of field to be verified meets the service request of preset text formatting;It is pre- to determine that the value of field to be verified meets
If text formatting sixth accounting of the service request in several service requests;According to corresponding second request of field to be verified
Grade verification rule, determine the 6th accounting whether within the scope of preset 6th accounting,
If the 6th accounting within the scope of preset 6th accounting, is verified according to the corresponding third field level of field to be verified
Rule determines service request of the value of field to be verified in preset third threshold range;Determine that the value of field to be verified exists
Seventh accounting of the service request in several service requests in preset third threshold range;It is corresponding according to field to be verified
Third request level verification rule, determine the 7th accounting whether within the scope of preset 7th accounting,
If the 7th accounting within the scope of preset 7th accounting, is verified according to corresponding 4th field level of field to be verified
Rule determines the value of the field to be verified of several service requests according to the ascending ranking results being ranked up;According to sequence
As a result, determining the value of the corresponding field to be verified of preset target quartile;According to the corresponding 4th request level school of field to be verified
Test rule, determine the value of the corresponding field to be verified of target quartile whether in preset 4th threshold range,
If the value of the corresponding field to be verified of target quartile is in preset 4th threshold range, according to field to be verified
Corresponding 5th field level verification rule, determines the value for containing at least two field to be verified and at least two fields to be verified
Meet the service request of preset mapping relations;Determination contains at least two field to be verified and at least two fields to be verified
Value meet eightth accounting of the service request of preset mapping relations in several service requests;It is corresponding according to field to be verified
The 5th request level verify rule, the 8th accounting is determined whether within the scope of preset 8th accounting, if so, determining several industry
Business request is by verification, otherwise, it determines several service requests are unverified.
The embodiment of the invention provides a kind of quality of data calibration equipments, comprising: processor and memory;
Memory for store execute instruction, processor be used for execute memory storage execute instruction to realize above-mentioned
The method of one embodiment.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can
Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller
Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited
Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc.
Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it
The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that including described
There is also other identical elements in the process, method of element, commodity or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group
Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.