Report file generation method and device, computer device, and storage medium
By generating report chapters based on data themes and theme dimensions, this technology solves the problems of low efficiency and poor information quality in report generation in existing technologies, and achieves efficient generation and personalized report files.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INDUSTRIAL AND COMMERCIAL BANK OF CHINA
- Filing Date
- 2022-02-11
- Publication Date
- 2026-04-28
AI Technical Summary
Existing methods for generating report documents are inefficient and produce low-quality information, failing to meet users' personalized needs and their desire for rapid access to industry information.
By acquiring data themes and thematic dimensions based on the report's data requirements, generating report chapters and integrating them into a report file, and utilizing data processing algorithms and chart tools to improve generation efficiency and information quality.
It improves the efficiency of report generation, ensures information quality, meets users' personalized needs, and enables them to quickly obtain industry information.
Smart Images

Figure CN114462362B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer application technology, and in particular to a method, apparatus, computer equipment, storage medium, and computer program product for generating report documents. Background Technology
[0002] The pace of change in the information age is unprecedented, and the leaps in the existence and acquisition of information have placed numerous challenges on reports and conclusions. Under the major trend of informatization, electronic reports, relying on computers and networks, play an increasingly important role in life. Early reports involved reporters manually filling information and results into report templates, making it impossible to analyze and compare data, images, and videos. The information was often disorganized, difficult to organize into a coherent report document, extremely inefficient, prone to errors, and increasing human costs. Traditional industry reports were mainly edited by specialized report managers, requiring high technical skills from report writers, and were time-consuming and labor-intensive. Furthermore, the update speed was slow, often failing to meet users' needs for rapid access to industry information. Limited knowledge among report editors meant that the reports could not present the most accurate information for users' reference or use, leading to inconvenience for readers who often had to read the entire report to find the information they were interested in. Reports could not be directly edited according to user needs, failing to meet personalized user requirements.
[0003] When different industries need to showcase information such as product and service content, they usually use presentation reports to demonstrate the information contained in the reports. However, in the traditional technical approach, technical personnel are responsible for processing business data, and report managers then edit and create report files based on the business data. However, technical personnel often do not understand the data format and content required for the report, and report managers often do not understand professional business data. The report editing process consumes a lot of time and energy, and the edited report files cannot accurately contain the data information required by the industry, resulting in low efficiency in generating presentation reports and low information quality.
[0004] Therefore, the current method of generating report documents suffers from low efficiency and poor information quality. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating report documents that can improve generation efficiency while ensuring information quality, in order to address the aforementioned technical problems.
[0006] Firstly, this application provides a method for generating report documents. The method includes:
[0007] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0008] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0009] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0010] Integrate at least one report section to generate a report file.
[0011] In one embodiment, before obtaining at least one data topic according to the report data requirements, and before obtaining the second data corresponding to the data topic from the first data, the method further includes:
[0012] Determine the report data requirements corresponding to the report file to be generated, and process the business data according to the report data requirements to obtain the first data.
[0013] In one embodiment, processing business data according to reporting data requirements to obtain first data includes:
[0014] Obtain the corresponding business data and data processing algorithms based on the report's data requirements;
[0015] Build report components based on business data and data processing algorithms;
[0016] The business data in the report component is processed by the data processing algorithm in the report component to obtain the first data.
[0017] In one embodiment, determining the topic dimension corresponding to the data topic and obtaining the third data corresponding to the topic dimension from the second data includes:
[0018] Obtain at least two thematic dimensions corresponding to the data theme;
[0019] Obtain data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between at least two topic dimensions;
[0020] The data corresponding to each of the at least two topic dimensions and the associated information of the topic dimensions are used as the third data.
[0021] In one embodiment, a report section is obtained based on the topic dimension corresponding to the data topic and third data, including:
[0022] Get the display style corresponding to the third data;
[0023] Generate a report section based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data;
[0024] After integrating at least one report section to generate the report file, it also includes:
[0025] Receive query requests;
[0026] Retrieve a report section from the report file based on the query request;
[0027] Receive instructions to modify the display style of the third data in the report section;
[0028] Modify the display style of the third data in the report section according to the modification instructions.
[0029] In one embodiment, the method further includes:
[0030] Based on the report data requirements, obtain multiple data topics, configure the topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data.
[0031] Determine the topic dimension corresponding to each data topic, and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic;
[0032] A report section is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension;
[0033] Integrate at least one report section to generate a report file.
[0034] Secondly, this application also provides a report document generation apparatus. The apparatus includes:
[0035] The topic configuration module is used to obtain at least one data topic according to the report data requirements, and to obtain the second data corresponding to the data topic from the first data;
[0036] The dimension configuration module is used to determine the theme dimension corresponding to the data theme and obtain the third data corresponding to the theme dimension from the second data.
[0037] The chapter generation module is used to generate a report chapter based on the topic dimension corresponding to the data topic and the third data.
[0038] The report generation module is used to integrate at least one report section to generate a report file.
[0039] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:
[0040] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0041] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0042] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0043] Integrate at least one report section to generate a report file.
[0044] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:
[0045] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0046] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0047] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0048] Integrate at least one report section to generate a report file.
[0049] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0050] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0051] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0052] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0053] Integrate at least one report section to generate a report file.
[0054] The aforementioned report generation method, apparatus, computer equipment, storage medium, and computer program product acquire at least one data topic based on report data requirements, and acquire second data corresponding to the data topic from first data; determine the topic dimension corresponding to the data topic, and acquire third data corresponding to the topic dimension from the second data; acquire a report chapter based on the topic dimension and the third data; and integrate at least one report chapter to generate a report file. By establishing at least one data topic based on the data requirements of the report file to be generated, then acquiring topic data corresponding to each data topic from basic data, further dividing each data topic into dimensions to obtain at least one topic dimension, acquiring dimension data corresponding to the current topic dimension from the topic data for each topic dimension, generating a report chapter based on each data topic, the topic dimensions under each data topic, and the topic data corresponding to each topic dimension, and finally generating a report file based on multiple report chapters, the report file generation efficiency can be improved while ensuring the information quality of the report file. Attached Figure Description
[0055] Figure 1 This is a flowchart illustrating a report file generation method in one embodiment;
[0056] Figure 2 This is a flowchart illustrating the process of obtaining third data corresponding to a topic dimension in one embodiment.
[0057] Figure 3 This is a structural schematic diagram of the reporting component in one embodiment;
[0058] Figure 4 This is a structural block diagram of a report document generation device in one embodiment;
[0059] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0060] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0061] In one embodiment, such as Figure 1 As shown, a method for generating report files is provided. This embodiment illustrates the application of this method to a terminal. It can be understood that this method can also be applied to a server, and can also be applied to a system including a terminal and a server, and can be implemented through the interaction between the terminal and the server.
[0062] In this embodiment, the method includes the following steps:
[0063] Step 102: Obtain at least one data topic according to the report data requirements, and obtain the second data corresponding to the data topic from the first data.
[0064] Among them, the report data requirements refer to the data information that needs to be displayed in the report file to be generated. Typically, there are multiple report sections in the report file to be generated, and each report section displays different data information. Therefore, each report section corresponds to one report data requirement, and the report file to be generated corresponds to multiple report data requirements.
[0065] Specifically, determine the data information to be displayed in a report section of the report file to be generated. Select at least one data theme based on the data information to be displayed. The data theme can be user name, gender, age, length of service, retirement status, geographical location, workload, etc. Then, based on the selected data theme, select data related to the current data theme from the first data set as the second data set. The first data set can also be called the basic data set, which can include personnel information, business information, financial information, etc. The second data set can also be called the theme data set, which refers to the data set in the basic data set that corresponds to the current data theme. For example, the second data set could be data related to gender, retirement status, or workload from the first data set, etc.
[0066] Step 104: Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data.
[0067] The topic dimension is a dimension that further divides the second data corresponding to the current data topic under a data topic.
[0068] Specifically, based on the second data corresponding to a data theme, at least one theme dimension corresponding to the current data theme is determined. The data theme can be user name, male, female, age range, length of service range, retiree, geographical location, workload, workload range, etc. Typically, one data theme corresponds to two or three theme dimensions. Then, based on each theme dimension corresponding to the current data theme, data corresponding to each theme dimension is extracted from the second data as the third data. The third data can also be called chapter data. For example, if the data theme is age, then this data theme can correspond to the theme dimensions of age range (30 years and above) and workload range (meeting workload standards). Then, data related to age range (30 years and above, one theme dimension) and workload standards (another theme dimension) are selected from the second data corresponding to age (data theme) as the third data.
[0069] Step 106: Obtain a report chapter based on the topic dimension corresponding to the data topic and the third data.
[0070] Specifically, the thematic dimensions corresponding to the data theme and the third data are the data information that needs to be displayed in a report chapter. The display style of the third data can be configured. For example, if the data theme corresponds to two thematic dimensions, the third data can be displayed in the form of a table or a two-dimensional coordinate system chart. In the two-dimensional coordinate system chart, the X-axis represents one thematic dimension and the Y-axis represents the other thematic dimension.
[0071] Step 108: Integrate at least one report section to generate a report file.
[0072] Specifically, determine the number and order of report chapters required in the report file to be generated, and determine the report data requirements corresponding to each report chapter. Establish each report chapter through steps 102 to 106, and then integrate each report chapter according to the order of the report chapters to generate the report file.
[0073] In the above report generation method, at least one data topic is obtained according to the report data requirements, and second data corresponding to the data topic is obtained from the first data; the topic dimension corresponding to the data topic is determined, and third data corresponding to the topic dimension is obtained from the second data; a report chapter is obtained based on the topic dimension and the third data; and at least one report chapter is integrated to generate a report file. By establishing at least one data topic according to the data requirements of the report file to be generated, then obtaining topic data corresponding to each data topic from the basic data, further dividing each data topic into dimensions to obtain at least one topic dimension, obtaining the dimension data corresponding to the current topic dimension from the topic data for each topic dimension, generating a report chapter based on each data topic, the topic dimensions under each data topic, and the topic data corresponding to each topic dimension, and finally generating a report file based on multiple report chapters, the efficiency of report file generation can be improved while ensuring the information quality of the report file.
[0074] In one embodiment, before obtaining at least one data topic according to the report data requirements and obtaining the second data corresponding to the data topic from the first data, the method further includes: determining the report data requirements corresponding to the report file to be generated, and processing business data according to the report data requirements to obtain the first data.
[0075] Specifically, based on the report data requirements corresponding to the report file to be generated, business data can be obtained from the local database. Then, the business data is preprocessed according to the report data requirements to obtain the first set of data. Preprocessing of the business data includes, but is not limited to, removing irrelevant data, selecting a certain range of data, and performing an average calculation on the data. Removing irrelevant data is used to eliminate data from the business data that is unrelated to the content of the report file to be generated. Selecting a certain range of data is used to select a portion of the business data and the data from the report file to be generated according to the report data requirements. Performing an average calculation on the data is used to calculate the average of the same type of business data within a certain interval.
[0076] In one embodiment, processing business data according to report data requirements to obtain first data includes: acquiring corresponding business data and data processing algorithms according to report data requirements; establishing a report component based on the business data and data processing algorithms; and processing the business data in the report component using the data processing algorithms in the report component to obtain the first data.
[0077] Specifically, the report data requirements for a report section in the report file to be generated are determined, thus identifying the data information to be displayed in the current report section. Then, relevant business data is retrieved from the local database, and corresponding data processing algorithms are established. These algorithms include, but are not limited to, extracting data within a certain interval, calculating the average within a certain interval, and summing within a certain interval. Based on this business data and the data processing algorithms, a report component is constructed. This report component corresponds to the current report section. When the report component is run, the data processing algorithms within it process the business data to generate the first set of data. Subsequent processing based on this first set of data generates the third set of data corresponding to the current report section. Typically, one report component corresponds to one report section in the report file to be generated.
[0078] In one feasible embodiment, corresponding business data and data processing algorithms are obtained according to the report data requirements; a report component is established based on the business data and data processing algorithms; the business data in the report component is processed by the data processing algorithms in the report component to obtain first data; a report chapter is obtained based on the first data; and at least one report chapter is integrated to generate a report file.
[0079] In one embodiment, such as Figure 2 As shown, the topic dimension corresponding to the data topic is determined, and the third data corresponding to the topic dimension is obtained from the second data, including:
[0080] Step 202: Obtain at least two topic dimensions corresponding to the data topic.
[0081] Specifically, determine at least two corresponding thematic dimensions based on the current data theme. The specific thematic dimensions chosen can be determined according to the report's data requirements. For example, if the current report section needs to display information about employees aged 30 and above in Wuhan, the data theme could be age or geographical location. Under this data theme, select "age 30 and above" as the first thematic dimension and "Wuhan" as the second thematic dimension. In this case, the data theme corresponds to two thematic dimensions. As another example, if the current report section needs to display information about male and female employees aged 30 and above in Wuhan, the data theme could be age, geographical location, or gender. Under this data theme, select "age 30 and above" as the first thematic dimension, "Wuhan" as the second thematic dimension, and gender as the third thematic dimension. In this case, the data theme corresponds to three thematic dimensions.
[0082] Step 204: Obtain data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between the at least two topic dimensions.
[0083] Specifically, for each thematic dimension, all data related to the current thematic dimension are retrieved from the second dataset. Data overlap is possible between thematic dimensions. Then, the thematic dimension correlation information between each thematic dimension corresponding to a given data theme is determined. This correlation information is used to display the relationships between the data when generating report sections. For example, if a data theme corresponds to two thematic dimensions, the X-axis and Y-axis can be determined based on the thematic dimension correlation information between these two thematic dimensions, thus constructing a two-dimensional coordinate chart in the report sections.
[0084] Step 206: Take the data corresponding to each of the at least two topic dimensions and the topic dimension association information as the third data.
[0085] Specifically, for a data topic, the data corresponding to each topic dimension and the related information of the topic dimension are used as third data. In this way, when generating the content of a report chapter, data tables or data charts can be generated directly based on the third data.
[0086] In this embodiment, at least two topic dimensions corresponding to a data topic are obtained; data corresponding to each of the at least two topic dimensions is obtained from the second data, and topic dimension association information between the at least two topic dimensions is obtained; the data corresponding to each of the at least two topic dimensions and the topic dimension association information are used as the third data. This can intuitively show the relationship between data of different dimensions, making it easy to quickly find the intersection between data of different dimensions and improving the information quality of the report document.
[0087] In one feasible embodiment, determining the topic dimension corresponding to the data topic and obtaining the third data corresponding to the topic dimension from the second data includes: obtaining the first topic dimension and the second topic dimension corresponding to the data topic; obtaining the data corresponding to the first topic dimension and the data corresponding to the second topic dimension from the second data, and obtaining the topic dimension association information between the first topic dimension and the second topic dimension; and using the data corresponding to the first topic dimension, the data corresponding to the second topic dimension, and the topic association information as the third data.
[0088] In another feasible embodiment, determining the topic dimension corresponding to the data topic and obtaining the third data corresponding to the topic dimension from the second data includes: obtaining the first topic dimension, the second topic dimension, and the third topic dimension corresponding to the data topic; obtaining the data corresponding to the first topic dimension, the data corresponding to the second topic dimension, and the data corresponding to the third topic dimension from the second data, and obtaining the topic dimension association information between the first topic dimension, the second topic dimension, and the third topic dimension; and using the data corresponding to the first topic dimension, the data corresponding to the second topic dimension, the data corresponding to the third topic dimension, and the topic association information as the third data.
[0089] In one embodiment, obtaining a report chapter based on the theme dimension corresponding to the data theme and third data includes: obtaining the display style corresponding to the third data; generating a report chapter based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data. After integrating at least one report chapter to generate a report file, the method further includes: receiving a query request; querying a report chapter in the report file according to the query request; receiving a modification instruction for the display style of the third data in the report chapter; and modifying the display style corresponding to the third data in the report chapter according to the modification instruction.
[0090] Among them, the display style refers to a way of presenting third-party data. Display styles include, but are not limited to, tables, line charts, bar charts, scatter plots with color differentiation, 3D line charts, and 3D bar charts.
[0091] Specifically, after determining the third data, the display style of the third data in the report is configured according to the corresponding thematic dimensions. Different display styles are available for different numbers of thematic dimensions. For example, if the third data corresponds to two thematic dimensions, the display style can be a table, line chart, bar chart, etc. If the third data corresponds to three thematic dimensions, the display style can be a table, a scatter plot with color differentiation, a 3D line chart, a 3D bar chart, etc. Then, the charts corresponding to the display styles are generated based on the third data to obtain the display content of the current report section.
[0092] Furthermore, once the entire report file is generated, it is uploaded or sent to a designated database, terminal, or server. Authorized users can request access to the report file by issuing a query request. Authorized users can also issue modification commands to request changes to the display style of a specific report section within the report file. For example, if a report section displays third-party data in a table format, after an authorized user issues a modification command and the command is approved, the display style of that report section can be changed to a line chart, and the third-party data in that report section will then be displayed using a line chart format.
[0093] In one embodiment, the method further includes: obtaining multiple data topics according to the report data requirements and configuring topic association information between each data topic; obtaining second data corresponding to each data topic from the first data according to each data topic; determining the topic dimension corresponding to each data topic; obtaining third data corresponding to each topic dimension from the second data corresponding to each data topic; obtaining a report chapter according to the topic association information, the topic dimension corresponding to each data topic and the third data corresponding to each topic dimension; and integrating at least one report chapter to generate a report file.
[0094] Specifically, determine the data information to be displayed in a report section of the report file to be generated. Select multiple data topics as needed, such as user name, gender, age, length of service, retirement status, workload, etc. Configure the topic association information between each data topic. For example, if two data topics, "user" and "company," are selected for a report section, the topic association information between the "user" and "company" data topics can be determined based on their affiliation. Then, for each selected data topic, select data related to the current data topic from the first data set as the second data set. Based on the second data set corresponding to a data topic, determine at least one topic dimension corresponding to the current data topic. Combine the topic association information, the topic dimensions corresponding to each data topic, and the third data set as the data information to be displayed in a report section. The display style of the third data set can be configured. The topic association information does not necessarily have to be displayed in the icon of the third data set; it can be displayed through additional descriptions, jump links, etc. Determine the number and order of report sections required in the report file to be generated, and determine the report data requirements corresponding to each report section. Create each report section, and then integrate each report section according to the report section order to generate the report file.
[0095] In this embodiment, multiple data topics are obtained according to the report data requirements, and topic association information between each data topic is configured. Second data corresponding to each data topic is obtained from the first data. A topic dimension corresponding to each data topic is determined, and third data corresponding to each topic dimension is obtained from the second data corresponding to each data topic. A report chapter is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension. At least one report chapter is integrated to generate a report file. This allows for the simultaneous display of data related to multiple data topics within a single report chapter, and also demonstrates the relationships between each data topic, thus improving the information quality of the report file.
[0096] In one embodiment, a report file generation method includes: obtaining corresponding business data and data processing algorithms according to report data requirements; establishing a report component based on the business data and data processing algorithms; and processing the business data in the report component using the data processing algorithms in the report component to obtain first data.
[0097] Furthermore, based on the report data requirements, at least one data topic is obtained, and second data corresponding to the data topic is obtained from the first data; at least two topic dimensions corresponding to the data topic are obtained; data corresponding to each topic dimension in the at least two topic dimensions are obtained from the second data, and topic dimension association information between the at least two topic dimensions is obtained; the data corresponding to each topic dimension in the at least two topic dimensions and the topic dimension association information are used as third data.
[0098] Furthermore, obtain the display style corresponding to the third data; generate a report chapter based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data; integrate at least one report chapter to generate a report file.
[0099] After generating the report file, it can also receive query requests; query a report section in the report file according to the query request; receive instructions to modify the display style of the third data in the report section; and modify the display style of the third data in the report section according to the modification instructions.
[0100] In one embodiment, a report file generation method, taking its application to a report component as an example, such as... Figure 3 As shown, the report components are divided into three layers: the indicator layer, the theme layer, and the report presentation layer.
[0101] The indicator layer is used for unified management of indicators, storing indicator algorithms and detailed calculation results. It is the foundational data layer of the entire report component. Management indicators are equivalent to business data, indicator algorithms are equivalent to data processing algorithms, and detailed calculation results are equivalent to primary data.
[0102] The topic layer manages topic data and processes and aggregates basic indicator data. Data topics are typically divided according to business rules and the business objects involved in the scenario. Data topics can be further divided into elements such as users, securities, and investment portfolios based on business objects. In this sense, topic data is equivalent to secondary data.
[0103] The report presentation layer manages the data to be displayed in reports and controls the data display style. It is a collection of charting tools that allows for flexible data formatting, such as tables, JSON, and XML styles. The charting tools use the front-end echart.js framework and have a rich variety of chart styles, such as pie charts, line charts, and radar charts.
[0104] Considering the massive amount of data, big data technologies can be used to store data at the indicator and topic layers, primarily based on Hadoop storage. Data computation and processing are performed using technologies such as Spark and Hive. The report presentation layer uses Spark to extract the data to be displayed in the report from the topic data, stores the data in a database, and uses BI charting tools to meet the chart style requirements of the report.
[0105] The report file consists of multiple report chapters, each containing charts and data. One report component corresponds to one report chapter, and users can flexibly select multiple components to combine and generate a report file.
[0106] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0107] Based on the same inventive concept, this application also provides a report document generation apparatus for implementing the report document generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more report document generation apparatus embodiments provided below can be found in the limitations of the report document generation method described above, and will not be repeated here.
[0108] In one embodiment, such as Figure 4As shown, a report document generation device 400 is provided, including: a topic configuration module 401, a dimension configuration module 402, a chapter generation module 403, and a report generation module 404, wherein:
[0109] The topic configuration module 401 is used to obtain at least one data topic according to the report data requirements, and to obtain second data corresponding to the data topic from the first data.
[0110] The dimension configuration module 402 is used to determine the theme dimension corresponding to the data theme and obtain the third data corresponding to the theme dimension from the second data.
[0111] The chapter generation module 403 is used to generate a report chapter based on the topic dimension corresponding to the data topic and the third data.
[0112] The report generation module 404 is used to integrate at least one report section to generate a report file.
[0113] In one embodiment, the apparatus further includes:
[0114] The data acquisition module is used to determine the report data requirements corresponding to the report file to be generated, and to process the business data according to the report data requirements to obtain the first data.
[0115] In one embodiment, the data acquisition module is further configured to acquire corresponding business data and data processing algorithms according to the report data requirements; establish a report component based on the business data and data processing algorithms; and process the business data in the report component through the data processing algorithms in the report component to obtain the first data.
[0116] In one embodiment, the dimension configuration module 402 is further configured to obtain at least two topic dimensions corresponding to the data topic; obtain data corresponding to each topic dimension in the at least two topic dimensions from the second data, and obtain topic dimension association information between the at least two topic dimensions; and use the data corresponding to each topic dimension in the at least two topic dimensions and the topic dimension association information as the third data.
[0117] In one embodiment, the chapter generation module 403 is also used to obtain the display style corresponding to the third data;
[0118] Generate a report section based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data; receive a query request; query a report section in the report file according to the query request; receive instructions to modify the display style of the third data in the report section; modify the display style of the third data in the report section according to the modification instructions.
[0119] In one embodiment, the topic configuration module 401 is further configured to obtain multiple data topics according to the report data requirements, configure topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data according to each data topic;
[0120] The dimension configuration module 402 is also used to determine the topic dimension corresponding to each data topic and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic.
[0121] The chapter generation module 403 is also used to obtain a report chapter based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension;
[0122] The report generation module 404 is also used to integrate at least one report section to generate a report file.
[0123] Each module in the aforementioned report generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0124] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a report file generation method. The display unit of the computer device is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0125] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0126] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0127] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0128] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0129] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0130] Integrate at least one report section to generate a report file.
[0131] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0132] Determine the report data requirements corresponding to the report file to be generated, and process the business data according to the report data requirements to obtain the first data.
[0133] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0134] Obtain the corresponding business data and data processing algorithms based on the report's data requirements;
[0135] Build report components based on business data and data processing algorithms;
[0136] The business data in the report component is processed by the data processing algorithm in the report component to obtain the first data.
[0137] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0138] Obtain at least two thematic dimensions corresponding to the data theme;
[0139] Obtain data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between at least two topic dimensions;
[0140] The data corresponding to each of the at least two topic dimensions and the associated information of the topic dimensions are used as the third data.
[0141] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0142] Get the display style corresponding to the third data;
[0143] Generate a report section based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data;
[0144] After integrating at least one report section to generate the report file, it also includes:
[0145] Receive query requests;
[0146] Retrieve a report section from the report file based on the query request;
[0147] Receive instructions to modify the display style of the third data in the report section;
[0148] Modify the display style of the third data in the report section according to the modification instructions.
[0149] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0150] Based on the report data requirements, obtain multiple data topics, configure the topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data.
[0151] Determine the topic dimension corresponding to each data topic, and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic;
[0152] A report section is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension;
[0153] Integrate at least one report section to generate a report file.
[0154] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0155] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0156] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0157] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0158] Integrate at least one report section to generate a report file.
[0159] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0160] Determine the report data requirements corresponding to the report file to be generated, and process the business data according to the report data requirements to obtain the first data.
[0161] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0162] Obtain the corresponding business data and data processing algorithms based on the report's data requirements;
[0163] Build report components based on business data and data processing algorithms;
[0164] The business data in the report component is processed by the data processing algorithm in the report component to obtain the first data.
[0165] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0166] Obtain at least two thematic dimensions corresponding to the data theme;
[0167] Obtain data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between at least two topic dimensions;
[0168] The data corresponding to each of the at least two topic dimensions and the associated information of the topic dimensions are used as the third data.
[0169] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0170] Get the display style corresponding to the third data;
[0171] Generate a report section based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data;
[0172] After integrating at least one report section to generate the report file, it also includes:
[0173] Receive query requests;
[0174] Retrieve a report section from the report file based on the query request;
[0175] Receive instructions to modify the display style of the third data in the report section;
[0176] Modify the display style of the third data in the report section according to the modification instructions.
[0177] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0178] Based on the report data requirements, obtain multiple data topics, configure the topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data.
[0179] Determine the topic dimension corresponding to each data topic, and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic;
[0180] A report section is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension;
[0181] Integrate at least one report section to generate a report file.
[0182] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0183] Based on the report's data requirements, obtain at least one data topic, and extract second data corresponding to the data topic from the first data;
[0184] Determine the theme dimension corresponding to the data theme, and obtain the third data corresponding to the theme dimension from the second data;
[0185] A report section is obtained based on the topic dimension corresponding to the data topic and the third data.
[0186] Integrate at least one report section to generate a report file.
[0187] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0188] Determine the report data requirements corresponding to the report file to be generated, and process the business data according to the report data requirements to obtain the first data.
[0189] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0190] Obtain the corresponding business data and data processing algorithms based on the report's data requirements;
[0191] Build report components based on business data and data processing algorithms;
[0192] The business data in the report component is processed by the data processing algorithm in the report component to obtain the first data.
[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0194] Obtain at least two thematic dimensions corresponding to the data theme;
[0195] Obtain data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between at least two topic dimensions;
[0196] The data corresponding to each of the at least two topic dimensions and the associated information of the topic dimensions are used as the third data.
[0197] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0198] Get the display style corresponding to the third data;
[0199] Generate a report section based on the theme dimension corresponding to the data theme, the third data, and the display style of the third data;
[0200] After integrating at least one report section to generate the report file, it also includes:
[0201] Receive query requests;
[0202] Retrieve a report section from the report file based on the query request;
[0203] Receive instructions to modify the display style of the third data in the report section;
[0204] Modify the display style of the third data in the report section according to the modification instructions.
[0205] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0206] Based on the report data requirements, obtain multiple data topics, configure the topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data.
[0207] Determine the topic dimension corresponding to each data topic, and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic;
[0208] A report section is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension;
[0209] Integrate at least one report section to generate a report file.
[0210] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0211] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0212] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0213] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for generating report documents, characterized in that, The method includes: Based on the report data requirements, at least one data topic is obtained, and second data corresponding to the data topic is obtained from the first data; wherein, the first data is basic data; the second data is topic data, which refers to the data set in the basic data that corresponds to the current data topic; Determine the topic dimension corresponding to the data topic, and obtain the third data corresponding to the topic dimension from the second data; wherein, the topic dimension is a dimension that further divides the second data corresponding to the current data topic under a data topic; A report section is obtained based on the topic dimension corresponding to the data topic and the third data. Integrate at least one of the aforementioned report sections to generate a report file; Before obtaining at least one data topic according to the report data requirements, and obtaining the second data corresponding to the data topic from the first data according to the data topic, the method further includes: The report data requirements corresponding to the report file to be generated are determined, and the business data is processed according to the report data requirements to obtain the first data; wherein, the report data requirements refer to the data information that needs to be displayed in the report file to be generated; the report file to be generated contains multiple report chapters, each report chapter corresponds to a report data requirement, and the report file to be generated corresponds to multiple report data requirements; The step of processing business data according to the report data requirements to obtain the first data includes: Obtain the corresponding business data and data processing algorithm according to the report data requirements; establish a report component according to the business data and the data processing algorithm; process the business data in the report component through the data processing algorithm in the report component to obtain the first data.
2. The method according to claim 1, characterized in that, The step of determining the topic dimension corresponding to the data topic and obtaining the third data corresponding to the topic dimension from the second data includes: Obtain at least two topic dimensions corresponding to the data topic; Obtain the data corresponding to each of the at least two topic dimensions from the second data, and obtain the topic dimension association information between the at least two topic dimensions; The data corresponding to each of the at least two topic dimensions and the association information of the topic dimensions are used as the third data.
3. The method according to claim 1, characterized in that, The step of obtaining a report section based on the topic dimension corresponding to the data topic and the third data includes: Obtain the display style corresponding to the third data; A report section is generated based on the topic dimension corresponding to the data topic, the third data, and the display style of the third data. After integrating at least one of the report sections to generate the report file, the method further includes: Receive query requests; Query a report section in the report file according to the query request; Receive instructions to modify the display style of the third data in the report section; Modify the display style corresponding to the third data in the report section according to the modification instructions.
4. The method according to claim 1, characterized in that, The method further includes: Based on the report data requirements, obtain multiple data topics, configure the topic association information between each data topic, and obtain the second data corresponding to each data topic from the first data. Determine the topic dimension corresponding to each data topic, and obtain the third data corresponding to each topic dimension from the second data corresponding to each data topic; A report chapter is obtained based on the topic association information, the topic dimension corresponding to each data topic, and the third data corresponding to each topic dimension; Integrate at least one of the aforementioned report sections to generate a report file.
5. A report document generation device, characterized in that, The device includes: The topic configuration module is used to obtain at least one data topic according to the report data requirements, and to obtain second data corresponding to the data topic from the first data; wherein, the first data is basic data; the second data is topic data, which refers to the data set in the basic data that corresponds to the current data topic; The dimension configuration module is used to determine the theme dimension corresponding to the data theme and obtain the third data corresponding to the theme dimension from the second data; wherein, the theme dimension is a dimension that further divides the second data corresponding to the current data theme under a data theme; The chapter generation module is used to obtain a report chapter based on the topic dimension corresponding to the data topic and the third data; The report generation module is used to integrate at least one of the report sections to generate a report file; The device further includes: a data acquisition module, used for: The report data requirements corresponding to the report file to be generated are determined, and the business data is processed according to the report data requirements to obtain the first data; wherein, the report data requirements refer to the data information that needs to be displayed in the report file to be generated; the report file to be generated contains multiple report chapters, each report chapter corresponds to a report data requirement, and the report file to be generated corresponds to multiple report data requirements; The data acquisition module is also used for: Obtain the corresponding business data and data processing algorithm according to the report data requirements; establish a report component according to the business data and the data processing algorithm; process the business data in the report component through the data processing algorithm in the report component to obtain the first data.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
System and method for automatically constructing scientific and technological text analysis report with zero participation of user
CN111581928A
Public opinion occurrence time sequence analysis method based on multi-dimensional data model
CN112988783A