CN113094580A - Carbon quota calculation method and device, storage medium and terminal equipment - Google Patents

Carbon quota calculation method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN113094580A
CN113094580A CN202110313176.2A CN202110313176A CN113094580A CN 113094580 A CN113094580 A CN 113094580A CN 202110313176 A CN202110313176 A CN 202110313176A CN 113094580 A CN113094580 A CN 113094580A
Authority
CN
China
Prior art keywords
carbon quota
data query
transaction server
carbon
query request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110313176.2A
Other languages
Chinese (zh)
Inventor
刘爱锋
宋小松
朱超
肖胡颖
吴辉
张锦霞
钱金龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
High Beam Energy Internet Industry Development Hengqin Co ltd
Yuanguang Software Co Ltd
Original Assignee
High Beam Energy Internet Industry Development Hengqin Co ltd
Yuanguang Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by High Beam Energy Internet Industry Development Hengqin Co ltd, Yuanguang Software Co Ltd filed Critical High Beam Energy Internet Industry Development Hengqin Co ltd
Priority to CN202110313176.2A priority Critical patent/CN113094580A/en
Publication of CN113094580A publication Critical patent/CN113094580A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a carbon quota calculation method and device, terminal equipment and a storage medium, and relates to the field of computers. The carbon quota calculating method comprises the following steps: generating a data query request; the data query request carries industry type information, enterprise position information and a query time period; determining a target transaction server corresponding to the enterprise location information among a plurality of transaction servers; sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period; and receiving a data query response carrying the carbon quota from the target transaction server, wherein the carbon quota of a specific time period can be automatically calculated according to the position of an enterprise and the industry, so that the calculation accuracy and the calculation efficiency are improved.

Description

Carbon quota calculation method and device, storage medium and terminal equipment
Technical Field
The present application relates to the field of office automation, and in particular, to a method, a system, an apparatus, a storage medium, and a terminal device for calculating a carbon quota.
Background
China is a large carbon dioxide gas emission country, the exploration of carbon emission reduction work starts as early as 90 years in the 20 th century, 7 pilot carbon markets such as Shanghai environmental energy exchange, Shenzhen emission right exchange, Beijing environmental exchange and Tianjin emission right exchange are established successively from 2013, and Sichuan and Fujian two pilot provinces are added in 2016. So far, the carbon market of the test point in China is brought into more than 2800 households of a control and emission enterprise, the total amount of covered carbon emission exceeds 13 hundred million tons, and the total amount of the market is the second in the world. According to the national plan, the carbon emission right transaction management method (trial) was approved by the conference of ministry of ecological environment department in 12-25 of 2020, and nationwide carbon emission right transaction has been gradually developed. Under the current carbon asset trading rules, carbon emission control enterprises can trade carbon quotas in a plurality of carbon emission right trading markets, and the calculation of the carbon quotas is unfixed for different industries and different years and is adjusted and changed every year. For group companies with carbon control enterprises all over the country, the calculation rules of carbon quotas of different industries in all places need to be known. At present, when a carbon control and emission enterprise calculates the carbon quota, no corresponding system or tool is used for calculation, the calculation is generally performed in a spreadsheet form, and if the enterprise relates to a plurality of carbon trading markets and a plurality of different calculation rules, the carbon quota cannot be quickly and accurately calculated.
Disclosure of Invention
In order to solve the technical problem, the present application provides a method, a related apparatus, and a storage medium for calculating a carbon quota, so as to solve the problem of low calculation efficiency of the carbon quota in the related art.
In a first aspect, the present application provides a method for calculating a carbon quota, including:
generating a data query request; the data query request carries industry type information, enterprise position information and a query time period;
determining a target transaction server corresponding to the enterprise location information among a plurality of transaction servers;
sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
and receiving a data query response carrying the carbon quota from the target trading server.
In a second aspect, the present application provides a carbon quota computing apparatus, including:
the generating unit is used for generating a data query request; the data query request carries industry type information, enterprise position information and a query time period;
a determining unit, configured to determine, among the plurality of transaction servers, a target transaction server corresponding to the enterprise location information;
the receiving and sending unit is used for sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
the transceiving unit is further configured to receive a data query response carrying the carbon quota from the target transaction server.
In another aspect, the present application provides an apparatus, which may implement the service scheduling method of the first aspect. For example, the apparatus may be a chip (such as a baseband chip, or a communication chip, etc.) or a server. The above-described method may be implemented by software, hardware, or by executing corresponding software by hardware.
In one possible implementation manner, the structure of the apparatus includes a processor, a memory; the processor is configured to support the device to execute corresponding functions in the above carbon quota calculating method. The memory is used for coupling with the processor, which holds the necessary programs (instructions) and/or data for the device. Optionally, the apparatus may further include a communication interface for supporting communication between the apparatus and other network elements.
In another possible implementation manner, the apparatus may include a unit module for performing corresponding actions in the above method.
In yet another possible implementation, the wireless communication device includes a processor and a transceiver, the processor is coupled to the transceiver, and the processor is configured to execute a computer program or instructions to control the transceiver to receive and transmit information; the processor is further configured to implement the above-described method when the processor executes the computer program or instructions. The transceiver may be a transceiver, a transceiver circuit, or an input/output interface. When the device is a chip, the transceiver is a transceiver circuit or an input/output interface.
When the device is a chip, the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface. When the device is a network device, the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
Yet another aspect of the present application provides an apparatus, comprising: a memory and a processor; wherein the memory stores a set of program codes, and the processor is configured to call the program codes stored in the memory and execute the method of the aspects.
Yet another aspect of the present application provides a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to perform the method of the above-described aspects.
Yet another aspect of the present application provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the method of the above-described aspects.
According to the embodiment, when an enterprise needs to calculate the carbon quota in a certain time period, a target transaction server is determined in a plurality of transaction servers according to position information of the enterprise, each transaction server stores a mapping relation among industry types, the time periods and carbon quota calculation rules, the target transaction server obtains the carbon quota calculation rules based on industry types and query time periods of the enterprise, then calculates the carbon quota of the enterprise based on the carbon quota calculation rules, and sends the calculated carbon quota to the enterprise, so that the problems that in the related technology, the results are prone to errors and low in efficiency caused by manual downloading of the carbon quota calculation rules and manual calculation are solved.
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 diagram of a network architecture provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for calculating a carbon quota according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a method for calculating a carbon quota, provided by an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure
Fig. 5 is another schematic structural diagram of an apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance. It will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
Fig. 1 illustrates an exemplary system architecture of a computing device that can be applied to the carbon quota computing method or the carbon quota of the present application.
As shown in FIG. 1, the system architecture may include a terminal device 11, a network 21, and transaction servers 31-33. The network 21 is a medium for providing communication links between the terminal devices 11. The network 21 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 user may use the terminal device 11 to interact with the transaction server via the network 21 to receive messages from the transaction server or to send messages to the transaction server. Various communication client applications may be installed on the terminal device 11, 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 11 may be hardware or software. When the terminal device 11 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 11 is software, it can be installed in the above listed hardware terminal device; which may be implemented as a plurality of software or software modules (e.g., for providing distributed services) or as a single software or software module, and is not particularly limited herein.
When the terminal device 11 is a hardware, a display device may be further installed thereon, and the display may be various devices capable of implementing a display function, such as: a Cathode ray tube display (CR), a Light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. The user can view information such as displayed text, pictures, and videos using the display device on the terminal device 11.
It should be noted that, the method for calculating the carbon quota provided in the embodiment of the present application is generally executed by the transaction server or the terminal device, and accordingly, the carbon quota calculating device is generally disposed in the transaction server or the terminal device.
It should be noted that the transaction servers 31 to 33 respectively correspond to different geographic locations, and the transaction servers 31 to 33 respectively store mapping relationships of industry types, time periods and carbon quota calculation rules. The transaction server may be hardware or software. When the transaction server is hardware, it can be implemented as a distributed transaction server cluster formed by multiple transaction servers, or as a single transaction server. When the transaction server is software, it may be implemented as a plurality of software or software modules (for example, to provide 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.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 2, fig. 2 is a schematic flowchart of a method for calculating a carbon quota according to an embodiment of the present application, where in the embodiment of the present application, the method includes:
s201, generating a data query request.
The terminal device generates a data query request, the data query request is generated by the terminal device based on an interactive operation of a user, and the interactive operation can be an interactive operation performed by the user through a mouse, a keyboard or a touch screen. The message type of the data query request may be an HTTP message, a UDP message, or an SQL message, etc. The data query request carries industry type information, enterprise location information and query time period, wherein the industry type information represents the industry type of the enterprise, for example: the power generation industry, the power transmission industry, the chemical industry or the metallurgical industry and the like; the enterprise location information represents the geographical location of the enterprise, generally the province or city of the enterprise; the query time period represents a time interval, and the minimum unit may be a month or a year.
S202, a target transaction server corresponding to the enterprise position information is determined in the plurality of transaction servers.
The transaction server is a server or a server cluster which is arranged at a certain geographical position and used for realizing carbon emission transaction, a plurality of transaction servers are arranged in advance, and different transaction servers are arranged at different geographical positions and are configured with different carbon quota calculation rules. For example: a transaction server 1 is deployed in Hubei, and enterprises in Hubei use the transaction server 1 to perform carbon emission transactions; the business server 2 is deployed in the Shanghai, and the business located in the Shanghai uses the business server 2 to conduct carbon emission trading. The enterprise location information may be represented by a city code or a province code, the terminal device pre-stores or pre-configures a mapping relationship between the enterprise location information and a network address of the server, and then the terminal device determines a corresponding network address based on the enterprise location information in S201 and the mapping relationship, where the network address includes an IP address and/or a port number, and the server indicated by the network address is the target transaction server of the present application.
S203, sending a data query request to the target transaction server.
The transaction server stores the mapping relation among industry category information, time periods and carbon quota calculation rules, different industry categories correspond to different carbon quota calculation rules, and different time periods also correspond to different carbon quota calculation rules. The data query request is to request the target transaction server to calculate the carbon quota based on a carbon quota calculation rule associated with the industry type information and the query time period. Alternatively, the carbon quota calculation rule may be deployed in the server using a software-as-a-service (SAAS) manner. In the process of calculating the carbon quota, the target transaction server can execute a calculation task by using a plurality of calculation units or calculation threads in parallel, so that the calculation efficiency is improved.
And S204, receiving a data query response carrying the carbon quota from the target transaction server.
After the target transaction server calculates the carbon quota based on the carbon quota calculation rule, a data query response carrying the carbon quota is sent to the terminal device, and the terminal device analyzes the data query response to obtain the industry type information and the carbon quota corresponding to the query time period.
By implementing the embodiment of the application, when an enterprise needs to calculate the carbon quota in a certain time period, a target transaction server is determined in a plurality of transaction servers according to position information of the enterprise, each transaction server stores a mapping relation among industry types, the time period and carbon quota calculation rules, the target transaction server obtains the carbon quota calculation rules based on industry types and query time periods of the enterprise, then calculates the carbon quota of the enterprise based on the carbon quota calculation rules, and sends the calculated carbon quota to the enterprise, so that the problems that in the related technology, the results are prone to errors and low in efficiency caused by manual downloading of the carbon quota calculation rules and manual calculation are solved.
Referring to fig. 3, another schematic flow chart of a method for calculating a carbon quota provided in an embodiment of the present application is shown, where in the embodiment of the present application, the method includes:
s301, displaying a query interface.
The terminal displays the query interface through the display unit, and a user can execute interactive operation on the query interface through the interactive device to input information. Optionally, the query interface includes an industry information input box, an enterprise location information input box, and a query time input box, each input box is provided with a pull-down control, and when the user triggers the pull-down control, a plurality of candidate options are displayed on the input box, for example: when the user clicks the enterprise position information input box, the terminal device displays three geographical positions of Hubei, Shanghai, Hunan and Guizhou on the enterprise position information input box, and the user can select any one of the three geographical positions to be input into the input box.
S302, generating a data query request based on the selection operation of the user on the query interface.
After the user finishes inputting the information of the query interface, the terminal equipment acquires the information in each input box to obtain the industry type information, the enterprise position information and the query time period. The industry type information indicates the type of industry in which the enterprise is located, for example: the power generation industry, the power transmission industry, the chemical industry or the metallurgical industry and the like; the enterprise location information represents the geographical location of the enterprise, generally the province or city of the enterprise; the query time period represents a time interval, and the minimum unit may be a month or a year.
S303, judging whether the latest version of the carbon quota calculation rule associated with the industry type information, the enterprise position information and the query time period is locally cached in the terminal equipment.
The terminal device can periodically obtain the latest version of the carbon quota calculation rule from each transaction server center, and after generating the data query request, the terminal device can query whether the corresponding carbon quota calculation rule is cached locally, so that the time for querying the carbon quota calculation rule is saved. If yes, S304 is executed, and if no, S305 is executed.
And S304, calculating the carbon quota based on the cached carbon quota calculation rule.
If the terminal device locally caches the corresponding carbon quota calculation rule, the carbon quota of the enterprise in the query time period is calculated based on the local carbon quota calculation rule, and the carbon quota calculation rule can be determined according to actual requirements, which is not limited in the present application.
S305, determining one or more IP addresses corresponding to the enterprise location information according to the preset mapping relation.
The terminal device prestores or preconfigures a mapping relationship between the enterprise location information and the network address of the transaction server, for example: the enterprise location information is a mapping relationship between provinces (direct municipality) and IP addresses, and the mapping relationship is shown in Table 1:
province (the city of direct jurisdiction) IP address
(Hubei) 52.168.26.25;58326.24.36;26.34.25.58
Xinjiang 58.25.48.25
Shanghai province 84.25.16.34
TABLE 1
S306, determining a corresponding target transaction server according to the one or more IP addresses.
And the terminal equipment determines one or more IP addresses according to the mapping relation, wherein each IP address corresponds to one transaction server.
S307, when the number of the target trading servers is multiple, the load state and the link quality of each target trading server are monitored.
The method and the system can deploy a plurality of transaction servers based on the same geographic position so as to realize load balance and improve the efficiency of data. When the data of the target trading server is multiple, periodically monitoring the load state and the link state of each target trading server, wherein the load state represents the overhead of processing the computing task on the trading server, and the load state includes but is not limited to: one or more of CPU occupancy rate, memory occupancy rate and disk IO number; the link quality represents the goodness of the communication link between the terminal device and the transaction server, and includes but is not limited to: one or more of latency, bandwidth, and jitter. The method and the system use the parameters of two dimensions of the load state and the link quality to evaluate each transaction server, the parameters of the two dimensions can be set with certain weights, and the values of the weights can be determined according to actual requirements, so that the method and the system are not limited.
S308, sending the data query request to the target trading server with the lightest load and the best link quality.
Wherein, according to the load state and the link quality monitored in S307, a final evaluation parameter is calculated based on various weights of the load state and the link quality, an optimal target transaction server is determined based on the evaluation parameter, and a data query request is sent to the target transaction server. Target transaction server
S309, receiving a data query response carrying the carbon quota from the target transaction server.
The transaction server stores the mapping relation among the industry category information, the time periods and the carbon quota calculation rules, different industry categories correspond to different carbon quota calculation rules, and different time periods also correspond to different carbon quota calculation rules.
For example: the mapping relationship deployed in the target trading server is shown in table 2:
power generation industry 2020 to Rule 1
Power generation industry 2021 year old Rule 2
Metallurgical industry 2020 to Rule 3
TABLE 2
Wherein the data query request is to request the target transaction server to calculate the carbon quota based on a carbon quota calculation rule associated with the industry type information and the query time period. Alternatively, the carbon quota calculation rule may be deployed in the server using a software-as-a-service (SAAS) manner.
And S310, drawing a visual statistical chart based on the calculated carbon quota.
The query time period comprises a plurality of continuous years, the statistical chart can be a histogram, a pie chart or a trend chart, the ordinate of the statistical chart is carbon quota, the abscissa of the statistical chart is years, and the statistical chart comprises a graphic mark indicating the carbon quota of each year.
By implementing the embodiment of the application, when an enterprise needs to calculate the carbon quota in a certain time period, a target transaction server is determined in a plurality of transaction servers according to position information of the enterprise, each transaction server stores a mapping relation among industry types, the time period and carbon quota calculation rules, the target transaction server obtains the carbon quota calculation rules based on industry types and query time periods of the enterprise, then calculates the carbon quota of the enterprise based on the carbon quota calculation rules, and sends the calculated carbon quota to the enterprise, so that the problems that in the related technology, the results are prone to errors and low in efficiency caused by manual downloading of the carbon quota calculation rules and manual calculation are solved.
The above-mentioned fig. 2 to 3 illustrate the calculation method of the carbon quota in detail. Correspondingly, the structure of a device in the embodiment of the application is schematically shown.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus 4 according to an embodiment of the present disclosure, where the apparatus 4 may include a generating unit 401, a determining unit 402, and a transceiving unit 403.
A generating unit 401, configured to generate a data query request; the data query request carries industry type information, enterprise position information and a query time period;
a determining unit 402, configured to determine, among the plurality of transaction servers, a target transaction server corresponding to the enterprise location information;
a transceiver 403, configured to send the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
the transceiver 403 is further configured to receive a data query response carrying the carbon quota from the target transaction server.
In one or more possible embodiments, the generating a data query request includes:
displaying a query interface;
and generating a data query request based on the selection operation of the user on the query interface.
In one or more possible embodiments, the determining unit 402 is further configured to:
determining that the latest version of the carbon quota calculation rule associated with the industry type information, the enterprise location information and the query time period is not cached locally by the terminal device.
In one or more possible embodiments, the determining unit 402 is further configured to:
if the terminal equipment locally caches the carbon quota calculation rule associated with the industry type information, the enterprise position information and the query time period;
and calculating the carbon quota based on the cached carbon quota calculation rule.
In one or more possible embodiments, the determining, among the plurality of transaction servers, a target transaction server corresponding to the enterprise location information includes:
determining one or more IP addresses corresponding to the enterprise location information according to a preset mapping relation;
and determining a corresponding target transaction server according to the one or more IP addresses.
In one or more possible embodiments, the sending the data query request to the target transaction server includes:
when the number of the target trading servers is multiple, monitoring the load state and the link quality of each target trading server;
and sending the data query request to a target trading server with the lightest load state and the best link quality.
In one or more possible embodiments, the query time period is a plurality of consecutive years;
the apparatus 4, further comprising:
the drawing unit is used for drawing a visualized statistical chart based on the calculated carbon quota; wherein the statistical chart includes graphical indicia indicating carbon quota for each year.
The embodiment of the present application and the method embodiments of fig. 2 and 3 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the method embodiments of fig. 2 and 3, and will not be described again here.
The device 4 may be a server or a terminal device, and the device 4 may also be a field-programmable gate array (FPGA), an application-specific integrated chip (asic), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit, a Micro Controller Unit (MCU), or a Programmable Logic Device (PLD) or other integrated chips, which implement related functions.
Fig. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus may be the terminal device or the server in fig. 1, and the apparatus 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001, which is connected to various parts throughout the apparatus 1000 using various interfaces and lines, performs various functions of the apparatus 1000 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 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 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 5, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an application program.
In the apparatus 1000 shown in fig. 5, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to call an application program stored in the memory 1005 for configuring the application program interface, and specifically perform the following operations:
generating a data query request; the data query request carries industry type information, enterprise position information and a query time period;
determining a target transaction server corresponding to the enterprise location information among a plurality of transaction servers;
sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
and receiving a data query response carrying the carbon quota from the target trading server.
In one or more possible embodiments, the processor 1001 performs the generating the data query request, including:
displaying a query interface;
and generating a data query request based on the selection operation of the user on the query interface.
In one or more possible embodiments, the processor 1001 is further configured to perform: determining that the latest version of the carbon quota calculation rule associated with the industry type information, the enterprise location information and the query time period is not cached locally by the terminal device.
In one or more possible embodiments, the processor 1001 is further configured to execute the carbon quota calculating rule if the terminal device locally caches the carbon quota calculating rule associated with the industry type information, the enterprise location information, and the query time period;
and calculating the carbon quota based on the cached carbon quota calculation rule.
In one or more possible embodiments, the processor 1001 executes the determining of the target transaction server corresponding to the enterprise location information among the plurality of transaction servers, including:
determining one or more IP addresses corresponding to the enterprise location information according to a preset mapping relation;
and determining a corresponding target transaction server according to the one or more IP addresses.
In one or more possible embodiments, the sending of the data query request to the target transaction server by processor 1001 includes:
when the number of the target trading servers is multiple, monitoring the load state and the link quality of each target trading server;
and sending the data query request to a target trading server with the lightest load state and the best link quality.
In one or more possible embodiments, the query time period is a plurality of consecutive years;
the processor 1001 is further configured to perform: after receiving the data query response carrying the carbon quota sent by the target transaction server, the method further includes:
drawing a visualized statistical chart based on the calculated carbon quota; wherein the statistical chart includes graphical indicia indicating carbon quota for each year.
The concept of this embodiment is the same as that of the embodiment of the method in fig. 2 or fig. 3, and the technical effects brought by the embodiment are also the same, and the specific process can refer to the description of the embodiment in fig. 2 or fig. 3, which is not described again here.
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 for calculating a carbon quota, comprising:
generating a data query request; the data query request carries industry type information, enterprise position information and a query time period;
determining a target transaction server corresponding to the enterprise location information among a plurality of transaction servers;
sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
and receiving a data query response carrying the carbon quota from the target trading server.
2. The method of claim 1, wherein generating the data query request comprises:
displaying a query interface;
and generating a data query request based on the selection operation of the user on the query interface.
3. The method of claim 1, wherein prior to determining the target transaction server among the plurality of transaction servers that corresponds to the business location information, further comprising:
determining that the latest version of the carbon quota calculation rule associated with the industry type information, the enterprise location information and the query time period is not cached locally by the terminal device.
4. The method of claim 3, further comprising:
if the terminal equipment locally caches the carbon quota calculation rule associated with the industry type information, the enterprise position information and the query time period;
and calculating the carbon quota based on the cached carbon quota calculation rule.
5. The method according to any one of claims 1-4, wherein determining a target transaction server among the plurality of transaction servers that corresponds to the business location information comprises:
determining one or more IP addresses corresponding to the enterprise location information according to a preset mapping relation;
and determining a corresponding target transaction server according to the one or more IP addresses.
6. The method according to any one of claims 1-4, wherein said sending the data query request to the target transaction server comprises:
when the number of the target trading servers is multiple, monitoring the load state and the link quality of each target trading server;
and sending the data query request to a target trading server with the lightest load state and the best link quality.
7. The method of any of claims 1-4, wherein the query time period is a plurality of consecutive years;
after receiving the data query response carrying the carbon quota sent by the target transaction server, the method further includes:
drawing a visualized statistical chart based on the calculated carbon quota; wherein the statistical chart includes graphical indicia indicating carbon quota for each year.
8. A carbon quota computing apparatus, comprising:
the generating unit is used for generating a data query request; the data query request carries industry type information, enterprise position information and a query time period;
a determining unit, configured to determine, among the plurality of transaction servers, a target transaction server corresponding to the enterprise location information;
the receiving and sending unit is used for sending the data query request to the target transaction server; wherein the data query request is for requesting the target transaction server to calculate a carbon quota based on a carbon quota calculation rule associated with the industry type information and a query time period;
the transceiving unit is further configured to receive a data query response carrying the carbon quota from the target transaction server.
9. A terminal device comprising a processor and a memory, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out any of claims 1-7.
CN202110313176.2A 2021-03-24 2021-03-24 Carbon quota calculation method and device, storage medium and terminal equipment Pending CN113094580A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110313176.2A CN113094580A (en) 2021-03-24 2021-03-24 Carbon quota calculation method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110313176.2A CN113094580A (en) 2021-03-24 2021-03-24 Carbon quota calculation method and device, storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN113094580A true CN113094580A (en) 2021-07-09

Family

ID=76669738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110313176.2A Pending CN113094580A (en) 2021-03-24 2021-03-24 Carbon quota calculation method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN113094580A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989986A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method for inquiring service node, server and system
CN103576621A (en) * 2012-07-27 2014-02-12 捷达世软件(深圳)有限公司 Energy monitoring method and energy monitoring system
US20160055596A1 (en) * 2014-08-20 2016-02-25 Lavenya Dilip Real time carbon emissions assimilation, reporting and management system
CN107613030A (en) * 2017-11-06 2018-01-19 网宿科技股份有限公司 A kind of method and system of processing business request
CN109272243A (en) * 2018-09-30 2019-01-25 大唐碳资产有限公司 Carbon assets management method and system
CN109933710A (en) * 2019-02-27 2019-06-25 生活空间(沈阳)数据技术服务有限公司 A kind of data query method, apparatus and storage medium, program product
CN110401731A (en) * 2019-07-25 2019-11-01 北京百度网讯科技有限公司 Method and apparatus for distributing content distribution nodes
CN110544015A (en) * 2019-08-09 2019-12-06 内蒙古自治区计量测试研究院 Enterprise carbon data or carbon asset intelligent management and control platform based on big data analysis
CN111179075A (en) * 2019-12-17 2020-05-19 远光软件股份有限公司 Method and device for settling medium and long term electric power transaction, storage medium and settlement server
CN112182070A (en) * 2020-10-13 2021-01-05 安徽极玩云科技有限公司 Elasticissearch query management system based on cloud computing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989986A (en) * 2010-10-28 2011-03-23 北京瑞汛世纪科技有限公司 Method for inquiring service node, server and system
CN103576621A (en) * 2012-07-27 2014-02-12 捷达世软件(深圳)有限公司 Energy monitoring method and energy monitoring system
US20160055596A1 (en) * 2014-08-20 2016-02-25 Lavenya Dilip Real time carbon emissions assimilation, reporting and management system
CN107613030A (en) * 2017-11-06 2018-01-19 网宿科技股份有限公司 A kind of method and system of processing business request
CN109272243A (en) * 2018-09-30 2019-01-25 大唐碳资产有限公司 Carbon assets management method and system
CN109933710A (en) * 2019-02-27 2019-06-25 生活空间(沈阳)数据技术服务有限公司 A kind of data query method, apparatus and storage medium, program product
CN110401731A (en) * 2019-07-25 2019-11-01 北京百度网讯科技有限公司 Method and apparatus for distributing content distribution nodes
CN110544015A (en) * 2019-08-09 2019-12-06 内蒙古自治区计量测试研究院 Enterprise carbon data or carbon asset intelligent management and control platform based on big data analysis
CN111179075A (en) * 2019-12-17 2020-05-19 远光软件股份有限公司 Method and device for settling medium and long term electric power transaction, storage medium and settlement server
CN112182070A (en) * 2020-10-13 2021-01-05 安徽极玩云科技有限公司 Elasticissearch query management system based on cloud computing

Similar Documents

Publication Publication Date Title
CN114900379B (en) Message notification method and device, electronic equipment and storage medium
CN110109594B (en) Drawing data sharing method and device, storage medium and equipment
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN113572833A (en) Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN111669445A (en) Information subscription method and device of arbitration system
CN112291325A (en) Message processing method and device and computer system
CN112367241A (en) Message generation and message transmission method, device, equipment and computer readable medium
CN113094580A (en) Carbon quota calculation method and device, storage medium and terminal equipment
CN112422402A (en) Message forwarding tracing method and device, storage medium and terminal
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN115222499A (en) Internal settlement method, internal settlement device, storage medium, and settlement server
CN113888295A (en) Travel reimbursement method, travel reimbursement device, storage medium and electronic equipment
CN110992118B (en) Method, device, storage medium, equipment and system for issuing electronic invoice
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
CN113313566A (en) Internal settlement method, internal settlement device, storage medium and electronic equipment
CN113590243A (en) Energy enterprise project creation method and device, computer equipment and medium
CN113283830A (en) Waybill information sequence generation method, waybill information sequence generation device, waybill information sequence generation equipment and computer readable medium
CN113328913B (en) Method, device and system for improving project testing efficiency
US20220391808A1 (en) Data processing method, electronic device and storage medium
WO2024078469A1 (en) Conversation-based information processing method and apparatus, and device and medium
CN112860962B (en) Method, device, electronic equipment and medium for processing questioning information
CN105681427A (en) Information processing method and device
US20240036800A1 (en) Electronic whiteboard system and operation method thereof
CN117557131A (en) Assessment method and device for internal simulation market, storage medium and terminal equipment
CN117787714A (en) Risk assessment method and device for enterprise, storage medium and terminal 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