Report generation method, terminal equipment and storage medium

By obtaining target report templates and data source recommendation models, and automatically generating reports, solving the problems of low report generation efficiency and inflexible document format in the existing technology, achieving efficient and personalized report generation.

CN120068826APending Publication Date: 2025-05-30ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311576370.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The prior art has a fixed document format when generating reports, which lacks flexibility and cannot meet the personalized needs of users. In the communication signaling maintenance system, the report generation efficiency is low and relies on manual input and maintenance.

Method used

By obtaining the target report template and determining its preset placeholder, the target data source and parameter information are determined based on the data source recommendation model, the target display object of the preset placeholder is determined based on the obtained data and parameter information, and finally the target report is generated based on the target report template and the target display object.

Benefits of technology

It realizes automated report generation, improves the efficiency of report generation and flexibility of document format, and can quickly and easily generate different types of reports to meet the personalized needs of users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068826A_ABST
    Figure CN120068826A_ABST
Patent Text Reader

Abstract

The invention provides a report generation method, terminal equipment and a storage medium, and belongs to the technical field of information processing. The method comprises the following steps: acquiring a target report template and determining a preset placeholder in the target report template; based on a data source recommendation model, determining a target data source corresponding to the preset placeholder and parameter information corresponding to the preset placeholder; determining a target display object corresponding to the preset placeholder according to target data obtained from the target data source and the parameter information; and generating a target report according to the target report template and the target display object. According to the report generation method and device, automatic report generation is achieved, different types of reports can be simply, conveniently and rapidly generated by depending on the data source recommendation model, and the report generation efficiency and the diversity of the generated reports are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information processing, and particularly to a method for generating a report, a terminal device, and a storage medium. Background Art

[0002] With the development of information technology, more and more enterprise users have the need to quickly generate various reports. To meet such a need, the prior art realizes the automatic generation of reports through the function of automatically generating enterprise reports provided by a website. However, in the traditional automatic generation scheme, the format of the generated report document is fixed, lacking flexibility and unable to meet the personalized needs of users.

[0003] For the application scenario of automatically generating reports in a communication signaling maintenance system, the communication signaling maintenance system needs to generate many different types of reports, and these reports need to obtain corresponding data from different data sources for analysis. Currently, most methods access the data sources through manual input to input data and are maintained manually, resulting in a low efficiency of report generation. Summary of the Invention

[0004] The present invention provides a method for generating a report, a terminal device, and a storage medium, aiming to improve the efficiency of automatic report generation and enhance the convenience of adjusting the document format and layout of the report.

[0005] In a first aspect, the present application provides a method for generating a report, including:

[0006] Obtaining a target report template and determining preset placeholders in the target report template;

[0007] Based on a data source recommendation model, determining a target data source corresponding to the preset placeholder and parameter information corresponding to the preset placeholder;

[0008] Determining a target display object corresponding to the preset placeholder according to the target data and parameter information obtained from the target data source;

[0009] Generating a target report according to the target report template and the target display object.

[0010] In a second aspect, the present application further provides a terminal device, which includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing the connection and communication between the processor and the memory. When the computer program is executed by the processor, the steps of any method for generating a report provided in the specification of the present invention are implemented.

[0011] In a third aspect, the present application also provides a storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any of the report generation methods provided in the specification of the present invention.

[0012] The present application provides a method for generating a report, a terminal device, and a storage medium. Through a data source recommendation model, the present application determines a target data source corresponding to a preset placeholder and parameter information corresponding to the placeholder, and determines a target display object to be displayed in the preset placeholder according to the target data obtained from the target data source and the corresponding parameter information, thereby completing the generation of the target report. The present application realizes the automatic generation of reports, and can rely on the data source recommendation model to simply and quickly complete the generation of different types of reports, improving the efficiency of report generation and the diversity of the generated reports. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0014] Figure 1 It is a schematic flowchart of a method for generating a report provided by the present application;

[0015] Figure 2 It is a schematic diagram of a report template provided by an embodiment of the present application;

[0016] Figure 3 It is a schematic diagram of a report template provided by another embodiment of the present application;

[0017] Figure 4 It is a scene diagram of a configuration interface of a preset placeholder provided by an embodiment of the present application;

[0018] Figure 5 It is a schematic block diagram of the structure of a terminal device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0019] The following will clearly and completely describe the technical solutions in the present application with reference to the drawings in the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0020] The flowcharts shown in the accompanying drawings are only illustrative examples, and do not necessarily include all content and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, combined, or partially merged, so the actual execution order may change according to the actual situation.

[0021] It should be understood that the terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" are intended to include the plural forms.

[0022] This application provides a method for generating a report, a terminal device, and a storage medium. Among them, the method for generating the report can be applied to a mobile terminal, which can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.

[0023] The following will, with reference to the accompanying drawings, elaborate on some embodiments of the present invention. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0024] Please refer to Figure 1 , Figure 1 which is a schematic flowchart of a method for generating a report provided by this application.

[0025] As Figure 1 shown, the method for generating the report includes steps S101 to S104.

[0026] Step S101, obtain a target report template and determine the preset placeholders in the target report template.

[0027] Exemplarily, obtain a target report template, where the target report template includes the display positions of text and images, template covers, paragraphs, headers and footers, and colors, etc., and the positions where the text and images need to be displayed are filled with preset placeholders.

[0028] In some embodiments, before obtaining the target report template, the method further includes: obtaining a report template to be processed; determining a first target area in the report template to be processed, where the first target area is the display area of the target display object; adding a preset placeholder in the first target area to obtain a report template; obtaining the target report template, including: determining the target report template from multiple report templates.

[0029] Please refer to Figure 2 , Figure 2 which is a schematic diagram of a report template provided by an embodiment of this application.

[0030] Exemplarily, the report template to be processed is a blank template. A first target area is determined on the blank template for displaying a target display object. After determining the first target area, a corresponding preset placeholder is added to this area to obtain the report template. It should be understood that multiple report templates can be made using multiple blank templates. Among them, the first target areas in each report template partially overlap or do not overlap, so that different report templates can be obtained for making target reports in different usage scenarios, improving the practicability of the report template and the generation efficiency of the target report.

[0031] In some embodiments, the report template to be processed further includes a second target area for displaying a preset character. Adding a preset placeholder to the first target area to obtain the report template includes: adding a preset placeholder to the first target area and adding a corresponding preset character to the second target area to obtain the report template.

[0032] Please refer to Figure 3 , Figure 3 which is a schematic diagram of the report template provided by another embodiment of the present application.

[0033] Exemplarily, in the report template to be processed, an area at a specific position is determined as the first target area and the second target area, or an area other than the first target area in the report template to be processed is determined as the second target area; that is, in addition to the first target area and the second target area in the report template to be processed, there are other areas as blank areas. Thus, in the obtained target report, no characters will be displayed in the blank areas. Therefore, different typeset target reports can be obtained when the blank areas are in different positions, thereby improving the diversity and applicability of the report. It should be noted that the present application does not limit whether the report template to be processed only includes the first target area and the second target area. In actual application, it can also include more areas with different functions to improve the diversity of the target report.

[0034] In a specific implementation process, after the first target area and the second target area are determined in the report template to be processed, a preset placeholder is added to the first target area, and a corresponding preset character is added to the second target area to obtain the report template. Specifically, the preset placeholder is related to the target display object to be displayed. The preset placeholder includes, but is not limited to, {{}} and {{p}}. Among them, in some implementation manners, the preset placeholder {{}} is used to indicate a text placeholder for replacing a single string (including numbers and text), while the preset placeholder {{p}} is used to indicate a table or an image, where p is a line break character, so that the displayed table or image can form a new paragraph by itself; the preset character is used to indicate specific text, English, or format, such as blank characters, text characters, and English characters. In some implementation manners, the page numbers in different reports are sorted starting from 1. Therefore, corresponding text characters and / or numeric characters (such as Figure 3 the page number in Figure 3 : 1 and the inspection report) can be added to the second target area where the page number needs to be displayed in the report template to be processed, and it will not affect the generation of different target reports. That is, the preset characters in the second target area will not change with the generation of different target reports, while a preset placeholder is added to the first target area to obtain the report template. Thus, in subsequent processing, only by replacing the preset placeholder in the report template can the production of different target reports be satisfied, thereby improving the generation efficiency of the report.

[0035] It can be understood that, in one implementation manner, a character addition model is used to add a preset placeholder to the first target area and a preset character to the second target area; in another implementation manner, a human is used to add a preset placeholder to the first target area and a preset character to the second target area.

[0036] By pre-making multiple report templates, when it is necessary to produce a target report, the target report template can be obtained from multiple report templates to produce the target report, which can shorten the production duration of the target report and improve the generation efficiency of the target report.

[0037] Step S102: Based on the data source recommendation model, determine the target data source corresponding to the preset placeholder and the parameter information corresponding to the preset placeholder.

[0038] Exemplarily, during the production of the target report, after obtaining the target report template, the data source recommendation model is used to determine the target data source corresponding to the preset placeholder and the parameter information corresponding to the preset placeholder. In a specific implementation process, the data source recommendation model determines the target data source according to the target report template and the preset placeholder on the target report template, so as to obtain the corresponding target data in the target data source and determine the parameter information corresponding to the target data. The parameter information includes, but is not limited to, font, font size, table parameters, graph types (such as pie charts, line charts, bar charts, dual-axis charts, and radar charts, etc.), and the color matching of the corresponding content.

[0039] By recommending the target data source corresponding to the preset placeholder through the data source recommendation model, there is no need for manual filling, thus improving the efficiency of producing the target report and achieving the purpose of quickly responding to customer needs. And during the subsequent generation of the target report, the target data source and / or parameter information can be adjusted and corrected manually or automatically to ensure the accuracy of the target report.

[0040] In some embodiments, the method further includes: performing a verification process on the target data source and / or parameter information; when the target data source and / or parameter information fails the verification, adjusting the target data source and / or parameter information, and training the data source recommendation model according to the adjusted target data source and / or the adjusted parameter information.

[0041] Exemplarily, after adding the preset placeholder to the report template, by automatically traversing each preset placeholder on the report template, it is determined whether the target data source and parameter information corresponding to each preset placeholder pass the verification. When passing the verification, the corresponding target data source and parameter information are stored in the corresponding configuration file; if not passing the verification, the target data source and parameter information are re-determined, and the data source recommendation model is trained using the re-determined target data source and parameter information to improve the accuracy of the target data source and parameter information recommended by the data source recommendation model.

[0042] In some other embodiments, as Figure 4 shown, Figure 4 is a scene diagram of the configuration interface of the preset placeholder provided by an embodiment of the present application. By manually clicking on the preset placeholder, the configuration interface corresponding to the preset placeholder is displayed in the information output area. The configuration interface at least includes the target data source and parameter information (such as Figure 4 in which the name of the target data source is the 5G terminal brand, and the parameter information includes a curve graph), so that technicians can determine whether the target data source and parameter information recommended by the data source recommendation model pass the verification through the displayed target data source and parameter information. It can be understood that the displayed target data source and parameter information are determined by the data source recommendation model to complete the verification of the target data source and parameter information manually.

[0043] By verifying the target data source and parameter information, when generating the target report, the data source recommendation model can determine the target data source and parameter information from the verified data sources, so as to complete the replacement of the preset placeholder with the target data obtained from the target data source, without excluding the data sources that fail the verification, improving the efficiency and accuracy of the data source recommendation model in recommending the target data source, and thus improving the efficiency and accuracy of the target report generation.

[0044] In another embodiment, if the target data source and / or parameter information fails the verification, the parameters of the data source recommendation model are adjusted, or the data source recommendation model is trained with the information screened manually, so that the target data source and parameter information recommended by the data source recommendation model meet the usage conditions.

[0045] In some embodiments, the method further includes: when it is determined that the target data meets the data change condition, performing re-selection processing on the target data source; when re-selecting the target data source, if none of the currently configured data sources meet the data display condition, performing re-configuration processing on the currently configured data sources, so that the data source recommendation model determines the target data source from the re-configured data sources.

[0046] Exemplarily, in the above steps, some of the verified data sources can be configured with the data source recommendation model, so that when the data source recommendation model recommends the target data source, the target data source is determined from the configured data sources. In the specific implementation process, the data change condition includes but is not limited to the change of data type and data source. For example, if it is necessary to change the target data with the data type of number to the target data with the data type of text, the data source of number needs to be changed to the data source of text to obtain the corresponding target data from the text data source; when re-selecting the target data source, if none of the currently configured data sources by the data source recommendation model meet the data display condition, re-configuration processing on the currently configured data sources is required. For example, when it is necessary to change to the data source of text but the currently configured data sources do not include the data source of text, re-configuration of the data sources is required.

[0047] By re-configuring the data sources configured with the data source recommendation model, it is possible to avoid the situation of recommending irrelevant target data or being unable to recommend the required target data while improving the efficiency of the data source model in recommending the target data source.

[0048] In some embodiments, the re-configuration processing of the currently configured data sources includes: obtaining the data source to be configured and the configuration information corresponding to the data source to be configured; determining the target interface according to the configuration information of the data source to be configured, and connecting the data source to be configured to the data source recommendation model through the target interface.

[0049] Exemplarily, obtain the configuration information of the data source to be configured, where the configuration information includes the name of the API interface corresponding to the data source, and determine a suitable API according to the content output by the API. After determining the suitable API, access the data source recommendation model through the API, so that the data source recommendation model can select the corresponding data source by using the API interface during the data source recommendation process.

[0050] In a specific implementation process, after determining a suitable API and accessing the data source recommendation model, configure the corresponding information for the data source into a configuration file, where the configured information includes but is not limited to the fields output by the configuration, the configuration filtering conditions, the configuration grouping conditions, the configuration sorting conditions, and the configuration maximum output record number.

[0051] It should be noted that the data source adopted is a third-party API shared data source, so the corresponding data source can be determined through the API interface, and the target data can be obtained from the data source.

[0052] By using the target data source and parameter information recommended by the data source recommendation model to determine the target display object displayed in the preset placeholder, the decoupling of data source configuration and report template production is realized. In the scenario of massive data analysis, there are many types of data sources, large amounts of data, and high computational complexity for analyzing data. However, through the decoupling of data source configuration and report template production, the data source configuration can be completed by professionals in the field and saved in an experience library. Users making report templates can focus on the report content and reduce the skill requirements for data extraction. At the same time, simple modifications and adjustments can be made on the experience data sources. At the same time, the production of data source configuration and report templates improves the update and generation efficiency of the target report types and can also meet rich and diverse requirements.

[0053] Step S103: Determine the target display object corresponding to the preset placeholder according to the target data and parameter information obtained from the target data source.

[0054] Exemplarily, obtain the target data from the target data source, and determine the target display object displayed on the preset placeholder according to the corresponding parameter information, so as to display the corresponding data on the report.

[0055] In some embodiments, the parameter information includes the text format of the target display object, and the text format includes at least one of table, image, or text; determining the target display object corresponding to the preset placeholder according to the target data and parameter information obtained from the target data source includes: generating a data dictionary according to the target data obtained from the target data source; based on the parameter information, loading the data dictionary to obtain the target display object, and the target display object is displayed in at least one text format of table, image, or text.

[0056] Exemplarily, the target report template includes multiple preset placeholders. After obtaining the multiple preset placeholders and determining the target data corresponding to each placeholder, a data dictionary is generated using the obtained target data. Among them, the target data sources corresponding to different preset placeholders may be different, so that different contents can be displayed in the target report template to obtain the target report. It can be understood that during the loading of the data dictionary, the loading is completed according to the target data and parameter information, and the obtained target display object can be directly displayed in the target report template. That is, during the loading of the data dictionary, the parameter information determines information such as the text format and size of the target display object.

[0057] By generating a data dictionary and then loading the data dictionary to obtain the target display object, the loading of the target display object is completed at one time during the production of the target report, without the need to perform loading after each acquisition of the target data and then process the target data corresponding to the next preset placeholder, realizing batch acquisition of the target data corresponding to the preset placeholders and batch loading of the target display object, improving the generation efficiency of the target report.

[0058] Step S104, generate a target report according to the target report template and the target display object.

[0059] Exemplarily, after determining the target display object, the target display object is displayed at the corresponding position of the preset placeholder on the target report template, thus completing the production of the target report.

[0060] In some embodiments, generating a target report according to the target report template and the target display object includes: replacing the preset placeholder in the target report template with the corresponding target display object, and performing a rendering process on the target report template to obtain the target report.

[0061] Exemplarily, after determining the target display object, the preset placeholder is replaced with the target display object for display, and a rendering process is performed on the target report template to complete the coloring and other processes of the target report template, thereby obtaining the target report.

[0062] The method for generating the report provided by the above embodiments includes obtaining a target report template and determining preset placeholders in the target report template; determining a target data source corresponding to the preset placeholder and parameter information corresponding to the preset placeholder based on a data source recommendation model; determining a target display object corresponding to the preset placeholder according to the target data and parameter information obtained from the target data source; and generating a target report according to the target report template and the target display object. By using the data source recommendation model to recommend the target data source corresponding to the preset placeholder and the parameter information corresponding to the preset placeholder, it is possible to obtain a target display object from the target data according to the parameter information, and fill the target display object into the target report template to obtain the target report, thereby completing the automated generation of the report. The data source recommendation model is used to recommend the data source, eliminating the need for manual filling. Moreover, the production of the data source is decoupled from the production of the report template. Thus, in a 4 / 5G communication system, when there is a scenario where a signaling collection and signaling monitoring big data system needs to generate big data analysis reports regularly or irregularly, the configuration of the data source can be completed by professionals in the field, while the production of the report template can be completed by ordinary users. This enables the users who make the report template to focus on the content of the report and reduces the skill requirements for data extraction. At the same time, the users who make the report template can also make simple modifications and adjustments based on the configured data source, improving the generation efficiency and accuracy of the target report, as well as the diversity and applicability of the target report.

[0063] Please refer to Figure 5 , Figure 5 which is a schematic block diagram of the structure of a terminal device provided by this application.

[0064] As Figure 5 shown, the terminal device 300 includes a processor 301 and a memory 302. The processor 301 and the memory 302 are connected through a bus 303, and this bus is, for example, an I2C (Inter-integrated Circuit) bus.

[0065] Specifically, the processor 301 is used to provide computing and control capabilities to support the operation of the entire terminal device. The processor 301 can be a central processing unit (CPU), or it can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0066] Specifically, the memory 302 can be a Flash chip, read-only memory (ROM), magnetic disk, optical disc, USB flash drive, or mobile hard disk, etc.

[0067] Those skilled in the art can understand that Figure 5 the structure shown in is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the terminal device to which the solution of this application is applied. A specific server may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0068] Among them, the processor is used to run the computer program stored in the memory and implement the generation method of any one of the reports provided by this application when executing the computer program.

[0069] In one embodiment, the processor is used to run the computer program stored in the memory and implement the following steps when executing the computer program:

[0070] Obtain a target report template and determine the preset placeholder in the target report template;

[0071] Based on the data source recommendation model, determine the target data source corresponding to the preset placeholder and the parameter information corresponding to the preset placeholder;

[0072] Determine the target display object corresponding to the preset placeholder according to the target data obtained from the target data source and the parameter information;

[0073] Generate a target report according to the target report template and the target display object.

[0074] In one embodiment, when the processor implements determining a target display object corresponding to the preset placeholder according to target data obtained from the target data source and the parameter information, it is used to implement:

[0075] Generate a data dictionary according to the target data obtained from the target data source;

[0076] Based on the parameter information, load the data dictionary to obtain the target display object, and the target display object is displayed in at least one text format of table, image or text.

[0077] In one embodiment, before the processor implements obtaining a target report template, it is further used to implement:

[0078] Obtain a report template to be processed;

[0079] Determine a first target area in the report template to be processed, and the first target area is the display area of the target display object;

[0080] Add the preset placeholder to the first target area to obtain a report template;

[0081] When implementing obtaining the target report template, it is used to implement:

[0082] Determine the target report template from multiple report templates.

[0083] In one embodiment, when the processor implements adding the preset placeholder to the first target area to obtain a report template, it is used to implement:

[0084] Add the preset placeholder to the first target area and add corresponding preset characters to the second target area to obtain a report template.

[0085] In one embodiment, when the processor implements generating a target report according to the target report template and the target display object, it is used to implement:

[0086] Replace the preset placeholder in the target report template with the corresponding target display object, and perform rendering processing on the target report template to obtain a target report.

[0087] In one embodiment, when the processor implements a method for generating a report, it is used to implement:

[0088] Perform verification processing on the target data source and / or the parameter information;

[0089] When the target data source and / or the parameter information fails the verification, adjust the target data source and / or the parameter information, and train the data source recommendation model according to the adjusted target data source and / or the adjusted parameter information.

[0090] In one embodiment, when the processor implements the generation of the report, it is used to implement:

[0091] When it is determined that the target data meets the data change condition, perform re-selection processing on the target data source;

[0092] When re-selecting the target data source, if none of the currently configured data sources meet the data display condition, perform re-configuration processing on the currently configured data sources so that the data source recommendation model determines the target data source from the re-configured data sources.

[0093] In one embodiment, when the processor implements the re-configuration processing of the currently configured data sources, it is used to implement:

[0094] Obtain the data source to be configured and the configuration information corresponding to the data source to be configured;

[0095] Determine the target interface according to the configuration information of the data source to be configured, and connect the data source to be configured to the data source recommendation model through the target interface.

[0096] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described terminal device can refer to the corresponding process in the embodiment of the report generation method described above, and will not be repeated here.

[0097] The present application also provides a storage medium for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of any report generation method provided in the specification of the present application.

[0098] Among them, the storage medium can be the internal storage unit of the terminal device described in the foregoing embodiment, such as the hard disk or memory of the terminal device. The storage medium can also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc.

[0099] Those of ordinary skill in the art will understand that all or some of the steps in the methods disclosed above, and the functional modules / units in systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations. In a hardware embodiment, the division of functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory, or other memory technologies, CD-ROM, digital versatile disc (DVD), or other optical disc storage, magnetic cassette, tape, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0100] It should be understood that the term "and / or" used in the specification and appended claims of the present invention refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations. It should be noted that in this article, the term "comprises", "comprising", or any other variation thereof is intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a series of elements includes not only those elements but also other elements not expressly listed, or elements that are inherent to such process, method, article, or system. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article, or system that comprises the element.

[0101] The above serial numbers of this application are only for description and do not represent the advantages or disadvantages of the embodiments. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for generating a report, characterized in that, comprising: obtaining a target report template and determining preset placeholders in the target report template; based on a data source recommendation model, determining a target data source corresponding to the preset placeholder and parameter information corresponding to the preset placeholder; determining a target display object corresponding to the preset placeholder according to the target data obtained from the target data source and the parameter information; generating a target report according to the target report template and the target display object.

2. The method for generating a report according to claim 1, characterized in that, the parameter information includes the text format of the target display object, and the text format includes at least one of a table, an image or text; the determining a target display object corresponding to the preset placeholder according to the target data obtained from the target data source and the parameter information includes: generating a data dictionary according to the target data obtained from the target data source; loading the data dictionary based on the parameter information to obtain the target display object, and the target display object is displayed in at least one text format of a table, an image or text.

3. The method for generating a report according to claim 1, characterized in that, before the obtaining the target report template, the method further includes: obtaining a report template to be processed; determining a first target area in the report template to be processed, and the first target area is the display area of the target display object; adding the preset placeholder in the first target area to obtain a report template; the obtaining the target report template includes: determining the target report template from multiple report templates.

4. The method for generating a report according to claim 3, characterized in that, the report template to be processed further includes a second target area for displaying preset characters; the adding the preset placeholder in the first target area to obtain a report template includes: adding the preset placeholder in the first target area and adding corresponding preset characters in the second target area to obtain a report template.

5. The method for generating a report according to any one of claims 1-4, characterized in that, the generating a target report according to the target report template and the target display object includes: replacing the preset placeholder in the target report template with the corresponding target display object, and performing a rendering process on the target report template to obtain a target report.

6. The method for generating a report according to any one of claims 1-4, characterized in that, the method further includes: performing a verification process on the target data source and / or the parameter information; when the target data source and / or the parameter information fails the verification, adjusting the target data source and / or the parameter information, and training the data source recommendation model according to the adjusted target data source and / or the adjusted parameter information.

7. The method for generating a report according to any one of claims 1-4, characterized in that, the method further includes: When it is determined that the target data meets the data change condition, perform re-selection processing on the target data source; When re-selecting the target data source, if none of the currently configured data sources meet the data display condition, perform re-configuration processing on the currently configured data sources so that the data source recommendation model determines the target data source from the re-configured data sources.

8. The method for generating a report according to claim 7, wherein, the re-configuration processing of the currently configured data sources includes: obtain the data source to be configured and the configuration information corresponding to the data source to be configured; determine the target interface according to the configuration information of the data source to be configured, and connect the data source to be configured to the data source recommendation model through the target interface.

9. A terminal device, wherein, the terminal device includes a processor, a memory, a computer program stored on the memory and executable by the processor, and a data bus for realizing the connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the method for generating a report according to any one of claims 1 to 8 are realized.

10. A storage medium for computer-readable storage, wherein, the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the steps of the method for generating a report according to any one of claims 1 to 8.