CN109344369B - Certificate making method based on original value verification and terminal equipment - Google Patents

Certificate making method based on original value verification and terminal equipment Download PDF

Info

Publication number
CN109344369B
CN109344369B CN201810961245.9A CN201810961245A CN109344369B CN 109344369 B CN109344369 B CN 109344369B CN 201810961245 A CN201810961245 A CN 201810961245A CN 109344369 B CN109344369 B CN 109344369B
Authority
CN
China
Prior art keywords
value
original value
original
stage
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.)
Active
Application number
CN201810961245.9A
Other languages
Chinese (zh)
Other versions
CN109344369A (en
Inventor
林剑年
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810961245.9A priority Critical patent/CN109344369B/en
Publication of CN109344369A publication Critical patent/CN109344369A/en
Application granted granted Critical
Publication of CN109344369B publication Critical patent/CN109344369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/194Calculation of difference between files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing 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 invention is suitable for the technical field of data processing, and provides a certificate making method based on original value verification and terminal equipment, wherein the corresponding relation between data types and numerical values is recorded through an engineering record table; when the manual modification instruction input by the user is not detected, calculating a difference value between a numerical value corresponding to the first-stage original value generation time and a numerical value corresponding to the second-stage original value generation time in the engineering record table to serve as a time difference value, if the time difference value is not smaller than a preset time threshold value, calculating an original value difference value corresponding to the time difference value through a preset regression equation, updating the engineering record table according to the original value difference value, and generating an engineering proof table when the updated engineering record table meets logic verification rules and various verification rules so as to improve the effectiveness of data in the engineering record table and reduce the labor cost for updating and verifying the data.

Description

Certificate making method based on original value verification and terminal equipment
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to a certificate manufacturing method based on original value verification and terminal equipment.
Background
In engineering, "raw value", i.e., "raw value", is a commonly used parameter describing the value of an engineering subject matter, and because the cost certification scenes of various types of engineering are complicated, two phases of raw values exist in general, i.e., raw value in completion phase and raw value in settlement phase. The original value of the completion stage is the contract amount of the project, but in the settlement stage, the settlement amount may be subjected to various additional fees due to the time extension, such as escrow fee, late amount and various commission fees, which results in the settlement amount being in and out of the contract amount. In addition, there are some actual scenarios (e.g. contract lease reduction, lease withdrawal, etc.), and the original values of different stages may also be different.
In the existing process of making the certificate of engineering cost, a uniform automatic certificate making method is lacked, whether the original values at different stages meet the certificate making requirements is difficult to accurately and quickly judge, and the problems of inaccurate verification and low certificate making efficiency exist in the certificate making process.
Disclosure of Invention
In view of this, embodiments of the present invention provide a credential manufacturing method and a terminal device based on original value verification, so as to solve the problem of low automation degree in the credential manufacturing process in the prior art.
The first aspect of the embodiments of the present invention provides a credential making method based on original value verification, including:
acquiring an initial project record table, wherein the project record table records the corresponding relation between data types and numerical values, and the data types comprise: a first stage original value, a second stage original value, first stage original value generation time, second stage original value generation time and an original value adjustment amount;
detecting whether a manual modification instruction input by a user is received;
if the manual modification instruction input by the user is not received, calculating the difference value between the numerical value corresponding to the first-stage original value generation time and the numerical value corresponding to the second-stage original value generation time in the engineering record table as a time difference value;
if the time difference is not smaller than a preset time threshold, calculating an original value difference value corresponding to the time difference through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table;
if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with the logic verification rule and the format verification rule, distributing a certificate number and a certificate making date to the updated engineering record table, and generating an engineering certificate making table.
A second aspect of the embodiments of the present invention provides a terminal device, including a memory and a processor, where the memory stores a computer program that can be executed on the processor, and when the processor executes the computer program, the following steps are implemented:
acquiring an initial project record table, wherein the project record table records the corresponding relation between data types and numerical values, and the data types comprise: a first stage original value, a second stage original value, first stage original value generation time, second stage original value generation time and an original value adjustment amount;
detecting whether a manual modification instruction input by a user is received;
if the manual modification instruction input by the user is not received, calculating the difference value between the numerical value corresponding to the first-stage original value generation time and the numerical value corresponding to the second-stage original value generation time in the engineering record table as a time difference value;
if the time difference is not smaller than a preset time threshold, calculating an original value difference value corresponding to the time difference through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table;
if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with a logic verification rule and a format verification rule, distributing a certificate number and a certificate making date to the updated engineering record table, and generating an engineering certificate making table.
A third aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program, which when executed by a processor, performs the steps of:
acquiring an initial project record table, wherein the project record table records the corresponding relation between data types and numerical values, and the data types comprise: a first stage original value, a second stage original value, first stage original value generation time, second stage original value generation time and an original value adjustment amount; detecting whether a manual modification instruction input by a user is received; if the manual modification instruction input by the user is not received, calculating the difference value between the numerical value corresponding to the first-stage original value generation time and the numerical value corresponding to the second-stage original value generation time in the engineering record table as a time difference value; if the time difference value is not smaller than a preset time threshold value, calculating an original value difference value corresponding to the time difference value through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table; if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with the logic verification rule and the format verification rule, distributing a certificate number and a certificate making date to the updated engineering record table, and generating an engineering certificate making table.
Optionally, before the obtaining the initial project record table, the method further includes:
acquiring a training data set, wherein the training data set comprises corresponding relations between a preset number of time difference values and original value difference values, and the corresponding relations in the training data set are orderly arranged according to the size of the time difference values;
by a first formula:
Figure GDA0001847452150000031
calculating a parameter A and a parameter B, said>
Figure GDA0001847452150000032
W is i The weighting coefficient corresponding to the ith Time difference value in the training data set, the Dis 'is the average value of all the original value differences in the training data set, the Time' is the average value of all the Time difference values in the training data set, and the Dis i The Time is the ith original value difference value in the training data set i Obtaining the ith time difference value in the training data set, wherein e is a natural constant, and n is the preset number; substituting the parameter A and the parameter B calculated by the first formula into a regression model: dis = a × Time B And generating a regression equation, wherein Dis is the original value difference value, and Time is the Time difference value.
Optionally, after the step of updating the project record table, the method further comprises
Judging whether the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value and the format of the numerical value corresponding to the original value adjustment amount in the updated engineering record table belong to a preset format set or not; by the second formula: err = val1-val2-Dif, where val1 is a numerical value corresponding to the original value of the first stage, val2 is a numerical value corresponding to the original value of the second stage, and Dif is a numerical value corresponding to the adjustment amount of the original value; if the certification error value is smaller than a preset error threshold value, and the formats of the numerical values corresponding to the first-stage original values, the formats of the numerical values corresponding to the second-stage original values and the formats of the numerical values corresponding to the original value adjustment amounts in the engineering record table all belong to a preset format set, it is determined that the numerical values corresponding to the first-stage original values, the numerical values corresponding to the second-stage original values and the numerical values corresponding to the original value adjustment amounts in the updated engineering record table simultaneously accord with a logic check rule and a format check rule.
Optionally, the method further comprises:
if the updated value corresponding to the first-stage original value, the value corresponding to the second-stage original value and the value corresponding to the original value adjustment amount in the engineering record table do not accord with the logic verification rule and the format verification rule at the same time, a preset adjustment thread is called, the engineering record table is adjusted, and the error information of certificate making is displayed.
Optionally, the method further comprises: if a manual modification instruction input by a user is received, a modification value contained in the manual modification instruction is analyzed; and taking the modified value as a numerical value corresponding to the original value adjustment amount in the project record table to update the project record table.
In the embodiment of the invention, the corresponding relation between the data type and the numerical value is recorded through an engineering record table; when the manual modification instruction input by the user is not detected, calculating a difference value between a numerical value corresponding to the first-stage original value generation time and a numerical value corresponding to the second-stage original value generation time in the engineering record table to serve as a time difference value, if the time difference value is not smaller than a preset time threshold value, calculating an original value difference value corresponding to the time difference value through a preset regression equation, updating the engineering record table according to the original value difference value, and generating an engineering proof table when the updated engineering record table meets logic verification rules and various verification rules so as to improve the effectiveness of data in the engineering record table and reduce the labor cost for updating and verifying the data.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of an implementation of a credential making method based on raw value verification according to an embodiment of the present invention;
fig. 2 is a block diagram of a credential making device based on origin verification according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 shows an implementation flow of a credential making method based on original value verification according to an embodiment of the present invention, where the method flow includes steps S101 to S108. The specific implementation principle of each step is as follows.
S101: acquiring an initial project record table, wherein the project record table records the corresponding relation between data types and numerical values, and the data types comprise: the method comprises the steps of a first-stage original value, a second-stage original value, first-stage original value generation time, second-stage original value generation time and an original value adjustment amount.
In the embodiment of the present invention, the original project record table may be an empty table that only includes data categories but has no corresponding numerical values, or may be a record table that has corresponding numerical values for part of the data categories. Taking the employee decoration cost as an example, the first-stage original value may be a contract amount in a completion stage, and the second-stage original value may be a settlement amount in a settlement stage, where the contract amount in the completion stage may be filled in advance to the first-stage original value in the original project record table; the first-stage original value generation time may be written in advance. It can be understood that the values not written in the original project record table are gradually filled in the subsequent process according to the preset filling thread.
On the other hand, the numerical value corresponding to each data type in the engineering record table is also variable, and in the embodiment of the invention, the variation of the numerical value in the engineering record table is realized through two modes. Firstly, receiving a manual modification instruction input by a user; secondly, based on the difference between the two original values, the difference between the original values is calculated by a preset regression equation, and the engineering record table is adjusted by using the difference between the original values, wherein the specific calculation process is described in detail below.
S102: whether a manual modification instruction input by a user is received or not is detected.
S103, if a manual modification instruction input by a user is received, a modification value contained in the manual modification instruction is analyzed.
Optionally, the modified value is used as a numerical value corresponding to the original value adjustment amount in the project record table to update the project record table.
It can be understood that, before the update, the original value adjustment amount of the project record table has a corresponding value, and this value may be a null value, and after the update, the modified value replaces the value corresponding to the original value adjustment amount.
And S104, if the manual modification instruction input by the user is not received, calculating the difference value between the numerical value corresponding to the first-stage original value generation time and the numerical value corresponding to the second-stage original value generation time in the engineering record table, and taking the difference value as a time difference value.
And S105, judging whether the time difference value is smaller than a preset time threshold value.
And S106, if the time difference value is smaller than a preset time threshold value, not adjusting the numerical value corresponding to the original adjustment amount.
It can be understood that, on the premise that no manual modification instruction is received, in the embodiment of the present invention, if the time difference is small enough, the difference between the value corresponding to the first-stage original value and the value corresponding to the second-stage original value should not be significantly different from the original adjustment amount, so that the value corresponding to the original adjustment amount is not automatically adjusted.
It can be understood that if the original value of the first stage, the original value of the second stage, and the adjusted value of the original value do not conform to the preset logic check rule without changing the value corresponding to the original adjusted value, it is proved that there is an abnormal condition in the value corresponding to at least one data category, and then no certificate is generated.
S107, if the time difference is not smaller than a preset time threshold, calculating an original value difference value corresponding to the time difference through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table.
It should be noted that, in the embodiment of the present invention, the regression equation is set in advance, and when the step is performed, the original value difference value corresponding to the time difference value can be solved by only substituting the time difference value determined in the above step into the regression equation.
Optionally, before the obtaining the initial project record table, the method further includes:
acquiring a training data set, wherein the training data set comprises corresponding relations between a preset number of time difference values and original value difference values, and the corresponding relations in the training data set are orderly arranged according to the size of the time difference values.
Optionally, by the first formula:
Figure GDA0001847452150000071
calculating a parameter A and a parameter B, said
Figure GDA0001847452150000072
The W is i A weight coefficient corresponding to the ith time difference value in the training data setDis 'is an average value of all the original value difference values in the training data set, time' is an average value of all the Time difference values in the training data set, and Dis i The Time is the ith original value difference value in the training data set i And e is the ith time difference value in the training data set, wherein e is a natural constant, and n is the preset number.
It is understood that the parameter a calculated by the first formula and the parameter B are substituted into a regression model: dis = a × Time B And generating a regression equation, wherein Dis is the original value difference value, and Time is the Time difference value.
Notably, the value of the parameter B calculated from the actual data is often in the interval of 1 to 1.1, so that the whole regression equation is actually a relatively gentle power function curve in the interval with a relatively small time difference.
And S108, judging whether the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with a logic verification rule and a format verification rule.
It can be understood that the present determination step mainly includes two sub-determinations, first: judging whether the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value and the format of the numerical value corresponding to the original value adjustment amount in the updated engineering record table belong to a preset format set or not; secondly, the method comprises the following steps: and judging whether the value corresponding to the original value of the first stage, the value corresponding to the original value of the second stage and the value corresponding to the original value adjustment amount meet the preset logic or not according to the preset logic check rule.
Optionally, the preset format set includes a number of digits after a preset decimal point, a preset scale, a preset character type, and the like.
Optionally, after the updating of the engineering record table, the determining, according to a preset logic check rule, whether the value corresponding to the first-stage original value, the value corresponding to the second-stage original value, and the value corresponding to the original value adjustment amount meet a preset logic includes:
optionally, by a second formula: err = val1-val2-Dif, where val1 is a value corresponding to the original value of the first stage, val2 is a value corresponding to the original value of the second stage, and Dif is a value corresponding to the adjustment amount of the original value.
It can be understood that, if the certification error value is smaller than the preset error threshold value, and the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value, and the format of the numerical value corresponding to the original value adjustment amount in the engineering record table all belong to a preset format set, it is determined that the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value, and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously conform to the logic verification rule and the format verification rule.
And S109, if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with a logic verification rule and a format verification rule, distributing a certificate number and a certificate making date to the updated engineering record table, and generating an engineering certificate making table.
S1010, if the updated value corresponding to the first-stage original value, the value corresponding to the second-stage original value and the value corresponding to the original value adjustment amount in the engineering record table do not accord with the logic check rule and the format check rule simultaneously, calling a preset adjustment thread, adjusting the engineering record table and displaying the error information of certificate making.
Optionally, the adjusting thread actively sends an inquiry message to the user, so as to receive a manual adjusting instruction input by the user, and further analyze that the manual adjusting instruction includes a numerical value corresponding to the first-stage original value or a numerical value corresponding to the second-stage original value.
It is noted that, in the embodiment of the present invention, the manual adjustment instruction and the manual modification instruction are two completely different instructions. The manual modification instruction mentioned in S103 only includes a value corresponding to the original value adjustment amount, but does not include a value corresponding to the original value of the first stage or a value corresponding to the original value of the second stage. The manual adjustment instruction in this step includes a numerical value corresponding to the original value of the first stage or a numerical value corresponding to the original value of the second stage, but does not include a numerical value corresponding to the adjustment amount of the original value.
It can be understood that the embodiment of the present invention records the corresponding relationship between the data category and the numerical value through the engineering record table; when a manual modification instruction input by a user is not detected, calculating a difference value between a numerical value corresponding to first-stage original value generation time and a numerical value corresponding to second-stage original value generation time in the engineering record table as a time difference value, if the time difference value is not smaller than a preset time threshold value, calculating an original value difference value corresponding to the time difference value through a preset regression equation, updating the engineering record table according to the original value difference value, and generating an engineering proof table when the updated engineering record table meets logic verification rules and various verification rules so as to improve the effectiveness of data in the engineering record table and reduce the labor cost for updating and verifying the data.
Corresponding to the original value verification-based credential making method described in the above embodiment, fig. 2 shows a block diagram of a credential making device provided in the embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown.
Referring to fig. 2, the apparatus includes:
an obtaining module 201, configured to obtain an initial engineering record table, where the engineering record table records a correspondence between data categories and numerical values, where the data categories include: a first-stage original value, a second-stage original value, first-stage original value generation time, second-stage original value generation time and an original value adjustment amount;
the detection module 202 is used for detecting whether a manual modification instruction input by a user is received;
a calculating module 203, configured to calculate, if a manual modification instruction input by a user is not received, a difference between a numerical value corresponding to the first-stage original-value generation time and a numerical value corresponding to the second-stage original-value generation time in the engineering record table, as a time difference;
an updating module 204, configured to calculate, if the time difference is not smaller than a preset time threshold, an original value difference corresponding to the time difference through a preset regression equation, and use the original value difference as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table;
the making module 205 is configured to, if the updated value corresponding to the first-stage original value, the updated value corresponding to the second-stage original value, and the updated value corresponding to the original value adjustment amount in the engineering record table simultaneously meet the logic verification rule and the format verification rule, assign a certificate number and a certification making date to the updated engineering record table, and generate an engineering certification making table.
Optionally, the apparatus further comprises:
the device comprises a set acquisition module, a comparison module and a comparison module, wherein the set acquisition module is used for acquiring a training data set, the training data set comprises corresponding relations between a preset number of time difference values and original value difference values, and all corresponding relations in the training data set are orderly arranged according to the size of the time difference values;
a fitting module for, by a first formula:
Figure GDA0001847452150000101
calculating a parameter A and a parameter B, said
Figure GDA0001847452150000102
The W is i The weight coefficient corresponding to the ith Time difference value in the training data set is obtained, the Dis 'is the average value of all the original value difference values in the training data set, the Time' is the average value of all the Time difference values in the training data set, and the Dis i The Time is the ith original value difference value in the training data set i Obtaining the ith time difference value in the training data set, wherein e is a natural constant, and n is the preset number;
a generating module, configured to bring the parameter a and the parameter B calculated by the first formula into a regression model: dis = a × Time B To grow inAnd forming a regression equation, wherein Dis is the original value difference value, and Time is the Time difference value.
Optionally, the apparatus comprises:
the judging module is used for judging whether the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value and the format of the numerical value corresponding to the original value adjustment amount in the engineering record table belong to a preset format set or not;
an error calculation module for calculating, by a second formula: err = val1-val2-Dif, where val1 is a numerical value corresponding to the original value of the first stage, val2 is a numerical value corresponding to the original value of the second stage, and Dif is a numerical value corresponding to the adjustment amount of the original value;
and the judging module is used for judging that the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with a logic verification rule and a format verification rule if the certification error value is smaller than a preset error threshold value and the formats of the numerical values corresponding to the first-stage original value, the second-stage original value and the original value adjustment amount in the engineering record table all belong to a preset format set.
Optionally, the apparatus further comprises:
and the error reporting module is used for calling a preset adjusting thread if the updated numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjusting amount in the engineering record table do not accord with the logic checking rule and the format checking rule simultaneously, and adjusting the engineering record table and displaying the error making information.
Optionally, the apparatus further comprises:
the analysis module is used for analyzing modification values contained in manual modification instructions if the manual modification instructions input by users are received;
and the adjusting module is used for taking the modified value as a numerical value corresponding to the original value adjustment amount in the project record table so as to update the project record table.
In the embodiment of the invention, the corresponding relation between the data category and the numerical value is recorded through an engineering record table; when the manual modification instruction input by the user is not detected, calculating a difference value between a numerical value corresponding to the first-stage original value generation time and a numerical value corresponding to the second-stage original value generation time in the engineering record table to serve as a time difference value, if the time difference value is not smaller than a preset time threshold value, calculating an original value difference value corresponding to the time difference value through a preset regression equation, updating the engineering record table according to the original value difference value, and generating an engineering proof table when the updated engineering record table meets logic verification rules and various verification rules so as to improve the effectiveness of data in the engineering record table and reduce the labor cost for updating and verifying the data.
Fig. 3 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 3, the terminal device 3 of this embodiment includes: a processor 30, a memory 31 and a computer program 32 stored in said memory 31 and executable on said processor 30, such as a credential production program checked on the basis of an original value. The processor 30 executes the computer program 32 to implement the steps in each of the original value verification-based credential making method embodiments, such as the steps 101 to 1010 shown in fig. 1. Alternatively, the processor 30, when executing the computer program 32, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 201 to 205 shown in fig. 2.
Illustratively, the computer program 32 may be partitioned into one or more modules/units that are stored in the memory 31 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3.
The terminal device 3 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 30, a memory 31. Those skilled in the art will appreciate that fig. 3 is only an example of the terminal device 3, and does not constitute a limitation to the terminal device 3, and may include more or less components than those shown, or some components may be combined, or different components, for example, the terminal device may further include an input-output device, a network access device, a bus, etc.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or a memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used for storing the computer program and other programs and data required by the terminal device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated module/unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, to instruct related hardware.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A voucher manufacturing method based on original value verification is characterized by comprising the following steps:
acquiring an initial project record table, wherein the project record table records the corresponding relation between data types and numerical values, and the data types comprise: a first-stage original value, a second-stage original value, first-stage original value generation time, second-stage original value generation time and an original value adjustment amount;
detecting whether a manual modification instruction input by a user is received;
if the manual modification instruction input by the user is not received, calculating a difference value between a numerical value corresponding to the first-stage original value generation time and a numerical value corresponding to the second-stage original value generation time in the engineering record table, and taking the difference value as a time difference value;
if the time difference is not smaller than a preset time threshold, calculating an original value difference value corresponding to the time difference through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table;
if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with the logic verification rule and the format verification rule, distributing a certificate number and a certificate making date to the updated engineering record table, and generating an engineering certificate making table.
2. The method for making a certificate based on original value verification as claimed in claim 1, further comprising, before said obtaining an initial project record table:
acquiring a training data set, wherein the training data set comprises corresponding relations between a preset number of time difference values and original value difference values, and the corresponding relations in the training data set are orderly arranged according to the size of the time difference values;
by a first formula:
Figure FDA0001773881890000011
calculating a parameter A and a parameter B, said>
Figure FDA0001773881890000012
The W is i The weight coefficient corresponding to the ith Time difference value in the training data set is obtained, the Dis 'is the average value of all the original value difference values in the training data set, the Time' is the average value of all the Time difference values in the training data set, and the Dis i The Time is the ith original value difference value in the training data set i Obtaining the ith time difference value in the training data set, wherein e is a natural constant, and n is the preset number;
substituting the parameter A and the parameter B calculated by the first formula into a regression model: dis = a × Time B And generating a regression equation, wherein Dis is the original value difference value, and Time is the Time difference value.
3. The proof-of-value-verification-based certificate making method according to claim 1, further comprising, after said updating said engineering record table:
judging whether the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value and the format of the numerical value corresponding to the original value adjustment amount in the updated engineering record table belong to a preset format set or not;
by a second formula: err = val1-val2-Dif, where val1 is a numerical value corresponding to the original value of the first stage, val2 is a numerical value corresponding to the original value of the second stage, and Dif is a numerical value corresponding to the adjustment amount of the original value;
if the certification error value is smaller than a preset error threshold value, and the formats of the numerical values corresponding to the first-stage original values, the formats of the numerical values corresponding to the second-stage original values and the formats of the numerical values corresponding to the original value adjustment amounts in the engineering record table all belong to a preset format set, it is determined that the numerical values corresponding to the first-stage original values, the numerical values corresponding to the second-stage original values and the numerical values corresponding to the original value adjustment amounts in the updated engineering record table simultaneously accord with a logic check rule and a format check rule.
4. The proof-of-value-verification-based certificate making method according to claim 1, further comprising:
if the updated value corresponding to the first-stage original value, the value corresponding to the second-stage original value and the value corresponding to the original value adjustment amount in the engineering record table do not accord with the logic verification rule and the format verification rule at the same time, a preset adjustment thread is called, the engineering record table is adjusted, and the error information of certificate making is displayed.
5. The proof-of-value-verification-based certificate making method according to claim 1, further comprising:
if a manual modification instruction input by a user is received, a modification value contained in the manual modification instruction is analyzed;
and taking the modified value as a numerical value corresponding to the original value adjustment amount in the project record table to update the project record table.
6. A terminal device comprising a memory and a processor, the memory having stored therein a computer program operable on the processor, wherein the processor, when executing the computer program, performs the steps of:
obtaining an initial project record table, wherein the project record table comprises a corresponding relation between a plurality of data categories and numerical values, and the data categories comprise: a first-stage original value, a second-stage original value, first-stage original value generation time, second-stage original value generation time and an original value adjustment amount;
detecting whether a manual modification instruction input by a user is received;
if the manual modification instruction input by the user is not received, calculating the difference value between the numerical value corresponding to the first-stage original value generation time and the numerical value corresponding to the second-stage original value generation time in the engineering record table as a time difference value;
if the time difference is not smaller than a preset time threshold, calculating an original value difference value corresponding to the time difference through a preset regression equation, and taking the original value difference value as a numerical value corresponding to the original value adjustment amount in the engineering record table to update the engineering record table;
and if the numerical value corresponding to the first-stage original value, the numerical value corresponding to the second-stage original value and the numerical value corresponding to the original value adjustment amount in the updated engineering record table simultaneously accord with a logic verification rule and a format verification rule, distributing a certificate number and a certification making date for the updated engineering record table to generate an engineering certification making table.
7. The terminal device of claim 6, wherein prior to said obtaining the initial project record list, further comprising:
acquiring a training data set, wherein the training data set comprises corresponding relations between a preset number of time difference values and original value difference values, and the corresponding relations in the training data set are orderly arranged according to the size of the time difference values;
by a first formula:
Figure FDA0001773881890000041
calculating a parameter A and a parameter B, said>
Figure FDA0001773881890000042
The W is i The weight coefficient corresponding to the ith Time difference value in the training data set is obtained, the Dis 'is the average value of all the original value difference values in the training data set, the Time' is the average value of all the Time difference values in the training data set, and the Dis i The Time is the ith original value difference value in the training data set i The ith time difference value in the training data set is obtained, and e is a natural constant;
will pass through the firstSubstituting a parameter A and the parameter B calculated by a formula into a regression model: dis = a × Time B And the Dis is the original value difference value, and the Time is the Time difference value so as to generate a regression equation.
8. The terminal device of claim 6, further comprising, after said updating said project record table:
judging whether the format of the numerical value corresponding to the first-stage original value, the format of the numerical value corresponding to the second-stage original value and the format of the numerical value corresponding to the original value adjustment amount in the updated engineering record table belong to a preset format set or not;
by a second formula: err = val1-val2-Dif, calculating a validation error value, where val1 is a value corresponding to the original value of the first stage, val2 is a value corresponding to the original value of the second stage, and Dif is a value corresponding to the original value adjustment amount;
if the certification error value is smaller than a preset error threshold value, and the formats of the numerical values corresponding to the first-stage original values, the formats of the numerical values corresponding to the second-stage original values and the formats of the numerical values corresponding to the original value adjustment amounts in the engineering record table all belong to a preset format set, it is determined that the numerical values corresponding to the first-stage original values, the numerical values corresponding to the second-stage original values and the numerical values corresponding to the original value adjustment amounts in the updated engineering record table simultaneously accord with a logic check rule and a format check rule.
9. The terminal device of claim 6, further comprising:
if the updated value corresponding to the first-stage original value, the value corresponding to the second-stage original value and the value corresponding to the original value adjustment amount in the engineering record table do not accord with the logic verification rule and the format verification rule at the same time, a preset adjustment thread is called, the engineering record table is adjusted, and the error information of certificate making is displayed.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201810961245.9A 2018-08-22 2018-08-22 Certificate making method based on original value verification and terminal equipment Active CN109344369B (en)

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 CN109344369A (en) 2019-02-15
CN109344369B true 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)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352428B2 (en) * 2005-10-17 2013-01-08 Freescale Semiconductor, Inc. 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

Also Published As

Publication number Publication date
CN109344369A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
WO2021254027A1 (en) Method and apparatus for identifying suspicious community, and storage medium and computer device
CN108388509B (en) Software testing method, computer readable storage medium and terminal equipment
CN110147367A (en) A kind of temperature missing data complementing method, system and electronic equipment
US10701213B2 (en) Dynamically generating an aggregation routine
CN110647913B (en) Abnormal data detection method and device based on clustering algorithm
CN116258420B (en) Product quality detection method, device, terminal equipment and medium
CN103530390A (en) Webpage crawling method and device
CN110991761B (en) Heat supply load prediction method and device
CN110019205A (en) A kind of data storage, restoring method, device and computer equipment
CN109241163B (en) Electronic certificate generation method and terminal equipment
CN108463813B (en) Method and device for processing data
CN109344369B (en) Certificate making method based on original value verification and terminal equipment
CN110489394B (en) Intermediate data processing method and device
WO2023016069A1 (en) Efficient circuit simulation method and apparatus, device, and storage medium
CN108369707B (en) System and method for providing statistical dynamic meter data validation
CN112598228B (en) Enterprise competitiveness analysis method, device, equipment and storage medium
CN114595216A (en) Data verification method and device, storage medium and electronic equipment
CN110544165B (en) Credit risk score card creating method and device and electronic equipment
CN113376564A (en) Smart electric meter metering correction method and device based on data analysis and terminal
CN110377592B (en) Data preprocessing method and device for quantifying variable to virtual variable and terminal equipment
CN111158994A (en) Pressure testing performance testing method and device
CN110134843A (en) A kind of generation method and device of file destination
CN115375407B (en) Inventory management method and system of OMS
CN111984636B (en) Data modeling method, device, equipment and storage medium
CN118094450B (en) Fault early warning method and related 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