CN109344369A - Voucher production method and terminal device based on initial value verification - Google Patents
Voucher production method and terminal device based on initial value verification Download PDFInfo
- Publication number
- CN109344369A CN109344369A CN201810961245.9A CN201810961245A CN109344369A CN 109344369 A CN109344369 A CN 109344369A CN 201810961245 A CN201810961245 A CN 201810961245A CN 109344369 A CN109344369 A CN 109344369A
- Authority
- CN
- China
- Prior art keywords
- initial value
- value
- numerical value
- corresponding numerical
- record table
- 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 OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/194—Calculation of difference between files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention is suitable for technical field of data processing, provides the method and terminal device of a kind of voucher production based on initial value verification, the corresponding relationship of data category and numerical value is recorded by engineering record table;In manual amendment's instruction that user's input is not detected, calculate the difference in engineering record table between first stage initial value generation time corresponding numerical value and second stage initial value generation time corresponding numerical value, as time difference, if time difference is not less than preset time threshold, then pass through the corresponding initial value difference value of time difference described in preset regression equation calculation, and with this renewal project record sheet, when engineering record table in the updated meets logic verify rule and regular various verification, generate engineering accreditation table, to improve the actual effect of data in engineering record table, and it reduces update and verifies the human cost of data.
Description
Technical field
The invention belongs to technical field of data processing more particularly to a kind of voucher production methods and end based on initial value verification
End equipment.
Background technique
In engineering, " initial value " i.e. " original value " is the parameter of the value of a common description engineering subject matter, by
It is in the expense accreditation scene of all kinds of engineerings more complicated, there is the initial value in two stages, i.e. completed papers under normal circumstances
The initial value of initial value and accounts settling phase.Completed papers initial value is the contract value of engineering, but in accounts settling phase, settlement amounts can
All kinds of surcharges, such as trustship expense, the defaulted amount of money and all kinds of service charges can occur, this is just due to the extension of time
Resulting in settlement amounts, there is any discrepancy with contract value.In addition there are also some actual scenes (situations such as such as contract subtract rent, throw a lease), no
Initial value with the stage also will appear difference.
During the accreditation of existing engineering cost, lack the accreditation method of unified automation, it is difficult to quickly and accurately
Judge whether the initial value of different phase meets accreditation requirement, is asked in accreditation in the presence of verification inaccuracy and accreditation low efficiency
Topic.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of voucher production method and terminal device based on initial value verification,
To solve the problems, such as that the prior art existing the degree of automation during voucher production is low.
The first aspect of the embodiment of the present invention provides a kind of voucher production method based on initial value verification, comprising:
Initial engineering record table is obtained, the engineering record table records the corresponding relationship of data category and numerical value, described
Data category includes: first stage initial value, second stage initial value, first stage initial value generates the time, second stage initial value generates
Time and initial value adjust number;
Detect whether that the manual amendment for receiving user's input instructs;
If not receiving manual amendment's instruction of user's input, first stage initial value described in the engineering record table is calculated
The difference between time corresponding numerical value and second stage initial value generation time corresponding numerical value is generated, as the time difference
Value;
If the time difference is not less than preset time threshold, pass through the time difference described in preset regression equation calculation
It is worth corresponding initial value difference value, and the initial value difference value is corresponding as the adjustment number of initial value described in the engineering record table
Numerical value, to update the engineering record table;
If the corresponding numerical value of first stage initial value, second stage initial value in the updated engineering record table are corresponding
Numerical value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check rule simultaneously, then for more
Engineering record table distribution voucher number and accreditation date after new, generate engineering accreditation table.
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, when the processor executes the computer program,
Realize following steps:
Initial engineering record table is obtained, the engineering record table records the corresponding relationship of data category and numerical value, described
Data category includes: first stage initial value, second stage initial value, first stage initial value generates the time, second stage initial value generates
Time and initial value adjust number;
Detect whether that the manual amendment for receiving user's input instructs;
If not receiving manual amendment's instruction of user's input, first stage initial value described in the engineering record table is calculated
The difference between time corresponding numerical value and second stage initial value generation time corresponding numerical value is generated, as the time difference
Value;
If the time difference is not less than preset time threshold, pass through the time difference described in preset regression equation calculation
It is worth corresponding initial value difference value, and the initial value difference value is corresponding as the adjustment number of initial value described in the engineering record table
Numerical value, to update the engineering record table;
If the corresponding numerical value of first stage initial value, second stage initial value in the updated engineering record table are corresponding
Numerical value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check rule simultaneously, then for more
Engineering record table distribution voucher number and accreditation date after new, generate engineering accreditation table.
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:
Initial engineering record table is obtained, the engineering record table records the corresponding relationship of data category and numerical value, described
Data category includes: first stage initial value, second stage initial value, first stage initial value generates the time, second stage initial value generates
Time and initial value adjust number;Detect whether that the manual amendment for receiving user's input instructs;If not receiving the people of user's input
Work modification instruction then calculates first stage initial value described in the engineering record table and generates time corresponding numerical value and described the
Two-stage initial value generates the difference between time corresponding numerical value, as time difference;If the time difference is not less than default
Time threshold, then by the corresponding initial value difference value of time difference described in preset regression equation calculation, and by the initial value
Difference value is as the corresponding numerical value of the adjustment number of initial value described in the engineering record table, to update the engineering record table;If
The corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value and institute in the updated engineering record table
It states the corresponding numerical value of initial value adjustment number while meeting logic verify rule and format check rule, be then updated described
Engineering record table distributes voucher number and accreditation date, generates engineering accreditation table.
Optionally, before the initial engineering record table of the acquisition, further includes:
Training data set is obtained, the training data set includes preset quantity time difference and initial value difference value
Corresponding relationship, in the training data set each corresponding relationship according to the time difference size ordered arrangement;
Pass through the first formula:It calculates
Parameter A and parameter B, it is describedThe WiFor i-th of time difference pair in the training data set
The weight coefficient answered, the Dis ' are the average value of whole initial value difference values in the training data set, the Time '
For the average value of All Time difference in the training data set, the DisiIt is former for i-th in the training data set
It is worth difference value, the TimeiFor i-th time difference in the training data set, the e is natural constant, and the n is
The preset quantity;Regression model will be brought by first formula calculated parameter A and the parameter B: Dis=A
×TimeB, to generate regression equation, the Dis is the initial value difference value, and Time is the time difference.
Optionally, after described to update the engineering record table, further include
Judge that format, the second stage of the corresponding numerical value of first stage initial value in the updated engineering record table are former
Whether the format of the format and the corresponding numerical value of initial value adjustment number that are worth corresponding numerical value belongs to preset format set;
Pass through the second formula: Err=val1-val2-Dif calculates accreditation error amount, and the val1 is corresponding for the first stage initial value
Numerical value, the val2 is the corresponding numerical value of the second stage initial value, and the Dif is that the initial value adjusts the corresponding number of number
Value;If accreditation error amount, which is less than, presets error threshold, and the corresponding numerical value of first stage initial value in the engineering record table
The format of format, the format of the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number belongs to pre-
If format set, then determine the corresponding numerical value of first stage initial value in the updated engineering record table, second stage
The corresponding numerical value of initial value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check simultaneously
Rule.
Optionally, further includes:
If the corresponding numerical value of first stage initial value, second stage initial value in the updated engineering record table are corresponding
Numerical value and the corresponding numerical value of initial value adjustment number do not meet logic verify rule and format check rule simultaneously, then adjust
With preset adjustment thread, the engineering record table is adjusted, and shows accreditation error message.
Optionally, further includes: if receiving manual amendment's instruction of user's input, parse in manual amendment's instruction
The modified values for including;Using the modified values as the corresponding numerical value of the adjustment number of initial value described in the engineering record table, with more
The new engineering record table.
In embodiments of the present invention, the corresponding relationship of data category and numerical value is recorded by engineering record table;It is not detecting
When the manual amendment's instruction inputted to user, calculate first stage initial value in engineering record table generate time corresponding numerical value and
Second stage initial value generates the difference between time corresponding numerical value, as time difference, if time difference is not less than preset
Time threshold, then by the corresponding initial value difference value of time difference described in preset regression equation calculation, and with this renewal project
Record sheet generates engineering accreditation table when engineering record table in the updated meets logic verify rule and regular various verification,
To improve the actual effect of data in engineering record table, and reduces update and verify the human cost of 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 voucher production method provided in an embodiment of the present invention based on initial value verification;
Fig. 2 is the structural block diagram of the voucher producing device provided in an embodiment of the present invention based on initial value verification;
Fig. 3 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 voucher production method provided in an embodiment of the present invention based on initial value verification, the party
Method process includes step S101 to S108.The specific implementation principle of each step is as follows.
S101: obtaining initial engineering record table, and the engineering record table records the corresponding relationship of data category and numerical value,
The data category includes: first stage initial value, second stage initial value, first stage initial value generation time, second stage initial value
It generates the time and initial value adjusts number.
In embodiments of the present invention, original engineering record table can be to only include data category but the sky without corresponding numerical value
Table is also possible to the record sheet that partial data classification has corresponding numerical value.By taking the decoration cost of workplace as an example, first stage initial value can be with
It is the contract value of completed papers, second stage initial value can be the settlement amounts of accounts settling phase, wherein the contract of completed papers
The amount of money can be filled in advance at the first stage initial value into original engineering record table;Furthermore first stage initial value generates the time
It can also be written in advance.It is to be appreciated that the numerical value not being written in original engineering record table, can fill in line according to preset
Journey is gradually inserted during subsequent.
On the other hand, in engineering record table the corresponding numerical value of each data type be also it is variable, in the embodiment of the present invention
In, the variation of numerical value is realized by two ways in engineering record table.The first, the manual amendment for receiving user's input refers to
It enables;Second, the difference of time, its corresponding initial value difference by preset regression equation calculation are generated based on two initial values
Value, reuses initial value difference value and is adjusted to engineering record table, wherein specific calculating process will be explained below.
S102: it detects whether to receive manual amendment's instruction of user's input.
S103 parses repairing of including in manual amendment instruction if receiving manual amendment's instruction of user's input
Revaluate.
Optionally, the corresponding numerical value of number is adjusted using the modified values as initial value described in the engineering record table, with
Update the engineering record table.
It is to be appreciated that before the update, the initial value adjustment number of engineering record table has its corresponding numerical value, this numerical value
It can be null value, after the updating, the modified values are instead of the original corresponding numerical value of initial value adjustment number.
S104 calculates the first rank described in the engineering record table if not receiving manual amendment's instruction of user's input
Section initial value generates the difference between time corresponding numerical value and second stage initial value generation time corresponding numerical value, as
Time difference.
S105, judges whether the time difference is less than preset time threshold.
S106, if the time difference is less than preset time threshold, not to the corresponding number of the original adjustment number
Value is adjusted.
It is to be appreciated that under the premise of being not received by manual amendment's instruction, in embodiments of the present invention, if the time
Difference is sufficiently small, then the difference between the corresponding numerical value of first stage initial value numerical value corresponding with second stage initial value should not be with
Original adjustment number has biggish difference, so not being automatically adjusted to the corresponding numerical value of original adjustment number.
It is to be appreciated that if in the case where not changing the corresponding numerical value of original adjustment number, first stage initial value,
Two-stage initial value and initial value adjustment number do not meet preset logic verify rule, then prove at least one data category pair
There are abnormal conditions for the numerical value answered, then not generate voucher.
S107, if the time difference is not less than preset time threshold, by described in preset regression equation calculation
The corresponding initial value difference value of time difference, and number is adjusted using the initial value difference value as initial value described in the engineering record table
The corresponding numerical value of volume, to update the engineering record table.
Notably, in embodiments of the present invention, regression equation has been set in advance, when progress to this step
When, it is only necessary to it brings the time difference determined in above-mentioned steps into regression equation, the corresponding initial value of time difference can be solved
Difference value.
Optionally, before the initial engineering record table of the acquisition, further includes:
Training data set is obtained, the training data set includes preset quantity time difference and initial value difference value
Corresponding relationship, in the training data set each corresponding relationship according to the time difference size ordered arrangement.
Optionally, pass through the first formula:
Calculating parameter A and parameter B, it is describedThe WiFor i-th of time difference in the training data set
It is worth corresponding weight coefficient, the Dis ' is the average value of whole initial value difference values in the training data set, described
Time ' is the average value of All Time difference in the training data set, the DisiIt is in the training data set
I initial value difference value, the TimeiFor i-th of time difference in the training data set, the e is natural constant, described
N is the preset quantity.
It is to be appreciated that by first formula calculated parameter A and the parameter B into regression model will be brought:
Dis=A × TimeB, to generate regression equation, the Dis is the initial value difference value, and Time is the time difference.
Notably, according to the calculated parameter B of actual data, often value is therefore entire in 1~1.1 section
Regression equation is in fact a more gentle power function curve in the lesser section of time difference.
S108 judges that the corresponding numerical value of first stage initial value in the updated engineering record table, second stage are former
Be worth corresponding numerical value and the corresponding numerical value of initial value adjustment number whether and meanwhile meet that logic verify is regular and format school
Test rule.
It is to be appreciated that this judgment step mainly includes that two sons judge, first: judging the updated engineering record
The format of the corresponding numerical value of first stage initial value in table, the format of the corresponding numerical value of second stage initial value and the initial value tune
Whether the format of the corresponding numerical value of integer volume belongs to preset format set;Second: being judged by preset logic verify rule
Whether the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number accord with
Preset logic.
Optionally, preset format set includes digit, default system and the preset characters type after default decimal point
Deng.
Optionally, after the update engineering record table, the preset logic verify rule that passes through of progress judges
Whether the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number accord with
Preset logic, comprising:
Optionally, passing through the second formula: Err=val1-val2-Dif calculates accreditation error amount, and the val1 is described the
The corresponding numerical value of one stage initial value, the val2 are the corresponding numerical value of the second stage initial value, and the Dif is the initial value tune
The corresponding numerical value of integer volume.
It is to be appreciated that if accreditation error amount is less than default error threshold, and the first stage in the engineering record table
The format of the corresponding numerical value of initial value, the format of the corresponding numerical value of second stage initial value and the corresponding number of initial value adjustment number
The format of value belongs to preset format set, then determines that the first stage initial value in the updated engineering record table is corresponding
Numerical value, the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number meet logic verify rule simultaneously
Then and format check is regular.
S109, if the corresponding numerical value of first stage initial value, second stage initial value in the updated engineering record table
Corresponding numerical value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check rule simultaneously,
Voucher number and accreditation date then are distributed for the updated engineering record table, generates engineering accreditation table.
S1010, if the corresponding numerical value of first stage initial value, second stage initial value in the updated engineering record table
Corresponding numerical value and the corresponding numerical value of initial value adjustment number do not meet logic verify rule and format check rule simultaneously
Then, then preset adjustment thread is called, the engineering record table is adjusted, and show accreditation error message.
Optionally, the adjustment thread includes actively sending inquiry message to user, to receive the artificial of user's input
Adjustment instruction, and then parse to manually adjust in instruction and be corresponded to comprising the corresponding numerical value of first stage initial value or second stage initial value
Numerical value.
Notably, in embodiments of the present invention, manually adjusting instruction with manual amendment's instruction is two kinds entirely different
Instruction.Wherein, only comprising the corresponding numerical value of initial value adjustment number in the manual amendment's instruction mentioned in S103, and do not include
The corresponding numerical value of first stage initial value or the corresponding numerical value of second stage initial value.And the instruction that manually adjusts in this step includes
Be the corresponding numerical value of first stage initial value or the corresponding numerical value of second stage initial value, and it is corresponding not include initial value adjustment number
Numerical value.
It is to be appreciated that the embodiment of the present invention records the corresponding relationship of data category and numerical value by engineering record table;?
When manual amendment's instruction of user's input is not detected, calculates first stage initial value in engineering record table and generate time corresponding number
Value and second stage initial value generate the difference between time corresponding numerical value, as time difference, if time difference is not less than
Preset time threshold, then by the corresponding initial value difference value of time difference described in preset regression equation calculation, and more with this
Newly built construction record sheet generates engineering when engineering record table in the updated meets logic verify rule and regular various verification
Accreditation table to improve the actual effect of data in engineering record table, and reduces update and verifies the human cost of data.
Corresponding to the voucher production method based on initial value verification described in foregoing embodiments, Fig. 2 shows implementations of the present invention
The structural block diagram for the voucher producing device based on initial value verification that example provides illustrates only and present invention reality for ease of description
Apply the relevant part of example.
Referring to Fig. 2, which includes:
Module 201 is obtained, for obtaining initial engineering record table, the engineering record table records data category and numerical value
Corresponding relationship, the data category includes: that first stage initial value, second stage initial value, first stage initial value generate time, the
Two-stage initial value generates the time and initial value adjusts number;
Detection module 202, for detecting whether receiving manual amendment's instruction of user's input;
Computing module 203, if manual amendment's instruction for not receiving user's input, calculates in the engineering record table
The first stage initial value generates time corresponding numerical value and the second stage initial value generates between time corresponding numerical value
Difference, as time difference;
Update module 204 passes through preset recurrence side if being not less than preset time threshold for the time difference
Journey calculates the corresponding initial value difference value of the time difference, and using the initial value difference value as described in the engineering record table
Initial value adjusts the corresponding numerical value of number, to update the engineering record table;
Make module 205, if in the updated engineering record table the corresponding numerical value of first stage initial value, the
The corresponding numerical value of two-stage initial value and the corresponding numerical value of initial value adjustment number meet logic verify rule simultaneously to pass
Formula verification rule, then distribute voucher number and accreditation date for the updated engineering record table, generate engineering accreditation table.
Optionally, described device further include:
Set obtains module, and for obtaining training data set, the training data set includes the preset quantity time
The corresponding relationship of difference and initial value difference value, each corresponding relationship is according to the big of the time difference in the training data set
Small ordered arrangement;
Fitting module, for passing through the first formula:
Calculating parameter A and parameter B, it is describedThe WiFor i-th of time difference in the training data set
It is worth corresponding weight coefficient, the Dis ' is the average value of whole initial value difference values in the training data set, described
Time ' is the average value of All Time difference in the training data set, the DisiIt is in the training data set i-th
A initial value difference value, the TimeiFor i-th of time difference in the training data set, the e is natural constant, described
N is the preset quantity;
Generation module, for recurrence mould will to be brought by first formula calculated parameter A and the parameter B
Type: Dis=A × TimeB, to generate regression equation, the Dis is the initial value difference value, and Time is the time difference.
Optionally, described device includes:
Judgment module, for judge the corresponding numerical value of first stage initial value in the engineering record table format, second
Whether the format of the format of the corresponding numerical value of stage initial value and the corresponding numerical value of initial value adjustment number belongs to preset lattice
Formula set;
Error calculating module, for passing through the second formula: Err=val1-val2-Dif calculates accreditation error amount, described
Val1 is the corresponding numerical value of the first stage initial value, and the val2 is the corresponding numerical value of the second stage initial value, the Dif
The corresponding numerical value of number is adjusted for the initial value;
Determination module, if being less than default error threshold, and the first rank in the engineering record table for accreditation error amount
The format of the corresponding numerical value of section initial value, the format of the corresponding numerical value of second stage initial value and initial value adjustment number are corresponding
The format of numerical value belongs to preset format set, then determines the first stage initial value pair in the updated engineering record table
Numerical value, the corresponding numerical value of second stage initial value and the initial value answered adjust the corresponding numerical value of number while meeting logic verify
Rule and format check rule.
Optionally, described device further include:
Report an error module, if in the updated engineering record table the corresponding numerical value of first stage initial value, second
The corresponding numerical value of stage initial value and the corresponding numerical value of initial value adjustment number do not meet logic verify rule simultaneously to pass
Formula verification rule, then call preset adjustment thread, be adjusted to the engineering record table, and show accreditation error message.
Optionally, described device further include:
Parsing module parses in manual amendment's instruction if manual amendment's instruction for receiving user's input
The modified values for including;
Module is adjusted, for using the modified values as the corresponding number of the adjustment number of initial value described in the engineering record table
Value, to update the engineering record table.
In embodiments of the present invention, the corresponding relationship of data category and numerical value is recorded by engineering record table;It is not detecting
When the manual amendment's instruction inputted to user, calculate first stage initial value in engineering record table generate time corresponding numerical value and
Second stage initial value generates the difference between time corresponding numerical value, as time difference, if time difference is not less than preset
Time threshold, then by the corresponding initial value difference value of time difference described in preset regression equation calculation, and with this renewal project
Record sheet generates engineering accreditation table when engineering record table in the updated meets logic verify rule and regular various verification,
To improve the actual effect of data in engineering record table, and reduces update and verify the human cost of data.
Fig. 3 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 3, the terminal of the embodiment is set
Standby 3 include: processor 30, memory 31 and are stored in the meter that can be run in the memory 31 and on the processor 30
Calculation machine program 32, such as the voucher production process based on initial value verification.When the processor 30 executes the computer program 32
Realize it is above-mentioned it is each based on initial value verification voucher production embodiment of the method in step, such as step 101 shown in FIG. 1 to
1010.Alternatively, the processor 30 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program 32
The function of member, such as the function of unit 201 to 205 shown in Fig. 2.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are executed by the processor 30, 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 32 in the terminal device 3 is described.
The terminal device 3 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 30, memory 31.It will be understood by those skilled in the art that Fig. 3
The only example of terminal device 3 does not constitute the restriction to terminal device 3, 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 30 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 31 can be the internal storage unit of the terminal device 3, for example, terminal device 3 hard disk or
Memory.The memory 31 is also possible to the External memory equipment of the terminal device 3, such as is equipped on the terminal device 3
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card,
Flash card (Flash Card) etc..Further, the memory 31 can also both include the storage inside of the terminal device 3
Unit also includes External memory equipment.The memory 31 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of voucher production method based on initial value verification characterized by comprising
Initial engineering record table is obtained, the engineering record table records the corresponding relationship of data category and numerical value, the data
Classification includes: first stage initial value, second stage initial value, first stage initial value generates the time, second stage initial value generates the time
And initial value adjusts number;
Detect whether that the manual amendment for receiving user's input instructs;
If not receiving manual amendment's instruction of user's input, the generation of first stage initial value described in the engineering record table is calculated
Time corresponding numerical value and the second stage initial value generate the difference between time corresponding numerical value, as time difference;
If the time difference is not less than preset time threshold, pass through time difference pair described in preset regression equation calculation
The initial value difference value answered, and using the initial value difference value as the corresponding number of the adjustment number of initial value described in the engineering record table
Value, to update the engineering record table;
If the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value in the updated engineering record table
And the corresponding numerical value of initial value adjustment number meets logic verify rule and format check rule simultaneously, then to update after
Engineering record table distribution voucher number and accreditation date, generate engineering accreditation table.
2. the voucher production method as described in claim 1 based on initial value verification, which is characterized in that obtained initially described
Before engineering record table, further includes:
Training data set is obtained, the training data set includes that preset quantity time difference is corresponding with initial value difference value
Relationship, in the training data set each corresponding relationship according to the time difference size ordered arrangement;
Pass through the first formula:Calculating parameter A
It is described with parameter BThe WiFor the corresponding power of i-th of time difference in the training data set
Weight coefficient, the Dis ' are the average value of whole initial value difference values in the training data set, and the Time ' is described
The average value of All Time difference in training data set, the DisiFor i-th of initial value difference in the training data set
Value, the TimeiFor i-th of time difference in the training data set, the e is natural constant, and the n is described default
Quantity;
Regression model will be brought by first formula calculated parameter A and the parameter B: Dis=A × TimeB, with
Regression equation is generated, the Dis is the initial value difference value, and Time is the time difference.
3. the voucher production method as described in claim 1 based on initial value verification, which is characterized in that described described in update
After engineering record table, further includes:
Judge format, the second stage initial value pair of the corresponding numerical value of first stage initial value in the updated engineering record table
Whether the format of the format for the numerical value answered and the corresponding numerical value of initial value adjustment number belongs to preset format set;
Pass through the second formula: Err=val1-val2-Dif calculates accreditation error amount, and the val1 is the first stage initial value
Corresponding numerical value, the val2 are the corresponding numerical value of the second stage initial value, and the Dif is that initial value adjustment number is corresponding
Numerical value;
If accreditation error amount, which is less than, presets error threshold, and the corresponding numerical value of first stage initial value in the engineering record table
The format of format, the format of the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number belongs to pre-
If format set, then determine the corresponding numerical value of first stage initial value in the updated engineering record table, second stage
The corresponding numerical value of initial value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check simultaneously
Rule.
4. the voucher production method as described in claim 1 based on initial value verification, which is characterized in that further include:
If the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value in the updated engineering record table
And the initial value adjusts the corresponding numerical value of number and does not meet logic verify rule and format check rule simultaneously, then calls pre-
If adjustment thread, the engineering record table is adjusted, and show accreditation error message.
5. the voucher production method as described in claim 1 based on initial value verification, which is characterized in that further include:
If receiving manual amendment's instruction of user's input, the modified values for including in manual amendment's instruction are parsed;
Using the modified values as the corresponding numerical value of the adjustment number of initial value described in the engineering record table, to update the engineering
Record sheet.
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 when the processor executes the computer program, realize following steps:
Initial engineering record table is obtained, the engineering record table includes the corresponding relationship of multiple data categories and numerical value, described
Data category includes: first stage initial value, second stage initial value, first stage initial value generates the time, second stage initial value generates
Time and initial value adjust number;
Detect whether that the manual amendment for receiving user's input instructs;
If not receiving manual amendment's instruction of user's input, the generation of first stage initial value described in the engineering record table is calculated
Time corresponding numerical value and the second stage initial value generate the difference between time corresponding numerical value, as time difference;
If the time difference is not less than preset time threshold, pass through time difference pair described in preset regression equation calculation
The initial value difference value answered, and using the initial value difference value as the corresponding number of the adjustment number of initial value described in the engineering record table
Value, to update the engineering record table;
If the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value in the updated engineering record table
And the corresponding numerical value of initial value adjustment number meets logic verify rule and format check rule simultaneously, then to update after
Engineering record table distribution voucher number and accreditation date, to generate engineering accreditation table.
7. terminal device as claimed in claim 6, which is characterized in that before the initial engineering record table of the acquisition, also
Include:
Training data set is obtained, the training data set includes that preset quantity time difference is corresponding with initial value difference value
Relationship, in the training data set each corresponding relationship according to the time difference size ordered arrangement;
Pass through the first formula:Calculating parameter A
It is described with parameter BThe WiFor the corresponding power of i-th of time difference in the training data set
Weight coefficient, the Dis ' are the average value of whole initial value difference values in the training data set, and the Time ' is described
The average value of All Time difference in training data set, the DisiFor i-th of initial value difference in the training data set
Value, the TimeiFor i-th of time difference in the training data set, the e is natural constant;
Regression model will be brought by first formula calculated parameter A and the parameter B: Dis=A × TimeB, institute
Stating Dis is the initial value difference value, and Time is the time difference, to generate regression equation.
8. terminal device as claimed in claim 6, which is characterized in that it is described to update the engineering record table after, also
Include:
Judge format, the second stage initial value pair of the corresponding numerical value of first stage initial value in the updated engineering record table
Whether the format of the format for the numerical value answered and the corresponding numerical value of initial value adjustment number belongs to preset format set;
Pass through the second formula: Err=val1-val2-Dif calculates accreditation error amount, and the val1 is the first stage initial value
Corresponding numerical value, the val2 are the corresponding numerical value of the second stage initial value, and the Dif is that initial value adjustment number is corresponding
Numerical value;
If accreditation error amount, which is less than, presets error threshold, and the corresponding numerical value of first stage initial value in the engineering record table
The format of format, the format of the corresponding numerical value of second stage initial value and the corresponding numerical value of initial value adjustment number belongs to pre-
If format set, then determine the corresponding numerical value of first stage initial value in the updated engineering record table, second stage
The corresponding numerical value of initial value and the corresponding numerical value of initial value adjustment number meet logic verify rule and format check simultaneously
Rule.
9. terminal device as claimed in claim 6, which is characterized in that further include:
If the corresponding numerical value of first stage initial value, the corresponding numerical value of second stage initial value in the updated engineering record table
And the initial value adjusts the corresponding numerical value of number and does not meet logic verify rule and format check rule simultaneously, then calls pre-
If adjustment thread, the engineering record table is adjusted, and show accreditation error message.
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 |
|---|---|---|---|
| CN201810961245.9A CN109344369B (en) | 2018-08-22 | 2018-08-22 | Certificate making method based on original value verification and terminal equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810961245.9A CN109344369B (en) | 2018-08-22 | 2018-08-22 | Certificate making method based on original value verification and terminal equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109344369A true CN109344369A (en) | 2019-02-15 |
| CN109344369B CN109344369B (en) | 2023-04-07 |
Family
ID=65291639
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810961245.9A Active CN109344369B (en) | 2018-08-22 | 2018-08-22 | Certificate making method based on original value verification and terminal equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109344369B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100088278A1 (en) * | 2005-10-17 | 2010-04-08 | Wood George W | Network file update mechanism with integrity assurance |
| US20150339943A1 (en) * | 2014-04-30 | 2015-11-26 | Faud Khan | Methods and systems relating to training and certification |
| CN107958370A (en) * | 2017-12-04 | 2018-04-24 | 国网河北省电力公司经济技术研究院 | Project cost data verification method and terminal device |
-
2018
- 2018-08-22 CN CN201810961245.9A patent/CN109344369B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100088278A1 (en) * | 2005-10-17 | 2010-04-08 | Wood George W | Network file update mechanism with integrity assurance |
| US20150339943A1 (en) * | 2014-04-30 | 2015-11-26 | Faud Khan | Methods and systems relating to training and certification |
| CN107958370A (en) * | 2017-12-04 | 2018-04-24 | 国网河北省电力公司经济技术研究院 | Project cost data verification method and terminal device |
Non-Patent Citations (1)
| Title |
|---|
| 鲁静等: "基于图像识别的移动端原始凭证电子化智能填单系统", 《计算机工程》 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109344369B (en) | 2023-04-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113129145B (en) | Electronic evidence storing and verifying method and device based on block chain | |
| US20120143830A1 (en) | Interactive proof to validate outsourced data stream processing | |
| CN107766132A (en) | Multi-task scheduling method, application server and computer-readable recording medium | |
| CN104156832A (en) | Intersystem data verification method and device | |
| CN107562780A (en) | A kind of vehicle match method, electronic equipment and storage medium | |
| CN106407830A (en) | Detection method and device of cloud-based database | |
| CN110738477A (en) | reconciliation method, device, computer equipment and storage medium | |
| CN109582550B (en) | Method, device and server for acquiring full-service scene fault set | |
| CN105530272A (en) | Method and device for application data synchronization | |
| CN109815344B (en) | Network model training system, method, device and medium based on parameter sharing | |
| CN109066687A (en) | A kind of electric power system tide calculation method, system and electronic equipment | |
| CN109299846A (en) | A method, system and terminal equipment for reliability analysis of nuclear power plant equipment | |
| CN107908603A (en) | Dynamic generation document method and application server | |
| CN109885614A (en) | A kind of method and apparatus that data are synchronous | |
| CN107329853A (en) | Backup method, standby system and the electronic equipment of data-base cluster | |
| CN113141410A (en) | Dynamically adjusted QPS control method, system, device and storage medium | |
| CN110472109A (en) | Mobilism Data Quality Analysis method and plateform system | |
| CN106326062A (en) | Method and device for controlling running state of application program | |
| CN108614866A (en) | Internetbank client's Contribution Analysis method, apparatus and system | |
| CN104348628A (en) | Method and device for obtaining local Root authority | |
| CN109615506A (en) | Collection information processing method and system | |
| CN109348434A (en) | A kind of sending method of scene information, sending device and terminal device | |
| CN109344369A (en) | Voucher production method and terminal device based on initial value verification | |
| CN112801616B (en) | Abnormal account book processing method and device | |
| CN115774718A (en) | Data report generation method and device and electronic equipment |
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 |