CN113887945A - Method and device for generating carbon emission report, storage medium and terminal equipment - Google Patents
Method and device for generating carbon emission report, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN113887945A CN113887945A CN202111160610.4A CN202111160610A CN113887945A CN 113887945 A CN113887945 A CN 113887945A CN 202111160610 A CN202111160610 A CN 202111160610A CN 113887945 A CN113887945 A CN 113887945A
- Authority
- CN
- China
- Prior art keywords
- report
- template
- audit
- report template
- calculation formula
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 title claims abstract description 56
- 229910052799 carbon Inorganic materials 0.000 title claims abstract description 56
- 238000004364 calculation method Methods 0.000 claims abstract description 73
- 238000012550 audit Methods 0.000 claims abstract description 65
- 238000012795 verification Methods 0.000 claims description 16
- 230000002085 persistent effect Effects 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- CURLTUGMZLYLDI-UHFFFAOYSA-N Carbon dioxide Chemical compound O=C=O CURLTUGMZLYLDI-UHFFFAOYSA-N 0.000 description 14
- 238000004891 communication Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 10
- 229910002092 carbon dioxide Inorganic materials 0.000 description 7
- 239000001569 carbon dioxide Substances 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000001816 cooling Methods 0.000 description 2
- 238000010248 power generation Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000006477 desulfuration reaction Methods 0.000 description 1
- 230000023556 desulfurization Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
- G06Q10/06393—Score-carding, benchmarking or key performance indicator [KPI] analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/80—Management or planning
- Y02P90/84—Greenhouse gas [GHG] management systems
- Y02P90/845—Inventory and reporting systems for greenhouse gases [GHG]
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Tourism & Hospitality (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Development Economics (AREA)
- General Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- General Health & Medical Sciences (AREA)
- Operations Research (AREA)
- Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- Game Theory and Decision Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application discloses a method and a device for generating a carbon emission report, a storage medium and terminal equipment, and relates to the field of office automation. The method and the device for reporting the carbon emission report have the advantages that the efficient solution for the enterprise to show the carbon emission report aiming at the service index data is provided, the configuration of the audit rule, the configuration of the calculation formula and the configuration of the report template are integrated, the audit on the batch service index data is supported, the report is output, the report generation efficiency is greatly improved, and the time is saved.
Description
Technical Field
The present application relates to the field of office automation, and in particular, to a method and an apparatus for generating a carbon emission report, a storage medium, and a terminal device.
Background
In the carbon asset management system, there is a function of generating a carbon emission report using the service index data. In the conventional business system, the traditional way for generating reports is as follows: business index data are exported through the system, statistical analysis is carried out on the business index data by using the excel function, and the analysis result and the report description text are written into a word document together, so that a carbon emission report is formed.
Disclosure of Invention
The embodiment of the application provides a method and a device for generating a carbon emission report, a storage medium and a terminal device, and can solve the problems of low efficiency and high error probability in the generation of the carbon emission report in the related art. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for generating a carbon emission report, where the method includes:
acquiring business index data of an enterprise from a business system; the service index data comprises a plurality of service indexes and numerical values of the service indexes;
auditing the numerical values of the plurality of service indexes according to a preset auditing rule;
if the audit is passed, calculating the numerical value of the service index by using a preset calculation formula to obtain a calculation value;
calling a target report template in a template library; wherein the target report template comprises a placeholder;
and replacing the placeholders in the target report template by using the calculated values to obtain the carbon emission report.
In a second aspect, an embodiment of the present application provides an apparatus for generating a carbon emission report, the apparatus including:
the acquisition unit is used for acquiring business index data of an enterprise from a business system; the service index data comprises a plurality of service indexes and numerical values of the service indexes;
the auditing unit is used for auditing the numerical values of the plurality of service indexes according to a preset auditing rule;
the calculation unit is used for calculating the numerical value of the service index by using a preset calculation formula to obtain a calculation value if the audit is passed;
the calling unit is used for calling the target report template in the template library; wherein the target report template comprises a placeholder;
and the generating unit is used for replacing the placeholders in the target report template by using the calculated values to obtain the carbon emission report.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when a carbon emission report needs to be generated, service index data are obtained from a service system, the service index data are audited by using a preset auditing rule, after the audit is passed, the service index data are calculated by using a preset calculation formula to obtain a calculated value, and then placeholders in a report template are replaced by using the calculated value to obtain a final carbon emission report. In conclusion, the service index data are automatically audited by the aid of the preset auditing rules, the report template provided with the placeholder is automatically replaced by the calculated value obtained by the calculating formula to obtain the carbon emission report, and compared with complex manual processing, the efficiency of report generation is improved, and the probability of business trip is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a network architecture provided by an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram of a method for generating a carbon emissions report provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a carbon emission report generation apparatus provided herein;
fig. 4 is a schematic structural diagram of a terminal device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 illustrates an exemplary system architecture 100 that may be applied to the carbon emissions report generation method or carbon emissions report generation method of the present application.
As shown in fig. 1, the system architecture 100 may include a terminal device 100, a network 101, and a server 102. Network 101 is the medium used to provide communication links between terminal devices 101 and server 102. Network 101 may include various types of wired or wireless communication links, such as: the wired communication link includes an optical fiber, a twisted pair wire, or a coaxial cable, and the WIreless communication link includes a bluetooth communication link, a WIreless-FIdelity (Wi-Fi) communication link, or a microwave communication link, etc. The server 102 is configured to deploy a business system, where a business system user monitors and stores business index data of an enterprise, where the business index data represents data related to carbon emissions.
Various communication client applications may be installed on the terminal device 100, such as: video recording application, video playing application, voice interaction application, search application, instant messaging tool, mailbox client, social platform software, etc.
The terminal device 100 may be hardware or software. When the terminal device 101 is hardware, it may be various terminal devices having a display screen, including but not limited to a smart phone, a tablet computer, a laptop portable computer, a desktop computer, and the like. When the terminal device 100 is software, it may be installed in the above listed terminal devices. Which may be implemented as multiple software or software modules (e.g., to provide distributed services) or as a single software or software module, and is not particularly limited herein.
When the terminal device 100 is hardware, a display device and a camera may be further installed thereon, the display device may display various devices capable of implementing a display function, and the camera is used to collect a video stream; for example: the display device may be a cathode ray tube (CR) display, a light-emitting diode (LED) display, an electronic ink screen, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), or the like. The user can view information such as displayed text, pictures, videos, and the like by using the display device on the terminal device 100.
It should be noted that the method for generating a carbon emission report provided in the embodiment of the present application is generally performed by the terminal device 100, and accordingly, the means for generating a carbon emission report is generally disposed in the terminal device 100.
The server 102 may be a server that provides various services, and the server 102 may be hardware or software. When the server 102 is hardware, it may be implemented as a distributed server cluster composed of multiple servers, or may be implemented as a single server. When the server 102 is software, it may be implemented as a plurality of software or software modules (for example, for providing distributed services), or may be implemented as a single software or software module, and is not limited in particular herein.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. Any number of terminal devices, networks, and servers may be used, as desired for implementation.
The method for generating the carbon emission report provided by the embodiment of the present application will be described in detail with reference to fig. 2. The generation device of the carbon emission report in the embodiment of the present application may be a terminal device shown in fig. 1.
Referring to fig. 2, a flow chart of a method for generating a carbon emission report is provided according to an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application may include the steps of:
s201, acquiring business index data of an enterprise from a business system.
The business system is used for monitoring and storing parameter values of various business indexes of an enterprise, and the business indexes represent relevant parameters of carbon emission. For example: the service indexes comprise: carbon dioxide emission total amount, power supply gas consumption, power supply carbon emission intensity, heat supply gas consumption, desulfurization emission amount and net purchase electric quantity emission amount.
S202, auditing the numerical values of the plurality of service indexes according to a preset auditing rule.
The terminal device prestores or is preconfigured with an audit rule, the audit rule is used for auditing parameter values of each service index in the S201 to obtain an audit result, and each service index is provided with an audit rule.
For example: the business index is the total carbon dioxide emission, and the associated audit rule is as follows: the total carbon dioxide emission is greater than 0. The terminal equipment acquires the numerical value of the total carbon dioxide emission amount, if the numerical value is larger than 0, the audit result is passed, and if the numerical value is smaller than or equal to 0, the audit result is not passed.
Another example is: the business index is net purchased electric quantity emission, and the associated audit rule is as follows: abs (audit calculation of net purchased electric quantity emission/carbon emission power plant, net purchased electric quantity emission) -1) is less than or equal to 0.05. And the terminal equipment acquires the numerical value of the net purchase emission, if the numerical value meets the associated audit rule, the audit is passed, otherwise, the audit is not passed.
In one or more possible embodiments, the method further comprises:
setting an audit rule;
the method for setting the audit rule comprises the following steps:
the method comprises the steps that terminal equipment displays an audit rule editing interface, the audit rule editing interface is used for editing audit rules, the audit rule editing interface comprises an index name input box and an audit formula input box, a user inputs an index name in the index name input box through an input device (a keyboard, a mouse or a touch screen and the like), an audit formula is input in the audit formula input box so as to set the audit rules of all service indexes, the index name and the audit formula are combined into the audit rules, the audit rules are verified, the audit rules can be verified by utilizing the audit rules to audit numerical values of corresponding service indexes, whether correct audit results are obtained or not is judged, if yes, the audit is passed, and if not, the audit does not pass. And carrying out persistent storage on the audit rules passing the verification.
Furthermore, the number of the audit rules set by the terminal device is multiple, the multiple audit rules are stored in a form of a table, each row of the table corresponds to one audit rule, and a field of each row includes: the method comprises the following steps of sequence number, index name, audit formula, state and operation, wherein the state comprises an enabled state and a disabled state, and the operation comprises the following steps: editing, starting and stopping, wherein editing means that the editing operation is carried out on the audit formula of the current row, starting means that the audit rule of the current row is started, and stopping means that the audit rule of the current row is stopped.
S203, if the audit is passed, calculating the numerical value of the service index by using a preset calculation formula to obtain a calculation value.
The terminal device is pre-stored or pre-configured with a calculation formula, and if each service index audit passes, the numerical value of the service index is substituted into the corresponding calculation formula to obtain a calculation value. Further, each calculation formula is provided with an adaptation region, which represents an applicable geographical range, for example: the calculation formula 1 is applicable to nationwide, the calculation formula 2 is Hubei province, and the calculation formula 2 is applicable to Beijing City.
For example: the calculation value is historical strength/reference line method _ unit power supply quota, and the calculation formula is as follows: the method comprises the following steps of (1) a power supply quantity, a power supply carbon dioxide emission benchmark, a unit cooling mode adjustment coefficient (a unit heat supply ratio correction coefficient, a carbon asset power plant estimated quota calculation model and a heat supply ratio).
Another example is: the calculated value is a reference line method _ unit heat supply carbon dioxide quota, and the calculation formula is as follows: and (4) a carbon asset-power plant estimated quota calculation model, heat supply quantity and heat supply carbon dioxide emission benchmark.
Another example is: the calculated value is a benchmark method _ unit power supply quota, and the calculation formula is as follows: and the carbon asset-power plant estimated quota calculation model is used for calculating the power generation capacity and the electric coal-fired unit benchmark value and the market adjustment factor.
In one or more possible embodiments, the method further comprises:
the terminal equipment sets a calculation formula;
the method for setting the calculation formula comprises the following steps:
the calculation formula editing interface comprises an operation symbol selection area and a constant input area;
selecting an operation symbol in the operation symbol selection area based on a selection operation of a user, and inputting a variable in the constant input area;
combining a calculation formula according to the selected operation symbol and the input variable;
checking the calculation formula;
and after the verification is passed, performing persistent storage on the calculation formula.
The preset calculation formulas are multiple in number, the multiple calculation formulas can be stored in a table mode, the row of each table comprises a serial number, a calculation formula name, a starting date, an ending date, a calculation value, a calculation formula, an applicable area and operation, the operation comprises editing and deleting, and a user can edit or delete the calculation formulas of each row based on the input device.
When the calculation formula needs to be edited, a calculation formula editing interface can be displayed, and the calculation formula editing interface comprises: the carbon asset _ power plant estimated quota calculation model selection area comprises a plurality of candidate carbon asset _ power plant estimated quota calculation models, for example: the system comprises a unit level, a heat supply ratio, a power supply amount, a cooling mode, a heat supply emission intensity, a special type unit, a power supply emission intensity, an installed capacity, a pressure parameter, a power plant ID, a last year power supply length ID, a last year power supply carbon emission intensity, a last year heat supply natural emission intensity, a historical carbon intensity value, a power generation amount, a heat productivity and a fuel type. The constant input field includes an input box in which a user can enter a numeric constant or a character constant. The operand selection area includes a plurality of candidate operands for selecting a desired operand, for example: "+", "abs", "". And the calculation formula display area is used for displaying the calculation formula edited by the user in real time. After the calculation formula is edited, the calculation formula is verified, and the verification method can be as follows: and substituting the numerical value of the corresponding service index into a calculation formula, judging whether a calculated value can be obtained, if so, passing the verification, otherwise, failing to pass the verification. And carrying out persistent storage on the calculation formula passing the verification.
And S204, calling the target report template in the template library.
The terminal device is pre-stored or pre-configured with a template library, the template library comprises a plurality of report templates, and the terminal device selects a target report template from the plurality of report templates according to actual requirements. Optionally, the terminal device selects the target report template from the template library according to the geographic location, or the terminal device selects the target report template from the template library according to the current time. For example: the geographical position of the terminal equipment is Hubei province, and the terminal equipment selects a template report template suitable for the Hubei province from a template library; another example is: the terminal device determines that the current time is 202109, namely 9 months 2021, and selects the target report template corresponding to the current time from the template library.
In this application, a plurality of placeholders are set in the target report template, the characters contained in different placeholders are different, and each placeholder is associated with a calculation value of a calculation formula, for example: two placeholders are set in the target report template: $ RLMXHL _ DC and $ { DHL _ DC }, $ for marking the start position of the placeholder, RLMXHL _ DC for marking the calculated value of equation 1, and DHL _ DC for marking the calculated value of equation 2.
Before the obtaining of the business index data of the enterprise from the business system, the method further includes:
setting a report template;
wherein the setting report template includes:
editing the text content of the report template;
inserting one or more placeholders in a designated location of the text content;
after the text content is edited, verifying the report template;
and after the verification is passed, persistently storing the report template into the template library.
Further, the verifying the report template includes:
judging whether the placeholder is located in the KV database;
if yes, the verification is passed;
if not, the check is failed.
S205, replacing the placeholders in the target report template by using the calculated values to obtain the carbon emission report.
When the scheme of the embodiment of the application is executed, when a carbon emission report needs to be generated, the business index data is obtained from the business system, the business index data is audited by using the preset auditing rule, after the audit is passed, the business index data is calculated by using the preset calculation formula to obtain a calculation value, and then the placeholder in the report template is replaced by using the calculation value to obtain a final carbon emission report. In conclusion, the service index data are automatically audited by the aid of the preset auditing rules, the report template provided with the placeholder is automatically replaced by the calculated value obtained by the calculating formula to obtain the carbon emission report, and compared with complex manual processing, the efficiency of report generation is improved, and the probability of business trip is reduced.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 3, a schematic structural diagram of a device for generating a carbon emission report according to an exemplary embodiment of the present application is shown, which is hereinafter referred to as device 3. The apparatus 3 may be implemented as all or part of a terminal device by software, hardware or a combination of both. The apparatus 3 comprises: the device comprises an acquisition unit 301, an auditing unit 302, a calculating unit 303, a calling unit 304 and a generating unit 305.
An obtaining unit 301, configured to obtain business index data of an enterprise from a business system; the service index data comprises a plurality of service indexes and numerical values of the service indexes;
the auditing unit 302 is used for auditing the numerical values of the plurality of service indexes according to a preset auditing rule;
the calculating unit 303 is configured to calculate the numerical value of the service index by using a preset calculation formula to obtain a calculated value if the audit is passed;
a calling unit 304, configured to call a target report template in the template library; wherein the target report template comprises a placeholder;
and the generating unit 305 is configured to replace the placeholder in the target report template with the calculated value to obtain the carbon emission report.
In one or more possible embodiments, the invoking a target report template in a template library includes:
calling a corresponding target report template in a template library according to the current time; or
And calling the corresponding target report template in the template library according to the geographic position.
In one or more possible embodiments, the placeholders are key placeholders, and the computed values are stored in the KV database;
the replacing the placeholders in the target report template by the calculated values to obtain the carbon emission report comprises the following steps:
inquiring a corresponding Value in a KV database according to the key placeholder;
and replacing the placeholders in the target report template by using the inquired value to obtain the carbon emission report.
In one or more possible embodiments, the method further comprises:
a report template setting unit for setting a report template;
wherein the setting report template includes:
editing the text content of the report template;
inserting one or more placeholders in a designated location of the text content;
after the text content is edited, verifying the report template;
and after the verification is passed, persistently storing the report template into the template library.
In one or more possible embodiments, the verifying the report template includes:
judging whether the placeholder is located in the KV database;
if yes, the verification is passed;
if not, the check is failed.
In one or more possible embodiments, the method further comprises:
the audit rule setting unit is used for setting audit rules;
wherein the setting of the audit rule comprises:
editing display audit rules; the audit rule editing interface comprises an index name input box and an audit formula input box;
acquiring the name of a service index input by a user in the index name input box, and acquiring an auditing formula input by the user in the auditing formula input box;
generating an auditing rule according to the business index name and the auditing formula;
checking the audit rule;
and after the verification is passed, performing persistent storage on the audit rule.
In one or more possible embodiments, the system further comprises a calculation formula setting unit for setting a calculation formula;
wherein the setting calculation formula includes:
displaying a calculation formula editing interface; the calculation formula editing interface comprises an operation symbol selection area and a constant input area;
selecting an operation symbol in the operation symbol selection area based on a selection operation of a user, and inputting a variable in the constant input area;
combining a calculation formula according to the selected operation symbol and the input variable;
checking the calculation formula;
and after the verification is passed, performing persistent storage on the calculation formula.
It should be noted that, when the device 3 provided in the above embodiment executes the method for generating a carbon emission report, the division of the above functional modules is merely exemplified, and in practical applications, the above functions may be distributed to different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules, so as to complete all or part of the above described functions. In addition, the apparatus for generating a carbon emission report and the method for generating a carbon emission report provided in the above embodiments belong to the same concept, and details of implementation processes are shown in the method embodiments, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiment shown in fig. 2, and a specific execution process may refer to a specific description of the embodiment shown in fig. 2, which is not described herein again.
The present application further provides a computer program product having at least one instruction stored thereon, the at least one instruction being loaded and executed by the processor to implement the method of generating a carbon emissions report as described in the various embodiments above.
Please refer to fig. 4, which provides a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 4, the terminal device 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, memory 405, at least one communication bus 402.
Wherein a communication bus 402 is used to enable connective communication between these components.
The user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may also include a standard wired interface and a wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The Memory 405 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 405 may alternatively be at least one storage device located remotely from the aforementioned processor 401. As shown in fig. 4, the memory 405, which is a type of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an information extraction application program.
In the terminal device 400 shown in fig. 4, the user interface 403 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 401 may be configured to call the application program stored in the memory 405 and specifically execute the method shown in fig. 2, and the specific process may refer to fig. 2 and is not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.
Claims (10)
1. A method of generating a carbon emission report, comprising:
acquiring business index data of an enterprise from a business system; the service index data comprises a plurality of service indexes and numerical values of the service indexes;
auditing the numerical values of the plurality of service indexes according to a preset auditing rule;
if the audit is passed, calculating the numerical value of the service index by using a preset calculation formula to obtain a calculation value;
calling a target report template in a template library; wherein the target report template comprises a placeholder;
and replacing the placeholders in the target report template by using the calculated values to obtain the carbon emission report.
2. The method of claim 1, wherein invoking the target report template in the template library comprises:
calling a corresponding target report template in a template library according to the current time; or
And calling the corresponding target report template in the template library according to the geographic position.
3. The method according to claim 1 or 2, characterized in that the placeholders are key placeholders, the calculated values being stored in the KV database;
the replacing the placeholders in the target report template by the calculated values to obtain the carbon emission report comprises the following steps:
inquiring a corresponding Value in a KV database according to the key placeholder;
and replacing the placeholders in the target report template by using the inquired value to obtain the carbon emission report.
4. The method of claim 3, wherein before obtaining business index data of the enterprise from the business system, the method further comprises:
setting a report template;
wherein the setting report template includes:
editing the text content of the report template;
inserting one or more placeholders in a designated location of the text content;
after the text content is edited, verifying the report template;
and after the verification is passed, persistently storing the report template into the template library.
5. The method of claim 4, wherein the verifying the report template comprises:
judging whether the placeholder is located in the KV database;
if yes, the verification is passed;
if not, the check is failed.
6. The method according to claim 1, 2, 4 or 5, wherein before the obtaining the business index data of the enterprise from the business system, the method further comprises:
setting an audit rule;
wherein the setting of the audit rule comprises:
editing display audit rules; the audit rule editing interface comprises an index name input box and an audit formula input box;
acquiring the name of a service index input by a user in the index name input box, and acquiring an auditing formula input by the user in the auditing formula input box;
generating an auditing rule according to the business index name and the auditing formula;
checking the audit rule;
and after the verification is passed, performing persistent storage on the audit rule.
7. The method of claim 6, wherein before obtaining business index data of the enterprise from the business system, further comprising:
the setting calculation formula;
wherein the setting calculation formula includes:
displaying a calculation formula editing interface; the calculation formula editing interface comprises an operation symbol selection area and a constant input area;
selecting an operation symbol in the operation symbol selection area based on a selection operation of a user, and inputting a variable in the constant input area;
combining a calculation formula according to the selected operation symbol and the input variable;
checking the calculation formula;
and after the verification is passed, performing persistent storage on the calculation formula.
8. An apparatus for generating a carbon emission report, the apparatus comprising:
the acquisition unit is used for acquiring business index data of an enterprise from a business system; the service index data comprises a plurality of service indexes and numerical values of the service indexes;
the auditing unit is used for auditing the numerical values of the plurality of service indexes according to a preset auditing rule;
the calculation unit is used for calculating the numerical value of the service index by using a preset calculation formula to obtain a calculation value if the audit is passed;
the calling unit is used for calling the target report template in the template library; wherein the target report template comprises a placeholder;
and the generating unit is used for replacing the placeholders in the target report template by using the calculated values to obtain the carbon emission report.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. A terminal device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111160610.4A CN113887945A (en) | 2021-09-30 | 2021-09-30 | Method and device for generating carbon emission report, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111160610.4A CN113887945A (en) | 2021-09-30 | 2021-09-30 | Method and device for generating carbon emission report, storage medium and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113887945A true CN113887945A (en) | 2022-01-04 |
Family
ID=79004748
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111160610.4A Pending CN113887945A (en) | 2021-09-30 | 2021-09-30 | Method and device for generating carbon emission report, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113887945A (en) |
-
2021
- 2021-09-30 CN CN202111160610.4A patent/CN113887945A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107908680A (en) | Management method, electronic device and the computer-readable recording medium of wechat public platform | |
CN109978629B (en) | Advertisement putting method and device, electronic equipment and storage medium | |
CN111191412A (en) | Method, device, storage medium and terminal for editing formula | |
CN110837356A (en) | Data processing method and device | |
CN111178017A (en) | Method and device for generating flow chart, storage medium and electronic equipment | |
CN116992092A (en) | Method and device for establishing flow model, storage medium and terminal equipment | |
CN110765610B (en) | PDM integration method, PDM integration device, computer equipment and storage medium | |
CN113887945A (en) | Method and device for generating carbon emission report, storage medium and terminal equipment | |
CN115879435A (en) | Cloud contract generation method in intelligent engineering scene | |
CN114493515A (en) | Power grid asset auditing method and device, storage medium and computer equipment | |
CN115860877A (en) | Product marketing method, device, equipment and medium | |
CN115827051A (en) | Software integration management system, method and server | |
CN115563942A (en) | Contract generation method and device, electronic equipment and computer readable medium | |
CN115167785A (en) | Label-based network disk file management method and device, network disk and storage medium | |
CN115423889A (en) | Image processing method and device, electronic equipment and storage medium | |
CN114518881A (en) | Page generation method, system and storage medium | |
CN115511518A (en) | Price auditing method and device for business and travel resources, storage medium and service equipment | |
CN117609011A (en) | Method and device for generating test steps in test case, storage medium and terminal equipment | |
CN116860227B (en) | Data development system and method based on big data ETL script arrangement | |
CN114358783A (en) | Configuration method and device for matching activity scheme, storage medium and computer equipment | |
CN117035637A (en) | Method and system for complex service verification based on flexible service rule configuration | |
CN117556795A (en) | Method for putting business travel service on shelf and business travel service system | |
CN115713300A (en) | Compilation method and device of merged report, storage medium and computer equipment | |
CN114547512A (en) | Information processing method and device, computer equipment and storage medium | |
CN116628079A (en) | Data synchronization method and device for business system, storage medium and computer equipment |
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 |