CN111680483A - Document template updating method and device, electronic equipment and medium - Google Patents

Document template updating method and device, electronic equipment and medium Download PDF

Info

Publication number
CN111680483A
CN111680483A CN202010443334.1A CN202010443334A CN111680483A CN 111680483 A CN111680483 A CN 111680483A CN 202010443334 A CN202010443334 A CN 202010443334A CN 111680483 A CN111680483 A CN 111680483A
Authority
CN
China
Prior art keywords
document
target
document template
template
updated
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.)
Pending
Application number
CN202010443334.1A
Other languages
Chinese (zh)
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 Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co 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 Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010443334.1A priority Critical patent/CN111680483A/en
Publication of CN111680483A publication Critical patent/CN111680483A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the technical field of data processing, and provides a document template updating method. The method comprises the following steps: the method comprises the steps of obtaining a document template updating request, extracting a target identity identification code, determining a target case appearance corresponding to the target identity identification code from a configuration library, determining a document template to be updated according to the target case appearance, extracting target configuration parameters in the document template to be updated, detecting whether the target configuration parameters exist in a preset service table, updating the document template to be updated when the target configuration parameters exist in the preset service table, and obtaining the target template. The invention also relates to a blockchain technique, the target template being stored in a blockchain.

Description

Document template updating method and device, electronic equipment and medium
Technical Field
The invention relates to the technical field of data processing, in particular to a document template updating method and device, electronic equipment and a medium.
Background
And in the service handling process, filling the service data into the document template so as to generate the document required by the user. Due to different factors such as time and scene, document templates required by the business are constantly changed, however, the document templates on the electronic equipment are always kept in the latest version. In addition, at present, it is still not ensured that the document template maintained on the electronic device contains configuration parameters, which results in that the generated document cannot meet the requirements of the user.
Therefore, how to update the document template to meet the user requirements and ensure that the maintained document template contains configuration parameters becomes a problem to be solved at present.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a document template updating method, apparatus, electronic device and medium, which can not only update a document template according to user requirements, but also ensure that the updated document template includes necessary configuration parameters.
A document template updating method, the method comprising:
acquiring a document template updating request, and extracting a target identity identification code from the document template updating request;
determining a target sample table corresponding to the target identification code from a configuration library;
determining a document template to be updated according to the target example appearance;
extracting target configuration parameters in the document template to be updated;
detecting whether the target configuration parameters exist in a preset service table or not;
and when the target configuration parameters are detected to be present in the preset service table, updating the document template to be updated to obtain a target template.
According to a preferred embodiment of the invention, the method further comprises:
acquiring all document templates in a document list, and backing up all acquired document templates to a backup table;
calculating the first document quantity of all document templates in the backup table;
when a timing scanning request is received, scanning the document list, and performing counting operation on the scanned document template to obtain a second document quantity of the document list;
comparing the first number of documents with the second number of documents;
and when the first document quantity is smaller than the second document quantity, generating the document template updating request.
According to the preferred embodiment of the present invention, the backing up all the acquired document templates to the backup table includes:
acquiring a first storage address of the document list and a second storage address of the backup list;
acquiring a copying program segment of a preset document template;
recording the first storage address into an area corresponding to a source address of the copied program segment, and recording the second storage address into an area corresponding to a destination address of the copied program segment to obtain a target program segment;
and backing up all the document templates to the backup table by executing the target program segment.
According to a preferred embodiment of the present invention, before externally determining the document template to be updated according to the target case, the method further comprises:
when the submitting operation of a user is monitored, acquiring a log corresponding to the submitting operation;
analyzing the log to obtain the user requirement;
setting an identification in the target exception table based on the user requirement.
According to a preferred embodiment of the present invention, said determining the document template to be updated according to the target embodiment comprises:
acquiring a target document code and a target document version number corresponding to a preset identifier in the target case surface;
and calling a preset query statement to search a document template simultaneously corresponding to the target document code and the target document version number, and determining the searched document template as the document template to be updated.
According to a preferred embodiment of the present invention, the extracting the target configuration parameters in the document template to be updated includes:
identifying all configuration parameters in the document template to be updated based on an optical character recognition technology;
and selecting the configuration parameters with the configuration labels from all the configuration parameters, and determining the selected configuration parameters as the target configuration parameters.
According to a preferred embodiment of the present invention, the target template is stored in a block chain, and the updating the to-be-updated document template to obtain the target template includes:
and in the document list, updating the state of the document template to be updated into an activated state, and determining the template with the updated state as the target template.
A document template updating apparatus, the apparatus comprising:
the acquiring unit is used for acquiring a document template updating request and extracting a target identity identification code from the document template updating request;
the determining unit is used for determining a target sample table corresponding to the target identity identification code from a configuration library;
the determining unit is further used for determining a document template to be updated according to the target example surface;
the extraction unit is used for extracting the target configuration parameters in the document template to be updated;
the detection unit is used for detecting whether the target configuration parameters exist in a preset service table or not;
and the updating unit is used for updating the document template to be updated to obtain the target template when the target configuration parameters are detected to be present in the preset service table.
According to the preferred embodiment of the present invention, the obtaining unit is further configured to obtain all document templates in the document list, and backup all the obtained document templates to the backup table;
the device further comprises:
the calculation unit is used for calculating the first document quantity of all document templates in the backup table;
the scanning unit is used for scanning the document list when a timing scanning request is received, and counting the scanned document template to obtain a second document quantity of the document list;
a comparison unit for comparing the first number of documents with the second number of documents;
and the generation unit is used for generating the document template updating request when detecting that the first document quantity is smaller than the second document quantity.
According to the preferred embodiment of the present invention, the backing up all the acquired document templates to the backup table by the acquiring unit includes:
acquiring a first storage address of the document list and a second storage address of the backup list;
acquiring a copying program segment of a preset document template;
recording the first storage address into an area corresponding to a source address of the copied program segment, and recording the second storage address into an area corresponding to a destination address of the copied program segment to obtain a target program segment;
and backing up all the document templates to the backup table by executing the target program segment.
According to a preferred embodiment of the present invention, the obtaining unit is further configured to obtain a log corresponding to a submission operation when the submission operation of a user is monitored before determining the document template to be updated according to the target exception table;
the device further comprises:
the analysis unit is used for analyzing the log to obtain the user requirement;
and the setting unit is used for setting the identification in the target sample surface based on the user requirement.
According to a preferred embodiment of the present invention, the determining unit determining the document template to be updated according to the target exception comprises:
acquiring a target document code and a target document version number corresponding to a preset identifier in the target case surface;
and calling a preset query statement to search a document template simultaneously corresponding to the target document code and the target document version number, and determining the searched document template as the document template to be updated.
According to a preferred embodiment of the present invention, the extraction unit is specifically configured to:
identifying all configuration parameters in the document template to be updated based on an optical character recognition technology;
and selecting the configuration parameters with the configuration labels from all the configuration parameters, and determining the selected configuration parameters as the target configuration parameters.
According to a preferred embodiment of the present invention, the updating unit is specifically configured to:
and in the document list, the target template is stored in a block chain, the state of the document template to be updated is updated to be an activated state, and the template with the updated state is determined to be the target template.
An electronic device, the electronic device comprising:
a memory storing at least one instruction; and
and the processor acquires the instructions stored in the memory to realize the document template updating method.
A computer-readable storage medium having stored therein at least one instruction, the at least one instruction being executable by a processor in an electronic device to implement the document template updating method.
According to the technical scheme, the document template can be updated according to the user requirements, so that a proper document template can be used during document generation, and in addition, whether the target configuration parameters exist in the preset service table or not is detected, so that the updated document template can be ensured to contain necessary configuration parameters.
Drawings
FIG. 1 is a flow chart of a document template updating method according to a preferred embodiment of the present invention.
FIG. 2 is a functional block diagram of a document template updating apparatus according to a preferred embodiment of the present invention.
FIG. 3 is a schematic structural diagram of an electronic device implementing a document template updating method according to a preferred embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
FIG. 1 is a flow chart of a document template updating method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The document template updating method is applied to one or more electronic devices, wherein the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to preset or stored instructions, and hardware of the electronic devices includes but is not limited to a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), an intelligent wearable device, and the like.
The electronic device may also include a network device and/or a user device. The network device includes, but is not limited to, a single network server, a server group consisting of a plurality of network servers, or a cloud computing (cloud computing) based cloud consisting of a large number of hosts or network servers.
The Network where the electronic device is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
And S10, acquiring the document template updating request and extracting the target identification code from the document template updating request.
In at least one embodiment of the present invention, the information carried in the document template update request includes, but is not limited to: the target identification code, the target label and the like.
In at least one embodiment of the invention, the method further comprises:
electronic equipment acquires all document templates in the document list to all document templates backup to the backup table that will acquire, furtherly, electronic equipment calculates the first document quantity of all document templates in the backup table, when receiving the timing scanning request, electronic equipment scans the document list to count the operation to the document template that scans, obtain the second document quantity of document list, furtherly, electronic equipment compares first document quantity with the size of second document quantity, detects first document quantity is less than during the second document quantity, electronic equipment generates document template renewal request.
Through the embodiment, when the document template is added in the document list, the generation of the document template updating request can be triggered, so that the document template updating request can be generated in time.
In at least one embodiment of the present invention, before backing up all acquired document templates to a backup table, the electronic device deletes all backup templates in the backup table.
Through the embodiment, the backup template can be prevented from occupying the memory of the electronic equipment, and the backup template can be prevented from influencing the number of the first documents.
In at least one embodiment of the present invention, the backing up, by the electronic device, all acquired document templates to a backup table includes:
the electronic equipment acquires a first storage address of the document list and a second storage address of the backup table, further acquires a copy program segment of a preconfigured document template, further inputs the first storage address into an area corresponding to a source address of the copy program segment and inputs the second storage address into an area corresponding to a destination address of the copy program segment to obtain a target program segment, and the electronic equipment backs up all document templates to the backup table by executing the target program segment.
By the implementation mode, all the document templates can be accurately backed up in the backup table, the error rate of copying is reduced, and meanwhile, the automatic mode replaces the manual mode to back up all the document templates, so that the copying efficiency is improved.
In at least one embodiment of the present invention, the electronic device extracting the target id from the document template update request includes:
and the electronic equipment acquires a target label, and further extracts information corresponding to the target label from the document template updating request as the target identification code.
The target identification code can be accurately extracted through the mapping relation between the target label and the target identification code.
And S11, determining the target sample surface corresponding to the target identification code from the configuration library.
In at least one embodiment of the present invention, a plurality of exception tables and mapping relationships between the exception tables and the ids are stored in the configuration library. The corresponding relation between the document code, the document version number and the identification of the document template is stored in each exception table. The identification has two forms of Y or N, wherein, Y represents that the document template corresponding to the document code and the document version number does not need to be updated in the document system, and N represents that the document template corresponding to the document code and the document version number needs to be updated in the document system.
And S12, determining the document template to be updated according to the target example appearance.
In at least one embodiment of the present invention, the document template to be updated refers to the document template with the identifier.
In at least one embodiment of the invention, before determining the document template to be updated according to the target exception, the method further comprises:
when the submitting operation of the user is monitored, the electronic equipment acquires the log corresponding to the submitting operation, further analyzes the log to obtain the user requirement, and sets the identifier in the target case surface based on the user requirement.
Through the implementation mode, the identification of the document template in the appearance of the target example can be quickly set according to the user requirement.
In at least one embodiment of the present invention, the electronic device determining the document template to be updated according to the target exception comprises:
the electronic equipment acquires a target document code and a target document version number corresponding to a preset identification in the target case, and further calls a preset query statement to search a document template corresponding to the target document code and the target document version number at the same time, and determines the searched document template as the document template to be updated.
The preset identifier may be an identifier N, and the present invention is not limited thereto.
Through the embodiment, the document template to be updated can be determined according to the user requirements, so that a proper document template can be used during document generation.
And S13, extracting the target configuration parameters in the document template to be updated.
In at least one embodiment of the present invention, the target configuration parameter refers to a mandatory configuration parameter in the document template to be updated, for example: the amount of the loan. The parameter values corresponding to the target configuration parameters in different service documents are also different.
In at least one embodiment of the present invention, the electronic device extracting the target configuration parameters in the document template to be updated includes:
the electronic device identifies all configuration parameters in the document template to be updated based on an OCR (Optical Character Recognition) technology, further selects configuration parameters with configuration labels from all the configuration parameters, and determines the selected configuration parameters as the target configuration parameters.
Wherein, the configuration label may be a character ". The present invention is not limited thereto.
S14, detecting whether the target configuration parameters exist in a preset service table.
In at least one embodiment of the present invention, the preset service tables include an ss _ bte _ doc _ param table, an ss _ bte _ doc _ prop table, and an ss _ bte _ doc _ temp table.
In at least one embodiment of the present invention, when it is detected that the target configuration parameters exist in all of the ss _ bte _ doc _ param table, the ss _ bte _ doc _ prop table, and the ss _ bte _ doc _ temp table, the electronic device determines that the target configuration parameters exist in the preset service table, and when it is detected that any target configuration parameter does not exist in the ss _ bte _ doc _ param table, the ss _ bte _ doc _ prop table, or the ss _ bte _ doc _ temp table, the electronic device determines that the target configuration parameters do not exist in the preset service table.
In other embodiments, when it is detected that any target configuration parameter does not exist in the preset service table, the electronic device determines a target service table, the target service table does not exist any target configuration parameter, generates a prompt message based on the any target configuration parameter and the target service table, and sends the prompt message to a device of a designated contact.
Through the embodiment, when the target configuration parameter does not exist in the preset service list, the relevant contact person can be timely notified to ensure that the target configuration parameter exists in the preset service list.
And S15, when the target configuration parameters are detected to be present in the preset service table, updating the document template to be updated to obtain the target template.
In at least one embodiment of the present invention, the updating the to-be-updated document template includes:
in the document list, the electronic device updates the state of the document template to be updated to an activated state, and determines the template with the updated state as the target template.
It is emphasized that the target template may also be stored in a node of a blockchain in order to further ensure the privacy and security of the target template.
In at least one embodiment of the present invention, when it is detected that the target configuration parameters are all present in the preset service table, the electronic device updates the document template to be updated, so as to ensure that the updated document template includes necessary configuration parameters.
In at least one embodiment of the invention, after updating the document template to be updated, the method further comprises:
the electronic equipment obtains a request number of the document template updating request, further generates reminding information based on the request number and the document template to be updated, determines a request grade of the document template updating request and a reminding mode of the reminding information according to the request grade, and sends the reminding information in the reminding mode.
Wherein the request level includes, but is not limited to: level a, level B, etc., and accordingly, the reminding manner includes, but is not limited to: telephone, mail, etc.
Through the implementation mode, the related contact persons can be timely notified after the document template to be updated is updated.
In at least one embodiment of the invention, after updating the document template to be updated, the method further comprises:
the electronic equipment acquires a parameter value corresponding to the target configuration parameter, further determines the position of the target configuration parameter in the document template to be updated, and fills the parameter value into the position to generate a document.
Through the implementation mode, the parameter values can be accurately filled to the corresponding positions, and then accurate documents can be generated.
According to the technical scheme, the document template can be updated according to the user requirements, so that a proper document template can be used during document generation, and in addition, whether the target configuration parameters exist in the preset service table or not is detected, so that the updated document template can be ensured to contain necessary configuration parameters.
Fig. 2 is a functional block diagram of a document template updating apparatus according to a preferred embodiment of the present invention. The document template updating device 11 includes an acquisition unit 110, a determination unit 111, an extraction unit 112, a detection unit 113, an updating unit 114, a calculation unit 115, a scanning unit 116, a comparison unit 117, a generation unit 118, an analysis unit 119, a setting unit 120, and a transmission unit 121. The module/unit referred to in the present invention refers to a series of computer program segments that can be fetched by the processor 13 and that can perform a fixed function, and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
The acquisition unit 110 acquires a document template update request, and extracts a target identification code from the document template update request.
In at least one embodiment of the present invention, the information carried in the document template update request includes, but is not limited to: the target identification code, the target label and the like.
In at least one embodiment of the present invention, the obtaining unit 110 obtains all document templates in a document list, and backs up all the obtained document templates to a backup table, further, the calculating unit 115 calculates a first number of documents of all the document templates in the backup table, when a timing scanning request is received, the scanning unit 116 scans the document list and performs a counting operation on the scanned document templates to obtain a second number of documents of the document list, further, the comparing unit 117 compares the first number of documents with the second number of documents, and when the first number of documents is detected to be smaller than the second number of documents, the generating unit 118 generates the document template updating request.
Through the embodiment, when the document template is added in the document list, the generation of the document template updating request can be triggered, so that the document template updating request can be generated in time.
In at least one embodiment of the present invention, before backing up all acquired document templates to a backup table, the electronic device deletes all backup templates in the backup table.
Through the embodiment, the backup template can be prevented from occupying the memory of the electronic equipment, and the backup template can be prevented from influencing the number of the first documents.
In at least one embodiment of the present invention, the obtaining unit 110 backing up all the obtained document templates to a backup table includes:
the obtaining unit 110 obtains a first storage address of the document list and a second storage address of the backup table, further, the obtaining unit 110 obtains a copied program segment of a preconfigured document template, further, the obtaining unit 110 enters the first storage address into an area corresponding to a source address of the copied program segment and enters the second storage address into an area corresponding to a destination address of the copied program segment to obtain a target program segment, and the obtaining unit 110 backs up all document templates to the backup table by executing the target program segment.
By the implementation mode, all the document templates can be accurately backed up in the backup table, the error rate of copying is reduced, and meanwhile, the automatic mode replaces the manual mode to back up all the document templates, so that the copying efficiency is improved.
In at least one embodiment of the present invention, the obtaining unit 110 extracting the target id from the document template update request includes:
the obtaining unit 110 obtains a target tag, and further, the obtaining unit 110 extracts information corresponding to the target tag from the document template updating request as the target id.
The target identification code can be accurately extracted through the mapping relation between the target label and the target identification code.
The determining unit 111 determines the target exception table corresponding to the target id from the configuration library.
In at least one embodiment of the present invention, a plurality of exception tables and mapping relationships between the exception tables and the ids are stored in the configuration library. The corresponding relation between the document code, the document version number and the identification of the document template is stored in each exception table. The identification has two forms of Y or N, wherein, Y represents that the document template corresponding to the document code and the document version number does not need to be updated in the document system, and N represents that the document template corresponding to the document code and the document version number needs to be updated in the document system.
The determining unit 111 determines the document template to be updated according to the target exception table.
In at least one embodiment of the present invention, the document template to be updated refers to the document template with the identifier.
In at least one embodiment of the present invention, before determining the document template to be updated according to the target example appearance, when a submitting operation of a user is monitored, the obtaining unit 110 obtains a log corresponding to the submitting operation, further, the analyzing unit 119 analyzes the log to obtain a user requirement, and the setting unit 120 sets an identifier in the target example appearance based on the user requirement.
Through the implementation mode, the identification of the document template in the appearance of the target example can be quickly set according to the user requirement.
In at least one embodiment of the present invention, the determining unit 111 determines the document template to be updated according to the target exception table, including:
the determining unit 111 obtains a target document code and a target document version number corresponding to a preset identifier in the target case, and further, the determining unit 111 calls a preset query statement to search for a document template corresponding to the target document code and the target document version number at the same time, and determines the searched document template as the document template to be updated.
The preset identifier may be an identifier N, and the present invention is not limited thereto.
Through the embodiment, the document template to be updated can be determined according to the user requirements, so that a proper document template can be used during document generation.
The extracting unit 112 extracts the target configuration parameters in the document template to be updated.
In at least one embodiment of the present invention, the target configuration parameter refers to a mandatory configuration parameter in the document template to be updated, for example: the amount of the loan. The parameter values corresponding to the target configuration parameters in different service documents are also different.
In at least one embodiment of the present invention, the extracting unit 112 extracts the target configuration parameters in the document template to be updated includes:
the extracting unit 112 identifies all configuration parameters in the document template to be updated based on an OCR (Optical Character Recognition) technique, further, the extracting unit 112 selects configuration parameters with configuration labels from all the configuration parameters, and determines the selected configuration parameters as the target configuration parameters.
Wherein, the configuration label may be a character ". The present invention is not limited thereto.
The detecting unit 113 detects whether the target configuration parameters are all present in a preset service table.
In at least one embodiment of the present invention, the preset service tables include an ss _ bte _ doc _ param table, an ss _ bte _ doc _ prop table, and an ss _ bte _ doc _ temp table.
In at least one embodiment of the present invention, when it is detected that the target configuration parameters exist in all of the ss _ bte _ doc _ param table, the ss _ bte _ doc _ prop table, and the ss _ bte _ doc _ temp table, the detecting unit 113 determines that the target configuration parameters exist in the preset service table, and when it is detected that any target configuration parameter does not exist in the ss _ bte _ doc _ param table, the ss _ bte _ doc _ prop table, or the ss _ bte _ doc _ temp table, the detecting unit 113 determines that the target configuration parameters do not exist in the preset service table.
In other embodiments, when detecting that any target configuration parameter does not exist in the preset service table, the determining unit 111 determines a target service table, where the any target configuration parameter does not exist in the target service table, and the generating unit 118 generates a prompt message based on the any target configuration parameter and the target service table, and sends the prompt message to a device of a specified contact.
Through the embodiment, when the target configuration parameter does not exist in the preset service list, the relevant contact person can be timely notified to ensure that the target configuration parameter exists in the preset service list.
When detecting that the target configuration parameters are all present in the preset service table, the updating unit 114 updates the document template to be updated.
In at least one embodiment of the present invention, the updating unit 114 updates the to-be-updated document template including:
in the document list, the updating unit 114 updates the status of the document template to be updated to the activated status, and determines a template whose status is updated to be the target template.
It is emphasized that the target template may also be stored in a node of a blockchain in order to further ensure the privacy and security of the target template.
In at least one embodiment of the present invention, when it is detected that the target configuration parameters are all present in the preset service table, the updating unit 114 updates the document template to be updated, so as to ensure that the updated document template includes necessary configuration parameters.
In at least one embodiment of the present invention, after the document template to be updated is updated, the obtaining unit 110 obtains a request number of the document template update request, further, the generating unit 118 generates a reminding message based on the request number and the document template to be updated, the determining unit 111 determines a request level of the document template update request, and determines a reminding manner of the reminding message according to the request level, and the sending unit 121 sends the reminding message in the reminding manner.
Wherein the request level includes, but is not limited to: level a, level B, etc., and accordingly, the reminding manner includes, but is not limited to: telephone, mail, etc.
Through the implementation mode, the related contact persons can be timely notified after the document template to be updated is updated.
In at least one embodiment of the present invention, after the document template to be updated is updated, the obtaining unit 110 obtains a parameter value corresponding to the target configuration parameter, further, the determining unit 111 determines a position of the target configuration parameter in the document template to be updated, and the generating unit 118 fills the parameter value into the position to generate the document.
Through the implementation mode, the parameter values can be accurately filled to the corresponding positions, and then accurate documents can be generated.
According to the technical scheme, the document template can be updated according to the user requirements, so that a proper document template can be used during document generation, and in addition, whether the target configuration parameters exist in the preset service table or not is detected, so that the updated document template can be ensured to contain necessary configuration parameters.
Fig. 3 is a schematic structural diagram of an electronic device implementing a document template updating method according to a preferred embodiment of the present invention.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and a computer program, such as a document template update program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by using various interfaces and lines, and acquires an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
The processor 13 obtains an operating system of the electronic device 1 and various installed application programs. The processor 13 obtains the application program to implement the steps in the above-described embodiments of the document template updating method, such as the steps shown in fig. 1.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 12 and retrieved by the processor 13 to accomplish 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 acquisition process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition unit 110, a determination unit 111, an extraction unit 112, a detection unit 113, an update unit 114, a calculation unit 115, a scanning unit 116, a comparison unit 117, a generation unit 118, an analysis unit 119, a setting unit 120, and a transmission unit 121.
The memory 12 can be used for storing the computer programs and/or modules, and the processor 13 can implement various functions of the electronic device 1 by running or acquiring the computer programs and/or modules stored in the memory 12 and calling data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 12 may include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other non-volatile solid state storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and used for instructing related hardware to implement the steps of the above-described embodiments of the method when the computer program is acquired by a processor.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an available file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
With reference to fig. 1, the memory 12 of the electronic device 1 stores a plurality of instructions to implement a document template updating method, and the processor 13 can obtain the plurality of instructions to implement: acquiring a document template updating request, and extracting a target identity identification code from the document template updating request; determining a target sample table corresponding to the target identification code from a configuration library; determining a document template to be updated according to the target example appearance; extracting target configuration parameters in the document template to be updated; detecting whether the target configuration parameters exist in a preset service table or not; and when the target configuration parameters are detected to be present in the preset service table, updating the document template to be updated to obtain a target template.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the instruction, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A document template updating method is characterized by comprising the following steps:
acquiring a document template updating request, and extracting a target identity identification code from the document template updating request;
determining a target sample table corresponding to the target identification code from a configuration library;
determining a document template to be updated according to the target example appearance;
extracting target configuration parameters in the document template to be updated;
detecting whether the target configuration parameters exist in a preset service table or not;
and when the target configuration parameters are detected to be present in the preset service table, updating the document template to be updated to obtain a target template.
2. The document template updating method of claim 1, wherein the document template updating method further comprises:
acquiring all document templates in a document list, and backing up all acquired document templates to a backup table;
calculating the first document quantity of all document templates in the backup table;
when a timing scanning request is received, scanning the document list, and performing counting operation on the scanned document template to obtain a second document quantity of the document list;
comparing the first number of documents with the second number of documents;
and when the first document quantity is smaller than the second document quantity, generating the document template updating request.
3. The document template updating method according to claim 2, wherein the backing up all acquired document templates to a backup table comprises:
acquiring a first storage address of the document list and a second storage address of the backup list;
acquiring a copying program segment of a preset document template;
recording the first storage address into an area corresponding to a source address of the copied program segment, and recording the second storage address into an area corresponding to a destination address of the copied program segment to obtain a target program segment;
and backing up all the document templates to the backup table by executing the target program segment.
4. The document template updating method of claim 1, wherein prior to determining the document template to be updated based on the target exception, the document template updating method further comprises:
when the submitting operation of a user is monitored, acquiring a log corresponding to the submitting operation;
analyzing the log to obtain the user requirement;
setting an identification in the target exception table based on the user requirement.
5. The document template updating method of claim 1, wherein the determining the document template to be updated according to the target exception comprises:
acquiring a target document code and a target document version number corresponding to a preset identifier in the target case surface;
and calling a preset query statement to search a document template simultaneously corresponding to the target document code and the target document version number, and determining the searched document template as the document template to be updated.
6. The document template updating method of claim 1, wherein the extracting the target configuration parameters in the document template to be updated comprises:
identifying all configuration parameters in the document template to be updated based on an optical character recognition technology;
and selecting the configuration parameters with the configuration labels from all the configuration parameters, and determining the selected configuration parameters as the target configuration parameters.
7. The document template updating method of claim 2, wherein the target template is stored in a block chain, and the updating the document template to be updated to obtain the target template comprises:
and in the document list, updating the state of the document template to be updated into an activated state, and determining the template with the updated state as the target template.
8. A document template updating apparatus, comprising:
the acquiring unit is used for acquiring a document template updating request and extracting a target identity identification code from the document template updating request;
the determining unit is used for determining a target sample table corresponding to the target identity identification code from a configuration library;
the determining unit is further used for determining a document template to be updated according to the target example surface;
the extraction unit is used for extracting the target configuration parameters in the document template to be updated;
the detection unit is used for detecting whether the target configuration parameters exist in a preset service table or not;
and the updating unit is used for updating the document template to be updated to obtain the target template when the target configuration parameters are detected to be present in the preset service table.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing at least one instruction; and
a processor that retrieves instructions stored in the memory to implement the document template updating method of any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium has stored therein at least one instruction that is fetched by a processor in an electronic device to implement the document template updating method of any one of claims 1 to 7.
CN202010443334.1A 2020-05-22 2020-05-22 Document template updating method and device, electronic equipment and medium Pending CN111680483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010443334.1A CN111680483A (en) 2020-05-22 2020-05-22 Document template updating method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010443334.1A CN111680483A (en) 2020-05-22 2020-05-22 Document template updating method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN111680483A true CN111680483A (en) 2020-09-18

Family

ID=72434340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010443334.1A Pending CN111680483A (en) 2020-05-22 2020-05-22 Document template updating method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN111680483A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784566A (en) * 2021-01-22 2021-05-11 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN113642039A (en) * 2021-08-09 2021-11-12 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110287204A (en) * 2019-05-22 2019-09-27 平安普惠企业管理有限公司 Document method for updating edition, device, equipment and readable storage medium storing program for executing
CN110442774A (en) * 2019-07-12 2019-11-12 平安普惠企业管理有限公司 Information acquisition method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110287204A (en) * 2019-05-22 2019-09-27 平安普惠企业管理有限公司 Document method for updating edition, device, equipment and readable storage medium storing program for executing
CN110442774A (en) * 2019-07-12 2019-11-12 平安普惠企业管理有限公司 Information acquisition method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784566A (en) * 2021-01-22 2021-05-11 平安普惠企业管理有限公司 Document generation method, device, equipment and storage medium
CN113642039A (en) * 2021-08-09 2021-11-12 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium
CN113642039B (en) * 2021-08-09 2024-05-28 平安科技(深圳)有限公司 Configuration method and device of document template, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112287914B (en) PPT video segment extraction method, device, equipment and medium
CN112613917A (en) Information pushing method, device and equipment based on user portrait and storage medium
CN113050900B (en) Screen sharing method, device, equipment and storage medium
CN111797351A (en) Page data management method and device, electronic equipment and medium
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN112433705A (en) Script generation method and device, electronic equipment and storage medium
CN111680483A (en) Document template updating method and device, electronic equipment and medium
CN111984601A (en) Log file deleting method and device, electronic equipment and storage medium
CN112001159A (en) Document generation method and device, electronic equipment and storage medium
CN112711398A (en) Method, device and equipment for generating buried point file and storage medium
CN112417475A (en) Fingerprint image encryption method and device, electronic equipment and readable storage medium
CN116360769A (en) Code generation method, device, equipment and storage medium
CN115543198A (en) Method and device for lake entering of unstructured data, electronic equipment and storage medium
CN112199483B (en) Information input assisting method and device, electronic equipment and storage medium
CN113141369B (en) Artificial intelligence-based firewall policy management method and related equipment
CN111933241B (en) Medical data analysis method, device, electronic equipment and storage medium
CN112181482B (en) Version verification method and device, electronic equipment and storage medium
CN112181485B (en) Script execution method and device, electronic equipment and storage medium
CN112784566A (en) Document generation method, device, equipment and storage medium
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium
CN112434062A (en) Quasi-real-time data processing method, device, server and storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
CN112134968A (en) Domain name access method and device, electronic equipment and storage medium
CN115102770A (en) Resource access method, device and equipment based on user permission and storage medium
CN111857883B (en) Page data checking method and device, electronic equipment and storage medium

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