Data generation method and device, computer equipment and storage medium
By decomposing carbon emissions into two independent tasks: carbon emissions and carbon emission intensity, and performing step-by-step interaction and verification, the problem of complex and error-prone calculation of carbon emissions and carbon emission intensity in the existing technology is solved, and the problem of achieving the Automation and precision of carbon emission calculations.
Patent Information
- Application Number
- CN202411158398.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the calculation process of carbon emissions and carbon emission intensity is complex and error-prone, which increases the cognitive and operational burden of the specialist and reduces the efficiency and accuracy of carbon emission management.
By performing permission verification when receiving the carbon emission calculation request input by the user, the preset carbon emission calculation page is displayed, and the calculation indicators and rules are recommended, and the carbon emissions are calculated into two independent carbon emissions and carbon emission intensity. The subtasks of the till the steps are interacted and verified, and the calculation results are finally generated.
The automation and precision of carbon emission calculations have been achieved, which reduces the user's cognitive and operational burden, reduces the probability of calculation errors, and improves processing efficiency and accuracy.
Smart Images

Figure CN119200920A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of big data technology and financial technology, and in particular to data generation methods, devices, computer equipment and storage media. Background Art
[0002] As the world pays more and more attention to sustainable development and environmental protection, the ESG (Environment, Society and Corporate Governance) concept has become an important tool for evaluating corporate sustainable development. The ESG evaluation system is not only widely used by investment institutions to screen and evaluate companies in their investment portfolios, but has also gradually become an important basis for job seekers, customers and all sectors of society to evaluate business relationships.
[0003] However, in the process of ESG implementation, especially in the management and disclosure of carbon emissions, there are many challenges. Currently, when calculating carbon emissions and carbon emission intensity, specialists need to complete the selection of multiple indicators, configuration of calculation logic, and input and output of data in the same interface. This process is extremely complex and error-prone. Specifically, specialists need to first select multiple indicators and set the calculation logic to obtain carbon emissions, and then use the carbon emissions as the base to configure the calculation relationship indicators and logic again to obtain carbon emission intensity. This multi-step, high-intensity operation not only increases the cognitive and operational burden of specialists, but is also very likely to cause calculation errors due to distraction, which seriously restricts the efficiency and accuracy of carbon emission management. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a data generation method, device, computer equipment and storage medium to solve the technical problem that the existing specialists perform multi-step and high-intensity operations to calculate carbon emissions and carbon emission intensity, which not only increases the cognitive and operational burden of the specialists, but also easily leads to calculation errors due to distraction, seriously restricting the efficiency and accuracy of carbon emission management.
[0005] In order to solve the above technical problems, the present application provides a data generation method, which adopts the following technical solution:
[0006] Upon receiving a carbon emission calculation request input by a user, performing authority verification on the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user;
[0007] If the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page;
[0008] receiving a target calculation index selected by the user from the calculation index recommendation list, and receiving a calculation rule input by the user in the carbon emission calculation page;
[0009] Verifying the calculation rule based on a preset verification strategy;
[0010] If the calculation rule passes the verification, the carbon emission calculation process is performed based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result;
[0011] After the carbon emission calculation result is calculated, jump to the preset carbon emission intensity calculation page, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page;
[0012] Obtaining numerator data corresponding to the denominator indicator;
[0013] The carbon emission intensity calculation process is performed based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
[0014] Furthermore, the step of verifying the calculation rule based on a preset verification strategy specifically includes:
[0015] Get the preset length check strategy, format check strategy and value check strategy;
[0016] Performing a length check on the calculation rule based on the length check strategy;
[0017] If the calculation rule passes the length check, performing a format check on the calculation rule based on the format check strategy;
[0018] If the calculation rule passes the format check, performing a value check on the calculation rule based on the value check strategy;
[0019] If the calculation rule passes the numerical verification, it is determined that the calculation rule passes the verification; otherwise, it is determined that the calculation rule fails the verification.
[0020] Furthermore, the step of obtaining the numerator data corresponding to the denominator indicator specifically includes:
[0021] Get the preset carbon emission data table;
[0022] Querying a target denominator matching the denominator indicator from the carbon emission data table;
[0023] Acquire target carbon emission data corresponding to the target denominator from the carbon emission data table;
[0024] The target carbon emission data is used as the molecular data.
[0025] Furthermore, the step of verifying the authority of the user based on the user information of the user specifically includes:
[0026] Determining a target role corresponding to the user information;
[0027] Obtaining target permissions corresponding to the target role;
[0028] Determining whether the target authority includes an operation authority corresponding to carbon emission calculation;
[0029] If so, it is determined that the user has passed the authority verification; otherwise, it is determined that the user has not passed the authority verification.
[0030] Furthermore, after the step of performing carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result, the method further includes:
[0031] Receiving a submission instruction triggered by the user;
[0032] Determine whether there are any unfinished carbon emission intensity calculation projects;
[0033] If there is no unfinished carbon emission intensity calculation project, generating a corresponding calculation result report based on the carbon emission calculation result and the carbon emission intensity calculation result;
[0034] Determine the receiving user;
[0035] The preset sending notification interface is called to send the calculation result report to the receiving user.
[0036] Furthermore, the data generation method further includes:
[0037] Get the preset monitoring indicator type;
[0038] Collecting target monitoring indicators corresponding to the monitoring indicator type based on a preset monitoring agent;
[0039] Performing data analysis on the target monitoring indicators based on a preset monitoring tool to determine whether there are abnormal indicators in the target monitoring indicators;
[0040] If so, filter out the abnormal indicator from the target monitoring indicator, and generate corresponding alarm notification information based on the abnormal indicator;
[0041] The alarm notification information is sent to the preset operation and maintenance personnel.
[0042] Furthermore, after the step of performing carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result, the method further includes:
[0043] Determine the target storage method;
[0044] Calling a target storage medium corresponding to the target storage mode;
[0045] The carbon emission calculation result and the carbon emission intensity calculation result are stored based on the target storage medium.
[0046] In order to solve the above technical problems, the embodiment of the present application further provides a data generation device, which adopts the following technical solution:
[0047] A loading module is used to load the target page that is pre-generated based on the resource location tracking rules;
[0048] A calling module, used for calling a target interface corresponding to the target page;
[0049] A collection module, used to collect the business tracking data corresponding to the target resource position in the target page within a preset time period of the user based on the target interface;
[0050] A generation module, used to generate product conversion data corresponding to the target resource location based on the business tracking data;
[0051] A processing module is used to recommend replacement processing for the products in the target resource location based on the product conversion data.
[0052] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0053] Upon receiving a carbon emission calculation request input by a user, performing authority verification on the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user;
[0054] If the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page;
[0055] receiving a target calculation index selected by the user from the calculation index recommendation list, and receiving a calculation rule input by the user in the carbon emission calculation page;
[0056] Verifying the calculation rule based on a preset verification strategy;
[0057] If the calculation rule passes the verification, the carbon emission calculation process is performed based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result;
[0058] After the carbon emission calculation result is calculated, jump to the preset carbon emission intensity calculation page, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page;
[0059] Obtaining numerator data corresponding to the denominator indicator;
[0060] The carbon emission intensity calculation process is performed based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
[0061] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0062] Upon receiving a carbon emission calculation request input by a user, performing authority verification on the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user;
[0063] If the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page;
[0064] receiving a target calculation index selected by the user from the calculation index recommendation list, and receiving a calculation rule input by the user in the carbon emission calculation page;
[0065] Verifying the calculation rule based on a preset verification strategy;
[0066] If the calculation rule passes the verification, the carbon emission calculation process is performed based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result;
[0067] After the carbon emission calculation result is calculated, jump to the preset carbon emission intensity calculation page, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page;
[0068] Obtaining numerator data corresponding to the denominator indicator;
[0069] The carbon emission intensity calculation process is performed based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
[0070] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0071] When receiving a carbon emission calculation request input by a user, the present application verifies the authority of the user based on the user information of the user; if the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page; then the target calculation indicator selected by the user from the recommended list of calculation indicators is received, and the calculation rule entered by the user on the carbon emission calculation page is received; then the calculation rule is verified based on a preset verification strategy; if the calculation rule passes the verification, the carbon emission calculation is processed based on the calculation rule and the target calculation indicator to obtain the corresponding carbon emission calculation result; after the calculation of the carbon emission calculation result is completed, the application jumps to the preset carbon emission intensity calculation page, and receives the denominator indicator selected by the user on the carbon emission intensity calculation page; subsequently, the numerator data corresponding to the denominator indicator is obtained; finally, the carbon emission intensity calculation is processed based on the denominator indicator and the numerator data to obtain the corresponding carbon emission intensity calculation result. This application decomposes the carbon emission calculation process into two relatively independent calculation subtasks, carbon emission calculation and carbon emission intensity calculation, and then conducts step-by-step guided interaction with the user based on the use of the carbon emission calculation page and the carbon emission intensity calculation page to complete the calculation generation process of the carbon emission calculation results and the carbon emission intensity calculation results, thereby realizing the automation and precision of carbon emission calculation, greatly reducing the cognitive and operational burden of users when handling multiple carbon emission calculation tasks, reducing the learning and operating costs of users, reducing the probability of users making calculation errors, and effectively improving the processing efficiency and calculation accuracy of carbon emission calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0073] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0074] Figure 2 A flowchart of an embodiment of a data generation method according to the present application;
[0075] Figure 3 is a structural schematic diagram of an embodiment of a data generating device according to the present application;
[0076] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0077] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0078] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0079] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0080] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0081] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0082] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, and the like.
[0083] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0084] It should be noted that the data generation method provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the data generation device is generally arranged in the server / terminal device.
[0085] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0086] Continue to refer Figure 2 , showing a flow chart of an embodiment of the data generation method according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The data generation method provided in the embodiment of the present application can be applied to any scenario that requires carbon emissions calculation, and the data generation method can be applied to products in these scenarios, for example, the carbon emissions calculation processing of the data generation system constructed by insurance companies in the financial insurance field. The data generation method includes the following steps:
[0087] Step S201, upon receiving a carbon emission calculation request input by a user, verifying the authority of the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user.
[0088] In this embodiment, the electronic device (eg, Figure 1The server / terminal device shown in the figure) can obtain the carbon emission calculation request through a wired connection or a wireless connection. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, Wi F i connection, Bluetooth connection, Wi MAX connection, Zigbee connection, UWB (Ultra Wi deband) connection, and other wireless connection methods currently known or to be developed in the future. The execution subject of the present application is specifically a data generation system, which can also be called a carbon emission management system. And the present application can be applied to business scenarios in which carbon emission calculations are performed in a data generation system. Among them, the above-mentioned data generation system may be a financial institution, such as a data generation system constructed by an insurance company, and the above-mentioned user may be an employee of a financial institution. The above-mentioned user information may include the user's name information. In addition, after the user logs in to the data generation system through the user information, on the main interface of the data generation system, the user clicks to enter the "Carbon Emission Management" module, and then selects the "Carbon Emission Calculation" submodule, thereby triggering the above-mentioned carbon emission calculation request. In addition, the specific implementation process of the above-mentioned authorization verification of the user based on the user information of the user will be further described in detail in the subsequent specific embodiments of the present application, and will not be elaborated in detail here.
[0089] Step S202: If the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page.
[0090] In this embodiment, the above-mentioned carbon emission calculation page is a pre-built page for performing carbon emission calculation processing. The pre-set carbon emission calculation guidance information will also be displayed on the carbon emission calculation page, and the carbon emission calculation guidance information is used to guide the user to perform a standardized carbon emission calculation process. Among them, the above-mentioned calculation index recommendation list can be a list obtained by combining the calculation indicators that the user has used. The calculation index recommendation list includes selectable carbon emission indicators (such as carbon emissions of different production activities), carbon emission activity indicators (such as production process, transportation process, etc.) and carbon emission factor configuration (such as carbon emission coefficient per unit output).
[0091] Step S203, receiving the target calculation index selected by the user from the calculation index recommendation list, and receiving the calculation rule input by the user in the carbon emission calculation page.
[0092] In this embodiment, the user can select the target carbon emission index and the target carbon emission activity index related to the current carbon emission calculation task from the calculation index recommendation list according to the actual calculation requirements. And for the selected target carbon emission activity index, select the applicable configuration from the carbon emission factor configuration provided in the calculation index recommendation list as the target carbon emission factor configuration. The above-mentioned target calculation index is composed of the target carbon emission index, the target carbon emission activity index and the target carbon emission factor configuration selected by the user. Among them, the above-mentioned carbon emission calculation page also includes a calculation rule area. According to the selected target calculation index, the user can fill in the various parameters and formulas required for calculation line by line in the calculation rule area to generate the calculation rule. Specifically, the data generation system provides a clear input box and necessary prompts to help users fill in correctly. And during the filling process, the data generation system will check the content entered by the user in real time. Once it is filled in and correct, it will give a "calculatable" prompt, indicating that the current row is ready for calculation. In addition, if the user tries to calculate without filling in a row, the data generation system will immediately prompt an error and mark the problem row in red so that the user can quickly locate and correct it.
[0093] Step S204: verifying the calculation rule based on a preset verification strategy.
[0094] In this embodiment, the specific implementation process of verifying the calculation rules based on the preset verification strategy will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.
[0095] Step S205: If the calculation rule passes the verification, the carbon emission calculation process is performed based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result.
[0096] In this embodiment, after the calculation rules are verified, the user can click the calculation button in the carbon emission calculation page, so that the data generation system will perform carbon emission calculation processing according to the target calculation index selected by the user and the input calculation rules, and automatically calculate the corresponding carbon emission calculation results, and display the carbon emission calculation results on the carbon emission calculation page. Among them, when the user uses the carbon emission calculation module for the second, third or more times, the data generation system will intelligently provide the "Import last template" function so that the user can quickly reuse the previous calculation index settings. In addition. If the user wants to start from scratch or perform a completely different calculation, he can click the "One-click Clear" button to clear all inputs on the current carbon emission calculation page, and then re-enter the new calculation rules.
[0097] Step S206, after the carbon emission calculation result is calculated, jump to a preset carbon emission intensity calculation page, and receive the denominator index selected by the user on the carbon emission intensity calculation page.
[0098] In this embodiment, the carbon emission intensity calculation page is a pre-built page for performing carbon emission intensity calculation processing. The carbon emission intensity calculation page also displays pre-set carbon emission intensity calculation guidance information, which is used to guide users to perform a standardized carbon emission intensity calculation process. A drop-down list or selector is provided in the carbon emission intensity calculation page, allowing users to select the desired denominator from the pre-defined denominator options according to actual needs and use it as the denominator indicator.
[0099] Step S207, obtaining numerator data corresponding to the denominator indicator.
[0100] In this embodiment, the specific implementation process of obtaining the numerator data corresponding to the denominator indicator will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.
[0101] Step S208, performing carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
[0102] In this embodiment, after obtaining the denominator index and the numerator data, the carbon emission intensity calculation process can be performed on the denominator index and the numerator data by calling the calculation logic corresponding to the carbon emission intensity calculation, thereby obtaining the corresponding carbon emission intensity calculation result.
[0103] When receiving a carbon emission calculation request input by a user, the present application verifies the authority of the user based on the user information of the user; if the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page; then the target calculation indicator selected by the user from the recommended list of calculation indicators is received, and the calculation rule entered by the user on the carbon emission calculation page is received; then the calculation rule is verified based on a preset verification strategy; if the calculation rule passes the verification, the carbon emission calculation is processed based on the calculation rule and the target calculation indicator to obtain the corresponding carbon emission calculation result; after the calculation of the carbon emission calculation result is completed, the application jumps to the preset carbon emission intensity calculation page, and receives the denominator indicator selected by the user on the carbon emission intensity calculation page; subsequently, the numerator data corresponding to the denominator indicator is obtained; finally, the carbon emission intensity calculation is processed based on the denominator indicator and the numerator data to obtain the corresponding carbon emission intensity calculation result. This application decomposes the carbon emission calculation process into two relatively independent calculation subtasks, carbon emission calculation and carbon emission intensity calculation, and then conducts step-by-step guided interaction with the user based on the use of the carbon emission calculation page and the carbon emission intensity calculation page to complete the calculation generation process of the carbon emission calculation results and the carbon emission intensity calculation results, thereby realizing the automation and precision of carbon emission calculation, greatly reducing the cognitive and operational burden of users when handling multiple carbon emission calculation tasks, reducing the learning and operating costs of users, reducing the probability of users making calculation errors, and effectively improving the processing efficiency and calculation accuracy of carbon emission calculation.
[0104] In some optional implementations, step S204 includes the following steps:
[0105] Get the preset length check strategy, format check strategy, and value check strategy.
[0106] In this embodiment, the length check strategy is a check strategy for the length limit of the input calculation rules pre-built according to the actual carbon emission management needs, and the value selection for the length limit can be set according to the actual needs. The format check strategy is a check strategy for the format requirements of the input calculation rules pre-built according to the actual carbon emission management needs, and the specific standards for the format requirements can be set according to the actual needs. The value check strategy is a check strategy for the value range of the input calculation rules pre-built according to the actual carbon emission management needs. The value selection for the value range can be set according to the actual needs.
[0107] The length of the calculation rule is checked based on the length check strategy.
[0108] In this embodiment, the length of the rule content of the calculation rule is obtained, and it is determined whether the length meets the length limit requirement of the above-mentioned length verification strategy. If it meets the length limit requirement, it is determined that the calculation rule passes the length check; otherwise, it is determined that the calculation rule fails the length check.
[0109] If the calculation rule passes the length check, a format check is performed on the calculation rule based on the format check strategy.
[0110] In this embodiment, the format of the rule content of the calculation rule is obtained, and it is determined whether the format meets the format requirements of the above-mentioned format verification strategy. If it meets the format requirements, it is determined that the calculation rule passes the format verification, otherwise it is determined that the calculation rule fails the format verification.
[0111] If the calculation rule passes the format check, a value check is performed on the calculation rule based on the value check strategy.
[0112] In this embodiment, the numerical value in the rule content of the calculation rule is obtained, and it is determined whether the numerical value is within the numerical range corresponding to the above-mentioned numerical verification strategy. If it is within the numerical range, it is determined that the calculation rule passes the numerical verification; otherwise, it is determined that the calculation rule fails the numerical verification.
[0113] If the calculation rule passes the numerical verification, it is determined that the calculation rule passes the verification; otherwise, it is determined that the calculation rule fails the verification.
[0114] In this embodiment, only when the calculation rule passes the verification of the length verification strategy, the format verification strategy and the value verification strategy at the same time, the calculation rule will be judged as having passed the verification. If the calculation rule does not pass the verification of any one or more verification strategies, it is judged that the calculation rule has not passed the verification. If the calculation rule has not passed the verification, a clear error message is returned to the user, and further operations may be prevented.
[0115] The present application performs multiple checks on the calculation rules by combining the use of length verification strategy, format verification strategy and numerical verification strategy. Only when it is detected that the calculation rules have passed the verification of the length verification strategy, format verification strategy and numerical verification strategy, will the calculation rules be subsequently determined to have passed the verification, thereby effectively improving the verification accuracy and verification standardization of the calculation rules and ensuring the accuracy of the verification results of the calculation rules.
[0116] In some optional implementations of this embodiment, step S207 includes the following steps:
[0117] Get a preset carbon emissions data table.
[0118] In this embodiment, the carbon emission data table is a pre-constructed data table storing a one-to-one correspondence between the denominator and the carbon emission data.
[0119] A target denominator matching the denominator indicator is found from the carbon emission data table.
[0120] In this embodiment, the denominator index can be similarly calculated with all denominators in the carbon emission data table, and the target similarity with the highest similarity value can be selected from all similarities, and the denominator corresponding to the target similarity can be used as the above target denominator.
[0121] The target carbon emission data corresponding to the target denominator is obtained from the carbon emission data table.
[0122] In this embodiment, the carbon emission data table is queried by taking the target denominator as a parameter, so as to obtain the target carbon emission data corresponding to the target denominator from the carbon emission data table.
[0123] The target carbon emission data is used as the molecular data.
[0124] The present application obtains a preset carbon emission data table; then queries the target denominator that matches the denominator index from the carbon emission data table; subsequently obtains the target carbon emission data corresponding to the target denominator from the carbon emission data table, and uses the target carbon emission data as the numerator data. The present application uses the carbon emission data table to perform data query processing on the above-mentioned denominator index, and can automatically, quickly and accurately query the numerator data that matches the denominator index, so that the user does not need to manually input the numerator of the denominator index, which effectively reduces the user's workload, improves the efficiency of generating numerator data, and ensures the accuracy of the obtained numerator data.
[0125] In some optional implementations, step S201 includes the following steps:
[0126] A target role corresponding to the user information is determined.
[0127] In this embodiment, for the data generation system, corresponding permissions and roles are defined for the data generation system in advance. Specifically, define permissions: First, it is necessary to clarify all possible operation permissions in the data generation system. These operation permissions can be subdivided into different levels according to business needs, such as module level, function level and data level. Each permission should have a unique identifier for easy management and control. Define roles: Define different roles according to the responsibilities and required permissions of employees. Each role can contain multiple permissions, which together constitute the scope of responsibilities of the role. Assign permissions to roles: Assign defined permissions to corresponding roles. By considering the responsibilities and required permissions of each role, ensure that each role has the minimum set of permissions required to complete its work, that is, follow the principle of least authority. Assign roles to users: Assign defined roles to corresponding users according to the actual positions and responsibilities of employees. In this way, each employee indirectly obtains the corresponding operation permissions through his role. Among them, the above-mentioned user information may include the name information of the user. And there is a one-to-one correspondence between the name of each employee and the role. The role corresponding to the user information, that is, the above-mentioned target role, can be queried by using the above-mentioned user information.
[0128] Get the target permission corresponding to the target role.
[0129] In this embodiment, the target permissions may be obtained by querying the permissions possessed by the target role.
[0130] It is determined whether the target authority includes an operation authority corresponding to carbon emission calculation.
[0131] In this embodiment, all the operation permissions included in the target permissions may be analyzed to detect whether the operation permissions corresponding to the carbon emission calculation are included in all the operation permissions.
[0132] If so, it is determined that the user has passed the authority verification; otherwise, it is determined that the user has not passed the authority verification.
[0133] In this embodiment, if the target authority includes the operation authority corresponding to carbon emission calculation, it indicates that the user has the operation authority corresponding to carbon emission calculation, and it is determined that the user has passed the authority verification. If the target authority does not include the operation authority corresponding to carbon emission calculation, it indicates that the user does not have the operation authority corresponding to carbon emission calculation, and it is determined that the user has not passed the authority verification.
[0134] This application determines the target role corresponding to the user information; then obtains the target authority corresponding to the target role; and subsequently determines whether the target authority contains the operation authority corresponding to the carbon emission calculation. Only when it is detected that the target authority contains the operation authority corresponding to the carbon emission calculation, it indicates that the user has the operation authority corresponding to the carbon emission calculation, thereby determining that the user has passed the authority verification, effectively improving the processing intelligence and accuracy of the user's authority verification, and ensuring the accuracy of the obtained user's authority verification results. In addition, only after it is determined that the user has passed the authority verification, will the response processing of the carbon emission calculation request input by the user be executed later, effectively ensuring the intelligent processing and standardized processing of the carbon emission calculation request, and improving the response security of the carbon emission calculation request.
[0135] In some optional implementations, after step S208, the electronic device may further perform the following steps:
[0136] A submission instruction triggered by the user is received.
[0137] In this embodiment, during the process of calculating the carbon emission intensity based on the denominator indicator and the numerator data, the user can click the submit button to trigger the above submission instruction to submit the carbon emission calculation results and the carbon emission intensity calculation results.
[0138] Determine whether there are any unfinished carbon emission intensity calculation projects.
[0139] In this embodiment, an intelligent reminder function is provided in the calculation process of carbon emission intensity. The data generation system can detect the integrity and status of the calculation process of carbon emission intensity, and intelligently remind users to identify the calculation completion status through button color changes, red prompts, pop-up window prompts, etc., so as to improve the calculation accuracy of carbon emission intensity indicators. Among them, if there are unfinished carbon emission intensity calculation items in the calculation process, a pop-up window will be displayed to prompt the calculation before submission. If there is no pop-up window prompt, it is determined that there are no unfinished carbon emission intensity calculation items in the current calculation process, that is, the carbon emission intensity calculation items have been fully calculated, and the user can successfully complete the submission of the carbon emission calculation results and the carbon emission intensity calculation results after clicking the success button.
[0140] If there is no unfinished carbon emission intensity calculation project currently, a corresponding calculation result report is generated based on the carbon emission calculation result and the carbon emission intensity calculation result.
[0141] In this embodiment, the carbon emission calculation result and the carbon emission intensity calculation result can be filled into a preset calculation result report template to generate a corresponding calculation result report. The above calculation result report template is a template file constructed according to the actual calculation result report generation structure requirements, and the content of the calculation result report template can be written according to actual needs.
[0142] Determine the receiving user.
[0143] In this embodiment, the receiving user may be a manager of the data generating system.
[0144] The preset sending notification interface is called to send the calculation result report to the receiving user.
[0145] In this embodiment, the notification sending interface is a pre-built interface for sending notifications, and the notification processing of sending the calculation result report to the receiving user can be completed by using the notification sending interface.
[0146] After receiving the submission instruction triggered by the user, the present application determines whether there is an uncompleted carbon emission intensity calculation project at present; if there is no uncompleted carbon emission intensity calculation project at present, a corresponding calculation result report is generated based on the carbon emission calculation result and the carbon emission intensity calculation result; then the receiving user is determined; and the preset sending notification interface is subsequently called to send the calculation result report to the receiving user. After the present application performs carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain the corresponding carbon emission intensity calculation result, when receiving the submission instruction triggered by the user, if it is detected that there is no uncompleted carbon emission intensity calculation project at present, a corresponding calculation result report is intelligently generated based on the carbon emission calculation result and the carbon emission intensity calculation result, thereby improving the generation efficiency and intelligence of the calculation result report. In addition, the preset sending notification interface is automatically called to send the calculation result report to the corresponding receiving user, so that the receiving user can receive the calculation result report in a timely manner and can perform corresponding subsequent processing, which is conducive to improving the user experience of the receiving user and improving the work efficiency of the receiving user.
[0147] In some optional implementations of this embodiment, the electronic device may further perform the following steps:
[0148] Get the preset monitoring indicator type.
[0149] In this embodiment, there is no specific limitation on the selection of the above monitoring indicator types, which can be set according to the actual system monitoring requirements, for example, performance indicator types, business indicator types, and resource status types. Performance indicator types may include CPU usage type, memory usage type, disk IO type, and network bandwidth type. Business indicator types may include interface response time type, request success rate type, error rate type, and user activity type. Resource status types may include database connection number type, cache hit rate type, and queue length type.
[0150] The target monitoring indicators corresponding to the monitoring indicator type are collected based on the preset monitoring agent.
[0151] In this embodiment, a monitoring agent is pre-deployed in the data generation system to collect indicator data. The monitoring agent collects target monitoring indicators corresponding to the monitoring indicator type in the data generation system and sends the corresponding target monitoring indicators to the backend service of the monitoring tool.
[0152] Based on a preset monitoring tool, data analysis is performed on the target monitoring indicators to determine whether there are abnormal indicators in the target monitoring indicators.
[0153] In this embodiment, a monitoring tool is deployed in advance in the data generation system. And monitoring rules are configured in the monitoring tool to define which indicators should trigger an alarm when they exceed or fall below a certain threshold. The monitoring rules can be set based on multiple conditions such as time, frequency, threshold, etc. Among them, there is no specific limitation on the selection of the above-mentioned monitoring tools. For example, any one of the monitoring tools such as Prometheus, Grafana, AWS CloudWatch, Azure Monitor, etc. can be used. Specifically, the target monitoring indicators are analyzed by using the monitoring rules configured in the monitoring tool, and it is detected whether there are indicators in the target monitoring indicators that meet the requirements of triggering an alarm. If there are specified indicators in the target monitoring indicators that meet the requirements of triggering an alarm, the specified indicators are used as the above-mentioned abnormal indicators. In addition, the monitoring indicators and thresholds can be adjusted according to the changes and requirements of the data generation system by regularly reviewing the monitoring strategies and monitoring rules. Ensure that the monitoring strategies are consistent with the actual operating conditions of the data generation system.
[0154] If so, the abnormal indicator is screened out from the target monitoring indicator, and corresponding alarm notification information is generated based on the abnormal indicator.
[0155] In this embodiment, the abnormal indicator can be filled into a preset alarm notification information template to generate corresponding alarm notification information. The above alarm notification information template is an information template constructed according to the actual alarm notification requirements of abnormal indicators, and the content of the information template can be written according to actual requirements.
[0156] The alarm notification information is sent to the preset operation and maintenance personnel.
[0157] In this embodiment, the above-mentioned operation and maintenance personnel may specifically be system operation and maintenance personnel of the data generation system. The alarm notification information may be sent to the preset operation and maintenance personnel by using a preset alarm notification method, so that the operation and maintenance personnel can be notified in time when the alarm is triggered. The above-mentioned alarm notification method may be in the form of email, SMS, etc. In addition, for some predictable or common failures, an automated script may be configured to attempt to restore the service or mitigate the impact of the failure. For example, when a service instance fails, the instance may be automatically restarted or its traffic may be transferred to other instances.
[0158] This application obtains a preset monitoring indicator type; then collects the target monitoring indicators corresponding to the monitoring indicator type based on a preset monitoring agent; then performs data analysis on the target monitoring indicators based on a preset monitoring tool to determine whether there are abnormal indicators in the target monitoring indicators; if so, screens out the abnormal indicators from the target monitoring indicators, and generates corresponding alarm notification information based on the abnormal indicators; subsequently sends the alarm notification information to the preset operation and maintenance personnel. During the operation of the system, this application will also intelligently monitor the operating status of the system based on the use of monitoring agents and monitoring tools, and when abnormal indicators are detected in the system, it will promptly and intelligently generate corresponding alarm notification information based on the abnormal indicators and send it to the corresponding operation and maintenance personnel, so that the operation and maintenance personnel can promptly handle the current problems of the system by consulting the alarm notification information, thereby ensuring the stability and reliability of the system.
[0159] In some optional implementations of this embodiment, after step S208, the electronic device may further perform the following steps:
[0160] Determine the target storage method.
[0161] In this embodiment, the above-mentioned target storage method is the storage method adopted for the storage processing corresponding to the carbon emission calculation results and the carbon emission intensity calculation results. There is no specific limitation on the selection of the target storage method, which can be determined according to the actual business usage requirements. Exemplarily, the target storage method can adopt any one of the storage methods such as local database storage, cloud server storage, network disk storage, blockchain storage, etc. Among them, blockchain storage is preferably used as the above-mentioned target storage method. By using blockchain to store and manage the carbon emission calculation results and the carbon emission intensity calculation results, the security and non-tamperability of the carbon emission calculation results and the carbon emission intensity calculation results can be effectively guaranteed.
[0162] The target storage medium corresponding to the target storage mode is called.
[0163] In this embodiment, for the storage methods of local database storage, cloud server storage, network disk storage, and blockchain storage, the corresponding storage media include local database, cloud server, network disk, and blockchain.
[0164] The carbon emission calculation result and the carbon emission intensity calculation result are stored based on the target storage medium.
[0165] In this embodiment, the storage location information of the target storage medium is obtained, and a communication connection is established with the target storage medium according to the storage location information, thereby storing the carbon emission calculation result and the carbon emission intensity calculation result in the target storage medium.
[0166] The present application determines the target storage method; then calls the target storage medium corresponding to the target storage method; and subsequently stores and processes the carbon emission calculation results and the carbon emission intensity calculation results based on the target storage medium. After completing the generation of the carbon emission calculation results and the carbon emission intensity calculation results, the present application will also intelligently call the target storage medium corresponding to the target storage method to store and process the carbon emission calculation results and the carbon emission intensity calculation results, thereby effectively ensuring the data security and non-tamperability of the generated carbon emission calculation results and the carbon emission intensity calculation results, and improving the storage intelligence of the carbon emission calculation results and the carbon emission intensity calculation results.
[0167] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0168] It should be emphasized that in order to further ensure the privacy and security of the above carbon emission intensity calculation results, the above carbon emission intensity calculation results can also be stored in a blockchain node.
[0169] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0170] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0171] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0172] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0173] Further references Figure 3 , as a response to the above Figure 2In order to realize the method shown in the figure, the present application provides an embodiment of a data generation device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0174] like Figure 3 As shown, the data generating device 300 described in this embodiment includes: a first verification module 301, a display module 302, a first receiving module 303, a second verification module 304, a first calculation module 305, a second receiving module 306, a first acquisition module 307 and a second calculation module 308. Among them:
[0175] The first verification module 301 is used to perform authority verification on the user based on the user information of the user when receiving a carbon emission calculation request input by the user; wherein the carbon emission calculation request carries the user information of the user;
[0176] A display module 302 is used to display a preset carbon emission calculation page if the user passes the authority verification, and to display a recommended list of calculation indicators corresponding to the user in the carbon emission calculation page;
[0177] A first receiving module 303 is used to receive the target calculation index selected by the user from the calculation index recommendation list, and receive the calculation rule input by the user in the carbon emission calculation page;
[0178] A second verification module 304, used to verify the calculation rule based on a preset verification strategy;
[0179] A first calculation module 305 is used to perform carbon emission calculation processing based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result if the calculation rule passes the verification;
[0180] The second receiving module 306 is used to jump to a preset carbon emission intensity calculation page after the carbon emission calculation result is calculated, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page;
[0181] A first acquisition module 307 is used to acquire numerator data corresponding to the denominator indicator;
[0182] The second calculation module 308 is used to perform carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
[0183] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the data generation method in the aforementioned implementation mode, and are not described in detail here.
[0184] In some optional implementations of this embodiment, the second verification module 304 includes:
[0185] The first acquisition submodule is used to obtain a preset length check strategy, a format check strategy and a value check strategy;
[0186] A first check submodule, configured to perform a length check on the calculation rule based on the length check strategy;
[0187] A second check submodule, configured to perform format check on the calculation rule based on the format check strategy if the calculation rule passes the length check;
[0188] A third check submodule, configured to perform a numerical check on the calculation rule based on the numerical check strategy if the calculation rule passes the format check;
[0189] The first determination submodule is used to determine that the calculation rule has passed the verification if the calculation rule has passed the numerical verification, and otherwise determine that the calculation rule has not passed the verification.
[0190] In some optional implementations of this embodiment, the first acquisition module 307 includes:
[0191] The second acquisition submodule is used to acquire a preset carbon emission data table;
[0192] A query submodule, used to query the target denominator matching the denominator indicator from the carbon emission data table;
[0193] A third acquisition submodule is used to acquire target carbon emission data corresponding to the target denominator from the carbon emission data table;
[0194] The first determination submodule is used to use the target carbon emission data as the molecular data.
[0195] In some optional implementations of this embodiment, the first verification module 301 includes:
[0196] A second determination submodule is used to determine a target role corresponding to the user information;
[0197] A fourth acquisition submodule is used to acquire the target permission corresponding to the target role;
[0198] A judgment submodule, used to judge whether the target authority includes an operation authority corresponding to the carbon emission calculation;
[0199] The second determination submodule is used to determine that if yes, the user has passed the authority verification; otherwise, determine that the user has not passed the authority verification.
[0200] In some optional implementations of this embodiment, the data generating device further includes:
[0201] A third receiving module, used to receive the submission instruction triggered by the user;
[0202] A judgment module is used to judge whether there is an unfinished carbon emission intensity calculation project;
[0203] A generation module, configured to generate a corresponding calculation result report based on the carbon emission calculation result and the carbon emission intensity calculation result if there is no unfinished carbon emission intensity calculation project at present;
[0204] A first determining module, used to determine a receiving user;
[0205] The first sending module is used to call a preset sending notification interface to send the calculation result report to the receiving user.
[0206] In some optional implementations of this embodiment, the data generating device further includes:
[0207] The second acquisition module is used to obtain a preset monitoring indicator type;
[0208] A collection module, used to collect target monitoring indicators corresponding to the monitoring indicator type based on a preset monitoring agent;
[0209] An analysis module is used to perform data analysis on the target monitoring indicators based on a preset monitoring tool to determine whether there are abnormal indicators in the target monitoring indicators;
[0210] A screening module, for screening out the abnormal indicator from the target monitoring indicator, and generating corresponding alarm notification information based on the abnormal indicator;
[0211] The second sending module is used to send the alarm notification information to a preset operation and maintenance personnel.
[0212] In some optional implementations of this embodiment, the data generating device further includes:
[0213] A second determination module is used to determine a target storage mode;
[0214] A calling module, used for calling a target storage medium corresponding to the target storage mode;
[0215] A storage module is used to store the carbon emission calculation result and the carbon emission intensity calculation result based on the target storage medium.
[0216] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0217] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.
[0218] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0219] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of the data generation method, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0220] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the data generation method.
[0221] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0222] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the data generation method as described above.
[0223] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0224] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A data generation method, characterized in that: The steps include: Upon receiving a carbon emission calculation request input by a user, performing authority verification on the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user; If the user passes the authority verification, a preset carbon emission calculation page is displayed, and a recommended list of calculation indicators corresponding to the user is displayed on the carbon emission calculation page; receiving a target calculation index selected by the user from the calculation index recommendation list, and receiving a calculation rule input by the user in the carbon emission calculation page; Verifying the calculation rule based on a preset verification strategy; If the calculation rule passes the verification, the carbon emission calculation process is performed based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result; After the carbon emission calculation result is calculated, jump to the preset carbon emission intensity calculation page, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page; Obtaining numerator data corresponding to the denominator indicator; The carbon emission intensity calculation process is performed based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
2. The data generation method according to claim 1, characterized in that: The step of verifying the calculation rule based on a preset verification strategy specifically includes: Get the preset length check strategy, format check strategy and value check strategy; Performing a length check on the calculation rule based on the length check strategy; If the calculation rule passes the length check, performing a format check on the calculation rule based on the format check strategy; If the calculation rule passes the format check, performing a value check on the calculation rule based on the value check strategy; If the calculation rule passes the numerical verification, it is determined that the calculation rule passes the verification; otherwise, it is determined that the calculation rule fails the verification.
3. The data generation method according to claim 1, characterized in that: The step of obtaining the numerator data corresponding to the denominator indicator specifically includes: Get the preset carbon emission data table; Querying a target denominator matching the denominator indicator from the carbon emission data table; Acquire target carbon emission data corresponding to the target denominator from the carbon emission data table; The target carbon emission data is used as the molecular data.
4. The data generation method according to claim 1, characterized in that: The step of verifying the authority of the user based on the user information of the user specifically includes: Determining a target role corresponding to the user information; Obtaining target permissions corresponding to the target role; Determining whether the target authority includes an operation authority corresponding to carbon emission calculation; If so, it is determined that the user has passed the authority verification; otherwise, it is determined that the user has not passed the authority verification.
5. The data generation method according to claim 1, characterized in that: After the step of performing carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result, the method further includes: Receiving a submission instruction triggered by the user; Determine whether there are any unfinished carbon emission intensity calculation projects; If there is no unfinished carbon emission intensity calculation project, generating a corresponding calculation result report based on the carbon emission calculation result and the carbon emission intensity calculation result; Determine the receiving user; The preset sending notification interface is called to send the calculation result report to the receiving user.
6. The data generation method according to claim 1, characterized in that: The data generation method further includes: Get the preset monitoring indicator type; Collecting target monitoring indicators corresponding to the monitoring indicator type based on a preset monitoring agent; Performing data analysis on the target monitoring indicators based on a preset monitoring tool to determine whether there are abnormal indicators in the target monitoring indicators; If so, filter out the abnormal indicator from the target monitoring indicator, and generate corresponding alarm notification information based on the abnormal indicator; The alarm notification information is sent to the preset operation and maintenance personnel.
7. The data generation method according to claim 1, characterized in that: After the step of performing carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result, the method further includes: Determine the target storage method; Calling a target storage medium corresponding to the target storage mode; The carbon emission calculation result and the carbon emission intensity calculation result are stored based on the target storage medium.
8. A data generating device, characterized in that: include: A first verification module, configured to, upon receiving a carbon emission calculation request input by a user, perform authority verification on the user based on the user information of the user; wherein the carbon emission calculation request carries the user information of the user; A display module, used to display a preset carbon emission calculation page if the user passes the authority verification, and to display a recommended list of calculation indicators corresponding to the user on the carbon emission calculation page; A first receiving module, configured to receive a target calculation indicator selected by the user from the calculation indicator recommendation list, and receive a calculation rule input by the user in the carbon emission calculation page; A second verification module, used to verify the calculation rule based on a preset verification strategy; A first calculation module, configured to perform carbon emission calculation processing based on the calculation rule and the target calculation index to obtain a corresponding carbon emission calculation result if the calculation rule passes the verification; A second receiving module is used to jump to a preset carbon emission intensity calculation page after the carbon emission calculation result is calculated, and receive the denominator indicator selected by the user in the carbon emission intensity calculation page; A first acquisition module, used to acquire numerator data corresponding to the denominator indicator; The second calculation module is used to perform carbon emission intensity calculation processing based on the denominator index and the numerator data to obtain a corresponding carbon emission intensity calculation result.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the data generating method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the data generation method according to any one of claims 1 to 7 are implemented.
