Data report generation method, server and storage medium

By analyzing the target report template, determining components and generating graphical reports, the problem of too many table report pages in the communication field is solved, and the user's reading experience is improved.

CN119227659APending Publication Date: 2024-12-31ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310801072.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the field of communication, the tabular reports generated by existing data analysis tools have too many report pages due to the massive and dynamic interactive data, making it difficult for users to obtain key information intuitively and clearly, and it takes a lot of effort to process them.

Method used

By obtaining feature types, report styles, and data associations in the target report template, identify target components (such as JasperReport and GIS components), generate graphical reports, and organize data to improve user reading experience.

Benefits of technology

It realizes a more intuitive and clear display of data, improves user reading experience, and reduces the need for reprocessing reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119227659A_ABST
    Figure CN119227659A_ABST
Patent Text Reader

Abstract

The invention provides a data report generation method, which is applied to a server, and comprises the following steps: obtaining a target report template, and obtaining an element type, a report style, a report parameter and a data association relationship from the target report template; a target component is determined according to the element type, the target component at least comprises a JasperReport component and a GIS component, the target component is used for generating a data report, and the data report comprises a graphic report; generating layer parameters of the graphic report according to the report style, and sending the layer parameters and the data association relationship to the target component; and starting the target component, determining a target data source according to the data association relationship, extracting report filling data from the target data source according to the report parameters, and generating a graphic report according to the report filling data and the layer parameters. The method is used for displaying the data in the report more visually and clearly, so that the reading experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data management, and in particular to a data report generation method, a server and a storage medium. Background Art

[0002] With the development of computer technology, many data analysis tools have emerged to assist users, such as Jasperreport, which can generate visual reports based on input data. At present, in the field of communications, users also use the above data analysis tools to extract key network data from massive interactive data, so as to perform network planning analysis through key network data. However, the output results of the above data analysis tools are reports in the form of tables. Since the interactive data in the field of communications is massive and dynamic, the number of pages of the report is very large, which makes it impossible for users to intuitively and clearly obtain the key information in the report, and users still need to spend a lot of energy to reprocess it. Summary of the invention

[0003] The main purpose of this application is to provide a data report generation method, a server and a storage medium, which are used to display data in a report more intuitively and clearly to improve the user's reading experience.

[0004] In a first aspect, an embodiment of the present application provides a data report generation method, which is applied to a server, and the method includes:

[0005] Obtaining a target report template, and obtaining element types, report styles, report parameters, and data association relationships from the target report template;

[0006] Determine a target component according to the element type, the target component includes at least a JasperReport component and a GIS component, the target component is used to generate a data report, and the data report includes a graphic report;

[0007] Generate layer parameters of the graphic report according to the report style, and send the layer parameters and the data association relationship to the target component;

[0008] The target component is started, a target data source is determined according to the data association relationship, report filling data is extracted from the target data source according to the report parameters, and the graphic report is generated according to the report filling data and the layer parameters.

[0009] In a second aspect, an embodiment of the present application provides a server, comprising a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of a data report generation method as described in any one of the embodiments of the present application are realized.

[0010] In a third aspect, an embodiment of the present application provides 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 implement the steps of a data report generation method as described in any one of the embodiments of the present application.

[0011] The embodiment of the present application provides a data report generation method, which is applied to a server, and the method includes: obtaining a target report template, obtaining feature types, report styles, report parameters and data association relationships from the target report template; determining a target component according to the feature type, the target component at least including a JasperReport component and a GIS component, and the target component is used to generate a data report, and the data report includes a graphic report; generating layer parameters of a graphic report according to the report style, and sending the layer parameters and data association relationships to the target component; starting the target component, determining a target data source according to the data association relationship, extracting report filling data from the target data source according to the report parameters, and generating a graphic report according to the report filling data and the layer parameters. In the above process, by parsing the target report template, the feature type, report style, report parameters and data association relationships are obtained, the target component determined according to the feature type is used to generate a graphic report, based on the JasperReport component, the report filling data is extracted from the target data source according to the report parameters, based on the GIS component, a graphic report is generated according to the report filling data and the layer parameters, and the report filling data is sorted through the layer parameters, so that the user can intuitively and clearly obtain the key information in the report, thereby improving the user's reading experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a schematic flow chart of a data report generation method provided in an embodiment of the present application;

[0013] Figure 2 is a schematic block diagram of an interactive template design system provided in an embodiment of the present application;

[0014] Figure 3 is a correspondence diagram between element types and output results provided in an embodiment of the present application;

[0015] Figure 4 is a schematic block diagram of a data report generating device provided in an embodiment of the present application;

[0016] Figure 5 is a schematic flow chart of a report template selection method provided in an embodiment of the present application;

[0017] Figure 6 It is a structural block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the heat dissipation device and base station equipment provided by the present disclosure are described in detail below in conjunction with the accompanying drawings.

[0019] Example embodiments will be described more fully below with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of the present disclosure.

[0020] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0021] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0022] The terms used herein are only used to describe specific embodiments and are not intended to limit the present disclosure. As used herein, the singular forms "a", "an" and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements and / or components is specified, but the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof is not excluded.

[0023] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0024] JasperReport is a powerful and flexible report generation tool that can display rich page content and convert it into PDF, HTML, or XML (Extensible Markup Language) format. JasperReport can achieve efficient report development. However, in the field of communications, if JasperReport is used directly for data analysis, the number of output report pages will be very large, resulting in users being unable to intuitively and clearly obtain key information in the report, and users still need to spend a lot of effort to reprocess it.

[0025] Therefore, the embodiment of the present application provides a data report generation method for displaying key data in a report more intuitively and clearly to improve the user's reading experience.

[0026] The data report generation method provided in the embodiment of the present application is applied to a server, wherein the server can be an independent server or a server cluster, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN) and big data and artificial intelligence platforms.

[0027] See also Figure 1 , Figure 1 A schematic flow chart of a data report generation method provided by an embodiment of the present application is shown. Figure 1 As shown, the data report generation method provided in the embodiment of the present application comprises the following specific implementation steps: S101-S104.

[0028] S101. Obtain a target report template, and obtain element types, report styles, report parameters, and data association relationships from the target report template.

[0029] Exemplarily, a user inputs an operation instruction to a terminal device, and the terminal device responds to the operation instruction, generates a request instruction, and sends the request instruction to a server. A database of the server stores a variety of report templates, and when the server receives the request instruction, it obtains a target report template from the database according to the request instruction, wherein the target report template is one or more of the report templates.

[0030] After the server obtains the target report template, it parses the target report template and obtains the feature type, report style, report parameters and data association relationship from the target report template. The feature type is used to determine the data type in the report, thereby determining the component that serves the data type. The report style is used to determine the layer parameters in the report. For example, the layer parameters include: font, line format, color and style of data markers. The report parameters are used to record the query conditions, which are used to extract the target data from the data source. The query conditions include: time, region and signal strength. The data association relationship is used to determine the data source.

[0031] S102. Determine a target component according to the feature type, wherein the target component includes at least a JasperReport component and a GIS component. The target component is used to generate a data report, and the data report includes a graphic report.

[0032] Exemplarily, the server needs to call the JasperReport component and the GIS component, extract data from the data source based on the JasperReport component, and perform graphical processing on the extracted data based on the GIS component, thereby outputting a data report in the form of a graphical report.

[0033] It should be noted that the GIS component is built based on GIS (Geographic Information System or Geo-Information system) technology and can generate graphic reports in combination with spatial geographic information.

[0034] S103: Generate layer parameters of the graphic report according to the report style, and send the layer parameters and data association relationship to the target component.

[0035] For example, in the field of communications, a communications heat map is generated based on GIS technology, and the communications heat map includes: a map layer and a hotspot layer. The layer parameters required for the map layer include: map area and area latitude and longitude, and the layer parameters required for the hotspot layer include: the form and color of the hotspot logo. The above layer parameters can be stored in the report style in advance in the form of text. When used, the server converts the text of the report style into layer parameters suitable for GIS components.

[0036] In an embodiment of the present application, layer parameters and data association relationships are sent to the target component via a REST (Representational State Transfer) interface.

[0037] S104, start the target component, determine the target data source according to the data association relationship, extract report filling data from the target data source according to the report parameters, and generate a graphic report according to the report filling data and layer parameters.

[0038] Exemplarily, the server accesses the corresponding database interface according to the data association relationship to read the target data source stored in the database. If the target data source is uploaded by the user, the data source is first stored in the database for caching data, and an access request to the database is set in the data association relationship.

[0039] After the server starts the JasperReport component and the GIS component, it can implement corresponding functions based on the JasperReport component and the GIS component. For example, the JasperReport component is loaded to extract report filling data from the target data source, and the GIS component is loaded to generate a graphic report from the filling data and layer parameters.

[0040] In the above process, by parsing the target report template, the feature type, report style, report parameters and data association relationship are obtained. The target component determined according to the feature type is used to generate a graphic report. Based on the JasperReport component, the report filling data is extracted from the target data source according to the report parameters. Based on the GIS component, a graphic report is generated according to the report filling data and layer parameters. The report filling data is sorted through the layer parameters so that users can intuitively and clearly obtain the key information in the report, thereby improving the user's reading experience.

[0041] In order to more clearly introduce the technical solution of the present application, the technical solution of the present application will be introduced through a specific embodiment below. It should be noted that the specific embodiment is used to expand the technical solution of the present application, but is not intended to limit the present application.

[0042] In some embodiments, before obtaining the target report template, the method also includes: obtaining the element type, report style, report parameters and data association relationship input by the user, and generating at least one report template based on the element type, report style, report parameters and data association relationship; obtaining the selection instruction input by the user, and determining the target report template based on the selection instruction, the target report template being at least one of the report templates.

[0043] See also Figure 2 , Figure 2 is a schematic block diagram of an interactive template design system provided in an embodiment of the present application. Figure 2 As shown, the interactive template design system 100 includes: a template configuration module 110 and a template generation engine 120 .

[0044] In the development phase of the report template, the user accesses the interactive template design system 100 through a terminal device. After access, the template configuration module 110 returns interface data to the terminal device, and the terminal device receives the interface data and loads the UI (User Interface) configuration interface for designing the report template according to the interface data. The user inputs the element type, report style, report parameters and data association relationship through the UI configuration interface, and sends them to the interactive template design system 100 through the terminal device. The template generation engine 120 processes the above data, configures the report style, report parameters and data association relationship for the component corresponding to the element type according to the mapping relationship between the component corresponding to the element type and the report style, report parameters and data association relationship, generates a report template, and saves the report template in the database in XML format for easy calling.

[0045] In some embodiments, the feature type includes at least a first type and a second type, and the target component is determined according to the feature type, including: determining that the target component includes a JasperReport component according to the first type; determining that the target component includes a GIS component according to the second type; when it is detected that the feature type also includes a third type, determining that the target component includes a data attachment component according to the third type; when it is detected that the feature type also includes a fourth type, determining that the target component includes a dynamic table component according to the fourth type.

[0046] Exemplarily, in order for the server to implement the data report generation method provided in the embodiment of the present application, it is necessary to call at least the JasperReport component and the GIS component. Therefore, the element type of each report template should include the first type and the second type. Whether the server needs to call the data attachment component and the dynamic table component is determined according to the actual needs of the user. If the user needs to capture dynamic data and / or dynamic tables during data analysis, the user needs to select a report template whose element type includes the third type and / or the fourth type so that the server can call the data attachment component and the dynamic table component.

[0047] See also Figure 3 , Figure 3 The figure shows a corresponding relationship diagram between an element type and an output result provided by an embodiment of the present application. Figure 3As shown, the data attachment component is used to generate a CSV (Comma-Separated Values) file and a file image according to the target character set of the data source, embed the file image into the report, and associate the CSV file with the file image as an attachment. The dynamic table component is used to detect the dynamic data in the extraction result of the data source. If it is detected that the dynamic data is less than or equal to the preset threshold, it is output to the report in the form of a table; if it is greater than the preset threshold, the dynamic data is generated into a CSV file and a file image, the file image is embedded into the report, and the CSV file is associated with the image as an attachment.

[0048] In some embodiments, the report parameters include a service address of a GIS component, and starting the target component includes: reading the service address from the report parameters, and starting the GIS component according to the service address.

[0049] For example, before calling a GIS component, the server needs to dynamically load the service address of the GIS component according to the actual situation of the operating environment. The service address can be obtained from the report template, or can be input in real time through the address input window before calling. Writing the service address of the GIS component in the report parameter allows the server to call it quickly, while obtaining the service address through the address input window has better timeliness, so as to facilitate calling GIS components with idle resources, thereby improving the speed of report generation.

[0050] In some embodiments, the target component includes a data attachment component. After starting the target component, the method also includes: determining the target data source based on the data association relationship, and based on the JasperReport component, extracting the target character set from the target data source according to the report parameters; based on the data attachment component, generating a data attachment according to the target character set, and inserting the data attachment into the graphic report.

[0051] For example, part of the data in the target data source needs to be reflected in the form of a data set, so this part of the data is extracted to generate the target character set. The data attachment component is used to generate a CSV file and a file image according to the target character set, embed the file image into the report, and associate the CSV file with the file image as an attachment.

[0052] If the element type in the report template includes the third type, the corresponding report parameters must include the file name, which is associated with the CSV file generated according to the target character set and displayed in the picture report. This allows users to quickly find the data set from the report.

[0053] In some embodiments, the target component includes a dynamic table component. After starting the target component, the method also includes: determining the target data source based on the data association relationship, and extracting dynamic values ​​from the target data source based on report parameters based on the JasperReport component; when it is detected that the dynamic value is less than or equal to a preset threshold, generating a table file based on the dynamic value; when it is detected that the dynamic value is greater than the preset threshold, generating a data attachment based on the dynamic value, and inserting the data attachment into the graphic report.

[0054] The dynamic table component is used to detect dynamic data in the extraction results of the data source. If it is detected that the dynamic data is less than or equal to the preset threshold, it is output to the report in table form; if it is greater than the preset threshold, the dynamic data is generated into a CSV file and a file image, the file image is embedded in the report, and the CSV file is associated with the image as an attachment.

[0055] If the element type in the report template includes the fourth type, the corresponding report parameters must include the file name and the preset threshold value. The file name is associated with the CSV file generated based on the dynamic data and displayed in the picture report. In this way, users can quickly find the dynamic data from the report.

[0056] In some embodiments, generating a graphic report according to report filling data and layer parameters includes: generating a graphic frame according to the layer parameters; generating a data identifier according to the report filling data; and synthesizing the graphic report according to the data identifier and the graphic frame.

[0057] Exemplarily, the execution object of the layer parameters is a GIS component. Taking the communication heat map as an example, before generating the communication heat map, it is necessary to generate the graphic framework of the communication heat map. Then, the layer parameters include: layer properties, map type, zoom mode, map area, center point coordinates, data type, font, line format, color and style of data identifiers. These parameters are stored in the report style of the report template in advance and obtained by parsing the report style in the report template. Among them, the layer properties include: layer transparency, layer name, layer indicator threshold, legend and layer type; map types include: Google, Amap, OSM and Baidu; map area includes: area boundary set, area boundary outside associated parameters; center point coordinates include: longitude and latitude; target data source data type includes: SQL and file. Based on the above layer parameters, a spatial geographic map of GIS is generated, and the displayed area is the area set by the user. The data identifier representing the communication hotspot is filled in the graphic framework to obtain the communication heat map. The data identifier can be represented by a color block. The more users in the area participating in the communication, the redder the corresponding color block.

[0058] In some embodiments, report filling data is extracted from a target data source according to report parameters, including: generating multiple query conditions according to the report parameters, and sending the query conditions to a JasperReport component; based on the JasperReport component, extracting a target character set from a target data source according to the query conditions; and saving the target character set as report filling data according to a preset format.

[0059] Exemplarily, the report parameters include: time, date and region. The server generates query conditions for time, date and region respectively according to the report parameters. The query conditions can be executed by the JasperReport component, so that the JasperReport component extracts the target character set from the target data source according to the query conditions, and saves these target characters in a format such as CSV or XML to fill in the report data.

[0060] Based on JasperReport, report filling data is used to generate reports, which can be saved to the database in EXCEL, WORD, PDF, PPT and other formats.

[0061] In some embodiments, a selection instruction input by a user is obtained, and a target report template is determined according to the selection instruction, where the target report template is at least one of the report templates.

[0062] See also Figure 4 , Figure 4 A schematic block diagram of a data report generation device provided in an embodiment of the present application is shown. Figure 4 As shown, the data report generation device 500 includes: a template management module 510, a JasperReport module 520, a component management module 530, a data source 540 and a GIS module 550. The template management module 120 parses the report template, obtains the feature type, report style, report parameters and data association relationship from the target report template; the JasperReport module 520 is used to extract the report filling data from the target data source according to the report parameters; the component management module 530 is used to determine the target component according to the feature type, and the layer parameters for generating the graphic report according to the report style, start the target component, and determine the target data source according to the data association relationship; the data source 540 is used to provide data, and the GIS module 550 is used to generate the graphic report according to the report filling data and the layer parameters.

[0063] See also Figure 5 , Figure 5 A schematic flow chart of a report template selection method provided in an embodiment of the present application is shown. Figure 5 As shown, the report template selection method provided in the embodiment of the present application comprises the following specific implementation steps: S201-S202.

[0064] S201, complete speech recognition and obtain text information in the speech.

[0065] S202: Determine a target report template according to the text information, where the target report template is one or more report templates.

[0066] The target report template required by the user is obtained through voice recognition, and a report is generated according to the target report template, thereby improving the user experience.

[0067] See also Figure 6 , Figure 6 The following figure shows a structural block diagram of a terminal device. Figure 6 As shown, an embodiment of the present application proposes a terminal device 20, which includes a memory 21, a processor 22, a program stored in the memory and executable on the processor, and a data bus 23 for realizing connection and communication between the processor 21 and the memory 22. When the program is executed by the processor, the steps of the data report generation method as described in any one of the embodiments of the present application are realized.

[0068] Specifically, for example, the following Figure 1 The specific steps shown are: obtain the target report template, obtain the feature type, report style, report parameters and data association relationship from the target report template; determine the target component according to the feature type, the target component includes at least JasperReport component and GIS component, the target component is used to generate data reports, and the data reports include graphic reports; generate layer parameters of the graphic report according to the report style, and send the layer parameters and data association relationship to the target component; start the target component, determine the target data source according to the data association relationship, extract the report filling data from the target data source according to the report parameters, and generate a graphic report according to the report filling data and layer parameters.

[0069] In some embodiments, when the processor 22 is used to implement the determination of the target component according to the feature type, it is specifically used to implement: determining that the target component includes a JasperReport component according to the first type; determining that the target component includes a GIS component according to the second type; when it is detected that the feature type also includes a third type, determining that the target component includes a data attachment component according to the third type; when it is detected that the feature type also includes a fourth type, determining that the target component includes a dynamic table component according to the fourth type.

[0070] In some embodiments, when the processor 22 is used to start the target component, it is specifically used to implement: reading the service address from the report parameters, and starting the GIS component according to the service address.

[0071] In some embodiments, after being used to implement the startup target component, the processor 22 is also specifically used to implement: determining the target data source based on the data association relationship, extracting the target character set from the target data source based on the report parameters based on the JasperReport component; generating a data attachment based on the target character set based on the data attachment component, and inserting the data attachment into the graphic report.

[0072] In some embodiments, after being used to implement the startup target component, the processor 22 is also specifically used to implement: determining the target data source based on the data association relationship, and based on the JasperReport component, extracting dynamic values ​​from the target data source according to the report parameters; based on the dynamic table component, when it is detected that the dynamic value is less than or equal to a preset threshold, generating a table file according to the dynamic value; when it is detected that the dynamic value is greater than the preset threshold, generating a data attachment according to the dynamic value, and inserting the data attachment into the graphic report.

[0073] In some embodiments, when the processor 22 is used to generate a graphic report according to report filling data and layer parameters, it is specifically used to achieve: generating a graphic frame according to the layer parameters; generating a data identifier according to the report filling data; and synthesizing the graphic report according to the data identifier and the graphic frame.

[0074] In some embodiments, when the processor 22 is used to extract report filling data from the target data source according to report parameters, it is specifically used to implement: generating multiple query conditions according to the report parameters, and sending the query conditions to the JasperReport component; based on the JasperReport component, extracting the target character set from the target data source according to the query conditions; saving the target character set as report filling data according to a preset format.

[0075] In some embodiments, before being used to obtain a target report template, the processor 22 is further specifically used to: obtain the element type, report style, report parameters, and data association relationship input by the user, and generate at least one report template based on the element type, report style, report parameters, and data association relationship; obtain a selection instruction input by the user, and determine a target report template based on the selection instruction, the target report template being at least one of the report templates.

[0076] An embodiment of the present application provides 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 implement the steps of any data report generation method provided in the embodiment of the present application.

[0077] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the present application is not limited thereby. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application shall be within the scope of the present application.

Claims

1. A data report generation method, characterized in that: Applied to a server, the method comprises: Obtaining a target report template, and obtaining element types, report styles, report parameters, and data association relationships from the target report template; Determine a target component according to the element type, the target component includes at least a JasperReport component and a GIS component, the target component is used to generate a data report, and the data report includes a graphic report; Generate layer parameters of the graphic report according to the report style, and send the layer parameters and the data association relationship to the target component; The target component is started, a target data source is determined according to the data association relationship, report filling data is extracted from the target data source according to the report parameters, and the graphic report is generated according to the report filling data and the layer parameters.

2. The data report generation method according to claim 1, characterized in that: The element type includes at least a first type and a second type, and determining the target component according to the element type includes: Determining, according to the first type, that the target component includes the JasperReport component; Determining, according to the second type, that the target component includes the GIS component; Upon detecting that the element type further includes a third type, determining, according to the third type, that the target component includes a data attachment component; When it is detected that the element type further includes a fourth type, it is determined according to the fourth type that the target component includes a dynamic table component.

3. The data report generation method according to claim 2, characterized in that: The report parameter includes the service address of the GIS component, and the starting of the target component includes: The service address is read from the report parameters, and the GIS component is started according to the service address.

4. The data report generation method according to claim 2, characterized in that: The target component includes the data attachment component. After starting the target component, the method further includes: Determine a target data source according to the data association relationship, and extract a target character set from the target data source according to the report parameters based on the JasperReport component; Based on the data attachment component, a data attachment is generated according to the target character set, and the data attachment is inserted into the graphic report.

5. The data report generation method according to claim 2, characterized in that: The target component includes the dynamic table component. After starting the target component, the method further includes: Determine a target data source according to the data association relationship, and extract dynamic values ​​from the target data source according to the report parameters based on the JasperReport component; Based on the dynamic table component, when it is detected that the dynamic value is less than or equal to a preset threshold, a table file is generated according to the dynamic value; when it is detected that the dynamic value is greater than the preset threshold, a data attachment is generated according to the dynamic value and the data attachment is inserted into the graphic report.

6. The data report generation method according to claim 1, characterized in that: The step of generating the graphic report according to the report filling data and the layer parameters includes: Generate a graphics frame according to the layer parameters; Generate a data identifier based on the report filling data; The graphic report is synthesized according to the data identifier and the graphic framework.

7. The data report generation method according to claim 1, characterized in that: The extracting report filling data from the target data source according to the report parameters includes: Generate multiple query conditions according to the report parameters, and send the query conditions to the JasperReport component; Based on the JasperReport component, extracting a target character set from the target data source according to the query condition; The target character set is saved as the report filling data according to a preset format.

8. The data report generation method according to claim 1, characterized in that: Before obtaining the target report template, the method further includes: Acquire the element type, report style, report parameters and data association relationship input by the user, and generate at least one report template according to the element type, the report style, the report parameters and the data association relationship; A selection instruction input by a user is obtained, and the target report template is determined according to the selection instruction, where the target report template is at least one of the report templates.

9. A server, characterized in that: The invention comprises a memory, a processor, a program stored in the memory and executable on the processor, and a data bus for realizing connection and communication between the processor and the memory. When the program is executed by the processor, the steps of the data report generating method according to any one of claims 1 to 7 are realized.

10. A storage medium for computer-readable storage, characterized in that: 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 the data report generation method according to any one of claims 1 to 7.