Data reporting method, device, equipment, medium and program product
An automated data reporting method that generates report text data by filtering and cleaning data clusters solves the problem of complex data reporting operations in existing technologies, and simplifies the data reporting process while improving accuracy.
Patent Information
- Application Number
- CN202511778466.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-03-03
AI Technical Summary
Existing technologies involve complex data reporting operations that require engineers to develop custom code, resulting in a high barrier to entry.
This paper provides a data reporting method that, by responding to data reporting instructions, filters target data sources from multiple preset data sources, queries the data to be reported, and categorizes data of the same data type into data clusters for data cleaning, and finally generates report text data for reporting, thus eliminating the dependence on engineers writing code.
It reduces the complexity of data reporting operations, automates the data reporting process, improves the accuracy and portability of data reporting, and adapts to diverse enterprise reporting needs.
Smart Images

Figure CN121597672A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of big data technology, and in particular to a data reporting method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of the times, enterprises' needs for data reports are becoming increasingly diverse. Therefore, data from multiple databases is often required to meet the needs of generating enterprise data reports. As a result, data reporting technology has emerged.
[0003] Currently, common data reporting technologies require engineers to develop custom code, which presents a certain operational barrier and results in high complexity in data reporting operations. Summary of the Invention
[0004] Therefore, it is necessary to provide a data reporting method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can reduce the operational complexity of data reporting in order to address the above-mentioned technical problems.
[0005] Firstly, this application provides a data reporting method, the method comprising:
[0006] In response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction;
[0007] According to the data reporting instruction, query the data to be reported in the target data source;
[0008] Multiple data to be reported that belong to the same data type are grouped into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data;
[0009] The report text data is generated based on the cleaning data, and the report text data is then submitted.
[0010] As one embodiment, the data cleaning of the data cluster to obtain cleaned data includes at least one of the following:
[0011] The data in the data cluster, except for the data to be reported with the largest indicator value, is cleared to obtain cleaned data;
[0012] The data feature values corresponding to each data to be reported in the data cluster are determined as the cleaned data;
[0013] According to the data source corresponding to each data to be reported in the data cluster, the data cluster is split to obtain each batch of split data, and each of the split data is determined as the cleaned data.
[0014] As one embodiment, the method further includes at least one of the following:
[0015] If multiple first data to be reported among the data to be reported belong to the same data source, then it is determined that each of the first data to be reported belongs to the same data type.
[0016] If multiple second data points to be reported belong to the same data description indicator among the data to be reported, then it is determined that each second data point to be reported belongs to the same data type.
[0017] As one embodiment, the step of generating report text data based on the cleaning data includes:
[0018] Obtain the first data type of the cleaned data, and the preset second data type;
[0019] Based on the first data type and the second data type, the cleaned data is converted into a data format to obtain converted data;
[0020] The report text data is generated based on the transformed data.
[0021] As one embodiment, the step of querying the data to be reported in the target data source according to the data reporting instruction is executed by the data source query plugin; the step of classifying multiple data to be reported belonging to the same data type into the same data cluster, and cleaning the data cluster for each data cluster to obtain cleaned data is executed by the data cleaning plugin; the step of generating report text data based on the cleaned data and reporting the report text data is executed by the text reporting plugin.
[0022] The method further includes:
[0023] The first plugin identifier of the data source query plugin, the second plugin identifier of the cleaning plugin, and the third plugin identifier of the text reporting plugin are combined to obtain a combined plugin identifier;
[0024] Associate the combined plug-in identifier with the data reporting identifier corresponding to the data reporting instruction.
[0025] As one embodiment, the method further includes at least one of the following:
[0026] If a user's report query operation for each preset data source is detected, a data reporting instruction is generated based on the report query operation.
[0027] If the time conditions for periodic reports corresponding to each preset data source are detected, a data reporting instruction is generated based on the time conditions for periodic reports.
[0028] Secondly, this application also provides a data reporting device, comprising:
[0029] The data filtering module is used to respond to a data reporting instruction, filter a target data source from multiple preset data sources according to the data reporting instruction, and query the data to be reported in the target data source according to the data reporting instruction.
[0030] The data cleaning module is used to classify multiple data to be reported that belong to the same data type into the same data cluster, and to clean the data cluster for each data cluster to obtain cleaned data;
[0031] The data reporting module is used to generate report text data based on the cleaning data and to report the report text data.
[0032] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the processor performs the following steps when executing the computer program:
[0033] In response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction;
[0034] According to the data reporting instruction, query the data to be reported in the target data source;
[0035] Multiple data to be reported that belong to the same data type are grouped into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data;
[0036] The report text data is generated based on the cleaning data, and the report text data is then submitted.
[0037] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0038] In response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction;
[0039] According to the data reporting instruction, query the data to be reported in the target data source;
[0040] Multiple data to be reported that belong to the same data type are grouped into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data;
[0041] The report text data is generated based on the cleaning data, and the report text data is then submitted.
[0042] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0043] In response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction;
[0044] According to the data reporting instruction, query the data to be reported in the target data source;
[0045] Multiple data to be reported that belong to the same data type are grouped into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data;
[0046] The report text data is generated based on the cleaning data, and the report text data is then submitted.
[0047] The aforementioned data reporting method, apparatus, computer equipment, computer-readable storage medium, and computer program product, in response to a data reporting instruction, filter a target data source from multiple preset data sources according to the data reporting instruction; query the data to be reported in the target data source according to the data reporting instruction; perform data cleaning on the data to be reported to obtain cleaned data; generate report text data based on the cleaned data; and report the report text data.
[0048] In this way, when a data reporting instruction is received, the system filters the target data source and the query for the data to be reported based on the instruction, and further cleans the data to be reported, ensuring the accuracy of the cleaned data. The above steps are independent of the engineer's code writing and can automatically realize the data reporting process according to the data reporting instruction, reducing the operational complexity of data reporting. Attached Figure Description
[0049] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0050] Figure 1 This is a diagram illustrating the application environment of a data reporting method in one embodiment.
[0051] Figure 2 This is a flowchart illustrating a data reporting method in one embodiment;
[0052] Figure 3 This is a flowchart illustrating the data reporting method in another embodiment;
[0053] Figure 4 This is a structural block diagram of a data reporting device in one embodiment;
[0054] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0056] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0057] The data reporting method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located on a cloud or other network server. Server 104 responds to a data reporting command by: filtering a target data source from multiple preset data sources; querying the data to be reported from the target data source; cleaning the data to be reported to obtain cleaned data; generating report text data based on the cleaned data; and reporting the report text data. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal 102 can be a device with the target application deployed on it.
[0058] In one exemplary embodiment, such as Figure 2 As shown, a data reporting method is provided, which can be applied to... Figure 1 Taking server 104 as an example, the explanation includes the following steps 202 to 208. Wherein:
[0059] Step 202: In response to the data reporting instruction, select the target data source from multiple preset data sources according to the data reporting instruction.
[0060] The data reporting instruction in step 202 can be set by the user as needed, or it can be automatically generated when a preset condition is detected, and there is no restriction here; the data reporting instruction can be used to indicate the reporting object to be reported, or it can be used to indicate the data content that needs to be reported.
[0061] In step 202, the number of target data sources can be single or multiple, and there is no restriction here.
[0062] Optionally, before step 202, the above method further includes at least one of the following: if a user's report query operation for each preset data source is detected, a data reporting instruction is generated based on the report query operation; if a periodic report time condition is met, a data reporting instruction is generated based on the periodic report time condition.
[0063] Report query operations include, but are not limited to, selecting data source type, selecting data content, entering data source type, and entering data content.
[0064] In this way, data reporting instructions are automatically generated based on user report query operations, providing users with a convenient and efficient user experience and greatly reducing the technical threshold. Furthermore, the data reporting operation also has a certain degree of scalability, easily meeting diverse data reporting needs and thus easily fulfilling the diverse reporting requirements of enterprises, thereby improving the portability of data reporting.
[0065] The time conditions for periodic reports can be set by the user as needed, or they can correspond to the historical update frequency of each database.
[0066] In this way, independent configuration of each database can be achieved through data reporting commands, thereby matching the update frequency of different databases under different business scenarios and ensuring timely data reporting when the database is updated.
[0067] As one embodiment, according to the data reporting instruction, filtering the target data source from multiple preset data sources includes: determining the data source that matches the reporting object indicated by the data reporting instruction from the multiple preset data sources as the target data source.
[0068] Step 204: According to the data reporting instruction, query the data to be reported in the target data source.
[0069] For example, step 204 includes: identifying data in the target data source that matches the data content to be reported as indicated by the data reporting instruction as the data to be reported.
[0070] Step 206: Group multiple data to be reported that belong to the same data type into the same data cluster, and clean the data cluster for each data cluster to obtain cleaned data.
[0071] For example, the above method further includes at least one of the following: if multiple first data to be reported belong to the same data source, then determine that each of the first data to be reported belongs to the same data type; if multiple second data to be reported belong to the same data description indicator, then determine that each of the second data to be reported belongs to the same data type.
[0072] As one embodiment, multiple data to be reported belonging to the same data type are classified into the same data cluster, including: obtaining the data description indicators of each data to be reported, and accumulating the total number of indicator types of each data description indicator; if the total number of indicator types is lower than a preset indicator number threshold, multiple first data to be reported belonging to the same data source are classified into the same data cluster; if the total number of indicator types is not lower than the preset indicator number threshold, multiple second data to be reported belonging to the same data description indicator are classified into the same data cluster.
[0073] The preset threshold for the number of indicators can be an empirical value or set by the user as needed; there are no restrictions here.
[0074] Therefore, considering that when the total number of indicator types is lower than the preset indicator number threshold, that is, when the total number of indicator types is small, the reporting focus may be on the data records of multiple data sources for a small number of data description indicators. Therefore, multiple first data to be reported belonging to the same data source can be classified into the same data cluster, and the data record characteristics of multiple data sources can be reported.
[0075] Furthermore, considering that when the total number of indicator types is not less than the preset indicator number threshold, that is, when the total number of indicator types is large, the reporting focus may be on each data description indicator. Therefore, multiple second data to be reported that belong to the same data description indicator can be classified into the same data cluster, and the data record characteristics of each data source for the same data description indicator can be reported.
[0076] For example, the data cluster is cleaned to obtain cleaned data, including at least one of the following: removing all data in the data cluster except for the data to be reported with the largest indicator value to obtain cleaned data; determining the data feature values corresponding to each data to be reported in the data cluster as cleaned data; splitting the data cluster according to the data source corresponding to each data to be reported in the data cluster to obtain each batch of split data, and determining each of the split data as cleaned data.
[0077] The data feature value can be either the median or the average value; there is no restriction on this.
[0078] As one embodiment, the data cluster is cleaned to obtain cleaned data, including: determining the difference between the indicator value corresponding to each data to be reported in the data cluster and a preset indicator value; if each difference value meets the difference condition, the data cluster is split according to the data source corresponding to each data to be reported in the data cluster to obtain each batch of split data, and each of the split data is determined as cleaned data; if each difference value does not meet the difference condition, the data in the data cluster except for the data to be reported with the largest indicator value is cleared to obtain cleaned data; or, the data feature value corresponding to each data to be reported in the data cluster is determined as cleaned data.
[0079] Thus, considering that the difference value meets the difference condition, it means that each data to be reported in the data cluster is correct, that is, each data to be reported in the data cluster has a reporting significance. Therefore, according to the data source corresponding to each data to be reported in the data cluster, the data cluster is split to obtain each batch of split data, and each of the split data is determined as cleaned data, so that each split data can be reported.
[0080] Furthermore, considering that the difference value does not meet the difference condition, it is incorrect to say that there is data to be reported in the data cluster, that is, not all data to be reported in the data cluster has reporting significance. Therefore, the data in the data cluster except for the data to be reported with the largest indicator value is cleared to obtain cleaned data; or, the data feature value corresponding to each data to be reported in the data cluster is determined as cleaned data, so that the cleaned data is as correct as possible.
[0081] As an embodiment, the above method further includes: accumulating each difference value to obtain a total difference value; if the total difference value is greater than a first preset difference threshold, then determining that each difference value meets the difference condition; if the total difference value is not greater than the first preset difference threshold, then determining that each difference value does not meet the difference condition.
[0082] As an embodiment, the above method further includes: accumulating the number of difference values among the difference values that are greater than a second preset difference threshold; if the number of difference values is greater than a preset number threshold, then it is determined that each difference value meets the difference condition; if the number of difference values is not greater than the preset number threshold, then it is determined that each difference value does not meet the difference condition.
[0083] The first preset difference threshold is greater than the second preset difference threshold. The first preset difference threshold and the second preset difference threshold can be empirical values or can be set by the user as needed.
[0084] Step 208: Generate report text data based on the cleaning data, and submit the report text data.
[0085] For example, generating report text data based on the cleaned data includes: obtaining a first data type of the cleaned data and a preset second data type; converting the cleaned data into a data format based on the first data type and the second data type to obtain converted data; and generating report text data based on the converted data.
[0086] Optionally, the step of querying the data to be reported in the target data source according to the data reporting instruction is executed by the data source query plugin; the step of classifying multiple data to be reported belonging to the same data type into the same data cluster, and cleaning the data cluster for each data cluster to obtain cleaned data is executed by the data cleaning plugin; the step of generating report text data based on the cleaned data and reporting the report text data is executed by the text reporting plugin; the above method further includes: combining the first plugin identifier of the data source query plugin, the second plugin identifier of the cleaning plugin, and the third plugin identifier of the text reporting plugin to obtain a combined plugin identifier; and associating the combined plugin identifier with the data reporting identifier corresponding to the data reporting instruction.
[0087] In this way, by establishing a relationship between the data reporting identifier and the combined plug-in identifier, when there is a similar data reporting instruction in the future, the data reporting process can be directly implemented through the plug-ins corresponding to the combined plug-in identifier.
[0088] Among them, the plugins that have a combination relationship form a data reporting template.
[0089] Optionally, refer to Figure 3 In response to the data reporting instruction, the above method also includes: determining the data reporting template corresponding to the data reporting instruction; and using the various plugins in the data reporting template to perform data querying, data cleaning, and data reporting.
[0090] In this way, by associating and templating the above plugins, the corresponding steps can be automatically executed through the plugins in the template for the periodic execution of the same data reporting, thus realizing the data reporting process.
[0091] Optionally, the above method further includes: steps 202 to 208 are implemented by an execution program, which determines the data reporting time through a scheduler, generates a data reporting instruction according to the data reporting time, and sends the data reporting instruction to the execution program.
[0092] Optionally, the above method further includes: periodically checking the cluster scheduling status through a scheduler, polling the task record table to check whether the issued tasks were successful, and if successful, publishing a task success message to the distributed coordination system. Once the scheduler of the peer cluster receives the flag indicating that the peer task has been completed, it no longer checks whether the peer task is complete. Simultaneously, it monitors the peer cluster's distributed coordination system registration path, and if a peer node failure is detected, it takes over the unfinished tasks from the peer.
[0093] In the above data reporting method, in response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the instruction; data to be reported is queried from the target data source according to the instruction; the data to be reported is cleaned to obtain cleaned data; report text data is generated based on the cleaned data, and the report text data is reported. Upon receiving a data reporting instruction, the selection of target data sources and the query of data to be reported are based on the instruction, and further data cleaning is performed on the data to be reported, ensuring the accuracy of the cleaned data. These steps eliminate the need for engineers to write code and can automatically implement the data reporting process according to the instruction, reducing the operational complexity of data reporting.
[0094] As a detailed embodiment, in response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction; according to the data reporting instruction, data to be reported is queried in the target data source; multiple data to be reported belonging to the same data type are classified into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data; a first data type and a preset second data type of the cleaned data are obtained; the cleaned data is converted according to the first data type and the second data type to obtain converted data; report text data is generated according to the converted data, and the report text data is reported.
[0095] Thus, in response to a data reporting command, the system filters target data sources from multiple preset data sources; queries the target data sources for data to be reported; cleans the data to be reported to obtain cleaned data; generates report text data based on the cleaned data, and reports the report text data. Upon receiving a data reporting command, the system filters target data sources and queries for data to be reported based on the command, and further cleans the data to be reported, ensuring the accuracy of the cleaned data. These steps eliminate the need for engineers to write code and can automatically implement the data reporting process according to the data reporting command, reducing the operational complexity of data reporting.
[0096] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0097] Based on the same inventive concept, this application also provides a data reporting device for implementing the data reporting method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more data reporting device embodiments provided below can be found in the limitations of the data reporting method described above, and will not be repeated here.
[0098] In one exemplary embodiment, such as Figure 4 As shown, a data reporting device is provided, including: a data filtering module, a data cleaning module, and a data reporting module, wherein:
[0099] The data filtering module is used to respond to a data reporting instruction, filter a target data source from multiple preset data sources according to the data reporting instruction, and query the data to be reported in the target data source according to the data reporting instruction.
[0100] The data cleaning module is used to classify multiple data to be reported that belong to the same data type into the same data cluster, and to clean the data cluster for each data cluster to obtain cleaned data.
[0101] The data reporting module is used to generate report text data based on the cleaning data and to report the report text data.
[0102] In one embodiment, the data cleaning module is further configured to perform at least one of the following: clearing the data in the data cluster except for the data to be reported with the largest indicator value to obtain cleaned data; determining the data feature value corresponding to each data to be reported in the data cluster as cleaned data; splitting the data cluster according to the data source corresponding to each data to be reported in the data cluster to obtain each batch of split data, and determining each of the split data as cleaned data.
[0103] In one embodiment, the data cleaning module is further configured to perform at least one of the following: if multiple first data to be reported belong to the same data source among the data to be reported, then determine that each of the first data to be reported belongs to the same data type; if multiple second data to be reported belong to the same data description indicator among the data to be reported, then determine that each of the second data to be reported belongs to the same data type.
[0104] In one embodiment, the data reporting module is further configured to: obtain a first data type of the cleaned data and a preset second data type; convert the cleaned data according to the first data type and the second data type to obtain converted data; and generate report text data according to the converted data.
[0105] In one embodiment, the step of querying the data to be reported in the target data source according to the data reporting instruction is executed by the data source query plugin; the step of classifying multiple data to be reported belonging to the same data type into the same data cluster, and cleaning the data cluster for each data cluster to obtain cleaned data is executed by the data cleaning plugin; the step of generating report text data based on the cleaned data and reporting the report text data is executed by the text reporting plugin; the above data reporting device further includes a plugin association module, used to: combine the first plugin identifier of the data source query plugin, the second plugin identifier of the cleaning plugin, and the third plugin identifier of the text reporting plugin to obtain a combined plugin identifier; and associate the combined plugin identifier with the data reporting identifier corresponding to the data reporting instruction.
[0106] In one embodiment, the data reporting device further includes an instruction generation module, which performs at least one of the following: if a user's report query operation for each preset data source is detected, a data reporting instruction is generated based on the report query operation; if the periodic report time conditions corresponding to each preset data source are met, a data reporting instruction is generated based on the periodic report time conditions.
[0107] Each module in the aforementioned data reporting device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0108] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a data reporting method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0109] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0110] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0111] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method embodiments.
[0112] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0113] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0114] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0115] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0116] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A data reporting method, characterized in that, The method includes: In response to a data reporting instruction, a target data source is selected from multiple preset data sources according to the data reporting instruction; According to the data reporting instruction, query the data to be reported in the target data source; Multiple data to be reported that belong to the same data type are grouped into the same data cluster, and for each data cluster, the data cluster is cleaned to obtain cleaned data; The report text data is generated based on the cleaning data, and the report text data is then submitted.
2. The method according to claim 1, characterized in that, The step of cleaning the data cluster to obtain cleaned data includes at least one of the following: The data in the data cluster, except for the data to be reported with the largest indicator value, is cleared to obtain cleaned data; The data feature values corresponding to each data to be reported in the data cluster are determined as the cleaned data; According to the data source corresponding to each data to be reported in the data cluster, the data cluster is split to obtain each batch of split data, and each of the split data is determined as the cleaned data.
3. The method according to claim 1, characterized in that, The method also includes at least one of the following: If multiple first data to be reported among the data to be reported belong to the same data source, then it is determined that each of the first data to be reported belongs to the same data type. If multiple second data points to be reported belong to the same data description indicator among the data to be reported, then it is determined that each second data point to be reported belongs to the same data type.
4. The method according to claim 1, characterized in that, The step of generating report text data based on the cleaning data includes: Obtain the first data type of the cleaned data, and the preset second data type; Based on the first data type and the second data type, the cleaned data is converted into a data format to obtain converted data; The report text data is generated based on the transformed data.
5. The method according to claim 1, characterized in that, The step of querying the data to be reported in the target data source according to the data reporting instruction is executed by the data source query plugin. The step of classifying multiple data to be reported belonging to the same data type into the same data cluster, and cleaning the data cluster for each data cluster to obtain cleaned data is executed by the data cleaning plugin. The step of generating report text data according to the cleaned data and reporting the report text data is executed by the text reporting plugin. The method further includes: The first plugin identifier of the data source query plugin, the second plugin identifier of the cleaning plugin, and the third plugin identifier of the text reporting plugin are combined to obtain a combined plugin identifier; Associate the combined plug-in identifier with the data reporting identifier corresponding to the data reporting instruction.
6. The method according to claim 1, characterized in that, The method also includes at least one of the following: If a user's report query operation for each preset data source is detected, a data reporting instruction is generated based on the report query operation. If the time conditions for periodic reports corresponding to each preset data source are detected, a data reporting instruction is generated based on the time conditions for periodic reports.
7. A data reporting device, characterized in that, The device includes: The data filtering module is used to respond to a data reporting instruction, filter a target data source from multiple preset data sources according to the data reporting instruction, and query the data to be reported in the target data source according to the data reporting instruction. The data cleaning module is used to classify multiple data to be reported that belong to the same data type into the same data cluster, and to clean the data cluster for each data cluster to obtain cleaned data; The data reporting module is used to generate report text data based on the cleaning data and to report the report text data.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.