CN109255104B - Batch template configuration method and device, computer equipment and storage medium - Google Patents

Batch template configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109255104B
CN109255104B CN201811021206.7A CN201811021206A CN109255104B CN 109255104 B CN109255104 B CN 109255104B CN 201811021206 A CN201811021206 A CN 201811021206A CN 109255104 B CN109255104 B CN 109255104B
Authority
CN
China
Prior art keywords
modification
batch
template
current node
wholesale
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811021206.7A
Other languages
Chinese (zh)
Other versions
CN109255104A (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 application provides a method and a device for configuring a batch template, computer equipment and a storage medium. The method comprises the following steps: acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data; determining a field name corresponding to the target data; determining a modification class word related to the modification instruction; and if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol. The application can flexibly configure the batch template and improve the efficiency of generating the batch template.

Description

Batch template configuration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and apparatus for configuring a batch template, a computer device, and a storage medium.
Background
When the user modifies the stored data through the system, the user sometimes needs to write the above-mentioned wholesale text, namely the current modification details, so as to record what contents are modified, and the wholesale text can be used as a certificate of the current modification. If a service person modifies the policy information corresponding to a certain insurance product purchased by an applicant through the insurance system, the corresponding wholesale text needs to be written on the modification so as to record the modified content of the policy, so that the applicant can know the modification condition of the policy. Because the insurance product line is very complex, the field names corresponding to different products are different, and the descriptions of the wholesale texts are mostly the same, for example, A is modified into B. If each policy is modified by filling out a description of the wholesale text, a large number of repeated operations are inefficient to the business personnel when the number of policies is large.
Disclosure of Invention
The embodiment of the application provides a method, a device, computer equipment and a storage medium for configuring a batch template, which can flexibly configure the batch template and improve the efficiency of generating the batch template.
In a first aspect, an embodiment of the present application provides a method for configuring a batch template, where the method includes:
acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data; determining a field name corresponding to the target data; determining a modification class word related to the modification instruction; and if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol.
In a second aspect, an embodiment of the present application provides a batch template configuration apparatus, where the apparatus includes a unit configured to perform a method according to the first aspect.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a memory, and a processor connected to the memory;
the memory is configured to store a computer program, and the processor is configured to execute the computer program stored in the memory, so as to perform the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the method described in the first aspect.
The embodiment of the application can generate the wholesale template corresponding to the modification according to the determined modification word, the field name corresponding to the determined target data and the preset parameter symbol, namely the wholesale template corresponding to the modification instruction. The application can flexibly configure the batch template and improve the efficiency of generating the batch template.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a method for configuring a batch template according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a sub-flow of a method for configuring a batch template according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a sub-flow of a method for configuring a batch template according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a sub-flow of a method for configuring a batch template according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a batch template configuration device provided by an embodiment of the present application;
FIG. 6 is a schematic block diagram of a field determination unit provided by an embodiment of the present application;
FIG. 7 is a schematic block diagram of a modification determining unit provided by an embodiment of the present application;
FIG. 8 is a schematic block diagram of a generation unit provided by an embodiment of the present application;
fig. 9 is a schematic block diagram of a computer device provided by an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a flow chart of a method for configuring a batch template according to an embodiment of the present application. As shown in fig. 1, the method includes S101-S104.
S101, acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data.
The modification instruction comprises an addition instruction, a change instruction and a deletion instruction. If detecting the operation of clicking the related buttons such as 'add', 'change', 'delete', generating a modification instruction, modifying the corresponding data according to the modification instruction, acquiring the data modified by the modification instruction, and taking the data modified by the modification instruction as target data. If the modification instruction is an addition instruction, the data modified by the modification instruction is added related data, the added related data is obtained, and the added related data is taken as target data. If the modification instruction is a modification instruction, the modified data of the modification instruction is modified related data, the modified related data is obtained, and the modified related data is taken as target data. If the modification instruction is a deletion instruction, the data modified by the modification instruction is the deleted related data, the deleted related data is acquired, and the deleted related data is taken as target data. Wherein the target data comprises nodes and/or elements comprised by the nodes. Such as policy information corresponding to a certain insurance product purchased by the applicant, the policy information includes a plurality of items of information, such as information of the applicant, information of an insured person, information of a beneficiary, etc., and each item of information includes a plurality of items of sub-information, such as information of the applicant including name, certificate type, certificate number, mobile phone, etc. In the embodiment of the application, the information of the applicant is called a node, the field name corresponding to the node is the applicant, and each piece of sub information corresponding to the information of the applicant is called an element, namely the element such as the name, the certificate type, the certificate number, the mobile phone and the like of the applicant is included under the node corresponding to the information of the applicant. The field names corresponding to the elements are respectively the name of the applicant, the certificate type, the certificate number, the mobile phone and the like. All nodes in the policy information and the elements included by all nodes will be available in the same manner. It should be noted that some nodes are allowed to be elemental free.
As with the add instruction, the relevant data added includes the node (no element under the node), the node, and the elements that the node includes. If the added related data includes the node and the elements included in the node, the method includes the following two cases: not only the node but also one or more elements corresponding to the node are added; only one or more elements under the node are added. If only one or more elements under a node are added, it is understood that if only one or more elements are added in the batch template, it is not easy to understand which node is under the bottom, so the relevant data added in this case also includes the node corresponding to the added one or more elements. As with the change instruction, the changed related data includes the node (no element or an element under the node but only the changed node), the node, and the elements that the node includes. If the modified related data includes the node and the elements included in the node, the method includes the following two cases: both the node and the corresponding element or elements under the node are changed; only one or more elements under the node are changed. If only one or more elements under a node are changed, it is understood that if only one or more elements are changed in the batch template, it is not easy to understand what node is under, so the changed related data in this case also includes the node corresponding to the element. As with the delete instruction, the related data deleted includes the node (no element under the node), the node, and the elements that the node includes. If the deleted related data includes the node and the elements included in the node, the method includes the following two cases: deleting the node, wherein the deleted node comprises one or more elements; some of the elements under the node are deleted, i.e. only the elements are deleted. If only some elements under the node are deleted, it is understood that if only one or more elements are deleted in the batch template, it is not easy to understand what node is under, so the deleted related data in this case further includes the node corresponding to the element.
Whether nodes or elements, are maintained in fields in the database. The node has a corresponding field name and the element also has a corresponding field name.
S102, determining a field name corresponding to the target data.
If the target data includes the node and the element included in the node, determining the field name corresponding to the target data includes determining the field name corresponding to the node and the field name corresponding to the element included in the node. Wherein the target data may include a plurality of nodes, and each node may include one or more elements.
In one embodiment, as shown in FIG. 2, step S102 includes the following steps S201-S204.
S201, acquiring and displaying a field name corresponding to the target data. When modifying data according to the modification instruction, a corresponding field name is selected/entered. If the modification instruction is a modification instruction, selecting a field name corresponding to the modification instruction; if the modification instruction is an add instruction, a corresponding added field name is input. The field name of the data modified by the modification instruction, i.e., the field name of the target data, is acquired and displayed.
S202, judging whether a deleting instruction of a user is received. The deleting instruction is used for deleting the field name corresponding to the displayed target data. If the deletion instruction of the user is not received, executing step S203; if a deletion instruction is received from the user, step S204 is executed.
S203, determining the field name corresponding to the displayed target data as the field name corresponding to the target data.
S204, deleting the field name corresponding to the displayed target data; and receiving a field name input by a user, and determining the field name input by the user as the field name corresponding to the target data. It will be appreciated that, on the one hand, the field names corresponding to the target data will be stored in the database, and on the other hand, the field names corresponding to the target data will be displayed in the wholesale template. The field names typically stored in the database may have certain requirements, such as simpler or need to be english, etc. If the field names are displayed in the batch template, the corresponding field names are more vivid and difficult to understand and are not easy to view and read in the future, then the field names corresponding to the target data displayed in the batch template can be modified, namely the field names corresponding to the displayed target data are deleted first, and then the field names input by the user are received as the field names corresponding to the target data.
The embodiment shown in fig. 2 provides a corresponding way to enable the user to set the field name corresponding to the popular and easy-to-understand target data, so as to facilitate the later check and reading of the wholesale template.
S103, determining the modification class word related to the modification instruction.
Since the modification instruction includes an add instruction, a change instruction, and a delete instruction, the modification class words corresponding to the add instruction, the change instruction, and the delete instruction are different. In addition, considering the language expression habit of each different person, a plurality of different modification words are preset for the same modification instruction. If the modification instruction is an add instruction, then the modification class term associated with the add instruction includes: increase/add. If the modification instruction is a change instruction, then the modification class word associated with the change instruction includes: modifying field names from..to..about.about.about.: changes field name. If the modification instruction is a delete instruction, then the modification class term associated with the delete instruction includes: delete/will. Here, the specific modification class word associated with each modification instruction is not specifically limited.
In one embodiment, as shown in FIG. 3, step S103 includes the following steps S301-S304.
S301, displaying a plurality of preset modification words related to the modification instruction.
S302, judging whether a selection instruction is received, wherein the selection instruction is used for selecting one modification word from a plurality of displayed modification words. The selection instruction may be triggered by a click or the like operation of the user. If the selection instruction is not received, step S303 is executed; if a selection instruction is received, step S304 is performed.
S303, determining a default modification class word as a modification class word related to the modification instruction, wherein the default modification class word is one of a plurality of modification class words which are displayed and matched with the modification instruction.
S304, determining one modification word selected by the selection instruction as a modification word related to the modification instruction.
It will be appreciated that a modification class term may be selected, and that a default modification class term may be used.
The embodiment shown in fig. 3 provides a corresponding way to allow the user to select the modified class word that matches the own grammar expression habit.
S104, if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol, wherein the preset parameter symbol is used for representing a parameter.
If the operation of clicking the related button such as 'generating' by a user is detected, generating a generating instruction. And if the generation instruction is received, generating a corresponding batch template. The parameter is replaced by a preset parameter symbol in the batch template, and a specific value is replaced when a specific batch is finally generated.
In one embodiment, the target data includes nodes and elements that the nodes include. As shown in fig. 4, step S104 includes the following steps S401 to S412.
S401, acquiring one node in the target data as a current node.
S402, judging whether the current node has element modification. If no element has modification, executing step S403; if there is an element to modify, step S404 is performed. If no element exists, the modification includes two cases, namely, one node does not have an element, two nodes have an element below the node, and the modification of the element below the node is not involved. It should be noted that if the modification instruction is a delete instruction, when the delete instruction corresponds to deleting a certain node, the element under the node needs to be deleted at the same time, so if the modification instruction is a delete instruction, there is a modification of the element under the node.
S403, generating a wholesale template corresponding to the current node according to the modified word, the field name corresponding to the current node and the preset parameter symbol, and taking the wholesale template corresponding to the current node as a wholesale template. Step S410 is then triggered.
If the modification instruction is an addition instruction, the batch template corresponding to the current node includes: and adding a class word, a field name corresponding to the current node and a first preset parameter symbol. Wherein the first preset parameter symbol is used for representing the added parameter value. If the added class words are: add..field names corresponding to current node: the policy triggering mechanism, the first preset parameter symbol is expressed by% value, and the finally generated wholesale template corresponding to the current node is: and adding a policy trigger mechanism% value.
If the modification instruction is a modification instruction, the batch template format corresponding to the current node includes: changing the class word, the field name corresponding to the current node, a second preset parameter symbol and a third preset parameter symbol. The second preset parameter symbol is used for representing a parameter original value, and the third preset parameter symbol is used for representing a parameter modification value. If the change class word is: change field names from..to..the field name corresponding to the current node is: the policy triggering mechanism, the second preset parameter symbol is expressed by% yuan and the third preset parameter symbol is expressed by% geng, and the finally generated wholesale template corresponding to the current node is: the policy trigger mechanism is changed from% yuan to% geng.
If the modification instruction is a deletion instruction, the batch template format corresponding to the current node includes: deleting the class word, the field name corresponding to the current node and a fourth preset parameter symbol. The fourth deletion symbol is used for representing the original value of the parameter. If the deletion class word is: delete.) the field name corresponding to the current node is: the fourth preset parameter symbol is expressed by @ s, and the finally generated wholesale template corresponding to the current node is: delete policy trigger mechanism @ s.
When the batch text template corresponding to the current node generates the batch text finally, the preset parameter symbol is replaced by a specific value, and the batch text finally generated by the batch text template corresponding to the current node can be respectively: adding a policy-triggering mechanism to extremely treat diseases, changing the policy-triggering mechanism from death to extremely treat diseases, deleting the policy-triggering mechanism to death, and the like.
And taking the batch template corresponding to the current node which is finally generated as a batch template.
S404, generating a wholesale template corresponding to the current node according to the modified class word, the field name corresponding to the current node and a preset parameter symbol.
If the modification instruction is a deletion instruction or an addition instruction, the wholesale template corresponding to the current node is consistent with that described in step S403, please refer to step S403 specifically, and details are not repeated here. It should be noted that, if the modification instruction is a modification instruction, if the modification instruction modifies an element included in the current node, the corresponding wholesale template corresponding to the current node includes: the field name corresponding to the current node and a fifth preset parameter symbol. The field name corresponding to the current node is as follows: and a policy triggering mechanism, wherein a fifth preset parameter symbol is a% value, and the corresponding wholesale template corresponding to the current node is: policy trigger mechanism% value.
S405, judging whether the element modified by the current node comprises a plurality of elements. If one exists, executing step S406; if there are a plurality, go to step S408.
S406, generating a wholesale template corresponding to the element according to the modified class word, the field name corresponding to the element and a preset parameter symbol.
It should be noted that, if the modification instruction is a modification instruction, the batch template corresponding to the element includes: changing the class word, the field name corresponding to the current element, a second preset parameter symbol and a third preset parameter symbol; if the modification instruction is an addition instruction, the wholesale template corresponding to the element includes: a field name and a first preset parameter symbol corresponding to the current element; if the modification instruction is a deletion instruction, the wholesale template corresponding to the element includes: the field name corresponding to the current element and a fourth preset parameter symbol. If the modification instruction is a modification instruction, if the modification class word is: changing the field name from..to..the field name corresponding to the element is: name, second preset parameter symbol is expressed by%yuan and third preset parameter symbol is expressed by%geng, and finally the generated wholesale template corresponding to the element is: the name was changed from% yuan to% geng. If the modification instruction is an add instruction, the field name corresponding to the element is: the name, the first preset parameter symbol is expressed by% value, and the finally generated wholesale template corresponding to the element is: name% value. If the modification instruction is a delete instruction, the field name corresponding to the element is: name, fourth element and parameter symbol are expressed by @ s, and finally the generated wholesale template corresponding to the element is: name @ s.
S407, generating a batch template according to the batch template corresponding to the current node and the batch template corresponding to the element. Step S410 is then performed.
Specifically, a preset parameter symbol in the wholesale template corresponding to the current node is replaced by the wholesale template corresponding to the element, so as to generate a wholesale template. If the modification instruction is a modification instruction, the batch template corresponding to the current node is: a field name corresponding to the current node and a fifth preset parameter symbol; wholesale template of the element corresponding to the node: modifying the field names, the second preset parameter symbols and the third preset parameter symbols corresponding to the class words and elements. Replacing a preset parameter symbol in the wholesale template corresponding to the current node with the wholesale template corresponding to the element to generate a wholesale template, namely, one wholesale template is: the field name corresponding to the current node, the change class word, the field name corresponding to the element, the second preset parameter symbol and the third preset parameter symbol. Such as the applicant name being changed from% yuan to% geng. If the modification instruction is an addition instruction, a batch template finally generated is as follows: adding a class word, a field name corresponding to the current node, a field name corresponding to the element and a first preset parameter symbol. Such as adding the applicant name% value. If the modification instruction is a deletion instruction, a batch template finally generated is as follows: deleting the class word, the field name corresponding to the current node, the field name corresponding to the element and a fourth preset parameter symbol. Such as deleting the applicant name @ s, etc.
S408, generating a wholesale template corresponding to the plurality of elements according to the modified class word, the field names corresponding to the plurality of elements and the preset parameter symbol.
Specifically, each element in a plurality of elements is obtained according to a preset sequence, and a wholesale template corresponding to each element is generated according to the modification word, the field name corresponding to each element and a preset parameter symbol; and adding a first separator between the batch templates corresponding to each element to generate batch templates corresponding to a plurality of elements. The first separator is added to divide the batch text template corresponding to each element so as to improve the reading experience of the user. The preset sequence may be a modification sequence of elements, etc. The first separator is e.g. comma. Specifically, please refer to the description in step S406 for generating the wholesale template corresponding to each element, which is not described herein.
If the modification instruction is a modification instruction, the batch templates corresponding to the plurality of elements generated finally may be: the name was changed from% yuan1 to% geng1, the certificate number was changed from% yuan2 to% geng2, and the mobile phone was changed from% yuan3 to% geng3. If the modification instruction is an addition instruction, the batch text templates corresponding to the plurality of elements generated finally are as follows: name% value1, certificate number% value2, mobile phone% value3. If the modification instruction is a deletion instruction, the batch text templates corresponding to the plurality of elements finally generated are as follows: name @ s1; certificate number @ s2; mobile phone @ s3.
S409, generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the elements. Step S410 is then performed.
And replacing preset parameter symbols in the wholesale templates corresponding to the current nodes with the wholesale templates corresponding to the plurality of elements to form a wholesale template. If three elements exist, if the modification instruction is a modification instruction, a batch template finally generated is as follows: a field name corresponding to the current node, a field name corresponding to the first element, a second preset parameter symbol 1 and a third preset parameter symbol 1; the field name corresponding to the second element, the second preset parameter symbol 2 and the third preset parameter symbol 2, and the field name corresponding to the third element, the second preset parameter symbol 3 and the third preset parameter symbol 3. A batch template generated finally can be: the applicant changes the name from% yuan1 to% geng1, the certificate number from% yuan2 to% geng2, and the mobile phone from% yuan3 to% geng3. If the modification instruction is an addition instruction, a batch template finally generated is as follows: adding a class word, a field name corresponding to a current node, a field name corresponding to a first element, a first preset parameter symbol 1, a field name corresponding to a second element, a first preset parameter symbol 2, a field name corresponding to a third element and a first preset parameter symbol 3. A batch template generated finally can be: the applicant name%value 1, the certificate number%value 2, and the mobile phone%value 3 are added. If the modification instruction is a deletion instruction, a batch template finally generated is as follows: deleting the class word, the field name corresponding to the current node, the field name corresponding to the first element, the fourth preset parameter symbol 1, the field name corresponding to the second element, the fourth preset parameter symbol 2, the field name corresponding to the third element and the fourth preset parameter symbol 3. A batch template generated finally can be: deleting the applicant name @ s1, the certificate number @ s2, and the mobile phone @ s3.
S410, judging whether all nodes in the target data are acquired. If there are unobtained nodes in the target data, executing S411; if all nodes in the target data are acquired, S412 is performed.
S411, the next node is acquired as the current node. Step S402 is then performed.
S412, combining the plurality of batch templates to form the batch template corresponding to the modification instruction.
It can be understood that if there are multiple nodes and/or modification exists in the elements under multiple nodes, finally, each batch template corresponding to each node is combined to form the batch template corresponding to the modification instruction.
Specifically, a plurality of batch templates are sequentially arranged, and a second separator is added between each batch template; and numbering the plurality of batch templates in sequence according to the arranged sequence so as to facilitate the checking and reading, thereby forming the batch templates corresponding to the modification instructions. Wherein, the second separator can be a semicolon and/or a carriage return symbol, etc.
The batch template corresponding to the finally formed modification instruction is as follows:
1. adding name three of applicant, certificate number xxxx and mobile phone 132;
2. adding name Li IV of the applicant, certificate number yyyy and mobile phone 150;
3. The name king II of the applicant and the certificate number zzzz are added, and the mobile phone 180 is 3698.
The embodiment shown in fig. 4 may generate a wholesale template corresponding to the modification instruction. It should be noted that the first preset parameter symbol, the first preset parameter symbol 1, the first preset parameter symbol 2, the first preset parameter symbol 3, the second preset parameter symbol 1, the second preset parameter symbol 2, the second preset parameter symbol 3, the third preset parameter symbol 1, the third preset parameter symbol 2, the third preset parameter symbol 3, the fourth preset parameter symbol, etc. are only for example to distinguish different parameters, and in practical application, the first preset parameter symbol, the second preset parameter symbol 3, the third preset parameter symbol 1, the third preset parameter symbol 2, the third preset parameter symbol 3, the fourth preset parameter symbol, etc. may be represented by other parameter symbols. Meanwhile, the field names corresponding to the current node are also for convenience of understanding only by way of example, and do not constitute a limitation on the field names corresponding to the current node.
The embodiment of the method can configure the wholesale template corresponding to the modification instruction, thereby achieving flexible configuration of the wholesale template.
After the wholesale template corresponding to the modification instruction is generated, the modification data after the modification instruction is matched with the original data to obtain a modification set of the modification instruction, and the wholesale corresponding to the modification instruction is generated by utilizing the wholesale template corresponding to the generated modification instruction according to the data in the modification set.
It should be noted that the configured wholesale templates are stored in the system for direct calling in the next use, so as to improve the template configuration efficiency.
Fig. 5 is a schematic block diagram of a batch template configuration device provided by an embodiment of the present application. The device comprises a unit corresponding to the method for configuring the batch template. The device can be configured in a desktop computer, tablet computer, laptop computer, etc. Specifically, as shown in fig. 5, the apparatus 50 includes a data acquisition unit 501, a field determination unit 502, a modification determination unit 503, and a generation unit 504.
The data obtaining unit 501 is configured to obtain data modified by a modification instruction, and take the data modified by the modification instruction as target data. The modification instruction comprises an addition instruction, a change instruction and a deletion instruction.
A field determining unit 502, configured to determine a field name corresponding to the target data.
In an embodiment, as shown in fig. 6, the field determining unit 502 includes: an acquisition display unit 601, a reception judgment unit 602, a field name determination unit 603, and a field deletion determination unit 604. The acquiring and displaying unit 601 is configured to acquire and display a field name corresponding to the target data. The receiving determining unit 602 is configured to determine whether a deletion instruction of the user is received. The deleting instruction is used for deleting the field name corresponding to the displayed target data. A field name determining unit 603, configured to determine a field name corresponding to the displayed target data as the field name corresponding to the target data. A field deletion determining unit 604, configured to delete a field name corresponding to the displayed target data; and receiving a field name input by a user, and determining the field name input by the user as the field name corresponding to the target data.
The modification determining unit 503 determines a modification class word related to the modification instruction.
In an embodiment, as shown in fig. 7, the modification determining unit 503 includes: a word display unit 701, a selection judgment unit 702, and a modified word determination unit 703. The word display unit 701 is configured to display a plurality of preset modification words related to the modification instruction. A selection determining unit 702, configured to determine whether a selection instruction is received, where the selection instruction is used to select one modification class word from the displayed modification class words. A modification word determining unit 703, configured to determine a default modification class word as a modification class word related to the modification instruction, where the default modification class word is one of a plurality of modification class words that are displayed and matched with the modification instruction. The modification word determining unit 703 is further configured to determine a modification class word selected by the selection instruction as a modification class word related to the modification instruction.
And the generating unit 504 is configured to generate a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data, and a preset parameter symbol, where the preset parameter symbol is used to represent a parameter.
In an embodiment, as shown in fig. 8, the generating unit 504 includes: a current node acquisition unit 801, a first element judgment unit 802, a first template generation unit 803, a node template generation unit 804, a second element judgment unit 805, a unit element template generation unit 806, a second template generation unit 807, a multi-element template generation unit 808, a third template generation unit 809, an acquisition judgment unit 810, and a combination unit 811.
A current node obtaining unit 801, configured to obtain one node in the target data as a current node.
A first element determining unit 802, configured to determine whether the current node has an element modified.
And the first template generating unit 803 is configured to generate a wholesale template corresponding to the current node according to the modification word, the field name corresponding to the current node, and a preset parameter symbol if no element exists in the current node for modification, and take the wholesale template corresponding to the current node as a wholesale template. Then triggers the acquisition judgment unit 810.
The node template generating unit 804 is configured to generate, if there is a modification to the element in the current node, a batch template corresponding to the current node according to the modification word, the field name corresponding to the current node, and a preset parameter symbol.
A second element determining unit 805, configured to determine whether the modified element of the current node includes a plurality of elements.
The single-element template generating unit 806 is configured to generate a wholesale template corresponding to the element according to the modification word, the field name corresponding to the element, and a preset parameter symbol if there is one modified element in the current node.
A second template generating unit 807, configured to generate a batch template according to the batch template corresponding to the current node and the batch template corresponding to the element. Specifically, the second template generating unit 807 is configured to replace a preset parameter symbol in the batch template corresponding to the current node with the batch template corresponding to the element, so as to generate a batch template. Then triggers the acquisition judgment unit 810.
And the multi-element template generating unit 808 is configured to generate a wholesale template corresponding to a plurality of elements according to the modification class word, field names corresponding to the plurality of elements, and a preset parameter symbol if the current node has a plurality of modified elements. Wherein the multi-element template generation unit 808 includes: a plurality of element templates generating unit, a first adding unit. The system comprises a plurality of element templates generating units, a plurality of element template generating units and a plurality of element processing units, wherein the plurality of element templates generating units are used for acquiring each element in a plurality of elements according to a preset sequence and generating a wholesale template corresponding to each element according to the modification class word, the field name corresponding to each element and a preset parameter symbol. And the first adding unit is used for adding a first separator between the batch templates corresponding to each element so as to generate batch templates corresponding to a plurality of elements.
The third template generating unit 809 is further configured to generate a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the multiple elements. Specifically, the third template generating unit 809 is configured to replace a preset parameter symbol in the batch template corresponding to the current node with the batch templates corresponding to the multiple elements, so as to form a batch template. Then triggers the acquisition judgment unit 810.
An acquisition judging unit 810 is configured to judge whether all nodes in the target data are acquired.
The current node obtaining unit 801 is further configured to obtain a next node as a current node if there are any unoccupied nodes in the target data. The first element determination unit 802 is then triggered to determine whether there is a modification of the element for the current node.
And a combining unit 811, configured to combine the plurality of batch templates to form a batch template corresponding to the modification instruction if all the nodes in the target data have been acquired. The combination unit 811 includes a second adding unit and a numbering unit. The second adding unit is used for sequentially arranging a plurality of batch templates and adding a second separator between each batch template. And the numbering unit is used for sequentially numbering the plurality of batch templates according to the arranged sequence so as to form the batch template corresponding to the modification instruction.
It should be noted that, as those skilled in the art can clearly understand the specific implementation process of the foregoing apparatus and each unit, reference may be made to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, no further description is provided herein.
The above-described apparatus may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 9.
Fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The device may be a terminal. The terminal can be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, a wearable device and the like. The device 90 comprises a processor 902, a memory and a network interface 903 connected by a system bus 901, wherein the memory may comprise a non-volatile storage medium 904 and an internal memory 905.
The non-volatile storage medium 904 may store an operating system 9041 and a computer program 9042. The above-described method of configuring a batch template may be implemented when the computer program 9042 stored in the nonvolatile storage medium is executed by the processor 902. The processor 902 is operative to provide computing and control capabilities supporting the operation of the entire apparatus 90. The internal memory 905 provides an environment for the execution of a computer program in a non-volatile storage medium, which when executed by the processor 902, causes the processor 902 to perform the batch template configuration method described above. The network interface 903 is used for network communication. It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the apparatus 90 to which the present inventive arrangements are applied, and that a particular apparatus 90 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 902 is configured to execute a computer program stored in the memory, so as to implement the following steps:
acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data; determining a field name corresponding to the target data; determining a modification class word related to the modification instruction; and if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol.
In an embodiment, the target data includes nodes and elements included in the nodes, and when executing the generating the batch text template corresponding to the modification instruction according to the modification class word, the field name corresponding to the target data, and the preset parameter symbol, the processor 902 specifically implements the following steps:
acquiring one node in the target data as a current node; judging whether the current node has element modification or not; if the current node has no element modification, generating a wholesale template corresponding to the current node according to the modification word, the field name corresponding to the current node and a preset parameter symbol, and taking the wholesale template corresponding to the current node as a wholesale template; judging whether all nodes in the target data are acquired or not; if the target data has unoccupied nodes, acquiring a next node as a current node, and returning to the step of judging whether the current node has elements modified; and if all the nodes in the target data are acquired, combining a plurality of batch templates to form a batch template corresponding to the modification instruction.
In one embodiment, the processor 902 further performs the following steps:
if the current node has elements modified, generating a wholesale template corresponding to the current node according to the modified words, the field names corresponding to the current node and preset parameter symbols; judging whether the modified element of the current node comprises a plurality of elements or not; if one modified element exists in the current node, generating a wholesale template corresponding to the element according to the modified class word, the field name corresponding to the element and a preset parameter symbol; generating a batch template according to the batch template corresponding to the current node and the batch template corresponding to the element; and returning to the step of judging whether all nodes in the target data are acquired.
In one embodiment, the processor 902 further performs the following steps:
if the current node has a plurality of modified elements, generating a wholesale template corresponding to the plurality of elements according to the modified class word, field names corresponding to the plurality of elements and preset parameter symbols; generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the elements; and returning to the step of judging whether all nodes in the target data are acquired. In an embodiment, when executing the batch text template corresponding to the plurality of elements generated according to the modification class word, the field names corresponding to the plurality of elements, and the preset parameter symbol, the processor 902 specifically implements the following steps:
Acquiring each element in a plurality of elements according to a preset sequence, and generating a wholesale template corresponding to each element according to the modification word, the field name corresponding to each element and a preset parameter symbol; and adding a first separator between the batch templates corresponding to each element to generate batch templates corresponding to a plurality of elements.
In an embodiment, when executing the generation of a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the plurality of elements, the processor 902 specifically implements the following steps:
and replacing preset parameter symbols in the wholesale templates corresponding to the current nodes with wholesale templates corresponding to the elements to generate a wholesale template.
In an embodiment, when the processor 902 performs the combining of the plurality of batch templates to form the batch template corresponding to the modification instruction, the following steps are specifically implemented:
sequentially arranging a plurality of batch templates, and adding a second separator between each batch template; and numbering the plurality of batch templates in sequence according to the arranged sequence to form the batch template corresponding to the modification instruction.
It is to be appreciated that in embodiments of the application, the processor 902 may be a central processing unit (CentralProcessing Unit, CPU), which may also be other general purpose processors, digital signal processors (DigitalSignal Processor, DSPs), application specific integrated circuits (application lication Specific IntegratedCircuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium, which may be a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present application also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program which, when executed by a processor, performs the steps of:
Acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data; determining a field name corresponding to the target data; determining a modification class word related to the modification instruction; and if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol.
In an embodiment, the target data includes nodes and elements included in the nodes, and when executing the batch template corresponding to the modification instruction according to the modification class word, the field name corresponding to the target data, and the preset parameter symbol, the processor specifically implements the following steps:
acquiring one node in the target data as a current node; judging whether the current node has element modification or not; if the current node has no element modification, generating a wholesale template corresponding to the current node according to the modification word, the field name corresponding to the current node and a preset parameter symbol, and taking the wholesale template corresponding to the current node as a wholesale template; judging whether all nodes in the target data are acquired or not; if the target data has unoccupied nodes, acquiring a next node as a current node, and returning to the step of judging whether the current node has elements modified; and if all the nodes in the target data are acquired, combining a plurality of batch templates to form a batch template corresponding to the modification instruction.
In one embodiment, the processor further specifically implements the steps of:
if the current node has elements modified, generating a wholesale template corresponding to the current node according to the modified words, the field names corresponding to the current node and preset parameter symbols; judging whether the modified element of the current node comprises a plurality of elements or not; if one modified element exists in the current node, generating a wholesale template corresponding to the element according to the modified class word, the field name corresponding to the element and a preset parameter symbol; generating a batch template according to the batch template corresponding to the current node and the batch template corresponding to the element; and returning to the step of judging whether all nodes in the target data are acquired.
In one embodiment, the processor further specifically implements the steps of:
if the current node has a plurality of modified elements, generating a wholesale template corresponding to the plurality of elements according to the modified class word, field names corresponding to the plurality of elements and preset parameter symbols; generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the elements; and returning to the step of judging whether all nodes in the target data are acquired.
In an embodiment, when executing the generating the batch text template corresponding to the plurality of elements according to the modification class word, the field names corresponding to the plurality of elements, and the preset parameter symbol, the processor specifically realizes the following steps:
acquiring each element in a plurality of elements according to a preset sequence, and generating a wholesale template corresponding to each element according to the modification word, the field name corresponding to each element and a preset parameter symbol; and adding a first separator between the batch templates corresponding to each element to generate batch templates corresponding to a plurality of elements.
In an embodiment, when executing the step of generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the plurality of elements, the processor specifically realizes the following steps:
and replacing preset parameter symbols in the wholesale templates corresponding to the current nodes with wholesale templates corresponding to the elements to generate a wholesale template.
In one embodiment, when the processor performs the combining of the plurality of batch templates to form the batch template corresponding to the modification instruction, the processor specifically implements the following steps:
Sequentially arranging a plurality of batch templates, and adding a second separator between each batch template; and numbering the plurality of batch templates in sequence according to the arranged sequence to form the batch template corresponding to the modification instruction.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and the division of the units is merely a logical function division, and other divisions may be implemented in practice. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (8)

1. A method for configuring a batch template, the method comprising:
acquiring data modified by a modification instruction, and taking the data modified by the modification instruction as target data, wherein the target data comprises nodes and elements included by the nodes;
determining a field name corresponding to the target data;
determining modification words related to the modification instructions, wherein the modification words comprise an addition instruction, a modification instruction and a deletion instruction, and a plurality of different modification words are preset in the same modification instruction;
if a generation instruction is received, generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and a preset parameter symbol;
the generating a wholesale template corresponding to the modification instruction according to the modification word, the field name corresponding to the target data and the preset parameter symbol comprises the following steps:
acquiring one node in the target data as a current node;
judging whether the current node has element modification or not;
if the current node has no element modification, generating a wholesale template corresponding to the current node according to the modification word, the field name corresponding to the current node and a preset parameter symbol, and taking the wholesale template corresponding to the current node as a wholesale template;
Judging whether all nodes in the target data are acquired or not;
if the target data has unoccupied nodes, acquiring a next node as a current node, and returning to the step of judging whether the current node has elements modified;
if all the nodes in the target data are acquired, combining a plurality of batch templates to form a batch template corresponding to the modification instruction;
if the current node has elements modified, generating a wholesale template corresponding to the current node according to the modified words, the field names corresponding to the current node and preset parameter symbols;
judging whether the modified element of the current node comprises a plurality of elements or not;
if one modified element exists in the current node, generating a wholesale template corresponding to the element according to the modified class word, the field name corresponding to the element and a preset parameter symbol;
generating a batch template according to the batch template corresponding to the current node and the batch template corresponding to the element; and returning to the step of judging whether all nodes in the target data are acquired.
2. The method according to claim 1, wherein the method further comprises:
If the current node has a plurality of modified elements, generating a wholesale template corresponding to the plurality of elements according to the modified class word, field names corresponding to the plurality of elements and preset parameter symbols;
generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the elements; and returning to the step of judging whether all nodes in the target data are acquired.
3. The method of claim 1, wherein the generating the wholesale template corresponding to the plurality of elements according to the modification class term, the field names corresponding to the plurality of elements, and the preset parameter symbol comprises:
acquiring each element in a plurality of elements according to a preset sequence, and generating a wholesale template corresponding to each element according to the modification word, the field name corresponding to each element and a preset parameter symbol;
and adding a first separator between the batch templates corresponding to each element to generate batch templates corresponding to a plurality of elements.
4. The method of claim 2, wherein the generating a batch template according to the batch template corresponding to the current node and the batch templates corresponding to the plurality of elements comprises:
And replacing preset parameter symbols in the wholesale templates corresponding to the current nodes with wholesale templates corresponding to the elements to generate a wholesale template.
5. The method of claim 1, wherein the combining the plurality of batch templates to form the batch template corresponding to the modification instruction comprises:
sequentially arranging a plurality of batch templates, and adding a second separator between each batch template;
and numbering the plurality of batch templates in sequence according to the arranged sequence to form the batch template corresponding to the modification instruction.
6. A batch template configuration device, characterized in that the batch template configuration device comprises means for performing the method according to any one of claims 1-5.
7. A computer device comprising a memory, and a processor coupled to the memory;
the memory is used for storing a computer program; the processor is configured to execute a computer program stored in the memory to perform the method of any one of claims 1-5.
8. A storage medium storing a computer program which, when executed by a processor, implements the method of any one of claims 1-5.
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 CN109255104A (en) 2019-01-22
CN109255104B true 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)

Families Citing this family (1)

* 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

Citations (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10831981B2 (en) * 2016-03-17 2020-11-10 Facebook, Inc. Updating documents based on user input

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN109255104A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
US11399090B2 (en) Page control for history pages of browsed data
US11321057B2 (en) Single-page web application builder system and method based on a finite-state machine
CN108762760B (en) Software interface self-defining method, device, computer equipment and storage medium
CN108762654B (en) Text editing method, text editing device, text editing terminal and computer readable storage medium
CN107818512B (en) Method, device, equipment and computer readable storage medium for generating insurance policy batch documents
CN107908442B (en) Spring-based resource loading method and device, terminal equipment and computer-readable storage medium
CN111368180B (en) Page display method and device and electronic equipment
US20180293662A1 (en) Method, device, terminal, and storage medium for amending prompt
CN109376150A (en) Methods of product development, device, computer equipment and storage medium
CN109255104B (en) Batch template configuration method and device, computer equipment and storage medium
CN109271083B (en) Data processing method and device, computing equipment and storage medium
US20170011171A1 (en) Health management system
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
US20140157147A1 (en) Feedback system, feedback method and recording media thereof
US20230229302A1 (en) Methods and Systems for Positioning Animated Images Within a Dynamic Keyboard Interface
JP2018508081A (en) Input serial processing method, apparatus, device, and non-executable computer storage medium
CN114253536A (en) Calling method of interface design component, terminal device and readable storage medium
CN115168668A (en) Information recommendation method and device, computer equipment and storage medium
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN113741743A (en) Display method and device, equipment and storage medium
CN109446055B (en) Printing program testing method, device, computer equipment and storage medium
CN111191795A (en) Method, device and system for training machine learning model
CN113900725A (en) Interface configuration method and device, computer equipment and storage medium
KR20140068506A (en) User interface for address book using multiple indexes
US11886873B2 (en) Software product upgrade with transparent data migration

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