Data settlement and display method, device and storage medium
Through flow calculation technology, the carbon label identification and consumption data determination of transaction information is screened to reduce the complexity of data processing, and the problem of insufficient understanding of people's concepts of carbon emissions and carbon absorption is solved, the efficiency of carbon points settlement is improved, and environmental protection behavior and sustainable development is promoted.
Patent Information
- Application Number
- CN202510064635.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-15
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-15
AI Technical Summary
People lack understanding of the concepts of carbon emissions, carbon absorption and carbon footprints, which has led to weak actions in low-carbon life and carbon emission reduction, making it difficult to effectively control the enhancement of the greenhouse effect.
Through a data settlement and display method, the carbon label identification and consumption data are used to use streaming computing technology to identify transaction information, filter target transaction information to reduce data processing complexity, improve carbon points settlement efficiency, and quantify the impact of user trading behavior on the environment through carbon points changes.
It improves the settlement efficiency of the corresponding carbon points for each transaction of users, promotes the environmental protection behavior of users, reduces carbon emissions, and promotes sustainable development.
Smart Images

Figure CN119477353B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data settlement and display method, device and storage medium. Background Art
[0002] Nowadays, "low carbon" has become a way of life. Improving awareness of "energy conservation and emission reduction" and changing lifestyles or consumption awareness are of great significance to reducing global greenhouse gases. Low-carbon life, energy conservation and environmental protection are conducive to slowing down the speed of global warming and environmental deterioration.
[0003] At present, consumers' carbon emissions in the process of traveling, living and consuming are gradually increasing. However, in daily life, people know little about the concepts of carbon emissions, carbon absorption and carbon footprint. They talk a lot about low-carbon life and carbon emission reduction, but few actually take action. In order to achieve low-carbon life and carbon emission reduction with greater results and control the enhancement of the "greenhouse effect", the general public must take action to achieve the goal; people's lack of understanding of the concepts of carbon emissions and carbon absorption has become an insurmountable barrier to achieving high-efficiency carbon emission reduction and promoting carbon absorption. Breaking this barrier is also of vital significance. Summary of the invention
[0004] The embodiment of the present application provides a data settlement and display method, device and storage medium, which can avoid interference from other information in the target transaction information that is not related to data settlement, reduce the complexity of data processing in the streaming computing process, improve the settlement efficiency of carbon credits corresponding to each transaction of the user, and enable different types of transaction behaviors of the user to be able to timely reflect their impact on the environment through the change of carbon credits, which helps to promote the environmental protection behavior of users, reduce carbon emissions, and promote sustainable development. The above technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a data settlement method, including:
[0006] Obtain target transaction information; the target transaction information includes at least one target transaction field carrying a target behavior tag; perform streaming calculations on the target transaction field according to the target behavior tag to obtain at least one target carbon tag corresponding to the target transaction information and target consumption data corresponding to the target carbon tag; determine the target carbon credit variable of the target user corresponding to the target transaction information according to the at least one target carbon tag and the target consumption data corresponding to the target carbon tag; settle the total carbon credits of the target carbon account corresponding to the target user according to the target carbon credit variable.
[0007] In the second aspect, an embodiment of the present application provides a data display method, which includes: receiving a target carbon points query instruction input by a target user; sending the target carbon points query instruction to a server, so that the server responds to the target carbon points query instruction and queries to obtain the target carbon points settlement result; receiving the target carbon points settlement result returned by the server; displaying the target carbon points settlement result in the target-related page corresponding to the target carbon account; the target carbon points settlement result is settled based on the data settlement method provided by the first aspect or any possible implementation method of the first aspect.
[0008] In a third aspect, an embodiment of the present application provides a data settlement device, the data settlement device comprising:
[0009] A first acquisition module is used to acquire target transaction information; the target transaction information includes at least one target transaction field carrying a target behavior tag;
[0010] A stream computing module, configured to perform stream computing on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label;
[0011] A first determination module is used to determine a target carbon credit variable of a target user corresponding to the target transaction information according to the at least one target carbon label and the target consumption data corresponding to the target carbon label;
[0012] The settlement module is used to settle the total carbon credits of the target carbon account corresponding to the target user according to the target carbon credit variable.
[0013] In a fourth aspect, an embodiment of the present application provides a data display device, the device comprising:
[0014] The first receiving module is used to receive a target carbon credit query instruction input by a target user;
[0015] A sending module, used for sending the target carbon credit query instruction to the server, so that the server responds to the target carbon credit query instruction and obtains the target carbon credit settlement result by querying;
[0016] A second receiving module is used to receive the target carbon credit settlement result returned by the server;
[0017] The display module is used to display the above-mentioned target carbon credit settlement result in the target-related page corresponding to the target carbon account; the above-mentioned target carbon credit settlement result is obtained by settlement based on the data settlement method provided by the above-mentioned first aspect or any possible implementation method of the first aspect.
[0018] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the first aspect of the embodiment of the present application or any possible implementation method of the first aspect or the method provided by the second aspect.
[0019] In a sixth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps provided by the first aspect of the embodiment of the present application or any possible implementation of the first aspect or the second aspect or any possible implementation of the second aspect.
[0020] In one or more embodiments of the present application, on the one hand, the use of streaming computing technology can perform real-time carbon label identification and corresponding consumption data determination for a large amount of transaction information, providing a basis for subsequent carbon credit settlement and improving the settlement efficiency of carbon credits corresponding to each transaction of the user; on the other hand, by screening the target transaction information, the streaming computing process is mainly focused on the target transaction field with a specific behavior label (target behavior label), avoiding interference from other information in the target transaction information that is not related to data settlement, reducing the complexity of data processing in the streaming computing process, further improving the settlement efficiency of carbon credits, and helping to timely reflect the impact of user trading behavior on carbon emissions; on the other hand, the target carbon credit change generated by the target user's current transaction behavior is determined based on at least one target carbon label corresponding to the target transaction information and its corresponding target consumption data, and then the total carbon credits of its target carbon account are settled, so that different types of user trading behaviors can be timely reflected through the change settlement of carbon credits. The quantitative reflection of their impact on the environment helps to promote users' environmental protection behavior, reduce carbon emissions, and promote sustainable development. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 A schematic diagram of the architecture of a data settlement system provided for an exemplary embodiment of the present application;
[0023] Figure 2 A flowchart of a data settlement method provided for an exemplary embodiment of the present application;
[0024] Figure 3 A schematic diagram of a flow chart for implementing stream computing provided by an exemplary embodiment of the present application;
[0025] Figure 4 A schematic diagram of a process for determining a carbon credit variable provided for an exemplary embodiment of the present application;
[0026] Figure 5 A flowchart of another data settlement method provided for an exemplary embodiment of the present application;
[0027] Figure 6 A flowchart of another data settlement method provided for an exemplary embodiment of the present application;
[0028] Figure 7 A flowchart of a carbon credit ranking query method provided for an exemplary embodiment of the present application;
[0029] Figure 8 A flowchart of another data settlement method provided for an exemplary embodiment of the present application;
[0030] Fig. 9 A flowchart of a data display method provided by an exemplary embodiment of the present application;
[0031] Fig.10 A schematic diagram of the structure of a data settlement device provided for an exemplary embodiment of the present application;
[0032] Fig.11 A structural schematic diagram of a data display device provided by an exemplary embodiment of the present application;
[0033] Fig.12 A schematic structural diagram of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0035] The terms "first", "second", "third", etc. in this specification and claims and the above drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0036] Please refer to the following Figure 1, which is a schematic diagram of the architecture of a data settlement system provided by an exemplary embodiment of the present application. Figure 1 As shown, the data settlement system may include: a terminal 110 and a server 120. Among them:
[0037] The terminal 110 includes one or more user terminals corresponding to the user. The corresponding user version application can be installed on the terminal 110, and the corresponding user account can be registered and logged in in the application. The user can conduct online transactions through the corresponding terminal 110 based on the above user version application, and send the corresponding target transaction information to the server 120. It can be understood that the above terminal 110 can be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a handheld computer, a netbook, a personal digital assistant (Personal Digital Assistant, PDA), a wearable electronic device, etc., and the embodiments of the present application are not limited to this.
[0038] Optionally, the terminal 110 can also receive a target carbon points query instruction input by the target user, and send the target carbon points query instruction to the server 120, so that the server 120 responds to the target carbon points query instruction, queries and obtains the target carbon points settlement result, and then receives the target carbon points settlement result returned by the server 120, and displays the target carbon points settlement result in the target-related page corresponding to the target carbon account.
[0039] The server 120 may be a server corresponding to the user version application used by the user for online transactions in the terminal 110, and is used to perform services such as carbon credit settlement for transactions generated by the user in the user version application. The server 120 may be a hardware server, a virtual server, a cloud server, etc., and this embodiment of the application does not limit this.
[0040] Specifically, after server 120 obtains the target transaction information in the order database including at least one target transaction field carrying a target behavior tag, it will first perform streaming calculations on the target transaction field according to the target behavior tag to obtain at least one target carbon label corresponding to the target transaction information and the target consumption data corresponding to the target carbon label; then, based on the at least one target carbon label and the target consumption data corresponding to the target carbon label, the target carbon credit variable of the target user corresponding to the target transaction information is determined; finally, the total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable.
[0041] Optionally, after receiving the target carbon credit query instruction sent by the terminal 110 , the server 120 may also respond to the target carbon credit query instruction, query and obtain the corresponding target carbon credit settlement result, and return the target carbon credit settlement result to the terminal 110 .
[0042] The network may be a medium that provides a communication link between the terminal 110 and the server 120, or may be the Internet including network devices and transmission media, but is not limited thereto. The transmission medium may be a wired link, such as but not limited to coaxial cable, optical fiber, and digital subscriber line (DSL), or a wireless link, such as but not limited to wireless Fidelity (WIFI), Bluetooth, and mobile device network.
[0043] Understandably, Figure 1 The number of terminals 110 and servers 120 in the data settlement system shown is only an example. In a specific implementation, the data settlement system may include any number of terminals 110 and servers 120, and the present application embodiment does not specifically limit this. For example, but not limited to, the terminal 110 may be a user terminal cluster composed of multiple user terminals, and the server 120 may be a server cluster composed of multiple servers.
[0044] Next, combine Figure 1 , introduces a data settlement method provided by the embodiment of this application. For details, please refer to Figure 2 , which is a flow chart of a data settlement method provided by an exemplary embodiment of the present application. Figure 2 As shown, the data settlement method includes the following steps:
[0045] S201, obtaining target transaction information, where the target transaction information includes at least one target transaction field carrying a target behavior tag.
[0046] Specifically, when the target user completes an online transaction using the target application on the terminal, the terminal will send the corresponding target transaction information to the server. The server can receive the target transaction information sent by the terminal. The above target transaction information is the transaction information generated by the target user performing an online transaction in the target application. The target transaction information includes at least one target transaction field carrying a target behavior tag, and the target behavior tag is used to identify the attributes of the target transaction field corresponding to the target transaction behavior. The target transaction information may also include, but is not limited to, fields corresponding to information such as the target transaction type, target user information, target transaction time, and target transaction identifier.
[0047] Exemplarily, when the target transaction field represents the target commodity information of the transaction, the above-mentioned target behavior label may be but is not limited to identifying the target commodity identifier or target commodity type corresponding to the target commodity information; optionally, when the target commodity traded by the target user is a low-carbon commodity, the above-mentioned target behavior label may also identify the carbon points corresponding to the target commodity, that is, when the target user selects the target commodity that is a low-carbon commodity to be traded in the target application, the terminal may directly mark the low-carbon points that can be generated by purchasing the target commodity together with attribute information such as the target commodity identifier or the target commodity type on the target transaction field corresponding to the target commodity information recorded in the target transaction information, so that after the server obtains the target transaction information, it can efficiently and accurately settle carbon points according to the attribute information marked in the above-mentioned target behavior label.
[0048] When the target transaction field represents the target transaction voucher information corresponding to the target transaction behavior, the target behavior tag may, but is not limited to, identify the type of the target transaction voucher, such as, but not limited to, online transaction vouchers (i.e., no paper transaction vouchers are required), simplified paper vouchers, ordinary paper vouchers, etc.; optionally, when the target transaction voucher selected by the target user for the transaction is a low-carbon transaction voucher (such as an online transaction voucher, a simplified paper voucher, etc.), the target behavior tag may also identify the number of carbon credits corresponding to the target transaction voucher, that is, when the target user selects to use the target transaction voucher belonging to the low-carbon transaction voucher in the target application, the terminal may directly mark the low-carbon credits that can be generated by the target transaction voucher used in this transaction together with the attribute information such as the target transaction voucher type on the target transaction field corresponding to the target transaction voucher information recorded in the target transaction information, so that after the server obtains the target transaction information, it can efficiently and accurately settle carbon credits according to the information marked in the target behavior tag. It can be understood that when the target transaction voucher is a low-carbon transaction voucher, the target transaction voucher corresponds to different types, and the carbon credits marked in the corresponding target behavior tag are different, such as, but not limited to, the carbon credits corresponding to the online transaction voucher are greater than the carbon credits corresponding to the simplified paper voucher.
[0049] Optionally, the order database is used to store online transaction information of all users in the target application. After receiving the target transaction information sent by the terminal, the server will first store it in the order database. A message middleware may be configured between the order database of the server and the data processing system, but is not limited to. The message middleware is an independent software or service used to transmit messages between different systems or applications, such as but not limited to Apache Kafka, RabbitMQ, ActiveMQ, etc. The server may, but is not limited to, use the message middleware to monitor the target change information occurring in the order database at a preset time interval (such as but not limited to 1 second, 1 minute, etc.), and then read the corresponding target transaction information in the order database according to the target change information, such as but not limited to first parsing the target change information, extracting the target key information (such as but not limited to the target transaction identifier, target transaction type, etc.), and then constructing and executing the corresponding target database query statement according to the parsed target key information, and reading the corresponding target transaction information from the order database. The above-mentioned target change information includes data change information related to online transactions in the target application occurring in the order database, such as but not limited to the creation information of new orders, the return information of historical orders, etc. That is, when the data in the order database changes, the server can read the newly added target transaction information in the order database.
[0050] Please continue to refer to Figure 2 ,like Figure 2 As shown, in the above S201, after acquiring the target transaction information, wherein the target transaction information includes at least one target transaction field carrying a target behavior tag, the data settlement method further includes:
[0051] S202, performing streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label.
[0052] Specifically, the target carbon label is a label indicating low-carbon behavior in a transaction, and is used to quantify the environmental impact of the transaction. The target consumption data is consumption-related data associated with the target carbon label, such as but not limited to transaction volume, transaction amount, transaction type, etc.
[0053] Optionally, after obtaining the target transaction information, the server can directly use streaming processing technology to perform real-time or near real-time analysis on the target transaction field in the target transaction information, such as but not limited to classifying the target transaction field according to the target behavior tag carried by the target transaction field, and applying a preset algorithm to calculate the carbon footprint (i.e., target carbon tag) corresponding to each target transaction field, such as but not limited to classifying the target transaction field according to the attribute information marked in the target behavior tag, determining whether the target transaction field meets the marking condition of the target carbon tag according to whether the target behavior tag is marked with carbon points, and determining the type of the corresponding target carbon tag according to the type corresponding to the target transaction field if it meets the condition. At the same time, the target transaction fields corresponding to the same target carbon tag in the target transaction information can also be integrated to obtain the target consumption data corresponding to the target carbon tag.
[0054] Alternatively, if Figure 3 As shown, the implementation process of performing streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and the target consumption data corresponding to the target carbon label may include but is not limited to:
[0055] S301, annotating a target transaction field according to a target behavior tag and a preset rule to obtain a target annotation result corresponding to the target transaction field.
[0056] Specifically, the target labeling result is the result obtained after labeling the target transaction field, which is used to indicate whether the target consumption data corresponding to the target transaction field belongs to low-carbon behavior data. After obtaining the target transaction information, the target transaction field (such as transaction description, product name, etc.) in each target transaction record of the target transaction information can be labeled according to the target behavior label according to the preset rules. The above target labeling result can be binary (for example, "yes" or "1" indicates low-carbon behavior, that is, marking the target carbon label, "no" or "0" indicates non-low-carbon behavior, that is, marking the target non-low-carbon label or not marking the low-carbon label), or it can be a more fine-grained classification, such as different levels of low-carbon degree (for example, "0" indicates non-low-carbon behavior, "1" indicates first-level low-carbon behavior, "2" indicates second-level low-carbon behavior, etc.).
[0057] Optionally, the above S301, according to the target behavior tag, labels the target transaction field according to the preset rules, and the implementation process of obtaining the target labeling result corresponding to the target transaction field may include but is not limited to: firstly, the target behavior tag is identified to obtain the target behavior type corresponding to the target transaction field, for example, but not limited to, according to the low-carbon behavior identification rules or by using the low-carbon behavior identification model to identify whether the information marked in the target behavior tag belongs to the low-carbon behavior type, and obtain the target behavior type corresponding to the target transaction field. The above low-carbon behavior identification rules may include but are not limited to whether the target behavior tag is marked with low-carbon points or preset keywords corresponding to low-carbon behavior. The above low-carbon behavior identification model may be obtained by training based on multiple behavior tags that are known to be low-carbon behavior types, but is not limited to. In the case where the target behavior type is a low-carbon behavior type, the corresponding target transaction field is annotated with a target carbon label. Different low-carbon behavior types correspond to different target carbon labels; for example, when the low-carbon behavior type is a low-carbon distribution type, the target carbon label can be a low-carbon distribution label, when the low-carbon behavior type is a low-carbon transaction voucher type, the target carbon label can be a low-carbon transaction voucher label, when the low-carbon behavior type is a low-carbon commodity transaction type, the target carbon label can be a low-carbon commodity label, when the low-carbon behavior type is a low-carbon service tool transaction type, the target carbon label can be a low-carbon service tool label, etc. In the case where the target behavior type is a non-low-carbon behavior type, the corresponding target transaction field is annotated with a target non-carbon label.
[0058] In the embodiment of the present application, the target transaction field is directly labeled according to the target behavior label in accordance with preset rules to obtain the target labeling result corresponding to the target transaction field. This not only avoids the interference of irrelevant information in the target transaction field on the identification of low-carbon behavior and improves the data processing efficiency, but also reduces the cost of manual judgment through automatic labeling, ensures the consistency of the labeling results, and avoids errors caused by human factors.
[0059] S302, filtering the target transaction fields in the target transaction information according to the target labeling result, and obtaining the target labeling result as the designated transaction field labeled with the target carbon label.
[0060] Specifically, according to the target labeling results obtained in S301, the designated transaction fields marked with the target carbon label can be screened out, thereby simplifying the subsequent data processing process and focusing only on the transaction fields related to low-carbon behavior, providing an accurate data basis for the subsequent carbon credit settlement, and improving the accuracy and efficiency of the carbon credit settlement.
[0061] S303: Determine target consumption data corresponding to each target carbon label according to at least one designated transaction field corresponding to each target carbon label in the target transaction information.
[0062] Specifically, all designated transaction fields belonging to the same target carbon label in the target transaction information can be summarized to form a complete transaction data set corresponding to the target carbon label, and then the integrated transaction data set can be analyzed to extract consumption data related to the low-carbon behavior corresponding to the target carbon label, such as but not limited to consumption amount, consumption quantity, consumption type, etc.
[0063] Please continue to refer to Figure 2 ,like Figure 2 As shown, in the above S202, after performing streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and the target consumption data corresponding to the target carbon label, the data settlement method further includes:
[0064] S203: Determine a target carbon credit variable for a target user corresponding to target transaction information according to at least one target carbon label and target consumption data corresponding to the target carbon label.
[0065] Specifically, the target carbon credit variable is used to represent the carbon credit value that the target user can obtain based on his target transaction behavior this time. The server can determine the carbon credit variable of the target user based on at least one target carbon label corresponding to the target transaction information and its corresponding target consumption data by applying the preset credit calculation rules. The preset credit calculation rules can be, but are not limited to, assigning different carbon credits to different target carbon labels based on factors such as the environmental protection degree of the transaction, the transaction volume, and the transaction type, so that the user's environmentally friendly consumption behavior can be quantified through the calculation of the carbon credit variable, which encourages the user to adopt more sustainable consumption methods.
[0066] Optionally, the above-mentioned target transaction information may also include, but is not limited to, a target transaction type; the above-mentioned S203, the implementation process of determining the target carbon credit variable of the target user corresponding to the target transaction information according to at least one target carbon label and the target consumption data corresponding to the target carbon label may include, but is not limited to: determining the target carbon credit variable of the target user corresponding to the target transaction information according to at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target transaction type, for example, but not limited to, first determining the value corresponding to the target carbon credit variable according to at least one target carbon label and the target consumption data corresponding to each target carbon label, and then determining the positive and negative attributes of the target carbon credit variable according to the target transaction type. When the above-mentioned target transaction type is an order type, the target carbon credit variable is a positive value; when the above-mentioned target transaction type is a return order type, the above-mentioned target carbon credit variable is a negative value.
[0067] It can be understood that when the target transaction information is the transaction information generated when the target user returns an order, the target carbon points variable value that needs to be deducted from the target user can be determined based on the specific return transaction situation, that is, at least one target carbon label corresponding to the return and the target consumption data corresponding to each target carbon label, or all carbon points corresponding to the order for the return can be directly deducted. The embodiment of the present application is not limited to this.
[0068] Optionally, the target consumption data may include, but is not limited to, at least one designated transaction field corresponding to the target carbon label, wherein the designated transaction field includes low-carbon transaction information of a designated transaction type. The designated transaction type is a transaction type that is identified as a designated low-carbon behavior. Figure 4 As shown, the implementation process of the above S203, determining the target carbon credit variable of the target user corresponding to the target transaction information according to at least one target carbon label and the target consumption data corresponding to the target carbon label, may include but is not limited to:
[0069] S401, performing carbon credit evaluation on low-carbon transaction information according to a specified transaction type to obtain specified carbon credits corresponding to a specified transaction field.
[0070] Specifically, the corresponding carbon credit evaluation rules may be determined according to the specified transaction type, and then the carbon credit evaluation is performed on the low-carbon transaction information according to the carbon credit evaluation rules to obtain the specified carbon credit corresponding to the specified transaction field.
[0071] Optionally, the above S401, the implementation process of evaluating the carbon credits of the low-carbon transaction information according to the specified transaction type to obtain the specified carbon credits corresponding to the specified transaction field may include but is not limited to: when the specified transaction type is a low-carbon commodity transaction type, the specified carbon credits corresponding to the specified transaction field are evaluated according to the type and / or quantity of each low-carbon commodity in the low-carbon transaction information. The above low-carbon commodities may include but are not limited to small portions of meals, pre-set commodities participating in low-carbon behaviors, such as but not limited to coffee, beef, etc. The types of the above low-carbon commodities are different, and the corresponding carbon credits may be different. The above specified carbon credits may be but are not limited to the carbon credits corresponding to the type of low-carbon commodities in the specified transaction field, and may also be the product of the carbon credits corresponding to the type of low-carbon commodities and the corresponding quantity, which is not limited in this embodiment of the present application.
[0072] In the case where the designated transaction type is a low-carbon service tool transaction type, the designated carbon credits corresponding to the designated transaction field are evaluated according to the type and / or quantity of the low-carbon service tools in the low-carbon transaction information. The above-mentioned low-carbon service tools may include, but are not limited to, service tools that can participate in low-carbon behaviors such as tableware and packaging bags. For example, when the low-carbon service tools in the low-carbon transaction information are low-carbon tableware, the types and / or quantities of low-carbon tableware are different, and the corresponding designated carbon credits are different. For example, but not limited to, when the number of low-carbon tableware is 0, the corresponding designated carbon credits are higher than the corresponding designated carbon credits when the number of low-carbon tableware is not 0, and the designated carbon credits corresponding to low-carbon tableware with a high environmental protection level are greater than the designated carbon credits corresponding to low-carbon tableware with a low environmental protection level.
[0073] In the case where the designated transaction type is a low-carbon transaction voucher type, the environmental protection level corresponding to the low-carbon transaction information is determined according to the type of low-carbon transaction voucher in the low-carbon transaction information, and the designated carbon credits corresponding to the designated transaction field are evaluated according to the environmental protection level. The above-mentioned low-carbon transaction voucher may include, but is not limited to, online transaction vouchers, simplified paper transaction vouchers, etc. The environmental protection level corresponding to the above-mentioned online transaction voucher is greater than the environmental protection level of the simplified paper transaction voucher. The environmental protection level corresponding to the above-mentioned low-carbon transaction information may be obtained by, but is not limited to, evaluating according to preset environmental protection evaluation rules or using an environmental protection evaluation model, and the above-mentioned environmental protection evaluation model may be obtained by, but is not limited to, training based on the types of transaction vouchers with known environmental protection levels.
[0074] When the designated transaction type is a low-carbon delivery transaction type, the designated carbon credits corresponding to the designated transaction field are evaluated based on the number of group purchase participants and / or the delivery distance in the low-carbon transaction information. The above low-carbon delivery transaction type is used to characterize transactions where the delivery method is group purchase delivery. Different designated carbon credits correspond to different number of group purchase participants and / or delivery distances in the above low-carbon transaction information.
[0075] S402, determining a target carbon credit sub-variable corresponding to the target carbon label according to the designated carbon credits of each designated transaction field corresponding to the target carbon label.
[0076] Specifically, the above-mentioned target carbon credit sub-variable is used to characterize the low-carbon performance of the target user in the low-carbon behavior corresponding to the target carbon label (for example, but not limited to the amount of carbon emissions that can be reduced). For each target carbon label, the specified carbon credits of all the corresponding specified transaction fields are summarized to obtain the total carbon credit corresponding to the target carbon label, i.e., the target carbon credit sub-variable, which realizes the quantitative analysis of the low-carbon transaction behavior under the target carbon label, and helps to understand the preferences and contributions of the target users in different low-carbon behaviors.
[0077] S403: Determine a target carbon credit variable for a target user corresponding to target transaction information according to a target carbon credit sub-variable corresponding to at least one target carbon label.
[0078] Specifically, the target carbon credit sub-variables of all target carbon labels corresponding to the target transaction information can be added together to obtain the target carbon credit variable of the target user corresponding to the target transaction information. The above target carbon credit variable is used to measure the overall low-carbon performance of the target user in this target transaction, such as but not limited to the amount of carbon emissions that the target user can reduce in this transaction.
[0079] Please continue to refer to Figure 2 ,like Figure 2 As shown, in the above S203, after determining the target carbon credit variable of the target user corresponding to the target transaction information according to at least one target carbon label and the target consumption data corresponding to the target carbon label, the data settlement method further includes:
[0080] S204, settling the total carbon credits of the target carbon account corresponding to the target user according to the target carbon credit variable.
[0081] Specifically, the total carbon credits in the target carbon account of the target user can be updated according to the target carbon credit variable, for example, the target carbon credit variable is directly added to the total carbon credits of the target carbon account corresponding to the target user to obtain the target total carbon credits after settlement. The above target carbon account is a special account for recording the carbon credits corresponding to the online transaction behavior of the target user. The total carbon credits of the above target carbon account are the total amount of carbon credits accumulated by the target user in his target carbon account.
[0082] In the embodiments of the present application, on the one hand, the use of streaming computing technology can perform real-time carbon label identification and determination of corresponding consumption data for a large amount of transaction information, providing a basis for subsequent carbon credit settlement and improving the settlement efficiency of carbon credits corresponding to each transaction of the user; on the other hand, by screening the target transaction information, the streaming computing process is mainly focused on the target transaction field with a specific behavior label (target behavior label), avoiding interference from other information in the target transaction information that is not related to data settlement, reducing the complexity of data processing in the streaming computing process, further improving the settlement efficiency of carbon credits, and helping to timely reflect the impact of user trading behavior on carbon emissions; on the other hand, the target carbon credit change generated by the target user's current transaction behavior is determined based on at least one target carbon label corresponding to the target transaction information and its corresponding target consumption data, and then the total carbon credits of its target carbon account are settled, so that different types of user trading behaviors can be timely reflected through the settlement of changes in carbon credits. The quantitative impact on the environment is quantitatively reflected, which helps to promote users' environmental protection behaviors, reduce carbon emissions, and promote sustainable development.
[0083] Please refer to the following Figure 5 , which is a flow chart of another data settlement method provided by an exemplary embodiment of the present application. Figure 5 As shown, the data settlement method includes the following steps:
[0084] S501, obtaining target transaction information.
[0085] Specifically, the target transaction information may include, but is not limited to, a target transaction type, a target transaction identifier, etc. The process of acquiring the target transaction information is consistent with the above S201, and will not be repeated here.
[0086] S502: When the target transaction type is a return order type, determine whether there is a data settlement record for the target order information corresponding to the target transaction information.
[0087] Specifically, when the target transaction type is a return order type, the corresponding target order information can be determined based on the target transaction identifier in the target transaction information, and then the carbon credit database can be queried based on the target order information to see whether there is a corresponding data settlement record.
[0088] S503: If there is a corresponding data settlement record for the target order information, the total carbon credits of the target carbon account are deducted from the historical carbon credits variable of the target order information recorded in the data settlement record to obtain the target total carbon credits after settlement.
[0089] Specifically, if there is a corresponding data settlement record for the target order information, it means that the target order information that has been returned has already been settled with carbon credits. In this case, the total carbon credits of the target carbon account can be directly deducted from the historical carbon credits variables of the target order information recorded in the data settlement record to obtain the target total carbon credits after settlement. This eliminates the need to repeatedly calculate the carbon credit variables for the same order, thereby improving the efficiency of carbon credit settlement in the event of an order return.
[0090] S504: If there is no corresponding data settlement record for the target order information, the total carbon credits of the target carbon account are controlled to remain unchanged.
[0091] Specifically, if there is no corresponding data settlement record for the target order information, it means that the target order information that has been returned has not settled carbon credits or there is no low-carbon behavior at all, that is, the target order information has not caused the total carbon credits of the target carbon account to change. In this case, the total carbon credits of the target carbon account can continue to be controlled to remain unchanged, thereby avoiding repeated low-carbon behavior identification for the same order, avoiding waste of server computing resources, and improving the efficiency of carbon credit settlement in the case of return.
[0092] Please refer to the following Figure 6 , which is a flow chart of another data settlement method provided by an exemplary embodiment of the present application. Figure 6 As shown, the data settlement method includes the following steps:
[0093] S601, receiving a target exchange instruction, the target exchange instruction carries the target exchange type selected by the target user and the total exchange amount of carbon credits under the target exchange type.
[0094] Specifically, when the target user wants to use the total carbon credits under his target carbon account for redemption, the target user can specify the target redemption type (such as but not limited to service redemption, discount redemption or commodity redemption) and the total redemption amount of carbon credits under this type by clicking a button, selecting a drop-down menu item or entering specific information. The terminal can receive the target redemption instruction input by the target user through the corresponding redemption interface and send it to the server.
[0095] S602, in response to the target exchange instruction, the points are exchanged according to the target exchange type and the total exchange amount of carbon points, and the target total carbon points after exchange and the target rights and interests information after exchange corresponding to the target exchange type are obtained.
[0096] Specifically, after receiving the target exchange instruction sent by the terminal, the server can first verify whether the total carbon credits in the target carbon account of the target user are sufficient to meet the exchange request. If the total carbon credits are insufficient, that is, less than the total exchange amount of carbon credits, a corresponding prompt message can be sent to the terminal to prompt the target user to supplement the credits or select other exchange options. If the total carbon credits are sufficient, that is, greater than or equal to the total exchange amount of carbon credits, the credits can be exchanged directly according to the target exchange type and the total exchange amount of carbon credits to obtain the target total carbon credits after exchange and the target equity information after exchange corresponding to the target exchange type.
[0097] When the above-mentioned target redemption type is a service redemption type, the target rights and interests information includes the target service information provided to the target user after the redemption, that is, when the target redemption type is a service redemption, the carbon points balance (total carbon points) in the target user's account can be updated according to the total carbon points redemption amount selected by the target user, and corresponding service redemption vouchers or access rights can be generated, such as membership services, specific function experience services, etc.
[0098] When the above-mentioned target redemption type is a preferential redemption type, the target rights and interests information includes the target preferential information issued to the target account corresponding to the target user after the redemption, that is, when the target redemption type is a preferential redemption, the carbon credit balance (total carbon credits) in the target user's account can be updated according to the total redemption amount of carbon credits selected by the target user, and corresponding coupons, discount codes or points return and other preferential information can be added to the target user's account. These preferential information can be used in the target user's future shopping or service consumption.
[0099] When the above-mentioned target redemption type is a commodity redemption type, the above-mentioned target rights and interests information includes the target commodity information after redemption, that is, if the target user chooses commodity redemption, the server will reserve or mark the corresponding target commodity from the inventory, and update the carbon credit balance in the target carbon account, and prepare the delivery or collection process of the target commodity to generate the corresponding target commodity information.
[0100] Please refer to the following Figure 7 , which is a flow chart of a carbon credit ranking query method provided by an exemplary embodiment of the present application. Figure 7 As shown, the carbon credit ranking query method includes the following steps:
[0101] S701, obtaining carbon credit information of carbon accounts corresponding to multiple users and user information corresponding to multiple users.
[0102] Specifically, the carbon credit information of the carbon accounts corresponding to multiple users in the historical time period (for example, but not limited to one day before the collection time or one week before the collection time or one month before the collection time or one year) and the user information corresponding to multiple users can be collected in a preset time period (for example, but not limited to 0:00 to 1:00 every morning, etc.) or according to the target time interval (for example, but not limited to every day, every hour, etc.). The above-mentioned carbon account can be a virtual account that records the changes in the user's carbon credits, which is used to measure the user's contribution to low-carbon behavior. The above-mentioned carbon credit information may include, but is not limited to, detailed information such as the user's credit balance (total carbon credits), credit source, credit consumption, etc. in the carbon account. The above-mentioned user information may include, but is not limited to, the user's personal basic information, such as, but not limited to, name, region, contact information, etc.
[0103] S702, returning the carbon credit information to the carbon account offline table, and returning the user information to the user offline table.
[0104] Specifically, the carbon credit information and user information collected in step S701 can be migrated to the carbon account offline table and the user offline table respectively, so that the real-time or dynamically collected information can be migrated to offline storage to ensure the long-term preservation and traceability of the data and provide a data basis for offline data analysis.
[0105] S703, determining a carbon credit offline ranking table of the carbon accounts corresponding to the respective carbon accounts of a plurality of users in the same region according to the carbon account offline table and the user offline table.
[0106] Specifically, the user information and carbon credit information corresponding to users in the same region can be screened out from the carbon account offline table and the user offline table. Then, the carbon credit ranking of each user is calculated based on the screened carbon credit information to obtain the carbon credit offline ranking table corresponding to each region.
[0107] S704, synchronizing the carbon credit offline ranking table to the real-time query engine.
[0108] Specifically, the carbon credit offline ranking table generated in S703 can be synchronized to a real-time query engine, such as but not limited to Elasticsearch, Solr, etc., to ensure the consistency of offline data with the data in the real-time query engine. The above-mentioned real-time query engine is used to provide efficient real-time query services. In the real-time query engine, an index can also be established for the carbon credit offline ranking table to improve the efficiency of subsequent queries.
[0109] S705, after receiving the target carbon credit ranking query instruction, in response to the target carbon credit ranking query instruction, query in the real-time query engine according to the target user information and / or the target carbon account information of the target user to obtain the target carbon credit ranking information corresponding to the target user.
[0110] Specifically, the terminal can receive the target carbon credit ranking query instruction input by the target user through the user interface or API interface, and send the target carbon credit ranking query instruction to the server. After receiving the target carbon credit ranking query instruction, the server can parse the target user information and / or target carbon account information in the target carbon credit ranking query instruction as query conditions, and perform a query in the real-time query engine according to the parsed query conditions to obtain the target carbon credit ranking information of the target user. At the same time, the server can also return the query results to the terminal corresponding to the target user, so as to provide an instant carbon credit ranking query service and meet the user's needs to instantly understand their own carbon credit ranking.
[0111] Please refer to the following Figure 8 , which is a flow chart of another data settlement method provided by an exemplary embodiment of the present application. Figure 8 As shown, the data settlement method includes the following steps:
[0112] S801, obtaining target transaction information, where the target transaction information includes at least one target transaction field carrying a target behavior tag.
[0113] Specifically, the above S801 is consistent with S201 and will not be repeated here.
[0114] S802, performing streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label.
[0115] Specifically, the above S802 is consistent with S202 and will not be repeated here.
[0116] S803: Determine a target carbon credit variable for a target user corresponding to target transaction information according to at least one target carbon label and target consumption data corresponding to the target carbon label.
[0117] Specifically, the above S803 is consistent with S203 and will not be repeated here.
[0118] S804, settling the total carbon credits of the target carbon account corresponding to the target user according to the target carbon credit variable.
[0119] Specifically, the above S804 is consistent with S204 and will not be repeated here.
[0120] S805: Update the target carbon account table corresponding to the target carbon account according to the settled target total carbon points.
[0121] Specifically, the target carbon account table is used to store basic information such as the target user ID corresponding to the target carbon account and target carbon credit overview information (such as but not limited to total carbon credits, carbon reduction times, etc.). After the target transaction is completed and the corresponding carbon credits are settled, the settled target total carbon credits can be updated to the target carbon account table associated with the target carbon account, which ensures that the total carbon credit data in the target carbon account table can accurately reflect the user's low-carbon behavior contribution, and allows the target user to view his total carbon credits at any time, enhancing the sense of participation and achievement.
[0122] S806: Update the target carbon credit list corresponding to the target carbon account according to at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target carbon credit variable.
[0123] Specifically, the target carbon credits table is used to store the target details of the target carbon account involved in this settlement process, that is, after each transaction, the user can generate a corresponding target carbon credits table, or create a target carbon credits table for a fixed period of time such as every day or every week. After the user completes the transaction, the calculated carbon credits details such as at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target carbon credits variable are directly updated to the target carbon credits table associated with the target carbon account. A target carbon account table is stored under a target carbon account, and the target carbon account table is associated with at least one target carbon credits table. Thus, through the sub-table structure design of the target carbon account table and the target carbon credits table, the problem of a slow subsequent query rate caused by too much data stored in one table is avoided.
[0124] Optionally, please continue to refer to Figure 8 ,like Figure 8 As shown, the method may also include but is not limited to:
[0125] S807, receiving a target carbon credit query instruction, where the target carbon credit query instruction carries a target query type specified by a target user.
[0126] Specifically, the terminal can receive the target carbon credit query instruction triggered by the target user through the user interface, API interface, etc., and send the target carbon credit query instruction to the server. After receiving the target carbon credit query instruction, the server can parse the target carbon credit query instruction and obtain the target query type specified by the target user (such as but not limited to total carbon credit query, carbon credit detail query, etc.).
[0127] S808, in response to the target carbon credit query instruction, when the target query type is the total carbon credit query type, query is performed in the target carbon account table according to the target user information and / or the target carbon account information corresponding to the target user to obtain the target total carbon credit; when the target query type is the carbon credit detail query type, query is performed in the target carbon credit detail table according to the target user information and / or the target carbon account information corresponding to the target user to obtain the target carbon credit detail information.
[0128] Specifically, the server can respond to the target carbon credit query instruction, query in the corresponding database table according to the target query type, and return the query result. For example, in the case where the target query type is the total carbon credit query type, query in the target carbon account table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target total carbon credit; in the case where the target query type is the carbon credit detail query type, query in the target carbon credit detail table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target carbon credit detail information, thereby providing an instant carbon credit query service to meet the user's needs to understand their carbon credit situation at any time, and by providing a detailed carbon credit detail query service, enhance the transparency and credibility of the data.
[0129] Next, a method for displaying data provided by an exemplary embodiment of the present application is introduced by taking the terminal performing data display as an example. Fig. 9 As shown, the data display method includes the following steps:
[0130] S901, receiving a target carbon credit query instruction input by a target user.
[0131] Specifically, through the user interface of the target application always displayed on the terminal, the target user can input or trigger a target carbon credit query instruction.
[0132] S902, sending a target carbon credit query instruction to a server, so that the server responds to the target carbon credit query instruction and queries to obtain a target carbon credit settlement result.
[0133] Specifically, after receiving the target carbon credit query instruction input by the target user, the terminal can send the target carbon credit query instruction to the server, so that the server responds to the target carbon credit query instruction, and performs a query according to the target query type and / or target user information and / or target carbon account information corresponding to the target user carried in the target carbon credit query instruction, to obtain the target carbon credit settlement result. The above target carbon credit settlement result is obtained by settlement based on the above data settlement method.
[0134] S903, receiving the target carbon credit settlement result returned by the server, and displaying the target carbon credit settlement result in the target-related page corresponding to the target carbon account.
[0135] Specifically, when the target query type is a total carbon credit query type, the target-related page is the target carbon account homepage, and the target carbon credit query result includes the target total carbon credit obtained by the server after the target transaction corresponding to the target user is completed through the above data settlement method. When the target query type is a carbon credit detail query type, the target-related page may be, but is not limited to, the target carbon account details page, and the target carbon credit query result may include, but is not limited to, the target carbon credit details involved in the settlement process of the server through the above data settlement method after the target transaction corresponding to the target user is completed.
[0136] In order to better understand the data settlement method provided in the above embodiments of the present application, Fig.10 The following is a schematic diagram showing the structure of a data settlement device provided in an embodiment of the present application. Fig.10 As shown, the data settlement device 1000 includes:
[0137] The first acquisition module 1010 is used to acquire target transaction information; the target transaction information includes at least one target transaction field carrying a target behavior tag;
[0138] A stream computing module 1020 is used to perform stream computing on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label;
[0139] A first determination module 1030 is used to determine a target carbon credit variable of a target user corresponding to the target transaction information according to the at least one target carbon label and the target consumption data corresponding to the target carbon label;
[0140] The settlement module 1040 is used to settle the total carbon credits of the target carbon account corresponding to the target user according to the target carbon credit variable.
[0141] In a possible implementation, the stream computing module 1020 includes:
[0142] A labeling unit, used to label the target transaction field according to the target behavior tag according to a preset rule to obtain a target labeling result corresponding to the target transaction field; the target labeling result is used to indicate whether the target consumption data corresponding to the target transaction field belongs to low-carbon behavior data;
[0143] A filtering unit, configured to filter the target transaction field in the target transaction information according to the target labeling result, and obtain the target labeling result as a designated transaction field labeled with a target carbon label;
[0144] The data determination unit is used to determine the target consumption data corresponding to each of the target carbon labels according to at least one designated transaction field corresponding to each of the target carbon labels in the target transaction information.
[0145] In a possible implementation, the marking unit is specifically used to:
[0146] Perform behavior recognition on the target behavior label to obtain the target behavior type corresponding to the target transaction field; when the target behavior type is a low-carbon behavior type, mark the corresponding target transaction field with a target carbon label; the target transaction field corresponds to different low-carbon behavior types, and the corresponding target carbon labels are different; when the target behavior type is a non-low-carbon behavior type, mark the corresponding target transaction field with a target non-carbon label.
[0147] In a possible implementation, the target consumption data includes at least one designated transaction field corresponding to the target carbon label; the designated transaction field includes low-carbon transaction information of a designated transaction type;
[0148] The first determining module 1030 includes:
[0149] A carbon credit evaluation unit, configured to perform carbon credit evaluation on the low-carbon transaction information according to the specified transaction type, and obtain the specified carbon credit corresponding to the specified transaction field;
[0150] A carbon credit sub-variable determining unit, configured to determine a target carbon credit sub-variable corresponding to the target carbon label according to the designated carbon credits of the target carbon label corresponding to each of the designated transaction fields;
[0151] The carbon credit variable determination unit is used to determine the target carbon credit variable of the target user corresponding to the target transaction information according to the target carbon credit sub-variable corresponding to the at least one target carbon label.
[0152] In one possible implementation, the carbon credit evaluation unit is specifically used for: when the designated transaction type is a low-carbon commodity transaction type, evaluating the designated carbon credits corresponding to the designated transaction field according to the type and / or quantity of each low-carbon commodity in the low-carbon transaction information; when the designated transaction type is a low-carbon service tool transaction type, evaluating the designated carbon credits corresponding to the designated transaction field according to the type and / or quantity of the low-carbon service tools in the low-carbon transaction information; when the designated transaction type is a low-carbon transaction voucher type, determining the environmental protection degree corresponding to the low-carbon transaction information according to the type corresponding to the low-carbon transaction voucher in the low-carbon transaction information, and evaluating the designated carbon credits corresponding to the designated transaction field according to the environmental protection degree; when the designated transaction type is a low-carbon delivery transaction type, evaluating the designated carbon credits corresponding to the designated transaction field according to the number of people participating in the group purchase and / or the delivery distance in the low-carbon transaction information.
[0153] In a possible implementation, the first determining module 1030 is specifically configured to:
[0154] The target carbon credit variable of the target user corresponding to the target transaction information is determined based on the at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target transaction type; wherein, when the target transaction type is an order type, the target carbon credit variable is a positive value; when the target transaction type is a return order type, the target carbon credit variable is a negative value.
[0155] In a possible implementation, the target transaction information further includes a target transaction type; and the data settlement device 1000 further includes:
[0156] A judgment module, used for judging whether there is a data settlement record for the target order information corresponding to the target transaction information when the target transaction type is a return order type;
[0157] The settlement module 1040 is further configured to: if the target order information has a corresponding data settlement record, deduct the historical carbon credit variable of the target order information recorded in the data settlement record from the total carbon credit of the target carbon account to obtain the target total carbon credit after settlement;
[0158] The control module is used to control the total carbon credits of the target carbon account to remain unchanged if there is no corresponding data settlement record for the target order information.
[0159] In a possible implementation, the data settlement device 1000 further includes:
[0160] A first receiving module is used to receive a target exchange instruction; the target exchange instruction carries the target exchange type selected by the target user and the total exchange amount of carbon credits under the target exchange type;
[0161] A redemption module is used to respond to the above-mentioned target redemption instruction, redeem points according to the above-mentioned target redemption type and the above-mentioned total redemption amount of carbon points, and obtain the target total carbon points after redemption and the target rights and interests information after redemption corresponding to the above-mentioned target redemption type; wherein, when the above-mentioned target redemption type is a service redemption type, the above-mentioned target rights and interests information includes the target service information provided to the above-mentioned target user after redemption; when the above-mentioned target redemption type is a preferential redemption type, the above-mentioned target rights and interests information includes the target preferential information issued to the target account corresponding to the above-mentioned target user after redemption; when the above-mentioned target redemption type is a commodity redemption type, the above-mentioned target rights and interests information includes the target commodity information after redemption.
[0162] In a possible implementation, the data settlement device 1000 further includes:
[0163] The second acquisition module is used to acquire the carbon credit information of the carbon accounts corresponding to the multiple users and the user information corresponding to the multiple users;
[0164] A reflux module, used to reflux the above carbon credit information to the carbon account offline table, and reflux the above user information to the user offline table;
[0165] The second determination module is used to determine the carbon credits offline ranking table of the carbon accounts corresponding to the respective carbon accounts of multiple users in the same region according to the carbon account offline table and the user offline table;
[0166] A synchronization module, used to synchronize the above carbon credit offline ranking table to the real-time query engine;
[0167] The first query module is used to, after receiving the target carbon credit ranking query instruction, respond to the above target carbon credit ranking query instruction, query in the above real-time query engine according to the target user information and / or target carbon account information of the above target user, and obtain the target carbon credit ranking information corresponding to the above target user.
[0168] In a possible implementation, the data settlement device 1000 further includes:
[0169] A first updating module is used to update the target carbon account table corresponding to the target carbon account according to the target total carbon credits after settlement; the target carbon account table is used to store the target user identifier and target carbon credits overview information corresponding to the target carbon account;
[0170] The second update module is used to update the target carbon points detailed table corresponding to the above-mentioned target carbon account according to the above-mentioned at least one target carbon label, the target consumption data corresponding to the above-mentioned target carbon label and the above-mentioned target carbon points variable; the above-mentioned target carbon points detailed table is used to store the target detailed information involved in the above-mentioned target carbon account in this settlement process; wherein, one target carbon account stores one of the above-mentioned target carbon account tables, and the above-mentioned target carbon account table is associated with storing at least one target carbon points detailed table.
[0171] In a possible implementation, the data settlement device 1000 further includes:
[0172] The second receiving module is used to receive a target carbon credit query instruction; the target carbon credit query instruction carries the target query type specified by the target user;
[0173] The second query module is used to respond to the above-mentioned target carbon credit query instruction. When the above-mentioned target query type is the total carbon credit query type, the target carbon account table is queried according to the target user information and / or the target carbon account information corresponding to the above-mentioned target user to obtain the target total carbon credit. When the above-mentioned target query type is the carbon credit detail query type, the target carbon credit detail table is queried according to the target user information and / or the target carbon account information corresponding to the above-mentioned target user to obtain the target carbon credit detail information.
[0174] In a possible implementation, the first acquisition module 1010 is specifically used to:
[0175] The message middleware is used to monitor the target change information in the order database; and the corresponding target transaction information in the order database is read according to the target change information.
[0176] In order to better understand the data display method provided in the above embodiments of the present application, Fig.11 The structural diagram of a data display device provided by an embodiment of the present application is exemplarily shown. Fig.11 As shown, the data display device 1100 includes:
[0177] The first receiving module 1110 is used to receive a target carbon credit query instruction input by a target user;
[0178] The sending module 1120 is used to send the target carbon credit query instruction to the server, so that the server responds to the target carbon credit query instruction and obtains the target carbon credit settlement result by querying;
[0179] The second receiving module 1130 is used to receive the target carbon credit settlement result returned by the server;
[0180] The display module 1140 is used to display the above target carbon credit settlement result in the target-related page corresponding to the target carbon account; the above target carbon credit settlement result is obtained based on the above data settlement method.
[0181] The division of each module in the above-mentioned data settlement device or data display device is only for illustration. In other embodiments, the data settlement device or data display device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned data settlement device or data display device. The implementation of each module in the data settlement device or data display device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program modules constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the data settlement method or data display method described in the embodiment of the present application are implemented.
[0182] See next Fig.12 , Fig.12 The following is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application. Fig.12 As shown, the electronic device 1200 may include: at least one processor 1210 , at least one network interface 1220 , a user interface 1230 , a memory 1240 , and at least one communication bus 1250 .
[0183] The communication bus 1250 may be used to realize the connection and communication of the above-mentioned components. The user interface 1230 may include a display and a camera, and the optional user interface may also include a standard wired interface and a wireless interface. The network interface 1220 includes a Bluetooth module, a Near Field Communication (NFC) module, a Wireless Fidelity (Wi-Fi) module, etc.
[0184] Among them, the processor 1210 may include one or more processing cores. The processor 1210 uses various interfaces and lines to connect various parts within the entire electronic device 1200, and executes various functions and processes data of the routing electronic device 1200 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1240, and calling data stored in the memory 1240. Optionally, the processor 1210 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 1210 can integrate one or a combination of a processor (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1210, but may be implemented separately through a chip.
[0185] Among them, the memory 1240 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1240 includes a non-transitory computer-readable medium. The memory 1240 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1240 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as an acquisition function, a data settlement function, a data display function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1240 may also be optionally at least one storage device located away from the aforementioned processor 1210. As Fig.12 As shown, the memory 1240 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program.
[0186] In some possible embodiments, the electronic device 1200 is the aforementioned Fig.10For the data settlement device 1000 mentioned in the embodiment, the processor 1210 can be used to call the data settlement application stored in the memory 1240, and perform the following operations: obtain target transaction information; the above-mentioned target transaction information includes at least one target transaction field carrying a target behavior label; according to the above-mentioned target behavior label, the above-mentioned target transaction field is stream-calculated to obtain at least one target carbon label corresponding to the above-mentioned target transaction information and the target consumption data corresponding to the above-mentioned target carbon label; according to the above-mentioned at least one target carbon label and the target consumption data corresponding to the above-mentioned target carbon label, the target carbon credit variable of the target user corresponding to the above-mentioned target transaction information is determined; according to the above-mentioned target carbon credit variable, the total carbon credits of the target carbon account corresponding to the above-mentioned target user are settled.
[0187] In some possible embodiments, when the processor 1210 performs the streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and the target consumption data corresponding to the target carbon label, it is specifically used to execute: labeling the target transaction field according to the target behavior label according to preset rules to obtain the target labeling result corresponding to the target transaction field; the target labeling result is used to indicate whether the target consumption data corresponding to the target transaction field belongs to low-carbon behavior data; filtering the target transaction field in the target transaction information according to the target labeling result to obtain the target labeling result as the designated transaction field for labeling the target carbon label; determining the target consumption data corresponding to each target carbon label according to at least one designated transaction field corresponding to each target carbon label in the target transaction information.
[0188] In some possible embodiments, when the processor 1210 executes the above-mentioned labeling of the target transaction field according to the preset rules based on the target behavior label and obtains the target labeling result corresponding to the target transaction field, it is specifically used to execute: performing behavior identification on the target behavior label to obtain the target behavior type corresponding to the target transaction field; when the target behavior type is a low-carbon behavior type, labeling the corresponding target transaction field with a target carbon label; the target transaction field corresponds to different low-carbon behavior types, and the corresponding types of the target carbon labels are different; when the target behavior type is a non-low-carbon behavior type, labeling the corresponding target transaction field with a target non-carbon label.
[0189] In some possible embodiments, the target consumption data includes at least one designated transaction field corresponding to the target carbon label; the designated transaction field includes low-carbon transaction information of a designated transaction type; when the processor 1210 executes the target consumption data corresponding to the target carbon label and the target carbon label to determine the target carbon credit variable of the target user corresponding to the target transaction information, it is specifically used to execute: performing carbon credit evaluation on the low-carbon transaction information according to the designated transaction type to obtain the designated carbon credit corresponding to the designated transaction field; determining the target carbon credit sub-variable corresponding to the target carbon label according to the designated carbon credit of each designated transaction field corresponding to the target carbon label; determining the target carbon credit variable of the target user corresponding to the target transaction information according to the target carbon credit sub-variable corresponding to the at least one target carbon label.
[0190] In some possible embodiments, when the processor 1210 executes the carbon credit evaluation of the low-carbon transaction information according to the specified transaction type to obtain the specified carbon credit corresponding to the specified transaction field, it is specifically used to execute: when the specified transaction type is a low-carbon commodity transaction type, the specified carbon credit corresponding to the specified transaction field is evaluated according to the type and / or quantity of each low-carbon commodity in the low-carbon transaction information; when the specified transaction type is a low-carbon service tool transaction type, the specified carbon credit corresponding to the specified transaction field is evaluated according to the type and / or quantity of the low-carbon service tools in the low-carbon transaction information; when the specified transaction type is a low-carbon transaction voucher type, the environmental protection degree corresponding to the low-carbon transaction information is determined according to the type corresponding to the low-carbon transaction voucher in the low-carbon transaction information, and the specified carbon credit corresponding to the specified transaction field is evaluated according to the environmental protection degree; when the specified transaction type is a low-carbon delivery transaction type, the specified carbon credit corresponding to the specified transaction field is evaluated according to the number of people participating in the group purchase and / or the delivery distance in the low-carbon transaction information.
[0191] In some possible embodiments, the target transaction information also includes a target transaction type; when the processor 1210 executes the above-mentioned determination of the target carbon credit variable of the target user corresponding to the target transaction information according to the at least one target carbon label and the target consumption data corresponding to the target carbon label, it is specifically used to execute: determining the target carbon credit variable of the target user corresponding to the target transaction information according to the at least one target carbon label, the target consumption data corresponding to the target carbon label and the target transaction type; wherein, when the target transaction type is an order type, the target carbon credit variable is a positive value; when the target transaction type is a return order type, the target carbon credit variable is a negative value.
[0192] In some possible embodiments, the processor 1210 executes the target transaction information further including the target transaction type; after obtaining the target transaction information, it is further used to execute: when the target transaction type is a return order type, determine whether there is a data settlement record for the target order information corresponding to the target transaction information; if there is a corresponding data settlement record for the target order information, deduct the historical carbon credits variable of the target order information recorded in the data settlement record from the total carbon credits of the target carbon account to obtain the target total carbon credits after settlement; if there is no corresponding data settlement record for the target order information, control the total carbon credits of the target carbon account to remain unchanged.
[0193] In some possible embodiments, the processor 1210 is also used to execute: receiving a target redemption instruction; the target redemption instruction carries the target redemption type selected by the target user and the total redemption amount of carbon points under the target redemption type; in response to the target redemption instruction, redeeming points according to the target redemption type and the total redemption amount of carbon points, and obtaining the target total carbon points after redemption and the target rights and interests information after redemption corresponding to the target redemption type; wherein, when the target redemption type is a service redemption type, the target rights and interests information includes the target service information provided to the target user after redemption; when the target redemption type is a discount redemption type, the target rights and interests information includes the target discount information issued to the target account corresponding to the target user after redemption; when the target redemption type is a commodity redemption type, the target rights and interests information includes the target commodity information after redemption.
[0194] In some possible embodiments, the processor 1210 is further used to execute: obtaining carbon credit information of carbon accounts corresponding to multiple users and user information corresponding to each of the multiple users; returning the carbon credit information to the carbon account offline table, and returning the user information to the user offline table; determining a carbon credit offline ranking table of carbon accounts corresponding to multiple users in the same region according to the carbon account offline table and the user offline table; synchronizing the carbon credit offline ranking table to the real-time query engine; after receiving a target carbon credit ranking query instruction, responding to the target carbon credit ranking query instruction, querying in the real-time query engine according to the target user information and / or target carbon account information of the target user to obtain the target carbon credit ranking information corresponding to the target user.
[0195] In some possible embodiments, after the processor 1210 executes the settlement of the total carbon points of the target carbon account corresponding to the target user according to the target carbon points variable, it is also used to execute: updating the target carbon account table corresponding to the target carbon account according to the target total carbon points after settlement; the target carbon account table is used to store the target user identifier and target carbon points overview information corresponding to the target carbon account; updating the target carbon points detailed table corresponding to the target carbon account according to the at least one target carbon label, the target consumption data corresponding to the target carbon label and the target carbon points variable; the target carbon points detailed table is used to store the target detailed information involved in the target carbon account in this settlement process; wherein, one target carbon account has one target carbon account table stored, and the target carbon account table is associated with at least one target carbon points detailed table.
[0196] In some possible embodiments, the processor 1210 is further used to execute: receiving a target carbon credit query instruction; the target carbon credit query instruction carries the target query type specified by the target user; in response to the target carbon credit query instruction, when the target query type is a total carbon credit query type, querying in the target carbon account table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target total carbon credits; when the target query type is a carbon credit detail query type, querying in the target carbon credit detail table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target carbon credit detail information.
[0197] In some possible embodiments, when the processor 1210 executes the acquisition of target transaction information, it is specifically used to execute: using the message middleware to monitor the target change information occurring in the order database; and reading the corresponding target transaction information in the order database according to the target change information.
[0198] In some possible embodiments, the electronic device 1200 is the aforementioned Fig.11 For the data display device 1100 mentioned in the embodiment, the processor 1210 can be used to call the data display application stored in the memory 1240, and perform the following operations: receiving a target carbon credit query instruction input by a target user; sending the target carbon credit query instruction to a server, so that the server responds to the target carbon credit query instruction and obtains a target carbon credit settlement result by querying; receiving the target carbon credit settlement result returned by the server; displaying the target carbon credit settlement result in a target-related page corresponding to the target carbon account; the target carbon credit settlement result is obtained by settlement based on the data settlement method.
[0199] The present application also provides a computer-readable storage medium, which stores instructions, and when the instructions are executed on a computer or a processor, the computer or the processor executes one or more steps in the above embodiment. If the components of the above electronic device are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium.
[0200] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)), etc.
[0201] 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 a computer program, and the program 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. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.
[0202] The embodiments described above are merely descriptions of the preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should all fall within the scope of protection determined by the claims.
[0203] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A data settlement method, characterized in that: The method comprises: When the online transaction conducted by the target user is completed, the corresponding target transaction information is obtained; the target transaction information includes at least one target transaction field carrying a target behavior tag; the target behavior tag is used to identify the attribute of the target transaction behavior corresponding to the target transaction field; The target transaction field is subjected to real-time streaming calculation according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label; the target carbon label is a label indicating low-carbon behavior in a transaction, and is used to quantify the environmental impact of a transaction; the target consumption data is obtained by integrating the target transaction fields corresponding to the same target carbon label in the target transaction information; the target transaction fields correspond to different types of low-carbon behavior, and the types of corresponding target carbon labels are different; Based on at least one factor of the environmental protection degree, transaction volume and transaction type of the transaction, different carbon credits are assigned to different target carbon labels, and the target carbon credit variable of the target user corresponding to the target transaction information is determined according to the at least one target carbon label and the target consumption data corresponding to the target carbon label; the target carbon credit variable is used to measure the overall low-carbon performance of the target user in this target transaction; The total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable.
2. The method according to claim 1, characterized in that The performing streaming calculation on the target transaction field according to the target behavior label to obtain at least one target carbon label corresponding to the target transaction information and target consumption data corresponding to the target carbon label includes: The target transaction field is labeled according to the target behavior tag according to a preset rule to obtain a target labeling result corresponding to the target transaction field; the target labeling result is used to indicate whether the target consumption data corresponding to the target transaction field belongs to low-carbon behavior data; Filtering the target transaction field in the target transaction information according to the target labeling result, so as to obtain the target labeling result as a designated transaction field labeled with a target carbon label; The target consumption data corresponding to each target carbon label is determined according to at least one designated transaction field corresponding to each target carbon label in the target transaction information.
3. The method according to claim 2, characterized in that The step of labeling the target transaction field according to the target behavior tag and a preset rule to obtain a target labeling result corresponding to the target transaction field includes: Performing behavior recognition on the target behavior tag to obtain a target behavior type corresponding to the target transaction field; When the target behavior type is a low-carbon behavior type, the corresponding target transaction field is marked with a target carbon label; In the case where the target behavior type is a non-low-carbon behavior type, the corresponding target transaction field is marked with a target non-carbon label.
4. The method according to claim 1, characterized in that The target consumption data includes at least one designated transaction field corresponding to the target carbon label; the designated transaction field includes low-carbon transaction information of a designated transaction type; The determining, according to the at least one target carbon label and the target consumption data corresponding to the target carbon label, a target carbon credit variable of a target user corresponding to the target transaction information includes: Performing carbon credit evaluation on the low-carbon transaction information according to the designated transaction type to obtain designated carbon credits corresponding to the designated transaction field; Determine the target carbon credit sub-variable corresponding to the target carbon label according to the designated carbon credits of each designated transaction field corresponding to the target carbon label; The target carbon credit variable of the target user corresponding to the target transaction information is determined according to the target carbon credit sub-variable corresponding to the at least one target carbon label.
5. The method according to claim 4, characterized in that The step of performing carbon credit evaluation on the low-carbon transaction information according to the designated transaction type to obtain designated carbon credits corresponding to the designated transaction field includes: In the case where the designated transaction type is a low-carbon commodity transaction type, evaluating the designated carbon credits corresponding to the designated transaction field according to the type and / or quantity of each low-carbon commodity in the low-carbon transaction information; In the case where the designated transaction type is a low-carbon service tool transaction type, evaluating the designated carbon credits corresponding to the designated transaction field according to the type and / or quantity of the low-carbon service tools in the low-carbon transaction information; In the case where the designated transaction type is a low-carbon transaction voucher type, determining the environmental protection degree corresponding to the low-carbon transaction information according to the type corresponding to the low-carbon transaction voucher in the low-carbon transaction information, and evaluating the designated carbon credits corresponding to the designated transaction field according to the environmental protection degree; In the case where the designated transaction type is a low-carbon delivery transaction type, the designated carbon points corresponding to the designated transaction field are evaluated according to the number of people participating in the group purchase and / or the delivery distance in the low-carbon transaction information.
6. The method according to claim 1, characterized in that The target transaction information also includes a target transaction type; and determining the target carbon credit variable of the target user corresponding to the target transaction information according to the at least one target carbon label and the target consumption data corresponding to the target carbon label includes: Determine a target carbon credit variable for a target user corresponding to the target transaction information according to the at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target transaction type; Among them, when the target transaction type is an order type, the target carbon credit variable is a positive value; when the target transaction type is a return order type, the target carbon credit variable is a negative value.
7. The method according to claim 1, characterized in that The target transaction information also includes a target transaction type; after obtaining the target transaction information, the method further includes: In the case where the target transaction type is a return order type, determining whether there is a data settlement record for the target order information corresponding to the target transaction information; If the target order information has a corresponding data settlement record, the total carbon credits of the target carbon account are deducted from the historical carbon credits variable of the target order information recorded in the data settlement record to obtain the target total carbon credits after settlement; If there is no corresponding data settlement record for the target order information, the total carbon credits of the target carbon account remain unchanged.
8. The method according to claim 1, characterized in that After the total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable, the method further includes: Receive a target exchange instruction; the target exchange instruction carries the target exchange type selected by the target user and the total exchange amount of carbon credits under the target exchange type; In response to the target exchange instruction, perform points exchange according to the target exchange type and the total exchange amount of carbon points to obtain the target total carbon points after exchange and the target equity information after exchange corresponding to the target exchange type; Among them, when the target redemption type is a service redemption type, the target rights and interests information includes the target service information provided to the target user after redemption; when the target redemption type is a discount redemption type, the target rights and interests information includes the target discount information issued to the target account corresponding to the target user after redemption; when the target redemption type is a commodity redemption type, the target rights and interests information includes the target commodity information after redemption.
9. The method according to claim 1, characterized in that After the total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable, the method further includes: Obtaining carbon credit information of carbon accounts corresponding to multiple users and user information corresponding to the multiple users; Returning the carbon credit information to the carbon account offline table, and returning the user information to the user offline table; Determine, according to the carbon account offline table and the user offline table, a carbon credit offline ranking table of the carbon accounts corresponding to a plurality of users in the same region; Synchronizing the carbon credit offline ranking table to the real-time query engine; After receiving the target carbon credit ranking query instruction, in response to the target carbon credit ranking query instruction, a query is performed in the real-time query engine according to the target user information and / or the target carbon account information of the target user to obtain the target carbon credit ranking information corresponding to the target user.
10. The method according to claim 1, characterized in that After the total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable, the method further includes: The target carbon account table corresponding to the target carbon account is updated according to the target total carbon credits after settlement; the target carbon account table is used to store the target user identifier and target carbon credits overview information corresponding to the target carbon account; updating the target carbon credits list corresponding to the target carbon account according to the at least one target carbon label, the target consumption data corresponding to the target carbon label, and the target carbon credits variable; the target carbon credits list is used to store the target details information involved in the target carbon account during this settlement process; There is one target carbon account table stored under one target carbon account, and at least one target carbon points detail table is stored in association with the target carbon account table.
11. The method according to claim 10, characterized in that After the total carbon credits of the target carbon account corresponding to the target user are settled according to the target carbon credit variable, the method further includes: receiving a target carbon credit query instruction; the target carbon credit query instruction carries a target query type specified by the target user; In response to the target carbon credit query instruction, when the target query type is a total carbon credit query type, a query is performed in the target carbon account table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target total carbon credits; and when the target query type is a carbon credit detail query type, a query is performed in the target carbon credit detail table according to the target user information and / or target carbon account information corresponding to the target user to obtain the target carbon credit detail information.
12. The method according to claim 1, characterized in that The obtaining of target transaction information includes: Use message middleware to monitor target change information in the order database; The corresponding target transaction information in the order database is read according to the target change information.
13. A data display method, characterized in that: The method comprises: Receive a target carbon credit query instruction input by a target user; Sending the target carbon credit query instruction to the server, so that the server responds to the target carbon credit query instruction and queries to obtain the target carbon credit settlement result; receiving the target carbon credit settlement result returned by the server, and displaying the target carbon credit settlement result in a target-related page corresponding to the target carbon account; Wherein, the target carbon credit settlement result is obtained based on the data settlement method described in any one of claims 1 to 12.
14. An electronic device, characterized in that: include: Processor and memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method steps according to any one of claims 1 to 13.
15. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, which are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 13 .
Citation Information
Patent Citations
Commodity transaction method, device and equipment and storage medium
CN117745375A
Method and device for determining carbon emission reduction, equipment and storage medium
CN117994107A