CN110659258A - Document generation method, system, computer device and computer readable storage medium - Google Patents

Document generation method, system, computer device and computer readable storage medium Download PDF

Info

Publication number
CN110659258A
CN110659258A CN201910841583.3A CN201910841583A CN110659258A CN 110659258 A CN110659258 A CN 110659258A CN 201910841583 A CN201910841583 A CN 201910841583A CN 110659258 A CN110659258 A CN 110659258A
Authority
CN
China
Prior art keywords
document
signature
seal
user
management device
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
CN201910841583.3A
Other languages
Chinese (zh)
Inventor
李依洁
刘元勋
吴波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910841583.3A priority Critical patent/CN110659258A/en
Publication of CN110659258A publication Critical patent/CN110659258A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/18File system types
    • G06F16/182Distributed file systems
    • 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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies

Abstract

The invention discloses a document generation method, which is applied to a distributed system, wherein the distributed system comprises a management device, a storage device and a processing device, the management device is used for maintaining a document template and uploading the document template to the storage device after the maintenance is finished, and the method comprises the following steps: the management device responds to a document generation request sent by a user and acquires a document number and a user identification of the user, wherein the document number and the user identification are carried in the document generation request; the management device downloads the document template associated with the document number from the storage device; the management device sends the user identification and the document number to the processing device; the processing device determines a parameter name based on the document number and determines a parameter value corresponding to the parameter name based on the user identification; the processing device returns the parameter name and the parameter value to the management device; the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.

Description

Document generation method, system, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a document generation method, a document generation system, computer equipment and a computer readable storage medium.
Background
At present, the change of the documents relates to the change of the mobile phone App, the front end H5 page and the document templates of a plurality of back-end systems, and when the change is performed, the mobile phone App, the front end H5 and the back-end systems are changed by respective development engineers, which easily causes the difference that the same document has larger business influence at each flow node (the synthesized document locally stored in the mobile phone App, the front end H5 page and each back-end system). To try to avoid such large business impact differences in the production environment, it is common to verify that each document in the entire process is consistent based on a large amount of testing effort. If the problem of the document is found in the test process, the development project modifies the document and needs to return to verification from the newly executed whole process, however, even if the document is verified for many times, the document of a certain system or a mobile phone App is also found to be incorrect after the document is online. That is, each time the document is changed, the development engineer needs to change the content in the document template one by one, and other personnel cannot directly modify the document template on line, which results in slow iteration of the requirement.
Disclosure of Invention
It is an object of the present invention to provide a document generation method, system, computer device and computer readable storage medium that solve the above-mentioned drawbacks of the prior art.
One aspect of the present invention provides a document generation method applied to a distributed system, where the distributed system includes a management device, a storage device, and a processing device, the management device is configured to maintain a document template and upload the document template to the storage device after the maintenance is completed, and the method includes: the management device responds to a document generation request sent by a user, and obtains a document number carried in the document generation request and a user identifier of the user; the management device downloads the document template associated with the document number from the storage device; the management device sends the user identification and the document number to the processing device; the processing device determines a parameter name based on the document number and determines a parameter value corresponding to the parameter name based on the user identification; the processing device returns the parameter name and the parameter value to the management device; the management device determines a parameter filling position of the parameter name in the document template, and fills the parameter value in the parameter filling position of the document template to generate the document.
Optionally, the distributed system further includes a signature device, and the method further includes: the management device responds to a document signature request sent by the user, acquires the document, and acquires a user signature picture and a signature rule carried in the document signature request; the management device sends the document, the user signature picture and the signature rule to the signature device; and the signature device identifies a user signature track in the user signature picture and signs the user signature track on the document according to the signature rule to obtain a signature document.
Optionally, the distributed system further includes a stamp device, and the method further includes: the management device responds to the document seal request sent by the user and acquires a seal rule carried in the document seal request; the management device sends the signature document and the seal rule to the seal device; the seal device obtains an electronic seal according to the seal rule and covers the electronic seal on the signature document according to the seal rule to obtain the signature seal document.
Optionally, after the step of generating the document, the method further comprises: the management device converts the format of the document; the step of obtaining the documents comprises the following steps: and acquiring the documents after the format conversion.
Optionally, the distributed system further includes a file device, and after the step of obtaining the signature document, the method further includes: the signature device returns the signature document to the management device; the management device uploads the signature document to the file device; the file device stores the signature document in a local first file, generates a first file identifier of the first file and returns the first file identifier to the management device; the step of sending the signature document and the seal rule to the seal device includes: sending the first file identifier and the seal rule to the seal device; the step of stamping the electronic seal on the signature document by the seal device according to the seal rule comprises the following steps: and the seal device downloads the signature document from the file device according to the first file identifier and seals the electronic seal on the downloaded signature document according to the seal rule.
Optionally, after the step of obtaining the signature seal document, the method further includes: the seal device uploads the signature seal document to the file device; the file device stores the signature seal document in a local second file, generates a second file identifier of the second file and returns the second file identifier to the seal device; and the seal device returns the second file identifier to the management device.
Another aspect of the present invention provides a document generation system including a management apparatus, a storage apparatus, and a processing apparatus, the management apparatus maintaining a document template and uploading the document template to the storage apparatus after the maintenance is completed, wherein: the management device is further configured to: responding to a document generation request sent by a user, acquiring a document number and a user identification of the user, wherein the document number and the user identification are carried in the document generation request, downloading the document template related to the document number from the storage device, and sending the user identification and the document number to the processing device; the processing device is used for: determining a parameter name based on the document number, determining a parameter value corresponding to the parameter name based on the user identification, and returning the parameter name and the parameter value to the management device; the management device is further configured to: and determining a parameter filling position of the parameter name in the document template, and filling the parameter value in the parameter filling position of the document template to generate the document.
Optionally, the document generation system further includes a signature device, wherein: the management device is further configured to: responding to a document signature request sent by the user, acquiring the document, acquiring a user signature picture and a signature rule carried in the document signature request, and sending the document, the user signature picture and the signature rule to the signature device; the signature device is used for: and identifying a user signature track in the user signature picture, and signing the user signature track on the document according to the signature rule to obtain a signature document.
Optionally, the document generation system further includes a stamp device, wherein: the management device is further configured to: responding to a document seal request sent by the user, acquiring a seal rule carried in the document seal request, and sending the signature document and the seal rule to the seal device; the seal device is used for: and acquiring an electronic seal according to the seal rule, and stamping the electronic seal on the signature document according to the seal rule to obtain the signature seal document.
Optionally, the management apparatus is further configured to: after generating the document, converting the format of the document; the management device is further configured to, when obtaining the document: and acquiring the documents after the format conversion.
Optionally, the document generation system further includes a file device, wherein the signature device is further configured to: after obtaining the signature document, returning the signature document to the management device; the management device is further configured to: uploading the signature document to the file device; the file device is used for: storing the signature document in a local first file, generating a first file identifier of the first file, and returning the first file identifier to the management device; the management device is further configured to, when sending the signature document and the seal rule to the seal device: sending the first file identifier and the seal rule to the seal device; the seal device is further configured to, when the electronic seal is applied to the signature document according to the seal rule: and downloading the signature document from the file device according to the first file identifier, and stamping the electronic seal on the downloaded signature document according to the seal rule.
Optionally, the stamp device is further configured to: after obtaining the signature seal document, uploading the signature seal document to the file device; the file device is further configured to: storing the signature seal document in a local second file, generating a second file identifier of the second file, and returning the second file identifier to the seal device; the stamp device is further configured to: and returning the second file identifier to the management device.
Yet another aspect of the present invention provides a computer apparatus, comprising: the document generation system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the document generation method of any one of the embodiments.
Yet another aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a document generation method as described in any of the embodiments above.
According to the document generation method, the document generation system, the computer equipment and the computer readable storage medium, the document templates can be maintained only through the management device, the uniqueness of each document template can be guaranteed, documents can be generated by directly interacting other devices in the distributed system with the management device, the processing flow is accelerated, the processing efficiency is improved, documents are stored by the management device, and the same documents acquired by all device nodes in the system are guaranteed to be consistent by acquiring the documents from the management device by the other devices. Furthermore, the signature documents and the signature seal visas are stored in the file device, the corresponding first file identification and the corresponding second file identification are kept by the management device, the unique maintenance authority of the management device is ensured, other devices directly interact with the management system to acquire the file identification, and the corresponding signature documents and/or the signature seal visas are downloaded from the file device, so that the consistency of the same signature documents and the same signature seal documents obtained by each device node in the whole distributed system can be ensured. In addition, because the management device has the only authority of maintaining the document template, the business personnel control the management device, and the document template can be directly modified on line without the intervention of development or test.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a document generation method according to an embodiment of the present invention;
fig. 2 is a flowchart of a document generation method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a document generation method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a document generation method according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a document generation system according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a computer device suitable for implementing a document generation method according to a sixth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
According to the document generation method, the document generation system, the computer equipment and the computer readable storage medium, the document templates can be maintained only through the management device, the uniqueness of each document template can be guaranteed, documents can be generated by directly interacting other devices in the distributed system with the management device, the processing flow is accelerated, the processing efficiency is improved, documents are stored by the management device, and the same documents acquired by all device nodes in the system are guaranteed to be consistent by acquiring the documents from the management device by the other devices. Furthermore, the signature documents and the signature seal visas are stored in the file device, the corresponding first file identification and the corresponding second file identification are kept by the management device, the unique maintenance authority of the management device is ensured, other devices directly interact with the management system to acquire the file identification, and the corresponding signature documents and/or the signature seal visas are downloaded from the file device, so that the consistency of the same signature documents and the same signature seal documents obtained by each device node in the whole distributed system can be ensured. In addition, because the management device has the only authority of maintaining the document template, the business personnel control the management device, and the document template can be directly modified on line without the intervention of development or test.
Example one
The embodiment of the invention provides a document generation method, an execution subject of the document generation method is a distributed system, and the distributed system can comprise a management device, a storage device and a processing device, wherein the management device is used for maintaining a document template and uploading the document template to the storage device after the maintenance is completed. For example, a business person edits a document template through a management device, submits an audit after the edition is completed, the audit indicates that the maintenance is completed, and at this time, the business person can upload the document template to a storage device through the management device, where the storage device can be a Content Delivery Network (CDN) server of a public network, and further, a distributed system can generate a document by using the document template. Specifically, fig. 1 is a flowchart of a document generation method according to an embodiment of the present invention. As shown in fig. 1, the document generation method may include steps S101 to S106, in which:
step S101, the management device responds to the document generation request sent by the user, and obtains the document number and the user identification of the user carried in the document generation request.
In this embodiment, the user may interact with the management apparatus through the front-end device, for example, the front-end device sends a document generation request to the management apparatus, where the document generation request includes a user identifier and a document number, the user identifier is used to uniquely identify an identity of the user, and the document number is used to uniquely identify a document template. The front-end equipment can be a mobile phone, a desktop computer, a tablet computer, a notebook computer and the like, and the management device can be a device for providing document synthesis service (the document synthesis service is a uniform interface service).
In step S102, the management apparatus downloads the document template associated with the document number from the storage apparatus.
Since the management apparatus has uploaded all the maintained document templates to the storage apparatus in advance, the management apparatus can download the uniquely corresponding document template from the storage apparatus according to the document number after receiving the document generation request.
In step S103, the management apparatus transmits the user identification and the document number to the processing apparatus.
In step S104, the processing device determines a parameter name based on the document number, and determines a parameter value corresponding to the parameter name based on the user identifier.
Each document number corresponds to an indispensable parameter name for generating a document, and the processing device can acquire the corresponding parameter name through the document number sent by the management device. Alternatively, the parameter names may be stored in a document parameter list, and the processing device may obtain the parameter names by determining the corresponding document parameter list according to the document number. Further, the processing device may obtain a parameter value corresponding to the parameter name from the historical data of the user according to the user identifier. For example, the parameter name is: loan amount and monthly repayment amount, the parameter values including: 20 ten thousand yuan and 3500 yuan.
Optionally, the processing device may include a first processing sub-device and a second processing sub-device, the first processing sub-device being a device for invoking the document composition service and being configured to determine the parameter name based on the document number; the second processing sub-device is a device for providing uniform value logic for the parameter of the document based on a certain user, and can be used for determining the parameter value corresponding to the parameter name based on the user identifier. The first processing sub-device may send the parameter name to the second processing sub-device after determining the parameter name, and the second processing sub-device determines the parameter value of the parameter name and then returns the correspondence between the parameter name and the parameter value to the first processing sub-device.
In step S105, the processing device returns the parameter name and the parameter value to the management device.
Optionally, the first processing sub-means returns the parameter name and the parameter value to the managing means.
In step S106, the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.
The document template comprises an inherent parameter name, the management device determines which positions in the document template need to be filled with parameter values according to the parameter name returned by the processing device, the positions are called parameter filling positions, and the parameter values returned by the processing device are filled in the parameter filling positions to form the document.
For example, the intrinsic parameter names contained in the document template are: loan amount, monthly repayment amount and daily repayment amount, the parameter name determined by the processing device based on the document number is: and the management device can determine that parameter values are only required to be filled in the loan amount and the monthly repayment amount in the document template, and further the management device can fill 20 ten thousand yuan RMB to the loan amount of the document template and fill 3500 yuan RMB to the monthly repayment amount of the document template.
Note that the format of the document template is html format, and the format of the generated document is html format. Optionally, after the step of generating the document, the document generating method may further include: the management apparatus converts the format of the document. For example, the management apparatus converts a html-format document into a pdf-format document.
Example two
A second embodiment of the present invention provides a document generation method, where some steps of the document generation method are the same as those in the first embodiment, and details of the steps are not repeated in this embodiment, and reference may be made to the first embodiment. Specifically, fig. 2 is a flowchart of a document generation method provided in the second embodiment of the present invention, and as shown in fig. 2, the document generation method may include steps S201 to S209, where:
step S201, the management apparatus responds to the document signature request sent by the user, and obtains the document number and the user identifier of the user carried in the document signature request.
The document signature request can include a user identifier, a document number, a user signature picture and a signature rule. The distributed system may first obtain the user identifier and the document number in the document signing request, and then generate the document based on steps S202 to S206.
In step S202, the management apparatus downloads the document template associated with the document number from the storage apparatus.
In step S203, the management apparatus transmits the user identification and the document number to the processing apparatus.
In step S204, the processing device determines a parameter name based on the document number, and determines a parameter value corresponding to the parameter name based on the user identifier.
In step S205, the processing device returns the parameter name and the parameter value to the management device.
In step S206, the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.
Step S207, the management apparatus acquires the document and acquires the user signature picture and the signature rule carried in the document signature request.
Wherein, the step of obtaining documents may comprise: documents in a converted format, e.g., documents in a pdf format, are obtained. The signature rules may include: at which key of the document a signature is signed.
In step S208, the management device sends the document, the user signature picture, and the signature rule to the signature device.
For example, the management system sends the pdf formatted document, the user's signature picture, and the signature rules to the signing device.
Step S209, the signature device identifies the user signature track in the user signature picture, and signs the user signature track on the document according to the signature rule to obtain the signature document.
The signature device may be a device that performs electronic signature specifically. In this embodiment, the signature device identifies a user signature track in a user signature picture, where the user signature track is a handwritten signature of a user, identifies a signature rule, and signs the user signature track at a corresponding position of a document to obtain a signature document. The format of the signature document may be pdf format.
EXAMPLE III
A third embodiment of the present invention provides a document generation method, where partial steps of the document generation method are the same as those in the first and second embodiments, and details of the partial steps are not repeated in this embodiment, and reference may be specifically made to the first and second embodiments. Specifically, fig. 3 is a flowchart of a document generation method provided by the third embodiment of the present invention, and as shown in fig. 3, the document generation method may include steps S301 to S312, where:
step S301, the management device responds to a document seal request sent by a user, and obtains a document number and a user identification of the user carried in the document seal request.
The document seal request can include a user identifier, a document number, a user signature picture, a signature rule and a seal rule, the distributed system can firstly acquire the user identifier and the document number in the document seal request, and then the document is generated based on the steps S302-S306. Then the distributed system can acquire the user signature picture and the signature rule in the document seal request, and generates the signature document based on the steps S307 to S308.
In step S302, the management apparatus downloads the document template associated with the document number from the storage apparatus.
In step S303, the management apparatus transmits the user identification and the document number to the processing apparatus.
In step S304, the processing device determines a parameter name based on the document number, and determines a parameter value corresponding to the parameter name based on the user identifier.
In step S305, the processing device returns the parameter name and the parameter value to the management device.
In step S306, the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.
Step S307, the management apparatus acquires the document and acquires the user signature picture and the signature rule carried in the document signature request.
Step S308, the management device sends the document, the user signature picture and the signature rule to the signature device.
Step S309, the signature device identifies the user signature track in the user signature picture, and signs the user signature track on the document according to the signature rule to obtain the signature document.
And step S310, acquiring the seal rule carried in the document seal request.
Wherein, the seal rule may include: the electronic seal corresponding to the document and the position of the seal stamped in the document.
Step S311, the management device sends the signature document and the seal rule to the seal device.
The stamp device may be a device specially used for executing electronic stamps.
In step S312, the stamp device obtains the electronic stamp according to the stamp rule, and stamps the electronic stamp on the signature document according to the stamp rule to obtain the signature stamp document.
The seal device acquires the corresponding electronic seal according to the seal rule, and then the electronic seal is covered at the relevant position of the document to obtain the signature seal document. The format of the signature seal document can also be pdf format.
Example four
A fourth embodiment of the present invention provides a document generation method, where partial steps of the document generation method are the same as those in the first embodiment, the second embodiment, and the third embodiment, and details of the partial steps are not repeated in this embodiment, and reference may be specifically made to the first embodiment, the second embodiment, and the third embodiment. Specifically, fig. 4 is a flowchart of a document generation method according to a fourth embodiment of the present invention, and as shown in fig. 4, the document generation method may include steps S401 to S418, where:
step S401, the management device responds to the document seal request sent by the user, and obtains the document number and the user identification of the user carried in the document seal request.
The document seal request can include a user identifier, a document number, a user signature picture, a signature rule and a seal rule, the distributed system can firstly acquire the user identifier and the document number in the document seal request, and then the document is generated based on the steps S402 to S406. Then the distributed system can acquire the user signature picture and the signature rule in the document seal request, and generate the signature document based on the steps S407 to S409.
In step S402, the management apparatus downloads the document template associated with the document number from the storage apparatus.
In step S403, the management apparatus transmits the user identification and the document number to the processing apparatus.
In step S404, the processing device determines a parameter name based on the document number, and determines a parameter value corresponding to the parameter name based on the user identifier.
Step S405, the processing device returns the parameter name and the parameter value to the management device;
in step S406, the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.
Step S407, the management apparatus acquires the document and acquires the user signature picture and the signature rule carried in the document signature request.
Step S408, the management device sends the document, the user signature picture, and the signature rule to the signature device.
And step S409, the signature device identifies the user signature track in the user signature picture and signs the user signature track on the document according to the signature rule to obtain the signature document.
In step S410, the signing apparatus returns the signature document to the management apparatus.
The signature device is only responsible for signing and is not responsible for the subsequent processing of the signature document, so that the signature document can be returned to the management device and distributed by the management device after the signature device finishes signing.
In step S411, the management apparatus uploads the signature document to the file apparatus.
The management device does not store the signature document, but stores the signature document in a separate file device, wherein the file device may be a device specially performing file cloud storage.
In step S412, the file device stores the signature document in the local first file, generates a first file identifier of the first file, and returns the first file identifier to the management device.
The file device returns the first file identifier to the management device for storage, and the management device distributes those device nodes in the distributed system to obtain the first file identifier.
In step S413, the management device obtains the seal rule carried in the document seal request.
Step S414, the management device sends the first file identification and the seal rule to the seal device.
Because the management system has uploaded the signature document to the first file of the file system, the management system only needs to send the first file identifier and the seal rule to the seal device.
In step S415, the stamp device downloads the signature document from the file device according to the first file identifier, and stamps an electronic stamp on the downloaded signature document according to the stamp rule to obtain the signature stamp document.
The seal system can download the stored signature document from the file device according to the first file identification, and then seal on the basis of the signature document to obtain the signature seal document.
Step S416, the seal device uploads the signature seal document to the file device.
After the stamp device generates the signature stamp document, the signature stamp document is not stored locally, but is uploaded to a file device.
Step S417, the file device stores the signature seal document in a local second file, generates a second file identifier of the second file, and returns the second file identifier to the seal device.
In step S418, the stamping device returns the second file identifier to the management device.
The seal device does not store the second file identification, the second file identification is transferred to the management device for storage, and the management device distributes device nodes in the distributed system to obtain the first file identification.
Optionally, the management device may further send the document number and the second file identifier to the processing device through an MQ (Message middleware), and specifically may send the document number and the second file identifier to the first processing sub-device, so that the first processing sub-device may process other business processes according to the document number and the second file identifier.
EXAMPLE five
The fifth embodiment of the present invention further provides a document generation system, which corresponds to the document generation method provided in the first embodiment, and corresponding technical features and technical effects are not described in detail in this embodiment, and reference may be made to the first embodiment for relevant points. Specifically, fig. 5 is a block diagram of a document generation system provided in the fifth embodiment of the present invention. As shown in fig. 5, the document generation system 500 includes a management apparatus 501, a storage apparatus 502, and a processing apparatus 503, in which:
the management device 501 is used for maintaining the document template and uploading the document template to the storage device 502 after the maintenance is finished;
the management device 501 is further configured to: responding to a document generation request sent by a user, acquiring a document number and a user identifier of the user carried in the document generation request, downloading a document template associated with the document number from the storage device 502, and sending the user identifier and the document number to the processing device 503;
the processing means 503 is configured to: determining a parameter name based on the document number, determining a parameter value corresponding to the parameter name based on the user identifier, and returning the parameter name and the parameter value to the management device 501;
the management device 501 is further configured to: and determining a parameter filling position of the parameter name in the document template, and filling the parameter value at the parameter filling position of the document template to generate the document.
Optionally, the document generation system further includes a signature device, wherein: the management device is further configured to: responding to a document signature request sent by the user, acquiring the document, acquiring a user signature picture and a signature rule carried in the document signature request, and sending the document, the user signature picture and the signature rule to the signature device; the signature device is used for: and identifying a user signature track in the user signature picture, and signing the user signature track on the document according to the signature rule to obtain a signature document.
Optionally, the document generation system further includes a stamp device, wherein: the management device is further configured to: responding to a document seal request sent by the user, acquiring a seal rule carried in the document seal request, and sending the signature document and the seal rule to the seal device; the seal device is used for: and acquiring an electronic seal according to the seal rule, and stamping the electronic seal on the signature document according to the seal rule to obtain the signature seal document.
Optionally, the management apparatus is further configured to: after generating the document, converting the format of the document; the management device is further configured to, when obtaining the document: and acquiring the documents after the format conversion.
Optionally, the document generation system further includes a file device, wherein the signature device is further configured to: after obtaining the signature document, returning the signature document to the management device; the management device is further configured to: uploading the signature document to the file device; the file device is used for: storing the signature document in a local first file, generating a first file identifier of the first file, and returning the first file identifier to the management device; the management device is further configured to, when sending the signature document and the seal rule to the seal device: sending the first file identifier and the seal rule to the seal device; the seal device is further configured to, when the electronic seal is applied to the signature document according to the seal rule: and downloading the signature document from the file device according to the first file identifier, and stamping the electronic seal on the downloaded signature document according to the seal rule.
Optionally, the stamp device is further configured to: after obtaining the signature seal document, uploading the signature seal document to the file device; the file device is further configured to: storing the signature seal document in a local second file, generating a second file identifier of the second file, and returning the second file identifier to the seal device; the stamp device is further configured to: and returning the second file identifier to the management device.
EXAMPLE six
Fig. 6 is a block diagram of a computer device suitable for implementing a document generation method according to a sixth embodiment of the present invention. In this embodiment, the computer device 600 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers), and the like that execute programs. As shown in fig. 6, the computer device 600 of the present embodiment includes at least, but is not limited to: a memory 601, a processor 602, a network interface 603, which may be communicatively coupled to each other via a system bus. It is noted that FIG. 3 only shows the computer device 600 having components 601 and 603, but it is to be understood that not all of the shown components are required and that more or fewer components may alternatively be implemented.
In this embodiment, the memory 603 includes at least one type of computer-readable storage medium, which includes flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 601 may be an internal storage unit of the computer device 600, such as a hard disk or a memory of the computer device 600. In other embodiments, the memory 601 may also be an external storage device of the computer device 600, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 600. Of course, the memory 601 may also include both internal and external storage devices for the computer device 600. In the present embodiment, the memory 601 is generally used for storing an operating system installed in the computer apparatus 600 and various types of application software, such as program codes of a document generation method, and the like. In addition, the memory 601 can also be used to temporarily store various types of data that have been output or are to be output.
Processor 602 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 602 is typically used to control the overall operation of the computer device 600. Such as program code for executing the document generation method of controlling and processing related to data interaction or communication with the computer apparatus 600.
In this embodiment, the document generation method stored in the memory 601 may be further divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 602) to complete the present invention.
The network interface 603 may comprise a wireless network interface or a wired network interface, and the network interface 603 is typically used to establish communication links between the computer device 600 and other computer devices. For example, the network interface 603 is used to connect the computer apparatus 600 to an external terminal via a network, establish a data transmission channel and a communication link between the computer apparatus 600 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth (Bluetooth), Wi-Fi, etc.
EXAMPLE seven
The present embodiment also provides a computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements a document generation method.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A document generation method is applied to a distributed system, the distributed system comprises a management device, a storage device and a processing device, the management device is used for maintaining a document template and uploading the document template to the storage device after maintenance is completed, and the method comprises the following steps:
the management device responds to a document generation request sent by a user and acquires a document number carried in the document generation request and a user identifier of the user;
the management device downloads the document template associated with the document number from the storage device;
the management device sends the user identification and the document number to the processing device;
the processing device determines a parameter name based on the document number and determines a parameter value corresponding to the parameter name based on the user identification;
the processing device returns the parameter name and the parameter value to the management device;
the management apparatus determines a parameter filling position of the parameter name in the document template, and fills the parameter value at the parameter filling position of the document template to generate the document.
2. The method of claim 1, wherein the distributed system further comprises a signing device, the method further comprising:
the management device responds to a document signature request sent by the user, acquires the document, and acquires a user signature picture and a signature rule carried in the document signature request;
the management device sends the document, the user signature picture and the signature rule to the signature device;
and the signature device identifies a user signature track in the user signature picture and signs the user signature track on the document according to the signature rule to obtain a signature document.
3. The method of claim 2, wherein the distributed system further comprises a stamp device, the method further comprising:
the management device responds to a document seal request sent by the user and acquires a seal rule carried in the document seal request;
the management device sends the signature document and the seal rule to the seal device;
and the seal device acquires an electronic seal according to the seal rule and covers the electronic seal on the signature document according to the seal rule so as to obtain the signature seal document.
4. The method of claim 2,
after the step of generating the document, the method further comprises: the management device converting the format of the document;
the step of obtaining the document includes: and acquiring the documents after the format conversion.
5. The method of claim 3,
the distributed system further comprises a file device, and after the step of obtaining the signature document, the method further comprises: the signing device returns the signing document to the management device; the management device uploads the signature document to the file device; the file device stores the signature document in a local first file, generates a first file identifier of the first file, and returns the first file identifier to the management device;
the step of sending the signature document and the seal rule to the seal device includes: sending the first file identifier and the seal rule to the seal device;
the step of stamping the electronic seal on the signature document by the seal device according to the seal rule comprises the following steps: and the seal device downloads the signature document from the file device according to the first file identifier and seals the electronic seal on the downloaded signature document according to the seal rule.
6. The method of claim 5, wherein after the step of obtaining the signature seal document, the method further comprises:
the seal device uploads the signature seal document to the file device;
the file device stores the signature seal document in a local second file, generates a second file identifier of the second file and returns the second file identifier to the seal device;
and the seal device returns the second file identifier to the management device.
7. The document generation system is characterized by comprising a management device, a storage device and a processing device, wherein the management device is used for maintaining a document template and uploading the document template to the storage device after maintenance is completed, and the document generation system comprises:
the management device is further configured to: responding to a document generation request sent by a user, acquiring a document number carried in the document generation request and a user identifier of the user, downloading the document template associated with the document number from the storage device, and sending the user identifier and the document number to the processing device;
the processing device is used for: determining a parameter name based on the document number, determining a parameter value corresponding to the parameter name based on the user identification, and returning the parameter name and the parameter value to the management device;
the management device is further configured to: and determining a parameter filling position of the parameter name in the document template, and filling the parameter value in the parameter filling position of the document template to generate the document.
8. The system of claim 7, wherein the distributed system further comprises a signature device, wherein:
the management device is further configured to: responding to a document signature request sent by the user, acquiring the document, acquiring a user signature picture and a signature rule carried in the document signature request, and sending the document, the user signature picture and the signature rule to the signature device;
the signature device is used for: and identifying a user signature track in the user signature picture, and signing the user signature track on the document according to the signature rule to obtain a signature document.
9. A computer device, the computer device comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 6.
CN201910841583.3A 2019-09-06 2019-09-06 Document generation method, system, computer device and computer readable storage medium Pending CN110659258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910841583.3A CN110659258A (en) 2019-09-06 2019-09-06 Document generation method, system, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910841583.3A CN110659258A (en) 2019-09-06 2019-09-06 Document generation method, system, computer device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110659258A true CN110659258A (en) 2020-01-07

Family

ID=69036809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910841583.3A Pending CN110659258A (en) 2019-09-06 2019-09-06 Document generation method, system, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110659258A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488399A (en) * 2020-05-06 2020-08-04 北京俩撇科技有限公司 Block chain system, transaction processing method and device
CN113361243A (en) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 Document contract automatic assembly method and device, electronic equipment and storage medium
CN113377717A (en) * 2021-06-30 2021-09-10 中国平安财产保险股份有限公司 Document file generation method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066934A1 (en) * 2009-09-15 2011-03-17 Avoka Technologies Pty Ltd Generation of electronic forms
CN103577440A (en) * 2012-07-27 2014-02-12 阿里巴巴集团控股有限公司 Data processing method and device in non-relational database
CN108428182A (en) * 2017-06-25 2018-08-21 平安科技(深圳)有限公司 Development platform device, the method and computer readable storage medium for obtaining number of policy
CN109767360A (en) * 2018-12-17 2019-05-17 平安普惠企业管理有限公司 Characteristic processing method, device and computer equipment based on application scenarios
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110066934A1 (en) * 2009-09-15 2011-03-17 Avoka Technologies Pty Ltd Generation of electronic forms
CN103577440A (en) * 2012-07-27 2014-02-12 阿里巴巴集团控股有限公司 Data processing method and device in non-relational database
CN108428182A (en) * 2017-06-25 2018-08-21 平安科技(深圳)有限公司 Development platform device, the method and computer readable storage medium for obtaining number of policy
CN109767360A (en) * 2018-12-17 2019-05-17 平安普惠企业管理有限公司 Characteristic processing method, device and computer equipment based on application scenarios
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488399A (en) * 2020-05-06 2020-08-04 北京俩撇科技有限公司 Block chain system, transaction processing method and device
CN113361243A (en) * 2021-06-24 2021-09-07 平安普惠企业管理有限公司 Document contract automatic assembly method and device, electronic equipment and storage medium
CN113361243B (en) * 2021-06-24 2023-09-08 融立方信息技术(北京)有限公司 Automatic document contract assembling method and device, electronic equipment and storage medium
CN113377717A (en) * 2021-06-30 2021-09-10 中国平安财产保险股份有限公司 Document file generation method and device, electronic equipment and storage medium
CN113377717B (en) * 2021-06-30 2023-02-03 中国平安财产保险股份有限公司 Document file generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106598930B (en) electronic license processing method based on layout file
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN110659258A (en) Document generation method, system, computer device and computer readable storage medium
EP2290535A1 (en) Integration environment generator
CN109213519B (en) Heterogeneous API adaptation processing method and system
CN111144083B (en) Report generation method, device, equipment and computer readable storage medium
CN104133765B (en) The test case sending method of network activity and test case server
CN112149390A (en) Report generation method, system, computer device and computer-readable storage medium
CN110928802A (en) Test method, device, equipment and storage medium based on automatic generation of case
CN110866289A (en) Data processing method and device based on block chain, server and storage medium
CN111311211A (en) Data processing method and device based on block chain
CN108416568A (en) Government affairs business data processing method, device and terminal device
CN112700246A (en) Data processing method, device and equipment based on block chain and readable storage medium
CN110348672A (en) Operational decision making method, apparatus calculates equipment and computer readable storage medium
CN111342992A (en) Method and system for processing equipment information change record
CN104598249A (en) Multi-tenant perception software personalized customization and deployment method
CN110472109B (en) Dynamic data quality analysis method and platform system
CN115794641A (en) Method, device and equipment for making number based on business process and storage medium
Peterek et al. Prototype for dual digital traceability of metrology data using X. 509 and IOTA
CN111221517A (en) Model creating method and device, computer equipment and readable storage medium
CN112947911A (en) Interface script generation method, device, equipment and storage medium
CN105656706B (en) Service data processing method and device
CN108804403B (en) Method and device for realizing service chart
CN114896161A (en) File construction method and device based on artificial intelligence, computer equipment and medium
CN112036836B (en) Service opening method, system and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200107

WD01 Invention patent application deemed withdrawn after publication