CN109255104A - Certification template configuration method, apparatus, computer equipment and storage medium - Google Patents

Certification template configuration method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109255104A
CN109255104A CN201811021206.7A CN201811021206A CN109255104A CN 109255104 A CN109255104 A CN 109255104A CN 201811021206 A CN201811021206 A CN 201811021206A CN 109255104 A CN109255104 A CN 109255104A
Authority
CN
China
Prior art keywords
modification
certification template
certification
template
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811021206.7A
Other languages
Chinese (zh)
Other versions
CN109255104B (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 Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty 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 Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201811021206.7A priority Critical patent/CN109255104B/en
Publication of CN109255104A publication Critical patent/CN109255104A/en
Application granted granted Critical
Publication of CN109255104B publication Critical patent/CN109255104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing
    • 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/169Annotation, e.g. comment data or footnotes

Abstract

The embodiment of the present application provides a kind of certification template configuration method, apparatus, computer equipment and storage medium.The described method includes: obtaining modification instructs modified data, instruct modified data as target data the modification;Determine field name corresponding to the target data;Determine modification class word relevant to the modification instruction;If receiving generation instruction, the modification is generated according to field name corresponding to the modification class word, the target data, parameter preset symbol and instructs corresponding certification template.The application can flexibly configure certification template, improve the efficiency for generating certification template.

Description

Certification template configuration method, apparatus, computer equipment and storage medium
Technical field
This application involves technical field of data processing more particularly to a kind of certification template configuration method, apparatus, computer to set Standby and storage medium.
Background technique
When user is modified by data of the system to preservation, it is sometimes desirable to write certification, i.e., this correct it is bright Carefully, with which content of record modification, which can be used as the voucher of this modification.As business personnel is directed to by insurance system When the corresponding policy information of a certain insurance products that insurer buys is modified, need to write corresponding batch to this modification Text, to record the content that declaration form is modified, so as to insurer it is known that the modification situation of declaration form.Since the product line of insurance is non- Often complicated, field name corresponding to different product is again different, and the description of certification be mostly it is identical, such as A is modified At B.It is largely duplicate in this way to operate big in declaration form amount if each declaration form requires to fill in the description of certification when modifying When, efficiency is very low for business personnel.
Summary of the invention
The embodiment of the present application provides a kind of certification template configuration method, apparatus, computer equipment and storage medium, can be flexible Certification template is configured, the efficiency for generating certification template is improved.
In a first aspect, the embodiment of the present application provides a kind of certification template configuration method, this method comprises:
It obtains modification and instructs modified data, instruct modified data as target data the modification;It determines Field name corresponding to the target data;Determine modification class word relevant to the modification instruction;If receiving generation Instruction generates the modification according to field name corresponding to the modification class word, the target data, parameter preset symbol Instruct corresponding certification template.
Second aspect, the embodiment of the present application provide a kind of certification template configuration device, which includes for executing State the corresponding unit of method described in first aspect.
The third aspect, the embodiment of the present application provide a kind of computer equipment, and the computer equipment includes memory, with And the processor being connected with the memory;
The memory is for storing computer program, and the processor is for running the calculating stored in the memory Machine program, to execute method described in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of storage medium, and the storage medium is stored with computer program, When the computer program is executed by processor, method described in above-mentioned first aspect is realized.
The embodiment of the present application can according to determining modification class word, determination target data corresponding to field name and Parameter preset symbol generates the corresponding certification template of this modification, the i.e. corresponding certification template of modification instruction.The application can Flexible configuration certification template, improves the efficiency for generating certification template.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of certification template configuration method provided by the embodiments of the present application;
Fig. 2 is the sub-process schematic diagram of certification template configuration method provided by the embodiments of the present application;
Fig. 3 is the sub-process schematic diagram of certification template configuration method provided by the embodiments of the present application;
Fig. 4 is the sub-process schematic diagram of certification template configuration method provided by the embodiments of the present application;
Fig. 5 is the schematic block diagram of certification template configuration device provided by the embodiments of the present application;
Fig. 6 is the schematic block diagram of field determination unit provided by the embodiments of the present application;
Fig. 7 is the schematic block diagram of modification determination unit provided by the embodiments of the present application;
Fig. 8 is the schematic block diagram of generation unit provided by the embodiments of the present application;
Fig. 9 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
Fig. 1 is the flow diagram of certification template configuration method provided by the embodiments of the present application.As shown in Figure 1, this method Including S101-S104.
S101 obtains modification and instructs modified data, instructs modified data as target data the modification.
Wherein, modification instruction includes addition instruction, change directive, deletes instruction.It such as detects user and clicks " addition ", " more Change ", the operation of the associated buttons such as " deletion ", generate modification instruction, according to the corresponding data of modification instruction modification, and obtain modification Modified data are instructed, instruct modified data as target data modification.Modify instruction such as addition instruction, then It is the related data added that modification, which instructs modified data, the related data of addition is obtained, by the related data of the addition As target data.Such as modifying instruction is change directive, then it is changed dependency number that modification, which instructs modified data, According to the changed related data of acquisition, using the related data changed as target data.Such as modifying instruction is to delete to refer to It enables, then it is deleted related data that modification, which instructs modified data, obtains deleted related data, the part institute deletes The related data removed is as target data.Wherein, target data includes element included by node and/or node.Such as throwing For the corresponding policy information of a certain insurance products that guarantor buys, policy information includes multinomial information, for example, insurer information, Information, information of beneficiary of insurant etc., each single item information includes multinomial sub-information again, for example, the packet of insurer Include the information such as name, type of credential, passport NO., the mobile phone of insurer.In the embodiment of the present application, by the letter of insurer Breath is known as a node, and field name corresponding to the node is insurer, by each corresponding sub- letter of the information of insurer Breath is known as element, i.e., includes insurer's name, type of credential, passport NO., mobile electricity under node corresponding to insurer's information The elements such as words.Field name corresponding to element is respectively insurer's name, type of credential, passport NO., mobile phone etc..It will And so on element included by all nodes and all nodes in available policy information.It should be noted that allowing Some nodes are not no elements.
Such as addition instruction, the related data of addition includes node (not having element under the node), node and section The included element of point.If the related data of addition includes element included by node and node, including following two situation: both It is added to node and is added to one or more element corresponding under the node again;The one or more being only added under node Element.If only add node under one or more elements, it can be understood as, if in certification template only addition one or Multiple elements are then not easy to understand which node bottom is under, therefore the related data added in this case further includes adding Node corresponding to one or more element added.Such as change directive, the related data changed includes node Element included by (do not have element under the node or have element but only change node), node and node.If the phase changed Closing data includes element included by node and node, including following two situation: not only having had changed node but also had had changed the node Lower one or more corresponding element;Only have changed one or more elements under node.If only changing one under node A or multiple elements, it can be understood as, if only one or more element of change in certification template, is not easy to understand Which node bottom is under, therefore the related data changed in this case further includes node corresponding to element.Such as deleting For instruction, the related data deleted includes node (not having element under the node), element included by node and node. If the related data deleted includes element included by node and node, including following two situation: by knot removal, this is deleted It include one or more elements under the node removed;A portion element under deletion of node, i.e., only delete element.If only deleting Except a portion element under node, it can be understood as, if one or more element only deleted in certification template, Which node is then not easy to understand bottom is under, therefore the related data deleted in this case further includes corresponding to element Node.
Either node or element are saved with field in the database.So node has corresponding field Title, element also have corresponding field name.
S102 determines field name corresponding to the target data.
If target data includes element included by node and node, then it is determined that field name corresponding to target data Claim, including determining field name corresponding to element included by field name corresponding to node and node.Wherein, number of targets According to may include multiple nodes, element included by each node can have one or more.
In one embodiment, as shown in Fig. 2, step S102 includes the following steps S201-S204.
S201 is obtained and is shown field name corresponding to the target data.When according to modification instruction modification data, It can select/input corresponding field name.When such as to modify instruction be change directive, the field name that can select correspondence that need to change; When modifying instruction such as to add instruction, the field name of corresponding addition can be inputted.It obtains and shows what modification instruction was modified The field name of data, the i.e. field name of target data.
S202 judges whether the deletion instruction for receiving user.Wherein, deletion instruction is for deleting the mesh of display Mark field name corresponding to data.If not receiving the deletion instruction of user, step S203 is executed;If receiving deleting for user Except instruction, step S204 is executed.
S203, field name corresponding to the target data by display are determined as word corresponding to the target data Name section.
S204 deletes field name corresponding to the target data of display;The field name of user's input is received, it will The field name of user's input is determined as field name corresponding to the target data.It is to be appreciated that on the one hand, number of targets It can be saved in the database according to corresponding field name, on the other hand, field name corresponding to target data can also be shown In certification template.The field name being typically maintained in database has certain requirement, such as relatively simple or need for English Text etc..It so will lead to a field name, if being shown in certification template, corresponding field name can be made to seem and compared It is jerky hard to understand, it is not easy to checking and reading in the future, then word corresponding to the target data that can be displayed in certification template Name section is modified, i.e., first deletes field name corresponding to the target data of display, then receives the field of user's input Name is referred to as field name corresponding to target data.
Embodiment shown in Fig. 2 provides corresponding mode to allow user can be set corresponding to straightaway target data Field name, checking and reading convenient for certification template in the future.
S103 determines modification class word relevant to the modification instruction.
Due to modification instruction include addition instruction, change directive, delete instruction, accordingly, add instruction, change directive, It is different for deleting the corresponding modification class word of instruction.Furthermore, it is contemplated that the language communicative habits of each different people, for The same modification instruction, can also be previously provided with multiple and different modification class words.Modify instruction such as addition instruction, then with / addition ... etc. that it includes: to increase that addition, which instructs relevant modification class word ....Such as modifying instruction is change directive, then with more Change the relevant modification class word of instruction include: by field name by ... be revised as .../be changed to field name ... ... etc.. Modify instruction such as to delete instruction, then modification class word relevant to instruction is deleted includes: to delete .../will ... it deletes/subtracts It is few ... etc..Here, instructing relevant concrete modification class word to be not especially limited each modification.
In one embodiment, as shown in figure 3, step S103 includes the following steps S301-S304.
S301 shows pre-set multiple modification class words relevant to the modification instruction.
S302 judges whether to receive selection instruction, and the selection instruction from multiple modification class words of display for selecting Select a modification class word.Selection instruction can be triggered by operations such as the clicks of user.If not receiving selection instruction, execute Step S303;If receiving selection instruction, step S304 is executed.
One modification class word of default is determined as modification class word relevant to the modification instruction by S303, wherein It is that one of them in the multiple modification class words with the modification instructions match shown is repaired that one of default, which modifies class word, Change class word.
The selected modification class word of selection instruction is determined as modification class relevant to the modification instruction by S304 Word.
It is to be appreciated that can choose a modification class word, the modification class word of default also can be used.
Embodiment shown in Fig. 3 provides corresponding mode to allow user can choose and match with the grammatical representation of oneself habit Modification class word.
S104, if generation instruction is received, according to field name corresponding to the modification class word, the target data Claim, preset pa-rameter symbols generate the modification and instruct corresponding certification template, wherein preset pa-rameter symbols are for indicating ginseng Number.
The operation that user clicks " generation " associated button is such as detected, instruction is generated.It is raw if receiving generation instruction At corresponding certification template.Wherein, parameter is replaced in certification template with preset pa-rameter symbols, is ultimately producing specific certification When, it is replaced with occurrence.
In one embodiment, target data includes element included by node and node.As shown in figure 4, step S104 packet Include following steps S401-S412.
S401 obtains a node in the target data as present node.
S402, judges whether the present node is modified with the presence of element.It is modified if existing without element, executes step S403;If there is element to modify, step S404 is executed.Wherein, if without element exist modification include two kinds of situations, one, should Node does not have an element, and two, there is element under the node, but be not related to the modification of element under the node.Wherein, it should be noted that It is, if it is to delete instruction that modification, which instructs, when which instructs corresponding some node of deletion, due to being also required to delete the node simultaneously Under element, if therefore delete instruction, then under node with the presence of element modification.
S403 is raw according to field name corresponding to the modification class word, the present node, preset pa-rameter symbols At certification template corresponding to the present node, using certification template corresponding to the present node as a certification mould Plate.Then step S410 is triggered.
Wherein, if modification instruction is addition instruction, then certification template corresponding to present node includes: addition class word Field name corresponding to language, present node, the first parameter preset symbol.Wherein, the first parameter preset symbol adds for indicating The parameter value added.If adding class word are as follows: addition ..., field name corresponding to present node: declaration form trigger mechanism, first Parameter preset symbol indicates with %value, certification template corresponding to the present node ultimately produced are as follows: addition declaration form triggers machine %value processed.
If modification instruction be change directive, then the corresponding certification template style of present node include: change class word, when Field name corresponding to front nodal point, the second parameter preset symbol, third parameter preset symbol.Wherein, the second parameter preset accords with Number be used for expression parameter initial value, third parameter preset symbol be used for expression parameter change in values.If changing class word are as follows: by field name Claim by ... be changed to ..., field name corresponding to present node are as follows: declaration form trigger mechanism, the second parameter preset symbol % Yuan and third parameter preset symbol all indicate with %geng, certification template corresponding to the present node ultimately produced are as follows: will Declaration form trigger mechanism is changed to %geng by %yuan.
If modification instruction for delete instruction, then the corresponding certification template style of present node include: delete class word, when Field name corresponding to front nodal point, the 4th parameter preset symbol.Wherein, the 4th symbol is deleted for expression parameter initial value.If Delete class word are as follows: delete ..., field name corresponding to present node are as follows: declaration form trigger mechanism, the 4th parameter preset symbol It is indicated with@s, certification template corresponding to the present node ultimately produced are as follows: delete declaration form trigger mechanism@s.
For certification template corresponding to the present node when ultimately producing certification, parameter preset symbol can be with occurrence come generation It replaces, the certification that certification template ultimately produces as corresponding to the present node for example of passing the imperial examinations at the provincial level above may respectively be: addition declaration form triggering Declaration form trigger mechanism is become special major disease, deletion declaration form trigger mechanism death etc. from death by mechanism spy major disease.
Using certification template corresponding to the present node ultimately produced as a certification template.
S404 is generated according to field name corresponding to the modification class word, the present node, parameter preset symbol Certification template corresponding to the present node.
If modification instruction instructs for deletion or addition instruction, in certification template and step S403 corresponding to present node What is described is consistent, specifically please refers to step S403, details are not described herein.Wherein, it should be noted that if modification instruction is change Instruction, if the change directive has element included by change present node, then corresponding, certification mould corresponding to present node Plate includes: field name corresponding to present node, the 5th parameter preset symbol.The field name as corresponding to present node Are as follows: declaration form trigger mechanism, the 5th parameter preset symbol is %value, then corresponding, certification template corresponding to present node Are as follows: declaration form trigger mechanism %value.
S405, whether the element for judging that the present node has modification includes multiple.If there is one, step is executed S406;If there is multiple, execution step S408.
S406, according to field name corresponding to the modification class word, the element, the generation of parameter preset symbol Certification template corresponding to element.
If should be noted that, modification instruction is change directive, then certification template corresponding to the element includes: change Field name corresponding to class word, currentElement, the second parameter preset symbol, third parameter preset symbol;If modification instruction It is instructed for addition, then certification template corresponding to the element includes: field name corresponding to currentElement, the first default ginseng Numerical symbol;If modification instruction is deletes instruction, then certification template corresponding to the element includes: word corresponding to currentElement Name section, the 4th parameter preset symbol.If modification instruction be change directive, if change class word are as follows: by field name by ... more It is changed to ..., field name corresponding to the element are as follows: name, the second parameter preset symbol %yuan and third parameter preset Symbol all indicates with %geng, certification template corresponding to the element ultimately produced are as follows: name is changed to % by %yuan geng.If modification instruction is addition instruction, field name corresponding to the element are as follows: name, the first parameter preset symbol % Value indicates, certification template corresponding to the element ultimately produced are as follows: name %value.If modification instruction refers to delete It enables, field name corresponding to the element are as follows: name, fourth element and pa-rameter symbols indicate with@s, the element ultimately produced Corresponding certification template are as follows: name@s.
S407, according to certification template generation one corresponding to certification template corresponding to the present node and the element Certification template.Then step S410 is executed.
Specifically, by parameter preset symbol certification corresponding to the element in certification template corresponding to present node Template replacement, to generate a certification template.If modification instruction is change directive, certification template corresponding to present node Are as follows: field name corresponding to present node, the 5th parameter preset symbol;The certification template of element corresponding to node: modification Field name corresponding to class word, element, the second parameter preset symbol, third parameter preset symbol.Present node institute is right The replacement of certification template corresponding to parameter preset symbol element in the certification template answered is to generate a certification template, i.e., and one Certification template are as follows: field name corresponding to present node, change class word, field name corresponding to element, second pre- Setting parameter symbol, third parameter preset symbol.As insurer's name is changed to %geng by %yuan.If modification instruction is to add Add instruction, ultimately produce a certification template are as follows: field name corresponding to addition class word, present node, element institute are right The field name answered, the first parameter preset symbol.Such as add insurer's name %value.If modification instruction instructs to delete, The certification template ultimately produced are as follows: delete field name corresponding to class word, present node, field corresponding to element Title, the 4th parameter preset symbol.Such as delete insurer name@s.
S408 is generated according to field name corresponding to the modification class word, the multiple element, parameter preset symbol Certification template corresponding to multiple elements.
Specifically, obtain each of multiple elements element by preset order, according to the modification class word, each Field name corresponding to element, parameter preset symbol generate certification template corresponding to each element;In each element Between corresponding certification template, the first separator is added, to generate certification template corresponding to multiple elements.First point of addition It is in order to which certification template corresponding to each element is separated, to improve the reading experience of user every according with.Wherein, it presets Sequence can be modification sequence of element etc..First separator such as comma.Specifically generate certification corresponding to each element Template please refers to the description in step S406, and details are not described herein.
If modification instruction is change directive, certification template corresponding to the multiple elements ultimately produced can be with are as follows: by surname Name is changed to %geng1 by %yuan1, passport NO. is changed to %geng2 by %yuan2, by mobile phone by %yuan3 It is changed to %geng3.If modification instruction is addition instruction, certification template corresponding to the multiple elements ultimately produced are as follows: surname Name %value1, passport NO. %value2, mobile phone %value3.If modification instruction ultimately produces to delete instruction Certification template corresponding to multiple elements are as follows: name@s1;Passport NO.@s2;Mobile phone@s3.
S409 is raw according to certification template corresponding to certification template corresponding to the present node and the multiple element At a certification template.Then step S410 is executed.
By the certification mould corresponding to multiple element of the parameter preset symbol in certification template corresponding to present node Plate replacement, to form a certification template.If there are three elements, if modification instruction instructs for modification, one ultimately produced Certification template are as follows: field name corresponding to present node, field name corresponding to the first element, the second parameter preset symbol 1, third parameter preset symbol 1;Field name corresponding to second element, the second parameter preset symbol 2, third parameter preset symbol Numbers 2, field name, the second parameter preset symbol 3, third parameter preset symbol 3 corresponding to third element.As ultimately produced One certification template can be with are as follows: name is changed to %geng1 by %yuan1 by insurer, and passport NO. is changed by %yuan2 For %geng2, mobile phone is changed to %geng3 by %yuan3.If modification instruction is addition instruction, ultimately produce One certification template are as follows: field name corresponding to addition class word, field name, the first element corresponding to present node, First parameter preset symbol 1, field name, the first parameter preset symbol 2 corresponding to second element, corresponding to third element Field name, the first parameter preset symbol 3.The certification template such as ultimately produced can be with are as follows: addition insurer's name % Value1, passport NO. %value2, mobile phone %value3.If modification instruction instructs to delete, one ultimately produced Certification template are as follows: delete field name corresponding to class word, present node, field name corresponding to the first element, the Four parameter preset symbols 1, field name, the 4th parameter preset symbol 2 corresponding to second element, word corresponding to third element Name section, the 4th parameter preset symbol 3.The certification template such as ultimately produced can be with are as follows: deletes insurer's name s1, card Piece number code@s2, mobile phone@s3.
S410 judges whether to obtain all nodes in the target data.If also being had not been obtained in target data Node executes S411;If obtaining all nodes in target data, S412 is executed.
S411 obtains next node as present node.Then step S402 is executed.
A plurality of certification template is combined by S412, to form the corresponding certification template of the modification instruction.
It is to be appreciated that if the element for currently having under multiple nodes and/or multiple nodes there are modifications, finally will be each Corresponding every certification template is combined under node, forms the corresponding certification template of modification instruction.
Specifically, a plurality of certification template is arranged successively, adds the second separator between every certification template;It will be a plurality of Certification template is according to the sequence number consecutively after arrangement, in order to check and read, is thusly-formed corresponding batch of modification instruction Literary template.Wherein, the second separator can be branch and/or carriage return character etc..
The corresponding certification template of the modification instruction such as eventually formed are as follows:
1. adding insurer's name Zhang San, passport NO. xxxx, mobile phone 13213133212;
2. adding insurer's name Li Si, passport NO. yyyy, mobile phone 15015015015;
3. adding insurer's name king two, passport NO. zzzz, mobile phone 18015623698.
The corresponding certification template of modification instruction can be generated in embodiment shown in Fig. 4.It should be noted that the embodiment First parameter preset symbol, the first parameter preset symbol 1 involved in description, the first parameter preset symbol 2, the first parameter preset Symbol 3, the second parameter preset symbol, the second parameter preset symbol 1, the second parameter preset symbol 2, the second parameter preset symbol 3, Third parameter preset symbol, third parameter preset symbol 1, third parameter preset symbol 2, third parameter preset symbol the 3, the 4th are pre- Setting parameter symbol etc. is intended merely to illustrate to distinguish different parameters, in practical applications, can with other pa-rameter symbols come It indicates.Meanwhile field name corresponding to present node is also intended merely to citing and facilitates understanding, does not constitute to present node institute The limitation of corresponding field name.
Above method embodiment can instruct corresponding certification template with configuration modification, reach flexibly matching for certification template It sets.
Modification data and former data progress after generating certification template corresponding to modification instruction, after instruction will be modified Match, to obtain the change collection of modification instruction, according to the data that change is concentrated, utilizes the corresponding certification mould of the modification instruction of generation Plate generates the corresponding certification of modification instruction.
It should be noted that configured certification template can save in systems, calls directly, mention when being used for next time The efficiency of high template configuration.
Fig. 5 is the schematic block diagram of certification template configuration device provided by the embodiments of the present application.The device includes for holding Unit corresponding to the above-mentioned certification template configuration method of row.The device can be configured in desktop computer, tablet computer, hand-held electric Brain, etc. in terminals.Specifically, as shown in figure 5, the device 50 includes data capture unit 501, field determination unit 502, modification Determination unit 503 and generation unit 504.
Data capture unit 501, instructs modified data for obtaining modification, and the modification is instructed modified number According to as target data.Wherein, modification instruction includes addition instruction, change directive, deletes instruction.
Field determination unit 502, for determining field name corresponding to the target data.
In one embodiment, as shown in fig. 6, field determination unit 502 includes: to obtain display unit 601, receive judgement list Member 602, field name determination unit 603 and field delete determination unit 604.Wherein, display unit 601 is obtained, for obtaining It takes and shows field name corresponding to the target data.Judging unit 602 is received, receives user's for judging whether Delete instruction.Wherein, deletion instruction is for deleting field name corresponding to the target data of display.Field name is true Order member 603, for field name corresponding to the target data of display to be determined as corresponding to the target data Field name.Field deletes determination unit 604, for deleting field name corresponding to the target data of display;It receives The field name that user inputs is determined as field name corresponding to the target data by the field name of user's input.
Determination unit 503 is modified, determines modification class word relevant to the modification instruction.
In one embodiment, as shown in fig. 7, modification determination unit 503 includes: word display unit 701, selection judgement list Member 702 and modification word determination unit 703.Wherein, word display unit 701, for showing pre-set multiple and institute It states modification and instructs relevant modification class word.Judging unit 702 is selected, receives selection instruction for judging whether, the selection Instruction from multiple modification class words of display for selecting a modification class word.Word determination unit 703 is modified, being used for will One modification class word of default is determined as modification class word relevant to the modification instruction, wherein a modification of default Class word is one of modification class word in the multiple modification class words with the modification instructions match shown.Modify word Language determination unit 703 is also used to for the selected modification class word of selection instruction being determined as related to the modification instruction Modification class word.
Generation unit 504 is right according to the modification class word, target data institute if generating instruction for receiving Field name, the corresponding certification template of the preset pa-rameter symbols generation modification instruction answered, wherein preset pa-rameter symbols For expression parameter.
In one embodiment, as shown in figure 8, generation unit 504 includes: that present node acquiring unit 801, the first element are sentenced Disconnected unit 802, the first template generation unit 803, node template generation unit 804, second element judging unit 805, single element Template generation unit 806, the second template generation unit 807, multielement template generation unit 808, third template generation unit 809, judging unit 810 and assembled unit 811 are obtained.
Present node acquiring unit 801, for obtaining a node in the target data as present node.
First element judging unit 802, for judging the present node whether with the presence of element modification.
First template generation unit 803, if not having element to there is modification for the present node, according to the modification class Field name corresponding to word, the present node, parameter preset symbol generate certification mould corresponding to the present node Plate, using certification template corresponding to the present node as a certification template.Then triggering obtains judging unit 810.
Node template generation unit 804, if being modified for the present node with the presence of element, according to the modification class word Field name corresponding to language, the present node, parameter preset symbol generate certification template corresponding to the present node.
Second element judging unit 805, whether the element for judging that the present node has modification includes multiple.
Single element template generation unit 806, if the member for the present node to have modification is known as one, according to described Field name corresponding to modification class word, the element, parameter preset symbol generate certification template corresponding to the element.
Second template generation unit 807, for the certification template according to corresponding to the present node and element institute One certification template of corresponding certification template generation.Specifically, the second template generation unit 807 is used for the present node institute Parameter preset symbol certification template corresponding to element replacement in corresponding certification template, to generate a certification mould Plate.Then triggering obtains judging unit 810.
Multielement template generation unit 808, if for the present node exist modification element include it is multiple, according to institute State field name corresponding to modification class word, the multiple element, parameter preset symbol is generated and criticized corresponding to multiple elements Literary template.Wherein, multielement template generation unit 808 includes: multiple element template generation units, the first adding unit.Wherein, Multiple element template generation units, for obtaining each of multiple elements element by preset order, according to the modification class Field name corresponding to word, each element, parameter preset symbol generate certification template corresponding to each element.The One adding unit, for the first separator being added, to generate multiple elements between the certification template corresponding to each element Corresponding certification template.
Third template generation unit 809 is also used to the certification template according to corresponding to the present node and the multiple One certification template of certification template generation corresponding to element.Specifically, third template generation unit 809, for prosthomere will to be worked as Parameter preset symbol certification template corresponding to the multiple element replacement in the corresponding certification template of point, to form one Certification template.Then triggering obtains judging unit 810.
Judging unit 810 is obtained, for judging whether to obtain all nodes in the target data.
Present node acquiring unit 801 obtains next if the node for being also used to also have not been obtained in the target data Node is as present node.Then the first element judging unit 802 is triggered, to judge the present node whether with the presence of element Modification.
Assembled unit 811 carries out a plurality of certification template if all nodes in the target data have all obtained Combination forms the corresponding certification template of the modification instruction.Wherein, assembled unit 811 includes the second adding unit, List of Documents Member.Wherein, the second adding unit adds second point for being arranged successively a plurality of certification template between every certification template Every symbol.Numbered cell, for according to the sequence number consecutively after arrangement, modifying corresponding to instruction a plurality of certification template to be formed Certification template.
It should be noted that it is apparent to those skilled in the art that, the tool of above-mentioned apparatus and each unit Body realizes process, can be no longer superfluous herein with reference to the corresponding description in preceding method embodiment, for convenience of description and succinctly It states.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in Figure 9 It calculates and is run on machine equipment.
Fig. 9 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The equipment can be terminal.Its In, terminal can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wearable device etc. Electronic equipment with communication function.The equipment 90 includes processor 902, memory and the net connected by system bus 901 Network interface 903, wherein memory may include non-volatile memory medium 904 and built-in storage 905.
The non-volatile memory medium 904 can storage program area 9041 and computer program 9042.This is non-volatile to deposit , it can be achieved that certification template configuration described above when the computer program 9042 stored in storage media is executed by processor 902 Method.The processor 902 supports the operation of whole equipment 90 for providing calculating and control ability.The built-in storage 905 is non- The operation of computer program in volatile storage medium provides environment can make when the computer program is executed by processor 902 It obtains processor 902 and executes certification template configuration method described above.The network interface 903 is for carrying out network communication.Ability Field technique personnel are appreciated that structure shown in Fig. 9, only the block diagram of part-structure relevant to application scheme, and The restriction for the equipment 90 being applied thereon to application scheme is not constituted, specific equipment 90 may include than as shown in the figure more More or less component perhaps combines certain components or with different component layouts.
Wherein, the processor 902 is for running computer program stored in memory, to realize following steps:
It obtains modification and instructs modified data, instruct modified data as target data the modification;It determines Field name corresponding to the target data;Determine modification class word relevant to the modification instruction;If receiving generation Instruction generates the modification according to field name corresponding to the modification class word, the target data, parameter preset symbol Instruct corresponding certification template.
In one embodiment, the target data includes element included by node and node, and the processor 902 is being held The row field name according to corresponding to the modification class word, the target data, parameter preset symbol are repaired described in generating When changing the corresponding certification template of instruction, it is implemented as follows step:
A node in the target data is obtained as present node;Judge whether the present node has element to deposit It is modifying;If the present node does not have element to there is modification, according to corresponding to the modification class word, the present node Field name, parameter preset symbol generate certification template corresponding to the present node, will be corresponding to the present node Certification template is as a certification template;Judge whether to obtain all nodes in the target data;If the number of targets The node also having not been obtained in obtains next node as present node, and whether return is described judges the present node The step of with the presence of element modification;If all nodes in the target data have all obtained, a plurality of certification template is subjected to group It closes, forms the corresponding certification template of the modification instruction.
In one embodiment, the processor 902 is also implemented as follows step:
If the present node is modified with the presence of element, according to corresponding to the modification class word, the present node Field name, parameter preset symbol generate certification template corresponding to the present node;Judge that the present node exists to repair Whether the element changed includes multiple;If the member that the present node has modification is known as one, according to the modification class word, institute State field name corresponding to element, parameter preset symbol generates certification template corresponding to the element;According to described current One certification template of certification template generation corresponding to certification template and the element corresponding to node;Sentence described in being then returned to Disconnected the step of whether obtaining all nodes in the target data.
In one embodiment, the processor 902 is also implemented as follows step:
If the present node exist modification element include it is multiple, according to the modification class word, the multiple element Corresponding field name, parameter preset symbol generate certification template corresponding to multiple elements;According to the present node institute One certification template of certification template generation corresponding to corresponding certification template and the multiple element;It is then returned to the judgement The step of whether obtaining all nodes in the target data.In one embodiment, the processor 902 is described in the execution It is right that multiple element institutes are generated according to field name corresponding to the modification class word, the multiple element, parameter preset symbol When the certification template answered, it is implemented as follows step:
Each of multiple elements element is obtained by preset order, according to the modification class word, each element institute Corresponding field name, parameter preset symbol generate certification template corresponding to each element;Corresponding to each element Certification template between, add the first separator, to generate certification template corresponding to multiple elements.
In one embodiment, the processor 902 is executing the certification template according to corresponding to the present node With when one certification template of certification template generation, be implemented as follows step corresponding to the multiple element:
By the parameter preset symbol in certification template corresponding to the present node corresponding to the multiple element Certification template replacement, to generate a certification template.
In one embodiment, the processor 902 execute it is described a plurality of certification template is combined, repaired described in formation When changing certification template corresponding to instruction, it is implemented as follows step:
A plurality of certification template is arranged successively, adds the second separator between every certification template;By a plurality of certification mould Plate is according to the sequence number consecutively after arrangement, to form the corresponding certification template of the modification instruction.
It should be appreciated that in the embodiment of the present application, alleged processor 902 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (application program lication Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program can be stored in a storage medium, The storage medium can be computer readable storage medium.The computer program is by the processing of at least one of the computer system Device executes, to realize the process step of the embodiment of the above method.
Therefore, present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.It should Storage medium is stored with computer program, which performs the steps of when being executed by a processor
It obtains modification and instructs modified data, instruct modified data as target data the modification;It determines Field name corresponding to the target data;Determine modification class word relevant to the modification instruction;If receiving generation Instruction generates the modification according to field name corresponding to the modification class word, the target data, parameter preset symbol Instruct corresponding certification template.
In one embodiment, the target data includes element included by node and node, and the processor is executing The field name according to corresponding to the modification class word, the target data, parameter preset symbol generate the modification When instructing corresponding certification template, it is implemented as follows step:
A node in the target data is obtained as present node;Judge whether the present node has element to deposit It is modifying;If the present node does not have element to there is modification, according to corresponding to the modification class word, the present node Field name, parameter preset symbol generate certification template corresponding to the present node, will be corresponding to the present node Certification template is as a certification template;Judge whether to obtain all nodes in the target data;If the number of targets The node also having not been obtained in obtains next node as present node, and whether return is described judges the present node The step of with the presence of element modification;If all nodes in the target data have all obtained, a plurality of certification template is subjected to group It closes, forms the corresponding certification template of the modification instruction.
In one embodiment, the processor is also implemented as follows step:
If the present node is modified with the presence of element, according to corresponding to the modification class word, the present node Field name, parameter preset symbol generate certification template corresponding to the present node;Judge that the present node exists to repair Whether the element changed includes multiple;If the member that the present node has modification is known as one, according to the modification class word, institute State field name corresponding to element, parameter preset symbol generates certification template corresponding to the element;According to described current One certification template of certification template generation corresponding to certification template and the element corresponding to node;Sentence described in being then returned to Disconnected the step of whether obtaining all nodes in the target data.
In one embodiment, the processor is also implemented as follows step:
If the present node exist modification element include it is multiple, according to the modification class word, the multiple element Corresponding field name, parameter preset symbol generate certification template corresponding to multiple elements;According to the present node institute One certification template of certification template generation corresponding to corresponding certification template and the multiple element;It is then returned to the judgement The step of whether obtaining all nodes in the target data.
In one embodiment, the processor is described right according to the modification class word, the multiple element institute in execution When the field name answered, parameter preset symbol generate certification template corresponding to multiple elements, it is implemented as follows step:
Each of multiple elements element is obtained by preset order, according to the modification class word, each element institute Corresponding field name, parameter preset symbol generate certification template corresponding to each element;Corresponding to each element Certification template between, add the first separator, to generate certification template corresponding to multiple elements.
In one embodiment, the processor is executing the certification template according to corresponding to the present node and institute When stating one certification template of certification template generation corresponding to multiple elements, it is implemented as follows step:
By the parameter preset symbol in certification template corresponding to the present node corresponding to the multiple element Certification template replacement, to generate a certification template.
In one embodiment, the processor execute it is described a plurality of certification template is combined, form the modification When certification template corresponding to instruction, it is implemented as follows step:
A plurality of certification template is arranged successively, adds the second separator between every certification template;By a plurality of certification mould Plate is according to the sequence number consecutively after arrangement, to form the corresponding certification template of the modification instruction.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation.Those skilled in the art can be with It is well understood, for convenience of description and succinctly, the specific work process of the device of foregoing description, equipment and unit can With with reference to the corresponding process in preceding method embodiment, details are not described herein.The above, the only specific embodiment party of the application Formula, but the protection scope of the application is not limited thereto, and anyone skilled in the art discloses in the application In technical scope, various equivalent modifications or substitutions can be readily occurred in, these modifications or substitutions should all cover the guarantor in the application Within the scope of shield.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (10)

1. a kind of certification template configuration method, which is characterized in that the described method includes:
It obtains modification and instructs modified data, instruct modified data as target data the modification;
Determine field name corresponding to the target data;
Determine modification class word relevant to the modification instruction;
If generation instruction is received, according to field name, parameter preset corresponding to the modification class word, the target data Symbol generates the modification and instructs corresponding certification template.
2. the method according to claim 1, wherein the target data includes member included by node and node Element, the field name according to corresponding to the modification class word, the target data, parameter preset symbol generate described in repair Change the corresponding certification template of instruction, comprising:
A node in the target data is obtained as present node;
Judge whether the present node is modified with the presence of element;
If the present node does not have element to there is modification, according to word corresponding to the modification class word, the present node Name section, parameter preset symbol generate certification template corresponding to the present node, by corresponding to the present node batches Literary template is as a certification template;
Judge whether to obtain all nodes in the target data;
If the node also being had not been obtained in the target data, next node is obtained as present node, returns to the judgement The step of whether present node is modified with the presence of element;
If all nodes in the target data have all obtained, a plurality of certification template is combined, the modification is formed and refers to Enable corresponding certification template.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If the present node is modified with the presence of element, according to field corresponding to the modification class word, the present node Title, parameter preset symbol generate certification template corresponding to the present node;
Whether the element for judging that the present node has modification includes multiple;
If the member that the present node has modification is known as one, according to word corresponding to the modification class word, the element Name section, parameter preset symbol generate certification template corresponding to the element;
According to one certification mould of certification template generation corresponding to certification template corresponding to the present node and the element Plate;Judge whether the step of obtaining all nodes in the target data described in being then returned to.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the present node exist modification element include it is multiple, according to the modification class word, the multiple element it is right The field name answered, parameter preset symbol generate certification template corresponding to multiple elements;
According to certification template generation one corresponding to certification template corresponding to the present node and the multiple element batch Literary template;Judge whether the step of obtaining all nodes in the target data described in being then returned to.
5. according to the method described in claim 4, it is characterized in that, described according to the modification class word, the multiple element Corresponding field name, parameter preset symbol generate certification template corresponding to multiple elements, comprising:
Each of multiple elements element is obtained by preset order, according to corresponding to the modification class word, each element Field name, parameter preset symbol generate certification template corresponding to each element;
Between the certification template corresponding to each element, the first separator is added, is criticized corresponding to multiple elements with generating Literary template.
6. according to the method described in claim 4, it is characterized in that, the certification template according to corresponding to the present node With one certification template of certification template generation corresponding to the multiple element, comprising:
By parameter preset symbol certification corresponding to the multiple element in certification template corresponding to the present node Template replacement, to generate a certification template.
7. according to the method described in claim 2, it is characterized in that, described be combined a plurality of certification template, described in formation The corresponding certification template of modification instruction, comprising:
A plurality of certification template is arranged successively, adds the second separator between every certification template;
By a plurality of certification template according to the sequence number consecutively after arrangement, to form the corresponding certification mould of the modification instruction Plate.
8. a kind of certification template configuration device, which is characterized in that the certification template configuration device includes for executing such as right It is required that the unit of any one of 1-7 the method.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory, and is connected with the memory Processor;
The memory is for storing computer program;The processor is for running the computer journey stored in the memory Sequence, to execute the method according to claim 1 to 7.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt When processor executes, the method according to claim 1 to 7 is realized.
CN201811021206.7A 2018-09-03 2018-09-03 Batch template configuration method and device, computer equipment and storage medium Active CN109255104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811021206.7A CN109255104B (en) 2018-09-03 2018-09-03 Batch template configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811021206.7A CN109255104B (en) 2018-09-03 2018-09-03 Batch template configuration method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109255104A true CN109255104A (en) 2019-01-22
CN109255104B CN109255104B (en) 2023-11-14

Family

ID=65047138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811021206.7A Active CN109255104B (en) 2018-09-03 2018-09-03 Batch template configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109255104B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215015A (en) * 2020-09-02 2021-01-12 文思海辉智科科技有限公司 Translation text revision method, translation text revision device, computer equipment and storage medium
CN113051879A (en) * 2019-12-26 2021-06-29 东软集团(上海)有限公司 Intelligent signing method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793514A (en) * 2014-02-11 2014-05-14 华为技术有限公司 Database synchronization method and databases
US20170270078A1 (en) * 2016-03-17 2017-09-21 Facebook, Inc. Updating Documents Based on User Input
CN107679081A (en) * 2017-08-30 2018-02-09 平安科技(深圳)有限公司 Information amending method, device, computer equipment and computer-readable recording medium
CN107818512A (en) * 2017-10-23 2018-03-20 平安科技(深圳)有限公司 Produce method, apparatus, equipment and the computer-readable recording medium of declaration form certification

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793514A (en) * 2014-02-11 2014-05-14 华为技术有限公司 Database synchronization method and databases
US20170270078A1 (en) * 2016-03-17 2017-09-21 Facebook, Inc. Updating Documents Based on User Input
CN107679081A (en) * 2017-08-30 2018-02-09 平安科技(深圳)有限公司 Information amending method, device, computer equipment and computer-readable recording medium
CN107818512A (en) * 2017-10-23 2018-03-20 平安科技(深圳)有限公司 Produce method, apparatus, equipment and the computer-readable recording medium of declaration form certification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113051879A (en) * 2019-12-26 2021-06-29 东软集团(上海)有限公司 Intelligent signing method and device and storage medium
CN112215015A (en) * 2020-09-02 2021-01-12 文思海辉智科科技有限公司 Translation text revision method, translation text revision device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109255104B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN112148174B (en) Application information display method and device and electronic equipment
CN110377851A (en) Implementation method, device and the computer equipment of multistage linking combobox
CN107728874A (en) The method, apparatus and equipment of user prompt operation are provided
WO2013085564A2 (en) Methods and systems to filter and display electronic messages
CN106919307B (en) A kind of text clone method and mobile terminal
CN106503224B (en) A kind of method and device for recommending application according to keyword
CN105843477B (en) The method and apparatus of display event
CN106100982B (en) A kind of recommended method and mobile terminal of group member
JP2020017197A (en) Presentation method of information relating to basis of prediction value output by computing machine system and predictor
CN106257448A (en) The methods of exhibiting of a kind of key word and device
CN110046944A (en) Invoice creation method and device, electronic equipment based on block chain
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN109255104A (en) Certification template configuration method, apparatus, computer equipment and storage medium
CN110032539B (en) Chip pin information processing method and device, computer equipment and storage medium
CN110457312A (en) Acquisition method, device, equipment and the readable storage medium storing program for executing of diversiform data
CN108984623B (en) Data query condition generation method and device, storage medium and electronic equipment
CN114239524A (en) Questionnaire generation method, questionnaire generation device, computer equipment and storage medium
CN109376977A (en) Recommended agent people method, electronic equipment and computer readable storage medium
CN108227953A (en) Character input method and related product
CN105408826B (en) system construction assist device and method
CN110968311A (en) Front-end page construction method and device and electronic equipment
CN108509125A (en) Method, apparatus, terminal and the computer readable storage medium of page turning
CN109656549B (en) Construction method and device of monitoring system, computer equipment and storage medium
JP5393816B2 (en) Information search apparatus and information search method
CN116956851A (en) Form generation 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
GR01 Patent grant
GR01 Patent grant