Summary of the invention
This specification one or more embodiment describes the detection method and device of a kind of account correctness, can be comprehensive
Guarantee book keeping operation account correctness.
In a first aspect, providing a kind of detection method of account correctness, method includes:
Current accounting data is obtained, the current accounting data includes current business mark and current book keeping operation account;
It is identified according to the current business, determines that the current business identifies corresponding prediction account record list, it is described
Predict that account record list is remembered including at least one history book keeping operation account record and/or historical changing account record, and items
Record the historical time occurred;
Referring to the historical time, the account in the current book keeping operation account and the prediction account record list is carried out
It compares, the correctness of the current book keeping operation account is verified according to comparison result.
It is described to obtain current accounting data in a kind of possible embodiment, comprising:
Every accounting data is obtained, using every accounting data as current accounting data.
It is described to obtain current accounting data in a kind of possible embodiment, comprising:
An accounting data in more accounting datas is obtained, using this accounting data as current accounting data.
In a kind of possible embodiment, the historical time is preset period of time.
It is described referring to the historical time in a kind of possible embodiment, by the current book keeping operation account with it is described
Account in prediction account record list is compared, and the correctness of the current book keeping operation account, packet are verified according to comparison result
It includes:
According to the historical time, judge whether the state-of-the-art record in the prediction account record list is historical changing account
Number record;
When judging the state-of-the-art record in the prediction account record list is historical changing account record, this is obtained most
The historical changing account of new record;
When the current book keeping operation account is consistent with the historical changing account, the correct of the current book keeping operation account is determined
Property passes through verifying.
Further, the state-of-the-art record judged in the prediction account record list of working as is historical changing account note
When record, after the historical changing account for obtaining the state-of-the-art record, the method also includes:
When the current book keeping operation account and the historical changing account are inconsistent, the current book keeping operation account is being determined just
True property is unverified.
Further, described according to the historical time, judge that the state-of-the-art record in the prediction account record list is
After the no record for historical changing account, the method also includes:
When judging the state-of-the-art record in the prediction account record list is not historical changing account record, obtain pre-
If the history book keeping operation account record in the period, the preset time period includes multiple historical times;
When the current book keeping operation account does not appear in the book keeping operation account record of the history in the preset time period, determine
The correctness of the current book keeping operation account is unverified.
Further, described to judge that the state-of-the-art record in the prediction account record list is not historical changing account
When record, after obtaining the history book keeping operation account record in preset time period, the method also includes:
When the current book keeping operation account appears in the book keeping operation account record of the history in the preset time period, institute is judged
Whether state in the history book keeping operation account record in preset time period is only an account:
If judging, in the history book keeping operation account record in the preset time period be only an account, it is determined that described to work as
The correctness of preceding book keeping operation account passes through verifying;
If judging, in the history book keeping operation account record in the preset time period be not only an account, it is determined that described
The correctness of current book keeping operation account is unverified.
Second aspect, provides a kind of detection device of account correctness, and device includes:
Acquiring unit, for obtaining current accounting data, the current accounting data includes current business mark and current
Book keeping operation account;
Predicting unit, the current business mark for being obtained according to the acquiring unit determine the current business mark
Corresponding prediction account record list, the prediction account record list include at least one of history book keeping operation account record and/or
Historical changing account record, and the historical time that every record occurs;
Detection unit, the historical time that every record for obtaining referring to the predicting unit occurs will be described current
Book keeping operation account is compared with the account in the prediction account record list, verifies the current book keeping operation account according to comparison result
Number correctness.
The third aspect provides a kind of computer readable storage medium, is stored thereon with computer program, when the calculating
When machine program executes in a computer, enable computer execute first aspect method.
Fourth aspect provides a kind of calculating equipment, including memory and processor, and being stored in the memory can hold
Line code, when the processor executes the executable code, the method for realizing first aspect.
The method and apparatus provided by this specification embodiment obtain current accounting data, the current book keeping operation first
Data include current business mark and current book keeping operation account;Then it is identified according to the current business, determines the current business
Corresponding prediction account record list is identified, the prediction account record list includes at least one history book keeping operation account record
And/or historical changing account record, and the historical time that every record occurs;It, will be described referring finally to the historical time
Current book keeping operation account is compared with the account in the prediction account record list, verifies the current note according to comparison result
The correctness of account account.Therefore this specification embodiment, by acquiring historical record, it is correct that change data form prediction
Account, and go to compare actual book keeping operation account correctness by testing mechanism, it can actively be exposed in accounting procedure with systematization
The incorrect scene of the account of appearance can comprehensively ensure the account correctness of book keeping operation.
Specific embodiment
With reference to the accompanying drawing, the scheme provided this specification is described.
Fig. 1 is the implement scene schematic diagram of one embodiment that this specification discloses.It is correct that the implement scene is related to account
The detection of property.Book keeping operation is exactly all economic works fortune that an object (for example, enterprises and institutions or personal family) is occurred
It is recorded on account book with certain bookkeeping methods, account can be usually related to during book keeping operation, had for an object multiple
The case where account, can get up service identification and account relating, and a service identification is usually one corresponding during book keeping operation
Account.For example, the corresponding account 1 of service identification 1, corresponding account 2 ... ... the service identification N of service identification 2 correspond to account N.Such as
In the current accounting procedure of fruit, the corresponding account of service identification is changed, then may have the incorrect risk of account.
It should be noted that financial management details key message includes service identification and account, an account may be multiple
Business is as book keeping operation account, so different a plurality of details can be generated, so being prediction account by financial management details cleaning, also
It is to say, predicts the relationship of one or more service identification and account.
This specification embodiment, by acquiring historical record, change data, which are formed, predicts correct account, and passes through detection
Mechanism goes to compare actual book keeping operation account correctness, and it is incorrect the account occurred in accounting procedure can actively to be exposed with systematization
Scene can comprehensively ensure the account correctness of book keeping operation.
Fig. 2 shows the detection method flow chart according to the account correctness of one embodiment, this method can be based on Fig. 1 institute
The application scenarios shown.As shown in Fig. 2, detection method includes the following steps for account correctness in the embodiment: step 21, obtaining
Current accounting data, the current accounting data include current business mark and current book keeping operation account;Step 22, worked as according to described
Preceding service identification determines that the current business identifies corresponding prediction account record list, the prediction account record list packet
Include at least one history book keeping operation account record and/or historical changing account record, and the historical time that every record occurs;Step
Rapid 23, referring to the historical time, the current book keeping operation account and the account in the prediction account record list are compared
It is right, the correctness of the current book keeping operation account is verified according to comparison result.The specific side of execution of above each step is described below
Formula.
First in step 21, current accounting data is obtained, the current accounting data includes current business mark and current
Book keeping operation account.It is understood that current accounting data is an accounting data.
In one example, every accounting data is obtained, using every accounting data as current accounting data.The example
In, every accounting data is all checked.
In another example, an accounting data in more accounting datas is obtained, using this accounting data as working as
Preceding accounting data.In the example, more accounting datas are spot-check.
Then it in step 22, is identified according to the current business, determines that the current business identifies corresponding prediction account
Record list, the prediction account record list include at least one history book keeping operation account record and/or historical changing account note
Record, and the historical time that every record occurs.It is understood that prediction account record list can only include that history is kept accounts
Account record, without including that historical changing account records;Alternatively, prediction account record list can only include historical changing account
Record, without including history book keeping operation account record;Alternatively, prediction account record list can both include history book keeping operation account note
Record, and do not include historical changing account record.
In one example, the historical time is preset period of time.That is, when every record does not correspond to
The original history book keeping operation account record carved, but remember according to the history in the preset period of time of preset period of time statistics
Account account record, for example, the preset period of time is one week (i.e. a week).
It is understood that according to the actual fact, daily scene change is less for account, if daily statistics will lead to it is pre-
Increased costs are surveyed, is within one week the optimal value of a relative efficiency, forecasting efficiency can be promoted.
Finally the current book keeping operation account and prediction account record are arranged referring to the historical time in step 23
Account in table is compared, and the correctness of the current book keeping operation account is verified according to comparison result.It is understood that foundation
Historical time, it can be determined that new and old (morning and evening of record time of origin) of items record.
In one example, according to the historical time, judge that the state-of-the-art record in the prediction account record list is
It is no to be recorded for historical changing account;When judge it is described prediction account record list in state-of-the-art record be historical changing account remember
When record, the historical changing account of the state-of-the-art record is obtained;When the current book keeping operation account is consistent with the historical changing account,
Determine that the correctness of the current book keeping operation account passes through verifying.
Further, when judge it is described prediction account record list in state-of-the-art record be historical changing account record
When, after the historical changing account for obtaining the state-of-the-art record, when the current book keeping operation account and the historical changing account are different
When cause, determine that the correctness of the current book keeping operation account is unverified.
Further, according to the historical time, judge the state-of-the-art record in the prediction account record list whether be
Historical changing account record after, when judge it is described prediction account record list in state-of-the-art record be not historical changing account
When record, the history book keeping operation account record in preset time period is obtained, the preset time period includes multiple historical times;Work as institute
When stating in the history book keeping operation account record that current book keeping operation account does not appear in the preset time period, the current book keeping operation is determined
The correctness of account is unverified.
Further, when judge it is described prediction account record list in state-of-the-art record be not historical changing account record
When, after obtaining the history book keeping operation account record in preset time period, when the current book keeping operation account appears in described default
Between in history book keeping operation account record in section when, judge in the history book keeping operation account record in the preset time period whether be only
One account: if judging, in the history book keeping operation account record in the preset time period be only an account, it is determined that described
The correctness of current book keeping operation account passes through verifying;If judging in the history book keeping operation account record in the preset time period not only
For an account, it is determined that the correctness of the current book keeping operation account is unverified.
It is understood that system determine it is unverified after, can be by manual confirmation, and make amendment.
The method provided by this specification embodiment obtains current accounting data, the current accounting data packet first
Include current business mark and current book keeping operation account;Then it is identified according to the current business, determines the current business mark pair
The prediction account record list answered, the prediction account record list include at least one history book keeping operation account record and/or go through
History changes account record, and the historical time that every record occurs;Referring finally to the historical time, by the current book keeping operation
Account is compared with the account in the prediction account record list, verifies the current book keeping operation account according to comparison result
Correctness.Therefore this specification embodiment, by acquiring historical record, change data, which are formed, predicts correct account, and
It goes to compare actual book keeping operation account correctness by testing mechanism, the account occurred in accounting procedure can be actively exposed with systematization
Incorrect scene can comprehensively ensure the account correctness of book keeping operation.
Fig. 3 shows the account prediction technique flow chart according to one embodiment, and this method can be used for generating abovementioned steps
Prediction account record list in 22.As shown in figure 3, acquisition data portion should also other than the data of book keeping operation to be acquired
To include the incremental data of account, inspection accuracy rate can be promoted in this way.Business account relationship cleans part, needs bright in account
Detail washes out prediction account, convenient for that can check the account accuracy of book keeping operation in the following accounting procedure according to prediction account.In advance
Survey account and need include service identification, with can the book keeping operation account of the corresponding Zhou Weidu of the service identification record and Zhou Weidu
Change account record.For example, every record in prediction account record list is referred to prediction account mould as shown in Figure 4
Type, including service identification, account, date and the amount of money.Optionally, the amount of money can also be used as detection account correctness whether according to
According to, for example, if currently the corresponding amount of money of accounting data is compared with the amount of money in prediction account record list, difference between the two
When larger, determine that the correctness of current book keeping operation account is unverified.
Fig. 5 shows the account accuracy check method flow chart according to one embodiment, as shown in figure 5,1. fish for book keeping operation
Data, there are two types of modes during realization, all check one is every, and another kind is that selective examination can be opened according to different business
Control is closed, therefore fishes for accounting data part and needs to be designed as changeable mode.2. fishing for prediction account, need to be marked according to book keeping operation
Service identification in record finds corresponding all prediction account records.3. comparison calculation is needed the actual account number in book keeping operation
It is compared with the account in prediction account, compares the comparison logic chart of logic as shown in Figure 6, main is exactly preferentially with clear
Change record subject to, if there is clearly changing, actual change have occurred and should not be considered as comparing for account do not pass through, if
With it is passing all do not compare and also without change need be specifically marked as not passing through, if with it is passing comparison pass through but and recently
Comparison in one week does not pass through, and also without change record, and labeled as unknown, it needs manually to go to be confirmed whether it is failure.4. answering
Anxious disposition, comparison calculation as described above UNKNOWN TYPE may occur to inspection result, need after manual confirmation UNKNOWN TYPE
It synchronizes and does corresponding prediction account and correct, main logic is, if UNKNOWN TYPE is confirmed as account and normally changes to cause, needs
Predict that account platform recognizes one change record of note, if it is confirmed that failure, then need emergency processing to go adjustment book keeping operation logic.
This specification embodiment, by acquiring historical record, change data, which are formed, predicts correct account, and passes through detection
Mechanism goes to compare actual book keeping operation account accuracy, and the account inaccuracy occurred in accounting procedure can be actively exposed with systematization
Scene.Due to being system operations, compared in the past by calculate can only pipe emphasis trafficwise, can be covered with large area, substantially
Accomplish all standing.Finally positive effect is promoted in book keeping operation accuracy guarantee.
According to the embodiment of another aspect, a kind of detection device of account correctness is also provided, the device is for executing sheet
The detection method for the account correctness that specification embodiment provides.Fig. 7 shows the inspection of the account correctness according to one embodiment
Survey the schematic block diagram of device.As shown in fig. 7, the device 700 includes:
Acquiring unit 71, for obtaining current accounting data, the current accounting data includes current business mark and works as
Preceding book keeping operation account;
Predicting unit 72, the current business mark for being obtained according to the acquiring unit 71, determines the current business
Corresponding prediction account record list is identified, the prediction account record list includes at least one history book keeping operation account record
And/or historical changing account record, and the historical time that every record occurs;
Detection unit 73, the historical time that every record for obtaining referring to the predicting unit 72 occurs, will be described
Current book keeping operation account is compared with the account in the prediction account record list, verifies the current note according to comparison result
The correctness of account account.
Optionally, as one embodiment, the acquiring unit 71 is specifically used for obtaining every accounting data, by every
Accounting data is as current accounting data.
Optionally, as one embodiment, the acquiring unit 71, specifically for obtaining one in more accounting datas
Accounting data, using this accounting data as current accounting data.
Optionally, as one embodiment, the historical time is preset period of time.
Optionally, as one embodiment, the detection unit 73 is specifically included:
Judgment sub-unit, for judging the state-of-the-art record in the prediction account record list according to the historical time
It whether is historical changing account record;
Subelement is obtained, for judging the state-of-the-art record in the prediction account record list when the judgment sub-unit
When recording for historical changing account, the historical changing account of the state-of-the-art record is obtained;
Subelement is determined, for the historical changing account one when the current book keeping operation account and the acquisition subelement acquisition
When cause, determine that the correctness of the current book keeping operation account passes through verifying.
Further, the determining subelement is also used to obtain when the current book keeping operation account and the acquisition subelement
Historical changing account it is inconsistent when, determine it is described it is current book keeping operation account correctness it is unverified.
Further, the acquisition subelement is also used to work as the newest note judged in the prediction account record list
When record does not record for historical changing account, the history book keeping operation account record in preset time period, the preset time period packet are obtained
Include multiple historical times;
The determining subelement is also used to the history not appeared in the preset time period when the current book keeping operation account
When in account of keeping accounts record, determine that the correctness of the current book keeping operation account is unverified.
Further, the judgment sub-unit is also used to appear in the preset time period when the current book keeping operation account
When in interior history book keeping operation account record, whether judge in the history book keeping operation account record in the preset time period only for one
Account;
The determining subelement, if being also used to the judgment sub-unit judges that the history in the preset time period is kept accounts
It is only an account in account record, it is determined that the correctness of the current book keeping operation account passes through verifying;If judgement is single
Member judges that in the book keeping operation account record of the history in the preset time period be not only an account, it is determined that the current book keeping operation
The correctness of account is unverified.
The device provided by this specification embodiment, first acquiring unit 71 obtain current accounting data, described current
Accounting data includes current business mark and current book keeping operation account;Then predicting unit 72 is identified according to the current business, really
The fixed current business identifies corresponding prediction account record list, and the prediction account record list includes at least one history
Account of keeping accounts record and/or historical changing account record, and the historical time that every record occurs;Last detection unit 73 is joined
According to the historical time, the current book keeping operation account is compared with the account in the prediction account record list, according to
Comparison result verifies the correctness of the current book keeping operation account.Therefore this specification embodiment, pass through acquisition history note
Record, change data, which are formed, predicts correct account, and goes to compare actual book keeping operation account correctness by testing mechanism, can be
Systemization actively exposes the incorrect scene of the account occurred in accounting procedure, can comprehensively ensure the account correctness of book keeping operation.
According to the embodiment of another aspect, a kind of computer readable storage medium is also provided, is stored thereon with computer journey
Sequence enables computer execute and combines method described in Fig. 2 to Fig. 6 when the computer program executes in a computer.
According to the embodiment of another further aspect, a kind of calculating equipment, including memory and processor, the memory are also provided
In be stored with executable code, when the processor executes the executable code, realize and combine side described in Fig. 2 to Fig. 6
Method.
Those skilled in the art are it will be appreciated that in said one or multiple examples, function described in the invention
It can be realized with hardware, software, firmware or their any combination.It when implemented in software, can be by these functions
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all any modification, equivalent substitution, improvement and etc. on the basis of technical solution of the present invention, done should all
Including within protection scope of the present invention.