CN116957888B - Data processing method, device, terminal equipment and storage medium - Google Patents

Data processing method, device, terminal equipment and storage medium Download PDF

Info

Publication number
CN116957888B
CN116957888B CN202311217616.XA CN202311217616A CN116957888B CN 116957888 B CN116957888 B CN 116957888B CN 202311217616 A CN202311217616 A CN 202311217616A CN 116957888 B CN116957888 B CN 116957888B
Authority
CN
China
Prior art keywords
emission reduction
carbon emission
information
user
card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311217616.XA
Other languages
Chinese (zh)
Other versions
CN116957888A (en
Inventor
梁靖
许华林
甄永峰
赵红宇
李敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Shenzhentong Co ltd
Original Assignee
Shenzhen Shenzhentong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Shenzhentong Co ltd filed Critical Shenzhen Shenzhentong Co ltd
Priority to CN202311217616.XA priority Critical patent/CN116957888B/en
Publication of CN116957888A publication Critical patent/CN116957888A/en
Application granted granted Critical
Publication of CN116957888B publication Critical patent/CN116957888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Accounting & Taxation (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a data processing method, a device, terminal equipment and a storage medium, and relates to the field of carbon emission reduction accounting, wherein the method comprises the following steps: when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. The invention improves the attribution efficiency of carbon emission reduction.

Description

Data processing method, device, terminal equipment and storage medium
Technical Field
The present disclosure relates to the field of carbon emission reduction accounting, and in particular, to a data processing method, a data processing device, a terminal device, and a storage medium.
Background
The behavior of each public trip of the user can generate a traffic card or riding code transaction, and the system can calculate the carbon emission reduction of each trip according to each public trip of the user.
When the riding code is bound with the user, the carbon emission reduction calculated by the riding code transaction can be easily attributed to the user; however, most of traffic cards are non-namecards, basically are not bound with users, and cannot attribute the carbon emission reduction amount to the users under the condition of no binding. Therefore, when a user binds a traffic card newly, related transactions are needed to be found out from massive historical big data, the carbon emission reduction amount is calculated, and then the carbon emission reduction amount is attributed to the user, so that the efficiency is low.
Disclosure of Invention
The main purpose of the application is to provide a data processing method, a data processing device, terminal equipment and a storage medium, and aims to improve the attribution efficiency of carbon emission reduction.
To achieve the above object, the present application provides a data processing method, including:
when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired;
and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules.
Optionally, the carbon emission reduction information includes a current carbon emission reduction amount, the card information includes a card binding state, and the step of attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to a preset card and user attribution rule includes:
judging the card binding state;
if the card binding state is unbound, attributing the current carbon emission reduction amount to the card based on the card information;
and if the card binding state is bound, attributing the current carbon emission reduction amount to the user based on the user information.
Optionally, the card information further includes a current home subscriber number and an unbinding carbon emission reduction amount, and if the card binding state is unbinding, the step of attributing the current carbon emission reduction amount to the card based on the card information further includes:
attributing the current carbon emission reduction amount to the non-attributive carbon emission reduction amount;
judging whether the current attribution user number is empty or not;
and if the current home subscriber number is not null, updating the value of the current home subscriber number to be null.
Optionally, the user information includes accumulating attributed carbon emission reduction, and if the card binding state is bound, the step of attributing the current carbon emission reduction to the user based on the user information further includes:
judging whether the current attribution user number is empty or not;
and if the current attribution user number is empty, attributing the non-attribution carbon emission reduction quantity and the current carbon emission reduction quantity to the accumulated attribution carbon emission reduction quantity.
Optionally, the user information includes a user identity number, and the step of determining whether the current home user number is empty further includes:
if the current attribution user number is not empty, attributing the current carbon emission reduction amount to the accumulated attribution carbon emission reduction amount;
judging whether the current attribution user number is consistent with the user identity number;
and if the current attribution user number is inconsistent with the user identity number, updating the value of the current attribution user number to the user identity number.
Optionally, the method further comprises:
and when a user binding instruction is received, attributing the non-attributive carbon emission reduction amount to the accumulated attributive carbon emission reduction amount.
Optionally, when the carbon emission reduction settlement instruction is received, the step of acquiring the card information, the carbon emission reduction information and the user information further includes:
carrying out path sorting processing on subway transactions in advance to obtain sub-path transaction information;
when a carbon emission reduction settlement instruction is received, the step of acquiring carbon emission reduction information comprises the following steps:
when a carbon emission reduction settlement instruction is received, acquiring current carbon emission reduction path information;
and carrying out transaction calculation according to the current carbon emission reduction path information and the sub-path transaction information to obtain the current carbon emission reduction amount.
The embodiment of the application also provides a data processing device, which comprises:
the information acquisition module is used for acquiring card information, carbon emission reduction information and user information when receiving a carbon emission reduction settlement instruction;
and the information attribution module is used for attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules.
The embodiment of the application also provides a terminal device, which comprises a memory, a processor and a data processing program stored on the memory and capable of running on the processor, wherein the data processing program realizes the steps of the data processing method when being executed by the processor.
The embodiments of the present application also propose a computer-readable storage medium, on which a data processing program is stored, which when executed by a processor implements the steps of the data processing method as described above.
According to the data processing method, the data processing device, the terminal equipment and the storage medium, when the carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are obtained; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. Each time a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to preset card and user classification rules; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
Drawings
FIG. 1 is a schematic diagram of functional modules of a terminal device to which a data processing apparatus of the present application belongs;
FIG. 2 is a flow chart of a first exemplary embodiment of a data processing method of the present application;
fig. 3 is a schematic flow chart of determining a card binding state according to the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The main solutions of the embodiments of the present application are: acquiring card information, carbon emission reduction information and user information when a carbon emission reduction settlement instruction is received; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. Each time a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to preset card and user classification rules; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
According to the embodiment of the application, the fact that the behavior of each public trip of the user can generate one traffic card or riding code transaction is considered, and the system can calculate the carbon emission reduction of each trip according to each bus and subway transaction of the user.
When the riding code is bound with the user, the carbon emission reduction calculated by the riding code transaction can be easily attributed to the user; however, most of traffic cards are non-namecards, basically are not bound with users, and cannot attribute the carbon emission reduction amount to the users under the condition of no binding. Therefore, when a user binds a traffic card newly, related transactions are needed to be found out from massive historical big data, the carbon emission reduction amount is calculated, and then the carbon emission reduction amount is attributed to the user, so that the efficiency is low.
Based on the above, the embodiment of the application provides a solution, when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to a preset card and user classification rule; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction.
Specifically, referring to fig. 1, fig. 1 is a schematic functional block diagram of a terminal device to which a data processing apparatus of the present application belongs. The data processing device may be a device independent of the terminal device and capable of performing data processing, or may be carried on the terminal device in a form of hardware or software.
In this embodiment, the terminal device to which the data processing apparatus belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and a data processing program, and when a carbon emission reduction accounting instruction is received, card information, carbon emission reduction information and user information are acquired and stored in the memory 130; the output module 110 may be a display screen, a speaker, etc. The communication module 140 may include a WIFI module, a mobile communication module, a bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.
Wherein the data processing program in the memory 130 when executed by the processor performs the steps of:
when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired;
and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
judging the card binding state;
if the card binding state is unbound, attributing the current carbon emission reduction amount to the card based on the card information;
and if the card binding state is bound, attributing the current carbon emission reduction amount to the user based on the user information.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
attributing the current carbon emission reduction amount to the non-attributive carbon emission reduction amount;
judging whether the current attribution user number is empty or not;
and if the current home subscriber number is not null, updating the value of the current home subscriber number to be null.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
judging whether the current attribution user number is empty or not;
and if the current attribution user number is empty, attributing the non-attribution carbon emission reduction quantity and the current carbon emission reduction quantity to the accumulated attribution carbon emission reduction quantity.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
if the current attribution user number is not empty, attributing the current carbon emission reduction amount to the accumulated attribution carbon emission reduction amount;
judging whether the current attribution user number is consistent with the user identity number;
and if the current attribution user number is inconsistent with the user identity number, updating the value of the current attribution user number to the user identity number.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
and when a user binding instruction is received, attributing the non-attributive carbon emission reduction amount to the accumulated attributive carbon emission reduction amount.
Further, the data processing program in the memory 130 when executed by the processor also implements the steps of:
carrying out path sorting processing on subway transactions in advance to obtain sub-path transaction information;
when a carbon emission reduction settlement instruction is received, the step of acquiring carbon emission reduction information comprises the following steps:
when a carbon emission reduction settlement instruction is received, acquiring current carbon emission reduction path information;
and carrying out transaction calculation according to the current carbon emission reduction path information and the sub-path transaction information to obtain the current carbon emission reduction amount.
According to the scheme, when the carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are obtained; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. Each time a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to preset card and user classification rules; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
Based on the above terminal device architecture, but not limited to the above architecture, the method embodiments of the present application are presented.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first exemplary embodiment of a data processing method of the present application.
An embodiment of the present invention provides a data processing method, including:
step S10, when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired;
the behavior of each public trip of the user can generate a traffic card or riding code transaction, and the system can calculate the carbon emission reduction of each trip according to each public trip of the user.
When the riding code is bound with the user, the carbon emission reduction calculated by the riding code transaction can be easily attributed to the user name; however, most of traffic cards are non-namecards, basically are not bound with users, and cannot attribute the carbon emission reduction amount to the users under the condition of no binding. Therefore, when a user binds a traffic card newly, related transactions are needed to be found out from massive historical big data, the carbon emission reduction amount is calculated, and then the carbon emission reduction amount is attributed to the user, so that the efficiency is low.
Therefore, this embodiment proposes that, when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then according to preset card and user classification rules, the carbon emission reduction information that can be attributed to a user is directly attributed to the user; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
It can be understood that, each time a carbon emission reduction settlement instruction is received, the system can immediately process according to the card, the carbon emission reduction information and the user information, so that timely data updating and attribution operation are realized.
For the carbon emission reduction information which is not directly attributed, the carbon emission reduction information is temporarily attributed to the card, so that the repeated searching of related transaction records from historical data and the recalculation of the carbon emission reduction amount can be avoided, and a large amount of time and resources are saved.
By associating carbon emission reduction information with the card that is temporarily unable to be directly attributed, data integrity is ensured. Once the user binds the card, the carbon emission reduction information which is temporarily belonged before can be seamlessly belonged to the account of the user, so that the problems of information loss or repeated calculation are avoided.
And meanwhile, the need of recalculating the carbon emission reduction amount in each settlement is avoided, and the calculation complexity and the resource consumption are reduced.
When the user binds the card, the carbon emission reduction information which is temporarily attributed before can be directly acquired, so that the satisfaction and participation of the user are enhanced.
Specifically, when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information can be obtained from a low-carbon public travel carbon emission reduction storage model established by a data processing method, wherein the carbon emission reduction storage model mainly comprises three parts:
the transaction emission reduction detail storage module can acquire carbon emission reduction information and also comprises information such as card numbers, transaction time, transaction types (buses and subways), bus types (cards and codes), carbon emission reduction, carbon components and the like, and the transaction emission reduction detail storage module stores the information according to a daily score table due to the large amount of detail data;
the card carbon account storage module can acquire card information and also comprises a card number, a current affiliated user number, accumulated carbon emission reduction, bus accumulated carbon emission reduction, subway accumulated carbon emission reduction, non-affiliated bus accumulated carbon emission reduction, non-affiliated subway accumulated carbon emission reduction, non-affiliated accumulated carbon integral and the like, and is stored according to two-digit sub-tables after the card number due to huge traffic card data volume;
the user carbon account storage module can acquire user information and further comprises a user identity number (user number), accumulated attributed carbon emission reduction amount, accumulated bus carbon emission reduction amount, accumulated subway carbon emission reduction amount, accumulated carbon points, accumulated converted emission reduction amount, accumulated converted carbon points and the like.
Specifically, when a carbon emission reduction accounting instruction is received, carbon emission reduction information, card information and user information may be acquired from the above three modules, respectively.
And step S20, attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules.
If the carbon emission reduction information is judged to be temporarily attributed to the card according to the card and the user classification rule, the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, so that a basis is provided.
If it is determined according to the rules that the carbon emission reduction information should be attributed directly to the user, the information is accumulated into the user's carbon emission reduction account.
Specifically, the carbon emission reduction information includes a current carbon emission reduction amount, the card information includes a card binding state, and the step of attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to a preset card and user attribution rule includes:
specifically, as shown in fig. 3, step S21, determining the card binding state;
step S22, if the card binding state is unbound, attributing the current carbon emission reduction amount to the card based on the card information;
and S23, if the card binding state is bound, attributing the current carbon emission reduction amount to the user based on the user information.
Specifically, the card and user affiliation rules may be to determine the current carbon reduction affiliation based on the binding status of the card.
And if the card binding state is unbound, temporarily attributing the current carbon emission reduction amount to the card.
And if the card binding state is bound, attributing the current carbon emission reduction amount to a user bound with the card.
Such an operational flow would determine the home object based on the binding state of the card. The unbound cards temporarily belong to the cards, and the bound cards directly belong to the users according to the bound user information. This procedure can simplify the attribution process and future statistics and settlement operations.
Further, the card information comprises a current attribution user number and a non-attribution carbon emission reduction amount;
step S22, if the card binding state is unbound, further includes, based on the card information, attributing the current carbon reduction amount to the card:
step S221, attributing the current carbon emission reduction amount to the non-attributive carbon emission reduction amount;
step S222, judging whether the current attribution user number is empty;
if the card binding state is unbound and the current user number is empty, the card is unbound or unbound, and the current carbon emission reduction is accumulated in the unbound state in advance, so that the card can be directly attributed without head calculation when being bound by the user later: the carbon emission reduction amount is accumulated into the non-attributive accumulated carbon emission reduction amount (non-attributive carbon emission reduction amount), the non-attributive public transportation accumulated carbon emission reduction amount (public transportation transaction), the non-attributive subway accumulated carbon emission reduction amount (subway transaction) and the non-attributive accumulated carbon integration.
Step S223, if the current home subscriber number is not null, updating the value of the current home subscriber number to be null.
If the card binding state is unbound and the current user number is not null, indicating that the card is unbound, accumulating the current carbon emission reduction amount into the un-attribution in advance, so that attribution can be directly completed when the card is bound by the user later without head calculation: updating the current user number of the card carbon account storage module to be empty, and accumulating the current carbon emission reduction amount into the non-attributive accumulated carbon emission reduction amount (non-attributive carbon emission reduction amount), the non-attributive public transportation accumulated carbon emission reduction amount (public transportation transaction), the non-attributive subway accumulated carbon emission reduction amount (subway transaction) and the non-attributive accumulated carbon integral.
Further, the user information includes accumulated attributed carbon emission reduction.
Step S23, if the card binding status is bound, the step of attributing the current carbon reduction amount to the user based on the user information further includes:
step S231, judging whether the current attribution user number is empty;
and step S232, if the current attribution user number is empty, attributing the non-attribution carbon emission reduction amount and the current carbon emission reduction amount to the accumulated attribution carbon emission reduction amount.
If the card binding state is bound and the current user number is empty, the card is changed from unbound to bound (possibly bound for the first time or bound again), and the unbound carbon emission reduction is required to be attributed to the user name and the current carbon emission reduction accumulation is completed: recording the current user number as the user number of the binding card number in a card carbon account storage module; recording and clearing the fields of 'non-attribution accumulated carbon emission reduction capacity', 'non-attribution public transportation accumulated carbon emission reduction capacity', 'non-attribution subway accumulated carbon emission reduction capacity', 'non-attribution accumulated carbon integration'; accumulating the recorded non-attributive accumulated carbon emission reduction amount and the current carbon emission reduction amount into accumulated attributive carbon emission reduction amount, public transportation accumulated carbon emission reduction amount, subway accumulated carbon emission reduction amount and accumulated carbon integration of a user carbon account storage module.
Further, step S23, if the card binding status is bound, further includes, based on the user information, after the step of attributing the current carbon reduction amount to the user:
step S233, if the current attribution user number is not empty, attributing the current carbon emission reduction amount to the accumulated attribution carbon emission reduction amount;
step S234, judging whether the current attribution user number is consistent with the user identity number;
if the card binding state is bound and the current user number is not empty and is consistent with the user identity number of the bound card number, the card is a card which is continuously bound by the user, and only the carbon emission reduction accumulation is finished: accumulating the carbon emission reduction amount into accumulated attributed carbon emission reduction amount, public transportation accumulated carbon emission reduction amount, subway accumulated carbon emission reduction amount and accumulated carbon integration of a user carbon account storage module.
Step S235, if the current home subscriber number is inconsistent with the subscriber identity number, updating the value of the current home subscriber number to the subscriber identity number.
If the card binding state is bound, the current user number is not empty and is inconsistent with the user number of the bound card number, the original user binding the card is already unbinding the card, and the card is bound by a new user, and the carbon emission reduction is required to be accumulated on the new user name: updating the current user number in the card carbon account storage module into a new user identity number binding the card number; accumulating the current carbon emission reduction amount to a new user name: and accumulating the accumulated attributed carbon emission reduction amount, the accumulated public transportation carbon emission reduction amount, the accumulated subway carbon emission reduction amount and the accumulated carbon integral of the user carbon account storage module.
According to the data processing method, when the carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are obtained; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. Each time a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to preset card and user classification rules; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
Based on the first embodiment, a second embodiment of the present application is presented, which differs from the first embodiment in that:
and step S30, attributing the non-attribution carbon emission reduction amount to the accumulated attribution carbon emission reduction amount when receiving a user binding instruction.
Receiving a user binding instruction: when the system receives a user binding instruction, it means that the user is binding the card.
The previous non-attributed carbon reduction amounts are added to the accumulated attributed carbon reduction amounts, i.e., the carbon reduction amounts that were temporarily attributed to the card before are now attributed to the user's account.
This step formally attributing to the user, at the time of user binding, the carbon reduction emissions that were temporarily attributed to the card before. The method can ensure that the prior carbon emission reduction information is not lost after the user is bound and is correctly counted into the account of the user, thereby avoiding the finding out and calculating the carbon emission reduction of related transactions from massive historical big data and improving the attribution efficiency of the carbon emission reduction.
According to the data processing method, when the user binding instruction is received, the non-attributive carbon emission reduction amount is attributed to the accumulated attributive carbon emission reduction amount, and the carbon emission reduction amount temporarily attributed to the card before is formally attributed to the user. The method can ensure that the prior carbon emission reduction information is not lost after the user is bound and is correctly counted into the account of the user, thereby avoiding the finding out and calculating the carbon emission reduction of related transactions from massive historical big data and improving the attribution efficiency of the carbon emission reduction.
Based on the first embodiment, a third embodiment of the present application is presented, which differs from the first embodiment in that:
in step S10, when the carbon emission reduction accounting command is received, the card information, the carbon emission reduction information, and the user information are supplemented before the step of obtaining the carbon emission reduction information, where the supplementing step may include:
in this embodiment, step S10, when receiving the carbon emission reduction accounting instruction, further includes, before the step of obtaining the card information, the carbon emission reduction information, and the user information:
step S00, carrying out path sorting processing on subway transactions in advance to obtain sub-path transaction information;
when a carbon emission reduction settlement instruction is received, the step of acquiring carbon emission reduction information comprises the following steps:
step S101, when a carbon emission reduction settlement instruction is received, acquiring current carbon emission reduction path information;
and step S102, carrying out transaction calculation according to the current carbon emission reduction path information and the sub-path transaction information to obtain the current carbon emission reduction amount.
The subway transaction is subjected to path clearing processing in advance, one travel path is split into a plurality of sub paths, so that in the process of calculating the carbon emission reduction amount for the subway transaction, the subway transaction does not need to be split and then calculated, and the efficiency of calculating the carbon emission reduction amount of the subway travel can be improved.
Specifically, for subway transactions, path sorting processing is performed, transaction data are classified according to different paths or sub-paths, and carbon emission reduction information of each path with the smallest granularity, namely sub-path transaction information, is obtained possibly according to information of a transaction route, a vehicle number, a station and the like.
When the system receives the carbon emission reduction amount settlement instruction, the current carbon emission reduction amount is calculated according to the sub-path transaction information and the current carbon emission reduction path information which are obtained before. And when the secondary carbon emission reduction path information is the secondary traffic transaction path information, combining the carbon emission reduction information (sub-path transaction information) of the path with the smallest granularity and split by budget, and calculating to obtain the secondary carbon emission reduction.
The method for carrying out path sorting processing on subway transactions in advance to obtain sub-path transaction information can be used for more accurately knowing carbon emission reduction contributions of different paths or sub-paths. For example, different subway lines or different train numbers may have different energy consumption conditions, and such analysis may help the system to better perform carbon emission reduction settlement.
According to the data processing method provided by the embodiment of the application, the sub-path transaction information is obtained by carrying out path clearing processing on subway transactions in advance; when a carbon emission reduction settlement instruction is received, the step of acquiring carbon emission reduction information comprises the following steps: when a carbon emission reduction settlement instruction is received, acquiring current carbon emission reduction path information; and carrying out transaction calculation according to the current carbon emission reduction path information and the sub-path transaction information to obtain the current carbon emission reduction amount, and improving the efficiency of subway travel carbon emission reduction calculation without splitting and then calculating for each subway transaction.
In addition, an embodiment of the present application further provides a data processing apparatus, where the data processing apparatus includes:
the information acquisition module is used for acquiring card information, carbon emission reduction information and user information when receiving a carbon emission reduction settlement instruction;
and the information attribution module is used for attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules.
The principle and implementation process of data processing are implemented in this embodiment, please refer to the above embodiments, and are not repeated here.
In addition, the embodiment of the application also provides a terminal device, which comprises a memory, a processor and a data processing program stored on the memory and capable of running on the processor, wherein the data processing program realizes the steps of the data processing method when being executed by the processor.
Because the data processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the data processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Furthermore, the embodiments of the present application also propose a computer-readable storage medium, on which a data processing program is stored, which when executed by a processor implements the steps of the data processing method as described above.
Because the data processing program is executed by the processor and adopts all the technical schemes of all the embodiments, the data processing program at least has all the beneficial effects brought by all the technical schemes of all the embodiments and is not described in detail herein.
Compared with the prior art, the data processing method, the device, the terminal equipment and the storage medium provided by the embodiment of the application acquire card information, carbon emission reduction information and user information when receiving the carbon emission reduction settlement instruction; and attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules. Each time a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired, and then the carbon emission reduction information which can be attributed to a user is directly attributed to the user according to preset card and user classification rules; or the carbon emission reduction information which cannot be directly attributed to the user is temporarily attributed to the card, so that the carbon emission reduction information in the card can be directly attributed to the carbon emission reduction information of the user when the user binds the card in the future, thereby avoiding finding out related transactions from massive historical big data and calculating the carbon emission reduction, and improving the carbon emission reduction attribution efficiency.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (8)

1. A data processing method, characterized in that the data processing method comprises:
when a carbon emission reduction settlement instruction is received, card information, carbon emission reduction information and user information are acquired;
based on the card information and the user information, attributing the carbon emission reduction information to the card or the user according to preset card and user attribution rules;
the carbon emission reduction information comprises the carbon emission reduction amount when the carbon emission reduction amount is reduced, the card information comprises a card binding state, and the step of attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to a preset card and user attribution rule comprises the following steps:
judging the card binding state;
if the card binding state is unbound, attributing the current carbon emission reduction amount to the card based on the card information;
if the card binding state is bound, attributing the current carbon emission reduction amount to the user based on the user information;
the card information further comprises a current attribution user number and an unconnected carbon emission reduction amount, and if the card binding state is unconjugated, the step of attributing the current carbon emission reduction amount to the card based on the card information further comprises the following steps:
attributing the current carbon emission reduction amount to the non-attributive carbon emission reduction amount;
judging whether the current attribution user number is empty or not;
and if the current home subscriber number is not null, updating the value of the current home subscriber number to be null.
2. The data processing method according to claim 1, wherein the user information includes accumulated attributed carbon emission reduction, and the step of attributing the current carbon emission reduction to the user based on the user information if the card binding status is bound further includes:
judging whether the current attribution user number is empty or not;
and if the current attribution user number is empty, attributing the non-attribution carbon emission reduction quantity and the current carbon emission reduction quantity to the accumulated attribution carbon emission reduction quantity.
3. The data processing method according to claim 2, wherein the user information includes a user identification number, and the step of determining whether the current home subscriber number is empty further includes, after the step of determining:
if the current attribution user number is not empty, attributing the current carbon emission reduction amount to the accumulated attribution carbon emission reduction amount;
judging whether the current attribution user number is consistent with the user identity number;
and if the current attribution user number is inconsistent with the user identity number, updating the value of the current attribution user number to be the user identity number.
4. The data processing method according to claim 2, characterized in that the method further comprises:
and when a user binding instruction is received, attributing the non-attributive carbon emission reduction amount to the accumulated attributive carbon emission reduction amount.
5. The data processing method according to claim 1, wherein the step of acquiring the card information, the carbon emission reduction information, and the user information when the carbon emission reduction settlement instruction is received further comprises, before:
carrying out path sorting processing on subway transactions in advance to obtain sub-path transaction information;
when a carbon emission reduction settlement instruction is received, the step of acquiring carbon emission reduction information comprises the following steps:
when a carbon emission reduction settlement instruction is received, acquiring current carbon emission reduction path information;
and carrying out transaction calculation according to the current carbon emission reduction path information and the sub-path transaction information to obtain the current carbon emission reduction amount.
6. A data processing apparatus, characterized in that the data processing apparatus comprises:
the information acquisition module is used for acquiring card information, carbon emission reduction information and user information when receiving a carbon emission reduction settlement instruction;
the information attribution module is used for attributing the carbon emission reduction information to the card or the user based on the card information and the user information according to preset card and user attribution rules, wherein the carbon emission reduction information comprises current carbon emission reduction amount, the card information comprises a card binding state, and the card information also comprises current attribution user numbers and non-attribution carbon emission reduction amounts;
the information attribution module is also used for judging the card binding state;
if the card binding state is unbound, attributing the current carbon emission reduction amount to the card based on the card information;
if the card binding state is bound, attributing the current carbon emission reduction amount to the user based on the user information;
the information attribution module is further used for attributing the current carbon emission reduction amount to the non-attribution carbon emission reduction amount;
judging whether the current attribution user number is empty or not;
if the current attribution user number is not null, updating the value of the current attribution user number to be null;
the information attribution module is further used for judging whether the current attribution user number is empty.
7. A terminal device, characterized in that it comprises a memory, a processor and a data processing program stored on the memory and executable on the processor, which data processing program, when executed by the processor, realizes the steps of the data processing method according to any of claims 1-5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a data processing program which, when executed by a processor, implements the steps of the data processing method according to any of claims 1-5.
CN202311217616.XA 2023-09-20 2023-09-20 Data processing method, device, terminal equipment and storage medium Active CN116957888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311217616.XA CN116957888B (en) 2023-09-20 2023-09-20 Data processing method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311217616.XA CN116957888B (en) 2023-09-20 2023-09-20 Data processing method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116957888A CN116957888A (en) 2023-10-27
CN116957888B true CN116957888B (en) 2024-01-02

Family

ID=88458713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311217616.XA Active CN116957888B (en) 2023-09-20 2023-09-20 Data processing method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116957888B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110071734A (en) * 2009-12-21 2011-06-29 성균관대학교산학협력단 System and method for calculating carbon emission reduction using traffic card usage information
CN111340545A (en) * 2020-02-25 2020-06-26 百度在线网络技术(北京)有限公司 Block chain-based carbon transaction implementation method, device, equipment and medium
KR102202420B1 (en) * 2020-10-13 2021-01-12 김일환 Carbon emissions transaction system using public transportation data and gps data
KR102396531B1 (en) * 2021-12-31 2022-05-12 에이티알 주식회사 Algorithm System Operation Method of Green House Gas Emission Information for Personal Passenger in Transportation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102489494B1 (en) * 2021-04-26 2023-01-18 정내권 A platform and calculation method that calculates the contribution due to carbon emission generation using a blockchain and calculates the payment, contribution, investment, and profit situation for the contribution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110071734A (en) * 2009-12-21 2011-06-29 성균관대학교산학협력단 System and method for calculating carbon emission reduction using traffic card usage information
CN111340545A (en) * 2020-02-25 2020-06-26 百度在线网络技术(北京)有限公司 Block chain-based carbon transaction implementation method, device, equipment and medium
KR102202420B1 (en) * 2020-10-13 2021-01-12 김일환 Carbon emissions transaction system using public transportation data and gps data
KR102396531B1 (en) * 2021-12-31 2022-05-12 에이티알 주식회사 Algorithm System Operation Method of Green House Gas Emission Information for Personal Passenger in Transportation

Also Published As

Publication number Publication date
CN116957888A (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN108520434B (en) Data processing method and device
CN103854472B (en) Taxi cloud intelligent dispatching method and system
CN110222893B (en) Method and device for recommending delivery places of shared traffic resources and electronic equipment
CN104346921A (en) Location information-based taxi information communication service system, terminal and method
CN106997577A (en) A kind of order strategy dynamic adjusting method and device
CN105117790A (en) Fare estimating method and apparatus
CN101557582B (en) Method and device for mobile communication user information statistics
CN112801740A (en) Energy site recommendation method based on user preference, storage medium and electronic equipment
CN108389074A (en) A kind of data processing method and relevant device based on Car license recognition
CN111275418A (en) Car rental management method and related equipment
CN116957888B (en) Data processing method, device, terminal equipment and storage medium
JP2022508433A (en) Attendance evaluation method for tunnel construction vehicles, computer equipment and computer-readable storage media
CN104318433A (en) Automatic recharging method and system of citizen card
CN112465384A (en) Transportation capacity scheduling method and device, computer equipment and computer readable storage medium
CN116415747A (en) Method and device for determining carpooling route and electronic equipment
CN111327661A (en) Pushing method, pushing device, server and computer readable storage medium
CN112446508A (en) Method and device for recovering package in logistics transportation, storage medium and electronic equipment
CN110175181B (en) Information updating method based on data analysis and related equipment
CN112669123A (en) Order management method and device for vehicle owner platform
CN107346457B (en) Bus route grading method, method and device for planning travel route
CN111724002B (en) Method for predicting bus to be taken by user and reminding arrival information based on kNN
CN115208831B (en) Request processing method, device, equipment and storage medium
CN113516841B (en) Vehicle scheduling method and device
CN113411761B (en) Call bill charging method and system
CN112752252B (en) Cell home location identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant