A method and system for generating customized reports based on user-defined configurations

By decomposing report templates into independent variable resource pools and combining user configurations with power grid data adjustments, customized reports that meet user needs are generated. This solves the problem of low report generation efficiency under complex and diverse power grid data, and achieves efficient and convenient report customization.

CN122133626APending Publication Date: 2026-06-02广西电网能源科技有限责任公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
广西电网能源科技有限责任公司
Filing Date
2026-02-27
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

Existing report generation methods are ill-suited to the complex and diverse needs of power grid data, resulting in rigid report template formats that require manual adjustments, leading to low efficiency and inconvenience.

Method used

By breaking down report template modules into independent variables, a resource pool is generated. Customized report templates are then created based on user-configured variables. Finally, customized reports that meet user needs are generated through power grid data adjustment, data analysis, and display algorithms.

Benefits of technology

It achieves efficient and convenient report generation, customizes report templates according to specific user needs, improves report diversity and data processing and display convenience, and optimizes report generation efficiency through template library.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122133626A_ABST
    Figure CN122133626A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for generating customized reports based on user-defined configurations. The method includes: disassembling all existing report templates into their report modules; storing all the disassembled report modules as independent variables in a virtual resource pool to generate a report module resource pool; obtaining the user's report configuration variables; selecting report modules corresponding to the report configuration variables from the report module resource pool and combining them to generate a customized report template; filtering corresponding power grid data according to the report configuration variables; adjusting the specifications of the corresponding report modules in the template according to the power grid data; filling the power grid data into the customized report template to generate a customized report; obtaining the user's review comments on the customized report; dynamically adjusting the customized report according to the review comments; and generating a final customized report that meets the user's specific needs. This method effectively eliminates the need for subsequent adjustments and changes to fixed templates from the source, improving the efficiency and convenience of report generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of report generation, and in particular to a customized report generation method and system based on user-defined configuration. Background Technology

[0002] Currently, with the digital and intelligent transformation of the power grid, the traditional method of manually compiling data and summarizing reports can no longer meet the increasingly complex and diversified data management needs of the power grid. Therefore, higher requirements need to be placed on the data compilation methods of the power grid, especially the methods of compiling data and generating reports.

[0003] Existing report generation methods typically involve reporters compiling the required data and filling in the corresponding functional items using pre-defined or generic report templates to complete the report. However, the fixed format of report templates makes it difficult to adapt to different reporting or presentation needs. Power grid data is complex, diverse, and constantly changing, and the data and content required for each report may differ. When generic or fixed report templates do not match the reporting needs, situations often arise where some sections are empty while others are crowded with data or lack sufficient reserved space. Furthermore, manually modifying preset report templates can easily cause changes in the layout and formatting of other sections, requiring multiple adjustments and proving inconvenient. Summary of the Invention

[0004] To address the inconvenience of existing technologies where manually modifying preset or fixed report templates can easily lead to changes in the layout and formatting of other sections, requiring multiple adjustments, this application provides a customized report generation method and system based on user-defined configurations. This system can customize report templates according to needs, eliminating the need for later adjustments to fixed templates from the source, thereby improving the efficiency and convenience of report generation.

[0005] Firstly, the above-mentioned inventive objective of this application is achieved through the following technical solution: A method for generating customized reports based on user-defined configurations, the method comprising: Decompose all existing report templates into report sections, and store all the decomposed report sections as independent variables in a virtual resource pool to generate a report section resource pool. Obtain the user's report configuration variables, select report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template; Filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report; Obtain user feedback on the customized report, dynamically adjust the customized report based on the feedback, and generate a final customized report that meets the user's specific needs.

[0006] In a preferred embodiment, this application can be further configured as follows: obtaining the user's report configuration variable, selecting report modules corresponding to the report configuration variable from the report module resource pool, combining them, and generating a customized report template, further includes: Obtain the user's specific reporting requirements, analyze the rationality of the report section combination of the customized report template based on the specific reporting requirements, and filter out unreasonable report section combinations; The unreasonable report section combination is adjusted and optimized, and the adjusted reasonable report section combination is updated and replaced according to the original combination position to generate a customized report template that meets the specific report requirements.

[0007] In a preferred embodiment, this application can be further configured as follows: the step of filtering the corresponding power grid data according to the report configuration variables, adjusting the specifications of the corresponding report section in the template according to the power grid data, and filling the power grid data into the customized report template to generate a customized report specifically includes: The power grid data of the report configuration variables are filtered according to the report configuration variables, the power grid data is classified and associated with the corresponding report sections to generate a one-to-one data and section association relationship; Based on the power grid data capacity and display method of each report section, the specifications of report sections with data-section relationships are adjusted to generate customized report sections that meet the power grid data display requirements. Based on the data and the correlation between the data and the modules, the power grid data is filled into the customized report module to generate a customized report.

[0008] In a preferred embodiment, this application can be further configured as follows: the step of filtering the corresponding power grid data according to the report configuration variables, adjusting the specifications of the corresponding report section in the template according to the power grid data, and filling the power grid data into the customized report template to generate a customized report further includes: Perform data function item matching processing on the report configuration variables, and establish the calling association relationship between the report configuration variables and the corresponding data function items based on the matching results; When the power grid data is entered into the customized report template, the data analysis algorithm encapsulated in the data function item is invoked according to the invocation association to perform data analysis on the power grid data and obtain data analysis results; Based on the relationships between report sections, report configuration variables, and data function items, the data analysis results are mapped to the corresponding report sections in the customized report template to generate a customized report.

[0009] In a preferred embodiment, this application can be further configured as follows: mapping the data analysis results to the corresponding report sections in the customized report template according to the association between report sections, report configuration variables, and data function items to generate a customized report, further includes: Configure the data display format for each report section, and associate the report section with the encapsulated data display algorithm according to the configuration results to generate the display association relationship between the report template and the data display package; Based on the aforementioned display relationship, the data display algorithm is invoked to convert the power grid data and data analysis results entered in the report section into a data display format, generating a customized report that meets the user's display needs.

[0010] In a preferred embodiment, this application can be further configured as follows: obtaining user feedback on the customized report, and dynamically adjusting the customized report based on the feedback to generate a final customized report that meets the user's specific needs, specifically includes: The report sections that need to be adjusted are marked according to the audit comments, and the adjustment keywords in the audit comments are identified to generate adjustment instructions for the report sections that need to be adjusted. The adjustment instructions are executed to make corresponding adjustments to the report sections that need to be adjusted, and the connection distance between the report sections that need to be adjusted and the preceding and following report sections is adjusted simultaneously to generate a final customized report that meets the user's specific needs.

[0011] In a preferred embodiment, this application can be further configured as follows: after obtaining the user's review comments on the customized report, dynamically adjusting the customized report based on the review comments, and generating a final customized report that meets the user's specific needs, the application further includes: Generate template keywords and terms based on the user customization requirements of the final customized report, associate them with the report template of the final customized report, and store them in the template library; Obtain the user's template call request. When the matching degree between the template call request and the template keyword entry reaches a preset threshold, directly call the associated report template in the template library for template reuse. When the matching degree between the template call request and the template keyword entry does not reach a preset threshold, the template call request is parsed to obtain the user's report configuration variables and generate a new customized report template.

[0012] Secondly, the above-mentioned inventive objective of this application is achieved through the following technical solutions: A customized report generation system based on user-defined configuration, the system comprising: The resource pool construction module is used to decompose the report sections of all existing report templates, and store all the decomposed report sections as independent variables in a virtual resource pool to generate a report section resource pool. The template generation module is used to obtain the user's report configuration variables, select report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template. The report generation module is used to filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report. The report adjustment module is used to obtain the user's review comments on the customized report, dynamically adjust the customized report according to the review comments, and generate a final customized report that meets the user's specific needs.

[0013] Thirdly, the above-mentioned objectives of this application are achieved through the following technical solutions: A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the aforementioned customized report generation method based on user-defined configuration.

[0014] Fourthly, the above-mentioned objectives of this application are achieved through the following technical solutions: A computer-readable storage medium storing a computer program that, when executed by a processor, implements the aforementioned customized report generation method based on user-defined configuration.

[0015] In summary, this application includes at least one of the following beneficial technical effects: 1. Set each section of the report as a customizable variable. Generate a customized report template based on the user's selection of report configuration variables. Analyze the rationality of the customized report template configuration based on specific needs and generate improvement suggestions. According to each configuration variable, call the data of the corresponding functional section, including energy data, carbon emission calculation, industry analysis, etc. Match the multi-dimensional data to the corresponding report section and convert it into the corresponding display state according to the customization requirements of each report template. Send the customized report with the corresponding data to the user for review, obtain the user's review comments, make corresponding adjustments, and generate a customized report that meets the user's specific needs. At the same time, save the customized report as a new template for future reuse. Customize the report template according to user needs to improve the convenience of report format adjustment and data filtering, and improve the efficiency of report filling. 2. This application also analyzes the rationality of the report module composition based on different specific report requirements and optimizes and adjusts unreasonable report module combinations to generate customized report templates corresponding to users' specific report requirements. It also establishes connections and relationships between report modules, report configuration variables, and data function items, maps the encapsulated data analysis algorithms to the corresponding report modules for data analysis and processing, and displays the data analysis results in a customized manner according to the associated data display algorithms, thereby improving the diversity and convenience of data processing and display in customized reports. 3. This application also incorporates user feedback on the customized report, marking report sections that require adjustment and analyzing adjustment keywords in the feedback to generate targeted adjustments for those sections. Simultaneously, the connection distance between the adjusted report sections and the preceding and following report sections is adjusted to generate a final customized report that meets the user's specific needs. Template keywords generated based on user customization requirements are associated with corresponding report templates and stored in a template library for future template reuse, thereby improving the efficiency of customized report generation. Attached Figure Description

[0016] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the accompanying drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn to scale.

[0017] Figure 1 This is a flowchart illustrating the implementation of the customized report generation method based on user-defined configuration in this embodiment.

[0018] Figure 2 This is a flowchart illustrating the implementation of the customized report generation method in this embodiment for handling specific report requirements.

[0019] Figure 3 This is a flowchart illustrating the implementation of step S30 of the customized report generation method in this embodiment.

[0020] Figure 4 This is a flowchart illustrating the implementation of the customized report generation method for segment data analysis in this embodiment.

[0021] Figure 5 This is a flowchart illustrating the implementation of the customized report generation method for data display processing in this embodiment.

[0022] Figure 6 This is a flowchart illustrating the implementation of step S40 of the customized report generation method in this embodiment.

[0023] Figure 7 This is a flowchart illustrating the implementation of template reuse in the customized report generation method of this embodiment.

[0024] Figure 8 This is a structural block diagram of the customized report generation system based on user-defined configuration in this embodiment.

[0025] Figure 9 This is a schematic diagram of the internal structure of a computer device used to implement a customized report generation method. Detailed Implementation

[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0027] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0028] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0029] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0030] In one embodiment, such as Figure 1 As shown, this application discloses a customized report generation method based on user-defined configuration, which specifically includes the following steps: S10: Decompose all existing report templates into report modules, store all the decomposed report modules as independent variables in a virtual resource pool, and generate a report module resource pool.

[0031] Specifically, all existing report templates are broken down into multiple independent report modules, including report type, energy source, carbon emission analysis, and industry analysis. These independent report modules are then centrally stored in a pre-built virtual resource pool to generate a report module resource pool. In this embodiment, the virtual resource pool is an independent storage space built using KVM or VMware.

[0032] S20: Obtain the user's report configuration variables, select the report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template.

[0033] Specifically, the system obtains the report configuration variables input by the user, including report type, carbon emission analysis, industry analysis, energy composition analysis of power business, etc. The system matches the report configuration variables with the report modules in the report module resource pool, selects report modules that match or have a similarity of up to a preset threshold such as 95%, and combines them to generate a customized report template.

[0034] In this embodiment, as Figure 2 As shown, after step S20, the following steps are also included: S201: Obtain the user's specific reporting requirements, analyze the rationality of the report section combination of the customized report template based on the specific reporting requirements, and filter out unreasonable report section combinations.

[0035] Specifically, obtain the user's specific reporting requirements, such as not needing to perform carbon emission calculations or not needing to perform energy composition analysis for power business, and analyze the rationality of the combination of report modules in the customized report template according to the specific reporting requirements. If it is consistent with the specific reporting requirements, it is reasonable; if it is inconsistent with the specific reporting requirements, it is unreasonable. Filter out unreasonable report module combinations and store them in a temporarily built cache pool.

[0036] S202: Adjust and optimize unreasonable report section combinations, update and replace the adjusted reasonable report section combinations according to the original combination positions, and generate customized report templates that meet specific report requirements.

[0037] Specifically, unreasonable report section combinations are adjusted and optimized according to specific report requirements, such as adding or deleting some report sections or adjusting the keywords or scale of report sections. The adjusted reasonable report sections are then updated and replaced according to their original positions to generate customized report templates that meet specific report requirements.

[0038] S30: Filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report.

[0039] Specifically, such as Figure 3 As shown, step S30 includes: S301: Filter the power grid data of the report configuration variables according to the report configuration variables, classify the power grid data and associate it with the corresponding report sections to generate a one-to-one data and section association relationship.

[0040] Specifically, the system filters the power grid data required for each report configuration variable based on the report configuration variables, categorizes the power grid data according to the report configuration variables, and associates it with the corresponding report sections to generate a one-to-one association between power grid data and report sections.

[0041] S302: Based on the power grid data capacity and display method of each report section, adjust the specifications of report sections with data-section relationships to generate customized report sections that meet the power grid data display requirements.

[0042] Specifically, based on the power grid data capacity and display method of each report section, the specifications of report sections with data-section relationships are adjusted, including reducing or increasing the space or length of the section in the report, thereby generating customized report sections that meet the power grid data display needs.

[0043] S303: Based on the data and sector association, fill the power grid data into the customized report sector to generate a customized report.

[0044] Specifically, based on the relationship between data and modules, the power grid data required for each report module is filled into the corresponding customized report module to generate a customized report carrying the power grid data.

[0045] like Figure 4 As shown, step S30 in this embodiment further includes: S304: Perform data function item matching processing on the report configuration variables, and establish the calling association between the report configuration variables and the corresponding data function items based on the matching results.

[0046] Specifically, data function item matching is performed on the report configuration variables. These data function items include power grid business analysis, network analysis, power source analysis, carbon emission analysis, and industry analysis. The power grid business analysis function item is matched with its corresponding "business" report configuration variable, the carbon emission analysis function item is matched with its corresponding "carbon emission analysis" report configuration variable, and so on, matching the data function items of all report configuration variables to establish a call association between the report configuration variables and their corresponding data function items. It should be noted that each data function item encapsulates a corresponding data analysis algorithm.

[0047] S305: When power grid data is entered into a customized report template, the data analysis algorithm encapsulated in the data function item is invoked according to the calling relationship to perform data analysis on the power grid data and obtain the data analysis results.

[0048] Specifically, when power grid data is entered into a customized report template, the data analysis algorithms encapsulated in the data function items, such as carbon emission calculation and analysis, industry analysis, network analysis, or power grid business analysis, are invoked according to the calling relationship to perform data analysis on the power grid data and generate data analysis results for the corresponding report configuration variables.

[0049] S306: Based on the relationships between report sections, report configuration variables, and data function items, map the data analysis results to the corresponding report sections in the customized report template to generate a customized report.

[0050] Specifically, based on the correspondence between configuration variables and report modules, and the calling relationship between report configuration variables and data function items, the relationship between report modules, report configuration variables, and data function items is constructed, thereby mapping the data analysis results to the corresponding report modules in the customized report template and generating a customized report.

[0051] like Figure 5 As shown, step S306 in this embodiment further includes: S3061: Configure the data display format for each report section, associate the report section with the encapsulated data display algorithm according to the configuration results, and generate the display association relationship between the report template and the data display package.

[0052] Specifically, the data display format is configured for each report section, and the report section is associated with the encapsulated data display algorithm according to the configuration results, such as tree diagram display, bar chart display, scatter plot display, etc., thereby generating the display association relationship between the report template and the encapsulated packages of multiple data display algorithms.

[0053] S3062: Based on the display relationship, call the data display algorithm to convert the power grid data and data analysis results entered in the report section into a data display format, and generate a customized report that meets the user's display needs.

[0054] Specifically, based on the display relationships, the corresponding data display algorithm for each report section is invoked to convert the entered power grid data and data analysis results into data display formats, forming corresponding tree diagrams, scatter plots, etc., and generating customized reports that meet the user's display needs.

[0055] S40: Obtain user feedback on the customized report, dynamically adjust the customized report based on the feedback, and generate a final customized report that meets the user's specific needs.

[0056] Specifically, such as Figure 6 As shown, step S40 includes: S401: Mark the report sections that need to be adjusted based on the audit comments, and generate adjustment instructions for the report sections that need to be adjusted by identifying the adjustment keywords in the audit comments.

[0057] Specifically, after the customized report is generated, it is sent to the user's end and the system receives the user's feedback on the review comments. Based on the review comments, the report sections that need to be adjusted are marked, and adjustment instructions are generated by identifying adjustment keywords in the review comments, such as adding, deleting, or modifying the report sections that need to be adjusted.

[0058] S402: Execute the adjustment command to make corresponding adjustments to the report sections that need to be adjusted, and simultaneously adjust the connection distance between the report sections that need to be adjusted and the preceding and following report sections, and generate a final customized report that meets the user's specific needs.

[0059] Specifically, the adjustment instructions are executed to make corresponding adjustments to the report sections that need to be adjusted, such as adjusting the specifications of the report sections that need to be adjusted, modifying keywords, deleting report items without power grid data, etc. Simultaneously, the connection distance between the report sections that need to be adjusted and the preceding and following report sections is adjusted so that adjacent report sections can also be closely connected with the report sections that need to be modified after modification, thereby generating a final customized report that meets the user's specific needs.

[0060] In one embodiment, such as Figure 7 As shown, after step S40, the following steps are also included: S403: Generate template keyword entries from the user customization requirements of the final customized report, associate them with the report template of the final customized report, and store them in the template library.

[0061] Specifically, the user's customization requirements for the final customized report are used to generate template keywords, such as business analysis, energy composition, and carbon emission analysis. These template keywords are then associated with the corresponding report templates, and the associated report templates are stored in the template library so that the corresponding report templates can be directly called and reused through the template keywords.

[0062] S404: Obtain the user's template call request. When the matching degree between the template call request and the template keyword entries reaches a preset threshold, directly call the associated report template in the template library for template reuse.

[0063] Specifically, the system obtains the user's template call request, extracts the report section function keywords from the template call request, and performs similarity matching with the template keyword entries in the template library. In this embodiment, Euclidean distance or cosine similarity is used for keyword similarity matching. The report templates corresponding to the template keyword entries with a similarity of 95% or higher are fed back to the user for template reuse.

[0064] S405: When the matching degree between the template call request and the template keyword entries does not reach the preset threshold, the template call request is parsed to obtain the user's report configuration variables and generate a new customized report template.

[0065] Specifically, when the matching degree between the template call request and the template keyword entry does not reach the preset threshold, such as the similarity being lower than 95%, the template call request is parsed, and then the user's report section function keywords are used to generate new report configuration variables to build a new customized report template.

[0066] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0067] In one embodiment, a customized report generation system based on user-defined configuration is provided, which corresponds one-to-one with the customized report generation method based on user-defined configuration in the above embodiments. For example... Figure 8 As shown, this user-defined report generation system includes a resource pool construction module, a template generation module, a report generation module, and a report adjustment module. Detailed descriptions of each functional module are as follows: The resource pool construction module is used to decompose the report sections of all existing report templates, and store all the decomposed report sections as independent variables in a virtual resource pool to generate a report section resource pool.

[0068] The template generation module is used to obtain the user's report configuration variables, select the report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template.

[0069] The report generation module is used to filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report.

[0070] The report adjustment module is used to obtain user feedback on customized reports, dynamically adjust customized reports based on the feedback, and generate a final customized report that meets the user's specific needs.

[0071] Preferably, the template generation module further includes: The unreasonable section filtering submodule is used to obtain the user's specific report requirements, analyze the rationality of the report section combination of the customized report template based on the specific report requirements, and filter out unreasonable report section combinations.

[0072] The module for optimizing report module combinations is used to adjust and optimize unreasonable report module combinations. It updates and replaces the reasonable report module combinations according to the original combination positions, and generates customized report templates that meet specific report requirements.

[0073] Preferably, the report generation module specifically includes: The data and sector association submodule is used to filter power grid data based on report configuration variables, classify the power grid data and associate it with the corresponding report sectors, and generate a one-to-one data and sector association relationship.

[0074] The module for adjusting the specifications of report sections is used to adjust the specifications of report sections that have a relationship with the data based on the power grid data capacity and display method of each report section, thereby generating customized report sections that meet the display requirements of power grid data.

[0075] The report generation submodule is used to fill the power grid data into the customized report module according to the data and module association relationship, and generate a customized report.

[0076] Preferably, the report generation module also includes: The function matching submodule is used to perform data function matching processing on the report configuration variables and establish the calling association between the report configuration variables and the corresponding data function items based on the matching results.

[0077] The data analysis submodule is used to perform data analysis on the power grid data when the power grid data is filled into the customized report template, based on the calling relationship, and call the data analysis algorithm encapsulated in the data function item to obtain the data analysis results.

[0078] The data mapping submodule is used to map data analysis results to the corresponding report sections in the customized report template according to the relationships between report sections, report configuration variables, and data function items, thereby generating a customized report.

[0079] Preferably, the data mapping submodule further includes: The display algorithm selection submodule is used to configure the data display format for each report section, associate the report section with the encapsulated data display algorithm according to the configuration results, and generate the display association relationship between the report template and the data display package.

[0080] The data display format conversion submodule is used to convert the power grid data and data analysis results entered in the report section into a different display format based on the display relationship, and generate a customized report that meets the user's display needs.

[0081] Preferably, the report adjustment module specifically includes: The report review submodule is used to mark the report sections that need to be adjusted based on the review comments, and to identify the adjustment keywords in the review comments to generate adjustment instructions for the report sections that need to be adjusted.

[0082] The report adjustment submodule is used to execute adjustment instructions to make corresponding adjustments to the report sections that need to be adjusted, and simultaneously adjust the connection distance between the report section to be adjusted and the preceding and following report sections, generating a final customized report that meets the user's specific needs.

[0083] Preferably, after the report adjustment module, it also includes: The template library building module is used to generate template keyword entries from the user's customization requirements for the final customized report, associate them with the report template of the final customized report, and store them in the template library.

[0084] The template reuse module is used to obtain the user's template call request. When the matching degree between the template call request and the template keyword entries reaches a preset threshold, the associated report template in the template library is directly called for template reuse.

[0085] The new module generates a new customized report template when the matching degree between the template call request and the template keyword entries does not reach a preset threshold. In this case, the module parses the template call request, obtains the user's report configuration variables, and generates a new customized report template.

[0086] Specific limitations regarding the user-defined configuration-based customized report generation system can be found in the above section on the limitations of the user-defined configuration-based customized report generation method, and will not be repeated here. Each module in the aforementioned user-defined configuration-based customized report generation system 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 the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0087] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database is used for intermediate data in the customized report generation process. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a customized report generation method based on user-defined configurations.

[0088] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements a customized report generation method based on user-defined configuration.

[0089] Those skilled in the art will recognize that the units of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application of the technical solution and the constraints involved. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of the invention.

[0090] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical functional division. In actual implementation, there may be other division methods, such as multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored.

[0091] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0092] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be covered within the scope of the claims and specification of the present invention.

Claims

1. A method for generating customized reports based on user-defined configurations, characterized in that, The method includes: Decompose all existing report templates into report sections, and store all the decomposed report sections as independent variables in a virtual resource pool to generate a report section resource pool. Obtain the user's report configuration variables, select report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template; Filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report; Obtain user feedback on the customized report, dynamically adjust the customized report based on the feedback, and generate a final customized report that meets the user's specific needs.

2. The customized report generation method based on user-defined configuration according to claim 1, characterized in that, The step of obtaining the user's report configuration variables, selecting report modules corresponding to the report configuration variables from the report module resource pool, combining them, and generating a customized report template also includes: Obtain the user's specific reporting requirements, analyze the rationality of the report section combination of the customized report template based on the specific reporting requirements, and filter out unreasonable report section combinations; The unreasonable report section combination is adjusted and optimized, and the adjusted reasonable report section combination is updated and replaced according to the original combination position to generate a customized report template that meets the specific report requirements.

3. The customized report generation method based on user-defined configuration according to claim 1, characterized in that, The process of filtering the corresponding power grid data according to the report configuration variables, adjusting the specifications of the corresponding report section in the template according to the power grid data, and filling the power grid data into the customized report template to generate a customized report specifically includes: The power grid data of the report configuration variables are filtered according to the report configuration variables, the power grid data is classified and associated with the corresponding report sections to generate a one-to-one data and section association relationship; Based on the power grid data capacity and display method of each report section, the specifications of report sections with data-section relationships are adjusted to generate customized report sections that meet the power grid data display requirements. Based on the data and the correlation between the data and the modules, the power grid data is filled into the customized report module to generate a customized report.

4. The customized report generation method based on user-defined configuration according to claim 3, characterized in that, The step of filtering the corresponding power grid data according to the report configuration variables, adjusting the specifications of the corresponding report section in the template according to the power grid data, and filling the power grid data into the customized report template to generate a customized report also includes: Perform data function item matching processing on the report configuration variables, and establish the calling association relationship between the report configuration variables and the corresponding data function items based on the matching results; When the power grid data is entered into the customized report template, the data analysis algorithm encapsulated in the data function item is invoked according to the invocation association to perform data analysis on the power grid data and obtain data analysis results; Based on the relationships between report sections, report configuration variables, and data function items, the data analysis results are mapped to the corresponding report sections in the customized report template to generate a customized report.

5. The customized report generation method based on user-defined configuration according to claim 4, characterized in that, The step of mapping the data analysis results to the corresponding report sections in the customized report template according to the relationships between report sections, report configuration variables, and data function items to generate a customized report also includes: Configure the data display format for each report section, and associate the report section with the encapsulated data display algorithm according to the configuration results to generate the display association relationship between the report template and the data display package; Based on the aforementioned display relationship, the data display algorithm is invoked to convert the power grid data and data analysis results entered in the report section into a data display format, generating a customized report that meets the user's display needs.

6. The customized report generation method based on user-defined configuration according to claim 1, characterized in that, The step of obtaining user feedback on the customized report and dynamically adjusting the customized report based on the feedback to generate a final customized report that meets the user's specific needs specifically includes: The report sections that need to be adjusted are marked according to the audit comments, and the adjustment keywords in the audit comments are identified to generate adjustment instructions for the report sections that need to be adjusted. The adjustment instructions are executed to make corresponding adjustments to the report sections that need to be adjusted, and the connection distance between the report sections that need to be adjusted and the preceding and following report sections is adjusted simultaneously to generate a final customized report that meets the user's specific needs.

7. The customized report generation method based on user-defined configuration according to claim 6, characterized in that, After obtaining the user's review comments on the customized report, dynamically adjusting the customized report based on the review comments, and generating a final customized report that meets the user's specific needs, the method further includes: Generate template keywords and terms based on the user customization requirements of the final customized report, associate them with the report template of the final customized report, and store them in the template library; Obtain the user's template call request. When the matching degree between the template call request and the template keyword entry reaches a preset threshold, directly call the associated report template in the template library for template reuse. When the matching degree between the template call request and the template keyword entry does not reach a preset threshold, the template call request is parsed to obtain the user's report configuration variables and generate a new customized report template.

8. A customized report generation system based on user-defined configuration, characterized in that, The system includes: The resource pool construction module is used to decompose the report sections of all existing report templates, and store all the decomposed report sections as independent variables in a virtual resource pool to generate a report section resource pool. The template generation module is used to obtain the user's report configuration variables, select report modules corresponding to the report configuration variables from the report module resource pool, combine them, and generate a customized report template. The report generation module is used to filter the corresponding power grid data according to the report configuration variables, adjust the specifications of the corresponding report section in the template according to the power grid data, and fill the power grid data into the customized report template to generate a customized report. The report adjustment module is used to obtain the user's review comments on the customized report, dynamically adjust the customized report according to the review comments, and generate a final customized report that meets the user's specific needs.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the customized report generation method based on user-defined configuration as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the customized report generation method based on user-defined configuration as described in any one of claims 1 to 7.