CN108491367B - Report document generation method and device, computer equipment and storage medium - Google Patents

Report document generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108491367B
CN108491367B CN201810142503.0A CN201810142503A CN108491367B CN 108491367 B CN108491367 B CN 108491367B CN 201810142503 A CN201810142503 A CN 201810142503A CN 108491367 B CN108491367 B CN 108491367B
Authority
CN
China
Prior art keywords
report
document
report document
template
generation request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810142503.0A
Other languages
Chinese (zh)
Other versions
CN108491367A (en
Inventor
王瑶
刘培彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qichacha Technology Co ltd
Original Assignee
Suzhou Longdong Network Technology 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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=63340225&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=CN108491367(B) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Suzhou Longdong Network Technology Co ltd filed Critical Suzhou Longdong Network Technology Co ltd
Priority to CN201810142503.0A priority Critical patent/CN108491367B/en
Publication of CN108491367A publication Critical patent/CN108491367A/en
Application granted granted Critical
Publication of CN108491367B publication Critical patent/CN108491367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to a report document generation method, a report document generation device, a computer device and a storage medium. The report document generation method comprises the following steps: acquiring a report document generation request; acquiring a report type corresponding to the report document generation request according to the report document generation request; according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template; and generating a corresponding report document according to the process node information and the report template. By adopting the method, the report documents with different formats, different contents and different process processing steps can be generated, so that the whole system has strong compatibility.

Description

Report document generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the technical field of computer information processing, and in particular, to a method and an apparatus for generating a report document, a computer device, and a storage medium.
Background
With the development of computer information processing technology, report document automatic generation technology appears, and on some websites, more and more users generate the requirement of generating documents and downloading the information required on the websites. For example, after the country opens a society to inquire about the business information of enterprises in the country, more and more people want to quickly know the basic situation of the enterprises through the business information, and more website developers develop systems capable of automatically generating business information report documents in order to meet the requirements. As a result, more report document generation systems capable of generating other types of report documents have been developed.
However, the conventional report document generation system generates one type of report document for one type of information, the format and the content of the generated report document are fixed, and the whole system structure lacks scalability. Moreover, the conventional report document generation system cannot process report documents with different flow steps at the same time, which causes the whole system to lack compatibility.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium for generating a report document, which can compatibly process different process steps and different types of report documents.
A report document generation method, the method comprising:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and generating a corresponding report document according to the process node information and the report template.
In one embodiment, the configuration data further comprises a list of data interfaces corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the configuration data further comprises a list of data interfaces corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; processing corresponding data in the report template; editing the processed report template; and auditing the edited report template to generate a corresponding report document.
In one embodiment, generating a corresponding report document according to the process node information and the report template includes: acquiring corresponding data according to the report template; editing the report template after acquiring the corresponding data; and auditing the edited report template to generate a corresponding report document.
In one embodiment, the report document format is also included in the report document generation request; the report document generation method further includes: and converting the format of the generated report document according to the format of the report document.
In one embodiment, the report document generation request further includes a receiving address of the report document; the report document generation method further includes: and sending the generated report document to the receiving address.
In one embodiment, obtaining the report document generation request comprises: acquiring a report document generation request sent by at least one information platform; generating a task queue according to a report document generation request sent by at least one information platform; and acquiring a report document generation request from the task queue.
A report document generation apparatus, the apparatus comprising:
the request acquisition module is used for acquiring a report document generation request;
the information acquisition module is used for acquiring a report type corresponding to the report document generation request according to the report document generation request;
the data acquisition module is used for acquiring pre-stored configuration data corresponding to the report type according to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and the report generation module is used for generating a corresponding report document according to the process node information and the report template.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and generating a corresponding report document according to the process node information and the report template.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and generating a corresponding report document according to the process node information and the report template.
According to the report document generation method, the report document generation device, the computer equipment and the storage medium, the report type corresponding to the report document generation request is obtained through the report document generation request, the process node information and the report template corresponding to the report type are further obtained through the report type, and finally, the report documents of different types and different process processing steps are flexibly generated according to the obtained process node information and the obtained report template, so that the whole system has strong compatibility.
Drawings
FIG. 1 is a diagram of an application environment of a report document generation method in one embodiment;
FIG. 2 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 3 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 4 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 5 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 6 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 7 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 8 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 9 is a flowchart illustrating a report document generation method in one embodiment;
FIG. 10 is a flowchart node information diagram of a report document generation method in one embodiment;
FIG. 11 is a flowchart overview of a report document generation method in one embodiment;
FIG. 12 is a flowchart illustrating a report document configuration data expansion method in one embodiment;
FIG. 13 is a block diagram showing the construction of a report document generating apparatus in one embodiment;
FIG. 14 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 method for generating the report document can be applied to the application environment shown in FIG. 1. The application environment includes a user terminal 110 and a report document generating device 120, where the report document generating device 120 includes a task processing server 122, a cloud server 124, and at least one document processing server 126. The user terminal 110 communicates with the task processing server 122 through a network, and transmits a report document generation request to the task processing server 122. The task processing server 122 processes the report document generation request, and uploads the processed report document generation request to the cloud server 124 through the network. The cloud server 124 obtains the processed report document generation request, generates the processed report document generation request into a task queue, and meanwhile, the cloud server 124 distributes the report document generation request in the task queue according to a first-in first-out principle, so that at least one document processing server 126 continuously obtains the distributed report document generation request. After acquiring the distributed report document generation request, at least one document processing server 126 performs distributed processing on the report document generation request, and finally generates a corresponding report document. The user terminal 110 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the task processing server 122, the cloud server 124, and the document processing server 126 may be implemented by independent servers or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a report document generating method is provided, which is exemplified by the method applied to the document processing server in fig. 1, and includes the following steps:
step 210, obtaining a report document generation request.
The report document refers to a document of a report nature generated by integrating one or more kinds of information disclosed on the internet. In this embodiment, when a user needs a report document, a report document generation request may be sent by the user terminal, so that the document processing server can acquire the report document generation request.
Specifically, when a report document generation request is distributed to the document processing server via the internet, the report document generation request can be acquired by the document processing server. Meanwhile, the document processing server also acquires the information carried in the report document generation request.
Step 220, obtaining the report type corresponding to the report document generation request according to the report document generation request.
The report type refers to a classification mode of the report documents, and according to the classification mode, the report documents containing all the common characteristic information are of the same report type. In the present embodiment, the report types may be various, and thus, the user may request different types of report documents as needed.
Specifically, after the document processing server obtains the report document generation request, the document processing server analyzes the information carried in the report document generation request, where the analyzed information includes a report type corresponding to the report document generation request.
And step 230, acquiring configuration data corresponding to the pre-stored report type according to the report type.
The configuration data refers to data used for generating a report document, and may specifically include process node information and a report template corresponding to a report type. The process node information refers to steps required to be executed in the process of generating the report document, and the report template refers to a fixed typesetting format required in the process of generating the report document.
In the present embodiment, the configuration data is generally stored in the database in advance. The database may be on the document processing server or on another server. Specifically, after the document processing server obtains the report type corresponding to the report document generation request, the configuration data corresponding to the report type may be obtained from the database according to the report type, and further, the process node information and the report template corresponding to the report type in the configuration data are obtained.
And 240, generating a corresponding report document according to the process node information and the report template in the configuration data.
Specifically, the document processing server may perform step-by-step processing on the report template according to the process steps recorded in the process node information, and finally generate a report document corresponding to the report document generation request on the document processing server.
According to the report document generation method, the report type corresponding to the report document generation request is obtained through the report document generation request, the process node information and the report template corresponding to the report type are further obtained through the report type, and finally, the report documents of different types and different process processing steps are flexibly generated according to the obtained process node information and the obtained report template, so that the whole system has strong compatibility.
In one embodiment, as shown in fig. 3, for the example of the method applied to the report document generating device in fig. 1, the method for obtaining the report document generation request further includes the following steps:
step 310, acquiring a report document generation request sent by at least one information platform.
The information platform refers to a webpage or an application program of the user terminal. Specifically, the report document generation request is sent by a certain web page of the user terminal or a data transmission port in a certain application program, and is acquired by the task processing server through network transmission.
And step 320, generating a task queue according to the report document generation request sent by at least one information platform.
The task queue refers to a series of report document generation requests which are acquired by the task processing server and uploaded to the cloud server, and the report document generation requests are arranged one by one according to the sequence and are stored on the cloud server. Specifically, after the task processing server receives a report document generation request sent from at least one information platform, the obtained report document generation request is processed and uploaded to the cloud server through the network, and after the cloud server receives the report document generation request, the report document generation requests are sequenced according to the receiving sequence to generate a task queue.
Step 330, a report document generation request is obtained from the task queue.
Specifically, the cloud server distributes the report document generation requests in the task queue according to a first-in first-out principle, so that at least one document processing server continuously acquires the distributed report document generation requests. And after acquiring the distributed report document generation request, at least one document processing server performs distributed processing on the report document generation request.
According to the method for acquiring the report document generation request, the report document generation request is uploaded to the cloud server to form the task queue, and then the report document generation requests in the task queue are distributed according to a certain sequence, so that at least one document processing server can simultaneously process the report document generation request in a distributed mode, and the computing processing capacity of the system is greatly enhanced.
In one embodiment, the configuration data further includes a list of data interfaces corresponding to the report type. As shown in fig. 4, generating a corresponding report document according to the process node information and the report template includes the following steps:
and step 410, acquiring corresponding data according to the data interface list.
The data interface refers to a group of data transmission protocols between different components in the software system, and the data interface list refers to a set of multiple groups of data interfaces. Specifically, the document processing server may obtain data required in a series of report document generation processes through the data interface list.
And step 420, importing corresponding data according to the report template.
In this embodiment, the data interface list is arranged according to the typesetting order in the report template. That is, a series of data acquired by the document processing server through the data interface list corresponds to information to be filled in the report template one by one, and through the correspondence, the document processing server can import the series of data into the corresponding report template.
Step 430, the corresponding data in the report template is processed to generate a corresponding report document.
Specifically, the document processing server performs a series of processes on the populated data. For example, the document processing server may remove some redundant and display-incorrect data from the report template and then perform font, size, and color conversion on the populated data. The document template after data processing is the generated report document.
The method for generating the report document can be called as an automatic report document generation method, the execution steps of the automatic report document generation method are recorded in the process node information corresponding to the report type, and the system can automatically acquire data and automatically process the data according to the steps recorded in the process node information and generate the corresponding report document. According to the report document automatic generation method, the report document with very standardized content and form can be generated, and meanwhile, the labor is saved.
In one embodiment, the configuration data further includes a list of data interfaces corresponding to the report type. As shown in fig. 5, generating a corresponding report document according to the process node information and the report template includes the following steps:
and step 510, acquiring corresponding data according to the data interface list.
Specifically, the document processing server may obtain data required in a series of report document generation processes through the data interface list.
And step 520, importing corresponding data according to the report template.
In this embodiment, the data interface list is arranged according to the typesetting order in the report template. That is, a series of data acquired by the document processing server through the data interface list corresponds to information to be filled in the report template one by one, and through the correspondence, the document processing server can import the series of data into the corresponding report template.
Step 530, the corresponding data in the report template is processed.
Specifically, the document processing server performs a series of processes on the populated data. For example, the document processing server may remove some redundant and display-incorrect data from the report template and then perform font, size, and color conversion on the populated data.
And 540, editing the processed report template.
Specifically, the document processing server may edit the report template after the data processing. In this embodiment, the editing means that both the report template and the data in the report template can be edited, for example, some unfilled data in the report template can be supplemented, and the filled data can be re-edited or modified; the typesetting format in the report template can be added or deleted, and the typesetting format of the report template can be adjusted by some sizes, colors and line thicknesses.
And step 550, auditing the edited report template to generate a corresponding report document.
Specifically, the document processing server may audit the edited report template. In this embodiment, the review refers to performing a comprehensive review on the report template and the data in the report template, for example, the review needs to perform a review on the correctness and the data format of the data in the report template, and also needs to perform a review on the typesetting format of the report template. And if the audit cannot pass, returning to the edited node again for re-editing, and then, re-auditing the re-edited report document until the audit passes, so that a corresponding report document can be generated.
The method for generating the report document can be called a report document semi-automatic generation method, the execution steps of the report document semi-automatic generation method are also recorded in the process node information corresponding to the report type, and the system can automatically acquire data, automatically process the data, edit and verify the data and generate the corresponding report document only according to the steps recorded in the process node information. The report document with the customized generation content and form higher than the general standard can be generated according to the semi-automatic generation method of the report document.
In one embodiment, as shown in fig. 6, generating a corresponding report document according to the process node information and the report template includes the following steps:
and step 610, acquiring corresponding data according to the report template.
Specifically, the document processing server may fill information that needs to be filled in the report template according to the report template.
And step 620, editing the report template after the corresponding data is acquired.
Specifically, the document processing server may edit the data-populated report template. In this embodiment, editing means that both the report template and the data in the report template can be edited, for example, manual editing may supplement some unfilled data in the report template, and re-edit or modify the filled data; the typesetting format in the report template can be added or deleted, and the typesetting format of the report template can be adjusted by some sizes, colors and line thicknesses.
In step 630, the edited report template is reviewed to generate a corresponding report document.
Specifically, the document processing server may audit the edited report template. In this embodiment, the review refers to performing a comprehensive review on the report template and the data in the report template, for example, the review needs to perform a review on the correctness and the data format of the data in the report template, and also needs to perform a review on the typesetting format of the report template. And if the audit cannot pass, returning to the edited node again for re-editing, and then, re-auditing the re-edited report document until the audit passes, so that a corresponding report document can be generated.
The report document generation method can also be called a report document manual generation method, the execution steps of the report document manual generation method are also recorded in the process node information corresponding to the report type, and the system can edit and audit only according to the steps recorded in the process node information and generate a corresponding report document. The report document with completely customized content and form can be generated according to the manual report document generation method.
In one embodiment, the report document format is further included in the report document generation request, and as shown in fig. 7, the report document generation method further includes the following steps:
step 750, according to the report document format, converting the format of the generated report document.
The document formats refer to special encoding modes of information used by a computer for storing information, and each document format can be identified by one or more extension names, such as a word document, an Excel document and an html document. In the present embodiment, the report document format refers to a document format specified by the user and saved in the report document generation request, and the report document format includes, but is not limited to, a word document, an Excel document, an html document, a pdf document, and a picture document.
Specifically, the document processing server may perform format conversion on the generated report document according to a document format specified by the user, so as to convert the generated report document into the document format specified by the user. For example, if the report document generated by the document processing server is a word document and the report document format specified by the user is a pdf document, the document processing server converts the generated word document into the pdf document and uses the converted pdf document as the final generated document.
The report document generation method can convert the generated report document into any file format according to the actual requirements of the user, and improves the compatibility of the system while meeting the requirements of the user.
In one embodiment, the report document generation request further includes a receiving address of the report document, and as shown in fig. 8, the report document generation method further includes the following steps:
step 850, sending the generated report document to the receiving address.
Wherein the reception address refers to an email address specified by the user saved in the report document generation request. In the present embodiment, this mail address is mainly used for receiving the generated report document. Specifically, after the report document is generated, the document processing server may send the corresponding report document to the receiving address.
Further, the configuration data may further include a mail template corresponding to the report type, where the mail template refers to a mail containing specific information and a specific layout format, and in this embodiment, the specific information includes, but is not limited to, a report name, a report type, a generation date, and a report document itself of the report document. Specifically, the report document generating method may further include sending the generated report document to the receiving address according to the mail template.
The report document generation method can enable the user to receive the generated report document more quickly, and enable the user to view the generated report document more conveniently through the setting of the mail template.
In a specific embodiment, as shown in fig. 9, there is provided a report document generating method including the steps of:
step 910, obtaining a report document generation request sent by at least one information platform.
Specifically, the report document generation request is sent by a certain web page of the user terminal or a data transmission port in a certain application program, and is acquired by the task processing server through network transmission. In this embodiment, the report document may specifically be a business credit report, a hong kong business credit report, or the like.
Step 920, generating a task queue according to a report document generation request sent by at least one information platform.
Specifically, after the task processing server receives a report document generation request sent from at least one information platform, the obtained report document generation request is processed and uploaded to the cloud server through the network, and after the cloud server receives the report document generation request, the report document generation requests are sequenced according to the receiving sequence to generate a task queue.
Step 930, obtaining report document generation request from the task queue.
Specifically, the cloud server distributes the report document generation requests in the task queue according to a first-in first-out principle, so that at least one document processing server continuously acquires the distributed report document generation requests. And after acquiring the distributed report document generation request, at least one document processing server performs distributed processing on the report document generation request.
And 940, acquiring a report type corresponding to the report document generation request according to the report document generation request.
Specifically, the method is applied to a document processing server in fig. 1 as an example. When a document processing server acquires a report document generation request, analyzing information carried in the report document generation request, wherein the analyzed information comprises a report type corresponding to the report document generation request. For example, a business credit report and a hong kong business credit report are two different report types of report documents.
And step 950, acquiring configuration data corresponding to the pre-stored report type according to the report type.
In the present embodiment, the configuration data is generally stored in the database in advance. The database may be on the document processing server or on another server. Specifically, after the document processing server obtains the report type corresponding to the report document generation request, the configuration data corresponding to the report type may be obtained from the database according to the report type, and further, the process node information and the report template corresponding to the report type in the configuration data are obtained.
In the embodiment, the word document is selected as the document format of the report template, and the report document is easier to edit and audit in subsequent processing through the setting.
Step 960, generating a corresponding report document according to the process node information and the report template in the configuration data.
Specifically, the steps in the process node information may be summarized into three different report document generation methods according to the difference in the process node information in the configuration data. Step 961 is an automatic generation method of report document; step 962 is a semi-automatic generation method of report document; step 963 is a manual generation method for the report document. In this embodiment, each report type is executed corresponding to only one method step:
step 961, a corresponding report document is generated by adopting a report document automatic generation method.
In this implementation, the configuration data further includes a data interface list, and specifically, the document processing server may obtain, through the data interface list, a series of data required in the report document generation process, where the data correspond to information to be filled in the report template one to one, and through the correspondence, the document processing server may import the series of data into the corresponding report template. The document processing server then performs a series of processes on the populated data. For example, the document processing server may remove some redundant and display-incorrect data from the report template and then perform font, size, and color conversion on the populated data. The document template after data processing is the generated report document.
And 962, generating a corresponding report document by adopting a report document semi-automatic generation method.
In this implementation, the configuration data further includes a data interface list, and specifically, the document processing server may obtain, through the data interface list, a series of data required in the report document generation process, where the data correspond to information to be filled in the report template one to one, and through the correspondence, the document processing server may import the series of data into the corresponding report template. The document processing server then performs a series of processes on the populated data. For example, the document processing server may remove some redundant and display-incorrect data from the report template and then perform font, size, and color conversion on the populated data. After the data processing, the document processing server may edit the report template and the data in the report template, for example, some unfilled data in the report template may be supplemented, and the data that has been filled may be re-edited or modified; the typesetting format in the report template can be added or deleted, and the typesetting format of the report template can be adjusted by some sizes, colors and line thicknesses. Finally, the document processing server can perform comprehensive examination on the edited report template and the data in the report template. For example, the audit needs to audit the correctness and data format of the data in the report template, and also needs to audit the layout format of the report template. And if the audit cannot pass, returning to the edited node again for re-editing, and then, re-auditing the re-edited report document until the audit passes, so that a corresponding report document can be generated.
And 963, generating a corresponding report document by adopting a report document manual generation method.
Specifically, the document processing server may fill information to be filled in the report template according to the report template, and then, the document processing server may edit the report template and data filled in the report template, for example, some data not filled in the report template may be supplemented, and data already filled in the report template may be re-edited or modified; the typesetting format in the report template can be added or deleted, and the typesetting format of the report template can be adjusted by some sizes, colors and line thicknesses. Finally, the document processing server can perform comprehensive examination on the edited report template and the data in the report template. For example, the audit needs to audit the correctness and data format of the data in the report template, and also needs to audit the layout format of the report template. And if the audit cannot pass, returning to the edited node again for re-editing, and then, re-auditing the re-edited report document until the audit passes, so that a corresponding report document can be generated.
In this embodiment, the report document generation method of steps 961, 962, and 963 is only an abstraction of three specific situations of the process node information, and the process node information may be flexibly changed based on the three methods, referring to fig. 10, a plurality of nodes are usually recorded in the process node information, such as node 1, node 2, and node 3 in fig. 10, and the process node information may also be inserted into other nodes based on the three nodes, all the nodes are recorded in the process node information, and corresponding executable nodes are different for different report document types, and the document processing server only needs to perform step-by-step processing according to the executable nodes recorded in the process node information, and through such an arrangement, the compatibility of the entire system is greatly enhanced.
Step 970, according to the report document format, the format conversion is carried out to the generated report document.
Specifically, the document processing server may perform format conversion on the generated report document according to a document format specified by the user, so as to convert the generated report document into the document format specified by the user. For example, if the report document generated by the document processing server is a word document and the report document format specified by the user is a pdf document, the document processing server converts the generated word document into the pdf document and uses the converted pdf document as the final generated document. In the present embodiment, the report document format includes, but is not limited to, word documents, Excel documents, html documents, pdf documents, and picture documents.
Step 980, the generated report document is sent to the receiving address.
Specifically, after the report document is generated, the document processing server may send the corresponding report document to the receiving address. Further, the configuration data may further include a mail template corresponding to the report type, where the mail template refers to a mail containing specific information and a specific layout format, and in this embodiment, the specific information includes, but is not limited to, a report name, a report type, a generation date, and a report document itself of the report document. Specifically, the report document generating method may further include sending the generated report document to the receiving address according to the mail template.
The report document generating method described above is further described with reference to fig. 1 and 11. In this embodiment, the report document generation device 120 obtains the report document generation requests sent by the web pages and the application programs through the task processing server 122, sorts the obtained report document generation requests in sequence on the cloud server 124 to generate a task queue, and then distributes the report document generation requests in the task queue, so that the report document generation requests in the task queue are processed in a distributed manner on at least one document processing server 126, that is, the report document generation device 120 may process multiple report document generation requests and generate multiple report documents at the same time, such as report document 1, report document 2 … … and report document n in fig. 11, and finally the report document generation device 120 performs format conversion on the generated report documents and sends the generated report documents to the designated receiving addresses. Through the series of processing, the report document generating device can flexibly generate report documents with different formats, different contents and different flow processing steps, so that the whole system has strong compatibility, and meanwhile, the distributed processing also enables the report document generating device to have strong computing processing capacity.
In one embodiment, as shown in FIG. 12, a report document configuration data extension method is provided. Specifically, the report document generating device may further extend the configuration data in the report document automatic generating method, so that the system may extend more types of report documents according to the newly added configuration data, where the configuration data is generally stored in a database, and the database may be on a document processing server or other servers.
Specifically, referring to fig. 12, when a report document of one report type is newly added to the system, a report type may be configured for the newly added report document, then a corresponding process node, a report template, a data interface list and a mail template may be configured for the report type, and finally code conversion is performed to generate configuration data in a standard format, and the configuration data is stored in the database. The report template adopts a word document, so that the report template is convenient to make and modify, and what you see is what you get is; at the same time, subsequent edits to the report document are also visualized. In this embodiment, when there is a report document request corresponding to the new type of report document, the new type of report document may be generated according to the method steps in the above embodiments.
The report document configuration data expanding method can effectively add report documents of different report types to the system, enables the report documents of various types to be processed simultaneously and not to interfere with each other, and further enhances the compatibility and the expansibility of the system.
It should be understood that, although the steps in the flowcharts of fig. 2 to 9 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence 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 some of the steps in fig. 2-9 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 13, there is provided a report document generating apparatus 1300 including: a request obtaining module 1301, an information obtaining module 1302, a data obtaining module 1303 and a report generating module 1304, wherein:
a request obtaining module 1301, configured to obtain a report document generation request;
an information obtaining module 1302, configured to obtain, according to the report document generation request, a report type corresponding to the report document generation request;
a data obtaining module 1303, configured to obtain, according to the report type, configuration data corresponding to the pre-stored report type, where the configuration data includes process node information and a report template corresponding to the report type;
and a report generating module 1304, configured to generate a corresponding report document according to the process node information and the report template.
In one embodiment, the configuration data further comprises a list of data interfaces corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the configuration data further comprises a list of data interfaces corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; processing corresponding data in the report template; editing the processed report template; and auditing the edited report template to generate a corresponding report document.
In one embodiment, generating a corresponding report document according to the process node information and the report template includes: acquiring corresponding data according to the report template; editing the report template after acquiring the corresponding data; and auditing the edited report template to generate a corresponding report document.
In one embodiment, the report document format is also included in the report document generation request; the report document generation method further includes: and converting the format of the generated report document according to the format of the report document.
In one embodiment, the report document generation request further includes a receiving address of the report document; the report document generation method further includes: and sending the generated report document to the receiving address.
In one embodiment, obtaining the report document generation request comprises: acquiring a report document generation request sent by at least one information platform; generating a task queue according to a report document generation request sent by at least one information platform; and acquiring a report document generation request from the task queue.
For the specific definition of the report document generation apparatus, the above definition of the report document generation method can be referred to, and details are not repeated here. The respective modules in the report document generating apparatus described above may be wholly or partially implemented 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 server, and its internal structure diagram may be as shown in fig. 14. The computer device includes a processor, a memory, a network interface, and a database 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, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used to store the generated report document. The network interface of the computer device is used for communicating with an external terminal through a network connection. Which computer program is executed by a processor to carry out the method steps in the embodiments described above.
Those skilled in the art will appreciate that the architecture shown in fig. 14 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 an embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the method steps in the embodiments described above when executing the computer program.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and generating a corresponding report document according to the process node information and the report template.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
in this embodiment, the configuration data further includes a data interface list corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
in this embodiment, the configuration data further includes a data interface list corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
in this embodiment, generating a corresponding report document according to the process node information and the report template includes: acquiring corresponding data according to the report template; editing the report template after acquiring the corresponding data; and auditing the edited report template to generate a corresponding report document.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the report document generation request also comprises a report document format; the report document generation method further includes: and converting the format of the generated report document according to the format of the report document.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the report document generation request also comprises a receiving address of the report document; the report document generation method further includes: and sending the generated report document to the receiving address.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
the acquiring a report document generation request includes: acquiring a report document generation request sent by at least one information platform; generating a task queue according to a report document generation request sent by at least one information platform; and acquiring a report document generation request from the task queue.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprises process node information corresponding to the report type and a report template;
and generating a corresponding report document according to the process node information and the report template.
In one embodiment, the computer program when executed by the processor further performs the steps of:
in this embodiment, the configuration data further includes a data interface list corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the computer program when executed by the processor further performs the steps of:
in this embodiment, the configuration data further includes a data interface list corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the report document comprises: acquiring corresponding data according to the data interface list; importing corresponding data according to the report template; corresponding data in the report template is processed to generate a corresponding report document.
In one embodiment, the computer program when executed by the processor further performs the steps of:
in this embodiment, generating a corresponding report document according to the process node information and the report template includes: acquiring corresponding data according to the report template; editing the report template after acquiring the corresponding data; and auditing the edited report template to generate a corresponding report document.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the report document generation request also comprises a report document format; the report document generation method further includes: and converting the format of the generated report document according to the format of the report document.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the report document generation request also comprises a receiving address of the report document; the report document generation method further includes: and sending the generated report document to the receiving address.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the acquiring a report document generation request includes: acquiring a report document generation request sent by at least one information platform; generating a task queue according to a report document generation request sent by at least one information platform; and acquiring a report document generation request from the task queue.
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, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
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 invention. 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 patent shall be subject to the appended claims.

Claims (10)

1. A report document generation method, the method comprising:
acquiring a report document generation request;
acquiring a report type corresponding to the report document generation request according to the report document generation request;
according to the report type, obtaining pre-stored configuration data corresponding to the report type, wherein the configuration data comprise process node information and a report template, the process node information comprises steps required to be executed in the process of generating the report document, and the report template comprises a fixed typesetting format required to be used in the process of generating the report document;
determining a generation mode of the report document according to the process steps recorded in the process node information, and gradually processing the report template according to the generation mode to generate a corresponding report document;
and carrying out format conversion or forwarding processing on the report document according to the report document generation request.
2. The method of claim 1, wherein the configuration data further comprises a list of data interfaces corresponding to the report type; generating a corresponding report document according to the process node information and the report template, wherein the generating of the corresponding report document comprises:
acquiring corresponding data according to the data interface list;
importing the corresponding data according to the report template;
processing the corresponding data in the report template to generate a corresponding report document.
3. The method of claim 2, wherein after processing the corresponding data in the report template, further comprising:
editing the processed report template;
and auditing the edited report template to generate a corresponding report document.
4. The method of claim 1, wherein generating a corresponding report document according to the process node information and the report template comprises:
acquiring corresponding data according to the report template;
editing the report template after acquiring the corresponding data;
and auditing the edited report template to generate a corresponding report document.
5. The method according to any one of claims 1 to 4, wherein the report document generation request includes a report document format; the converting the format of the report document according to the report document generation request includes:
and converting the format of the generated report document according to the report document format.
6. The method according to any one of claims 1 to 4, wherein the report document generation request includes a receiving address of the report document; the forwarding the report document according to the report document generation request includes:
and sending the generated report document to the receiving address.
7. The method according to any one of claims 1 to 4, wherein the obtaining a report document generation request comprises:
acquiring a report document generation request sent by at least one information platform;
generating a task queue according to a report document generation request sent by the at least one information platform;
and acquiring the report document generation request from the task queue.
8. An apparatus for generating a report document, the apparatus comprising:
the request acquisition module is used for acquiring a report document generation request;
the information acquisition module is used for acquiring a report type corresponding to the report document generation request according to the report document generation request;
the data acquisition module is used for acquiring prestored configuration data corresponding to the report type according to the report type, wherein the configuration data comprises process node information and a report template, the process node information comprises steps required to be executed in the process of generating the report document, and the report template comprises a fixed typesetting format required to be used in the process of generating the report document;
a report generation module, configured to determine a generation manner of the report document according to the process steps recorded in the process node information, and perform step-by-step processing on the report template according to the generation manner to generate a corresponding report document; and carrying out format conversion or forwarding processing on the report document according to the report document generation request.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 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 steps of the method of any one of claims 1 to 7.
CN201810142503.0A 2018-02-11 2018-02-11 Report document generation method and device, computer equipment and storage medium Active CN108491367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810142503.0A CN108491367B (en) 2018-02-11 2018-02-11 Report document generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810142503.0A CN108491367B (en) 2018-02-11 2018-02-11 Report document generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108491367A CN108491367A (en) 2018-09-04
CN108491367B true CN108491367B (en) 2020-06-12

Family

ID=63340225

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810142503.0A Active CN108491367B (en) 2018-02-11 2018-02-11 Report document generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108491367B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446504A (en) * 2018-10-19 2019-03-08 长沙科锐消防工程技术有限公司 A kind of fire Safety Assessment report automatic generation method and system
CN109684621A (en) * 2018-12-25 2019-04-26 国电大渡河大岗山水电开发有限公司 A kind of equipment operating analysis report generation and auditing flow method
CN110287468B (en) * 2019-06-27 2023-06-06 南银法巴消费金融有限公司 PDF document generation method and system suitable for online protocol
CN111242468A (en) * 2020-01-08 2020-06-05 中联财联网科技有限公司 Distributed automatic evaluation report generation method
CN111310434B (en) * 2020-02-28 2024-01-19 北京金堤科技有限公司 Text generation method and device, electronic equipment and storage medium
CN112131837B (en) * 2020-09-22 2023-11-03 平安证券股份有限公司 Service report configuration method, device, computer equipment and storage medium
CN112329420A (en) * 2020-11-18 2021-02-05 布瑞克农业大数据科技集团有限公司 Agricultural product analysis report generation method
CN112906356B (en) * 2021-02-05 2024-06-11 武汉先峰誉得科技有限公司 Report writing flow self-defining method and device, client and server
CN114118047A (en) * 2021-12-07 2022-03-01 建信金融科技有限责任公司 Report generation method, device, equipment and computer storage medium
CN114611479B (en) * 2022-02-24 2023-04-28 北京金堤科技有限公司 Document generation method and device, storage medium and electronic equipment
CN114968455B (en) * 2022-04-29 2024-02-27 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100478956C (en) * 2007-01-26 2009-04-15 华为技术有限公司 Method and corresponding system for creating and obtaining report forms
CN102591961B (en) * 2011-12-30 2015-03-18 国家电网公司 Method and system for making data charts
CN104484353A (en) * 2014-11-28 2015-04-01 华为技术有限公司 Data imaging method, data imaging device and database server
CN104537069B (en) * 2014-12-26 2017-12-26 远光软件股份有限公司 A kind of document configuration and application system and its method

Also Published As

Publication number Publication date
CN108491367A (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN108491367B (en) Report document generation method and device, computer equipment and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN108573371B (en) Data approval method, device, computer equipment and storage medium
US10802804B2 (en) File generation method, device, server, and storage medium
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
CN108052553B (en) Method and device for generating electronic manual, computer equipment and storage medium
CN109617647B (en) Message conversion method and device, computer equipment and computer readable storage medium
CN111191100B (en) Government information processing method, government information processing device and computer readable storage medium
CN111027295A (en) Data processing method, data processing device, computer equipment and storage medium
CN110069297A (en) Abnormality eliminating method, device, computer equipment and storage medium based on Spring MVC
CN111858376A (en) Request message generation method and interface test method
CN111191079A (en) Document content acquisition method, device, equipment and storage medium
CN111242317A (en) Method and device for managing application, computer equipment and storage medium
CN109062906B (en) Translation method and device for program language resources
CN112100134A (en) Method and device for exporting large file, storage medium and computer equipment
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN110647350A (en) Interface document generation method and device, computer equipment and storage medium
CN108604226A (en) For the cross-platform system and method for keeping the comment to electronic document synchronous
CN114004211B (en) Document template generation method, processing method, device, computer equipment and medium
CN111382382B (en) Data display method, device, computer equipment and storage medium
CN113806815A (en) File signing method and system
CN113553344A (en) Business data management method, system, computer equipment and storage medium
CN113806359A (en) Calendar data storage method and device, computer equipment and storage medium
CN112559930B (en) Webpage integration method, webpage integration 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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 503, 5 / F, C1 building, 88 Dongchang Road, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Patentee after: Qicha Technology Co.,Ltd.

Address before: 215123 a-901, Huihu building, No.10, Yueliangwan Road, Suzhou Industrial Park, Jiangsu Province

Patentee before: SUZHOU LANGDONG NET TEC Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 8 Huizhi Street, Suzhou Industrial Park, Suzhou Area, China (Jiangsu) Pilot Free Trade Zone, Suzhou City, Jiangsu Province, 215000

Patentee after: Qichacha Technology Co.,Ltd.

Address before: Room 503, 5 / F, C1 building, 88 Dongchang Road, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Patentee before: Qicha Technology Co.,Ltd.

CP03 Change of name, title or address