CN114611481A - Template configuration method and device, computer equipment and storage medium - Google Patents

Template configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114611481A
CN114611481A CN202210269271.1A CN202210269271A CN114611481A CN 114611481 A CN114611481 A CN 114611481A CN 202210269271 A CN202210269271 A CN 202210269271A CN 114611481 A CN114611481 A CN 114611481A
Authority
CN
China
Prior art keywords
template
target template
parameter
target
document
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210269271.1A
Other languages
Chinese (zh)
Inventor
申友兵
朱祖恩
赖品宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210269271.1A priority Critical patent/CN114611481A/en
Publication of CN114611481A publication Critical patent/CN114611481A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

The application discloses a template configuration method and device, computer equipment and a storage medium, and relates to the technical field of computer electronic templates. The method comprises the following steps: responding to the template configuration operation, acquiring a template document, and displaying the template document in a template configuration page; responding to field configuration operation of parameter content to be configured in the template document, displaying a parameter field table, and acquiring a selected parameter field from the parameter field table; filling the selected parameter fields into the template document to generate a target template; and establishing a mapping relation between the target template and the selected parameter field, wherein the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in the application stage of the target template. By adopting the method, the template document and the parameter field table can be displayed in the page, so that the user can conveniently and visually configure the template, the configuration time of the template is saved, and the configuration efficiency of the template is improved.

Description

Template configuration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer electronic templates, and in particular, to a template configuration method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of computer application technology, template configuration technology has emerged. In order to improve the office efficiency of enterprises, template configuration modules are deployed in online office systems of a plurality of enterprises. For example, a real estate online system of a bank does not need to transact paper business under a user line, and can directly connect with a credit real estate central system through the real estate online system on the line to obtain templates of contract texts such as application books and authorization books, and the obtained templates are rapidly configured in a template configuration module.
In the conventional technology, when a template needs to be generated, template configuration requirements are generally submitted, so that technicians can configure the template according to a text template by using a programming language, the configuration process of the template is long, and the configuration efficiency of the template is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an efficient template configuration method, apparatus, computer device, computer readable storage medium and computer program product.
In a first aspect, the present application provides a method for configuring a template. The method comprises the following steps:
responding to template configuration operation, acquiring a template document, and displaying the template document in a template configuration page, wherein the template document comprises parameter content to be configured;
responding to field configuration operation of the parameter content to be configured, displaying a parameter field table, and acquiring the selected parameter field from the parameter field table;
filling the selected parameter fields into the template document to generate a target template;
and establishing a mapping relation between the target template and the selected parameter fields, wherein the mapping relation is used for indicating that the parameter fields in the target template are replaced by service data corresponding to the parameter fields in the application stage of the target template.
In one embodiment, the method further comprises:
acquiring an application request aiming at the target template, wherein the application request carries a service identifier;
responding to the application request, inquiring and displaying the target template;
inquiring to obtain a service file corresponding to the service identifier according to the service identifier;
inquiring business data corresponding to the parameter field in the target template from the business file according to the mapping relation corresponding to the target template;
replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain a replaced target template;
and generating an application file with a preset format according to the replaced target template.
In one embodiment, the querying, according to the mapping relationship corresponding to the target template, the service data corresponding to the parameter field in the target template from the service file includes:
determining parameter fields in the target template according to the mapping relation corresponding to the target template;
generating a parameter query statement carrying the parameter field;
and querying the service file by adopting the parameter query statement, determining a data query result corresponding to the parameter query statement, and taking the data query result as service data corresponding to the parameter field in the target template.
In one embodiment, the obtaining the application request for the target template includes:
and in the application stage of the target template, responding to the printing operation aiming at the target template, and acquiring an application request aiming at the target template.
In one embodiment, the obtaining a template document in response to a template configuration operation includes:
and responding to the template configuration operation, acquiring an initial text document, and taking the initial text document as a template document.
In one embodiment, the obtaining a template document in response to a template configuration operation includes:
responding to the template configuration operation, and acquiring a first storage address;
and inquiring to obtain an initial template to be updated according to the first storage address, and taking the initial template to be updated as the template document.
In one embodiment, the method further comprises:
generating a second storage address of the target template in response to a storage operation for the target template;
and establishing an address mapping relation between the second storage address and the target template, wherein the address mapping relation is used for inquiring to obtain the target template.
In a second aspect, the application further provides a template configuration device. The device comprises:
the document acquisition module is used for responding to template configuration operation, acquiring a template document and displaying the template document in a template configuration page, wherein the template document comprises the content of parameters to be configured;
the field configuration module is used for responding to field configuration operation of the content of the parameter to be configured, displaying a parameter field table and acquiring the selected parameter field from the parameter field table;
the template generation module is used for filling the selected parameter fields into the template document to generate a target template;
and the mapping establishing module is used for establishing a mapping relation between the target template and the selected parameter field, and the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in the application stage of the target template.
In one embodiment, the apparatus further comprises:
a request obtaining module, configured to obtain an application request for the target template, where the application request carries a service identifier;
the request response module is used for responding to the application request, inquiring and displaying the target template;
the file query module is used for querying according to the service identifier to obtain a service file corresponding to the service identifier;
the data query module is used for querying the service data corresponding to the parameter field in the target template from the service file according to the mapping relation corresponding to the target template;
the data replacement module is used for replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain a replaced target template;
and the application file generation module is used for generating an application file with a preset format according to the replaced target template.
In one embodiment, the data query module includes:
a field determining unit, configured to determine a parameter field in the target template according to the mapping relationship corresponding to the target template;
and the statement query unit is used for generating a parameter query statement carrying the parameter field, querying the service file by adopting the parameter query statement, determining a data query result corresponding to the parameter query statement, and taking the data query result as service data corresponding to the parameter field in the target template.
In one embodiment, the request obtaining module includes:
and the printing operation response unit is used for responding to the printing operation aiming at the target template in the application stage of the target template and acquiring an application request aiming at the target template.
In one embodiment, the document acquiring module includes:
and the initial document acquisition unit is used for responding to the template configuration operation, acquiring an initial text document and taking the initial text document as a template document.
In one embodiment, the document acquiring module includes:
a storage address acquisition unit configured to acquire a first storage address in response to the template configuration operation;
and the initial target acquisition unit is used for inquiring to obtain an initial template to be updated according to the first storage address and taking the initial template to be updated as the template document.
In one embodiment, the apparatus further comprises:
an address generation module, configured to generate a second storage address of the target template in response to a storage operation for the target template;
and the address mapping module is used for establishing an address mapping relation between the second storage address and the target template, and the address mapping relation is used for inquiring to obtain the target template.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the method for configuring the template according to any one of the embodiments of the first aspect when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for configuring the template according to any one of the embodiments of the first aspect.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program, which when executed by a processor implements the method for configuring a template according to any of the embodiments of the first aspect.
The template configuration method, the template configuration device, the computer equipment, the storage medium and the computer program product acquire a template document by responding to template configuration operation, display the template document in a template configuration page, respond to field configuration operation on parameter contents to be configured in the template document, display a parameter field table and acquire a selected parameter field from the parameter field table; the selected parameter fields are filled into the template document to generate a target template, the template document and the parameter field table can be displayed in the template configuration page, a user can conveniently configure the template visually, the configuration operation of the template is simplified, the configuration time of the template is saved, and the configuration efficiency of the template is improved; the method comprises the steps of establishing a mapping relation between a target template and a selected parameter field, wherein the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in an application stage of the target template, directly obtaining the service data corresponding to the parameter field by utilizing the mapping relation in the application stage of the target template without manually inputting the service data by a user, and replacing the parameter field by the service data so as to improve the use efficiency of the target template in the application stage.
Drawings
FIG. 1 is a diagram of an application environment of a method of configuring a template in one embodiment;
FIG. 2 is a flow diagram illustrating a method for configuring templates in one embodiment;
FIG. 3 is a flowchart illustrating the application file generation step in one embodiment;
FIG. 4 is a flow chart illustrating the business data query step in one embodiment;
FIG. 5a is a flowchart illustrating a method for configuring a template according to another embodiment;
FIG. 5b is a flowchart illustrating a method for configuring a template according to an embodiment;
FIG. 5c is a flowchart illustrating the application file generation step in one embodiment;
FIG. 6 is a block diagram showing the configuration of a template in one embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The template configuration method provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. A template configuration page is displayed on the terminal 102. The terminal 102 responds to the template configuration operation to obtain the template document, and displays the template document in the template configuration page, wherein the template document comprises the content of the parameter to be configured. The terminal 102 responds to the field configuration operation of the parameter content to be configured, displays the parameter field table in the template configuration page, acquires the selected parameter field from the parameter field table, fills the selected parameter field into the template document, and generates the target template. The terminal 102 establishes a mapping relationship between the target template and the selected parameter field, and sends the mapping relationship to the server 104 for storage. And the mapping relation is used for indicating that the parameter field in the target template is replaced by the service data corresponding to the parameter field in the application stage of the target template. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices may be smart televisions, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In an embodiment, as shown in fig. 2, a template configuration method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step S202, responding to the template configuration operation, acquiring the template document, and displaying the template document in the template configuration page.
The template document may include content of parameters to be configured. In one example, the template document may be in word format (text format).
Specifically, a template configuration page is displayed on the terminal. And the terminal responds to the template configuration operation to acquire the template document and display the template document on the template configuration page. The template document may be a document pre-stored in the terminal, or a document uploaded by the user in real time. In one example, the template configuration operation may be triggered by the user clicking an associated configuration button on the template configuration page.
Step S204, responding to the field configuration operation of the parameter content to be configured in the template document, displaying the parameter field table, and acquiring the selected parameter field from the parameter field table.
The parameter field table may include, but is not limited to, names of the parameter field table, names of the parameter fields, and annotations of the parameter fields (i.e., interpreting actual content meaning of the parameter fields to facilitate understanding of the role of the parameter fields by the user). In one example, the parameter field may be custname annotated as a name.
Specifically, the terminal responds to the field configuration operation of the content of the parameter to be configured in the template document by the user through the template configuration page, and displays the parameter field table on the template configuration page. And responding to the selection operation of the user, and acquiring the parameter field selected by the user from the parameter field table. In one example, the parameter field table may be automatically displayed at a preset location in the template configuration page, such as the upper left corner region of the template configuration page. In another example, the parameter field table may be displayed in an area where the user needs to perform the field configuration operation in response to the field configuration operation of the user, for example, the user clicks a field configuration button to display the parameter field table at the position clicked by the user.
Step S206, filling the selected parameter fields into the template document to generate a target template.
Specifically, the terminal receives the parameter field selected by the user, fills the parameter field selected by the user into the template document, and takes the filled template document as a target template. In one example, when the user is in the template document to configure the parameter content: at "name", a field configuration operation for "name" is triggered, and the parameter field "custname" is selected from the parameter field table. The terminal may add "custname" to the back of "name", such as "name: custname "; the "custname" may be filled in to a preset end position of the segment after the "name", which is not specifically limited herein.
Step S208, a mapping relationship between the target template and the selected parameter field is established.
The mapping relationship may be used to indicate that, in an application stage of the target template, a parameter field in the target template is replaced with service data corresponding to the parameter field. In one example, the terminal may generate a template identifier (e.g., a template number) corresponding to the target template, and establish a mapping relationship between the target template and the parameter field in the target template through the template identifier.
Specifically, the terminal obtains the parameter fields in the parameter field table which are selected and filled into the template document to obtain the parameter fields in the target template. And establishing a mapping relation between the target template and the parameter field in the target template. In the subsequent application stage of the target template, the terminal can be instructed by using the mapping relation corresponding to the target template to acquire the service data corresponding to the parameter field in the target template, and the parameter field in the target template is replaced by the service data corresponding to the parameter field.
In one example, the business data corresponding to the parameter field "custname" may be "zhang san". The mapping relationship between the parameter field "custname" and the target template may be used to indicate that, in the application stage of the target template, the terminal replaces the parameter field "custname" in the target template with "zhang san" so that the terminal replaces the "name: custname "is replaced with" name: zhang III ".
In the configuration method of the template, the template document is obtained by responding to the template configuration operation, the template document is displayed in a template configuration page, the parameter field table is displayed by responding to the field configuration operation of the parameter content to be configured in the template document, and the selected parameter field is obtained from the parameter field table; the selected parameter fields are filled in the template document to generate a target template, the template document and the parameter field table can be displayed in the template configuration page, a user can conveniently visually configure the template, the configuration operation of the template is simplified, the configuration time of the template is saved, and the configuration efficiency of the template is improved; the method comprises the steps of establishing a mapping relation between a target template and a selected parameter field, wherein the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in an application stage of the target template, directly obtaining the service data corresponding to the parameter field by utilizing the mapping relation in the application stage of the target template without manually inputting the service data by a user, and replacing the parameter field by the service data so as to improve the use efficiency of the target template in the application stage.
In one embodiment, as shown in fig. 3, the method for configuring a template further includes:
step S302, an application request for the target template is acquired.
Step S304, responding to the application request, inquiring and displaying the target template.
Step S306, the service file corresponding to the service identifier is obtained according to the service identifier query.
Wherein, the application request may carry a service identifier.
The service identifier may be used to characterize the identifier of the service file, such as the number of the service file.
The service file may be used to characterize the file storing the service data.
Specifically, the terminal stores a plurality of service files and service identifiers corresponding to the service files in advance. And the terminal acquires an application request aiming at the target template at the application stage of the target template. And responding to the application request, inquiring and acquiring a target template, and displaying the target template on the page. And inquiring to obtain a service file corresponding to the application request according to the service identifier carried in the application request. The application request for the target template may be user-triggered, for example, a user clicks a template application button in a page, inputs a template identifier of the target template, and triggers the application request for the target template; the terminal may also be triggered automatically, for example, the terminal automatically triggers an application request for the target template after detecting generation of the target template.
And step S308, inquiring the business data corresponding to the parameter field in the target template from the business file according to the mapping relation corresponding to the target template.
And step S310, replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain the replaced target template.
Step S312, generating an application file with a preset format according to the replaced target template.
Specifically, the terminal stores a mapping relationship corresponding to the target template in advance. And determining the parameter field corresponding to the target template according to the mapping relation corresponding to the target template. And inquiring the service data matched with the parameter field from the service file. And replacing the corresponding parameter field in the target template by the service data obtained by query to obtain the replaced target template. And carrying out format conversion on the replaced target template to generate an application file with a preset format. In an example, the terminal may convert the replaced target template into a PDF Format (Portable Document Format), and add an electronic seal to the target template in the PDF Format to obtain a signed PDF Format application file, so as to print the application file carrying the electronic seal later.
In this embodiment, an application request for a target template is obtained, the target template and a service file corresponding to the application request are determined, according to a mapping relationship corresponding to the target template, service data corresponding to parameter fields in the target template are obtained by querying the service file, the parameter fields in the target template are replaced with corresponding service data, format conversion is performed on the replaced target template, and an application file in a preset format is obtained.
In an embodiment, as shown in fig. 4, in step S308, obtaining, by querying from the service file, service data corresponding to the parameter field in the target template according to the mapping relationship corresponding to the target template, further includes:
step S402, determining parameter fields in the target template according to the mapping relation corresponding to the target template.
Step S404, generating a parameter query statement carrying the parameter field.
Step S406, the business file is queried by adopting the parameter query statement, a data query result corresponding to the parameter query statement is determined, and the data query result is used as business data corresponding to the parameter field in the target template.
Specifically, the terminal stores a mapping relationship between the target template and the parameter field in advance. And acquiring a mapping relation corresponding to the target template, and determining a parameter field corresponding to the target template from the mapping relation to obtain the parameter field in the target template. And generating a parameter query statement carrying the parameter field by taking the parameter field as a query main key. And querying the service file by adopting the parameter query statement, determining a data query result corresponding to the query main key in the parameter query statement, and taking the data query result as service data corresponding to the parameter field in the target template. In one example, the terminal may store therein an attribute corresponding to the service data. And when the terminal determines that the attribute of the service data is matched with the query main key, the service data is used as a data query result corresponding to the query main key.
In the embodiment, the parameter fields in the target template are determined according to the mapping relation corresponding to the target template, the service file is queried by the query statements carrying the parameter fields, and the service data corresponding to the target template is determined, so that the accuracy of the obtained service data can be improved, and the accuracy of the obtained target template after replacement is improved when the target template is replaced by the service data subsequently.
In one embodiment, step S302, obtaining an application request for a target template includes: in the application stage of the target template, an application request for the target template is acquired in response to a printing operation for the target template.
Specifically, the terminal responds to a printing operation for the target template in an application stage of the target template. Receiving a template type selected by a user, displaying a plurality of template identifications corresponding to the template type, receiving a template identification corresponding to a target template selected by the user, and acquiring an application request aiming at the target template.
In this embodiment, by responding to the printing operation for the target template and acquiring the application request for the target template, the application efficiency for the target template can be improved, so as to facilitate the subsequent printing of the target template.
In one embodiment, the step S202, in response to the template configuration operation, of acquiring a template document, and displaying the template document in a template configuration page, includes: and responding to the template configuration operation, acquiring an initial text document, and taking the initial text document as a template document.
Specifically, the terminal displays a template configuration page in response to a template configuration operation. And receiving an initial text document imported by a user through a template configuration page, and taking the initial text document as a template document.
In the embodiment, by receiving the initial text document imported by the user, the user can conveniently perform template configuration on the required text document, and the applicability of the template configuration is improved.
In one embodiment, the step S202, in response to the template configuration operation, of acquiring a template document, and displaying the template document in a template configuration page, includes: in response to a template configuration operation, a first memory address is obtained. And inquiring to obtain an initial template to be updated according to the first storage address, and taking the initial template to be updated as a template document.
Specifically, the terminal stores therein an initial template to be updated. And displaying the stored templates on a template configuration page in response to the template configuration operation. And responding to the selection operation of the user on the template, and acquiring a first storage address corresponding to the initial template to be updated selected by the user. And inquiring according to the first storage address to obtain an initial template to be updated, and taking the initial template to be updated as a template document.
In the embodiment, the stored template is displayed for the user, the storage address corresponding to the template selected by the user is obtained, the corresponding initial template is obtained according to the storage address query, the stored initial template can be directly updated, the template updating requirement does not need to be provided for technicians, the processing time for updating the template is shortened, and the efficiency for updating the template is improved. Meanwhile, by adopting the template configuration method provided in the embodiment, the flexibility of the template configuration method can be improved by configuring the content in the initial template.
In one embodiment, the template configuration method further includes: in response to the store operation for the target template, a second store address of the target template is generated. And establishing an address mapping relation between the second storage address and the target template.
The address mapping relation is used for inquiring to obtain the target template.
Specifically, after the target template is generated, the terminal generates a second storage address of the target template in response to a storage operation for the target template. And storing the target template to a second storage address, and establishing an address mapping relation between the second storage address and the target template. And the subsequent terminal can acquire the corresponding target template from the second storage address through the address mapping relation.
In this embodiment, by establishing an address mapping relationship between the storage address and the target template, a subsequent terminal can conveniently obtain the corresponding target template from the storage address, so as to improve the efficiency of template configuration.
In one embodiment, as shown in fig. 5a, there is further provided a method for configuring a template, including:
step S502, responding to the template configuration operation, acquiring the template document.
Step S504, responding to the field configuration operation of the parameter content to be configured, displaying the parameter field table, acquiring the selected parameter field from the parameter field table, and generating the target template.
Specifically, the terminal responds to the template configuration operation, displays a template configuration page, acquires a template document, and displays the template document in the template configuration page. Responding to the field configuration operation of the user on the content of the parameter to be configured in the template document, displaying the parameter field table, acquiring the parameter field selected by the user from the parameter field table, and adding the parameter field to the position corresponding to the content of the parameter to be configured in the template document to obtain the target template. The specific target template generating operation can be implemented by referring to the methods provided in the above embodiments, and is not specifically described herein.
Step S506, in response to the storage operation on the target template, generating a second storage address of the target template, and establishing an address mapping relationship between the second storage address and the target template, and a mapping relationship between the target template and the selected parameter field.
Specifically, the terminal responds to the storage operation of the target template, generates a second storage address of the target template, and stores the target template at the second storage address. And establishing an address mapping relation between the second storage address and the target template. And acquiring the parameter fields selected to be filled in the template document so as to generate the target template, and establishing and storing the mapping relation between the target template and the selected parameter fields.
Step S508, in the application stage of the target template, in response to the printing operation for the target template, acquiring an application request for the target template, and in response to the application request, querying and displaying the target template.
Step S510, obtaining a service file corresponding to the service identifier according to the service identifier query, and replacing the parameter field in the target template with service data corresponding to the parameter field in the service file according to the mapping relationship corresponding to the target template, to obtain a replaced target template.
And S512, generating an application file with a preset format according to the replaced target template.
Specifically, the terminal responds to the printing operation aiming at the target template in the application stage of the target template to obtain an application request aiming at the target template, responds to the application request, inquires and displays the target template and obtains the mapping relation corresponding to the target template. And inquiring to obtain a service file corresponding to the service identifier according to the service identifier carried in the application request. And determining the parameter field corresponding to the target template according to the mapping relation corresponding to the target template. And generating a parameter query statement carrying a parameter field, determining a data query result corresponding to the parameter query statement from the service file, and taking the data query result as service data corresponding to the parameter field in the target template. And replacing the parameter field in the target template by adopting the service data to obtain the replaced target template. And carrying out format conversion on the replaced target template to generate an application file with a preset format. The specific application file generation operation may be implemented by referring to the method provided in the above embodiment, and is not specifically described herein.
In one embodiment, as shown in fig. 5b, the terminal obtains a template type selected by a user in response to a template configuration operation triggered by the user, and generates a template identifier corresponding to the template type. And receiving a template document imported by a user through a template configuration page, and displaying the parameter field table. And acquiring the parameter fields selected by the user from the parameter field table, filling the selected parameter fields into the template document, and generating the target template. And establishing a mapping relation between the target template and the selected parameter field through the template identification. In one example, a template type may be, but is not limited to being, any of the types including application, attorney, and authorization.
In another embodiment, as shown in fig. 5c, in the application stage of the target template, the terminal, in response to an identifier selection operation triggered by the user, acquires the template identifier and the service identifier selected by the user, and generates an application request carrying the template identifier and the service identifier. And acquiring a corresponding target template from the database according to the template identifier, and acquiring a corresponding service file from the database according to the service identifier. And determining a parameter field corresponding to the target template according to the mapping relation corresponding to the target template, generating a parameter query statement carrying the parameter field, and querying the service file by adopting the parameter query statement to obtain service data corresponding to the parameter field in the target template. And replacing the corresponding parameter field in the target template by adopting the service data to obtain a replaced target template, and performing format conversion on the replaced target template to generate an application file in a PDF format carrying the electronic signature.
In the embodiment, the template document is obtained by responding to the template configuration operation, the template document is displayed in the template configuration page, the parameter field table is displayed by responding to the field configuration operation of the parameter content to be configured in the template document, and the selected parameter field is obtained from the parameter field table; the selected parameter fields are filled into the template document to generate a target template, the template document and the parameter field table can be displayed in the template configuration page, a user can conveniently configure the template visually, the configuration operation of the template is simplified, the configuration time of the template is saved, and the configuration efficiency of the template is improved; the method comprises the steps of establishing a mapping relation between a target template and a selected parameter field, wherein the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in an application stage of the target template, directly obtaining the service data corresponding to the parameter field by utilizing the mapping relation in the application stage of the target template without manually inputting the service data by a user, and replacing the parameter field by the service data so as to improve the use efficiency of the target template in the application stage.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a template configuration device for implementing the above-mentioned template configuration method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in the following embodiment of the device for configuring one or more templates may refer to the limitations in the above method for configuring the templates, and details are not described herein again.
In one embodiment, as shown in fig. 6, there is provided a template configuring apparatus 600, including: a document acquisition module 602, a field configuration module 604, a template generation module 606, and a mapping establishment module 608, wherein:
the document obtaining module 602 is configured to, in response to a template configuration operation, obtain a template document, and display the template document in a template configuration page, where the template document includes content of a parameter to be configured.
And a field configuration module 604, configured to respond to a field configuration operation on the content of the parameter to be configured, display the parameter field table, and obtain the selected parameter field from the parameter field table.
And a template generating module 606, configured to fill the selected parameter fields into the template document, and generate a target template.
The mapping establishing module 608 is configured to establish a mapping relationship between the target template and the selected parameter field, where the mapping relationship is used to indicate that, in an application stage of the target template, the parameter field in the target template is replaced with service data corresponding to the parameter field.
In one embodiment, the template configuring apparatus 600 further includes: the request acquisition module is used for acquiring an application request aiming at the target template, and the application request carries a service identifier; the request response module is used for responding to the application request, inquiring and displaying the target template; the file query module is used for obtaining a service file corresponding to the service identifier according to the service identifier query; the data query module is used for querying the business data corresponding to the parameter field in the target template from the business file according to the mapping relation corresponding to the target template; the data replacement module is used for replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain a replaced target template; and the application file generation module is used for generating an application file in a preset format according to the replaced target template.
In one embodiment, a data query module comprises: the field determining unit is used for determining the parameter field in the target template according to the mapping relation corresponding to the target template; and the statement query unit is used for generating a parameter query statement carrying the parameter field, querying the service file by adopting the parameter query statement, determining a data query result corresponding to the parameter query statement, and taking the data query result as service data corresponding to the parameter field in the target template.
In one embodiment, the request acquisition module includes: and the printing operation response unit is used for responding to the printing operation aiming at the target template in the application stage of the target template and acquiring the application request aiming at the target template.
In one embodiment, a document acquisition module includes: and the initial document acquisition unit is used for responding to the template configuration operation, acquiring the initial text document and taking the initial text document as the template document.
In one embodiment, a document acquisition module includes: a memory address acquisition unit configured to acquire a first memory address in response to a template configuration operation; and the initial target acquisition unit is used for inquiring and obtaining an initial template to be updated according to the first storage address and taking the initial template to be updated as a template document.
In one embodiment, the apparatus further comprises: the address generation module is used for responding to the storage operation aiming at the target template and generating a second storage address of the target template; and the address mapping module is used for establishing an address mapping relation between the second storage address and the target template, and the address mapping relation is used for inquiring to obtain the target template.
The modules in the template configuration device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of configuring a template. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (17)

1. A method for configuring a template, the method comprising:
responding to template configuration operation, acquiring a template document, and displaying the template document in a template configuration page, wherein the template document comprises parameter content to be configured;
responding to field configuration operation of the parameter content to be configured, displaying a parameter field table, and acquiring the selected parameter field from the parameter field table;
filling the selected parameter fields into the template document to generate a target template;
and establishing a mapping relation between the target template and the selected parameter fields, wherein the mapping relation is used for indicating that the parameter fields in the target template are replaced by service data corresponding to the parameter fields in the application stage of the target template.
2. The method of claim 1, further comprising:
acquiring an application request aiming at the target template, wherein the application request carries a service identifier;
responding to the application request, inquiring and displaying the target template;
inquiring to obtain a service file corresponding to the service identifier according to the service identifier;
inquiring business data corresponding to the parameter field in the target template from the business file according to the mapping relation corresponding to the target template;
replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain a replaced target template;
and generating an application file with a preset format according to the replaced target template.
3. The method according to claim 2, wherein said querying the service file to obtain the service data corresponding to the parameter field in the target template according to the mapping relationship corresponding to the target template comprises:
determining parameter fields in the target template according to the mapping relation corresponding to the target template;
generating a parameter query statement carrying the parameter field;
and querying the service file by adopting the parameter query statement to obtain service data corresponding to the parameter field.
4. The method of claim 2, wherein obtaining the application request for the target template comprises:
and in the application stage of the target template, responding to the printing operation aiming at the target template, and acquiring an application request aiming at the target template.
5. The method of any of claims 1 to 4, wherein said retrieving a template document in response to a template configuration operation comprises:
and responding to the template configuration operation, acquiring an initial text document, and taking the initial text document as a template document.
6. The method of any of claims 1 to 4, wherein said retrieving a template document in response to a template configuration operation comprises:
responding to the template configuration operation, and acquiring a first storage address;
and inquiring to obtain an initial template to be updated according to the first storage address, and taking the initial template to be updated as the template document.
7. The method according to any one of claims 1 to 4, further comprising:
generating a second storage address of the target template in response to a storage operation for the target template;
and establishing an address mapping relation between the second storage address and the target template, wherein the address mapping relation is used for inquiring to obtain the target template.
8. An apparatus for configuring a template, the apparatus comprising:
the document acquisition module is used for responding to template configuration operation, acquiring a template document and displaying the template document in a template configuration page, wherein the template document comprises the content of parameters to be configured;
the field configuration module is used for responding to field configuration operation of the content of the parameter to be configured, displaying a parameter field table and acquiring the selected parameter field from the parameter field table;
the template generation module is used for filling the selected parameter fields into the template document to generate a target template;
and the mapping establishing module is used for establishing a mapping relation between the target template and the selected parameter field, and the mapping relation is used for indicating that the parameter field in the target template is replaced by service data corresponding to the parameter field in the application stage of the target template.
9. The apparatus of claim 8, further comprising:
a request obtaining module, configured to obtain an application request for the target template, where the application request carries a service identifier;
the request response module is used for responding to the application request, inquiring and displaying the target template;
the file query module is used for querying according to the service identifier to obtain a service file corresponding to the service identifier;
the data query module is used for querying the service data corresponding to the parameter field in the target template from the service file according to the mapping relation corresponding to the target template;
the data replacement module is used for replacing the parameter field in the target template with the service data corresponding to the parameter field to obtain a replaced target template;
and the application file generation module is used for generating an application file with a preset format according to the replaced target template.
10. The apparatus of claim 9, wherein the data query module comprises:
a field determining unit, configured to determine a parameter field in the target template according to the mapping relationship corresponding to the target template;
and the statement query unit is used for generating a parameter query statement carrying the parameter field, querying the service file by adopting the parameter query statement, determining a data query result corresponding to the parameter query statement, and taking the data query result as service data corresponding to the parameter field in the target template.
11. The apparatus of claim 9, wherein the request obtaining module comprises:
and the printing operation response unit is used for responding to the printing operation aiming at the target template in the application stage of the target template and acquiring an application request aiming at the target template.
12. The apparatus according to any one of claims 8 to 11, wherein the document acquisition module comprises:
and the initial document acquisition unit is used for responding to the template configuration operation, acquiring an initial text document and taking the initial text document as a template document.
13. The apparatus according to any one of claims 8 to 11, wherein the document acquisition module comprises:
a storage address acquisition unit configured to acquire a first storage address in response to the template configuration operation;
and the initial target acquisition unit is used for inquiring to obtain an initial template to be updated according to the first storage address and taking the initial template to be updated as the template document.
14. The apparatus of any one of claims 8 to 11, further comprising:
an address generation module, configured to generate a second storage address of the target template in response to a storage operation for the target template;
and the address mapping module is used for establishing an address mapping relation between the second storage address and the target template, and the address mapping relation is used for inquiring to obtain the target template.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
17. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
CN202210269271.1A 2022-03-18 2022-03-18 Template configuration method and device, computer equipment and storage medium Pending CN114611481A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210269271.1A CN114611481A (en) 2022-03-18 2022-03-18 Template configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210269271.1A CN114611481A (en) 2022-03-18 2022-03-18 Template configuration method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114611481A true CN114611481A (en) 2022-06-10

Family

ID=81865904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210269271.1A Pending CN114611481A (en) 2022-03-18 2022-03-18 Template configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114611481A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114969389A (en) * 2022-06-22 2022-08-30 北京城市网邻信息技术有限公司 Address selection template and data generation method, device, equipment and storage medium
CN115174555A (en) * 2022-06-28 2022-10-11 平安科技(深圳)有限公司 File transmission method and device, electronic equipment and storage medium
CN117669529A (en) * 2024-02-01 2024-03-08 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114969389A (en) * 2022-06-22 2022-08-30 北京城市网邻信息技术有限公司 Address selection template and data generation method, device, equipment and storage medium
CN115174555A (en) * 2022-06-28 2022-10-11 平安科技(深圳)有限公司 File transmission method and device, electronic equipment and storage medium
CN117669529A (en) * 2024-02-01 2024-03-08 腾讯科技(深圳)有限公司 Data processing method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109343851A (en) Page generation method, device, computer equipment and storage medium
US8751535B1 (en) Systems and methods for securely storing, controlling and sharing personal information
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
US20080288471A1 (en) Apparatus and method for providing a data marketplace
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN109828809B (en) Information visualization method and device for billboard, computer equipment and storage medium
US9706006B2 (en) System and method of context aware adaption of content for a mobile device
CN110990700A (en) Comment information display method, device, client, server and system
CN114119300A (en) Electronic protocol matching method and device, computer equipment and storage medium
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN115145545A (en) Method and device for generating small program code, computer equipment and storage medium
CN114239521A (en) Contract template generation method and device, computer equipment and storage medium
CN114297552A (en) Form expansion method and device, computer equipment and storage medium
CN110888901B (en) System management method, device, computer equipment and storage medium
CN114648398A (en) Voucher generation method and device, computer equipment and storage medium
CN114327435A (en) Technical document generation method and device and computer readable storage medium
CN115952773A (en) Form generation method and device
CN115630248A (en) Page determination method and device, computer equipment and storage medium
CN115878715A (en) Method and device for generating page display scheme and computer equipment
CN116775186A (en) Page data processing method and device, computer equipment and storage medium
CN115374406A (en) Document processing method and device, computer equipment and storage medium
CN116975440A (en) Attribute classification method, attribute classification device and computer equipment
CN115827762A (en) Data offline export method and device
CN117151841A (en) Service processing method, device, computer equipment, storage medium and program product
CN115330921A (en) Three-dimensional model demonstration method and device, computer 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