CN109255692A - Intelligent control method, terminal device and the medium of electronic accounting period - Google Patents
Intelligent control method, terminal device and the medium of electronic accounting period Download PDFInfo
- Publication number
- CN109255692A CN109255692A CN201810933624.7A CN201810933624A CN109255692A CN 109255692 A CN109255692 A CN 109255692A CN 201810933624 A CN201810933624 A CN 201810933624A CN 109255692 A CN109255692 A CN 109255692A
- Authority
- CN
- China
- Prior art keywords
- accreditation
- data record
- mark
- record
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/125—Finance or payroll
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention is suitable for technical field of data processing, provides the intelligent control method, terminal device and medium of electronic accounting period, this method comprises: obtaining the book keeping operation report that operation system uploads;If the difference of switching time and present system time is less than threshold value during presetting, accreditation verification event is triggered;If there is the data record for not carrying accreditation mark in book keeping operation report, data record input accreditation processing model is subjected to accreditation processing, and after the completion of accreditation, add accreditation mark for data record;If each data record in book keeping operation report carries accreditation mark, by pieces of data record storage to server, and trigger the server completes switching to the accounting period at current time by issuing switch acknowledgment message.It no longer needs to wait manual handover operation that real-time, the automation that also can be carried out accounting period is instructed to switch the invention enables period switching system, improves the switching timeliness of accounting period and improve the clearing accuracy rate of financial data.
Description
Technical field
The invention belongs to technical field of data processing more particularly to a kind of intelligent control method of electronic accounting period,
Terminal device and computer readable storage medium.
Background technique
In order to provide decision in time and manage required information, in accountancy, artificially in time continuous
After continuous business operation and its result are subject to division with commencement date and deadline, accounting period can be formed.Accounting period includes the moon
During degree, during season and during year etc..Wherein, monthly period is current relatively conventional accounting period.
In accounting management system, before the switching of monthly period, system developer generally requires confirmation book keeping operation report
In all data whether uploaded bookkeeping voucher, that is, in confirmation system whether system corresponding to existing each accounting data
Demonstrate,prove information.Confirm that system developer is just notified that business personnel carries out cutting for monthly period after upload in bookkeeping voucher
Change operation.However, if it has been more than the switching of monthly period when finishing that system developer, which confirms that every bookkeeping voucher has uploaded,
Time, alternatively, have been approached the monthly last time limit, then it is possible that because business personnel not at the scene due to can not switch meeting in time
The case where during meter, occurs, and thus will lead to the confusion of monthly closing entry data, to reduce the clearing accuracy rate of financial data.
Summary of the invention
In view of this, the embodiment of the invention provides intelligent control method, the terminal devices of a kind of electronic accounting period
And computer readable storage medium, to solve to lead to the knot of financial data because accounting period can not switch in time in the prior art
Calculate the more low problem of accuracy rate.
The first aspect of the embodiment of the present invention provides the intelligent control method of electronic accounting period a kind of, comprising:
Obtain the book keeping operation report that operation system uploads;
If the difference of switching time and present system time triggers system less than the first preset threshold during presetting
Verification event is demonstrate,proved, the accreditation verification event is used to detect in the book keeping operation report with the presence or absence of the data for not carrying accreditation mark
Record;
If there is the data record for not carrying accreditation mark in the book keeping operation report, the data record is inputted into accreditation
It handles model and carries out accreditation processing, and after the completion of accreditation, add the accreditation mark for the data record;
If data record described in each in the book keeping operation report carries the accreditation mark, by number described in each item
According to record storage to server, and it is complete to the accounting period at current time by issuing switch acknowledgment message to trigger the server
At switching.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory and processor, described to deposit
The computer program that can be run on the processor is stored in reservoir, the processor executes real when the computer program
Existing following steps:
Obtain the book keeping operation report that operation system uploads;
If the difference of switching time and present system time triggers system less than the first preset threshold during presetting
Verification event is demonstrate,proved, the accreditation verification event is used to detect in the book keeping operation report with the presence or absence of the data for not carrying accreditation mark
Record;
If there is the data record for not carrying accreditation mark in the book keeping operation report, the data record is inputted into accreditation
It handles model and carries out accreditation processing, and after the completion of accreditation, add the accreditation mark for the data record;
If data record described in each in the book keeping operation report carries the accreditation mark, by number described in each item
According to record storage to server, and it is complete to the accounting period at current time by issuing switch acknowledgment message to trigger the server
At switching.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Obtain the book keeping operation report that operation system uploads;
If the difference of switching time and present system time triggers system less than the first preset threshold during presetting
Verification event is demonstrate,proved, the accreditation verification event is used to detect in the book keeping operation report with the presence or absence of the data for not carrying accreditation mark
Record;
If there is the data record for not carrying accreditation mark in the book keeping operation report, the data record is inputted into accreditation
It handles model and carries out accreditation processing, and after the completion of accreditation, add the accreditation mark for the data record;
If data record described in each in the book keeping operation report carries the accreditation mark, by number described in each item
According to record storage to server, and it is complete to the accounting period at current time by issuing switch acknowledgment message to trigger the server
At switching.
It is small in the difference of switching time period and present system time by the way that timed task is arranged in the embodiment of the present invention
When preset threshold, directly triggering accreditation verifies event, ensure that system just can automatically detect out when predetermined time reaches
The all data record of currently not yet accreditation, and these data records are executed and mend accreditation processing, it avoids and is waiting every note
The case where upload of account voucher is when finishing, and during which switching time has exceeded appearance;Meanwhile equal accreditation is recorded in all data and is completed
When, by issuing switch acknowledgment message to docked period switching system so that period switching system no longer need etc. it is unemployed
The manual handover operation of business personnel instructs, and also can be carried out the real-time switching of accounting period, this improves the switchings of accounting period
Timeliness, to also improve the clearing accuracy rate of financial data.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the intelligent control method of electronic accounting period provided in an embodiment of the present invention;
Fig. 2 be another embodiment of the present invention provides electronic accounting period intelligent control method implementation flow chart;
Fig. 3 is the specific implementation flow of the intelligent control method S103 of electronic accounting period provided in an embodiment of the present invention
Figure;
Fig. 4 is another specific implementation of the intelligent control method S103 of electronic accounting period provided in an embodiment of the present invention
Flow chart;
Fig. 5 is the another specific implementation of the intelligent control method S103 of electronic accounting period provided in an embodiment of the present invention
Flow chart;
Fig. 6 is the structural block diagram of the intelligent controlling device of electronic accounting period provided in an embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the intelligent control method of electronic accounting period provided in an embodiment of the present invention, should
Method flow includes step S101 to S104.The specific implementation principle of each step is as follows:
S101: the book keeping operation report that operation system uploads is obtained.
Operation system is the management system arrived used in enterprise operation process, including wealth relevant to all kinds of financial datas
It is engaged in management system, accounting management system, management system of rendering an account and settlement system etc..Business people is received in each operation system
After the business datum that member is inputted, handle simultaneously typing book keeping operation report to these business datums by preset algorithm.Hereafter, often
Every preset time interval, unified upload of book keeping operation report is summarized.Therefore, in the embodiment of the present invention, it can receive each business
The book keeping operation report that system is uploaded.
Every a line accounting data in book keeping operation report is data record.If the business datum in operation system has succeeded
Accreditation adds accreditation mark then in book keeping operation report for data record corresponding to the business datum.
S102: if the difference of switching time and present system time is less than the first preset threshold during presetting,
It triggers accreditation and verifies event, the accreditation verification event does not carry accreditation mark for detecting to whether there is in the book keeping operation report
Data record.
Before enterprise production and management, demand, accountant or operation system are settled accounts according to the financial data of enterprises
Developer can preselect a timing node, and cut the timing node as the target of ideally accounting period
Change time point.For example, target switching time point is the 24:00 of monthly last day.In the embodiment of the present invention, the mesh of accounting period
Mark switching time point is above-mentioned switching time period.
In the embodiment of the present invention, the system time at current time is read in real time, and judges switching time this period and current
Whether the difference of system time is less than preset threshold.If the difference of switching time this period and present system time is less than default threshold
Value, then it represents that current time already close to the target switching time point of accounting period, needs to obtain institute before accounting period switching
The every preparation data needed.Therefore, start preset trigger, to trigger accreditation verification event.Wherein, accreditation verification event is used
With the presence or absence of the data record for not carrying accreditation mark in detection book keeping operation report.
Illustratively, if switching time period is the 24:00 of monthly last day, present system time is on January 29 21:
00, and preset threshold is 72 hours, then since the difference of switching time period and present system time is 51 hours, it is pre- to be less than this
If threshold value, therefore, triggering accreditation verifies event.
S103: if there is the data record for not carrying accreditation mark in the book keeping operation report, the data record is defeated
Enter accreditation processing model and carry out accreditation processing, and after the completion of accreditation, adds the accreditation mark for the data record.
If detecting in book keeping operation report there is the data record for not carrying accreditation mark, then it represents that data record is current
Accreditation is not yet completed, the accounting period of electronization cannot be switched under current state, therefore, at preset accreditation
Model is managed, data record is carried out to mend accreditation processing.
In the embodiment of the present invention, in the data record-keeping system end of certificate at the accreditation letter later, exported about the data record
Breath, and be after data record adds accreditation mark, to return to execution above-mentioned steps S102 in book keeping operation report.
S104: if data record described in each in the book keeping operation report carries accreditation mark, by each item
The data record is stored to server, and triggers the server by issuing accounting of the switch acknowledgment message to current time
Period completes switching.
If detect book keeping operation report in each data record carries accreditation mark, by pieces of data record and
Obtained accreditation information is uploaded in the server built in advance.Wherein, above-mentioned server is general ledger server, is used to converge
Total enterprises include every business datum of accreditation voucher.
In the embodiment of the present invention, after by pieces of data record storage to above-mentioned server, accreditation is issued to the server
Complete prompt information.Prompt information is completed based on the accreditation that receives, and server is issued to switching system during preparatory docking
Switch acknowledgment message, so that period switching system switches over the accounting period at current time, that is, be switched to lower a period of time
Between accounting period corresponding to the stage.
For example, if the accounting period after switching is the second quarter during the accounting period at current time is the first quarter
Period;If the accounting period at current time is 2017 to during 2018 years, the accounting period after switching is 2018
To accounting period in 2019.
Preferably, after the accounting period at current time is switched to the accounting period in future time stage, to each layer
The business personnel of grade issues e-mail alert information.Above-mentioned e-mail alert information has switched for prompt service personnel accounting period,
Current time can not handle the accounting data about a upper accounting period, to improve the accuracy of data management.
It is small in the difference of switching time period and present system time by the way that timed task is arranged in the embodiment of the present invention
When preset threshold, directly triggering accreditation verifies event, ensure that system just can automatically detect out when predetermined time reaches
The all data record of currently not yet accreditation, and these data records are executed and mend accreditation processing, it avoids and is waiting every note
The case where upload of account voucher is when finishing, and during which switching time has exceeded appearance;Meanwhile equal accreditation is recorded in all data and is completed
When, by issuing switch acknowledgment message to docked period switching system so that period switching system no longer need etc. it is unemployed
The manual handover operation of business personnel instructs, and also can be carried out the real-time switching of accounting period, this improves the switchings of accounting period
Timeliness, to also improve the clearing accuracy rate of financial data.
As another embodiment of the invention, as shown in Fig. 2, before above-mentioned S103, further includes:
S105: a plurality of sample data record for not carrying the accreditation mark is obtained.
In the embodiment of the present invention, the book keeping operation report that operation system is uploaded in each historical juncture is obtained, and extract it
In do not carry accreditation mark a plurality of data record, by these data records be chosen for current time sample data record.
S106: it is instructed according to the setting that user issues, determines record corresponding accreditation with sample data described in each item respectively
Algorithm.
Due to different sample data records have the characteristics that it is different, for example, different sample data records is corresponding different
Operation system, different render an account amount and different account types, therefore, to sample data record carry out accreditation processing
When, it needs to realize based on different algorithm logics.In the embodiment of the present invention, the logical code inputted according to developer,
Obtain the more set accreditation algorithms for being suitable for different sample datas record.After above-mentioned more set accreditation algorithms are stored, for wherein
Every suit accreditation algorithm distribute corresponding algorithm mark.
For each sample data record selected, accreditation prompt information is issued to developer.It is prompted in accreditation
In information, shows above-mentioned pre-generated each algorithm mark, recorded with prompting developer to choose about this sample data
Algorithm mark after, determine accreditation algorithm corresponding with algorithm mark.
S107: obtaining the account type and reason identification code of the sample data record, and the reason identification code is used for
Indicate the deficiency reason of the accreditation mark.
In the embodiment of the present invention, operation system while uploading sample data record, if detecting, remember by the sample data
Record does not carry accreditation mark, then prompt service personnel choose the deficiency reason of accreditation mark.The original according to corresponding to deficiency reason
Because of identification code, the reason identification code and corresponding account type are added in sample data record by operation system.Therefore, right
Each sample data acquired in above-mentioned S105 record, read be present in this sample data record in account type with
And reason identification code.
S108: the account type, the reason identification code and described based on the record of sample data described in each
Accreditation algorithm is trained processing to the shot and long term memory network model of initialization, and by the shot and long term after the completion of training
The output of memory network model is that the accreditation handles model.
In the embodiment of the present invention, by the corresponding account type of above-mentioned each sample data record, reason identification code, with
And accreditation algorithm imported into preset shot and long term memory network (Long Short-Term Memory, LSTM) model, to this
Parameters in LSTM neural network model are adjusted.The adjustment model of the learning parameter of above-mentioned LSTM neural network model
It is as follows:
Wherein, above-mentioned I1And I2For the input training parameter of LSTM neural network model, for example, I1For sample data note
Record the account type of A;I2The reason of recording A for sample data identification code.Above-mentioned S is accreditation algorithm to be output, and θ is study ginseng
Number, and p (S | I1,I2,I2,…,In;It is θ) the correct probability value of prediction result, θ*For when the correct probability value takes maximum, LSTM
The corresponding learning parameter of model.
By above-mentioned adjustment model, the θ of LSTM neural network model is determined*Value, with the accreditation after the completion of being trained
Handle model.Hereafter, in step s 103, above-mentioned I is recorded data in1And I2The corresponding account type of middle institute and
Reason identification code imported into accreditation processing model, so that the accreditation that accreditation processing model output is suitable for current data record is calculated
Method.By reading algorithm logic corresponding to the accreditation algorithm, which is recorded and carries out accreditation processing.
In the embodiment of the present invention, each sample data record is recorded and obtained by collecting a plurality of sample data in advance
Corresponding characteristic information, for example, account type, reason identification code and accreditation algorithm etc., and using these characteristic informations come
Training LSTM model, ensure that based on the neural network model after the completion of training, the data record for treating accreditation is handled
When, in order to quickly determine accreditation algorithm that data record is applicable in, thus reached the automatic accreditation effect of data record, because
This, improves accreditation efficiency, reduces the artificial required operation intervened, therefore also improves the timeliness of period switching indirectly.
On the basis of above-mentioned each embodiment, as an embodiment of the present invention, Fig. 3 shows implementation of the present invention
The specific implementation flow of the intelligent control method S103 for the electronic accounting period that example provides, details are as follows:
S1031: handling model based on accreditation, obtains the characteristic information of the data record, and the characteristic information includes wound
Build duration, insurance kind type, charge type and source identification.
In the embodiment of the present invention, the corresponding accreditation algorithm of above-mentioned sample data record includes valence tax fractionation algorithm, therefore
It equally include the valence that it is applicable in when the accreditation algorithm that the data record for handling model based on accreditation to determine when accreditation is applicable in
Tax splits algorithm.Wherein, valence tax fractionation refers to, the sales volume containing tax in data record is converted into the processing without tax sales volume
Process.It is exportable to be free of tax sales volume and increasing after carrying out valence tax deconsolidation process to data record by valence tax fractionation algorithm
It is worth tax tax amount of offset item, to meet business personnel to the clearing demand of value-added tax.
In the embodiment of the present invention, obtained for handling model based on above-mentioned accreditation currently to the data record of accreditation pair
Should the valence tax of data record split algorithm, and strike price tax deconsolidation process.
Specifically, algorithm is split by valence tax, obtains the characteristic information of current data record, features described above information includes wound
Build duration, insurance kind type, charge type and source identification etc..Wherein, creation duration indicates that the data is recorded in current meeting
Valid data duration during meter.For example, if data record by the life insurance sales volume that summarizes in nearest two weeks,
A length of two weeks when creation.Expression data record in source identification carrys out mark corresponding to sources operation system.
S1032: for data record described in each, obtain it includes each single item described in characteristic information respectively corresponded
Identifier.
In data record, the specific value of each single item characteristic information is corresponding with unique identifier.For example, if data
The insurance kind type of record is life insurance, then identifier corresponding with life insurance is 01;If the source identification of data record is settlement system
Mark, then identifier corresponding with settlement system mark is 21.
In the embodiment of the present invention, according to the mapping table of preset characteristic information and identifier, data note is obtained respectively
Record identifier corresponding to included each single item characteristic information.
Particularly, if a certain characteristic information is not present in data record, by identifier corresponding to this characteristic information
It is determined as 00.
S1033: the character string comprising every identifier is generated.
In the embodiment of the present invention, default according to each single item characteristic information puts in order, and feature each in data record is believed
The corresponding identifier of breath is sequentially spliced, to obtain the corresponding character string of data record.
For example, if the default of characteristic information puts in order as insurance kind type, creation duration, charge type and source mark
Know, and in data record A, identifier corresponding with above-mentioned various features information is respectively 00,10,23 and 31, then finally
The corresponding character string of the data record generated is " 00102331 ".
S1034: based on the pre-loaded tax rate table of comparisons, the tax rate corresponding with the character string is determined, and according to described
The tax rate calculates the amount of tax to be paid and sales volume about the data record.
Since the possibility value of above-mentioned various features information is limited, therefore by way of permutation and combination, pre-generate
Pieces of data record institute may corresponding character string.
If data record includes different characteristic information, when carrying out valence tax deconsolidation process to the data record, need
Calculating is executed using the different tax rates.It in the embodiment of the present invention, is instructed, is obtained each according to the setting that developer issues in advance
The tax rate corresponding to a character string, and the corresponding relationship of the two is stored in the tax rate table of comparisons.
The character string determined in above-mentioned S1033 is found out and the character string pair in the above-mentioned tax rate table of comparisons
The tax rate answered.Therefore, it to amount of money value documented in data record, can be calculated based on the tax rate about the data record not
Sales volume containing tax and output VAT volume, and export obtained calculated result.
In the embodiment of the present invention, creation duration, insurance kind type, charge type and source by obtaining data record are marked
Know, and calculate the character string about above-mentioned various features information, can quickly be found out in the pre-set tax rate table of comparisons
For carrying out the tax rate value of valence tax deconsolidation process to the data record.For different types of data record, due to of the invention real
Applying example can be automatically performed to the fractionation of the valence tax of each data record in same set of arithmetic logic, therefore reduce the Maintenance Difficulty of system
Degree, improves the arithmetic speed of valence tax fractionation, and then the efficiency switched during also improving.
As an embodiment of the present invention, as shown in figure 4, after above-mentioned S1034, further includes:
S1035: in the book keeping operation report, valence tax is added for the data record and splits label.
S1036: not carrying the data record that the valence tax splits label if detecting and existing in the book keeping operation report,
Then data record is determined as not carry the data record of accreditation mark.
In the embodiment of the present invention, after the valence tax deconsolidation process for completing to record any one data, in book keeping operation report
In, addition valence tax, which is recorded, for the data splits label.Since the accreditation process of data record includes the deconsolidation process mistake of valence tax
Therefore journey when triggering accreditation verification event again, does not carry the data that valence tax splits label if existing in detection book keeping operation report
Record can then determine that the data records and not complete accreditation operation, therefore directly be determined as data record not carry system
Demonstrate,prove the data record of mark.At this point, splitting algorithm based on corresponding valence tax, first the data is recorded at the tax fractionation of carry out valence
Reason.
In the embodiment of the present invention, when triggering accreditation verification event, torn open as long as detecting and not carrying valence tax in book keeping operation report
Data record, then is determined directly as not carrying the data record of accreditation mark by the data record of minute mark label, and need not be into
One step detects whether data record carries accreditation mark, therefore can quickly orient data record and not complete accreditation processing
Reason, so that algorithm is split to record carry out valence tax deconsolidation process to the data based on preset valence tax, thus it is guaranteed that
Before switching time period reaches, faster ground velocity the accreditation processing of data record can be completed, therefore also improve cutting for accounting period
Change timeliness.
As an embodiment of the present invention, Fig. 5 shows the switching method of accounting period provided in an embodiment of the present invention
The another specific implementation flow of S103, details are as follows:
S1037: data record described in each item for not carrying accreditation mark is stored in multiple and different information banks respectively.
After the pieces of data record for not carrying accreditation mark in detecting book keeping operation report, pieces of data is recorded and is distinguished
It stores to different information banks, so as to be stored with one or more data record therein in each information bank.
Particularly, above-mentioned each information bank is located in different servers.
S1038: for each described information storehouse, the information bank is enabled to start one for executing the work of accreditation processing operation
Make thread, and records the starting duration of the worker thread.
In the embodiment of the present invention, for the information bank that each server is created, include if detecting in the information bank
There is data record, then start its internal worker thread, so that the worker thread is based on above-mentioned preset accreditation and handles mould
Type sequentially completes the accreditation operation to the pieces of data record stored in the information bank.Wherein, when starting worker thread,
Preset timer is triggered, to obtain the starting duration of the worker thread in real time.
S1039: if detecting, the starting duration of worker thread described in any described information storehouse is more than the second preset threshold,
The worker thread is then terminated, and is restarted in the information bank for executing another described active line of accreditation processing operation
Journey.
Based on above-mentioned worker thread, after the accreditation for completing record any data is handled, by the data record from working as
It is removed in preceding information bank, and in above-mentioned book keeping operation report, records addition accreditation mark for the data.
Particularly, at any one time, if there are the worker threads that starting duration is more than preset threshold in information bank, then it represents that
There may be the problems of task execution mistake in current information library, therefore, accreditation task are caused to be stopped in order to avoid thread block
Stagnant situation occurs, and termination is carried out to the worker thread, to discharge the system resource in current information library.Hereafter, it opens again
New worker thread is moved, so that the worker thread continues to execute the data record in the presence of information bank accreditation processing.
In the embodiment of the present invention, by being stored a plurality of data record respectively to different information banks, so that each information
Library can start multiple and different worker threads simultaneously to execute accreditation processing, realize the concurrent operations of multithreading, therefore improve
The accreditation efficiency of data record;Also, it is respectively appeared in due to each worker thread in different information banks, and each is believed
It ceases library and also only starts a worker thread in synchronization, thus also avoid multiple worker threads because remembering simultaneously to same data
The case where record is read out and generates conflict, this improves the stability of system, ensure that data record is not in repetition
The case where fractionation valence tax, therefore also improve the utilization rate of system resource and improve the management accuracy of financial data.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Corresponding to the intelligent control method of electronization accounting period provided by the embodiment of the present invention, Fig. 6 shows this hair
The structural block diagram of the intelligent controlling device for the electronic accounting period that bright embodiment provides.For ease of description, illustrate only with
The relevant part of the present embodiment.
Referring to Fig. 6, which includes:
First acquisition unit 61, for obtaining the book keeping operation report of operation system upload.
Trigger unit 62, if pre- less than first for the difference of switching time during presetting and present system time
If threshold value, then accreditation verification event is triggered, the accreditation verification event is not taken for detecting to whether there is in the book keeping operation report
Data record with accreditation mark.
Accreditation unit 63, if for there is the data record for not carrying accreditation mark in the book keeping operation report, it will be described
Data record inputs accreditation processing model and carries out accreditation processing, and after the completion of accreditation, adds the system for the data record
Card mark.
Storage unit 64, if carrying the accreditation mark for data record described in each in the book keeping operation report
Know, then store data record described in each item to server, and triggers the server by issuing switch acknowledgment message to working as
The accounting period at preceding moment completes switching.
Optionally, the intelligent controlling device of the electronic accounting period further include:
Second acquisition unit, for obtaining a plurality of sample data record for not carrying the accreditation mark.
First determination unit, the setting instruction for being issued according to user are determining respectively to remember with sample data described in each item
Record corresponding accreditation algorithm.
Third acquiring unit, for obtaining the account type and reason identification code of the sample data record, the original
Because identification code is used to indicate the deficiency reason of the accreditation mark.
Training unit, the account type, the reason identification code for being recorded based on sample data described in each
And the accreditation algorithm, processing is trained to the shot and long term memory network model of initialization, and by the institute after the completion of training
Stating the output of shot and long term memory network model is that the accreditation handles model.
Optionally, the accreditation algorithm includes that valence tax splits algorithm, and the accreditation unit 63 includes:
First obtains subelement, for handling model based on accreditation, obtains the characteristic information of the data record, the spy
Reference breath includes creation duration, insurance kind type, charge type and source identification.
Second obtains subelement, for for data record described in each, obtain it includes each single item described in feature
The corresponding identifier of information institute.
Subelement is generated, for generating the character string comprising every identifier.
Computation subunit, for determining the tax rate corresponding with the character string based on the pre-loaded tax rate table of comparisons, and
According to the tax rate, the amount of tax to be paid and sales volume about the data record are calculated.
Optionally, the intelligent controlling device of the electronic accounting period further include:
Adding unit, for adding valence tax for the data record and splitting label in the book keeping operation report.
Second determination unit, if for detecting in the book keeping operation report there is the institute for not carrying the valence tax and splitting label
Data record is stated, then is determined as data record not carrying the data record of accreditation mark.
Optionally, the accreditation unit 63 includes:
Storing sub-units are stored in multiple and different letters for will not carry data record described in each item of accreditation mark respectively
Cease library.
Thread promoter unit, for for each described information storehouse, enabling the information bank start one for executing system
The worker thread of processing operation is demonstrate,proved, and records the starting duration of the worker thread.
Thread Termination subelement, if for detecting that the starting duration of worker thread described in any described information storehouse is more than
Second preset threshold then terminates the worker thread, and restarts in the information bank for executing the another of accreditation processing operation
A worker thread.
It is small in the difference of switching time period and present system time by the way that timed task is arranged in the embodiment of the present invention
When preset threshold, directly triggering accreditation verifies event, ensure that system just can automatically detect out when predetermined time reaches
The all data record of currently not yet accreditation, and these data records are executed and mend accreditation processing, it avoids and is waiting every note
The case where upload of account voucher is when finishing, and during which switching time has exceeded appearance;Meanwhile equal accreditation is recorded in all data and is completed
When, by issuing switch acknowledgment message to docked period switching system so that period switching system no longer need etc. it is unemployed
The manual handover operation of business personnel instructs, and also can be carried out the real-time switching of accounting period, this improves the switchings of accounting period
Timeliness, to also improve the clearing accuracy rate of financial data.
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set
Standby 7 include: processor 70 and memory 71, and the calculating that can be run on the processor 70 is stored in the memory 71
Machine program 72, such as the intelligent control program of electronic accounting period.When the processor 70 executes the computer program 72
Realize the step in the intelligent control method embodiment of above-mentioned each electronic accounting period, for example, step 101 shown in FIG. 1 to
104.Alternatively, the processor 70 realizes each module/unit in above-mentioned each Installation practice when executing the computer program 72
Function, such as the function of unit 61 to 64 shown in Fig. 6.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7
The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7
It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7
Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of intelligent control method of electronization accounting period characterized by comprising
Obtain the book keeping operation report that operation system uploads;
If the difference of switching time and present system time triggers accreditation school less than the first preset threshold during presetting
Event is tested, the accreditation verification event is used to detect in the book keeping operation report with the presence or absence of the data note for not carrying accreditation mark
Record;
If there is the data record for not carrying accreditation mark in the book keeping operation report, by data record input accreditation processing
Model carries out accreditation processing, and after the completion of accreditation, adds the accreditation mark for the data record;
If data record described in each in the book keeping operation report carries the accreditation mark, data described in each item are remembered
Address book stored triggers the server and completes to cut to the accounting period at current time by issuing switch acknowledgment message to server
It changes.
2. the intelligent control method of electronization accounting period as described in claim 1, which is characterized in that described by the number
Accreditation processing is carried out according to record input accreditation processing model, and after the completion of accreditation, adds the accreditation for the data record
Before mark, further includes:
Obtain a plurality of sample data record for not carrying the accreditation mark;
The setting instruction issued according to user, determines record corresponding accreditation algorithm with sample data described in each item respectively;
The account type and reason identification code of the sample data record are obtained, the reason identification code is for indicating the system
Demonstrate,prove the deficiency reason of mark;
Based on sample data described in each record the account type, the reason identification code and the accreditation algorithm,
Processing is trained to the shot and long term memory network model of initialization, and by the shot and long term memory network mould after the completion of training
Type output is that the accreditation handles model.
3. the intelligent control method of electronization accounting period as claimed in claim 2, which is characterized in that the accreditation algorithm packet
It includes valence tax and splits algorithm, it is described that data record input accreditation processing model is subjected to accreditation processing, and after the completion of accreditation,
The accreditation mark is added for the data record, comprising:
Model is handled based on accreditation, obtains the characteristic information of the data record, the characteristic information includes creation duration, insurance kind
Type, charge type and source identification;
For data record described in each, obtain it includes each single item described in the corresponding identifier of characteristic information institute;
Generate the character string comprising every identifier;
Based on the pre-loaded tax rate table of comparisons, the tax rate corresponding with the character string is determined, and according to the tax rate, calculate and close
In the amount of tax to be paid and sales volume of the data record.
4. the intelligent control method of electronization accounting period as claimed in claim 3, which is characterized in that described based on preparatory
The tax rate table of comparisons of load determines the tax rate corresponding with the character string, and according to the tax rate, calculates and remember about the data
After the amount of tax to be paid and sales volume of record, further includes:
In the book keeping operation report, valence tax is added for the data record and splits label;
The data record that the valence tax splits label is not carried if detecting and existing in the book keeping operation report, by this number
It is determined as not carrying the data record of accreditation mark according to record.
5. the switching method of accounting period as described in claim 1, which is characterized in that described input the data record is made
Card processing model carries out accreditation processing, comprising:
Data record described in each item for not carrying accreditation mark is stored in multiple and different information banks respectively;
For each described information storehouse, the information bank is enabled to start one for executing the worker thread of accreditation processing operation, and
Record the starting duration of the worker thread;
If the starting duration for detecting worker thread described in any described information storehouse is more than the second preset threshold, the work is terminated
Make thread, and restarts in the information bank for executing another described worker thread of accreditation processing operation.
6. a kind of terminal device, including memory and processor, it is stored with and can transports on the processor in the memory
Capable computer program, which is characterized in that the processor realizes following steps when executing the computer program:
Obtain the book keeping operation report that operation system uploads;
If the difference of switching time and present system time triggers accreditation school less than the first preset threshold during presetting
Event is tested, the accreditation verification event is used to detect in the book keeping operation report with the presence or absence of the data note for not carrying accreditation mark
Record;
If there is the data record for not carrying accreditation mark in the book keeping operation report, by data record input accreditation processing
Model carries out accreditation processing, and after the completion of accreditation, adds the accreditation mark for the data record;
If data record described in each in the book keeping operation report carries the accreditation mark, data described in each item are remembered
Address book stored triggers the server and completes to cut to the accounting period at current time by issuing switch acknowledgment message to server
It changes.
7. terminal device as claimed in claim 6, which is characterized in that when the processor executes the computer program, also
Realize following steps:
Obtain a plurality of sample data record for not carrying the accreditation mark;
The setting instruction issued according to user, determines record corresponding accreditation algorithm with sample data described in each item respectively;
The account type and reason identification code of the sample data record are obtained, the reason identification code is for indicating the system
Demonstrate,prove the deficiency reason of mark;
Based on sample data described in each record the account type, the reason identification code and the accreditation algorithm,
Processing is trained to the shot and long term memory network model of initialization, and by the shot and long term memory network mould after the completion of training
Type output is that the accreditation handles model.
8. terminal device as claimed in claim 7, which is characterized in that the accreditation algorithm includes that valence tax splits algorithm, described
Data record input accreditation processing model is subjected to accreditation processing, and after the completion of accreditation, is added for the data record
The accreditation mark, comprising:
Model is handled based on accreditation, obtains the characteristic information of the data record, the characteristic information includes creation duration, insurance kind
Type, charge type and source identification;
For data record described in each, obtain it includes each single item described in the corresponding identifier of characteristic information institute;
Generate the character string comprising every identifier;
Based on the pre-loaded tax rate table of comparisons, the tax rate corresponding with the character string is determined, and according to the tax rate, calculate and close
In the amount of tax to be paid and sales volume of the data record.
9. terminal device as claimed in claim 8, which is characterized in that when the processor executes the computer program, also
Realize following steps:
In the book keeping operation report, valence tax is added for the data record and splits label;
The data record that the valence tax splits label is not carried if detecting and existing in the book keeping operation report, by this number
It is determined as not carrying the data record of accreditation mark according to record.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810933624.7A CN109255692B (en) | 2018-08-16 | 2018-08-16 | Intelligent control method, terminal equipment and medium for electronic accounting period |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810933624.7A CN109255692B (en) | 2018-08-16 | 2018-08-16 | Intelligent control method, terminal equipment and medium for electronic accounting period |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109255692A true CN109255692A (en) | 2019-01-22 |
CN109255692B CN109255692B (en) | 2023-06-27 |
Family
ID=65050191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810933624.7A Active CN109255692B (en) | 2018-08-16 | 2018-08-16 | Intelligent control method, terminal equipment and medium for electronic accounting period |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109255692B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8332286B1 (en) * | 2007-08-09 | 2012-12-11 | Lopes Ricardo A Georg | Accounting accuracy methodology |
CN103854145A (en) * | 2014-03-28 | 2014-06-11 | 山东天利和软件有限公司 | Verification rule base based production energy data processing system |
CN107657516A (en) * | 2016-07-24 | 2018-02-02 | 平安科技(深圳)有限公司 | Generate the method and financial server of voucher |
CN107679819A (en) * | 2017-06-12 | 2018-02-09 | 平安科技(深圳)有限公司 | Financial data processing method, device, computer equipment and storage medium |
CN107784579A (en) * | 2017-08-30 | 2018-03-09 | 平安科技(深圳)有限公司 | Accreditation method, apparatus, storage medium and computer equipment |
-
2018
- 2018-08-16 CN CN201810933624.7A patent/CN109255692B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8332286B1 (en) * | 2007-08-09 | 2012-12-11 | Lopes Ricardo A Georg | Accounting accuracy methodology |
CN103854145A (en) * | 2014-03-28 | 2014-06-11 | 山东天利和软件有限公司 | Verification rule base based production energy data processing system |
CN107657516A (en) * | 2016-07-24 | 2018-02-02 | 平安科技(深圳)有限公司 | Generate the method and financial server of voucher |
CN107679819A (en) * | 2017-06-12 | 2018-02-09 | 平安科技(深圳)有限公司 | Financial data processing method, device, computer equipment and storage medium |
CN107784579A (en) * | 2017-08-30 | 2018-03-09 | 平安科技(深圳)有限公司 | Accreditation method, apparatus, storage medium and computer equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109255692B (en) | 2023-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Lee et al. | Global stock market prediction based on stock chart images using deep Q-network | |
CN108985553A (en) | A kind of recognition methods and equipment of abnormal user | |
CN110516418A (en) | A kind of operation user identification method, device and equipment | |
CN109831531A (en) | Job seeker resume method for pushing and device and task method for pushing and device | |
CN109697667B (en) | Quota management and control method and device based on trust mode | |
CN110288193A (en) | Mission Monitor processing method, device, computer equipment and storage medium | |
CN108446355A (en) | Investment and financing event argument abstracting method, device and equipment | |
CN109711794A (en) | It is assisted based on the project management of artificial intelligence and machine learning | |
CN111951050B (en) | Financial product recommendation method and device | |
CN109583629A (en) | Improved similar historical day short-term load forecasting method and device based on deviation self-correcting | |
Sprangers et al. | Probabilistic gradient boosting machines for large-scale probabilistic regression | |
CN108492170A (en) | A kind of repayment method, computer readable storage medium and terminal device | |
CN108287708A (en) | A kind of data processing method, device, server and computer readable storage medium | |
CN108875778A (en) | Face cluster method, apparatus, system and storage medium | |
CN110764902A (en) | Virtual resource allocation method and device based on AI (Artificial Intelligence), computer equipment and storage medium | |
CN109754290A (en) | A kind for the treatment of method and apparatus of game data | |
CN106844550A (en) | Method and device is recommended in a kind of virtual platform operation | |
CN109544014A (en) | Anti- fraud method and device based on historical data playback | |
CN110263136B (en) | Method and device for pushing object to user based on reinforcement learning model | |
CN108681871A (en) | A kind of method of prompt message, terminal device and computer readable storage medium | |
CN112381169B (en) | Image identification method and device, electronic equipment and readable storage medium | |
CN109588054A (en) | Accurate and detailed modeling using distributed simulation engine to the system with large complicated data set | |
CN109255692A (en) | Intelligent control method, terminal device and the medium of electronic accounting period | |
CN110009159A (en) | Financial Loan Demand prediction technique and system based on network big data | |
CN107315807A (en) | Talent recommendation method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |