Summary of the invention
To overcome the problems in correlation technique, present description provides verification of data method, apparatus, equipment and it is
System.
According to this specification embodiment in a first aspect, provide a kind of verification of data system, the verification of data system packet
Cost model and verification module are included, the main period is made of at least one sub- period;
The cost model, is used for: from the transaction record of expense verification side and the checked side of expense, obtaining the sub- period
The low precision service charge and high-precision service charge of interior every transaction;According to acquired high-precision service charge and low precision service charge
Difference, generate tail difference adjust bill;The detail bill that the tail difference adjusts bill and trades in the sub- period is sent to
Check module;The numerical precision of the low precision service charge is the currency type precision of specified currency type, the number of the high-precision service charge
It is worth the numerical precision that precision is higher than low precision service charge;The detail bill includes at least the low precision service charge of the transaction;
The verification module, is used for: when default verification condition meets, using in the main period tail difference adjustment bill and
Detail bill is treated verification expense bill and is checked;Wherein, in the main period tail difference adjustment bill and detail bill by: return
The tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, and the expense bill to be checked is expense
The expense bill that checked policy sends the transaction in the main period.
According to the second aspect of this specification embodiment, a kind of verification of data method is provided, the main period is by least one
The sub- period is constituted, which comprises
From in the transaction record of expense verification side and the checked side of expense, the low precision of every transaction in the sub- period is obtained
Service charge and high-precision service charge, the numerical precision of the high-precision service charge are higher than the numerical precision of low precision service charge, institute
The numerical precision for stating low precision service charge is the currency type precision of specified currency type;
According to the difference of acquired high-precision service charge and low precision service charge, generates tail difference and adjust bill;
The detail bill that the tail difference adjusts bill and trades in the sub- period is sent to verification module, so that verification
Module adjusts bill using the tail difference in the main period and detail bill treats verification expense account when default verification condition meets
Singly checked;
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission, the detail bill include at least the low precision service charge of the transaction.
According to the third aspect of this specification embodiment, a kind of verification of data method is provided, the main period is by least one
The sub- period is constituted, which comprises
The detail bill of the tail difference adjustment bill and transaction in the sub- period is obtained, the detail bill includes at least should
The low precision service charge of transaction, the tail difference adjustment bill are based on: the high-precision service charge of the All Activity in the sub- period
It is obtained with the difference of low precision service charge, the transaction is expense verification side and the transaction that the checked side of expense occurs;
When default verification condition meets, bill is adjusted using the tail difference in the main period and detail bill treats verification expense
It is checked with bill;In the main period tail difference adjustment bill and detail bill by: belong to the period of the day from 11 p.m. to 1 a.m of main period
Between section tail difference adjustment bill and detail bill constitute, the expense bill to be checked is the checked policy of expense to the main time
Transaction in section and the expense bill that sends.
In an alternative embodiment, the expense bill to be checked include in the main period every transaction wait check
Detail bill, the tail difference adjustment bill and detail bill using in the main period are treated verification expense bill and are checked,
Include:
From the detail bill to be checked of transactions all in the main period, according in the sub- period all transactions to
Detail bill is checked, the total value that all transactions in the sub- period wait for verification expense is calculated, obtains wait check sub- total cost;
For the same sub- period, using low precision formality in received tail difference adjustment bill and detail bill
Take, is checked wait check sub- total cost described, obtain the checked result of the sub- period;
According to the checked result of sub- periods all in the main period, the core that verification expense bill is checked is treated in determination
To result.
In an alternative embodiment, the expense bill to be checked include wait check sub- total cost, it is described to core
It is the total value that all transactions wait for verification expense in the sub- period to sub- total cost, the tail difference tune using in the main period
Whole bill and detail bill are treated verification expense bill and are checked, comprising:
For the same sub- period, using low precision formality in received tail difference adjustment bill and detail bill
Take, is checked wait check sub- total cost described, obtain the checked result of the sub- period;
According to the checked result of sub- periods all in the main period, the core that verification expense bill is checked is treated in determination
To result.
In an alternative embodiment, the expense bill to be checked include wait check main total cost, it is described to core
It is the total value that all transactions wait for verification expense in the main period to main total cost, the tail difference tune using in the main period
Whole bill and detail bill are treated verification expense bill and are checked, comprising:
The low precision service charge of all detail bills is calibrated using all tail differences adjustment bill in the main period,
It obtains and calibrates main total cost, and the main total cost of calibration is compared with described wait check main total cost, obtain
Checked result.
In an alternative embodiment, the method also includes: adjust bill receiving tail difference in the sub- period
And transaction detail bill when, by the tail difference adjust bill in tail difference adjusted value and transaction detail bill low precision
Service charge summation, obtains the sub- total cost of calibration of the sub- period;
The tail difference adjustment bill and detail bill using in the main period is treated verification expense bill and is checked, and wraps
It includes: treating verification expense bill using the sub- total cost of calibration for the sub- period for belonging to the main period and checked.
In an alternative embodiment, the method also includes:
Based on the checked result for treating verification expense bill and carrying out verification acquisition, determine that default allowable error condition is unsatisfactory for
When, by the detail bill of the high-precision service charge remarks of every transaction to respective transaction, and remarks there is into high-precision service charge
Detail bill and tail difference adjustment bill be sent to the checked side of expense.
According to the fourth aspect of this specification embodiment, a kind of verification of data device is provided, the main period is by least one
The sub- period is constituted, and described device includes:
Data obtaining module is used for: from the transaction record of expense verification side and the checked side of expense, obtaining the sub- period
The numerical precision of the low precision service charge and high-precision service charge of interior every transaction, the high-precision service charge is higher than low precision hand
The numerical precision to continue to pay dues, the numerical precision of the low precision service charge are the currency type precision of specified currency type;
Bill generation module, is used for: according to the difference of acquired high-precision service charge and low precision service charge, generating tail
Difference adjustment bill;
Information sending module is used for: the tail difference being adjusted bill and the detail bill traded in the sub- period is sent
To verification module, so that verification module adjusts bill and bright when default verification condition meets, using the tail difference in the main period
Itemized account single pair waits for that verification expense bill is checked;
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission, the detail bill include at least the low precision service charge of the transaction.
According to the 5th of this specification embodiment the aspect, a kind of verification of data device is provided, the main period is by least one
The sub- period is constituted, and described device includes:
Information receiving module is used for: the detail bill of the tail difference adjustment bill and transaction in the sub- period is obtained, it is described
Detail bill includes at least the low precision service charge of the transaction, and the tail difference adjustment bill is based on: all in the sub- period
The difference of the high-precision service charge of transaction and low precision service charge obtains, and the transaction is expense verification side and the checked side of expense
The transaction of generation;
Information checking module is used for: when default verification condition meets, using in the main period tail difference adjustment bill and
Detail bill is treated verification expense bill and is checked;In the main period tail difference adjustment bill and detail bill by: return
The tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, and the expense bill to be checked is expense
The expense bill that checked policy sends the transaction in the main period.
According to the 6th of this specification embodiment aspect, a kind of computer equipment is provided, including memory, processor and deposit
Store up the computer program that can be run on a memory and on a processor, wherein the processor is realized when executing described program
Any of the above-described method.
The technical solution that the embodiment of this specification provides is include at least the following beneficial effects:
This specification embodiment provides a kind of verification of data scheme, for every complete transaction, can not only provide this
The low precision service charge of transaction, also provides the high-precision service charge of the transaction, according to high-precision service charge in the sub- period
With the difference of low precision service charge, the tail difference adjustment bill in the sub- period can be generated, and since the main period is by least one
A sub- period is constituted, and therefore, the detail bill of bill and transaction can be adjusted by the tail difference in the sub- period, when constituting main
Between section tail difference adjustment bill and detail bill, thus using in the main period tail difference adjustment bill and detail bill treat
Verification expense bill is checked, and the accuracy of verification of data is improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
This specification can be limited.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent device and method of some aspects be described in detail in attached claims, this specification.
It is only to be not intended to be limiting this explanation merely for for the purpose of describing particular embodiments in the term that this specification uses
Book.The "an" of used singular, " described " and "the" are also intended to packet in this specification and in the appended claims
Most forms are included, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein is
Refer to and includes that one or more associated any or all of project listed may combine.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not taking off
In the case where this specification range, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determination ".
In practical application, when treasury trade occurs for different business platform, it may be used because of one of business platform
The channels to fund of another business platform and generate expense, this expense is referred to as service charge or service fee.Such as, it uses
When family A is transferred accounts by Alipay to user B, if selecting xx bank as payment method, Alipay may be in this transaction
The middle service fee generated to bank paying.Under normal circumstances, expense both sides will not trade generate when immediately carry out expense knot
It calculates, but closes expense again after carrying out reconciliation by some cycles.And it is often sent by a direction another party to core in audit process
It after expense bill, is checked by another party, therefore, based role can will likely generate the double of expense because of business contact
Side is known as expense verification side and the checked side of expense.In expense verification side and the checked side of expense, wherein a side is service fee
The payment collector of (service charge), another party are the payer of service fee.For example, it is past that business funds occurs in payment platform and bank
In the process come, often sending expense bill to be checked from bank to payment platform, then payment platform can be expense verification side,
Bank can be the checked side of expense.
For treasury trade both sides when signing cooperation agreement, one for generally arranging every business funds is solid in practical application
The service charge that the amount of money of certainty ratio (referred to as rate) is traded as this, however both sides may summarize the period without agreement, or
It is limited to the intrinsic expense calculative strategy in each business side and both sides occurs and summarize period inconsistent situation.If treasury trade is double
Side summarizes that the period is inconsistent, is limited to the constraint of currency type precision, there may be deviations for the Fee Amount that both sides finally summarize.Example
Such as, the business amount of money of every transaction is multiplied by expense verification side with default rate obtains the service charge of the transaction, then by one
The service charge summation of All Activity obtains the service charge aggregate value of this month in a month.And the checked side of expense may be directly by one
The business amount of money summation of All Activity, will be multiplied, acquisition continues to pay dues aggregate value to nuclear rivals with value with default rate in month.Due to every
Bill all must be it is effective, that is, be necessarily limited to the constraint of currency type precision, the charging result of each bill is in unit point
(by taking RMB as an example) amount of money below will be rounded, therefore, the formality of expense verification side and the checked side's acquisition of expense
Taking aggregate value, there may be differences.In scene of largely trading especially for small amount, this otherness is obvious.
It, not only can be with for every complete transaction in consideration of it, this specification embodiment provides a kind of verification of data scheme
The low precision service charge of the transaction is provided, the high-precision service charge of the transaction is also provided, according to high-precision in the sub- period
The difference of service charge and low precision service charge, can be generated in the sub- period tail difference adjustment bill, and due to the main period by
At least one sub- period is constituted, and therefore, the detail bill of bill and transaction, structure can be adjusted by the tail difference in the sub- period
Bill and detail bill are adjusted at the tail difference of main period, to utilize tail difference adjustment bill and detail account in the main period
Single pair waits for that verification expense bill is checked, and improves the accuracy of verification of data.
This specification embodiment is illustrated below in conjunction with attached drawing.
In one embodiment, it can use verification of data system and carry out verification of data.As shown in Figure 1, being this specification
A kind of structural schematic diagram of verification of data system shown according to an exemplary embodiment.Verification of data system can be set to expense
Verification side, verification of data system may include cost model 12 and verification module 14.
The cost model 12, is used for: from the transaction record of expense verification side and the checked side of expense, obtaining the sub- time
The low precision service charge and high-precision service charge of every transaction in section;According to acquired high-precision service charge and low precision formality
The difference taken generates tail difference and adjusts bill;The tail difference is adjusted into bill and the detail bill traded in the sub- period is sent
To verification module;The numerical precision of the low precision service charge is the currency type precision of specified currency type, the high-precision service charge
Numerical precision is higher than the numerical precision of low precision service charge;The detail bill includes at least the low precision formality of the transaction
Take.
The verification module 14, is used for: when default verification condition meets, adjusting bill using the tail difference in the main period
Verification expense bill is treated with detail bill to be checked;Wherein, in the main period tail difference adjustment bill and detail bill by:
The tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, and the expense bill to be checked is expense
The expense bill that the transaction in the main period is sent with checked policy.
Correspondingly, being illustrated herein in connection with verification of data method to verification of data scheme.
As shown in Fig. 2, be a kind of this specification flow chart of verification of data method shown according to an exemplary embodiment,
The main period is made of at least one sub- period, and the method can be applied to cost model, which comprises
In step 202, from the transaction record of expense verification side and the checked side of expense, every was obtained in the sub- period
The low precision service charge and high-precision service charge of transaction.
Wherein, the low precision service charge and high-precision service charge can be taken based on the business amount of money in transaction record with default
Rate carries out the value that specified operation obtains and determines.The numerical precision of the low precision service charge is the currency type precision of specified currency type,
The numerical precision of the high-precision service charge is higher than the numerical precision of low precision service charge.
In step 204, according to the difference of acquired high-precision service charge and low precision service charge, the adjustment of tail difference is generated
Bill.
In step 206, the detail bill that the tail difference adjusts bill and trades in the sub- period is sent to verification
Module, so that verification module when default verification condition meets, utilizes the tail difference adjustment bill and detail bill in the main period
Verification expense bill is treated to be checked.
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission, the detail bill include at least the low precision service charge of the transaction.
In this embodiment, the period that expense verification side generates bill with the checked side of expense may be different.The present embodiment
The main period is made of at least one sub- period, and the main period can be the expectation based on the checked side of expense and summarize the period
(be referred to as verification period) and the period determined, and the sub- period, to can be the generation of the bill based on expense verification side all
Phase or expectation summarize period etc. and the determining period.It, then can be with for example, the checked side of expense it is expected that a verification in month is primary
The main period was determined according to one month verification period.The expectation of expense verification side is summarized daily, then can be determined according to day
The sub- period.And expense verification side and the checked side of expense can designated time point of contact in advance, for example, about settled date point of contact, week cut
Point or moon point of contact.Both sides can about settled date point of contact in advance as a preferred method,.For example, can be made with consecutive days point of contact
It is about settled date point of contact, if 00:00 is as day point of contact;It can also be using special day point of contact as about settled date point of contact, such as by same day 18:00
As day point of contact etc..In the case where about settled date point of contact determines, can determine with the corresponding period in Zhou Zuowei verification period,
It can determine using the corresponding period in the moon as verification period.
The main period can be made of at least one sub- period, for example, the main period is using the moon as verification period institute
The determining period, and the sub- period can be the period determined using day as the period in this month.Assuming that having within one month 30 days, then
The main period is made of 30 sub- periods.
In this embodiment, expense verification side and the checked side of expense, which can be, to produce because the contact of the business amount of money occurs
The both sides that green hand continues to pay dues, therefore, the contact of this business amount of money can be understood as a transaction, and the business amount of money of contact can also be managed
Solution is transaction amount.Expense verification side can be the side for collecting service charge, be also possible to be charged for a side of service charge.Accordingly
, the checked side of expense can be the side for being charged for service charge, be also possible to collect a side of service charge.In expense verification side
After business funds contact occurs with the checked side of expense, the relevant information of transaction be can recorde in transaction record.This specification
Embodiment not only records the business funds of the transaction and the low precision formality by business funds generation in transaction record
Take, also record has high-precision service charge.Wherein, low precision service charge and high-precision service charge are based on the business gold in transaction record
Volume and default rate carry out specified operation and obtain, for example, assigned budget, which can be business amount of money *, presets rate, and numerical value is smart
Degree is the operation result of two-decimal as low precision service charge, using operation result that numerical precision is N (N > 2) position decimal as
High-precision service charge.
For example, can recorde information as shown in the table in transaction record:
It is understood that other information can also be recorded in transaction record, it is numerous to list herein.
In external bill, the data shown require to be valid data, i.e., the numerical precision of institute's display data is to refer to
Determine the currency type precision of currency type.The numerical precision of the low precision service charge of the present embodiment meaning can be the currency type essence of specified currency type
Degree, to realize low precision service charge as valid data.By taking RMB as an example, low precision service charge can retain the small of operation result
Two after several points.And high-precision service charge can be not by the data of currency type accuracy constraint, the numerical precision of high-precision service charge
Higher than the numerical precision of low precision service charge.In one embodiment, the numerical precision of the high-precision service charge is based on business
The amount of money and the operation result of default rate determine.For example, the numerical precision of high-precision service charge is for the case where can eliminating
The numerical precision of the business amount of money and the operation result of default rate.It is the case where for certain aliquant Infinite Cyclic decimal, high
Precision service charge can retain enough decimal digits, for example, retaining 6.Record can be checked according to history by retaining digit
In checked result depending on.
When preset tail difference adjustment bill condition meets, can remember from the transaction of expense verification side and the checked side of expense
In record, the low precision service charge and high-precision service charge of every transaction in the sub- period are obtained;According to acquired high-precision hand
The difference to continue to pay dues with low precision service charge generates tail difference and adjusts bill.The transaction record of expense verification side and the checked side of expense
It can be expense verification side and the checked side of expense generated record when carrying out business processing.Tail difference adjusts can be in bill
Including tail difference adjusted value, tail difference adjusted value can be obtained according to the difference of high-precision service charge and low precision service charge, therefore, can
To be calibrated using tail difference adjusted value to low precision service charge.In one embodiment, the corresponding tail of each sub- period
Difference adjustment bill, the tail difference adjusted value in tail difference adjustment bill can be for calibrating the low of all transactions in the sub- period
The summation of precision service charge.For example, can be by the summation of the summation of high-precision service charge in the sub- period and low precision service charge
Subtract each other, obtains the tail difference adjusted value in the sub- period;For another example, for certain sub- period, first by the high-precision hand of every transaction
It continues to pay dues and asks poor with low precision service charge, obtain the adjusted value of every transaction, then by the adjusted value of all transactions in the sub- period
Summation, obtains the tail difference adjusted value of the sub- period.
Preset tail difference adjustment bill condition meets, can be the sub- period terminate after some time point reach.Example
Such as, the sub- period can be No. 28 18:00 of September to No. 29 18:00 of September, then preset tail difference adjustment bill condition meets, can be with
Refer to that No. 30 2:00 of September are reached.At this point it is possible to determine the tail difference adjustment in No. 28 18:00 of period September to No. 29 18:00 of September
Bill.
After generating tail difference adjustment bill, the tail difference in the sub- period can be adjusted to the detail of bill and transaction
Bill is sent to verification module, so that verification module adjusts bill using the tail difference in the main period and detail bill treats verification
Expense bill is checked.
Wherein, the detail bill of transaction includes at least the low precision service charge of the transaction, can root to check module
Calibration total cost is determined according to low precision service charge and tail difference adjustment bill, and then treats verification expense using calibration total cost
Bill is checked.It can also include business amount of money etc. in the detail bill of transaction, herein with no restrictions.
Next data checking method is illustrated from the angle of verification module.As shown in figure 3, being this specification
The flow chart of another kind verification of data method shown according to an exemplary embodiment, the main period is by least one sub- period
It constitutes, which comprises
In step 302, the detail bill of the tail difference adjustment bill and transaction in the sub- period, the detail account are obtained
Single low precision service charge for including at least the transaction, the tail difference adjustment bill are based on: All Activity in the sub- period
The difference of high-precision service charge and low precision service charge obtains, and the transaction is that expense verification side and the checked side of expense occur
Transaction.
In step 304, when default verification condition meets, the tail difference adjustment bill and detail account in the main period are utilized
Single pair waits for that verification expense bill is checked.
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission.The so-called sub- period for belonging to the main period can be the sub- time for constituting the main period
Section.
It in this embodiment, can be in the detail bill for receiving tail difference adjustment bill and transaction in the sub- period
The detail bill that tail difference adjusts bill and transaction is stored, when default verification condition meets, using in the main period
Tail difference adjustment bill and detail bill treat verification expense bill and checked.
Since the main period is made of the sub- period, therefore, it is necessary to receive all sub- periods for constituting the main period
After corresponding tail difference adjustment bill and the detail bill of transaction, it can just treat verification expense bill and be checked.Default verification
Condition can be the verification request for carrying expense bill to be checked that the checked side of the expense of receiving sends, and be also possible to receive
The verification request for carrying expense bill to be checked and arrival of preset verification time etc. sent to the checked side of expense.
In one embodiment, an intermediate treatment process can also be increased, detail bill and tail difference adjustment bill is equal
As bill, the total cost bill in the sub- period is obtained, which includes that the sub- expense of calibration of the sub- period is total
Volume.Then the total cost bill of sub- period is recorded, improves the efficiency of subsequent reconciliation.In consideration of it, it is described using it is main when
Between tail difference adjustment bill in section and detail bill treat before verification expense bill checked further include: receiving the period of the day from 11 p.m. to 1 a.m
Between tail difference adjustment bill and transaction in section detail bill when, the tail difference is adjusted into the tail difference adjusted value in bill and is handed over
The low precision service charge of easy detail bill is summed, and the sub- total cost of calibration of the sub- period is obtained.It is described to utilize the main time
Tail difference adjustment bill and detail bill in section are treated verification expense bill and are checked, comprising: using belonging to the main period
The sub- total cost of calibration of sub- period treat verification expense bill and checked.
The embodiment is obtained ahead of time for each sub- period and calibrates sub- total cost accordingly, and it is subsequent right to can be improved
The verification efficiency that expense bill to be checked is checked in the main period.
In one embodiment, verification module may include intermediate treatment submodule and verification of data submodule.Middle
Reason submodule is used for: when receiving the detail bill of tail difference adjustment bill and transaction in the sub- period, the tail is poor
The low precision service charge for adjusting the tail difference adjusted value in bill and the detail bill of transaction is summed, and the calibration of the sub- period is obtained
From total cost.Verification of data submodule is used for: using the calibration for the sub- period for belonging to the main period from total cost pair
Expense bill to be checked is checked.
In addition, the dimension based on expense bill to be checked transmitted by the checked side of expense is different, corresponding used core
It is also not identical to means.Several scenes are exemplified below to be illustrated.
In some scenarios, the checked side of expense can be checked by way of sending detail bill to be checked, mirror
In this, in order to improve verification efficiency, in one embodiment, detail bill to be checked can be summarized by the sub- period, into
And respectively check the data that summarize in both sides accordingly sub- period, to improve verification efficiency.Specifically, described to core
It include the detail bill to be checked of every transaction in the main period to expense bill, the tail difference using in the main period adjusts
Bill and detail bill are treated verification expense bill and are checked, comprising:
From the detail bill to be checked of transactions all in the main period, according in the sub- period all transactions to
Detail bill is checked, the total value that all transactions in the sub- period wait for verification expense is calculated, obtains wait check sub- total cost;
For the same sub- period, using low precision formality in received tail difference adjustment bill and detail bill
Take, is checked wait check sub- total cost described, obtain the checked result of the sub- period;
According to the checked result of sub- periods all in the main period, the core that verification expense bill is checked is treated in determination
To result.
In this embodiment, in the checked side of calculating expense each sub- period expense to be checked total value, in order to its
He distinguishes total value, such total value is known as wait check sub- total cost.Therefore, it for the same sub- period, can use
Low precision service charge in received tail difference adjustment bill and detail bill, treat the sub- total cost of verification and checked,
Obtain the checked result of the sub- period.Such as, tail difference is adjusted into the bill adjusted value in bill and the low precision in detail bill
Service charge summation, obtains and calibrates sub- total cost, will calibrate sub- total cost and be compared with wait check sub- total cost, obtains
The checked result of the sub- period.
Citing son explanation, the sub- period can be with day divide period, the main period can be with the moon divide when
Between section, if the checked side of expense send be every transaction in some month detail bill to be checked, calculate in the moon daily
Wait check sub- total cost, and using received tail difference adjustment bill and detail bill obtain the sub- expense of daily calibration
The day bill including the sub- total cost of the calibration can be generated in total value.For same day, by the sub- total cost of the calibration of local terminal with
Opposite end is compared wait check sub- total cost, to obtain the checked result of this day.
Then, according to the checked result of sub- periods all in the main period, can determine treat verification expense bill into
The checked result of row verification.For example, difference is respectively less than designated value in each sub- period corresponding checked result, it is possible to determine that right
The checked result that expense bill to be checked is checked be it is normal, be otherwise determined as exception.For another example, all sub- periods are corresponding
Checked result in difference summation, if summation be less than specified threshold, it is possible to determine that treat the core that verification expense bill is checked
Be to result it is normal, be otherwise determined as exception.
Under another scene, the checked side of expense can calculate all transactions in the sub- period and wait for the total of verification expense
Volume, and send in sub- period wait be checked by way of checking sub- total cost, it is therefore, permissible in expense verification side
Expense verification is carried out directly as unit of the sub- period.Specifically, the expense bill to be checked includes total wait check sub- expense
Volume, described wait check sub- total cost is the total value that all transactions wait for verification expense in the sub- period, described to utilize the main time
Tail difference adjustment bill and detail bill in section are treated verification expense bill and are checked, comprising:
For the same sub- period, using low precision formality in received tail difference adjustment bill and detail bill
Take, is checked wait check sub- total cost described, obtain the checked result of the sub- period;
According to the checked result of sub- periods all in the main period, the core that verification expense bill is checked is treated in determination
To result.
For example, the sub- period can be the period divided with day, the main period can be the period divided with the moon, if
What the checked side of expense sent be it is daily wait check sub- total cost in some month, then adjust a bill using the received tail difference of institute
And detail bill obtains the sub- total cost of daily calibration, and the day bill including the sub- total cost of the calibration can be generated.
For same day, by the sub- total cost of calibration of local terminal and being compared wait check sub- total cost for opposite end, to be somebody's turn to do
The checked result of day.
The embodiment carries out the calculating wait check sub- expense by the checked side that trades, and can mitigate the calculating of transaction verification side
Amount, and improve the efficiency of transaction verification side's carry out expense verification.
Under another scene, the checked side of expense may pass through the master to be checked of all transactions in the transmission main period
Total cost is checked, in consideration of it, the data in the local terminal main period can be summarized, data then are summarized at both ends
It is checked.Specifically, the expense bill to be checked include wait check main total cost, it is described to be wait check main total cost
All transactions wait for the total value of verification expense, the tail difference adjustment bill and detail account using in the main period in the main period
Single pair waits for that verification expense bill is checked, comprising:
The low precision service charge of all detail bills is calibrated using all tail differences adjustment bill in the main period,
It obtains and calibrates main total cost, and the main total cost of calibration is compared with described wait check main total cost, obtain
Checked result.
Wherein, the bill adjusted value in the group period in tail difference adjustment bill are as follows: high-precision service charge in the sub- period
Summation and low precision service charge summation difference when, using in the main period all tail differences adjustment bill to all details
The low precision service charge of bill is calibrated, and can be the low precision service charge of all detail bills in the main period and institute
There is the tail difference adjusted value summation in tail difference adjustment bill.For example, when still obtaining the sub- period with day division, obtain main with moon division
Between illustrated for section, if the checked side of expense send be All Activity in some month expense to be checked total value
(in order to distinguish other total values, which can be known as wait check main total cost), then by all details in the main period
Tail difference adjusted value in the low precision service charge of bill and all tail differences adjustment bill is summed, and is obtained and is calibrated main total cost.It will
The main total cost of calibration of local terminal and being compared wait check main total cost for opposite end, so that the checked result of this month is obtained,
Verification efficiency can be improved.
In the application stage, in one example, the checked result that can use verification module carries out other business operations,
I.e., it is possible to execute business operation corresponding with checked result according to checked result.For example, after obtaining checked result, if sentencing
The summarized results for determining normally be subject to a wherein side executes settlement operations.Alternatively, it is also possible to export the verification of verification module
As a result etc., for example, based on checked result output prompting message etc..
In another embodiment, a kind of processing scheme found when checking abnormal according to checked result is also provided.It is described
Method further include:
Based on the checked result for treating verification expense bill and carrying out verification acquisition, determine that default allowable error condition is unsatisfactory for
When, by the detail bill of the high-precision service charge remarks of every transaction to respective transaction, i.e., in the detail bill of every transaction
Remarks have the high-precision service charge of oneself, and remarks are had to the detail bill and tail difference adjustment bill hair of high-precision service charge
It send to the checked side of expense.
The present embodiment is in the ungratified situation of default allowable error condition, by the high-precision service charge remarks of every transaction
Into the detail bill of the transaction, so that the checked side of expense can check according to the high-precision service charge of remarks, improve
Expense checks efficiency.
The verification of data scheme that this specification embodiment provides can be applied to online real time environment, by application system to industry
Business fund carries out real time billing, and clocked flip summarizes tune account;It can also be applied to offline non real-time environment, pass through the number such as ODPS
Charging is completed according to processing means and summarizes the work of tune account.
As seen from the above-described embodiment, by retaining charging high-precision, without being bound by the limitation of currency type precision in bill
The amount of money (abbreviation high-precision service charge), thus allow carry out billing amount again after bill generation to summarize comparison and adjustment,
Meet generate charging detail bill while solve the system of Himdu logic itemized account list currency type precision small amount of money below be rounded and
Caused by accumulation reconciliation deviation.
Various technical characteristics in embodiment of above can be arbitrarily combined, as long as the combination between feature is not present
Conflict or contradiction, but as space is limited, it is not described one by one, therefore the various technical characteristics in above embodiment is any
It is combined the range for also belonging to this disclosure.
Corresponding with the embodiment of aforementioned data checking method, this specification additionally provides verification of data device and its is answered
The embodiment of electronic equipment.
The embodiment of this specification verification of data device can be applied in computer equipment.Installation practice can be by soft
Part is realized, can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, as a logical meaning
On device, be by the processor of computer equipment where it by computer program instructions corresponding in nonvolatile memory
It is read into memory what operation was formed.For hardware view, as shown in figure 4, the meter where this specification verification of data device
Calculate machine equipment a kind of hardware structure diagram, in addition to processor 410 shown in Fig. 4, network interface 420, memory 430 and it is non-easily
Except the property lost memory 440, reality of the computer equipment at 431 place of verification of data device generally according to the equipment in embodiment
Function can also include other hardware, repeat no more to this.
As shown in figure 5, be a kind of this specification block diagram of verification of data device shown according to an exemplary embodiment, it is main
Period is made of at least one sub- period, and described device includes:
Data obtaining module 52, is used for: from the transaction record of expense verification side and the checked side of expense, obtaining the sub- time
The numerical precision of the low precision service charge and high-precision service charge of every transaction in section, the high-precision service charge is higher than low precision
The numerical precision of service charge, the numerical precision of the low precision service charge are the currency type precision of specified currency type.
Bill generation module 54, is used for: according to the difference of acquired high-precision service charge and low precision service charge, generating
Tail difference adjusts bill.
Information sending module 56, is used for: the tail difference being adjusted bill and the detail bill traded in the sub- period is sent out
Send to verification module so that verification module when default verification condition meets, using in the main period tail difference adjustment bill with
Detail bill is treated verification expense bill and is checked;
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission, the detail bill include at least the low precision service charge of the transaction.
As shown in fig. 6, be the block diagram of this specification another verification of data device shown according to an exemplary embodiment,
The main period is made of at least one sub- period, and described device includes:
Information receiving module 62, is used for: obtaining the detail bill of the tail difference adjustment bill and transaction in the sub- period, institute
State the low precision service charge that itemized account list includes at least the transaction clearly, the tail difference adjustment bill is based on: the institute in the sub- period
The difference of the high-precision service charge and low precision service charge that have transaction obtains, and the transaction is that expense verification side and expense are checked
The transaction of Fang Fasheng.
Information checking module 64, is used for: when default verification condition meets, adjusting bill using the tail difference in the main period
Verification expense bill is treated with detail bill to be checked;In the main period tail difference adjustment bill and detail bill by:
The tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, and the expense bill to be checked is expense
The expense bill that the transaction in the main period is sent with checked policy.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with
It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not
In the case where making the creative labor, it can understand and implement.
Correspondingly, this specification embodiment also provides a kind of computer equipment, including memory, processor and it is stored in
On reservoir and the computer program that can run on a processor, wherein the main period is made of at least one sub- period, described
Processor realizes following method when executing described program:
From in the transaction record of expense verification side and the checked side of expense, the low precision of every transaction in the sub- period is obtained
Service charge and high-precision service charge, the numerical precision of the high-precision service charge are higher than the numerical precision of low precision service charge, institute
The numerical precision for stating low precision service charge is the currency type precision of specified currency type;
According to the difference of acquired high-precision service charge and low precision service charge, generates tail difference and adjust bill;
The detail bill that the tail difference adjusts bill and trades in the sub- period is sent to verification module, so that verification
Module adjusts bill using the tail difference in the main period and detail bill treats verification expense account when default verification condition meets
Singly checked;
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- period of main period
Tail difference adjusts bill and detail bill is constituted, and the expense bill to be checked is the checked policy of expense in the main period
The expense bill of transaction and transmission, the detail bill include at least the low precision service charge of the transaction.
Correspondingly, this specification embodiment also provides a kind of computer equipment, including memory, processor and it is stored in
On reservoir and the computer program that can run on a processor, main period are made of at least one sub- period, wherein described
Processor realizes following method when executing described program:
The detail bill of the tail difference adjustment bill and transaction in the sub- period is obtained, the detail bill includes at least should
The low precision service charge of transaction, the tail difference adjustment bill are based on: the high-precision service charge of the All Activity in the sub- period
It is obtained with the difference of low precision service charge, the transaction is expense verification side and the transaction that the checked side of expense occurs;
When default verification condition meets, bill is adjusted using the tail difference in the main period and detail bill treats verification expense
It is checked with bill;
Wherein, in the main period tail difference adjustment bill and detail bill by: belong to the sub- time of main period
The tail difference adjustment bill and detail bill of section are constituted, and the expense bill to be checked is the checked policy of expense to the main period
Interior transaction and the expense bill sent.
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 equipment 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.
Correspondingly, providing a kind of computer storage medium, program instruction is stored in the storage medium, described program refers to
Order includes:
From in the transaction record of expense verification side and the checked side of expense, the low precision of every transaction in the sub- period is obtained
Service charge and high-precision service charge, the numerical precision of the high-precision service charge are higher than the numerical precision of low precision service charge, institute
The numerical precision for stating low precision service charge is the currency type precision of specified currency type;
According to the difference of acquired high-precision service charge and low precision service charge, generates tail difference and adjust bill;
The detail bill that the tail difference adjusts bill and trades in the sub- period is sent to verification module, so that verification
Module adjusts bill using the tail difference in the main period and detail bill treats verification expense account when default verification condition meets
Singly checked;
Wherein, the main period is made of at least one sub- period, tail difference adjustment bill and detail account in the main period
Dan You: the tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, the expense account to be checked
It is singly the expense bill that the checked policy of expense sends the transaction in the main period, the detail bill includes at least the pen
The low precision service charge of transaction.
Correspondingly, providing another computer storage medium, program instruction, described program are stored in the storage medium
Instruction includes:
The detail bill of the tail difference adjustment bill and transaction in the sub- period is obtained, the detail bill includes at least should
The low precision service charge of transaction, the tail difference adjustment bill are based on: the high-precision service charge of the All Activity in the sub- period
It is obtained with the difference of low precision service charge, the transaction is expense verification side and the transaction that the checked side of expense occurs;
When default verification condition meets, bill is adjusted using the tail difference in the main period and detail bill treats verification expense
It is checked with bill;
Wherein, the main period is made of at least one sub- period, tail difference in main period adjustment bill and bright
Itemized account list by: the tail difference adjustment bill and detail bill for belonging to the sub- period of main period are constituted, described to be checked to take
It is the expense bill that the checked policy of expense sends the transaction in the main period with bill.
This specification embodiment can be used one or more wherein include the storage medium of program code (including but not
Be limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer is available to be deposited
Storage media includes permanent and non-permanent, removable and non-removable media, can be accomplished by any method or technique letter
Breath storage.Information can be computer readable instructions, data structure, the module of program or other data.The storage of computer is situated between
The example of matter includes but is not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory
Device (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), the read-only storage of electrically erasable
Device (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-biography
Defeated medium, can be used for storage can be accessed by a computing device information.
Those skilled in the art will readily occur to this specification after considering specification and practicing the invention applied here
Other embodiments.This specification is intended to cover any variations, uses, or adaptations of this specification, these modifications,
Purposes or adaptive change follow the general principle of this specification and do not apply in the art including this specification
Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope of this specification and
Spirit is indicated by the following claims.
It should be understood that this specification is not limited to the precise structure that has been described above and shown in the drawings,
And various modifications and changes may be made without departing from the scope thereof.The range of this specification is only limited by the attached claims
System.
The foregoing is merely the preferred embodiments of this specification, all in this explanation not to limit this specification
Within the spirit and principle of book, any modification, equivalent substitution, improvement and etc. done should be included in the model of this specification protection
Within enclosing.