Method and electronic device for generating report

By introducing the hierarchical storage solution of the basic data server and the first report data server into the report generation system, the problem of low report generation efficiency in the power supply and distribution system is solved, and rapid response and efficient report generation are achieved.

CN114970480BActive Publication Date: 2024-09-17GUANGDONG IND TECHN COLLEGE +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111592271.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-09-17
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

In the existing technology, a large amount of raw data is stored in the electrical parameter database of the power supply and distribution system, resulting in low efficiency in report generation, and the server is prone to lags.

Method used

A hierarchical storage solution is adopted between the basic data server and the first report data server. The basic data server receives the client's request to perform operations on the original data to generate basic report data, and stores it in the first report data server to avoid reprocessing a large amount of original data. Retrieve data from the data and perform calculations to improve the efficiency of report generation.

Benefits of technology

Through the tiered storage solution, we can quickly respond to report generation requests, improve the efficiency of report generation, reduce server load, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114970480B
    Figure CN114970480B
Patent Text Reader

Abstract

The present application relates to the field of data processing, and provides a method for generating reports, which is applied to a report generation system. The report generation system includes: a basic data server, a first report data server and a client. The method includes: the basic data server calculates the original data according to the basic report generation request sent by the client to generate basic report data, and stores the basic report data in the first report data server; the basic data server instructs the first report data server to calculate the basic report data according to the first target report generation request sent by the client to generate the first target report data; the first report data server generates the first target report data according to the instruction of the basic data server; the first report data server sends the first target report data to the client; the client generates the first target report according to the first target report data. The above method can improve the efficiency of generating reports.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a method for generating a report and an electronic device. Background Art

[0002] As we all know, in order to ensure the reliable and stable operation of the power supply and distribution system, the power supply and distribution system will collect a large amount of electrical parameter data generated by itself every day, such as voltage, current, frequency, power factor and active power, and store a large amount of original electrical parameter data in the electrical parameter database on the server. If the user wants to understand the operating status of the power supply and distribution system, the report generation system can be used to analyze the original electrical parameter data in the electrical parameter database, and generate the report required by the user according to the report template. However, since a large amount of original electrical parameter data is stored in the electrical parameter database, when the report generation system obtains the original electrical parameter data from the electrical parameter database, the server is prone to jamming due to the large amount of original data, thereby affecting the efficiency of report generation.

[0003] Therefore, how to improve the efficiency of report generation is an issue that needs to be solved urgently. Summary of the invention

[0004] The present application provides a method for generating a report and an electronic device, which can improve the efficiency of generating a report.

[0005] In a first aspect, a method for generating a report is applied to a report generation system, the report generation system comprising: a basic data server, a first report data server and a client, the method comprising: the basic data server receiving a basic report generation request sent by the client; the basic data server performing calculations on original data according to the basic report generation request to generate basic report data, and storing the basic report data in the first report data server, wherein the basic data server is used to store the original data collected by a data collection device; when the basic data server receives a first target report generation request sent by the client, the basic data server instructs the first report data server to perform calculations on the basic report data according to the first target report generation request to generate first target report data; the first report data server generates the first target report data according to the instruction of the basic data server; the first report data server sends the first target report data to the client; the client generates a first target report according to the first target report data.

[0006] In this embodiment, the basic data server calculates the original data according to the basic report generation request sent by the client to generate basic report data, and stores the basic report data in the first report data server; when the basic data server receives the first target report generation request sent by the client, it will instruct the first report data server to retrieve the basic report data stored in advance, and calculate on the basis of the basic report data to generate the first target report data; the above-mentioned first report data server is specially used to store basic report data instead of storing a large amount of original data. Compared with re-calling a large amount of original data for calculation according to the first target report generation request through the basic data server, calling a small amount of basic report data through the first report data server can quickly respond to the first target report generation request to generate the first target report data, so that the client can quickly generate the first target report according to the first target report data, thereby improving the efficiency of generating reports.

[0007] Optionally, the report generation system also includes: a second report data server. After the first report data server generates the first target report data according to the instruction of the basic data server, the method also includes: the basic data server instructs the first report data server to store the first target report data in the second report data server; when the basic data server receives the second target report generation request sent by the client, the basic data server instructs the second report data server to operate the first target report data according to the second target report generation request to generate second target report data; the second report data server generates the second target report data according to the instruction of the basic data server; the second report data server sends the second target report data to the client; the client generates a second target report according to the second target report data.

[0008] In this embodiment, the second report data server is specifically used to store the first target report data instead of storing a large amount of original data. When the basic data server receives the second target report generation request sent by the client, it will instruct the second report data server to retrieve the first target report data stored in advance, and perform calculations on the basis of the first target report data to generate the second target report data. Compared with re-calling a large amount of original data for calculation according to the second target report generation request through the basic data server, calling a small amount of first report data through the second report data server can quickly respond to the second target report generation request to generate the second target report data, so that the client can quickly generate the second target report according to the second target report data, thereby improving the efficiency of generating reports.

[0009] Optionally, the basic report generation request is a daily report generation request, and the first target report generation request is any one of a monthly report generation request, a quarterly report generation request or an annual report generation request.

[0010] Optionally, the original data includes: original simulation data, wherein the basic data server stores the original simulation data in a manner including: a normal change storage manner or an abnormal change storage manner, and a preset time interval storage manner, wherein the normal change storage manner refers to a data storage manner in which the basic data server only stores data when the absolute value of the change between the data at the current moment and the data stored last time is greater than or equal to the change threshold and less than the abnormal threshold; the abnormal change storage manner refers to a data storage manner according to a preset time rule when the absolute value of the change between the data at the current moment and the data stored last time is greater than or equal to the abnormal threshold, wherein the preset time rule refers to the basic data server adjusting the time interval for storing data in the next time period according to the relationship between the change of M adjacent data stored in the current time period and the abnormal threshold, the abnormal threshold is equal to N times the change threshold, and both M and N are positive integers greater than 1; the preset time interval storage manner refers to a manner in which the basic data server stores data at a preset fixed time interval, wherein the preset fixed time interval is greater than the sampling interval of the data acquisition device.

[0011] In this embodiment, the above-mentioned basic data server uses different storage methods to save the original simulation data. Under normal circumstances, the normal change amount storage method is used to store the data whose absolute value of the change amount is greater than or equal to the change threshold and less than the abnormal threshold, instead of storing the data at each sampling time. This storage method can reduce the pressure of the basic data server to store data; under abnormal circumstances, the basic data server will switch the normal change amount storage method to the abnormal change amount storage method, and use the abnormal change amount storage method to store the abnormal data collected by the data acquisition device and the corresponding time; because the basic data server stores the original abnormal data, when generating report data (for example, basic report data) according to user needs, the abnormal results generated by the abnormal data (for example, when the original data is calculated, the abnormal data is filtered out) will be reflected in the report data; when the user sees the report (for example, the basic report), it will be easy to view the abnormal results, so that the user can view the abnormal data of the abnormal period from the basic data server, so as to facilitate the user to check the device abnormality. At the same time, in order to provide users with more data references, the basic data server uses the normal change amount storage method or the abnormal change amount storage method in addition to the preset time interval storage method to store the data collected by the data acquisition device. It can be seen that when the above-mentioned basic data server adopts the normal change storage method or the abnormal change storage method, it combines the preset time interval storage method to store the target data, and displays the target data stored in the above storage method to the user in the form of a report, thereby providing more references for the user to analyze the actual situation of the target data changes.

[0012] In a second aspect, a device for generating a report is provided, comprising a module for executing any one of the methods in the first aspect.

[0013] In a third aspect, an electronic device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes any one of the methods described in the first aspect.

[0014] According to a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes any one of the methods according to the first aspect.

[0015] For the beneficial effects in the second, third and fourth aspects of the present application, refer to the beneficial effects of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0017] Figure 1 A schematic diagram of a method flow chart for generating a report in an embodiment of the present invention;

[0018] Figure 2 This is a schematic diagram of a basic report generation process in an embodiment of the present invention;

[0019] Figure 3 This is a schematic diagram of a first target report generation process in an embodiment of the present invention;

[0020] Figure 4 This is a schematic diagram of a second target report generation process in an embodiment of the present invention;

[0021] Figure 5 A schematic diagram of the structure of a device for generating a report in an embodiment of the present invention;

[0022] Figure 6 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0024] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0025] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0026] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0027] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0028] As we all know, the electricity consumption of important equipment in various industries requires a stable and reliable power supply and distribution system, which has become an indispensable guarantee for the normal operation of each power-consuming equipment. In order to ensure the reliable and stable operation of the power supply and distribution system, the power supply and distribution system will collect a large amount of original electrical parameter data generated by itself every day, such as voltage, current, frequency, power factor and active power, and store these large amounts of original electrical parameter data in the electrical parameter database on the server. If the user wants to understand the operating status of the power supply and distribution system, the report generation system can be used to analyze the original electrical parameter data in the electrical parameter database and generate the report required by the user according to the report template. However, since a large amount of original electrical parameter data is stored in the electrical parameter database, when the report generation system obtains the original electrical parameter data from the electrical parameter database, the server is prone to jamming due to the large amount of original data, thereby affecting the efficiency of report generation. Therefore, how to improve the efficiency of report generation is an urgent problem to be solved.

[0029] The present application is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] Figure 1 It is a flow chart of a method for generating a report in an embodiment of the present application. The method for generating a report provided in an embodiment of the present application is applied to a report generation system, and the report generation system is used to generate data reports that meet user requirements according to user needs; the report generation system includes: a basic data server, a first report data server and a client, wherein the basic data server is used to store the original data collected by the data acquisition device, and the original database is deployed on the basic data server, and the original database is used to store the original data collected by the acquisition device; the first report data server is used to store the basic report data generated after the basic data server calculates the original data, and is used to calculate the basic report data to generate the first target report data; the client is used to display the first target report generated according to the first target report data to the user.

[0031] The method for generating reports provided in this application can be applied in the field of environmental monitoring data processing, the field of building HVAC system data processing, and the field of power supply data processing. This application does not limit the specific field of application of the above method. This application only uses the application of the above method in the field of power supply data processing as an example to illustrate the method for generating reports. The process of applying the above method to other fields is similar to the process of applying the above method to the field of power supply data processing, and will not be repeated here.

[0032] like Figure 1 As shown, the method for generating a report in the embodiment of the present application includes:

[0033] S101, a basic data server receives a basic report generation request sent by a client.

[0034] Exemplarily, a control unit and an original database are deployed on the basic data server, wherein the original database is used to store the original data (i.e., target data) collected by the data collection device, and the control unit is used to respond to report generation requests and process target data (e.g., temperature), wherein the report generation request includes: a basic report generation request, a first target report generation request, a second target report generation request, and a third target report generation request; the target data includes: original data, basic report data, first target report data, second target report data, and third target report data. The basic report generation request includes: any one of a daily report generation request, a monthly report generation request, and a quarterly report generation request, wherein the daily report generation request is used to request the basic data server to generate daily report data, the monthly report generation request is used to request the basic data server to generate monthly report data, and the quarterly report generation request is used to request the basic data server to generate quarterly report data. It is hereby explained that the above basic report generation request is specifically a type of report generation request, and the user can set it according to the needs of the actual application scenario. For example, in some application scenarios, the user is concerned about the annual data and the half-year data, so the basic report generation request can be a half-year report generation request; for another example, in some application scenarios, the user is not only concerned about the annual data, but also the data of each quarter. In this case, the basic report generation request can be a quarterly report generation request. The above raw data includes: temperature, humidity, voltage, current, frequency, power factor and active power.

[0035] For example, when a user wants to view the daily changes in the factory's power supply voltage, he can click the daily report generation button on the client. At this time, the client will send the user's daily report generation request to the basic data server. The control unit in the basic data server retrieves the original data in the original database according to the daily report generation request, and performs operations on the original data (for example, calculating the average, maximum value, minimum value, etc.) to generate daily report data, so that the client can generate a daily report based on the daily report data, thereby facilitating users to view the daily changes in the factory's power supply voltage.

[0036] Exemplarily, the original data includes: original simulation data, wherein the basic data server stores the original simulation data in the following ways: a normal change storage method or an abnormal change storage method, and a preset time interval storage method, wherein the normal change storage method refers to a data storage method in which the basic data server only stores the data at the current moment when the absolute value of the change between the data stored last time is greater than or equal to the change threshold and less than the abnormal threshold; the abnormal change storage method refers to a data storage method according to a preset time rule when the absolute value of the change between the data at the current moment and the data stored last time is greater than or equal to the abnormal threshold, wherein the preset time rule refers to the basic data server adjusting the time interval for storing data in the next time period according to the relationship between the change of M adjacent data stored in the current time period and the abnormal threshold, the abnormal threshold is equal to N times the change threshold, and M and N are both positive integers greater than 1; the preset time interval storage method refers to a method in which the basic data server stores data at a preset fixed time interval, wherein the preset fixed time interval is greater than the sampling interval of the data acquisition device.

[0037] Taking the data acquisition equipment collecting the electrical parameter data of the power supply and distribution system as an example, since different electrical parameters use different data formats, some electrical parameter data are analog data, and some electrical parameter data are digital data. The above-mentioned original data also includes: original digital data. The above-mentioned original analog data (Analog Data) refers to the continuously changing numerical value collected by the data acquisition equipment; the above-mentioned original digital data (Digital Data) refers to the discrete value obtained after the analog data is quantized, such as 0 or 1.

[0038] For example, as shown in Table 1, time indicates the moment when the data acquisition device collects temperature; temperature refers to the actual temperature collected by the data acquisition device; storage indicates whether the basic data server is to store the collected temperature corresponding to the moment; storage condition refers to whether the basic data server determines whether to store the temperature data at the current moment according to whether the absolute value of the difference between the temperature data at the current moment and the temperature data stored last time (i.e., the change x) is less than the change threshold; change x refers to the absolute value of the difference between the temperature data at the current moment and the temperature data stored last time; comparison number refers to the temperature data at the current moment; compared number refers to the data stored in the original database by the basic data server last time; interval storage time refers to When the change x is greater than or equal to N times the change threshold, the basic data server stores the time interval of data; the condition for maintaining the abnormal change storage mode is that when the basic data server continuously stores M adjacent data according to the preset time rule and the corresponding change x of at least one data of the M adjacent data is greater than or equal to the abnormal threshold, the basic data server continues to maintain the abnormal change storage mode; the condition for exiting the abnormal change storage mode is that when the basic data server continuously stores M adjacent data according to the preset time rule and the corresponding change x of each data in the M adjacent data is less than the change threshold, the basic data server exits the abnormal change storage mode and switches to the normal change storage mode.

[0039] For example, as shown in Table 1, under normal circumstances, the above-mentioned basic data server stores the temperature data of the equipment operating environment in a normal change storage method, the change threshold is 0.3, the sampling interval of the data acquisition device is 2 seconds (i.e., 2s), the abnormal threshold is 3*0.3=0.9 (i.e., 3 multiplied by 0.3 equals 0.9), and the initial temperature collected by the data acquisition device at the starting point 1:00:00 is 20.0°C, and the 20.0°C is stored in the original database of the basic data server. It is hereby stated that the first temperature collected by the data acquisition device is to be stored (i.e., the initial temperature is to be stored), the temperature collected at 1:00:02 is 20.2°C, and the change of 20.2°C compared to 20.0°C is 0.2°C (less than 0.3°C), and the basic data server will not store the data of 20.2°C collected at 12:00:35 in the original database. The temperature collected at 1:00:04 is 20.4°C, and the change x of 20.4°C compared to the 20.0°C stored at 1:00:00 by the basic data server is 0.4°C (i.e. |20.4-20.0|=0.4) (greater than 0.3°C). The basic data server will store the temperature of 20.4°C collected at 1:00:04 in the original database; the basic data server determines whether the temperature at other times is stored in the original database, and its determination method is the same as the determination method of the temperature collected at 1:00:00, 1:00:02 and 1:00:04, which will not be repeated here. The above-mentioned basic data server stores temperature data in a normal variation storage method, which can record the actual temperature fluctuation and display it to the user in the form of a report, so that the user can timely understand the actual temperature changes during equipment operation based on the report data.

[0040] For example, as shown in Table 1, under abnormal circumstances, the basic data server stores the temperature data of the equipment operating environment in an abnormal change storage method, the change threshold is 0.3, the sampling interval of the data acquisition device is 2 seconds (i.e., 2s), the abnormal threshold is 3*0.3=0.9 (i.e., 3 multiplied by 0.3 equals 0.9), and the temperature collected by the data acquisition device at 1:05:20 is 21.8°C. The change x of 21.8°C compared to the last storage of 20.0°C at 1:05:04 by the basic data server is 1.2°C (i.e., |21.8-20.6|=1.2) (greater than 0.9°C), and the basic data server will exit the normal change. The preset time rule is that when the abnormal change storage mode is just entered, the basic data server stores data at a fixed time interval (for example, 10s), and continuously determines whether the change amounts of M adjacent data are all less than the change threshold value 0.3. Here, taking M=5 as an example, if the first temperature data collected at 1:05:24 is 22.0℃, and the change amount x of 22.0 compared with the data stored last time by the basic data server is 0.3, then the first temperature data 22.0℃ is stored in the original database; after an interval of 10s, the second temperature data collected at 1:05:34 is 22.3℃ , and the variable x of the second temperature data and the first temperature data stored is 0.3, and the second temperature data 22.3℃ is also stored in the original database; similarly, as shown in Table 1, until 1:06:14, 5 data are stored, but at 1:05:44, the temperature change x is 1.1, which is greater than the abnormal threshold value 0.9; the basic data server determines that the temperature change x=1.1 at 1:05:44 among the 5 data in the current time period (i.e., in the time period from 1:05:24 to 1:06:14) is greater than the abnormal threshold value 0.9, therefore, the basic data server continues to maintain the abnormal change storage mode, And adjust the time interval for storing data in the next time period. At this time, the basic data server stores data at a time interval of 5s in the next time period (for example, the time period from 1:06:24 to 1:06:39), and continuously judges whether the changes of M=5 adjacent data are all less than the change threshold of 0.3. It can be seen from Table 1 that the first temperature data collected at 1:06:24 is 24.7℃, and the change x of 24.7 compared with the data stored last time by the basic data server is 1.0. The change x of the temperature at this moment is 1.0, which is greater than the abnormal threshold of 0.9; at this time, the temperatures of the remaining four moments are stored at a time interval of 5 seconds.The basic data server determines that the temperature change x=1.0 at 1:06:24 among the five data in the current time period (i.e., the time period from 1:06:24 to 1:06:39) is greater than the abnormal threshold value 0.9. Therefore, the basic data server continues to maintain the abnormal change storage mode and adjusts the time interval for storing data in the next time period. At this time, the basic data server stores data at a time interval of 4s in the next time period (for example, the time period from 1:06:43 to 1:07:57), and continuously determines whether the changes of M=5 adjacent data are all less than the change threshold value 0.3. It can be seen from Table 1 that the changes of five consecutive adjacent data are all less than the change threshold value 0.3. At this time, the basic data server exits the abnormal change storage mode and enters the normal change storage mode to continue storing data. For example, at 1:07:05, it continues to determine whether the temperature 26.7 at that moment meets the normal change storage condition. The above-mentioned basic data server determines that the temperature to be stored at a certain moment is greater than the abnormal threshold, that is, the data at this moment is abnormal. At this time, the basic data server will enter the abnormal change storage mode, and record the temperature data during the abnormal period, and participate in the calculation of the report data. Finally, the abnormal temperature change situation is presented to the user in the form of a report, so that the user can analyze the possible abnormal conditions of the equipment during the abnormal period based on the temperature data during the abnormal period.

[0041] Table 1 Normal change storage method and abnormal change storage method

[0042]

[0043] For example, as shown in Table 2, in addition to the normal change storage method or the abnormal change storage method, the above basic data server also uses a preset time interval storage method to store the temperature data (i.e., target data) of the equipment operating environment. The sampling interval of the data acquisition device is 2 seconds, and the preset fixed time interval is 2 minutes (greater than the sampling interval of 2 seconds), that is, the basic data server stores data every 2 minutes, without judging whether the change of the temperature at the current moment is greater than the change threshold compared with the data stored by the basic data server last time. The initial temperature collected by the data acquisition device at the starting point 12:00:00 is 20.0℃, and the 20.0℃ is stored in the original database of the basic data server; after an interval of two minutes, the data acquisition device stores the temperature of 20.4℃ collected at 12:02:00 in the original database; similarly, after an interval of two minutes, the temperature data collected by the data acquisition device at the next moment is stored. The basic data server stores the temperature data corresponding to the subsequent moments, and its storage method is the same as the storage method of the above-mentioned 12:00:00 moment and 12:02:00 moment, which will not be repeated here. When the above-mentioned basic data server adopts the normal change storage method or the abnormal change storage method, it combines the preset time interval storage method to store the actual temperature changes, and displays the temperature data stored in the above storage method to the user in the form of a report, thereby providing more references for the user to analyze the actual situation of the temperature data changes.

[0044] Table 2 Preset time interval storage method

[0045] time temperature storage 12:00:00 20.0 √ 12:02:00 20.4 √ 12:04:00 20.2 √ 12:06:00 24.7 √ 12:08:00 20.8 √ … … …

[0046] For another example, as shown in Table 3, if the electrical parameter data is digital data, the above-mentioned basic data server stores the original digital data at fixed time intervals according to pre-storage rules. For example, the preset storage rules are: if the digital value of the electrical parameter is 1 at a certain moment, the basic data server stores the electrical parameter data at that moment in the original database; if the digital value of the electrical parameter is 0 at a certain moment, the basic data server will not store the electrical parameter data at that moment in the original database. For example, under normal circumstances, the fixed time interval is 3 hours, and the data acquisition device collects digital data of electrical parameter X every 3 hours. At 12:00:00 on March 1, the digital value of electrical parameter X is 1, and the basic data server will store the digital value 1 of electrical parameter X collected at 12:00:00 in the original database; at 15:00:00 on March 1, the digital value of electrical parameter X is 1, and the basic data server will store the digital value 1 of electrical parameter X collected at 15:00:00 in the original database; at 18:00:00 on March 1, the digital value of electrical parameter X is 1, and the basic data server will store the digital value 1 of electrical parameter X collected at 18:00:00 in the original database. database; however, at 19:02:15, the monitoring module in the data acquisition device detects an abnormal change in the electrical parameter X. At this time, the data acquisition device will collect the digital value of the electrical parameter X at 19:02:15. At this time, the digital value of the electrical parameter X is 0, and the basic data server will not store the digital value 0 of the electrical parameter X collected at 19:02:15 in the original database; if the digital value of the electrical parameter X is restored to 1 at 19:09:45, the data acquisition device will take 19:09:45 as the starting collection time, collect the digital value of the electrical parameter X every 3 hours, and store the digital data of the digital value of the electrical parameter X as 1 in the original database. Whether the digital value of the electrical parameter X at other times is stored in the original database is determined in the same way as the temperature determination method collected at 15:00:00, 18:00:00 and 19:02:15, which will not be repeated here.

[0047] Table 3 Digital storage rules for electrical parameters

[0048]

[0049] It can be seen that in the above embodiment, the above basic data server uses different storage methods to save the original simulation data. Under normal circumstances, the normal change amount storage method is used to store data whose absolute value of the change amount is greater than or equal to the change threshold and less than the abnormal threshold, instead of storing data at each sampling moment. This storage method can reduce the pressure on the basic data server to store data; under abnormal circumstances, the basic data server will switch the normal change amount storage method to the abnormal change amount storage method, and use the abnormal change amount storage method to store the abnormal data collected by the data acquisition device and the corresponding time; because the basic data server stores the original abnormal data, when generating report data (for example, basic report data) according to user needs, the abnormal results generated by the abnormal data (for example, when the original data is calculated, the abnormal data is filtered out) will be reflected in the report data; when the user sees the report (for example, the basic report), it will be easy to view the abnormal results, so that the user can view the abnormal data of the abnormal period from the basic data server, thereby facilitating the user to check the device abnormality. At the same time, in order to provide users with more data references, the basic data server stores the data collected by the data collection device in combination with the preset time interval storage method in addition to the normal change amount storage method or the abnormal change amount storage method. It can be seen that when the above-mentioned basic data server adopts the normal change amount storage method or the abnormal change amount storage method, it combines the preset time interval storage method to store the target data, and displays the target data stored in the above storage method to the user in the form of a report, thereby providing more references for the user to analyze the actual situation of the target data change.

[0050] S102, the basic data server generates basic report data by computing the original data according to the basic report generation request, and stores the basic report data in the first report data server, wherein the basic data server is used to store the original data collected by the data collection device.

[0051] Exemplarily, the first report data server is specifically used to store basic report data instead of original data; Figure 2 As shown, when the user clicks the basic report generation button on the client, the client sends a basic report generation request to the basic data server. The basic data server retrieves the original data in the original database according to the basic report generation request, and performs operations on the original data (for example, calculating the average value, maximum value, minimum value, etc.) to generate basic report data, and stores the basic report data on the first report data server ( Figure 2The basic report generation template is used to display the basic report data to the user in a specific form, so that the user can view the data displayed by the basic report.

[0052] Optionally, the basic data server can retrieve the original data in the original database according to each basic report generation request sent by the client, and perform operations on the original data (for example, calculating the average, maximum value, minimum value, etc.) to generate basic report data, and the latest generated basic report data will overwrite the previous generated basic report data. The basic data server can also retrieve the original data in the original database only according to the first basic report generation request sent by the client, and perform operations on the original data (for example, calculating the average, maximum value, minimum value, etc.) to generate the first basic report data, and store the first basic report data in the first report data server; when the basic data server subsequently receives the basic report request sent by the client, the basic data server can instruct the first report data server to retrieve the basic report data that has been stored in advance and send it to the client, and the client generates a basic report based on the basic report data that has been stored in advance and the basic report generation template, without retrieving the original data in the original database to calculate the basic report data again, thereby improving the efficiency of generating basic reports.

[0053] S103: When the basic data server receives the first target report generation request sent by the client, the basic data server instructs the first report data server to calculate the basic report data according to the first target report generation request to generate first target report data.

[0054] Exemplarily, the above-mentioned first target report generation request includes: any one of: a monthly report generation request, a quarterly report generation request and an annual report generation request. When the user clicks the first target report generation button on the client, at this time, the client will send the first target report generation request to the basic data server, and the basic data server instructs the first report data server to retrieve the basic report data according to the first target report generation request, and performs operations on the basic report data (for example, calculating the average, maximum value, minimum value, etc.) to generate the first target report data, so that the client can generate the first target report according to the first target report data and the first report generation template, so as to facilitate the user to view the data displayed in the first target report. The above-mentioned first target report generation template is used to display the first target report data to the user in a specific form to facilitate the user to view the data.

[0055] For example, when a user clicks a monthly report generation button, a quarterly report generation button, or an annual report generation button on the client, the client will send a monthly report generation request, a quarterly report generation request, or an annual report generation request to the basic data server. The basic data server instructs the first report data server to retrieve the daily report data according to the monthly report generation request, the quarterly report generation request, or the annual report generation request, and performs operations on the daily report data (for example, calculating the average, the maximum value, the minimum value, etc.) to generate monthly report data, quarterly report data, or annual report data, so that the client can generate a monthly report according to the monthly report data and the monthly report template, or generate a quarterly report according to the quarterly report data and the quarterly report generation template, or generate an annual report according to the annual report data and the annual report generation template, thereby facilitating users to view the report data.

[0056] Exemplarily, the above-mentioned basic report generation request is a daily report generation request, and the first target report generation request is any one of a monthly report generation request, a quarterly report generation request, and an annual report generation request. Taking the case where the basic report generation request is a daily report generation request and the first target report generation request is a monthly report generation request as an example, the processing method of the first target report generation request being a quarterly report generation request or an annual report generation request is similar to the processing method of the first target report generation request being a monthly report generation request, and will not be repeated here.

[0057] For example, if a user wants to view a daily report, the user clicks the daily report generation button; the client sends a daily report generation request to the basic data server, and the basic data server retrieves the original data in the original database according to the daily report generation request, and performs operations on the original data (for example, calculating the average value, the maximum value, the minimum value, etc.) to generate daily report data, and stores the daily report data on the first report data server. The client generates a daily report based on the daily report data and the daily report generation template, so that the user can view the daily report conveniently. If the user wants to view the monthly report data, the user clicks the monthly report generation button of the client; the client sends a monthly report generation request to the basic data server, and the basic data server instructs the first report data server to retrieve the daily report data according to the monthly report generation request, and the first report data server performs operations on the daily report data (for example, calculating the average value, the maximum value, the minimum value, etc.) to generate the monthly report data; the client generates a monthly report based on the monthly report data and the monthly report generation template, so that the user can view the monthly report conveniently.

[0058] S104: The first report data server generates first target report data according to the instruction of the basic data server.

[0059] For example, Figure 3As shown, if the user clicks the first target report (e.g., quarterly report) generation button of the client, the client will send the first target report generation request (e.g., quarterly report generation request) to the basic data server, and the basic data server instructs the first report data server to retrieve the basic report data (e.g., daily report data) instead of retrieving the original data in the original database by itself according to the first target report generation request (e.g., quarterly report generation request). The first report data server performs operations (e.g., average, maximum, minimum, etc.) on the basic report data (e.g., daily report data) to quickly generate the first target report data (e.g., quarterly report data); the client quickly generates the first target report (e.g., quarterly report) for the user according to the first target report data (e.g., quarterly report data) and the first target report generation template (e.g., quarterly report generation template), thereby improving the user experience.

[0060] S105: The first report data server sends first target report data to the client.

[0061] Exemplarily, the first target report data includes any one of monthly report data, quarterly report data and annual report data. If the basic report data is daily report data, the first target report data can be any one of monthly report data, quarterly report data and annual report data; at this time, the data pre-stored by the first report data server can be any one of monthly report data, quarterly report data and annual report data. If the basic report data is monthly report data, the first target report data can be any one of quarterly report data and annual report data; at this time, the data pre-stored by the first report data server can be any one of quarterly report data and annual report data. If the basic report data is quarterly report data, the first target report data can be annual report data, and at this time, the data pre-stored by the first report data server can be quarterly report data. For example, the first report data server stores quarterly report data in advance. If the user wants to see 10 years of report data, the first report data server calculates 10 years of report data (i.e., annual report data) based on the quarterly report data, and sends the 10 years of report data to the client.

[0062] S106: The client generates a first target report according to the first target report data.

[0063] Exemplarily, for example, the first target report data is monthly report data, and the first target report is a monthly report. After the client receives the monthly report data sent by the first report data server, it retrieves the monthly report generation template, and merges the monthly report data with the monthly report generation template to obtain a monthly report. For another example, the first target report data is quarterly report data, and the first target report is a quarterly report. After the client receives the quarterly report data sent by the first report data server, it retrieves the quarterly report generation template, and merges the quarterly report data with the quarterly report generation template to obtain a quarterly report. For another example, the first target report data is annual report data, and the first target report is an annual report. After the client receives the annual report data sent by the first report data server, it retrieves the annual report generation template, and merges the annual report data with the annual report generation template to obtain an annual report.

[0064] Optionally, the basic data server can instruct the first target report data server to retrieve the basic report data that has been stored in advance according to the first target report generation request sent by the client each time, and perform operations on the basic report data (for example, finding the average, maximum value, minimum value, etc.) to generate the first target report data, and store the first target report data in the second data server, and the second data server will overwrite the first target report data generated last time with the latest first target report data generated. The basic data server can also instruct the first target report data server to retrieve the basic report data that has been stored in advance according to the first target report generation request sent by the client for the first time, and perform operations on the basic report data (for example, finding the average, maximum value, minimum value, etc.) to generate the first first target report data, and store the first first target report data in the second data server; when the basic data server subsequently receives the first target report request sent by the client again, the basic data server can instruct the second report data server to retrieve the first first target report data that has been stored in advance and send it to the client, and the client generates the first target report according to the first first target report data that has been stored in advance and the first target report generation template, without recalculating the first target report data, thereby improving the efficiency of generating the first target report.

[0065] Exemplarily, the above-mentioned report generation system also includes: a second report data server, the basic data server instructs the first report data server to store the first target report data in the second report data server; when the basic data server receives the second target report generation request sent by the client, the basic data server instructs the second report data server to operate the first target report data according to the second target report generation request to generate the second target report data; the second report data server generates the second target report data according to the instruction of the basic data server; the second report data server sends the second target report data to the client; the client generates a second target report according to the second target report data.

[0066] After the first report data server generates the first target report data, the basic data server instructs the first report data server to store the first target report data on the second report data server; the second report data server deploys a report database specifically for storing the first target report data and processing the second target report generation request. The first target report data includes: monthly report data; the second target report generation request includes: quarterly report generation request or annual report generation request. The second target report data includes: quarterly report data or annual report data.

[0067] like Figure 4 As shown, if the user clicks the second target report (e.g., annual report) generation button of the client; the client will send the second target report generation request (e.g., annual report generation request) to the basic data server, and the basic data server instructs the second report data server to retrieve the first report data (e.g., monthly report data) instead of retrieving the original data in the original database according to the second target report generation request (e.g., annual report generation request), and the second report data server performs operations (e.g., average, maximum, minimum, etc.) on the first report data (e.g., monthly report data) to quickly generate the second target report data (e.g., annual report data); the second report data server sends the second target report data to the client, and the client retrieves the second target report generation template (e.g., annual report generation template) according to the second target report data (e.g., annual report data), and merges the annual report data with the annual report generation template to quickly generate the second target report (e.g., annual report) for the user, thereby improving the user experience. The generation method of the quarterly report is similar to that of the annual report, which will not be repeated here.

[0068] Optionally, the basic data server can instruct the second target report data server to retrieve the first target report data that has been stored in advance according to the second target report generation request sent by the client each time, and perform operations on the first target report data (for example, calculating the average, maximum value, minimum value, etc.) to generate the second target report data, and store the second target report data in the third data server, and the third data server will overwrite the second target report data generated last time with the second target report data generated the most recently. The basic data server can also instruct the second target report data server to retrieve the first target report data that has been stored in advance according to the second target report generation request sent by the client for the first time, and perform operations on the first target report data (for example, calculating the average, maximum value, minimum value, etc.) to generate the first second target report data, and store the first second target report data in the third data server; when the basic data server subsequently receives the second target report request sent by the client again, the basic data server can instruct the third report data server to retrieve the first second target report data that has been stored in advance and send it to the client, and the client generates the second target report according to the first second target report data that has been stored in advance and the second target report generation template, without recalculating the second target report data, thereby improving the efficiency of generating the second target report.

[0069] It can be seen that the second report data server is specifically used to store the first target report data instead of storing a large amount of original data. When the basic data server receives the second target report generation request sent by the client, it will instruct the second report data server to retrieve the first target report data stored in advance, and perform calculations on the basis of the first target report data to generate the second target report data. Compared with re-calling a large amount of original data for calculation according to the second target report generation request through the basic data server, calling a small amount of first report data through the second report data server can quickly respond to the second target report generation request to generate the second target report data, so that the client can quickly generate the second target report according to the second target report data, thereby improving the efficiency of generating reports.

[0070] Exemplarily, the above-mentioned report generation system also includes: a third report data server, the basic data server instructs the second report data server to store the second target report data in the third report data server; when the basic data server receives the third target report generation request sent by the client, the basic data server instructs the third report data server to operate the second target report data according to the third target report generation request to generate the third target report data; the third report data server generates the third target report data according to the instruction of the basic data server; the third report data server sends the third target report data to the client; the client generates a third target report according to the third target report data.

[0071] After the second report data server generates the second target report data, the basic data server instructs the second report data server to store the second target report data on the third report data server; the third report data server deploys a report database specifically for storing the second target report data and processing the third target report generation request. The second target report data includes: quarterly report data; the third target report generation request includes: annual report generation request. The third target report data includes: annual report data.

[0072] For example, the second target report data is quarterly report data, the third report data server has stored the quarterly report data in advance, and the third target report generation request is an annual report generation request; the user clicks the annual report generation button of the client, and the client sends the annual report generation request to the basic data server; the basic data server instructs the third report data server to retrieve the quarterly report data according to the annual report generation request, and instructs the third report data server to perform operations (such as averaging, maximum value, minimum value, etc.) on the quarterly report data to generate annual report data. The third report data server sends the annual report data to the client, and after receiving the annual report data, the client retrieves the annual report generation template, and merges the annual report data with the annual report generation template to obtain the annual report.

[0073] Optionally, the basic data server may also instruct the second target report data server to retrieve the first target report data that has been stored in advance only based on the second target report generation request sent by the client for the first time, and perform operations on the first target report data (for example, calculating the average, maximum value, minimum value, etc.) to generate the first second target report data, and store the first second target report data in the third data server; when the basic data server subsequently receives the second target report request sent by the client again, the basic data server may instruct the third report data server to retrieve the first second target report data that has been stored in advance and send it to the client, and the client generates the second target report based on the first second target report data that has been stored in advance and the second target report generation template without recalculating the second target report data, thereby improving the efficiency of generating the second target report.

[0074] To summarize, the basic data server calculates the original data according to the basic report generation request sent by the client to generate basic report data, and stores the basic report data in the first report data server; when the basic data server receives the first target report generation request sent by the client, it will instruct the first report data server to retrieve the basic report data stored in advance, and calculate on the basis of the basic report data to generate the first target report data; the above-mentioned first report data server is specially used to store basic report data instead of storing a large amount of original data. Compared with re-calling a large amount of original data for calculation according to the first target report generation request through the basic data server, calling a small amount of basic report data through the first report data server can quickly respond to the first target report generation request to generate the first target report data, so that the client can quickly generate the first target report according to the first target report data, thereby improving the efficiency of generating reports.

[0075] Figure 5 500 is a structural diagram of a report generation device provided by the present application. The device 500 is applied to a report generation system, the report generation system includes: a basic data server, a first report data server and a client, the device 500 includes a receiving module 501, a processing module 502, an indicating module 503, a generating module 504, a sending module 505 and a display module 506, wherein:

[0076] Receiving module 501, used to control the basic data server to receive the basic report generation request sent by the client;

[0077] Processing module 502, used to control the basic data server to calculate the original data according to the basic report generation request to generate basic report data, and store the basic report data to the first report data server, wherein the basic data server is used to store the original data collected by the data collection device;

[0078] The instruction module 503 is used to control the basic data server to instruct the first report data server to calculate the basic report data according to the first target report generation request to generate the first target report data when the basic data server receives the first target report generation request sent by the client;

[0079] A generating module 504, used to control the first report data server to generate first target report data according to the instruction of the basic data server;

[0080] The sending module 505 is used to control the first report data server to send the first target report data to the client;

[0081] The display module 506 is used to control the client to generate a first target report according to the first target report data.

[0082] The specific manner in which the apparatus 500 executes the method for generating a report and the beneficial effects produced can refer to the relevant description in the method embodiment.

[0083] Figure 6 A schematic structural diagram of an electronic device provided by the present application is shown. Figure 6 The dotted line in the figure indicates that the unit or the module is optional. The electronic device 600 can be used to implement the method described in the above method embodiment. The electronic device 600 can be a server or a chip.

[0084] The electronic device 600 includes one or more processors 601, which can support the electronic device 600 to implement Figure 1 The method in the corresponding method embodiment. The processor 601 can be a general-purpose processor or a special-purpose processor. For example, the processor 601 can be a central processing unit (CPU). The CPU can be used to control the electronic device 600, execute software programs, and process data of software programs. The electronic device 600 can also include a communication unit 605 to implement signal input (reception) and output (transmission).

[0085] For example, the electronic device 600 may be a chip, and the communication unit 605 may be an input and / or output circuit of the chip, or the communication unit 605 may be a communication interface of the chip, and the chip may be a component of the electronic device.

[0086] For another example, the communication unit 605 may be a transceiver of the electronic device 600 , or the communication unit 605 may be a transceiver circuit of the electronic device 600 .

[0087] The electronic device 600 may include one or more memories 602, on which a program 604 is stored. The program 604 can be executed by the processor 601 to generate an instruction 603, so that the processor 601 performs the method described in the above method embodiment according to the instruction 603. Optionally, data may also be stored in the memory 602. Optionally, the processor 601 may also read the data stored in the memory 602, and the data may be stored at the same storage address as the program 604, or the data may be stored at a different storage address from the program 604.

[0088] The processor 601 and the memory 602 may be provided separately or integrated together, for example, integrated on a system on chip (System On Chip, SOC) of the electronic device.

[0089] The specific manner in which the processor 601 executes the method for generating a report may refer to the relevant description in the method embodiment.

[0090] It should be understood that each step of the above method embodiment can be completed by a hardware-based logic circuit or a software-based instruction in the processor 601. The processor 601 can be a CPU, a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.

[0091] The present application also provides a computer program product, which, when executed by the processor 601, implements the method described in any method embodiment of the present application.

[0092] The computer program product may be stored in the memory 602 , for example, a program 604 , which is converted into an executable target file that can be executed by the processor 601 after preprocessing, compiling, assembling, and linking.

[0093] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a computer, the method described in any method embodiment of the present application is implemented. The computer program can be a high-level language program or an executable target program.

[0094] The computer-readable storage medium is, for example, a memory 602. The memory 602 may be a volatile memory or a nonvolatile memory, or the memory 602 may include both a volatile memory and a nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SynchLink DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRRAM).

[0095] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described devices and equipment and the technical effects produced can refer to the corresponding processes and technical effects in the aforementioned method embodiments, and will not be repeated here.

[0096] In several embodiments provided in the present application, the disclosed systems, devices and methods can be implemented in other ways. For example, some features of the method embodiments described above can be ignored or not executed. The device embodiments described above are merely schematic, and the division of units is only a logical function division. There may be other division methods in actual implementation, and multiple units or components may be combined or integrated into another system. In addition, the coupling between the units or the coupling between the components may be direct coupling or indirect coupling, and the above coupling includes electrical, mechanical or other forms of connection.

[0097] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents, and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for generating a report, characterized in that: Applied to a report generation system, the report generation system comprises: a basic data server, a first report data server and a client, the method comprises: The basic data server receives a basic report generation request sent by the client; The basic data server generates basic report data by computing the original data according to the basic report generation request, and stores the basic report data in the first report data server, wherein the basic data server is used to store the original data collected by the data collection device, and the original data includes: original simulation data, wherein the basic data server stores the original simulation data in a manner including: a normal change amount storage manner or an abnormal change amount storage manner, and a preset time interval storage manner, wherein, The normal change amount storage mode refers to a data storage mode in which the basic data server only stores the data whose absolute value of the change amount between the data at the current moment and the data stored last time is greater than or equal to the change threshold and less than the abnormal threshold; The abnormal change amount storage method refers to a method of storing data according to a preset time rule when the absolute value of the change amount between the data at the current moment and the data stored last time is greater than or equal to the abnormal threshold, wherein the preset time rule refers to the basic data server adjusting the time interval for storing data in the next time period according to the relationship between the change amount of M adjacent data stored in the current time period and the abnormal threshold, the abnormal threshold is equal to N times the change threshold, and both M and N are positive integers greater than 1; The preset time interval storage method refers to a method in which the basic data server stores data according to a preset fixed time interval, wherein the preset fixed time interval is greater than the sampling interval of the data acquisition device; When the basic data server receives the first target report generation request sent by the client, the basic data server instructs the first report data server to calculate the basic report data according to the first target report generation request to generate first target report data; The first report data server generates the first target report data according to the instruction of the basic data server; The first report data server sends the first target report data to the client; The client generates a first target report according to the first target report data.

2. The method according to claim 1, characterized in that The report generation system further includes: a second report data server. After the first report data server generates the first target report data according to the instruction of the basic data server, the method further includes: The basic data server instructs the first report data server to store the first target report data in the second report data server; When the basic data server receives the second target report generation request sent by the client, the basic data server instructs the second report data server to operate the first target report data according to the second target report generation request to generate second target report data; The second report data server generates the second target report data according to the instruction of the basic data server; The second report data server sends the second target report data to the client; The client generates a second target report according to the second target report data.

3. The method according to claim 1 or 2, characterized in that: The basic report generation request is a daily report generation request, and the first target report generation request is any one of a monthly report generation request, a quarterly report generation request, or an annual report generation request.

4. A device for generating a report, characterized in that: Applied to a report generation system, the report generation system comprises: a basic data server, a first report data server and a client, the device comprises a receiving module, a processing module, an indicating module, a generating module, a sending module and a display module, wherein: The receiving module is used to control the basic data server to receive the basic report generation request sent by the client; The processing module is used to control the basic data server to calculate the original data according to the basic report generation request to generate basic report data, and store the basic report data in the first report data server, wherein the basic data server is used to store the original data collected by the data collection device, and the original data includes: original simulation data, wherein the basic data server stores the original simulation data in a normal change amount storage method or an abnormal change amount storage method, and a preset time interval storage method, wherein, The normal change amount storage mode refers to a data storage mode in which the basic data server only stores the data whose absolute value of the change amount between the data at the current moment and the data stored last time is greater than or equal to the change threshold and less than the abnormal threshold; The abnormal change amount storage method refers to a method of storing data according to a preset time rule when the absolute value of the change amount between the data at the current moment and the data stored last time is greater than or equal to the abnormal threshold, wherein the preset time rule refers to the basic data server adjusting the time interval for storing data in the next time period according to the relationship between the change amount of M adjacent data stored in the current time period and the abnormal threshold, the abnormal threshold is equal to N times the change threshold, and both M and N are positive integers greater than 1; The preset time interval storage method refers to a method in which the basic data server stores data according to a preset fixed time interval, wherein the preset fixed time interval is greater than the sampling interval of the data acquisition device; The instruction module is used to control the basic data server to instruct the first report data server to calculate the basic report data according to the first target report generation request to generate the first target report data when the basic data server receives the first target report generation request sent by the client; The generating module is used to control the first report data server to generate the first target report data according to the instruction of the basic data server; The sending module is used to control the first report data server to send the first target report data to the client; The display module is used to control the client to generate a first target report according to the first target report data.

5. The device according to claim 4, characterized in that The report generation system further includes: a second report data server, after the first report data server generates the first target report data according to the instruction of the basic data server, further including: The processing module is further used to control the basic data server to instruct the first report data server to store the first target report data in the second report data server; The instruction module is further configured to control the basic data server to instruct the second report data server to generate second target report data according to the first target report data when the basic data server receives the second target report generation request sent by the client; The generating module is further used for the second report data server to generate the second target report data according to the instruction of the basic data server; The sending module is further used for the second report data server to send the second target report data to the client; The display module is also used for the client to generate a second target report according to the second target report data.

6. The device according to claim 4 or 5, characterized in that The basic report generation request is a daily report generation request, and the first target report generation request is a monthly report generation request, a quarterly report generation request, or an annual report generation request.

7. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method according to any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the method according to any one of claims 1 to 3.