Report generation method, apparatus, device, and medium
By using unified business rules and template-driven automated processes, the problem of fragmented reporting across different stages of the operational cycle has been solved, enabling efficient and accurate report generation and analysis, and providing timely and reliable operational decision support.
Patent Information
- Application Number
- CN202611475653.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, the data acquisition, processing, analysis, generation, and summarization stages of operational cycle reports are fragmented and rely on manual operation, resulting in low report generation efficiency and a high risk of data errors.
By obtaining the report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates, the target data retrieval script is determined, target data is obtained from the database, data files are generated based on the data processing templates, and a summary business report is generated based on the data files and report templates. Built-in calculation formulas and constraints are used for automatic processing and verification, and trend analysis and correlation analysis are combined to generate analysis conclusion texts. Cross-business data consistency verification is performed before aggregation.
It automates the entire process of data acquisition, processing, analysis, report generation, and summarization, reducing manual intervention, improving report generation efficiency and data accuracy, and ensuring the objectivity of analysis conclusions and the consistency of summary results.
Smart Images

Figure CN123159291A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of enterprise management and data processing, and in particular to a report generation method, apparatus, device and medium. Background Technology
[0002] Operational cycle reports are structured data reports generated on a fixed schedule around a company's core business operations. They record statistical results and analytical conclusions for key indicators such as business volume, target achievement rate, and operational cycle. Common types include daily, weekly, monthly, and quarterly reports. In enterprise digital operations, different business managers typically collect business data according to their respective authority and compile reports separately. These reports are then aggregated by the management department to form a comprehensive reporting document. These reports serve as crucial evidence for enterprises to monitor operational indicators, identify business trends, evaluate performance, and support management decisions.
[0003] In the preparation of operational cycle reports, the existing approach typically relies on manual operation across different tools and stages. Specifically, the existing approach involves business personnel manually modifying the date conditions in the data retrieval script and executing the script to extract raw data from the database; exporting the raw data to a spreadsheet tool, manually entering or pasting it into a template, and triggering calculation formulas to complete the data processing; business personnel then analyze the indicators based on their experience and write conclusions; the data and conclusions are then pasted into a report template to generate a single business report; finally, management personnel manually summarize and verify the reports from each business supervisor to form a summary report.
[0004] However, in the existing solution, the data acquisition, processing, analysis, generation and summarization of the operational cycle report are fragmented, and the compilation process relies on manual coordination, resulting in low report generation efficiency and easy data errors. Summary of the Invention
[0005] This application provides a report generation method, apparatus, device, and medium to solve the aforementioned technical problems. This technical solution aims to collaboratively manage data acquisition, data processing, and report summarization involved in the report generation process, focusing on report generation cycles, business supervisor permissions, data collection dimensions, data processing templates, and report templates. This enables periodic business reports to be automatically generated under unified business rules, thereby reducing process fragmentation and inconsistencies caused by manual operations.
[0006] This application provides a report generation method, including:
[0007] Obtain information on report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates;
[0008] Determine the target data retrieval script based on the report generation cycle;
[0009] Based on the target data retrieval script, retrieve the target data corresponding to the business supervisor's permissions from the database;
[0010] Generate data files based on target data and data processing templates;
[0011] Generate a summary business report based on the data files, report templates, and data aggregation dimensions.
[0012] In one possible embodiment, a data file is generated based on the target data and the data processing template, including:
[0013] According to the preset field mapping relationship, the target data is written into the target cell of the data processing template to obtain the data table to be processed;
[0014] The built-in calculation formulas of the data processing template are used to perform data processing on the data table to be processed, and the processing result data is obtained.
[0015] The data processing results are validated based on the built-in constraints of the data processing template. When the validation passes, a data file is generated.
[0016] In one possible embodiment, before writing the target data into the template cell of the data processing template according to a preset field mapping relationship, the method further includes:
[0017] The target data is validated to obtain the data validation results.
[0018] When the data validation result is unsuccessful, an exception alarm is triggered, and the exception record and the corresponding exception type are marked.
[0019] When the data validation result is successful, the target data is written into the template cell of the data processing template according to the preset field mapping relationship.
[0020] In one possible embodiment, a business report is generated based on the data file, report template, and data aggregation dimensions, including:
[0021] Generate a single business operation report based on the data file and report template;
[0022] The operational reports of each business are categorized and summarized according to the data collection dimensions to generate a summary report.
[0023] In one possible embodiment, a single business operations report is generated based on the data file and report template, including:
[0024] The data file is analyzed to obtain the analysis conclusion text;
[0025] Write the data file into the preset table placeholders in the report template, and generate the corresponding charts according to the data file data type to obtain the report chart page;
[0026] Insert the analysis conclusion text into the preset text area in the report chart page to obtain a single business operation report corresponding to the business supervisor's permissions.
[0027] In one possible embodiment, the data file is analyzed to obtain an analysis conclusion text, including:
[0028] The preset analysis model is invoked to calculate the indicators of the data file, and the indicator calculation results are obtained.
[0029] The trend analysis algorithm is used to calculate the indicator results and obtain the indicator fluctuation characteristics.
[0030] The correlation analysis algorithm is used to calculate the degree of correlation between the indicators in the indicator calculation results, and the indicator analysis results are obtained.
[0031] Based on the indicator analysis results and the preset business rule base, the analysis conclusion text is obtained.
[0032] In one possible embodiment, before classifying and summarizing the individual business operation reports according to the data aggregation dimension, the method further includes:
[0033] Perform cross-business data consistency checks on each individual business operation report;
[0034] If the verification fails, a verification reminder is triggered, and cross-business data consistency verification is re-executed until the verification passes.
[0035] Upon successful verification, the system will perform a process to categorize and summarize the operational reports of each business unit according to the data aggregation dimensions, and generate a summary report.
[0036] Secondly, embodiments of this application provide a report generation apparatus, comprising:
[0037] The acquisition module is used to obtain the report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates.
[0038] The determination module is used to determine the target data retrieval script based on the report generation cycle;
[0039] The data retrieval module is used to retrieve target data from the database that corresponds to the business supervisor's permissions, based on the target data retrieval script.
[0040] The first generation module is used to generate data files based on the target data and the data processing template;
[0041] The second generation module is used to generate summary business reports based on data files, report templates, and data aggregation dimensions.
[0042] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0043] The memory stores instructions that the computer executes;
[0044] The processor executes computer execution instructions stored in memory, causing the processor to perform the methods described above.
[0045] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided above.
[0046] This application provides a report generation method, apparatus, device, and medium. By determining the target data retrieval script based on the report generation cycle and obtaining the target data corresponding to the business supervisor's authority, and then generating a data file in combination with a data processing template, a summary business report is generated based on the data file, report template, and data aggregation dimensions. This reduces the need for manual tool switching and parameter modification, improves the automation level and processing efficiency of report generation, and ensures the consistency of standards and accuracy of results for multi-source data during the data retrieval, processing, and aggregation processes. Attached Figure Description
[0047] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0048] Figure 1 A schematic diagram of the overall system architecture of a report generation method provided in this application;
[0049] Figure 2 Flowchart of the report generation method provided for this application Figure 1 ;
[0050] Figure 3 Flowchart of the report generation method provided for this application Figure 2 ;
[0051] Figure 4 Flowchart of the report generation method provided for this application Figure 3 ;
[0052] Figure 5 Flowchart of the report generation method provided for this application Figure 4 ;
[0053] Figure 6A schematic diagram of a report generation device provided in this application;
[0054] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0055] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0056] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0057] First, let me explain the terms used in this application:
[0058] Periodic operational reports: These are structured data reports generated on a fixed schedule around a company’s core business operations. They are used to monitor operational metrics, identify business trends, evaluate performance, and support management decisions. Common types include daily, weekly, monthly, and quarterly reports.
[0059] Natural Language Generation (NLG) refers to artificial intelligence technology that automatically transforms structured data into human-readable narrative text. In this application, it is used to transform the results of indicator analysis into analytical conclusion text.
[0060] End-to-end automated pipeline: refers to an automated chain that requires no human intervention throughout the entire process from data access, data processing, analysis and modeling to report output. In this application, it is triggered by the report generation cycle and runs automatically on a cycle basis.
[0061] Report generation cycle: This refers to the time period configuration information that triggers report generation, such as daily, weekly, monthly, or quarterly, used to determine the target data retrieval script and the data retrieval time range.
[0062] Business supervisor permissions: refers to the permission information that represents the scope of data access and report reception for business supervisors. Different business supervisor permissions correspond to the data and reports of different business lines.
[0063] Data aggregation dimensions: These refer to the dimensional information used when classifying and summarizing the operational reports of each individual business, such as business line dimensions, regional dimensions, etc.
[0064] Data processing templates: These are structured template files with built-in calculation formulas and constraints, used to carry target data and trigger automatic calculations and verifications, such as spreadsheet templates.
[0065] Target data retrieval script: refers to a script used to extract data from the database, which is determined according to the report generation cycle. The data retrieval time range in the script matches the report generation cycle.
[0066] Target data: refers to the original business data obtained from the database that corresponds to the permissions of the business manager.
[0067] Preset field mapping relationship: refers to the correspondence between the fields of the target data and the cells of the data processing template, which is used to write the target data into the target cells of the template.
[0068] Built-in calculation formulas: These refer to the pre-configured calculation formulas in the data processing template, such as the operating cycle calculation formula, the target achievement rate calculation formula, and the process efficiency ratio calculation formula. The calculation is automatically triggered after the target data is written.
[0069] Built-in constraints: These refer to the pre-configured validation rules in the data processing template, used to validate the rationality of the calculated processing results.
[0070] Abnormal records and abnormal types: Data records marked when data validation fails and their corresponding abnormal categories, such as missing fields, out-of-bounds values, etc.
[0071] Single Business Operation Report: This refers to an operation report generated based on the data file and report template corresponding to the permissions of a single business manager, and is geared towards a single business line.
[0072] Summary Business Report: This refers to a comprehensive report generated after classifying and summarizing the individual business operation reports according to the data aggregation dimensions. It is also known as a summary report.
[0073] Analysis conclusion text: refers to the natural language conclusion text generated after performing indicator calculations, trend analysis, and correlation analysis on the data file, combined with a preset business rule base.
[0074] Preset table placeholders: These are pre-set table location identifiers in the report template used for writing data file content.
[0075] Report chart page: refers to the report page obtained after the data file is written into the preset table placeholders and corresponding charts are generated according to the data type.
[0076] Preset text area: refers to the area in the report's chart pages that is pre-defined for inserting analysis conclusion text.
[0077] Pre-configured analysis models: These are pre-configured analysis models used to calculate metrics from data files, such as achievement rate calculation models or growth rate calculation models.
[0078] Indicator fluctuation characteristics: These refer to the characteristics that represent the trend of an indicator over time, obtained by processing the calculation results of an indicator through trend analysis algorithms. Examples include time series smoothing characteristics and linear trend prediction results.
[0079] Association analysis algorithms: These are algorithms used to calculate the degree of correlation between indicators in the calculation results, such as the Pearson correlation coefficient algorithm and the Spearman rank correlation coefficient algorithm.
[0080] Preset business rule base: refers to a knowledge base that stores business judgment rules, which are used to generate analysis conclusion text by combining indicator analysis results, such as target achievement judgment rules, abnormal fluctuation warning rules, etc.
[0081] Cross-business data consistency verification: refers to the process of verifying the logical consistency of data between single business operation reports corresponding to different business supervisors' permissions, such as verifying whether the deviation between the sum of data from each business line and the total data is within a preset range.
[0082] In the fields of artificial intelligence automation, data processing, and report generation, the efficient and accurate compilation of operational cycle reports faces significant challenges as enterprise digital operations deepen and business data volumes continue to grow. Operational cycle reports are crucial for enterprises to monitor operational metrics, identify business trends, evaluate performance, and support management decisions; their compilation efficiency and data accuracy directly impact the timeliness and reliability of enterprise operational decisions.
[0083] Current technologies typically rely on manual report compilation across multiple tools and stages. Business personnel manually modify date conditions in data retrieval scripts and execute them to retrieve data from the database. The raw data is then exported to spreadsheet tools for data processing. Based on experience, indicators are analyzed and conclusions are written. The data and conclusions are then pasted into a report template to generate a single business report. Finally, managers manually summarize and double-check the reports from each business supervisor. Some solutions use process automation tools to automate single-stage operations or employ data analysis platforms for data processing, but neither can achieve a seamless integration of the entire process from data retrieval, processing, analysis, report generation, and summarization.
[0084] The existing operational cycle report preparation technology has the following problems: the data acquisition, processing, analysis, generation and summarization stages are isolated from each other and rely on manual coordination. The report preparation process cannot be automatically connected, resulting in low report generation efficiency and easy data errors.
[0085] To address the aforementioned issues, this application provides a report generation method, apparatus, device, and medium. By acquiring the report generation cycle, business supervisor permissions, data collection dimensions, data processing template, and report template, a target data retrieval script is determined based on the report generation cycle. Target data corresponding to the business supervisor's permissions is retrieved from the database based on the target data and data processing template. A data file is generated based on the target data and data processing template. A summary business report is then generated based on the data file, report template, and data collection dimensions. Furthermore, automatic data processing and verification are achieved through built-in calculation formulas and constraints in the template. Analysis conclusion text is generated using a preset analysis model combined with trend analysis and correlation analysis algorithms. Cross-business data consistency verification is performed before aggregation. This automates the entire process of data retrieval, processing, analysis, report generation, and aggregation, reducing manual intervention, improving report generation efficiency and data accuracy, avoiding data retrieval bias and processing errors, and enhancing the objectivity of analysis conclusions and the consistency of aggregation results, providing timely and reliable support for operational decision-making.
[0086] Figure 1 This is a schematic diagram of the overall system architecture for a report generation method provided in this application. Figure 1 As shown, in the specific application scenario of this application, the system adopts a layered architecture design, including a user layer, an application layer, a platform layer, a data layer, and an infrastructure layer.
[0087] The report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report template configuration information are first inputs into the user layer. The user layer transmits the aggregated configuration information to the application layer, which converts the configuration information into corresponding task instructions and schedules the core functional modules of the platform layer. The platform layer determines the target data retrieval script based on the report generation cycle, retrieves the target data corresponding to the business supervisor's permissions from the database in the data layer according to the target data retrieval script, generates a data file based on the target data and data processing template, analyzes the data file to obtain analysis conclusion text, and generates a summary business report based on the data file, report template, and data collection dimensions. Various types of data generated during the processing are stored in the data layer, and the generated report is fed back to the user layer through the application layer. The infrastructure layer provides the operating environment support for the above layers.
[0088] The user layer is responsible for inputting configuration information, viewing and confirming reports, and human-computer interaction; the application layer is responsible for the encapsulation and scheduling of functional services such as periodic configuration, intelligent data retrieval, data processing, AI analysis, report generation, and summary management; the platform layer is responsible for the core processing of script adaptation, data extraction, mapping calculation, indicator analysis, report assembly, and classification and summarization; the data layer is responsible for the storage and management of business data, files, metadata, models, and rules; and the infrastructure layer is responsible for providing computing, storage, network, and security protection resources for system operation.
[0089] The user layer transmits configuration information, task instructions, and report data with the application layer; the application layer transmits function call instructions and processing result data with the platform layer; within the platform layer, time parameters, target data, data files, analysis conclusion text, and summary data are transmitted between periodic configuration, intelligent data retrieval, data processing, AI analysis, report generation, and summary management; the platform layer transmits data access instructions, target data, data files, and model and rule data with the data layer; and the data layer transmits data read / write instructions and operational status information with the infrastructure layer.
[0090] In this embodiment, the user layer includes at least a business supervisor's terminal, a management terminal, a system administrator's terminal, and a terminal device. The business supervisor's terminal is used to input configuration information corresponding to the business supervisor's permissions and to view and confirm order business operation reports; the management terminal is used to view summary business reports and perform approval operations; the system administrator's terminal is used to maintain data processing templates, report templates, preset analysis models, and preset business rule bases; and the terminal device is used to host the interactive interface of the above terminals. The user layer transmits the aggregated configuration information to the application layer.
[0091] The application layer includes at least a periodic configuration module, an intelligent data retrieval module, a data processing module, an AI analysis module, a report generation module, and a summary management module. These modules provide the user layer with functional service entry points for periodic configuration, intelligent data retrieval, data processing, AI analysis, report generation, and summary management, and forward function call requests to the corresponding core functional modules in the platform layer.
[0092] The core functional modules of the platform layer include at least periodic configuration, intelligent data retrieval, data processing, AI analysis, report generation, and summary management. The periodic configuration function parses the report generation cycle and generates corresponding time parameters, managing configuration rules and templates. The intelligent data retrieval function adapts the data retrieval script based on the time parameters and executes data extraction. The data processing function writes target data into a data processing template according to preset field mapping relationships, triggers built-in calculation formulas to execute data processing, and performs validation based on built-in constraints. The AI analysis function performs indicator calculations, trend analysis, and correlation analysis on data files, and outputs analysis conclusion text through natural language generation technology. The report generation function writes data files and analysis conclusion text into a report template and generates charts. The summary management function performs categorized summaries according to data aggregation dimensions and performs cross-business data consistency checks. The platform layer stores the data generated during processing in the data layer.
[0093] The data layer includes at least a business database, a file repository, a metadata database, a model repository, and a rule repository, which are used to store raw business data, data processing templates and report templates, configuration metadata, preset analysis models, and preset business rule bases, respectively. The infrastructure layer includes at least computing resources, storage resources, network resources, and security protection facilities, which are used to provide the operating environment for each layer of the system and ensure the security and continuity of data processing.
[0094] The report generation method provided in this application solves the technical problems in existing technologies where data retrieval, processing, analysis, generation, and summarization are fragmented and rely on manual coordination, resulting in low report generation efficiency and susceptibility to data retrieval deviations and data processing errors. This method obtains the report generation cycle, business supervisor permissions, data collection dimensions, data processing template, and report template, determines the target data retrieval script based on the report generation cycle, retrieves target data from the database corresponding to the business supervisor permissions based on the target data and data processing template, generates a data file based on the data file, report template, and data collection dimensions, and generates a summary business report.
[0095] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0096] Figure 2 Flowchart of the report generation method provided for this application Figure 1 ,like Figure 2 As shown, the report generation method in this embodiment can be specifically derived from... Figure 1 The overall system architecture shown is executed, and specifically, the method includes:
[0097] S201. Obtain the report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates.
[0098] This step is executed by the periodic configuration modules at the user and application layers. In this step, the report generation period is the time period configuration information that triggers report generation, such as daily, weekly, monthly, or quarterly; business supervisor permissions are the permission information representing the data access scope and report reception scope of each business supervisor; data aggregation dimensions are the dimension information used when classifying and summarizing individual business operation reports, such as business line dimensions or regional dimensions; the data processing template is a structured template file with built-in calculation formulas and constraints, such as a spreadsheet template; and the report template is a layout file containing preset table placeholders, preset text areas, and chart styles, such as a presentation template.
[0099] In this application, the period configuration module provides a visual configuration interface, supports drag-and-drop definition of report structure, and has a built-in period rule engine that automatically parses the report generation period and generates corresponding data retrieval time parameters. Configuration information is stored in a metadata database and supports dynamic updates. For example, when the report generation period is configured as a monthly report, the period rule engine automatically matches the start and end dates of the previous calendar month as the data retrieval time parameters. The above parsing method is merely illustrative and not limiting.
[0100] In one possible implementation, an operations staff member of a company selects a monthly report through the periodic configuration module. The system automatically identifies the data retrieval time parameter as the start and end dates of the previous calendar month. The staff member uploads a pre-set data processing template and report template, specifies the permissions and data collection dimensions of three business supervisors, and after completing the configuration, the process proceeds to S202.
[0101] Based on the above analysis, this step obtains the required cycle, permissions, dimensions, and templates for report generation in a unified, configurable manner. Configuration and execution are separated, and the report structure, data retrieval range, and output format are all visually defined and support dynamic updates. This provides a unified configuration-driven foundation for end-to-end automation, avoiding errors caused by manual adjustments periodically. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0102] S202. Determine the target data retrieval script based on the report generation cycle.
[0103] This step is executed by the platform's intelligent data retrieval function. In this step, the target data retrieval script is a script that matches the report generation cycle and is used to extract data from the database. The data retrieval time conditions in the script are automatically updated with the report generation cycle.
[0104] In this application, the intelligent data retrieval function incorporates a built-in script adaptive engine. It identifies date fields in the data retrieval script through regular expression matching and automatically replaces date conditions with the data retrieval time parameters parsed from S201, generating the target data retrieval script. For example, date conditions in the data retrieval script can be automatically replaced with the start and end dates corresponding to the current period, eliminating the need for manual script modifications period by period. The above adaptation method is merely illustrative and not limiting. It should be understood that regular expression matching is only one exemplary method for identifying date fields in the script. In practical applications, other methods such as script template placeholder replacement and structured query syntax tree parsing can also be used. The above example is merely illustrative and not limiting.
[0105] In one possible implementation, after the process is automatically triggered on a monthly cycle, the script adaptive engine replaces the date condition in the data retrieval script with the range of the current cycle from the previous cycle, and generates the target data retrieval script for the current month.
[0106] Based on the above analysis, this step utilizes a script adaptive engine to automatically identify and replace date conditions in the data retrieval script. This transforms the traditional manual modification of scripts periodically into automated processing, eliminating the risk of data retrieval deviations caused by manual date corrections and ensuring strict consistency between the data retrieval range and the reporting period. It should be understood that the above example is merely illustrative and not limiting.
[0107] S203. Based on the target data retrieval script, retrieve the target data corresponding to the business supervisor's permissions from the database.
[0108] This step is executed by the platform layer's intelligent data retrieval function. In this step, the database is a database that stores the original business data, which can include various types such as relational databases and distributed data warehouses; the target data is the original business data corresponding to the business manager's permissions, such as the business volume, target volume, start time, and completion time of each business order.
[0109] In this application, the intelligent data retrieval function executes the target data retrieval script through a unified database interface to extract target data corresponding to the business manager's permissions from different types of databases. The unified database interface masks the access differences between different types of databases and uses connection pooling technology to improve data retrieval efficiency. For example, database types may include MySQL, Oracle, Hive, etc., and the above types are only examples and are not limited.
[0110] In one possible embodiment, the intelligent data retrieval function executes the corresponding target data retrieval scripts according to the respective permissions of the three business supervisors, extracts the original data of the three business lines from the business database, and stores them in isolation according to the permissions of the business supervisors.
[0111] Based on the above analysis, this step controls the data retrieval scope through permissions. Each business manager can only access data corresponding to their permissions, ensuring clear data boundaries and preventing unauthorized access. A unified database interface decouples the data retrieval logic from the database type, allowing the system to quickly adapt to different enterprise data environments and providing strong scalability. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0112] S204. Generate a data file based on the target data and data processing template.
[0113] This step is performed by the platform-level data processing function. In this step, the data file is a standardized data file generated after the target data has been processed and validated using a data processing template.
[0114] In this application, the data processing function writes the target data into the target cells of the data processing template according to a preset field mapping relationship, resulting in a data table to be processed. Based on the built-in calculation formulas of the data processing template, it performs data processing on the data table to be processed, obtaining the processing result data. The processing result data is validated based on built-in constraints, and a data file is generated when the validation passes. Furthermore, data validation can be performed before the target data is written to the template; if the validation fails, an exception alarm is triggered, and the exception record and its corresponding exception type are marked. Detailed implementation of the above process can be found in subsequent sections. Figure 3 The description of the corresponding embodiments will not be repeated here.
[0115] In one possible embodiment, the target data for the three business lines are written into their respective data processing templates. The built-in operating cycle calculation formula and target achievement rate calculation formula in the templates are automatically calculated, and three standardized data files are generated after passing the built-in constraint verification.
[0116] Based on the above analysis, this step embeds the data processing logic into the data processing template. Data entry and verification are automatically triggered upon input, replacing manual data entry, calculation, and verification in spreadsheet tools. This ensures consistent processing standards and reproducible results, providing a standardized data foundation for subsequent analysis and report generation. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0117] S205. Generate a summary business report based on the data file, report template, and data aggregation dimensions.
[0118] This step is performed by the platform's report generation and summary management functions. In this step, the summary business report is a full-dimensional report generated after classifying and summarizing the individual business operation reports according to data aggregation dimensions.
[0119] In this application, the report generation function generates a single business operation report based on data files and report templates. This includes analyzing the data files to obtain analysis conclusion text, writing the data files into preset table placeholders in the report template and generating corresponding charts according to data types, and inserting the analysis conclusion text into preset text areas. The summary management function performs cross-business data consistency checks on each single business operation report before summarizing. After the checks pass, the reports are categorized and summarized according to data aggregation dimensions to generate a summary business report, which supports online approval and version management. Detailed implementation of the above process can be found in the following sections. Figure 4 , Figure 5 The description of the corresponding embodiments will not be repeated here.
[0120] In one possible embodiment, after the individual business operation reports of the three business managers are generated and confirmed, the summary management function performs cross-business data consistency verification. If the deviation is within the preset range, the verification passes, and the reports are summarized by business line dimension to generate company-wide notification materials, which are then released after online approval.
[0121] Based on the above analysis, this step integrates single-business report generation and multi-business aggregation into the same automated process. The report format is uniformly controlled by a template, and consistency checks are performed before aggregation. The entire process eliminates the need for manual data transfer across tools, significantly shortening the report generation cycle and ensuring accurate and consistent aggregation results. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0122] The report generation method provided in this application, by acquiring the report generation cycle, business supervisor permissions, data collection dimensions, data processing template, and report template, determines the target data retrieval script based on the report generation cycle, retrieves target data corresponding to the business supervisor permissions from the database based on the target data and data processing template, generates a data file based on the target data and data collection dimensions, and generates a summary business report based on the data file, report template, and data collection dimensions, automates the entire process of data retrieval, processing, analysis, report generation, and summarization. This solves the technical problems in the prior art where each link is isolated and relies on manual coordination, resulting in low report generation efficiency and susceptibility to data retrieval deviations and data processing errors.
[0123] Figure 3 Flowchart of the report generation method provided for this application Figure 2 ,like Figure 3 As shown, this embodiment provides a detailed explanation of the process of generating the data file in S204 above. This process can be specifically described by... Figure 1 The data processing function of the platform layer shown is executed; specifically, the method includes:
[0124] S301. Verify the target data and obtain the data verification result.
[0125] This step is performed by the platform-level data processing function. In this step, data validation is a check on the completeness and reasonableness of the target data before it is written into the data processing template; the data validation result indicates whether the target data passes the validation.
[0126] In this application, the data processing function performs data validation on the target data, including non-empty verification, numerical range verification, and outlier detection. In one possible embodiment, outlier detection may employ the 3σ criterion, and the outlier determination formula is as follows:
[0127]
[0128] Where X is the value of a single data point, μ is the mean of the target data, and σ is the standard deviation of the target data; when a data point satisfies Formula 1, it is determined to be an outlier. It should be understood that the 3σ criterion is only one exemplary method for outlier detection; in practical applications, box-line methods can also be used. Figure 4 For other anomaly detection methods such as quantile distance and isolated forest, the above formula is for demonstration purposes only and is not a limitation.
[0129] Furthermore, for data with missing values, a weighted completion method can be used. The formula for replacing missing values is as follows:
[0130]
[0131] Where X_fill is the replacement value for the missing value, M is the median of the target data, and ω_1 and ω_2 are weighting coefficients, the sum of which is 1. The weighting coefficients can be selected according to the data distribution characteristics. It should be understood that Formula 2 is only an exemplary method for missing value completion. In practical applications, mean filling, interpolation filling, etc. can also be used. The above formula is only for demonstration and is not a limitation.
[0132] In one possible embodiment, the target data of a certain business line is verified and it is found that the completion time of a business order is empty. The data verification result is that it fails and the process enters S302.
[0133] Based on the above analysis, this step sets up a pre-verification checkpoint before the data is written to the template. Abnormal data is intercepted or supplemented at the source, preventing dirty data from entering subsequent calculation stages and causing the entire report to be distorted. This ensures the accuracy of the report data from the data entry point. It should be understood that the above example is only for demonstration purposes and is not a limitation.
[0134] S302. When the data verification result is unsuccessful, trigger an exception alarm and mark the exception record and the corresponding exception type.
[0135] This step is executed by the platform-level data processing function, and the anomaly alarm information is fed back to the user layer via the application layer. In this step, the abnormal record is the data record marked when data validation fails; the anomaly type is the anomaly category corresponding to the abnormal record, such as missing field, out-of-bounds value, outlier, etc.
[0136] In this application, when the data verification result fails, the data processing function triggers an anomaly alarm, locates and marks the abnormal record and its corresponding anomaly type, and prompts business personnel to verify and correct it. After the data is corrected, the S301 data verification is re-executed until the verification passes. It should be understood that the triggering form of the anomaly alarm can be a pop-up reminder, message push, etc., and the granularity of the anomaly type classification can be adjusted according to business needs. The above methods are only examples and are not limited.
[0137] In one possible implementation, the system triggers an alarm for a business order with an empty completion time and marks the exception type as missing field. After the business personnel verify and supplement the data, the data verification is re-executed. If the verification passes, the process enters S303.
[0138] Based on the above analysis, this step forms a closed loop for the discovery, location, and correction of abnormal data. The marking of abnormal records and types makes problems traceable and statistically significant. Compared to manually verifying raw data, the efficiency and accuracy of abnormal location are significantly improved. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0139] S303. According to the preset field mapping relationship, write the target data into the target cell of the data processing template to obtain the data table to be processed.
[0140] This step is performed by the platform-level data processing function. In this step, the preset field mapping relationship is the correspondence between the fields of the target data and the target cells of the data processing template; the data table to be processed is the data table formed after the target data is written into the template, but which has not yet triggered calculations.
[0141] In this application, the data processing function, based on a preset field mapping relationship, writes the validated target data field by field into the target cell of the data processing template to obtain a data table to be processed. For example, the preset field mapping relationship can be configured by the user through a visual interface during the periodic configuration phase and stored in a metadata database to support dynamic updates; when the field structure of the target data changes, only the mapping relationship needs to be adjusted without modifying the program. The above configuration method is merely an example and not a limitation.
[0142] In one possible embodiment, fields such as the total number of business orders, target quantity, start time and completion time of each stage in the target data of a certain business line are written into the corresponding target cells in the data processing template according to the preset field mapping relationship, forming the data table to be processed for that business line.
[0143] Based on the above analysis, this step decouples data from the template through field mapping. When the template structure is adjusted or data fields change, only the mapping configuration needs to be maintained, avoiding the inefficient operation of manually pasting data cell by cell and the risk of pasting misalignment. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0144] S304. Based on the built-in calculation formula of the data processing template, perform data processing on the data table to be processed and obtain the processing result data.
[0145] This step is performed by the platform-level data processing function. In this step, the built-in calculation formula is a pre-configured calculation formula in the data processing template. The calculation is automatically triggered after the target data is written into the target cell; the processing result data is the indicator data obtained after processing by the built-in calculation formula.
[0146] In this application, the calculation formulas built into the data processing template may include operational efficiency, target achievement, and quality calculation formulas. In one possible embodiment, the calculation formula for the operational cycle is as follows:
[0147]
[0148] Where T_c is the operating cycle, t_end,j is the completion time of each stage of the j-th business order, t_start,j is the start time of each stage of the j-th business order, and N is the total number of business orders. The formula for calculating the target achievement rate is as follows:
[0149]
[0150] Where R_a represents the target achievement rate, V_actual represents the actual completed amount, and V_target represents the target completed amount. Furthermore, it can also include derived calculation formulas such as process efficiency ratio, business order qualification rate, cumulative achievement rate, and month-on-month fluctuation, which will not be elaborated here. It should be understood that Formulas 3 and 4 are merely exemplary paradigms of the built-in calculation formulas. In actual applications, other calculation formulas can be configured according to business needs. The above formulas are only for demonstration and are not limiting.
[0151] In one possible embodiment, after the pending data table of a certain business line is written, the template automatically calculates the target achievement rate and operating cycle of the business line: the actual completed volume is 1200 orders, the target volume is 1250 orders, the target achievement rate is 96%; the total time spent in each stage corresponds to an operating cycle of 4.
[0152] Based on the above analysis, this step solidifies the indicator calculation logic into a formula within the data processing template. Calculations are automatically completed upon data input, and the calculation criteria are consistent across the entire enterprise, eliminating the risk of errors from manual calculations. The template-based formula configuration method ensures that adjustments to indicator criteria do not require program modifications, balancing standardization and flexibility. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0153] S305. The processing result data is validated based on the built-in constraints of the data processing template. When the validation passes, a data file is generated.
[0154] This step is performed by the platform-level data processing function. In this step, the built-in constraints are the pre-configured validation rules in the data processing template, used to validate the reasonableness of the processed data; the data file is a standardized data file generated after the validation is passed.
[0155] In this application, the data processing function performs secondary verification on the processed data based on built-in constraints. These built-in constraints may include numerical range constraints, non-negativity constraints, and logical constraints between indicators, such as the target achievement rate not exceeding a preset upper limit, the operating cycle being a non-negative value, and the sum of the time consumed in each stage being consistent with the total operating cycle. A data file is generated when the verification passes; an alarm is triggered and a verification prompt is displayed when the verification fails. It should be understood that the above constraints are merely illustrative and can be added or removed according to business rules in actual applications. The above example is for illustrative purposes only and is not intended to limit the scope of the application.
[0156] In one possible embodiment, the processing results data of the three business lines are respectively verified by built-in constraints, generating three standardized data files, which are then written to the file repository of the data layer for subsequent AI analysis functions to read.
[0157] Based on the above analysis, it can be seen that this step sets up a secondary verification checkpoint at the output of the calculation results, forming a double check with the input verification of S301. Even if an anomaly occurs in the formula calculation stage, it can be intercepted, ensuring the accuracy and reliability of the data files output to the analysis and reporting stages. It should be understood that the above example is only for demonstration and is not a limitation.
[0158] This application embodiment transforms the data processing process from manual cross-tool operation to a template-driven automated pipeline by combining data verification, abnormal alarm marking, field mapping writing, automatic processing of built-in formulas, and secondary verification of built-in constraints. The dual verification mechanism at the inlet and outlet ensures the accuracy of the data file, solving the technical problems of data processing relying on manual labor, being prone to loss, formatting errors, and calculation errors in the prior art.
[0159] Figure 4 Flowchart of the report generation method provided for this application Figure 3 ,like Figure 4 As shown, this embodiment provides a detailed explanation of the process of generating a single business operation report in S205 above. This process can be specifically carried out by... Figure 1 The AI analysis and report generation functions of the platform layer are executed. Specifically, the method includes:
[0160] S401. Call the preset analysis model to calculate the indicators of the data file and obtain the indicator calculation results.
[0161] This step is performed by the AI analysis function at the platform layer. In this step, the preset analysis model is a pre-configured analysis model used to calculate indicators for the data file; the indicator calculation results are various indicator data obtained from the data file, such as target achievement rate, growth rate, and percentage of time spent in each step.
[0162] In this application, the AI analysis function reads the data file generated in S305, calls the preset analysis model to calculate indicators, and presets analysis dimensions for different operational scenarios, such as periodic comparison, target achievement rate, and abnormal fluctuation warning. For example, the preset analysis model may include an achievement rate calculation model, a growth rate calculation model, and a process proportion calculation model. Its calculation methods are consistent with the calculation formulas built into the data processing template, as shown in Formulas 3 and 4 in S304 above. The preset analysis model is stored in the model library of the data layer and supports expansion according to business scenarios. It should be understood that the above analysis models and analysis dimensions are merely illustrative and not limiting.
[0163] In one possible embodiment, the AI analysis function reads the data files of the three business lines respectively and calculates the target achievement rate, operation cycle and time consumption ratio of each link for each business line.
[0164] Based on the above analysis, this step replaces the experience-based indicator calculations of business personnel with a pre-defined analytical model. The indicator calculation criteria are consistent with the data processing stage, the calculation process is automated, and the results are reproducible, providing standardized indicator inputs for subsequent trend and correlation analysis. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0165] S402. The trend analysis algorithm is used to calculate the indicator calculation results to obtain the indicator fluctuation characteristics.
[0166] This step is performed by the platform-level AI analysis function. In this step, the trend analysis algorithm is used to identify the trend of the indicator over time; the indicator fluctuation characteristics are features that characterize the trend and fluctuation of the indicator over time.
[0167] In this application, the AI analysis function uses a time series smoothing algorithm to smooth the calculated results of the indicators and identify the changing trends of the indicators. In one possible embodiment, the time series smoothing algorithm can be expressed by the following formula:
[0168]
[0169] Where S_t is the smoothed value in period t, and X_t is the actual value of the index in period t. For the first The smoothing value for the period is α, where α is the smoothing coefficient. For example, α can take values in the range of 0.3 to 0.7. The larger the smoothing coefficient, the more sensitive the smoothing result is to recent data. The above values are only examples and are not limited.
[0170] Furthermore, a linear trend prediction algorithm can be used to make short-term predictions for the indicator. The prediction formula is as follows:
[0171]
[0172] Where Y_(t+k) is the predicted value of the indicator in period t+k, t is the current period, k is the number of prediction periods, and a and b are fitting parameters, obtained by fitting the indicator values of historical periods according to the least squares principle. It should be understood that formulas 5 and 6 are only exemplary paradigms of trend analysis algorithms. In practical applications, other trend analysis methods such as moving average and exponentially weighted moving average can also be used. The above formulas are only for demonstration and are not limited.
[0173] Furthermore, the AI analysis function can also provide early warnings for abnormal fluctuations in indicators. The threshold for these early warnings can be determined using the following formula:
[0174]
[0175] Where θ is the fluctuation warning threshold, μ and σ are the mean and standard deviation of the historical data of the indicator, respectively, and β is the warning coefficient, which can be selected according to the business risk level. When the absolute value of the difference between the actual value of the indicator and μ is greater than θ, it is judged as abnormal fluctuation and a warning is triggered. For example, β can be selected in the range of 1.5 to 2.5. The above values are only examples and are not limited.
[0176] In one possible embodiment, after time series smoothing, the operating cycle of a certain business line was identified as decreasing by 0.5 compared to the previous cycle, indicating a downward trend; the fluctuation characteristics showed that the change was within the normal fluctuation range and did not trigger an abnormal fluctuation warning.
[0177] Based on the above analysis, this step extracts trend and volatility information from single-period indicators using smoothing and trend prediction algorithms, transforming isolated indicator values into interpretable volatility characteristics. Coupled with an early warning mechanism, this eliminates reliance on subjective judgment by business personnel for identifying indicator changes. It should be understood that the above example is merely illustrative and not limiting.
[0178] S403. Calculate the degree of correlation between each indicator in the indicator calculation results using the correlation analysis algorithm to obtain the indicator analysis results.
[0179] This step is performed by the AI analysis function at the platform layer. In this step, the correlation analysis algorithm is used to calculate the degree of correlation between various indicators; the indicator analysis result is a comprehensive analysis result that includes the indicator fluctuation characteristics and the degree of correlation between each indicator.
[0180] In this application, the AI analysis function uses the Pearson correlation coefficient algorithm to calculate the degree of correlation between the indicators in the calculation results. In one possible embodiment, the Pearson correlation coefficient can be expressed by the following formula:
[0181]
[0182] Where r is the correlation coefficient between the two indicators, X and Y are the values of the two indicators in each period, and n is the number of sample periods; the larger the absolute value of r, the stronger the correlation between the two indicators. It should be understood that the Pearson correlation coefficient is only an exemplary method of association analysis algorithm. In practical applications, association analysis methods suitable for non-normally distributed data, such as the Spearman rank correlation coefficient, can also be used. The above formula is only for demonstration and is not a limitation.
[0183] In one possible embodiment, the time spent on the data review process in a certain business line decreased from 30% in the previous cycle to 25%. The AI analysis function calculated that the correlation coefficient between this and the reduction in the operating cycle was 0.85, indicating a strong correlation between the two. That is, the efficiency improvement of the data review process is the main related factor for the shortening of the operating cycle.
[0184] Based on the above analysis, this step quantifies the correlation between indicators using correlation coefficients, enabling the report's conclusions to answer the question, "What factors drive the changes in these indicators?" The conclusions are supported by data rather than empirical speculation, providing a basis for generating objective analytical conclusions. It should be understood that the above example is merely illustrative and not limiting.
[0185] S404. Based on the indicator analysis results and the preset business rule base, obtain the analysis conclusion text.
[0186] This step is performed by the AI analysis function at the platform layer. In this step, the preset business rule base is a knowledge base that stores business judgment rules, such as rules for determining target achievement and rules for warning of abnormal fluctuations; the analysis conclusion text is a conclusion text that converts the indicator analysis results into natural language expression.
[0187] In this application, the AI analysis function matches the indicator analysis results with rules in a preset business rule base to determine the key conclusions, and then uses natural language generation technology to convert these key conclusions into analytical conclusion text. For example, natural language generation can be implemented using a fine-tuned pre-trained language model, such as a BERT-like model; the above model type is merely an example and not a limitation. Furthermore, to ensure the reliability of the conclusions, a confidence score can be calculated for the generated analytical conclusion text, using the following formula:
[0188]
[0189] Where C represents the confidence level of the conclusion, m is the index number, w_m is the index weight of the m-th index, and A_m is the analytical accuracy of the m-th index, which is the proportion of correct analyses in the historical analysis of that index to the total number of analyses. For example, the index weight can be determined using the analytic hierarchy process (AHP). The above method is merely illustrative and not limiting. It should be understood that Formula 9 is only an exemplary method for calculating the confidence level of the conclusion. In practical applications, other reliability measures such as rule coverage and manual sampling pass rate can also be used. The above formula is merely illustrative and not limiting.
[0190] In one possible embodiment, after the indicator analysis results of a certain business line are matched with the business rule base, the generated analysis conclusion text is: The average operating cycle this month is 4, which is 0.5 less than last month. The target achievement rate is 96%, which does not meet the target. The shortening of the cycle is mainly due to the improved efficiency of the data review process. It is recommended to promote the optimization experience of this process.
[0191] Based on the above analysis, this step transforms the indicator analysis results into readable conclusion text through business rule matching and natural language generation. The conclusions are driven by both data and rules, ensuring strong objectivity and consistent standards. The confidence level mechanism provides a quantitative measure of the reliability of the conclusions, facilitating acceptance and review by business managers. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0192] S405. Write the data file into the preset table placeholders in the report template, and generate the corresponding charts according to the data file data type to obtain the report chart page.
[0193] This step is performed by the report generation function at the platform level. In this step, the preset table placeholders are pre-set table position identifiers in the report template used to write the content of the data file; the report chart page is the report page obtained after the data file is written to the preset table placeholders and the corresponding charts are generated.
[0194] In this application, the report generation function writes the indicator data from the data file into preset table placeholders in the report template, and adaptively generates corresponding charts based on the data type of the data file. The data and charts are updated in tandem, and the charts are automatically modified when the data is adjusted. For example, trend data can be generated as a line chart, percentage data as a pie chart, and comparison data as a bar chart. The layout, logos, and font styles of the report template can be customized. The above chart types and configuration methods are only examples and are not limited.
[0195] In one possible embodiment, after the data file of a certain business line is written into the report template, a trend line chart of each operating cycle of the business line and a pie chart of the time consumption of each link are automatically generated, which constitute the report chart page of the business line.
[0196] Based on the above analysis, this step automates the manual typesetting and chart creation process through template-driven and adaptive chart generation mechanisms. This ensures a standardized report format, strict consistency between data and charts, and eliminates the risks of data misalignment and formatting errors associated with manual chart creation. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0197] S406. Insert the analysis conclusion text into the preset text area in the report chart page to obtain a single business operation report corresponding to the business supervisor's authority.
[0198] This step is performed by the platform-level report generation function. In this step, the preset text area is a pre-defined area in the report's chart page used to insert analysis conclusion text; the single-business operation report is an operation report for a single business manager with limited authority.
[0199] In this application, the report generation function inserts the analysis conclusion text generated by S404 into a preset text area in the report chart page, resulting in a single-business operation report corresponding to the business manager's permissions. The report is then fed back to the corresponding business manager's user terminal via the application layer, supporting online fine-tuning and confirmation by the business manager. When the business manager adjusts the data in the report, the analysis conclusion text and charts are updated in tandem. It should be understood that online fine-tuning and confirmation are only an exemplary interaction method. In actual applications, it can also be configured to be automatically generated and directly archived. The above method is only for demonstration and is not limited.
[0200] In one possible embodiment, the analysis conclusions of each of the three business lines are inserted into the text area of the corresponding report chart page to generate three single business operation reports. The three business managers can view, fine-tune, and confirm these reports online within their respective permissions.
[0201] Based on the above analysis, this step automates the assembly of data, charts, and conclusions. Single-business operation reports are accurately delivered to the corresponding business managers according to their permissions, requiring only manual confirmation or minor adjustments. This significantly improves report generation efficiency and standardization. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0202] This application's embodiments transform indicator analysis from manual experience-based judgment into an intelligent process driven by algorithms, constrained by rules, and outputting natural language through a combination of indicator calculation, trend analysis, correlation analysis, conclusion generation, and automatic report assembly. The generation of single business operation reports eliminates the need for manual charting and drafting, ensuring objective conclusions, uniform format, and consistent linkage between data and conclusions. This solves the technical problems of strong subjectivity in indicator analysis and low report compilation efficiency in existing technologies.
[0203] Figure 5 Flowchart of the report generation method provided for this application Figure 4 ,like Figure 5As shown, this embodiment provides a detailed explanation of the process of generating the summary report in S205 above. This process can be specifically described by... Figure 1 The platform layer's summary management function is executed; specifically, this method includes:
[0204] S501. Generate a single business operation report based on the data file and report template.
[0205] This step is executed by the platform-level report generation function, and the generated single-business operation reports are then aggregated by the summary management function. In this step, the single-business operation report is an operation report oriented towards a single business manager's authority; its generation process can be found above. Figure 4 The description of the corresponding embodiments will not be repeated here.
[0206] In this application, the summary management function aggregates the single-business operation reports corresponding to the permissions of each business supervisor, along with their associated data files and analysis conclusion texts, and retains detailed data links for each business line, supporting subsequent traceability queries. It should be understood that the aggregation method can be scheduled batch aggregation or real-time aggregation after report generation; the above methods are merely examples and not limitations.
[0207] In one possible embodiment, after the individual business operation reports of the three business lines are confirmed online by the corresponding business supervisors, the summary management function aggregates the three reports and their detailed data links.
[0208] Based on the above analysis, this step completes the centralized collection of each individual business report and retains detailed data links before aggregation. All inputs required for aggregation are complete and traceable, providing a complete data foundation for subsequent consistency verification and classification aggregation. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0209] S502. Perform cross-business data consistency verification on each individual business operation report.
[0210] This step is performed by the platform-level aggregation and management function. In this step, cross-business data consistency verification is the process of logically verifying the consistency of data between single-business operation reports corresponding to different business supervisor permissions.
[0211] In this application, the summary management function incorporates data conflict detection rules to verify whether the deviation between the sum of data from each business line and the total data is within a preset deviation range. In one possible embodiment, the deviation rate can be expressed by the following formula:
[0212]
[0213] Where D is the deviation rate, m is the business line number, D_m is the data value of the m-th business line, and D_total is the total data value. The verification is considered successful when D does not exceed the preset deviation threshold. For example, the preset deviation threshold can be 1%, but in actual applications it can be adjusted according to the data collection accuracy requirements. The above values are merely examples and not limitations.
[0214] Furthermore, cross-cycle consistency checks can be performed to eliminate misjudgments caused by changes in industry trends. The cross-cycle deviation rate can be expressed by the following formula:
[0215]
[0216] Where D_c is the cross-period deviation rate, D_cur is the summary data value for the current period, D_prev is the summary data value for the previous period, and g is the industry growth rate. When D_c exceeds the preset cross-period deviation threshold, the data is determined to be abnormal and manual verification is prompted. It should be understood that Formulas 10 and 11 are only exemplary paradigms for consistency verification. In actual applications, other verification methods such as absolute deviation verification and month-on-month fluctuation verification can also be used. The above formulas are only for demonstration and are not limiting.
[0217] In one possible embodiment, the summary management function calculates that the deviation rate between the total actual completed amount of the three business lines and the total data is 0.2%, which does not exceed the preset deviation threshold, and the verification is passed.
[0218] Based on the above analysis, this step performs automated cross-business consistency checks on each business report before aggregation, transforming the existing work of managers repeatedly verifying each report into rule-driven automated verification. The verification standards are quantified and standardized, preventing inconsistent data from entering the aggregated report. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0219] S503. When the verification fails, a verification reminder is triggered.
[0220] This step is executed by the platform-level aggregation and management function, and the verification reminder is fed back to the user level through the application layer. In this step, the verification reminder is a notification message prompting relevant personnel to verify inconsistent data.
[0221] In this application, when cross-business data consistency verification fails, the summary management function triggers a verification reminder, identifies the business lines and data items with logical contradictions, and prompts manual verification. After relevant personnel verify and correct the issues, the cross-business data consistency verification of S502 is re-executed until the verification passes. It should be understood that the verification reminder can be triggered in the form of pop-up reminders, message pushes, etc. The above methods are only examples and are not limited.
[0222] In one possible implementation, a verification process may discover a logical contradiction in the operational data of two business lines. The summary management function will trigger a verification reminder and mark the contradictory data items. After the business personnel verify and correct the data, the verification will pass again.
[0223] Based on the above analysis, this step prevents data that fails validation from directly entering the aggregation stage. This anomaly handling forms a closed loop of "reminder—correction—review," ensuring the consistency and reliability of the data foundation in the aggregation report. It should be understood that the above example is for illustrative purposes only and is not a limitation.
[0224] S504. Classify and summarize the operational reports of each business according to the data collection dimensions, and generate a summary report.
[0225] This step is executed by the platform-level aggregation and management function. In this step, the aggregation report is a full-dimensional report generated after classifying and summarizing the individual business operation reports according to the data aggregation dimensions, and can be used as full-scale reporting material.
[0226] In this application, the summary management function uses a multi-source data fusion engine to classify and summarize the data and analysis conclusions of each individual business operation report according to the data aggregation dimension, generating a summary report. The summary report retains the detailed data links of each business line, supports traceability queries, and supports online approval and version management. In one possible embodiment, all indicators can be summarized using a weighted average method, and the weighted average formula is as follows:
[0227]
[0228] in, T_m represents the weighted average of all indicators, T_m represents the indicator value of the m-th business line, and ω_m represents the weight of the business volume proportion of the m-th business line. Furthermore, multi-dimensional performance evaluation can also be achieved using formulas such as comprehensive performance score and business line contribution, which will not be elaborated here. It should be understood that Formula 12 is only an exemplary method of weighted aggregation. In practical applications, other aggregation methods such as arithmetic mean and median can also be used. The above formula is only for demonstration and is not a limitation.
[0229] In one possible implementation, the summary management function summarizes the three single business operation reports according to the business line dimension: the overall target achievement rate is about 96.8%, the weighted average operating cycle is about 3.83, and a full notification material containing details of each business line, summary data, trend analysis and optimization suggestions is generated and released after online approval.
[0230] Based on the above analysis, this step automatically categorizes and summarizes multi-business data according to the aggregation dimension. The summary criteria are consistent, the process is traceable, and the summary report supports online approval and version management. This compresses the multi-day work of traditional manual summary and verification into an automated process, significantly improving summary efficiency and data consistency. It should be understood that the above example is for demonstration purposes only and is not a limitation.
[0231] This application embodiment transforms the process of multi-business aggregation from repetitive manual verification to automated verification and aggregation pipeline processing by combining single-business report collection, cross-business data consistency verification, verification reminder closed loop, and dimension-based classification and aggregation. Data that fails verification cannot enter the aggregation stage, and the aggregation results are accurate, consistent, and traceable. This solves the technical problems of existing technologies where multi-business aggregation relies on manual verification, is time-consuming, labor-intensive, and prone to errors.
[0232] Figure 6 A schematic diagram of a report generation device provided in this application is shown below. Figure 6 As shown, the report generation device 60 provided in this embodiment includes:
[0233] Module 601 is used to obtain the report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates.
[0234] Module 602 is used to determine the target data retrieval script based on the report generation cycle;
[0235] The data retrieval module 603 is used to retrieve target data corresponding to the business supervisor's permissions from the database according to the target data retrieval script;
[0236] The first generation module 604 is used to generate a data file based on the target data and the data processing template;
[0237] The second generation module 605 is used to generate a summary business report based on the data file, report template, and data aggregation dimensions.
[0238] In one possible implementation, the acquisition module 601 is specifically used to provide a visual configuration interface, which supports defining the report structure by dragging and dropping, has a built-in periodic rule engine, automatically parses the report generation period and generates the corresponding data retrieval time parameters; the configuration information is stored in a metadata database and supports dynamic updates.
[0239] In one possible implementation, module 602 is specifically used to identify the date field in the data retrieval script using regular expression matching through a script adaptive engine, and automatically replace the date condition with the data retrieval time parameter to generate the target data retrieval script. It should be understood that regular expression matching is only one exemplary method for identifying date fields. In practical applications, other methods such as templated placeholder replacement and structured query syntax tree parsing can also be used. The above example is merely illustrative and not limiting.
[0240] In one possible implementation, the data retrieval module 603 is specifically used to execute the target data retrieval script through a unified database interface, retrieve the target data corresponding to the business manager's permissions from the database, the unified database interface shields the access differences between different types of databases, and uses connection pooling technology to improve data retrieval efficiency; the target data is isolated according to the business manager's permissions, and each business manager can only retrieve the data corresponding to their permissions.
[0241] In one possible implementation, the first generation module 604 is specifically used to write the target data into the target cell of the data processing template according to the preset field mapping relationship to obtain the data table to be processed; perform data processing on the data table to be processed based on the built-in calculation formula of the data processing template to obtain the processing result data; and verify the processing result data based on the built-in constraints of the data processing template. When the verification passes, a data file is generated.
[0242] In one possible implementation, the first generation module 604 is further configured to validate the target data before writing it into the target cell, and obtain a data validation result; if the data validation result is unsuccessful, an exception alarm is triggered, and the exception record and its corresponding exception type are marked; if the data validation result is successful, the process of writing the target data into the target cell of the data processing template according to a preset field mapping relationship is executed. For example, data validation may include non-empty validation, numerical range validation, and outlier detection. Outlier detection may employ the 3σ criterion, as detailed in Formula 1 of the above method embodiments. The above method is merely illustrative and not limiting.
[0243] In one possible implementation, the second generation module 605 is specifically used to generate a single business operation report based on the data file and the report template; and to classify and summarize each single business operation report according to the data collection dimension to generate a summary report.
[0244] In one possible implementation, the second generation module 605 is further used to analyze the data file to obtain analysis conclusion text; write the data file into the preset table placeholder in the report template, and generate corresponding charts according to the data type of the data file to obtain the report chart page; insert the analysis conclusion text into the preset text area in the report chart page to obtain a single business operation report corresponding to the business supervisor's permissions.
[0245] In one possible implementation, the second generation module 605 is further configured to call a preset analysis model to calculate indicators in the data file, obtaining indicator calculation results; calculate the indicator calculation results using a trend analysis algorithm to obtain indicator fluctuation characteristics; calculate the degree of correlation between indicators in the indicator calculation results using a correlation analysis algorithm to obtain indicator analysis results; and obtain analysis conclusion text based on the indicator analysis results and a preset business rule base. For example, the specific forms of the trend analysis algorithm and the correlation analysis algorithm can be found in formulas 5 to 8 in the above method embodiments. These algorithms are merely illustrative and not limiting.
[0246] In one possible implementation, the second generation module 605 is further configured to perform cross-business data consistency verification on each individual business operation report before classification and summarization; if the verification fails, a verification reminder is triggered, and the cross-business data consistency verification is re-executed until the verification passes; if the verification passes, the process of classifying and summarizing each individual business operation report according to the data aggregation dimension is performed to generate a summary report. For example, cross-business data consistency verification can use deviation rate verification, as detailed in Formula 10 in the above method embodiments. This method is merely illustrative and not limiting.
[0247] The report generation device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0248] Figure 7 A schematic diagram of the structure of the electronic device provided in this application. Figure 7 As shown, the electronic device 70 provided in this embodiment includes at least one processor 701 and a memory 702. Optionally, the device 70 further includes a communication component 703. The processor 701, memory 702, and communication component 703 are connected via a bus 704.
[0249] In a specific implementation, at least one processor 701 executes computer execution instructions stored in memory 702, causing at least one processor 701 to perform the above-described method.
[0250] The specific implementation process of processor 701 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0251] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0252] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0253] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0254] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0255] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0256] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0257] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0258] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0259] In addition, 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.
[0260] If a function 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 this invention, or the part that contributes to the prior art, or a 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 of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0261] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0262] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0263] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0264] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A report generation method, characterized in that, The method includes: Obtain information on report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates; Based on the aforementioned report generation cycle, determine the target data retrieval script; According to the target data retrieval script, retrieve the target data corresponding to the business supervisor's permissions from the database; Based on the target data and the data processing template, a data file is generated; A summary business report is generated based on the data file, the report template, and the data aggregation dimensions.
2. The method according to claim 1, characterized in that, The step of generating a data file based on the target data and the data processing template includes: According to the preset field mapping relationship, the target data is written into the target cell of the data processing template to obtain the data table to be processed; Based on the built-in calculation formula of the data processing template, data processing is performed on the data table to be processed to obtain the processing result data; The processing result data is validated based on the built-in constraints of the data processing template. When the validation passes, a data file is generated.
3. The method according to claim 2, characterized in that, Before writing the target data into the target cell of the data processing template according to the preset field mapping relationship, the method further includes: The target data is verified to obtain the data verification result; When the data verification result is unsuccessful, an anomaly alarm is triggered, and the anomaly record and the corresponding anomaly type are marked. When the data verification result is successful, the process of writing the target data into the template cell of the data processing template according to the preset field mapping relationship is performed.
4. The method according to claim 1, characterized in that, The step of generating a summary business report based on the data file, the report template, and the data aggregation dimensions includes: Generate a single business operation report based on the data file and the report template; The individual business operation reports are categorized and summarized according to the data aggregation dimensions to generate a summary report.
5. The method according to claim 4, characterized in that, The step of generating a single business operation report based on the data file and the report template includes: The data file is analyzed to obtain the analysis conclusion text; Write the data file into the preset table placeholder in the report template, and generate corresponding charts according to the data type of the data file to obtain the report chart page; Insert the analysis conclusion text into the preset text area in the report chart page to obtain the single business operation report corresponding to the business supervisor's authority.
6. The method according to claim 5, characterized in that, The analysis of the data file to obtain the analysis conclusion text includes: The preset analysis model is invoked to calculate the indicators of the data file, and the indicator calculation results are obtained; The trend analysis algorithm is used to calculate the results of the indicator calculation to obtain the indicator fluctuation characteristics; The correlation degree between the indicators in the indicator calculation results is calculated by using a correlation analysis algorithm to obtain the indicator analysis results; Based on the analysis results of the aforementioned indicators and the preset business rule base, the analysis conclusion text is obtained.
7. The method according to claim 4, characterized in that, Before classifying and summarizing each of the single business operation reports according to the data aggregation dimensions, the method further includes: Perform cross-business data consistency verification on each of the aforementioned single-business operation reports; If the verification fails, a verification reminder is triggered, and the cross-business data consistency verification is re-executed until the verification passes. Upon successful verification, the process of classifying and summarizing each of the individual business operation reports according to the data aggregation dimension and generating a summary report is performed.
8. A report generation device, characterized in that, The device includes: The acquisition module is used to obtain the report generation cycle, business supervisor permissions, data collection dimensions, data processing templates, and report templates. The determination module is used to determine the target data retrieval script based on the report generation cycle; The data retrieval module is used to retrieve target data corresponding to the business supervisor's permissions from the database according to the target data retrieval script; The first generation module is used to generate a data file based on the target data and the data processing template; The second generation module is used to generate a summary business report based on the data file, the report template, and the data aggregation dimensions.
9. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
