Report document viewing method and device, equipment, storage medium and program product
By separating tasks between the document server and the report server, obtaining and displaying candidate content summaries of report documents solves the problem in the existing technology that users need to wait for all content to be loaded, and achieves a more efficient report document viewing experience.
Patent Information
- Application Number
- CN202310872175.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-14
- Publication Date
- 2025-01-17
AI Technical Summary
In the prior art, users need to wait for all content to be loaded when viewing report documents, resulting in a long data transmission time and loading time, which reduces viewing efficiency.
By separating tasks between the document server and the reporting server, the reporting query conditions are obtained, candidate identifications are returned, candidate content summaries are determined, and sent to the terminal for display. Users can obtain key information of reporting documents through candidate content summaries, reducing the amount of data transmission and loading.
This enables users to quickly browse key information of report documents without waiting for all report documents to be transmitted and loaded, reducing data transmission time and loading time and improving user viewing efficiency.
Smart Images

Figure CN119322843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a report document viewing method, device, equipment, storage medium and program product. Background Art
[0002] Reporting refers to the process of displaying, explaining and communicating relevant information such as work and project progress and results. In the prior art, reporting applications are often used for online reporting to achieve efficient information sharing, collaboration and communication. Usually, the functions of the reporting application are integrated into a server, and users are provided with the function of editing and displaying the report content through the application interface. Users can access the reporting application webpage on the server through a browser to edit, save, share and display the report content online.
[0003] However, in the prior art, when a user views a report, the server usually directly returns the complete content of the report, and the user needs to wait until all the report content is loaded before browsing. During this process, the data transmission time and loading time of the report content are long, resulting in low viewing efficiency. Summary of the invention
[0004] The embodiments of the present application provide a report document viewing method, apparatus, device, storage medium and program product, which can improve the efficiency of users viewing report documents.
[0005] An embodiment of the present application provides a report document viewing method, which is applied to a document server, and the method includes: obtaining a report query condition from a report query request sent from a terminal, and sending the report query condition to a report server; receiving at least one candidate identifier returned by the report server, the candidate identifier being a document identifier of a report document that meets the report query condition; determining a candidate content summary based on the candidate identifier, the candidate content summary being a content summary of the report document corresponding to the candidate identifier; sending the candidate content summary to the terminal so that the candidate content summary is displayed on the terminal; when a report viewing request for any of the candidate content summaries is received from the terminal, querying a target report document corresponding to the target identifier based on a target identifier carried in the report viewing request, the target identifier being a document identifier corresponding to any of the candidate content summaries; and sending the target report document to the terminal so that the target report document is displayed on the terminal.
[0006] An embodiment of the present application also provides a report document viewing method, which is applied to a report server, and the method includes: receiving a report query condition sent by a document server, wherein the report query condition is obtained by the document server from a report query request sent by a terminal; determining a document identifier of a report document that meets the report query condition as a candidate identifier; sending the candidate identifier to the document server, so that the document server determines a content summary of the report document corresponding to the candidate identifier as a candidate content summary, and querying a target report document corresponding to a target identifier according to a target identifier carried in a report viewing request for any of the candidate content summaries sent by the terminal, so as to display the target report document at the terminal, wherein the target identifier is a document identifier corresponding to any of the candidate content summaries.
[0007] The embodiment of the present application also provides a report document viewing device, which is applied to a document server, and the device includes: a condition acquisition unit, which is used to obtain a report query condition from a report query request sent from a terminal, and send the report query condition to the report server; an identifier receiving unit, which is used to receive at least one candidate identifier returned by the report server, wherein the candidate identifier is a document identifier of a report document that meets the report query condition; a summary determination unit, which is used to determine a candidate content summary based on the candidate identifier, wherein the candidate content summary is a content summary of the report document corresponding to the candidate identifier; a summary sending unit, which is used to send the candidate content summary to the terminal so that the candidate content summary is displayed on the terminal; a report query unit, which is used to query a target report document corresponding to the target identifier based on a target identifier carried in the report viewing request when a report viewing request for any of the candidate content summaries is received from the terminal, wherein the target identifier is a document identifier corresponding to any of the candidate content summaries; and send the target report document to the terminal so that the target report document is displayed on the terminal.
[0008] An embodiment of the present application also provides a report document viewing device, which is applied to a report server, and the device includes: a conditional receiving unit, which is used to receive a report query condition sent by the document server, and the report query condition is obtained by the document server from a report query request sent by a terminal; an identifier determination unit, which is used to determine the document identifier of a report document that meets the report query condition as a candidate identifier; an identifier sending unit, which is used to send the candidate identifier to the document server, so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and queries the target report document corresponding to the target identifier according to the target identifier carried in the report viewing request for any of the candidate content summaries sent by the terminal, so as to display the target report document at the terminal, and the target identifier is the document identifier corresponding to any of the candidate content summaries.
[0009] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores multiple instructions; the processor loads instructions from the memory to execute the steps in any one of the report document viewing methods provided in the embodiments of the present application.
[0010] An embodiment of the present application also provides a computer-readable storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any one of the report document viewing methods provided in the embodiments of the present application.
[0011] An embodiment of the present application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps in any one of the report document viewing methods provided in the embodiments of the present application.
[0012] In an embodiment of the present application, a report query condition can be obtained from a report query request sent from a terminal, and the report query condition can be sent to a report server; at least one candidate identifier returned by the report server can be received, wherein the candidate identifier is a document identifier of a report document that satisfies the report query condition; a candidate content summary can be determined according to the candidate identifier, wherein the candidate content summary is a content summary of the report document corresponding to the candidate identifier; the candidate content summary can be sent to the terminal so that the candidate content summary can be displayed on the terminal; when a report viewing request for any of the candidate content summaries is received from the terminal, a target report document corresponding to the target identifier can be queried according to the target identifier carried in the report viewing request, wherein the target identifier is a document identifier corresponding to any of the candidate content summaries; and the target report document can be sent to the terminal so that the target report document can be displayed on the terminal.
[0013] In this application, one or more corresponding candidate content summaries can be screened and returned to the terminal for display according to the report query conditions corresponding to the terminal, so as to provide users with a quick preliminary browse. In this process, users do not need to wait for all report documents to be transmitted and loaded, that is, they can obtain the key information of the report document through the candidate content summary, so as to reduce the amount of data transmission and the amount of data loading of the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents. According to the user's report viewing operation on the candidate summary content displayed by the terminal, the user can choose to view a certain report document without browsing all report documents, so as to further improve the efficiency of users viewing report documents. In addition, this application uses a report server to process the report query conditions to determine the candidate identifier, and stores both the report document and the content summary in the document server, so as to use the document server to search for the candidate content summary and the target report document, so as to realize the separation of the report query condition processing task, the candidate content summary and the target report document search task, which can reduce the burden of the report server on the one hand, and facilitate the management and sharing of relevant report data, reduce the risk of data leakage, and on the other hand, improve the maintainability and scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1a It is a scenario diagram of the report document viewing method provided in an embodiment of the present application;
[0016] Figure 1b It is a flowchart of a report document viewing method provided in an embodiment of the present application;
[0017] Figure 1c is a schematic diagram of the main page of the reporting application provided in the embodiment of the present application;
[0018] Figure 1d It is a schematic diagram of a report filling page provided in an embodiment of the present application;
[0019] Figure 1e is a schematic diagram of a summary display page provided in an embodiment of the present application;
[0020] Figure 1f is a schematic diagram of a report display page provided in an embodiment of the present application;
[0021] Figure 1g is a schematic diagram of another report display page provided in an embodiment of the present application;
[0022] Figure 2a It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0023] Figure 2b is a schematic diagram of a template setting page provided in an embodiment of the present application;
[0024] Figure 2c is a schematic diagram of another template setting page provided in an embodiment of the present application;
[0025] Figure 2d It is a schematic diagram of a setting page of a report rule of any report filling template provided in an embodiment of the present application;
[0026] Figure 3a It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0027] Figure 3b is a schematic diagram of a report query page provided in an embodiment of the present application;
[0028] Figure 3c It is a timing diagram for viewing a report document provided in an embodiment of the present application;
[0029] Figure 4a It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0030] Figure 4b It is a timing diagram of setting a report filling template and filling in a report document provided in an embodiment of the present application;
[0031] Figure 5 It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0032] Figure 6a It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0033] Figure 6b It is a timing diagram of a review report document provided in an embodiment of the present application;
[0034] Figure 7a It is a flowchart of a report document viewing method provided by another embodiment of the present application;
[0035] Figure 7b is a timing diagram of exporting a report document provided in an embodiment of the present application;
[0036] Figure 8 It is a structural diagram of a report document viewing device provided in an embodiment of the present application;
[0037] Fig. 9 is a structural diagram of a report document viewing device provided by another embodiment of the present application;
[0038] Fig.10 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0040] Embodiments of the present application provide a report document viewing method, apparatus, device, storage medium, and program product.
[0041] The report document viewing device can be integrated into an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC); the server can be a single server or a server cluster composed of multiple servers.
[0042] In some embodiments, the report document viewing device may also be integrated into multiple electronic devices. For example, the report document viewing device may be integrated into multiple servers, and the report document viewing method of the present application may be implemented by multiple servers.
[0043] In some embodiments, the server may also be implemented in the form of a terminal.
[0044] For example, refer to Figure 1a , the report document viewing method can be implemented by a document server. The document server can obtain the report query condition from the report query request sent by the terminal, and send the report query condition to the report server; receive at least one candidate identifier returned by the report server, the candidate identifier is the document identifier of the report document that meets the report query condition; determine the candidate content summary according to the candidate identifier, the candidate content summary is the content summary of the report document corresponding to the candidate identifier; send the candidate content summary to the terminal, so that the candidate content summary is displayed on the terminal; when receiving a report viewing request for any candidate content summary sent by the terminal, query the target report document corresponding to the target identifier according to the target identifier carried in the report viewing request, the target identifier is the document identifier corresponding to any candidate content summary; send the target report document to the terminal, so that the target report document is displayed on the terminal.
[0045] The following are described in detail respectively. It should be noted that the order of the following embodiments is not intended to limit the preferred order of the embodiments. It is understandable that in the specific implementation of the present application, it is related to report query operation, report query request, click operation, access request, fill operation, report fill request, report view operation, report view request, report export operation, report export request, setting operation, template setting request, rule setting request, fill operation, report fill request, report document, comment data, fill data, template setting data and rule setting data and other user-related data. When the embodiment of the present application is applied to a specific product or technology, it is necessary to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0046] In this embodiment, a report document viewing method is provided, and the report document viewing method is applied to a document server, such as Figure 1b As shown, the specific process of the report document viewing method can be as follows:
[0047] 110. Obtain report query conditions from the report query request sent by the terminal, and send the report query conditions to the report server.
[0048] Among them, the report document refers to a file containing the report content. The report may include but is not limited to daily reports, weekly reports, monthly reports and other customized reports. Depending on the application scenario or actual needs, the report document can adopt different formats and results. For example, the report document can be a file organized in a form, text, spreadsheet, presentation or other forms. A form is an interactive element used to collect and submit user data. It consists of a set of form controls and related labels, and is used to create input fields, check boxes, radio buttons, drop-down lists and other elements that users can interact with.
[0049] Among them, the report query request refers to a request for obtaining a content summary of a specific report document, and the specific document is a report document that meets the report query conditions. In an embodiment of the present application, the report query request may carry a report query condition, and the report query condition refers to the condition specified by the user when performing a report query operation for filtering the content summary to be obtained. For example, the report query condition may include but is not limited to a report identifier of the report document such as a document identifier, keywords, a date range such as a report start time to an end time, a report type such as a technical report or a market report, a reporter, a report status such as completed or unfinished, a label or classification, and other custom conditions.
[0050] In an embodiment of the present application, a document server is a server for storing and providing report documents, content summaries, comment data and other data related to the report, and a report server is a server for executing corresponding processing tasks of various requests from a terminal, such as a report query request. In actual applications, the document server and the report server can be integrated in different servers or in the same server. Specifically, an embodiment of the present application runs a report application through a terminal, and the report application can be an independent application such as a desktop application or a mobile application, or a non-independent application such as a mini-program, a plug-in or extension of other applications, etc., which is embedded in other platforms or applications. The document server can provide support services for report-related data for the report application running on the terminal, and the report server can provide processing services for various requests for the report application running on the terminal.
[0051] For example, when a user performs a report query operation in a terminal report application, if the user selects to query report documents with a date range of January 1, 2023 to June 30, 2023, the URL (Uniform Resource Locator) address of the report query request can be pre-defined, such as url = http: / / example.com / report / query, and the query_params dictionary can be used to set the report query condition query_params = {"start_date":"2023-01-01","end_date":"2023-06-30"}, and the requests.get method is used to send a get request, and the query_params dictionary is passed as the params parameter to the requests.get method. The requests.get method automatically generates a URL with query parameters corresponding to the report query condition, and passes the URL with the query parameters to the document server, thereby sending the report query request carrying the report query condition to the document server. After parsing the URL with query parameters sent by the terminal, the document server obtains the query parameters and passes them to the report server as the report query condition.
[0052] In some implementations, the page data of the report query page can be stored in the document server so that the document server can directly provide the page data support of the report query page, thereby reducing the burden on the report server, realizing the separation of the front-end and back-end report servers, improving the maintainability and scalability of the system, and realizing fast response speed and high availability, and accelerating page loading and response speed. Specifically, obtaining the report query condition from the report query request sent by the terminal, and before sending the report query condition to the report server, it also includes:
[0053] When an access request for a report query page is received from a terminal, the query page data corresponding to the report query page is sent to the terminal so that the terminal can display the report query page according to the query page data. The report query page is used to perform a report query operation, and the report query operation is used to generate a report query request.
[0054] The report query page is a page of the report application, and the query page data refers to the page data of the report query page.
[0055] The report query operation refers to an operation for determining a report query condition. After the user selects the report query condition, a report query request carrying the report query condition may be generated.
[0056] For example, when a user enters the reporting application, the terminal can display the following Figure 1c The main page of the reporting application shown in the figure includes a "fill" control for the entry of the report filling page and a "filter" control for the entry of the report query page. The user can click the "filter" control. In response to the click operation, the reporting application generates an access request and sends it to the document server. The document server returns the page data of the corresponding report page query surface to the terminal according to the request, so as to open the main page displayed on the terminal. Figure 1c The report query page shown, the user can enter the report query conditions in the page, the report query conditions can include at least one of the time range of the report documents to be screened and the filler (i.e., the reporter). After the user enters the report query conditions, such as the time range of the report documents to be screened, clicks the "Finish" control in the report query page, the report query operation is completed, and the report application generates a report query request carrying the time range according to the time range entered by the user, and sends it to the document server.
[0057] 120. Receive at least one candidate identifier returned by the reporting server, where the candidate identifier is a document identifier of a reporting document that meets the reporting query condition.
[0058] For example, after parsing the URL with query parameters sent by the document server, the report server obtains the query parameters as the report query conditions, and searches and filters according to the query parameters to find the document identifiers (i.e., candidate identifiers) of the report documents that meet the report query conditions and returns them to the document server. If there are multiple report documents that meet the report query conditions, the document identifiers of the multiple report documents can be returned to the document server.
[0059] 130. Determine a candidate content summary according to the candidate identifier, where the candidate content summary is a content summary of the report document corresponding to the candidate identifier.
[0060] Among them, the content summary refers to the main information or key points in the content of the report document, etc., which can express the key content of the original text.
[0061] For example, after receiving the candidate identifier returned by the reporting server, the document server can search for the reporting document with the document identifier as the candidate identifier (hereinafter referred to as the candidate reporting document) in its stored reporting documents, and process the text content in the candidate reporting document through text processing technology, such as natural language processing (NLP), such as using information extraction or keyword extraction algorithms to extract representative and key fields therefrom, which may be titles, abstracts, keywords, main conclusions, etc., and use these fields as the content summary of the candidate reporting document, namely, the candidate content summary.
[0062] In some implementations, in order to improve the processing efficiency of determining the candidate content summary, the first preset number of text contents in the report document can be directly used as its content summary. The preset number can be determined according to the application scenario and actual needs, such as the first 20 words, the first two sentences, or the first two lines. For example, the first two lines of text content in the report content of the report document can be used as the content summary of the report document.
[0063] In some implementations, in order to improve the processing efficiency of determining the candidate content summaries, a specified field in the report document may be used as its content summary. For example, a field of a specified element in a report filling template corresponding to the report document may be used as its content summary. For example, after the user fills in the report document using report filling template A, the content written by the user in the two elements of report subject and progress in report filling template A may be used as the content summary.
[0064] In some implementations, the report server can provide page data support for the report filling page, and the document server can determine the newly added document identifier, and the document server can generate and store the report document, thereby reducing the burden on the report server, realizing the separation of multiple tasks in the document filling and generation process, improving the maintainability and scalability of the system, and realizing the fast response speed and high availability of the back-end server. Specifically, the report document viewing method also includes:
[0065] When receiving an identification acquisition request sent by the reporting server, determining a newly added document identification corresponding to the identification acquisition request, the identification acquisition request being generated by the reporting server according to the report filling request sent by the terminal;
[0066] Sending the newly added document identifier to the reporting server so that the reporting server sends the newly added document identifier and the target report filling template corresponding to the report filling request to the terminal so that the terminal displays the report filling page corresponding to the target report filling template;
[0067] When the filled-in data and the newly added document identifier of the report filling-in page sent by the terminal are received, a newly added report document is generated according to the filled-in data and the newly added document identifier.
[0068] Among them, the report filling request refers to a request for filling a report using a specific report filling template, and the specific report filling template is the target report filling template. In an embodiment of the present application, the report filling request can carry the template identifier of the target report filling template and / or the user identifier corresponding to the terminal.
[0069] The identifier acquisition request refers to a request for acquiring a newly added document identifier, and the newly added document identifier refers to a document identifier of a newly added report document.
[0070] The report filling page is a page form of the report filling template, and the page includes the elements in the report filling template.
[0071] The filling data refers to the data generated by the filling operation performed on the report filling page. For example, the filling operation may include but is not limited to one or more operation behaviors such as input, selection, switching, dragging, sliding, etc. The filling data may only include the data corresponding to the filling operation, or may include all the data on the report filling page after the filling operation is completed.
[0072] For example, the user can click on the terminal A displayed as follows Figure 1c In the "Fill in" control on the main page of the reporting application shown in the figure, in response to the click operation, the reporting application generates a report filling request and sends it to the reporting server. The reporting server can determine the corresponding target report filling template through the template identifier or user identifier. At the same time, the reporting server generates an identifier acquisition request and sends it to the document server. The document server creates a new document identifier to be assigned to the new report document to be generated. After the document server returns the new document identifier to the reporting server, the reporting server sends the new document identifier and the target report filling template to terminal A, and terminal A displays the following. Figure 1d The report filling page shown. The user can enter the corresponding information in the elements such as reporting time, reporting object (i.e., recipient), work summary, work plan, and attachments displayed on the report filling page. After the input is completed, click the "Submit" control to send the filled-in data and the newly added document identifier to the document server. The filled-in data can be in a form. The document server can also save the filled-in data directly in the specified document format as a newly added report document. When generating the report document, a mapping relationship (i.e., document mapping relationship) can be established between the newly added report document and the corresponding newly added document identifier, or the newly added document identifier can be used as the name of the newly added report document to facilitate quick search of the newly added report document. The mapping relationship can be stored using a dictionary, a mapping table, or a database.
[0073] In some implementations, the key fields in the newly added report document can be used as the content summary of the report document, and a mapping relationship between the content summary and the corresponding document identifier can be established to improve the accuracy and efficiency of determining the candidate content summary. Specifically, the report document viewing method also includes:
[0074] Extract key fields from newly added reporting documents;
[0075] Generate a summary of new content based on key fields;
[0076] A summary mapping relationship between a newly added document identifier and a newly added content summary is established, and the summary mapping relationship is used to determine a candidate content summary.
[0077] The new content summary refers to the content summary of the new document.
[0078] The summary mapping relationship refers to the mapping relationship between the newly added document identifier and the newly added content summary. The summary mapping relationship can be stored in a dictionary, a mapping table or a database.
[0079] For example, the first two lines of text in the report content of the newly added report document can be used as the content summary of the newly added report document, and the newly added document identifier is used as the key and the newly added content summary is used as the value. They are stored in a summary mapping relationship set such as a dictionary or a mapping table in the form of key-value pairs. The summary mapping relationship set may include a key-value pair consisting of the document identifier of any report document and the content summary of the report document. In this way, when determining the candidate summary content, the key-value pair whose key is the candidate identifier is searched in the summary mapping relationship set, and the content summary corresponding to the value in the key-value pair is used as the candidate content summary.
[0080] In some embodiments, when generating a new report document, key fields can be extracted from the new report document, a new content summary can be generated from the key fields, and a summary mapping relationship between the new document identifier and the new content summary can be established. In this way, when the report document is generated, the corresponding new content summary can be immediately generated and a corresponding mapping relationship can be established. That is, the summary mapping relationship is established before the user initiates a report query request, so as to further improve the efficiency of determining the candidate content summaries.
[0081] 140. Send the candidate content summary to the terminal so that the candidate content summary is displayed on the terminal.
[0082] For example, the document server returns the candidate content summary to the terminal, and after receiving the candidate content summary, the terminal can display the candidate content summary in the application interface of the reporting application. Figure 1e The summary display page shown displays the summary contents of the candidate report documents, namely, Weekly Reports 1 to 3.
[0083] 150. When a report viewing request for any candidate content summary is received from a terminal, a target report document corresponding to the target identifier is searched according to the target identifier carried in the report viewing request, where the target identifier is a document identifier corresponding to any candidate content summary.
[0084] The report viewing request refers to a request for viewing a report document corresponding to a specific content summary, and the specific content summary is any of the candidate content summaries.
[0085] For example, when a user performs a report viewing operation in a terminal's reporting application, if the user clicks on any candidate content summary displayed by the terminal, that is, the user selects the specific content summary, the terminal generates a report viewing request corresponding to the specific content summary and sends it to the document server, and the report viewing request carries the document identifier (i.e., the target identifier) of the report document corresponding to the specific content summary. After receiving the report viewing request, the document server parses the report viewing request, obtains the target identifier therein, and searches for the report document whose document identifier is the target identifier (i.e., the target report document) in the report documents stored therein. In an embodiment of the present application, by storing both the report document and the content summary in the document server, and using the document server to search for the candidate content summary and the target report document, the burden on the report server can be reduced, and it is also convenient to manage and share relevant report data, thereby reducing the risk of data leakage.
[0086] 160. Send the target report document to the terminal so that the target report document can be displayed on the terminal.
[0087] For example, the document server returns the target report document to the terminal, and after receiving the target report document, the terminal can display the target report document in the application interface of the reporting application. Figure 1f The report display page shown displays the target report document reported by user A to user B. The target report document includes elements such as the reporter, the reporting object, the reporting time, the work summary, the work plan and the attachments.
[0088] In some implementations, the report server can determine the document identifier of the report document to be exported, and then the document server can export the corresponding report document to reduce the burden on the report server, and also facilitate the management and sharing of relevant report data, thereby reducing the risk of data leakage. In addition, the document server exports the report document in a specified document format, which is convenient for viewing and editing, thereby improving the utilization rate of the report document. Specifically, the report document viewing method also includes:
[0089] When receiving a report export request from a terminal, obtaining report export conditions from the report export request, and sending the report export conditions to a report server;
[0090] receiving at least one export identifier returned by the reporting server, where the export identifier is a document identifier of a reporting document that meets the report export condition;
[0091] According to the export identifier, determine the report document to be exported, the report document to be exported is the report document corresponding to the export identifier;
[0092] Convert the report document to be exported into the specified document format and send the converted document to the terminal.
[0093] Among them, the report export request refers to a request for exporting a specific report document, and the specific report document is a report document that meets the report export conditions. In an embodiment of the present application, the report export request can carry a report export condition, and the report export condition refers to the condition specified by the user when performing a report export operation for filtering the report documents to be exported. For example, the report export condition may include but is not limited to a report identifier of the report document such as a document identifier, keywords, a date range such as including a report start time and end time, a report type such as a technical report or a market report, a reporter, a report status such as completed or unfinished, a label or classification, and other custom conditions.
[0094] The specified document format refers to a document format preset according to an application scenario or requirement. For example, the specified document format may be a format that can be read by third-party software, such as a spreadsheet, a presentation, or a file organized in other forms.
[0095] For example, when a user performs a report export operation in a terminal report application, if the user chooses to export a report document with a date range of January 1, 2023 to June 30, 2023, the URL (Uniform Resource Locator) address of the report export request can be pre-defined, and the query_params dictionary can be used to set the report export condition as query_params = {"start_date":"2023-01-01","end_date":"2023-06-30","export":True}, where "export":True is used to inform the document server that the export is required. After receiving the URL address of the report export request, the document server can parse the query parameter corresponding to the report export condition and pass the URL with the query parameter to the report server, thereby sending the report export condition to the report server. After parsing the URL with the query parameter sent by the document server, the report server obtains the query parameter as the report export condition, searches and filters according to the query parameter, and returns the document identifier (i.e., export identifier) of the report document that meets the report export condition. When there are multiple report documents that meet the report export condition, the document identifiers of the multiple report documents may be returned to the document server as export identifiers.
[0096] In some embodiments, when there are multiple files to be exported, the multiple documents to be exported can be converted one by one into corresponding converted documents, that is, n documents to be exported are converted into n converted documents, or multiple documents to be exported can be merged and then converted into one converted document. For example, the data frame df1 = pd.read_excel ("doc1.csv") of the document to be exported 1 in plain text form and the data frame df2 = pd.read_csv ("doc2.csv") of the file to be exported 2 can be merged into one data frame using the pd.concat() function, and then the merged data frame can be exported as an Excel file using the to_excel() function.
[0097] In some embodiments, the document server may obtain a document mapping relationship set to determine the report document to be exported based on the document mapping relationship in the document mapping relationship set. The document mapping relationship set may be in the form of a dictionary, a mapping table, or a database, such as a document mapping relationship set including a key-value pair (i.e., a document mapping relationship) consisting of any report document and a document identifier of the report document, wherein the document identifier is the key and the report document is the value. In this way, a key-value pair whose key is the export identifier may be searched in the document mapping relationship set, and the report document corresponding to the value in the key-value pair found is used as the document to be exported, and it is converted into a file in Excel format for export.
[0098] In some implementations, the comment data is stored by the document server to reduce the burden on the reporting server, and to facilitate the management and sharing of relevant reporting data, thereby reducing the risk of data leakage. In addition, the document server constructs a comment mapping relationship set to store the mapping relationship between the document identifier and the corresponding comment data, thereby improving the accuracy and efficiency of determining the target comment data. Specifically, the report document viewing method also includes:
[0099] When receiving comment data on any report document, obtaining a document identifier of any report document;
[0100] Establish a comment mapping relationship between the document identifier of any report document and the comment data of any report document;
[0101] The comment mapping relationship is stored in a comment mapping relationship set, and the comment mapping relationship set is used to determine the target comment data corresponding to the target report document, so as to display the target comment data on the terminal.
[0102] The comment data refers to the comments or feedback of the reporter of the report document and / or other persons on the report document. The comment mapping relationship refers to the mapping relationship between the document identifier of the report document and the comment data of the report document. The comment mapping relationship set is a set for storing comment mapping relationships, such as the comment mapping relationship set can be in the form of a dictionary, a mapping table or a database.
[0103] For example, when any user such as user C views the target report document, the following may be displayed: Figure 1f On the report display page shown, the user can enter comment data for the target report document in the comment input box displayed at the bottom of the page, and search for the document identifier corresponding to the target report document from the document mapping relationship, use the found document identifier as the key and the comment data as the value, construct a key-value pair representing its comment mapping relationship, and store the key-value pair in the comment mapping relationship set.
[0104] In some implementations, the document server searches for comment data corresponding to the report document based on the comment mapping relationship, which can improve the accuracy and efficiency of determining the target comment data on the one hand, and on the other hand, can reduce the burden on the report server, facilitate the management and sharing of relevant report data, and reduce the risk of data leakage. Specifically, the report document viewing method also includes:
[0105] When a report viewing request for any candidate content summary is received from a terminal, a comment mapping relationship set is obtained, the comment mapping relationship set including a document identifier of any report document and a comment mapping relationship of comment data of any report document;
[0106] Matching the target identifier with the document identifier in the comment mapping relationship set to determine the target comment mapping relationship corresponding to the target identifier;
[0107] Determine the comment data in the target comment mapping relationship as the target comment data;
[0108] The target comment data is sent to the terminal so that the target comment data is displayed on the terminal.
[0109] For example, the comment mapping relationship set includes a key-value pair consisting of the comment data of any report document and the document identifier of any report document, wherein the document identifier is the key and the comment data is the value. In this way, the key-value pair whose key is the target identifier can be searched in the comment mapping relationship set, and the comment data corresponding to the value in the key-value pair found is used as the target comment data, and the target comment data is sent to the terminal so that the target comment data can be displayed when the target report document is displayed. Figure 1g In the report display page shown, when displaying the target report document, the comments of user C, user D and user E on the target report document are displayed at the bottom of the page.
[0110] In some implementations, when exporting a report document, the comment data of the report document may be exported together. For example, the report document to be exported and the comment data of the report document may be merged and converted into a converted document.
[0111] In some embodiments, in order to facilitate the export of report documents and comment data, the comment data can be stored in the corresponding report document, so that when the report document is exported, the comment data of the report document is also exported. For example, the report document can be represented as {"report":{}}, where the "report" object includes the report content of the report document. When the user adds comments to the report document, the report document can be represented as {"report":{},"comments":{}}, where the "comments" object includes the comment data of the report document. Therefore, when the report document is to be exported, {"report":{},"comments":{}} can be used as the document to be exported.
[0112] The report document viewing solution provided by the embodiment of the present application can be applied in various report application scenarios. For example, taking the weekly report as an example, the report query conditions are obtained from the report query request sent from the terminal, and the report query conditions are sent to the report server; at least one candidate identifier returned by the report server is received, and the candidate identifier is the document identifier of the report document that meets the report query conditions; according to the candidate identifier, the candidate content summary is determined, and the candidate content summary is the content summary of the report document corresponding to the candidate identifier; the candidate content summary is sent to the terminal so that the candidate content summary is displayed at the terminal; when a report viewing request for any candidate content summary is received from the terminal, the target report document corresponding to the target identifier is queried according to the target identifier carried by the report viewing request, and the target identifier is the document identifier corresponding to any candidate content summary; the target report document is sent to the terminal so that the target report document is displayed at the terminal.
[0113] As can be seen from the above, the embodiment of the present application can screen one or more corresponding candidate content summaries according to the report query conditions corresponding to the terminal and return them to the terminal for display, so as to provide users with a quick preliminary browse. In this process, the user does not need to wait for all report documents to be transmitted and loaded, that is, the key information of the report document can be obtained through the candidate content summary, so as to reduce the amount of data transmission and the amount of data loading of the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents. According to the user's report viewing operation on the candidate summary content displayed by the terminal, the user can choose to view a certain report document without browsing all report documents, so as to further improve the efficiency of users viewing report documents. In addition, the embodiment of the present application uses the report server to process the report query conditions to determine the candidate identifier, and stores the report document and the content summary in the document server, so as to use the document server to search for the candidate content summary and the target report document, so as to realize the separation of the report query condition processing task, the candidate content summary and the target report document search task, which can reduce the burden of the report server on the one hand, and facilitate the management and sharing of the relevant report data, reduce the risk of data leakage, and on the other hand, improve the maintainability and scalability of the system.
[0114] In this embodiment, a report document viewing method is provided, and the report document viewing method is applied to a document server, such as Figure 2a As shown, the specific process of the report document viewing method can be as follows:
[0115] 210. Receive the report query condition sent by the document server, where the report query condition is obtained by the document server from the report query request sent by the terminal.
[0116] For example, the reporting server may receive a URL with query parameters sent by the document server, and obtain the query parameters as the reporting query conditions.
[0117] 220. Determine the document identifier of the report document that meets the report query condition as a candidate identifier.
[0118] For example, the reporting server can search and filter according to the reporting query conditions to find the document identifiers (i.e., candidate identifiers) of the reporting documents that meet the reporting query conditions. In this way, the reporting server performs the task of determining the candidate identifiers to provide a high response speed and high availability, and speed up the efficiency of screening the candidate identifiers.
[0119] In some implementations, the reporting server establishes a mapping relationship between the document identifier of the reporting document and the corresponding query keyword to improve the accuracy and efficiency of determining the candidate identifier. Specifically, the document identifier of the reporting document that meets the reporting query condition is determined as the candidate identifier, including:
[0120] Obtaining a query mapping relationship set, the query mapping relationship set including a document identifier of any report document and a query mapping relationship between a query keyword corresponding to any report document;
[0121] Determine the query mapping relationship corresponding to the query keyword that meets the report query condition in the query mapping relationship set as the target query mapping relationship;
[0122] The document identifier in the target query mapping relationship is determined as a candidate identifier.
[0123] The query mapping relationship refers to the mapping relationship between the document identifier of the report document and the query keyword corresponding to the report document. The query mapping relationship set is a set storing query mapping relationships, such as the query mapping relationship set can be in the form of a dictionary, a mapping table or a database.
[0124] The query keyword is a keyword corresponding to the report query condition. For example, the query keyword may include but is not limited to a report identifier of a report document such as a document identifier, a keyword, a date range such as a report start time and end time, a report type such as a technical report or a market report, a reporter, a report status such as completed or uncompleted, a label or category, and other custom keywords.
[0125] For example, you can set multiple search keywords for a report document, such as Figure 1f The report document corresponding to the report display page shown may include query keywords "reporter A", "report object B", "report time X month X day" and keywords in the work summary and / or work plan such as project name, project progress, etc. Each query keyword of the report document may be used as a key, and the document identifier of the report document may be used as a value, and they may be stored in a query mapping relationship set such as a dictionary or a mapping table in the form of a key-value pair. The query mapping relationship set may include a key-value pair consisting of a document identifier of any report document and any query keyword of the report document.
[0126] Specifically, users can Figure 1c In the report query page shown, the time range or the filler (i.e., the reporter) is set. For example, if the user sets the time range to X / X / -Y / Y / Y or sets the filler to A, the set time range or filler (i.e., the reporter) is the report query condition corresponding to the query keyword. Taking the time range set by the user as Y / Y / -Z / Z as an example, the key-value pair of "report time X / X / " in the time range Y / Y / -Z / Z / Z contained in the query mapping relationship set can be used as the target key-value pair, and the value contained in the target key-value pair, i.e., the corresponding document identifier, is used as the candidate identifier.
[0127] In some embodiments, query mapping relationships corresponding to different types of query keywords can be stored in different locations, so that according to the query keyword type corresponding to the report query condition, the query mapping relationship can be obtained from the location corresponding to the query keyword type, and the target query mapping relationship can be determined from the obtained query mapping relationship, so as to reduce the amount of data processing in the query process and improve the query efficiency. For example, a corresponding key-value pair table can be created for different types of query keywords to store the key-value pairs of the corresponding types of query keywords in the key-value pair table. For example, for three different query keywords "reporter A", "reporting object B" and "reporting time X month X day", a reporter key-value pair table, a reporting object key-value pair table and a reporting time key-value pair table can be created, wherein the key of the key-value pair stored in the reporter key-value pair table is the reporter such as "reporter A", the key of the key-value pair stored in the reporting object key-value pair table is the reporting object such as "reporting object B", and the key of the key-value pair stored in the reporting time key-value pair table is the reporting time such as "reporting time X month X day". In this way, if the report query condition is "the person filling in the form is A", the key-value pair with the key "reporter A" can be searched in the corresponding reporter key-value pair table, and the value of the found key-value pair, that is, the corresponding document identifier, can be used as the candidate identifier. In this process, there is no need to search for key-value pairs in the reporting object key-value pair table and the reporting time key-value pair table, thereby reducing the amount of data processing in the query process and improving query efficiency.
[0128] 230. Send the candidate identifier to the document server so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and queries the target report document corresponding to the target identifier based on the target identifier carried in the report viewing request for any candidate content summary sent by the terminal, so as to display the target report document on the terminal.
[0129] The target identifier is a document identifier corresponding to any candidate content summary. For example, the reporting server can return the found candidate identifier to the document server.
[0130] In some implementations, the report server may provide a template setting page for the report filling template to set the corresponding report filling template, so as to facilitate the customization of the report filling template and increase the adaptability of the report application to different scenarios and different needs. In addition, the report server provides page data support for the template setting page, and the report server generates and stores the set report filling template, so as to provide the response speed and high availability, and speed up the loading and response speed of the report filling template. Specifically, the report document viewing method also includes:
[0131] When receiving a template setting request from a terminal, sending setting page data corresponding to the template setting page to the terminal, so that the terminal displays the template setting page according to the setting page data;
[0132] When the template setting data for the template setting page sent by the terminal is received, a report filling template corresponding to the template setting data is generated, and the report filling template is used to generate a report document.
[0133] The template setting request refers to a request for accessing the template setting page, the template setting page refers to a page for setting the report filling template, and the setting page data is the page data of the template setting page. The report filling template refers to a standardized file format or form for filling in a report, and the report filling template provides a structured way to collect, organize and present the report content. In actual applications, the report filling template may include but is not limited to one or more of the following elements: title, date, reporter information, report target or subject, report content, progress, etc.
[0134] The template setting data refers to data generated by a setting operation performed on a template setting page. For example, the setting operation may include but is not limited to one or more operation behaviors such as input, selection, switching, dragging, and sliding.
[0135] In some embodiments, the template setting page may include fixed fields (i.e., fixed elements) and non-fixed fields (i.e., non-fixed elements). Fixed fields are fields corresponding to elements that are pre-defined in the template and cannot be changed. For example, fixed fields may include basic information of the report such as title, date, reporter information, etc. Non-fixed fields refer to fields corresponding to elements that can be customized by users and added or deleted according to specific needs. For example, non-fixed fields may include extended information of the report such as reporting goals or topics, reporting content, progress, etc.
[0136] For example, Figure 2b In the template setting page shown in the figure, "Template Name" and "Recipient" are fixed fields. Users can only enter or select specific content in the corresponding content of these fields. The "Daily Report Field" in the figure is a non-fixed field. Users can set the field name and the format of the corresponding content on their own. They can also add a "Daily Report Field" by clicking the "Add Field" control in the figure. Specifically, Figure 2b In the template setting page shown in the figure, you can click the + sign corresponding to the fixed field "Recipient" in the figure and select "First Parent" as the recipient. Figure 2c In the template setting page shown, the user can enter the field name of the non-fixed field "Daily Report Field" in the input box below the "Daily Report Field", such as "Report Progress", and click "Please Select" below "Daily Report Field" to display the ten field types that can be set, such as text, multi-line text, number, amount, date, time, attachment, single choice, multiple choice, and detail fields.
[0137] In some implementations, a template mapping relationship between a template identifier of a report filling template, such as a template name, and a user identifier of a person within a corresponding personnel filling range may be established to facilitate searching for a corresponding report filling template according to the user identifier.
[0138] In actual applications, the terminal running the reporting application can run on different types of terminals, such as non-mobile terminals such as desktop computers and laptops, and mobile terminals such as mobile phones and wearable devices, so that users can submit reports on different terminals. In order to adapt to different types of terminals, different page layouts can be set for different types of terminals. In some embodiments, the setting page data includes page data of the template setting page corresponding to the non-mobile terminal and the template setting page corresponding to the mobile terminal. Therefore, when the setting operation is performed on the non-mobile terminal, the template setting page corresponding to the non-mobile terminal and the template setting page corresponding to the mobile terminal can be displayed in the terminal at the same time, so that the user can understand the display effect of the currently set report filling template in different terminals, ensuring that the report filling template in different types of terminals has a good display effect. For example, when a user uses a desktop computer to set the report filling template, the desktop computer can display the following. Figure 2c The template setting page shown, the left side of the page is the template setting page corresponding to the non-mobile terminal, and the right side is the template setting page corresponding to the mobile terminal.
[0139] In some implementations, in order to increase the uniformity of report filling and ensure the accuracy of the filled content, it is possible to restrict only users with specified permissions to perform the setting operations corresponding to the template setting page. For example, it is possible to set only the administrator of the reporting application or users in the custom permission group to perform the setting operations corresponding to the template setting page, so that ordinary users without specified permissions can only query and view reports, fill in reports, comment on reports, and export reports.
[0140] In actual applications, users can be set to view reports, fill in reports, comment on reports, and export reports for all report documents in the report application. The scope of report documents on which users can perform these operations can also be limited according to application scenarios or actual needs. For example, administrators or users in custom permission groups can view reports, fill in reports, comment on reports, and export reports for all report documents. Ordinary users without specified permissions can only view reports, fill in reports, comment on reports, and export reports for the report documents they submit and / or receive.
[0141] In some implementations, a reporting rule of a report filling template may also be set, and the reporting rule refers to the corresponding rule of a report document filled in using the report filling template, and the report filling rule may include but is not limited to at least one of a filling personnel range, a filling time reminder, and a receiving time reminder, wherein the template filling range refers to the range of personnel who can use the report filling template, the filling time reminder is used to remind the time to fill in the report document using the report filling template, and the receiving time reminder is used to remind the time to receive the report document corresponding to the report filling template. In this way, the efficiency of information sharing in the reporting process is improved by setting the reporting rules of the report filling template.
[0142] In some implementations, the reporting server may provide a rule setting page for the report filling template to set corresponding reporting rules, so as to facilitate the customization of the reporting rules of the report filling template and increase the adaptability of the reporting application to different scenarios and different needs. In addition, the reporting server provides page data support for the rule setting page, and the reporting server generates, stores and executes the reporting rules, so as to provide the response speed and high availability of the implementation, and speed up the loading and response speed of the reporting rules. Specifically, the report document viewing method also includes:
[0143] When receiving a rule setting request for any report filling template from the terminal, sending rule page data corresponding to the rule setting request to the terminal, so that the terminal displays the rule setting page according to the rule page data;
[0144] When the rule setting data for the rule setting page sent by the terminal is received, a reporting rule corresponding to any report filling template is generated so that the reporting server manages any report filling template according to the reporting rule.
[0145] The rule setting request refers to a request for accessing a rule setting page, the rule setting page refers to a page for setting reporting rules for a report filling template, and the rule page data refers to page data of the rule setting page.
[0146] The rule setting data refers to data generated by a setting operation performed on the rule setting page. For example, the setting operation may include but is not limited to one or more operation behaviors such as input, selection, switching, dragging, and sliding.
[0147] For example, after setting up the report template, you can click Figure 2b Click the Next control on the Template Settings page shown to proceed to the Figure 2dIn the setting page of the reporting rules of any report filling template shown, you can set the filling personnel range to "XXX Project Group", or you can click "Modify" in the figure to change the set filling personnel range. Receiving reminders can include real-time reminders and summary reminders. You can select receiving reminders as summary reminders, that is, every morning at 9:00, all the report documents corresponding to the report filling template received on the previous day will be summarized and reminded. You can set the filling reminder to not remind, that is, do not remind the personnel within the filling personnel range to use the report filling template to fill in the report document. You can add people to the whitelist by clicking the "Add" control. People in the whitelist will not receive filling reminders to avoid disturbing people in the whitelist.
[0148] In some embodiments, after setting the reporting rules of any report filling template, the reporting server can manage the report filling template and the report document generated by the report filling template according to the reporting rules. For example, according to the summary reminder set by the reporting rules, all the report documents corresponding to the report filling template received on the previous day are summarized and reminded at 9:00 am every day, or only the personnel within the scope of the filling personnel are allowed to use the report filling template.
[0149] In some implementations, the report server may provide a corresponding report filling page based on the report filling request. Specifically, the report document viewing method further includes:
[0150] When receiving a report filling request sent by the terminal, determining a target report filling template corresponding to the report filling request;
[0151] The target report filling template is sent to the terminal so that the terminal displays the report filling page corresponding to the target report filling template.
[0152] For example, the user can click on the terminal A displayed as follows Figure 1c When the "Fill in" control in the main page of the reporting application shown in the figure is clicked, in response to the click operation, the reporting application generates a report filling request and sends it to the reporting server. The reporting server can respond to the report filling request, determine the corresponding target report filling template and return it to the terminal.
[0153] In some implementations, the target report filling template corresponding to the report filling request may be obtained from the report server according to the user identifier corresponding to the terminal carried in the report filling request.
[0154] In actual applications, a report server stores multiple report filling templates, and the personnel filling range of the report filling template can be set, that is, the personnel within the personnel filling range corresponding to the report filling template can use the report filling template to perform filling operations. Specifically, a template mapping relationship between the template identifier of the report filling template, such as the template name, and the user identifier of the personnel within the corresponding personnel filling range can be established on the report server, and stored in a template mapping relationship set such as a dictionary or a mapping table. For example, the user can click on the terminal A displayed such as Figure 1c In the "Fill" control in the main page of the reporting application shown in the figure, in response to the click operation, the reporting application generates a report filling request and sends it to the reporting server. The report filling request carries the user ID of the user. The reporting server obtains the user ID of the user using terminal A from the report filling request, and determines the report filling template corresponding to the obtained user ID according to the template mapping relationship stored in the template mapping relationship set, uses it as the target report filling template, and returns the data of the target report filling template to terminal A, and displays it on terminal A as shown in the figure. Figure 1d The report filling page is shown.
[0155] In some implementations, the target report filling template corresponding to the report filling request may be acquired from the report server according to the template identifier of the report filling request.
[0156] For example, the user can click on the terminal A displayed as follows Figure 1c In the "Fill" control in the main page of the reporting application shown, in response to the click operation, the reporting application generates a corresponding request and sends it to the reporting server. The reporting server can return multiple report filling templates stored in the form of a list to terminal A. The multiple report filling templates can be multiple report filling templates determined according to the user identifier corresponding to the terminal, or can be all report filling templates stored in the reporting server. Terminal A can display the template information of the multiple report filling templates, such as template name, creation time, etc., through the template display page. When the user selects any report filling template in the template display page by clicking, a report filling request is generated and sent to the reporting server. The report filling request carries the template identifier of the clicked report filling template, such as the template name. The reporting server can obtain the template name from the report filling request, and return the stored report filling template with the template name as the target report filling template to terminal A.
[0157] In some implementations, the report server provides page data support for the report filling page, and the document server determines the newly added document identifier, and the document server generates and stores the report document, thereby reducing the burden on the report server, realizing the separation of multiple tasks in the document filling and generation process, improving the maintainability and scalability of the system, and realizing the fast response speed and high availability of the back-end server. Specifically, when a report filling request sent by a terminal is received, after determining the target report filling template corresponding to the report filling request, it also includes:
[0158] Generate an identification acquisition request corresponding to the report filling request;
[0159] Sending an identification acquisition request to a document server;
[0160] Receive the newly added document identifier returned by the document server;
[0161] The newly added document identifier is sent to the terminal, and the newly added document identifier is used to generate a new report document with the filled-in data on the report filling-in page.
[0162] For example, after receiving a report filling request, the reporting server can generate an identification acquisition request and send it to the document server. The document server creates a new document identification to assign to the new report document to be generated, and then forwards the new document identification to the terminal.
[0163] The report document viewing solution provided by the embodiment of the present application can be applied in various report application scenarios. For example, taking the daily report as an example, the report query conditions sent by the document server are received, and the report query conditions are obtained by the document server from the report query request sent by the terminal; the document identifier of the report document that meets the report query conditions is determined as a candidate identifier; the candidate identifier is sent to the document server, so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and queries the target report document corresponding to the target identifier according to the target identifier carried by the report viewing request for any candidate content summary sent by the terminal, so as to display the target report document on the terminal, and the target identifier is the document identifier corresponding to any candidate content summary.
[0164] As can be seen from the above, in the process of users viewing report documents, the server only needs to transmit the content summary of the report document and the data of the target report document to the terminal in the embodiment of the present application, which reduces the amount of data transmission and the amount of data loading on the terminal, reduces the data transmission time and loading time, and improves the efficiency of users viewing report documents. In addition, the embodiment of the present application uses the report server to process the report query conditions to determine the candidate identifiers, and stores both the report document and the content summary in the document server, so as to use the document server to search for the candidate content summary and the target report document, thereby realizing the separation of the report query condition processing task, the candidate content summary and the target report document search task. On the one hand, it can reduce the burden on the report server, and also facilitate the management and sharing of relevant report data, reduce the risk of data leakage, and on the other hand, improve the maintainability and scalability of the system.
[0165] The method described in the above embodiment will be further described in detail below.
[0166] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the specific process of viewing the report document as an example.
[0167] like Figure 3a As shown, a method for viewing a report document further includes the following process:
[0168] 310. The terminal generates a report query request in response to the report query operation, and sends the report query request to the document server.
[0169] For example, the user displays the following on the terminal: Figure 3b Enter the report query conditions in the report query page shown, the report query conditions include the time range of XX / XX / XX to XX / XX / XX / XX and the submitter department is department A, so as to initiate a report query request to the document server, and the report query request carries the report query conditions. Figure 3c As shown in the timing diagram of viewing the report document, the terminal sends the generated report query request to the document server.
[0170] 320. The document server receives the report query request sent by the terminal, obtains the report query condition from the report query request, and sends the report query condition to the report server.
[0171] For example, Figure 3c As shown, the document server receives the report query request, parses the report query request to obtain the report query condition, and sends the query request including the report query condition to the report server. Thus, the document server initiates a query request based on the report query condition to the report server through the sent report query condition.
[0172] 330. The report server receives the report query condition sent by the document server, determines the document identifier of the report document that meets the report query condition as a candidate identifier, and sends the candidate identifier to the document server.
[0173] The candidate identifier is the document identifier of the report document that meets the report query condition. In the embodiment of the present application, the report document is in the form of a form. For example, Figure 3c As shown, after receiving the query request containing the report query condition from the document server, the report server searches for the form IDs (ie, candidate identifiers) that meet the report query condition, and sends the screened form IDs to the document server.
[0174] 340. The document server receives at least one candidate identifier returned by the reporting server, determines a candidate content summary according to the candidate identifier, and sends the candidate content summary to the terminal.
[0175] The candidate content summary is the content summary of the report document corresponding to the candidate identifier. Figure 3c As shown, the document server queries the candidate content summary corresponding to the form ID based on the form ID obtained by the query, and sends the candidate content summary to the terminal. When sending the candidate content summary, the form ID obtained by the query can be sent to the terminal together to obtain the form ID corresponding to the candidate content summary.
[0176] 350. The terminal receives the candidate content summary sent by the document server, and displays the candidate content summary on the terminal.
[0177] For example, after receiving the candidate content summary and the corresponding form ID, the terminal can display all received candidate content summaries on the summary display page of the report application. The summary display page can be a separate page or a page in the report query page, such as Figure 3b In the report query page shown, the content summaries of daily reports 1 to 3 can be displayed at the lower center of the report query page.
[0178] 360. In response to the report viewing operation on any candidate content summary, the terminal generates a report viewing request and sends it to the document server.
[0179] For example, Figure 3b As shown, the user can click the "View" control in the displayed content summary of Daily Report 1 to perform the report viewing operation, and initiate a report viewing request to the document server based on the form ID of the candidate summary content stored in the terminal. The report viewing request carries the form ID of Daily Report 1 (i.e., the target identifier). Figure 3c As shown, the terminal sends a report viewing request to the document server.
[0180] 370. When the document server receives a report viewing request for any candidate content summary from the terminal, it searches for a target report document corresponding to the target identifier according to the target identifier carried in the report viewing request, and sends the target report document to the terminal.
[0181] The target identifier is the document identifier corresponding to any candidate content summary. For example, the document server receives a report viewing request and queries the target report document corresponding to the form id carried in the report viewing request for the comment data of the target document. For example, the queried data can be expressed as {"report":{},"comments":{}}, where the "report" object includes the report content (i.e., the form) of the report document, and the "comments" object includes the comment data of the report document. Figure 3c As shown, the document server sends the report content and comment data of the queried target report document to the terminal.
[0182] 380. The terminal receives the target report document sent by the document server, and displays the target report document on the terminal.
[0183] For example, after receiving the report content and comment data of the target report document, the terminal may enter a report display page and display the report content and comment data on the report display page.
[0184] As can be seen from the above, the embodiment of the present application provides a screening query function for report documents, so that administrators and report receivers can obtain corresponding screened data. Specifically, one or more corresponding candidate content summaries can be screened and returned to the terminal for display according to the report query conditions corresponding to the terminal, so as to provide users with a quick preliminary browse. In this process, the user does not need to wait for all report documents to be transmitted and loaded, and can obtain the key information of the report document through the candidate content summary, so as to reduce the data transmission amount and the data loading amount of the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents. According to the user's report viewing operation on the candidate summary content displayed by the terminal, the user can choose to view a certain report document without browsing all report documents, so as to further improve the efficiency of users viewing report documents. In addition, the embodiment of the present application uses the report server to process the report query conditions to determine the candidate identifier, and stores the report document and the content summary in the document server, so as to use the document server to find the candidate content summary and the target report document, so as to realize the separation of the report query condition processing task, the candidate content summary and the target report document search task, which can reduce the burden of the report server on the one hand, and facilitate the management and sharing of the relevant report data, reduce the risk of data leakage, and on the other hand, improve the maintainability and scalability of the system.
[0185] The method described in the above embodiment will be further described in detail below.
[0186] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the specific process of setting up a report filling template as an example.
[0187] like Figure 4a As shown, a method for viewing a report document further includes the following process:
[0188] 410. In response to the operation of requesting to set a template, the terminal generates a template setting request and sends the target setting request to the reporting server.
[0189] In the embodiment of the present application, the reporting server may include a website (web) server and a backend server, wherein the website server refers to a server that carries website content and provides web page content to the client. The backend server refers to a server that processes core business logic and database operations. For example, Figure 4b The following is a sequence diagram of setting up a report filling template and filling in a report document. In the figure, the user end is the terminal corresponding to an ordinary user, and the administrator end is the terminal corresponding to an administrator. The administrator can enter the enterprise management web end of the reporting application through the administrator end, and the web end is provided with web content services by the website server. Figure 4b As shown, the administrator can perform a template setting operation such as "create a new report template" on the enterprise management web terminal, generate a template setting request, and send the template setting request to the website server.
[0190] In actual applications, for example, the administrator can request to set a template through the enterprise management web terminal [Admin Backend] > [Enterprise Application] > [Report] > [Add Template]. For another example, the administrator can also click on the terminal display such as Figure 3b The administrator can also click on the "Template Settings" control in the page shown in the terminal (i.e., the page of the enterprise management web terminal) to perform the operation of requesting to set the template. Figure 3b The "Rule Setting" control in the page shown is used to perform the operation of requesting to set the reporting rule, and generate a rule setting request to set the reporting rule of the report filling template.
[0191] In actual applications, some report filling templates can be built-in for the reporting application, and new report filling templates can also be added by the administrator.
[0192] 420. When the reporting server receives the template setting request sent by the terminal, the reporting server sends the setting page data corresponding to the template setting page to the terminal.
[0193] For example, Figure 4bAs shown, upon receiving the template setting request, the website server may return the setting page data corresponding to the template setting page to the administrator to provide web page support for setting the report filling template.
[0194] 430. The terminal receives the setting page data sent by the reporting server, and displays the template setting page according to the setting page data.
[0195] For example, Figure 4b As shown, the administrator receives the setting page data to display the template setting page on the enterprise management web side.
[0196] 440. The terminal generates template setting data in response to the template setting operation on the template setting page, and sends the template setting data to the reporting server.
[0197] For example, Figure 4b As shown, the administrator can perform template setting operations such as setting template-related parameters in the template setting page displayed on the enterprise management web terminal, and send the corresponding template setting data to the website server, which is then forwarded to the backend server by the website server.
[0198] 450. When the reporting server receives the template setting data for the template setting page sent by the terminal, it generates a report filling template corresponding to the template setting data.
[0199] For example, Figure 4b As shown, after receiving the template setting data sent by the website server, the backend server can store the report filling template corresponding to the template setting data, and the backend server returns all the report filling templates set by the administrator to the website server in the form of a list (i.e., a template list) for subsequent web-side calls. After receiving the template list, the website server returns a prompt of "setting successful" to the administrator, and the content of the prompt of setting success can be a display template list.
[0200] From the above, it can be seen that in the embodiment of the present application, the reporting server provides a template setting page for the report filling template to set the corresponding report filling template, so as to facilitate the customization of the report filling template and increase the adaptability of the reporting application to different scenarios and different needs. In addition, the reporting server provides page data support for the template setting page, and the reporting server generates and stores the set report filling template, so as to provide the response speed and high availability, and speed up the loading and response speed of the report filling template.
[0201] The method described in the above embodiment will be further described in detail below.
[0202] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the specific process of filling out a report document as an example.
[0203] like Figure 5 As shown, a method for viewing a report document further includes the following process:
[0204] 510. In response to the operation of requesting to fill in a report, the terminal generates a report filling request and sends the report filling request to the reporting server.
[0205] For example, a user may perform an operation on the user side to request a report to be filled out, so as to generate a report filling request, such as Figure 4b As shown, the client sends a report filling request to the backend server.
[0206] 520. When the reporting server receives the report filling request sent by the terminal, it determines the target report filling template corresponding to the report filling request, and sends the target report filling template to the terminal.
[0207] For example, Figure 4b As shown, the backend server receives the report filling request, searches for the target report filling template corresponding to the report filling request, and sends the target report filling template to the user end in the form of a report filling template list. After receiving the report filling template list, the user end can display the corresponding report filling template list in the user end reporting application. The user clicks on any target report filling template in the report filling template list to enter the report filling page of the target report filling template.
[0208] 530. The report server generates an identification acquisition request corresponding to the report filling request, and sends the identification acquisition request to the document server.
[0209] For example, Figure 4b As shown, when the user enters the report filling page of any target report filling template, the user terminal can generate a report filling pre-pull instruction and send it to the background server. The background server can generate an identification acquisition request according to the report filling pre-pull instruction and send it to the document server.
[0210] 540. When the document server receives the identifier acquisition request sent by the reporting server, it determines the newly added document identifier corresponding to the identifier acquisition request, and sends the newly added document identifier to the reporting server.
[0211] For example, Figure 4b As shown, the document server determines the corresponding newly added document identifier according to the identifier acquisition request and sends it to the background server.
[0212] 550. The reporting server sends the newly added document identifier to the terminal.
[0213] For example, Figure 4b As shown, the background server forwards the newly added document identifier to the user end.
[0214] 560. The terminal receives the newly added document identifier sent by the reporting server.
[0215] For example, Figure 4b As shown, the user terminal receives the newly added document identifier.
[0216] 570. In response to the report filling operation on the report filling page, the terminal generates filling data for the report filling page, and sends the filling data for the report filling page and the newly added document identifier to the document server.
[0217] For example, when a user fills in the report content (i.e., performs a report filling operation) on the report filling page displayed on the user end, the filling data in the form of a form can be generated, and the newly added document identifier is used as the form id of the form. Figure 4b As shown, after the user submits the filled-in data at the user end, the filled-in data in the form can be sent together with the form id (ie, the newly added document identifier) to the document server.
[0218] 580. The document server receives the filled-in data and the newly added document identifier of the report filling-in page sent by the terminal, and generates a newly added report document according to the filled-in data and the newly added document identifier.
[0219] For example, Figure 4b As shown, the document server can receive the form-filled data and the form ID sent by the terminal, and store them in the document mapping relationship set in the form of key-value pairs to obtain the newly added report document. The document server can return a prompt of "filling successfully" to the user end.
[0220] As can be seen from the above, in the embodiment of the present application, the user can pull the report template to be submitted and finally complete the submission of the report content, and the report receiver can view the report content submitted by the report sender. The report server provides page data support for the report filling page, and the document server determines the newly added document identifier, and the document server generates and stores the report document, thereby reducing the burden on the report server, realizing the separation of multiple tasks in the document filling and generation process, improving the maintainability and scalability of the system, and realizing the fast response speed and high availability of the back-end server.
[0221] The method described in the above embodiment will be further described in detail below.
[0222] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the specific process of commenting on a report document as an example.
[0223] like Figure 6a As shown, a method for viewing a report document further includes the following process:
[0224] 610. The terminal generates comment data in response to a comment operation on a report display page of any report document, and sends the comment data to a document server.
[0225] For example, when the terminal displays the report content of any document through the report display page, when the user can enter the comment data of the target report document in the comment input box displayed at the bottom of the page, that is, specify the comment operation of the report document, such as Figure 6b The timing diagram of the comment report document shown, the comment data generated by the terminal is sent to the document server. In the embodiment of the present application, the sender, receiver and viewer of the report document can all make relevant comments on the report, and the comments are attached below the displayed report content.
[0226] 620. When receiving the comment data on any report document, the document server obtains the document identifier of any report document.
[0227] 630. The document server establishes a comment mapping relationship between a document identifier of any report document and comment data of any report document.
[0228] 640. The document server stores the comment mapping relationship into a comment mapping relationship set, where the comment mapping relationship set is used to determine target comment data corresponding to the target report document.
[0229] For example, after obtaining the comment data sent by the terminal, the document server can find the document identifier corresponding to the target report document from the document mapping relationship, use the found document identifier as the key and the comment data as the value, construct a key-value pair representing its comment mapping relationship, and store the key-value pair in the comment mapping relationship collection. The document server returns a prompt of "Comment Success" to the user end.
[0230] 650. In response to a comment viewing operation on any report document, the terminal generates a comment data acquisition request and sends the comment data acquisition request to the document server.
[0231] For example, a user can perform a comment viewing operation on report document A in a report application of a terminal, and Figure 6b As shown, a corresponding comment data acquisition request is generated and sent to the document server, and the comment data acquisition request carries the document identifier of the report document A.
[0232] 660. When the document server receives the comment data acquisition request sent by the terminal, it determines the comment data corresponding to the comment data acquisition request, and sends the comment data corresponding to the comment data acquisition request to the terminal.
[0233] For example, Figure 6bAs shown, after receiving the comment data acquisition request sent by the terminal, the document server searches for the corresponding comment data in the comment mapping relationship set according to the document identifier of the report document A carried in the comment data acquisition request, and returns it to the terminal.
[0234] 670. The terminal receives the comment data sent by the document server and displays the received comment data.
[0235] For example, Figure 6b As shown, after receiving the comment data returned by the document server, the terminal may display the corresponding comment data below the report display page of the report document A, or may display the comment data on a separate page.
[0236] As can be seen from the above, in the embodiment of the present application, the document server stores the comment data to reduce the burden on the reporting server, and also facilitates the management and sharing of relevant reporting data, thereby reducing the risk of data leakage. In addition, the document server constructs a comment mapping relationship set to store the mapping relationship between the document identifier and the corresponding comment data, thereby improving the accuracy and efficiency of determining the target comment data.
[0237] The method described in the above embodiment will be further described in detail below.
[0238] In this embodiment, the method of the embodiment of the present application will be described in detail by taking the specific process of exporting a report document as an example.
[0239] like Figure 7a As shown, a method for viewing a report document further includes the following process:
[0240] 710. In response to an export operation on at least one report document, the terminal generates a report export request and sends the report export request to a document server.
[0241] For example, the user can click on the terminal display such as Figure 3b The "Export Records" control in the page shown in the figure is used to request the export operation of the daily reports 1 to 3 displayed on the page. Figure 7b As shown, the terminal initiates a report export request to the document server, and the report export request carries report export conditions such as time range, filler, etc. Figure 7b As shown in the timing diagram of exporting a report document, the terminal sends the generated report export request to the document server.
[0242] 720. When the document server receives the report export request sent by the terminal, it obtains the report export condition from the report export request and sends the report export condition to the report server.
[0243] For example, Figure 7bAs shown, the document server receives the report export request, parses the report export request to obtain the report export condition, and sends the query request containing the report export condition to the report server. Thus, the document server initiates a query request based on the report export condition to the report server through the sent report export condition.
[0244] 730. The report server receives the report export condition, determines the document identifier of the report document that meets the report export condition as the export identifier, and sends the export identifier to the document server.
[0245] For example, Figure 7b As shown, the report server receives a query request from the document server based on the report export condition, queries the form ID (ie, export identifier) that meets the report export condition, and sends the screened form ID to the document server.
[0246] 740. The document server receives at least one export identifier returned by the report server, and determines a report document to be exported according to the export identifier, where the report document to be exported is the report document corresponding to the export identifier.
[0247] For example, Figure 7b As shown, based on the form ID obtained by the query, the document server queries the form corresponding to the form ID and the comment data of the form (ie, the report document to be exported).
[0248] 750. The document server converts the report document to be exported into a specified document format and sends the converted document to the terminal.
[0249] For example, Figure 7b As shown, the document server assembles the form of the report document to be exported and the comment data of the form to generate an Excel document (ie, the converted document), and sends the generated Excel document as a return result to the terminal.
[0250] 760. The terminal receives the converted document sent by the document server, and in response to a download operation for the converted document, downloads the converted document and saves it locally.
[0251] For example, Figure 7b As shown, the terminal receives the Excel document sent by the document server and displays the download icon of the Excel document on the terminal. The user can click the download icon to download the Excel document and save it locally on the terminal to export the report document and its comment data. The user can also open the Excel document online on the terminal.
[0252] As can be seen from the above, the embodiment of the present application determines the document identifier of the report document to be exported through the report server, and then the document server exports the corresponding report document, so as to reduce the burden of the report server, and also facilitate the management and sharing of relevant report data, thereby reducing the risk of data leakage. In addition, the document server exports the report document in a specified document format, which can be easily viewed and edited, thereby improving the utilization rate of the report document.
[0253] In order to better implement the above method, the embodiment of the present application also provides a report document viewing device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0254] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the report document viewing device being specifically integrated in the server as an example.
[0255] For example, Figure 8 As shown, the report document viewing device can be applied to a document server, and the report document viewing device includes a condition acquisition unit 810, an identification receiving unit 820, a summary determination unit 830, a summary sending unit 840, a report query unit 850 and a report sending unit 860, as follows:
[0256] (I) Condition Acquisition Unit 810
[0257] It is used to obtain the report query conditions from the report query request sent from the terminal, and send the report query conditions to the report server.
[0258] In some embodiments, the report document viewing device also includes a page data sending unit, which can be specifically used for: when receiving an access request for a report query page from a terminal, sending query page data corresponding to the report query page to the terminal, so that the terminal displays the report query page according to the query page data, the report query page is used to execute a report query operation, and the report query operation is used to generate a report query request.
[0259] (II) Identification Receiving Unit 820
[0260] The method is used to receive at least one candidate identifier returned by the reporting server, where the candidate identifier is a document identifier of a reporting document that meets the reporting query condition.
[0261] (III) Summary determination unit 830
[0262] It is used to determine a candidate content summary according to the candidate identifier, where the candidate content summary is a content summary of the report document corresponding to the candidate identifier.
[0263] In some embodiments, the report document viewing device also includes a document identification determination unit, which can be specifically used to: when receiving an identification acquisition request sent by a reporting server, determine a newly added document identification corresponding to the identification acquisition request, the identification acquisition request is generated by the reporting server according to a report filling request sent by the terminal; send the newly added document identification to the reporting server, so that the reporting server sends the newly added document identification and the target report filling template corresponding to the report filling request to the terminal, so that the terminal displays the report filling page corresponding to the target report filling template.
[0264] In some embodiments, the report document viewing device also includes a report generation unit, which can be specifically used to: when receiving the filled-in data and the new document identifier of the report filling page sent by the terminal, generate a new report document according to the filled-in data and the new document identifier.
[0265] In some embodiments, the summary determination unit 830 can also be used to: extract key fields from the newly added report document; generate a new content summary based on the key fields; establish a summary mapping relationship between the new document identifier and the new content summary, and the summary mapping relationship is used to determine the candidate content summary.
[0266] (IV) Summary sending unit 840
[0267] Used to send the candidate content summary to the terminal so that the candidate content summary can be displayed on the terminal.
[0268] (V) Reporting and Query Unit 850
[0269] When receiving a report viewing request for any candidate content summary from a terminal, query the target report document corresponding to the target identifier according to the target identifier carried in the report viewing request, where the target identifier is the document identifier corresponding to any candidate content summary.
[0270] (VI) Report sending unit 860
[0271] Used to send the target report document to the terminal so that the target report document can be displayed on the terminal.
[0272] In some embodiments, the report document viewing device also includes a report export unit, which can be specifically used to: when a report export request is received from a terminal, obtain report export conditions from the report export request, and send the report export conditions to a report server; receive at least one export identifier returned by the report server, the export identifier being a document identifier of a report document that meets the report export conditions; determine the report document to be exported based on the export identifier, the report document to be exported being the report document corresponding to the export identifier; convert the report document to be exported into a specified document format, and send the converted document to the terminal.
[0273] In some embodiments, the report document viewing device also includes a comment unit, which can be specifically used to: when receiving a report viewing request for any candidate content summary from a terminal, obtain a comment mapping relationship set, the comment mapping relationship set including a document identifier of any report document and a comment mapping relationship of comment data of any report document; match the target identifier with the document identifier in the comment mapping relationship set to determine a target comment mapping relationship corresponding to the target identifier; determine the comment data in the target comment mapping relationship as target comment data; and send the target comment data to the terminal so that the target comment data is displayed on the terminal.
[0274] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0275] Therefore, the embodiment of the present application can filter one or more corresponding candidate content summaries according to the report query conditions corresponding to the terminal and return them to the terminal for display, so as to provide users with a quick preliminary browse. In this process, the user does not need to wait for all report documents to be transmitted and loaded, and can obtain key information of the report document through the candidate content summary, so as to reduce the amount of data transmission and the amount of data loading on the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents.
[0276] In order to better implement the above method, the embodiment of the present application also provides a report document viewing device, which can be integrated in an electronic device, and the electronic device can be a terminal, a server, etc. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0277] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the report document viewing device being specifically integrated in the server as an example.
[0278] For example, Fig. 9 As shown, the report document viewing device can be applied to a report server, and the report document viewing device includes a conditional receiving unit 910, an identification determination unit 920, and an identification sending unit 930, as follows:
[0279] (I) Conditional Access Unit 910
[0280] It is used to receive the report query condition sent by the document server, and the report query condition is obtained by the document server from the report query request sent by the terminal.
[0281] (II) Identification determination unit 920
[0282] The document identifier of the report document that meets the report query condition is determined as a candidate identifier.
[0283] In some embodiments, the identifier determination unit 920 can be specifically used to: obtain a query mapping relationship set, the query mapping relationship set including the document identifier of any report document and the query mapping relationship of the query keyword corresponding to any report document; determine the query mapping relationship corresponding to the query keyword that meets the report query condition in the query mapping relationship set as the target query mapping relationship; determine the document identifier in the target query mapping relationship as the candidate identifier.
[0284] (III) Identification sending unit 930
[0285] Used to send the candidate identifier to the document server so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and to query the target report document corresponding to the target identifier based on the target identifier carried in the report viewing request for any candidate content summary sent by the terminal, so as to display the target report document on the terminal, and the target identifier is the document identifier corresponding to any candidate content summary.
[0286] In some embodiments, the report document viewing device also includes a template setting unit, which can be specifically used to: when a template setting request is received from a terminal, send setting page data corresponding to the template setting page to the terminal, so that the terminal displays the template setting page according to the setting page data; when template setting data for the template setting page is received from the terminal, generate a report filling template corresponding to the template setting data, and the report filling template is used to generate a report document.
[0287] In some embodiments, the report document viewing device also includes a rule setting unit, which can be specifically used to: when a rule setting request for any report filling template is received from a terminal, the rule setting unit sends the rule page data corresponding to the rule setting request to the terminal, so that the terminal displays the rule setting page according to the rule page data; when the rule setting data for the rule setting page is received from the terminal, a report rule corresponding to any report filling template is generated, so that the reporting server manages any report filling template according to the reporting rule.
[0288] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0289] Therefore, the embodiment of the present application can filter one or more corresponding candidate content summaries according to the report query conditions corresponding to the terminal and return them to the terminal for display, so as to provide users with a quick preliminary browse. In this process, the user does not need to wait for all report documents to be transmitted and loaded, and can obtain key information of the report document through the candidate content summary, so as to reduce the amount of data transmission and the amount of data loading on the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents.
[0290] The embodiment of the present application also provides an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers, etc.
[0291] In some embodiments, the report document viewing device may also be integrated into multiple electronic devices. For example, the report document viewing device may be integrated into multiple servers, and the report document viewing method of the present application may be implemented by multiple servers.
[0292] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description, for example, Fig.10 As shown, it shows a schematic diagram of the structure of the server involved in the embodiment of the present application, specifically:
[0293] The server may include one or more processors 1001 of processing cores, one or more computer-readable storage media memories 1002, a power supply 1003, an input module 1004, and a communication module 1005. Those skilled in the art will appreciate that Fig.10The server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0294] The processor 1001 is the control center of the server, and uses various interfaces and lines to connect various parts of the entire server. It executes various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 1002, and calling data stored in the memory 1002. In some embodiments, the processor 1001 may include one or more processing cores; in some embodiments, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1001.
[0295] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
[0296] The server also includes a power supply 1003 for supplying power to various components. In some embodiments, the power supply 1003 can be logically connected to the processor 1001 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 1003 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0297] The server may further include an input module 1004, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0298] The server may also include a communication module 1005. In some embodiments, the communication module 1005 may include a wireless module. The server may perform short-range wireless transmission through the wireless module of the communication module 1005, thereby providing wireless broadband Internet access for users. For example, the communication module 1005 may be used to help users send and receive emails, browse web pages, and access streaming media.
[0299] Although not shown, the server may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 1001 in the server will load the executable files corresponding to the processes of one or more applications into the memory 1002 according to the following instructions, and the processor 1001 will run the application stored in the memory 1002, thereby realizing various functions, as follows:
[0300] Acquire report query conditions from a report query request sent from a terminal, and send the report query conditions to a report server; receive at least one candidate identifier returned by the report server, the candidate identifier being a document identifier of a report document that satisfies the report query conditions; determine a candidate content summary based on the candidate identifier, the candidate content summary being a content summary of the report document corresponding to the candidate identifier; send the candidate content summary to the terminal so that the candidate content summary can be displayed on the terminal; when a report viewing request for any candidate content summary is received from the terminal, query a target report document corresponding to the target identifier based on a target identifier carried in the report viewing request, the target identifier being a document identifier corresponding to any candidate content summary; send the target report document to the terminal so that the target report document can be displayed on the terminal.
[0301] And, receiving report query conditions sent by the document server, the report query conditions are obtained by the document server from the report query request sent by the terminal; determining the document identifier of the report document that meets the report query conditions as the candidate identifier; sending the candidate identifier to the document server, so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and querying the target report document corresponding to the target identifier according to the target identifier carried in the report viewing request for any candidate content summary sent by the terminal, so as to display the target report document on the terminal, the target identifier being the document identifier corresponding to any candidate content summary.
[0302] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0303] From the above, it can be seen that the embodiment of the present application can filter one or more corresponding candidate content summaries according to the report query conditions corresponding to the terminal and return them to the terminal for display, so as to provide users with a quick preliminary browse. In this process, the user does not need to wait for all report documents to be transmitted and loaded, and can obtain key information of the report document through the candidate content summary, so as to reduce the amount of data transmission and the amount of data loading on the terminal, reduce the data transmission time and loading time, and improve the efficiency of users viewing report documents.
[0304] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0305] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any of the report document viewing methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0306] Acquire report query conditions from a report query request sent from a terminal, and send the report query conditions to a report server; receive at least one candidate identifier returned by the report server, the candidate identifier being a document identifier of a report document that satisfies the report query conditions; determine a candidate content summary based on the candidate identifier, the candidate content summary being a content summary of the report document corresponding to the candidate identifier; send the candidate content summary to the terminal so that the candidate content summary can be displayed on the terminal; when a report viewing request for any candidate content summary is received from the terminal, query a target report document corresponding to the target identifier based on a target identifier carried in the report viewing request, the target identifier being a document identifier corresponding to any candidate content summary; send the target report document to the terminal so that the target report document can be displayed on the terminal.
[0307] And, receiving report query conditions sent by the document server, the report query conditions are obtained by the document server from the report query request sent by the terminal; determining the document identifier of the report document that meets the report query conditions as the candidate identifier; sending the candidate identifier to the document server, so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and querying the target report document corresponding to the target identifier according to the target identifier carried in the report viewing request for any candidate content summary sent by the terminal, so as to display the target report document on the terminal, the target identifier being the document identifier corresponding to any candidate content summary.
[0308] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0309] According to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program including a computer program / instruction, the computer program / instruction being stored in a computer-readable storage medium. A processor of an electronic device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the electronic device executes the method provided in various optional implementations provided in the above embodiments.
[0310] Since the instructions stored in the storage medium can execute the steps in any report document viewing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any report document viewing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0311] The above is a detailed introduction to a report document viewing method, device, equipment, storage medium and program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for viewing a report document, characterized in that: Applied to a document server, the method comprises: Acquire a report query condition from the report query request sent by the terminal, and send the report query condition to the report server; receiving at least one candidate identifier returned by the reporting server, wherein the candidate identifier is a document identifier of a reporting document that meets the reporting query condition; Determine a candidate content summary according to the candidate identifier, wherein the candidate content summary is a content summary of the report document corresponding to the candidate identifier; sending the candidate content summary to the terminal so as to display the candidate content summary on the terminal; When receiving a report viewing request for any of the candidate content summaries from the terminal, querying a target report document corresponding to the target identifier according to the target identifier carried in the report viewing request, wherein the target identifier is a document identifier corresponding to any of the candidate content summaries; The target report document is sent to the terminal so that the target report document is displayed on the terminal.
2. The report document viewing method according to claim 1, characterized in that: The method further comprises: obtaining a report query condition from the report query request sent from the terminal, and sending the report query condition to the report server before: When an access request for a report query page is received from the terminal, the query page data corresponding to the report query page is sent to the terminal so that the terminal displays the report query page according to the query page data. The report query page is used to perform a report query operation, and the report query operation is used to generate the report query request.
3. The report document viewing method according to claim 1, characterized in that: The method further comprises: When receiving an identification acquisition request sent by the reporting server, determining a newly added document identification corresponding to the identification acquisition request, wherein the identification acquisition request is generated by the reporting server according to the report filling request sent by the terminal; Sending the newly added document identifier to the reporting server so that the reporting server sends the newly added document identifier and the target report filling template corresponding to the report filling request to the terminal so that the terminal displays the report filling page corresponding to the target report filling template; When the filled-in data of the report filling-in page and the newly added document identifier are received from the terminal, a newly added report document is generated according to the filled-in data and the newly added document identifier.
4. The report document viewing method according to claim 3, characterized in that: Before determining the candidate content summary according to the candidate identifier, the method further includes: Extract key fields from the newly added report document; Generate a new content summary based on the key fields; A summary mapping relationship between the newly added document identifier and the newly added content summary is established, and the summary mapping relationship is used to determine the candidate content summary.
5. The report document viewing method according to claim 1, characterized in that: The method further comprises: When receiving a report export request sent by the terminal, obtaining a report export condition from the report export request, and sending the report export condition to the report server; receiving at least one export identifier returned by the report server, wherein the export identifier is a document identifier of the report document that meets the report export condition; Determine, according to the export identifier, a report document to be exported, wherein the report document to be exported is the report document corresponding to the export identifier; The report document to be exported is converted into a specified document format, and the converted document is sent to the terminal.
6. The report document viewing method according to claim 1, characterized in that: The method further comprises: When a report viewing request for any of the candidate content summaries is received from the terminal, a comment mapping relationship set is obtained, the comment mapping relationship set including a document identifier of any of the report documents and a comment mapping relationship of comment data of any of the report documents; Matching the target identifier with the document identifier in the comment mapping relationship set to determine a target comment mapping relationship corresponding to the target identifier; Determine the comment data in the target comment mapping relationship as the target comment data; The target comment data is sent to the terminal so as to display the target comment data on the terminal.
7. A method for viewing a report document, characterized in that: Applied to a reporting server, the method comprises: Receiving a report query condition sent by a document server, wherein the report query condition is obtained by the document server from a report query request sent by a terminal; Determine the document identifier of the report document that meets the report query condition as a candidate identifier; The candidate identifier is sent to the document server so that the document server determines the content summary of the report document corresponding to the candidate identifier as the candidate content summary, and queries the target report document corresponding to the target identifier based on the target identifier carried in the report viewing request for any of the candidate content summaries sent by the terminal, so as to display the target report document on the terminal, and the target identifier is the document identifier corresponding to any of the candidate content summaries.
8. The report document viewing method according to claim 7, characterized in that: The step of determining the document identifier of the report document that meets the report query condition as a candidate identifier includes: Acquire a query mapping relationship set, wherein the query mapping relationship set includes a document identifier of any of the report documents and a query mapping relationship between a query keyword corresponding to any of the report documents; Determine the query mapping relationship corresponding to the query keyword that meets the report query condition in the query mapping relationship set as the target query mapping relationship; The document identifier in the target query mapping relationship is determined as a candidate identifier.
9. The report document viewing method according to claim 7, characterized in that: The method further comprises: When receiving a template setting request sent by the terminal, sending setting page data corresponding to the template setting page to the terminal, so that the terminal displays the template setting page according to the setting page data; When the template setting data for the template setting page sent by the terminal is received, the report filling template corresponding to the template setting data is generated, and the report filling template is used to generate the report document.
10. The report document viewing method according to claim 9, characterized in that: The method further comprises: When receiving a rule setting request for any of the report filling templates from the terminal, sending rule page data corresponding to the rule setting request to the terminal, so that the terminal displays a rule setting page according to the rule page data; When the rule setting data for the rule setting page sent by the terminal is received, a reporting rule corresponding to any of the report filling templates is generated so that the reporting server manages any of the report filling templates according to the reporting rule.
11. A report document viewing device, characterized in that: Applied to a document server, the device comprises: A condition acquisition unit, used to acquire a report query condition from a report query request sent by a terminal, and send the report query condition to a report server; an identifier receiving unit, configured to receive at least one candidate identifier returned by the reporting server, wherein the candidate identifier is a document identifier of a reporting document that meets the reporting query condition; A summary determination unit, configured to determine a candidate content summary according to the candidate identifier, wherein the candidate content summary is a content summary of the report document corresponding to the candidate identifier; a summary sending unit, configured to send the candidate content summary to the terminal so as to display the candidate content summary on the terminal; A report query unit, configured to, when receiving a report viewing request for any of the candidate content summaries from the terminal, query a target report document corresponding to the target identifier according to a target identifier carried in the report viewing request, wherein the target identifier is a document identifier corresponding to any of the candidate content summaries; The report sending unit is used to send the target report document to the terminal so that the target report document can be displayed on the terminal.
12. A report document viewing device, characterized in that: Applied to a reporting server, the device comprises: A condition receiving unit, configured to receive a report query condition sent by a document server, wherein the report query condition is obtained by the document server from a report query request sent by a terminal; an identifier determining unit, configured to determine the document identifier of the report document satisfying the report query condition as a candidate identifier; An identification sending unit is used to send the candidate identification to the document server so that the document server determines the content summary of the report document corresponding to the candidate identification as the candidate content summary, and queries the target report document corresponding to the target identification according to the target identification carried in the report viewing request for any of the candidate content summaries sent by the terminal, so as to display the target report document on the terminal, wherein the target identification is the document identification corresponding to any of the candidate content summaries.
13. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps in the report document viewing method according to any one of claims 1 to 10.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the report document viewing method according to any one of claims 1 to 10.
15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps in the report document viewing method according to any one of claims 1 to 10 are implemented.