CN116303689A - Method and device for generating data report, computer equipment and readable storage medium - Google Patents

Method and device for generating data report, computer equipment and readable storage medium Download PDF

Info

Publication number
CN116303689A
CN116303689A CN202310597743.0A CN202310597743A CN116303689A CN 116303689 A CN116303689 A CN 116303689A CN 202310597743 A CN202310597743 A CN 202310597743A CN 116303689 A CN116303689 A CN 116303689A
Authority
CN
China
Prior art keywords
data
generating
meta
statistical
service terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310597743.0A
Other languages
Chinese (zh)
Inventor
曹鹏
黄靓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Kedi Intelligent Environment Co ltd
Original Assignee
Wuhan Kedi Intelligent Environment Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Kedi Intelligent Environment Co ltd filed Critical Wuhan Kedi Intelligent Environment Co ltd
Priority to CN202310597743.0A priority Critical patent/CN116303689A/en
Publication of CN116303689A publication Critical patent/CN116303689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Probability & Statistics with Applications (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Water Supply & Treatment (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device, computer equipment and a readable storage medium for generating a data report, wherein the method comprises the following steps: receiving a generation request of a data report of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object; the result object is used for generating analysis data of the data report; if the water service terminal does not have the execution object of the result object, constructing the execution object; the execution object is used for generating first statistical data of the analysis data; if the water service terminal does not have the meta-object of the execution object, constructing the meta-object according to the attribute information of the entity object of the meta-object; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; inputting the acquired real-time data into the constructed meta-object to obtain second statistical data; and generating a data report of the water works in the water service terminal according to the second statistical data. The invention reduces the calculated amount of generating the data report and improves the generating efficiency of the data report.

Description

Method and device for generating data report, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer science and technology, and in particular, to a method and apparatus for generating a data report, a computer device, and a readable storage medium.
Background
With the improvement of the life quality of residents, people pay attention to water use safety and water use quality. The water treatment equipment of the water plant is continuously increased, the automation degree is gradually changed, and meanwhile, the energy consumption for operating the equipment is also increased, so that the energy consumption is gradually a main reason for raising the operation cost of the water plant. Therefore, it is important to reduce the energy consumption of the operation of the device to create greater economic benefits on the premise of ensuring the quality of the supplied water.
Currently, in the process of analyzing the operating energy consumption of equipment, statistical analysis is generally performed on the operating data of the equipment to generate a data report so as to know the operating cost of the equipment. However, the operation data of the equipment is large and complex, so that the calculation amount of the data in the process of generating the data report is large, the efficiency is low, and the calculation process is extremely prone to error.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method, a device, computer equipment and a readable storage medium for generating a data report, which aim to solve the technical problems of large data calculation amount, low efficiency and easy error in the process of generating the data report in the prior art.
In order to solve the above problems, in a first aspect, an embodiment of the present invention provides a method for generating a data report, which is applied to a water service terminal, where the method includes:
receiving a generation request of a data report of a water plant;
if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data;
if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data;
if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object;
inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data;
and generating a data report of the water plant in the water service terminal according to the second statistical data.
In a second aspect, an embodiment of the present invention further provides a device for generating a data report, where the device is applied to a water service terminal, and the device includes:
the receiving unit is used for receiving a generation request of a data report of the water plant;
the first construction unit is used for constructing the result object if the result object of the data report does not exist in the water service terminal, and determining whether an execution object of the result object exists in the water service terminal; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data;
the second construction unit is used for constructing the execution object if the execution object does not exist, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data;
a third construction unit, configured to construct the meta-object according to attribute information of an entity object of the meta-object if the meta-object does not exist;
the input unit is used for inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data;
And the generating unit is used for generating a data report of the water plant in the water service terminal according to the second statistical data.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for generating a data report according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor causes the processor to perform the method for generating a data report according to the first aspect.
The embodiment of the invention provides a method, a device, computer equipment and a readable storage medium for generating a data report, wherein the method is used for receiving a data report generation request of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object; the result object is used for generating analysis data of the data report; if the water service terminal does not have the execution object of the result object, constructing the execution object; wherein the execution object is used for generating first statistical data of the analysis data; if the water service terminal does not have the meta-object of the execution object, constructing the meta-object; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; inputting the acquired real-time data into the constructed meta-object to obtain second statistical data; and generating a data report of the water works in the water service terminal according to the second statistical data. The data report generated by the method not only can realize the cost for accurately knowing the operation of the equipment, but also can reduce the calculated amount for generating the data report, and greatly improves the generation efficiency of the data report.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating a data report according to an embodiment of the present invention;
FIG. 2 is another flow chart of a method for generating a data report according to an embodiment of the present invention;
FIG. 3 is a schematic sub-flowchart of a method for generating a data report according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a method for generating a data report according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a generating device of a data report according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a flow chart of a method for generating a data report according to an embodiment of the present invention; the method for generating the data report is applied to the water service terminal, the method for generating the data report is executed through application software installed in the water service terminal, the water service terminal is terminal equipment for controlling running of a water works, network connection is established between the water service terminal and a plurality of receiving terminals to realize data information transmission, and the receiving terminals can be terminal equipment carried by various operators for performing equipment operation, and terminal equipment such as production equipment, metering appliances and the like of the water works.
As shown in FIG. 1, the method includes steps S110 to S160.
S110, receiving a generation request of a data report of the water plant.
Specifically, the generation request is instruction information for requesting a user to generate a data report form to the water service terminal, the data report form is used for reflecting an operation data table of the water plant in a preset time, and after receiving the generation request of the data report form of the water plant, the water service terminal executes subsequent steps to generate the data report form of the water plant.
In this embodiment, the data report includes water intake data, raw water data, water storage data, dosing data, chlorine addition data, water pump data, filter tank data, valve data, water supply data, and the like, wherein the water intake data includes water level, pressure, flow, current, voltage, electric quantity, pump on time, water supply quantity, on-off state, alarm state, collection time, and the like of the monitoring point, the raw water data includes turbidity, flow, residual chlorine, pH value, temperature, chlorine dioxide, collection time, and the like of the monitoring point, the water storage data includes water level, pressure, flow, current, voltage, electric quantity, pump on-off time, on-off state, alarm state, collection time, and the like of the monitoring point, the dosing data includes pipe metering, pump power, solution, current, voltage, electric quantity, pump on-off time, on-off state, alarm state, collection time, and the like of the monitoring point, the water pump data includes chlorine addition quantity, valve opening, residual chlorine, chlorine addition machine state, chlorine bottle state, absorption state, booster pump state, collection time, and the like of the monitoring point, the water pump data includes control state, pump on-off time, on-off state, alarm state, water supply state, alarm state, collection time, filter tank opening, flow, alarm state, flow rate, filter tank opening, flow control state, alarm state, filter tank opening, flow control state, filter tank opening, filter state, and the like.
S120, if the result object of the data report does not exist in the water service terminal, constructing the result object, and determining whether an execution object of the result object exists in the water service terminal; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data.
Specifically, the analysis data are used for reflecting the energy consumption data of each entity object in the water plant in a preset first time, the result objects are constructed in the water service terminal in advance, after the result objects are constructed in the water service terminal, real-time data acquired from each entity object of the water plant can be used for generating the analysis data of the data report through the constructed result objects, and then the data report of the water plant can be generated through the analysis data.
In this embodiment, the number of the result objects required for generating the data report of the water plant may be one or more, that is, the number of the result objects required for generating the data report of different types may be different, when the data report table needs to be generated by a plurality of result objects, each result object is different, and when the result object required for generating the data report of the water plant does not exist in the water service terminal, in order to facilitate the subsequent generation of the data report related to the result object with higher efficiency, the result object may be pre-built in the water service terminal in advance, and when the result object is required to generate the corresponding data report, only the analysis data generated by the result object needs to be called to generate the data report.
In one embodiment, before step S120, the method further includes the steps of: and if the result object exists in the water service terminal, calling the analysis data generated by the result object, and generating the data report according to the analysis data.
In this embodiment, a plurality of result objects for generating a data report of a water plant within a preset time exist in the water service terminal, after the analysis data generated by each result object is called, the calculation time length can be set through a preset CRON expression, and the analysis data generated by each result object are integrated together to perform unified operation, so that the data report of the water plant can be generated.
In a specific embodiment, as shown in fig. 2, step S120 further includes steps S121 and S122.
S121, determining the entity object of the result object in the water plant, and the first coding information, analysis period and calculation formula of the result object;
s122, constructing the result object according to the attribute information, the first coding information, the analysis period and the first calculation formula.
In this embodiment, the attribute information, the first coding information, the analysis period, and the first calculation formula are parameter information for constructing a result object, the first coding information is used for characterizing the result object, analysis data generated by a corresponding result object can be called through the first coding information, the analysis period is a period time for setting the result object to analyze and calculate each entity object in a preset period, and the calculation formula is used for an operation function for analyzing operation data of each entity object in the analysis period, and the operation function can be constructed by a plurality of execution objects of the result object, an energy emission coefficient and an energy price. For example, the calculation formula may be @ objectEvent (LG-LZ-BFG-XH-Y, N, -1,8,0) @ energy (BFG) @ zm+, where LG-LZ-BFG-XH-Y is the object code, N, -1,8,0 is denoted nine points yesterday, t is the summary, BFG is the energy medium code in the energy emission coefficient, zm is the converted coal marking coefficient in the energy emission coefficient. In addition, each physical object in the water plant includes production equipment, metering devices, and the like. For example, if the physical object is a chlorinating device, the resulting object may be chlorine consumption.
S130, if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data.
Specifically, the first statistics data is used for reflecting energy consumption data of each entity object in the water plant within a preset second time, the execution object is a lower object of the result object, that is, when the preset first time takes a day as a measurement unit, the preset second time can take a time as a measurement unit, the result object is daily chlorine consumption, and the execution object can be time chlorine consumption.
In this embodiment, when the data report cannot be generated by calling the analysis data generated by the result object in the water service terminal, the result object is formed by a plurality of execution objects, and if the execution object forming the corresponding result object exists in the water service terminal, the first statistical data generated by the execution object forming the result object can be directly called, and the analysis data for generating the data report can be obtained by performing corresponding calculation on the first statistical data; if the data report does not exist, after the corresponding result object is constructed, a plurality of execution objects forming the result object are constructed, so that the data report related to the execution objects can be generated more efficiently later.
In one embodiment, before step S130, the method further includes the steps of: and if the execution object exists in the water service terminal, calling the first statistical data generated by the execution object, and generating the data report according to the first statistical data.
In this embodiment, there are a plurality of execution objects forming the result object in the water service terminal, by directly calling the first statistical data generated by the execution objects forming the result object, by performing corresponding calculation on the first statistical data, the analysis data generated by the result object can be calculated, then the calculation duration is set by the preset CRON expression, and the analysis data generated by the result objects are integrated together to perform unified operation, so that the data report of the water plant can be generated.
In a specific embodiment, as shown in fig. 3, step S130 further includes steps S131 and S132.
S131, determining second coding information, a first statistical period, a first statistical rule, a statistical formula of the execution object and attribute information of an entity object in the water plant;
and S132, constructing the execution object according to the second coding information, the first statistical period, the first statistical rule, the statistical formula and the attribute information.
In this embodiment, the second encoding information, the first statistics period, the first statistics rule, the statistics formula, and the attribute information are parameter information for constructing an execution object, the second encoding information is used to characterize the execution object, the first statistics data generated by the corresponding execution object may be called through the second encoding information, the first statistics period is a period time for setting the execution object to perform statistics on each entity object in a preset period, and the statistics formula is used to perform an operation function for analyzing operation data of each entity object in an analysis period, and may be constructed through a plurality of meta-objects of the execution object, an energy emission coefficient, and an energy price. For example, the calculation formula may be @ object (LG-LZ-BFG-XH-Y, N, N-1,8,0) @ energy (BFG) zm+, where LG-LZ-BFG-XH-Y is the object code, N, N, -1,8,0 is denoted as eight yesterday, t is the summary, BFG is the energy medium code in the energy emission coefficient, zm is the converted coal index in the energy emission coefficient. The first statistical rule is rule information for counting data of each entity object in the water plant, wherein the data run in a preset time period can be counted in an average quantity mode, namely, the cost price representing the whole time period is uniform, and the data can also be counted in a time mode, wherein the data comprise four stages of a peak, a flat and a valley, namely, the data are counted in a time mode, and different costs are matched in different stages.
And S140, if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object.
Specifically, the second statistical data is used for reflecting the energy consumption data of each entity object in the water plant within a preset third time, the meta object is a lower object of the execution object, that is, when the preset second time is time as a measurement unit, the preset third time can be divided into measurement units, and as a result, the object is time and chlorine consumption, and the execution object can be chlorine division consumption.
In this embodiment, when the execution object is formed by a plurality of meta-objects, and the first statistics data generated by calling the execution object cannot be generated in the water service terminal, by determining whether the meta-objects forming the corresponding execution object exist in the water service terminal, if so, the second statistics data generated by the meta-objects forming the execution object can be directly called, and by performing corresponding calculation on the second statistics data, the first statistics data for generating the data report can be obtained; if the data report does not exist, after the corresponding execution object is constructed, a plurality of meta-objects forming the execution object are constructed, so that the data report related to the meta-objects can be generated more efficiently later.
In one embodiment, before step S140, the method further includes the steps of: and if the meta-object exists in the water service terminal, calling the second statistical data generated by the meta-object, and generating the data report according to the second statistical data.
In this embodiment, there are a plurality of meta-objects forming the execution object in the water service terminal, by directly calling the second statistical data generated by the meta-objects forming the execution object and performing corresponding calculation on the second statistical data, the first statistical data generated by the execution object can be calculated, then the first statistical data is calculated correspondingly, the corresponding analysis data can be calculated, finally the calculation duration is set through a preset CRON expression, and the analysis data generated by the result objects are integrated together to be unified for operation, so that a data report of the water plant can be generated.
In a specific embodiment, as shown in fig. 4, step S140 further includes steps S141, S142, and S143.
S141, determining third coding information, a second statistical period, a second statistical rule, a data acquisition source of the meta-object and attribute information of the entity object in the water plant;
S142, determining the data acquisition type of the meta-object according to the second statistical rule;
s143, constructing the meta-object according to the third coding information, the second statistical period, the second statistical rule, the data acquisition source, the data acquisition type and the attribute information.
In this embodiment, the third coding information, the second statistics period, the second statistics rule, the data collection source, the data collection type and the attribute information are parameter information for constructing the meta-object, the third coding information is used for characterizing the meta-object, the second statistics data generated by the corresponding meta-object can be called through the third coding information, the second statistics period is a period time for setting the meta-object to perform statistics on each entity object in a preset period, the second statistics rule can perform statistics in a uniform manner, namely, the cost price representing the whole time period is uniform, and can also perform statistics in a time manner, wherein the statistics includes four stages of a peak, a flat and a valley, namely, statistics in a time manner is performed, and different costs are matched in different stages. The data acquisition type is determined by a second statistical rule. For example, the first statistics rule is to count the data of the tip stage, and the data collection type is to collect the data of the tip stage.
S150, inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data.
In this embodiment, real-time data collected from each entity object of the water plant may be packaged and instantiated in the corresponding meta-object, so that second statistical data may be generated, whether the corresponding entity object operates normally may be determined through the second statistical data, and the calculation of the data report may also be flexibly participated.
And S160, generating a data report of the water plant in the water service terminal according to the second statistical data.
In this embodiment, the first statistical data generated by the execution object can be calculated by directly calling the second statistical data generated by the meta-object forming the execution object and performing corresponding calculation on the second statistical data, then the corresponding analysis data can be calculated by performing corresponding calculation on the first statistical data, finally the calculation duration is set by the preset CRON expression, and the analysis data generated by the result objects are integrated together to perform unified operation, so that a data report of the water plant can be generated.
In the method for generating the data report provided by the embodiment of the invention, the method comprises the following steps: receiving a generation request of a data report of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data; if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object; inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data; and generating a data report of the water plant in the water service terminal according to the second statistical data. The data report generated by the method not only can realize the cost for accurately knowing the operation of the equipment, but also can reduce the calculated amount for generating the data report, and greatly improves the generation efficiency of the data report.
The embodiment of the invention also provides a device for generating the data report, which can be configured in the water service terminal and is used for executing any embodiment of the method for generating the data report.
Specifically, referring to fig. 5, fig. 5 is a schematic block diagram of a generating device of a data report according to an embodiment of the present invention.
As shown in fig. 5, the data report generating apparatus 100 includes a receiving unit 110, a first constructing unit 120, a second constructing unit 130, a third constructing unit 140, an input unit 150, and a generating unit 160.
A receiving unit 110 for receiving a generation request of a data report of a water mill;
the first construction unit 120 is configured to construct a result object of the data report if the result object does not exist in the water service terminal, and determine whether an execution object of the result object exists in the water service terminal; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data;
a second construction unit 130, configured to construct the execution object if the execution object does not exist, and determine whether a meta object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data;
A third construction unit 140, configured to construct the meta-object according to attribute information of an entity object of the meta-object if the meta-object does not exist;
an input unit 150, configured to input the collected real-time data into the constructed meta-object, to obtain the second statistical data;
and the generating unit 160 is used for generating a data report of the water plant in the water service terminal according to the second statistical data.
The data report generating device provided by the embodiment of the invention applies the data report generating method, and the method comprises the following steps: receiving a generation request of a data report of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data; if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object; inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data; and generating a data report of the water plant in the water service terminal according to the second statistical data. The data report generated by the method not only can realize the cost for accurately knowing the operation of the equipment, but also can reduce the calculated amount for generating the data report, and greatly improves the generation efficiency of the data report.
The generation means of the data report described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a management server for performing the method of generating the data report for generating the data report.
With reference to FIG. 6, the computer device 500 includes a processor 502, a memory, and a network interface 505, connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a method of generating a data report, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a method of generating a data report.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 6 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, as a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 502 is configured to execute a computer program 5032 stored in a memory to perform the following functions: receiving a generation request of a data report of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data; if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object; inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data; and generating a data report of the water plant in the water service terminal according to the second statistical data.
In an embodiment, before implementing the result object of the data report if the water service terminal does not exist, the processor 502 further specifically implements the following steps: and if the result object exists in the water service terminal, calling the analysis data generated by the result object, and generating the data report according to the analysis data.
In one embodiment, when implementing the construction of the result object, the processor 502 specifically further implements the following steps: determining the entity object of the result object in the water plant, and the first coding information, analysis period and calculation formula of the result object; and constructing the result object according to the attribute information, the first coding information, the analysis period and the first calculation formula.
In an embodiment, before implementing the execution object of the result object if the result object does not exist in the water service terminal, the processor 502 further specifically implements the following steps: and if the execution object exists in the water service terminal, calling the first statistical data generated by the execution object, and generating the data report according to the first statistical data.
In one embodiment, when implementing the construction of the execution object, the processor 502 specifically further implements the following steps: determining second coding information, a first statistical period, a first statistical rule, a statistical formula of the execution object and attribute information of an entity object in the water plant; and constructing the execution object according to the second coding information, the first statistical period, the first statistical rule, the statistical formula and the attribute information.
In an embodiment, before implementing the meta-object of the execution object if the execution object does not exist in the water service terminal, the processor 502 further specifically implements the following steps: and if the meta-object exists in the water service terminal, calling the second statistical data generated by the meta-object, and generating the data report according to the second statistical data.
In one embodiment, the processor 502 further performs the following steps when implementing the construction of the meta-object: determining third coding information, a second statistical period, a second statistical rule, a data acquisition source and attribute information of entity objects in the water plant of the meta-object; determining the data acquisition type of the meta-object according to the second statistical rule; and constructing the meta-object according to the third coding information, the second statistical period, the second statistical rule, the data acquisition source, the data acquisition type and the attribute information.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 6 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 6, and will not be described again.
It should be appreciated that in an embodiment of the invention, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium. The storage medium stores a computer program 5032, wherein the computer program 5032 when executed by the processor 502 performs the steps of: receiving a generation request of a data report of a water plant; if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data; if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data; if the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object; inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data; and generating a data report of the water plant in the water service terminal according to the second statistical data.
In an embodiment, before executing the program instructions to implement the result object of the data report if the data report does not exist in the water service terminal, the processor further specifically implements the following steps: and if the result object exists in the water service terminal, calling the analysis data generated by the result object, and generating the data report according to the analysis data.
In one embodiment, when the processor executes the program instructions to implement the constructing the result object, the following steps are specifically implemented: determining the entity object of the result object in the water plant, and the first coding information, analysis period and calculation formula of the result object; and constructing the result object according to the attribute information, the first coding information, the analysis period and the first calculation formula.
In an embodiment, before executing the program instructions to implement the execution object of the result object if the result object does not exist in the water service terminal, the processor further specifically implements the following steps: and if the execution object exists in the water service terminal, calling the first statistical data generated by the execution object, and generating the data report according to the first statistical data.
In an embodiment, when the processor executes the program instructions to implement the building of the execution object, the following steps are specifically further implemented: determining second coding information, a first statistical period, a first statistical rule, a statistical formula of the execution object and attribute information of an entity object in the water plant; and constructing the execution object according to the second coding information, the first statistical period, the first statistical rule, the statistical formula and the attribute information.
In an embodiment, before executing the program instructions to implement the meta-object of the execution object if the meta-object does not exist in the water service terminal, the processor further specifically implements the following steps: and if the meta-object exists in the water service terminal, calling the second statistical data generated by the meta-object, and generating the data report according to the second statistical data.
In one embodiment, when the processor executes the program instructions to implement the building of the meta-object, the following steps are specifically implemented: determining third coding information, a second statistical period, a second statistical rule, a data acquisition source and attribute information of entity objects in the water plant of the meta-object; determining the data acquisition type of the meta-object according to the second statistical rule; and constructing the meta-object according to the third coding information, the second statistical period, the second statistical rule, the data acquisition source, the data acquisition type and the attribute information.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or part of what contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. The method for generating the data report is characterized by being applied to the water service terminal, and comprises the following steps:
receiving a generation request of a data report of a water plant;
if the water service terminal does not have the result object of the data report, constructing the result object, and determining whether the water service terminal has an execution object of the result object; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data;
if the execution object does not exist, constructing the execution object, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data;
If the meta-object does not exist, constructing the meta-object according to the attribute information of the entity object of the meta-object;
inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data;
and generating a data report of the water plant in the water service terminal according to the second statistical data.
2. The method for generating a data report according to claim 1, wherein before the step of constructing the result object, if the result object of the data report does not exist in the water service terminal, the method further comprises:
and if the result object exists in the water service terminal, calling the analysis data generated by the result object, and generating the data report according to the analysis data.
3. The method for generating a data report according to claim 1, wherein said constructing said result object comprises:
determining the entity object of the result object in the water plant, and the first coding information, analysis period and calculation formula of the result object;
and constructing the result object according to the attribute information, the first coding information, the analysis period and the first calculation formula.
4. The method for generating a data report according to claim 1, wherein before the step of constructing the execution object, if the execution object of the result object does not exist in the water service terminal, the method further comprises:
and if the execution object exists in the water service terminal, calling the first statistical data generated by the execution object, and generating the data report according to the first statistical data.
5. The method for generating a data report according to claim 1, wherein said constructing the execution object comprises:
determining second coding information, a first statistical period, a first statistical rule, a statistical formula of the execution object and attribute information of an entity object in the water plant;
and constructing the execution object according to the second coding information, the first statistical period, the first statistical rule, the statistical formula and the attribute information.
6. The method for generating a data report according to claim 1, wherein before the meta-object of the execution object does not exist in the water terminal and the meta-object is constructed, further comprising:
and if the meta-object exists in the water service terminal, calling the second statistical data generated by the meta-object, and generating the data report according to the second statistical data.
7. The method for generating a data report according to claim 1, wherein said constructing said meta-object comprises:
determining third coding information, a second statistical period, a second statistical rule, a data acquisition source and attribute information of entity objects in the water plant of the meta-object;
determining the data acquisition type of the meta-object according to the second statistical rule;
and constructing the meta-object according to the third coding information, the second statistical period, the second statistical rule, the data acquisition source, the data acquisition type and the attribute information.
8. A device for generating a data report, which is applied to a water service terminal, the device comprising:
the receiving unit is used for receiving a generation request of a data report of the water plant;
the first construction unit is used for constructing the result object if the result object of the data report does not exist in the water service terminal, and determining whether an execution object of the result object exists in the water service terminal; the result object is used for generating analysis data of the data report, and the execution object is used for generating first statistical data of the analysis data;
The second construction unit is used for constructing the execution object if the execution object does not exist, and determining whether a meta-object of the execution object exists in the water service terminal; the meta-object is used for generating second statistical data, and the first statistical data comprises a plurality of second statistical data;
a third construction unit, configured to construct the meta-object according to attribute information of an entity object of the meta-object if the meta-object does not exist;
the input unit is used for inputting the acquired real-time data into the constructed meta-object to obtain the second statistical data;
and the generating unit is used for generating a data report of the water plant in the water service terminal according to the second statistical data.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of generating a data report according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, which when executed by a processor implements a method of generating a data report according to any one of claims 1 to 7.
CN202310597743.0A 2023-05-25 2023-05-25 Method and device for generating data report, computer equipment and readable storage medium Pending CN116303689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310597743.0A CN116303689A (en) 2023-05-25 2023-05-25 Method and device for generating data report, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310597743.0A CN116303689A (en) 2023-05-25 2023-05-25 Method and device for generating data report, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116303689A true CN116303689A (en) 2023-06-23

Family

ID=86813579

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310597743.0A Pending CN116303689A (en) 2023-05-25 2023-05-25 Method and device for generating data report, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116303689A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
US20180165843A1 (en) * 2016-12-14 2018-06-14 International Business Machines Corporation Interface for data analysis
EP3364261A1 (en) * 2017-02-15 2018-08-22 ABB Schweiz AG Generation of partial plant topology data from plant operations data
CN113177396A (en) * 2021-04-30 2021-07-27 平安证券股份有限公司 Report generation method and device, computer equipment and storage medium
CN113642299A (en) * 2021-07-30 2021-11-12 国网江苏省电力有限公司南通供电分公司 One-key generation method based on power grid statistical form
CN114781342A (en) * 2022-05-21 2022-07-22 北京泓泰天诚科技有限公司 Report generation method, device, equipment and storage medium for petrochemical industry

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101606A1 (en) * 2015-12-15 2017-06-22 北京奇虎科技有限公司 System and method for collecting and analyzing data
US20180165843A1 (en) * 2016-12-14 2018-06-14 International Business Machines Corporation Interface for data analysis
EP3364261A1 (en) * 2017-02-15 2018-08-22 ABB Schweiz AG Generation of partial plant topology data from plant operations data
CN113177396A (en) * 2021-04-30 2021-07-27 平安证券股份有限公司 Report generation method and device, computer equipment and storage medium
CN113642299A (en) * 2021-07-30 2021-11-12 国网江苏省电力有限公司南通供电分公司 One-key generation method based on power grid statistical form
CN114781342A (en) * 2022-05-21 2022-07-22 北京泓泰天诚科技有限公司 Report generation method, device, equipment and storage medium for petrochemical industry

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡永丰;: "关于能源及生产作业管控系统的设计与分析", 无线互联科技, no. 03 *

Similar Documents

Publication Publication Date Title
CN107766299B (en) Data index abnormity monitoring method and system, storage medium and electronic equipment
CN109034244B (en) Line loss abnormity diagnosis method and device based on electric quantity curve characteristic model
TWI709932B (en) Method, device and equipment for monitoring transaction indicators
CN104811344A (en) Network dynamic service monitoring method and apparatus
CN109711155A (en) A kind of early warning determines method and apparatus
CN109611815B (en) Energy consumption alarm management method and device for gas steam boiler
CN109522344A (en) A kind of data processing method and equipment based on data visualization
CN112162980A (en) Data quality control method and system, storage medium and electronic equipment
CN116187552A (en) Abnormality detection method, computing device, and computer storage medium
CN111949498B (en) Abnormality prediction method and system for application server
CN116303391A (en) Processing method for remote transmission of electric energy time sequence data by intelligent ammeter
CN115185794A (en) Analysis method and device of service call chain and electronic equipment
CN116187549A (en) Energy consumption prediction method, computing device and computer storage medium
CN115860427A (en) Enterprise full-life-cycle carbon asset management system
CN115660711A (en) User ID generation method and device, electronic equipment and readable storage medium
WO2021237459A1 (en) Industrial object model-based data processing method, apparatus and device
CN114416891A (en) Method, system, apparatus and medium for data processing in a knowledge graph
CN113641567A (en) Database inspection method and device, electronic equipment and storage medium
CN116303689A (en) Method and device for generating data report, computer equipment and readable storage medium
CN117744877A (en) Virtual power plant optimization method, device, computer equipment and storage medium
CN116150132A (en) Enterprise internet of things data processing method, terminal equipment and storage medium
CN115827383A (en) Data anomaly monitoring method and device
CN113568769B (en) Exception handling method, device, server and storage medium
CN115310923A (en) Energy management service system and method
CN114696328A (en) Power line loss analysis method, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230623

RJ01 Rejection of invention patent application after publication