Disclosure of Invention
The embodiment of the invention provides a data processing method and device based on a multi-party green electricity polymerization transaction system, which can be used for carrying out structural carding and presentation on user data and transaction data in a multi-party transaction process, can be combined with different users to obtain different target data, and can be used for encrypting the target data at the same time, so that the safety of the multi-party data is improved.
In a first aspect of the embodiment of the present invention, a data processing method based on a multi-party green electricity polymerization transaction system is provided, including:
the method comprises the steps that a server receives multiparty distributed power supply data transmitted by any multiparty green electricity aggregators, wherein the multiparty distributed power supply data comprises a plurality of green electricity separators and distributed power supply information corresponding to each green electricity separator;
generating primary nodes corresponding to the multi-party green electric aggregators, generating secondary nodes corresponding to each green electric separator, generating tertiary nodes corresponding to each distributed power supply information, and generating a first structural tree unit according to the primary nodes, the secondary nodes and the tertiary nodes;
acquiring green electricity selling data corresponding to the current moment of a multiparty green electricity aggregator, wherein the green electricity selling data comprises distributed power supply information corresponding to green electricity purchased by each green electricity purchaser;
Generating a fourth-level node corresponding to the green electricity purchasers, connecting the fourth-level node with a third-level node corresponding to the distributed power supply information of the purchased green electricity to generate a second structure tree unit, and generating a fusion structure tree according to the first structure tree unit and the second structure tree unit;
after judging that the display requests respectively sent by the terminals corresponding to the green electric aggregator, the green electric separator and the green electric buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction strategy and feeds the extracted and encrypted target display data back to the corresponding terminal.
Optionally, in one possible implementation manner of the first aspect, the generating a primary node corresponding to the multiparty green electric aggregator, generating a secondary node corresponding to each green electric separator, generating a tertiary node corresponding to each distributed power information, and generating a first structural tree unit according to the primary node, the secondary node and the tertiary node includes:
generating secondary nodes corresponding to each green electricity separator according to the number of the green electricity separators, and counting all distributed power supply information of all the green electricity separators to generate corresponding tertiary nodes;
The first-level nodes are arranged in the center of the first node layer, all the second-level nodes are arranged in the second node layer in a discrete mode, and all the third-level nodes are arranged in the third node layer at the same distance;
and acquiring a first quantity of distributed power supply information corresponding to each green electricity separator, sequencing all the green electricity separators according to the first quantity to obtain a separator sequence, determining the corresponding relation between all the green electricity separators and the secondary nodes based on the separator sequence, and generating a first structural tree unit.
Optionally, in one possible implementation manner of the first aspect, the obtaining a first number of distributed power information corresponding to each green electric separator, sorting all green electric separators according to the first number to obtain a separator sequence, determining correspondence between all green electric separators and secondary nodes based on the separator sequence, and generating a first structural tree unit includes:
sequentially determining secondary nodes corresponding to each green electric separator based on the separator sequence, and dividing adjacent tertiary nodes in a third node layer according to the first number corresponding to each green electric separator to obtain a plurality of node division areas;
Generating structure frames corresponding to different node division areas, and sequentially connecting the secondary nodes with the corresponding structure frames according to the corresponding sequence of the secondary nodes in the separator sequence to obtain the corresponding relation between each green electricity separator and the secondary nodes;
and connecting all the secondary nodes with the primary nodes respectively, determining the middle point of the upper frame line of the structural frame and the vertical line of the middle point, arranging each secondary node at the vertical line of the corresponding structural frame, connecting the secondary nodes with the middle point of the upper frame line, and generating a first structural tree unit according to the connection relation of the primary nodes, the secondary nodes and the structural frame.
Optionally, in one possible implementation manner of the first aspect, the generating a fourth-level node corresponding to the green electricity buyer, connecting the fourth-level node with distributed power supply information corresponding to the purchased green electricity to generate a second structural tree unit includes:
generating four-level nodes corresponding to each green electricity purchaser according to the number of the green electricity purchasers, and determining three-level nodes corresponding to distributed power supply information of green electricity purchased by each four-level node;
and connecting each four-level node with a corresponding three-level node, and generating a second structural tree unit according to the connection relation of the four-level node and the three-level node.
Optionally, in one possible implementation manner of the first aspect, after determining that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction policy, and feeds back the extracted and encrypted target display data to the corresponding terminal, where the method includes:
the server invokes a first preset encryption strategy corresponding to a corresponding terminal after judging that a display request sent by the terminal corresponding to the green electricity aggregator is received;
counting the distributed power supply information of all three-level nodes connected with the four-level nodes to obtain the total information of the current produced electric energy, and counting the distributed power supply information of all three-level nodes not connected with the four-level nodes to obtain the total information of the current producible electric energy;
a fusion structure tree corresponding to the display request authority of the green electricity aggregator is fetched, and target display data is generated based on the fusion structure tree, the current total information of the produced electric energy and the current total information of the producible electric energy;
and extracting node information of the fusion structure tree based on the first preset encryption strategy to generate a first encryption key, encrypting the target display data according to the first encryption key, and feeding back to the corresponding terminal.
Optionally, in one possible implementation manner of the first aspect, the extracting node information of the fusion structure tree based on the first preset encryption policy to generate a first encryption key, encrypting the target display data according to the first encryption key, and feeding back the encrypted target display data to the corresponding terminal includes:
numbering the secondary nodes, the tertiary nodes and the quaternary nodes in the fusion structure tree according to the sequence;
extracting all three-level nodes in a structure frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to the numbers of all three-level nodes in the first node set, and combining the numbers of the corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence;
extracting all three-level nodes connected with the same four-level node to obtain a second node set, obtaining a second number sequence according to the numbers of all three-level nodes in the second node set, and combining the numbers of the corresponding four-level nodes with the second number sequence to obtain a second fusion number sequence;
and determining preset characters of the aggregator corresponding to the green electric aggregator, sequencing the preset characters of the aggregator, the first fusion number sequence and the second fusion number sequence to obtain fusion characters, and carrying out hash calculation on the fusion characters to obtain a first encryption key.
Optionally, in one possible implementation manner of the first aspect, after determining that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction policy, and feeds back the extracted and encrypted target display data to the corresponding terminal, where the method includes:
the server invokes a second preset encryption strategy corresponding to the corresponding terminal after judging that the display request sent by the terminal corresponding to the green electricity separator is received;
determining a secondary node corresponding to the green electricity separator and all tertiary nodes in a structural frame connected with the secondary node, and forming a separator substructure tree according to the secondary node corresponding to the green electricity separator sending the display request and all tertiary nodes in the structural frame;
counting distributed power supply information corresponding to all three-level nodes to obtain electricity production information of a separator;
generating target display data based on the separator substructure tree and the separator electric energy production information, extracting node information of the first structure tree unit based on the second preset encryption strategy to generate a second encryption key, encrypting the target display data according to the second encryption key, and feeding back to the corresponding terminal.
Optionally, in one possible implementation manner of the first aspect, the generating the target display data based on the separator substructure tree and the separator power generation information, extracting node information of the first structure tree unit based on the second preset encryption policy, generating a second encryption key, encrypting the target display data according to the second encryption key, and feeding back to the corresponding terminal includes:
numbering the secondary nodes and the tertiary nodes in the fusion structure tree according to the sequence;
extracting all three-level nodes in a structure frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to the numbers of all three-level nodes in the first node set, and combining the numbers of the corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence;
arranging a first fusion number sequence corresponding to the green electric separator sending the display request at the front part of other first fusion number sequences;
and determining a separator preset character corresponding to the green electric separator, sequencing the separator preset character and the first fusion number sequence to obtain a fusion character, and carrying out hash calculation on the fusion character to obtain a second encryption key.
Optionally, in one possible implementation manner of the first aspect, after determining that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction policy, and feeds back the extracted and encrypted target display data to the corresponding terminal, where the method includes:
the server invokes a third preset encryption strategy corresponding to the corresponding terminal after judging that the display request sent by the terminal corresponding to the green electricity purchaser is received;
determining a fourth-level node corresponding to the green electricity purchasers and all third-level nodes connected with the fourth-level node, and forming a purchaser substructure tree according to the fourth-level node and the third-level node corresponding to the green electricity purchasers sending the display request;
counting distributed power supply information corresponding to all three-level nodes to obtain electric energy production information of a purchaser;
generating target display data based on the purchaser substructure tree and the purchaser electric energy production information, extracting node information of a second structure tree unit based on the third preset encryption strategy to generate a third encryption key, encrypting the target display data according to the third encryption key, and feeding back to the corresponding terminal.
Optionally, in one possible implementation manner of the first aspect, the generating target display data based on the buyer substructure tree and the buyer power production information, extracting node information of the second structure tree unit based on the third preset encryption policy, generating a third encryption key, encrypting the target display data according to the third encryption key, and feeding back to the corresponding terminal includes:
numbering three-level nodes and four-level nodes in the fusion structure tree respectively according to the sequence;
extracting all three-level nodes connected with each four-level node to obtain a second node set, obtaining a second number sequence according to the numbers of all three-level nodes in the second node set, and combining the numbers of the corresponding four-level nodes with the second number sequence to obtain a second fusion number sequence;
arranging a second fusion number sequence corresponding to the green electric separator sending the display request at the rear part of other second fusion number sequences;
and determining a preset character of the purchaser corresponding to the green electricity purchaser, sequencing the preset character of the purchaser and the second fusion number sequence to obtain a fusion character, and carrying out hash calculation on the fusion character to obtain a third encryption key.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
respectively counting target display data corresponding to the multiparty green electric aggregator, the green electric separator and the green electric buyer, which correspond to each fusion structure tree, so as to obtain the data quantity of the aggregations, the data quantity of the separators and the data quantity of the buyers;
counting the data quantity of each target display data to obtain an aggregate quotient data quantity value, a separator quotient data quantity value and a purchasing quotient data quantity value;
calculating according to the quantity of the aggregation quotient data, the quantity of the separation quotient data and the quantity of the purchase quotient data to obtain a quantity value heat coefficient of a corresponding fusion structure tree;
calculating according to the aggregate quotient data magnitude value, the separator quotient data magnitude value and the purchasing quotient data magnitude value to obtain a data quantity heat coefficient of the corresponding fusion structure tree;
and comprehensively calculating according to the number value heat coefficient and the data heat coefficient to obtain a total heat coefficient of the corresponding fusion structure tree, and sequencing and storing the fusion structure tree according to the total heat coefficient to obtain a structure tree sequence.
In a second aspect of the embodiment of the present invention, there is provided a data processing apparatus based on a multi-party green electricity polymerization transaction system, including:
The receiving module is used for receiving multiparty distributed power supply data transmitted by any multiparty green electricity aggregator, wherein the multiparty distributed power supply data comprises a plurality of green electricity separators and distributed power supply information corresponding to each green electricity separator;
the structure module is used for generating primary nodes corresponding to the multi-party green electric aggregators, generating secondary nodes corresponding to each green electric separator, generating tertiary nodes corresponding to each distributed power supply information, and generating a first structure tree unit according to the primary nodes, the secondary nodes and the tertiary nodes;
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring green electricity selling data corresponding to the current moment of a multiparty green electricity aggregator, and the green electricity selling data comprises green electricity purchasers and distributed power supply information corresponding to green electricity purchased by each green electricity purchaser;
the fusion module is used for generating a quaternary node corresponding to the green electricity purchasers, connecting the quaternary node with a tertiary node corresponding to the distributed power supply information of the purchased green electricity to generate a second structure tree unit, and generating a fusion structure tree according to the first structure tree unit and the second structure tree unit;
and the feedback module is used for extracting and encrypting the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction strategy after the server judges that the display requests respectively sent by the terminals corresponding to the green electric aggregator, the green electric separator and the green electric buyer are received, and feeding the target display data back to the corresponding terminal.
Advantageous effects
1. According to the scheme, multistage nodes are obtained through relationships among the aggregators, the separators and the purchasers, different nodes are utilized to respectively generate a first structural tree unit and a second structural tree unit, and finally a fusion structural tree is obtained, so that structured carding and presentation of user data and transaction data in a multiparty transaction process are realized. Meanwhile, when the data are displayed, the data can be screened and displayed by combining different attributes of different nodes, and meanwhile, different encryption strategies are adopted to encrypt the data.
2. In the scheme, in the process of carrying out structural carding and presentation on user data and transaction data in the multiparty transaction process, corresponding nodes are constructed aiming at different users, and then corresponding structural tree units are generated by utilizing the nodes. In the process of generating the first structural tree unit, the scheme can position the first-stage nodes and the three-stage nodes with more numbers, then position the second-stage nodes by utilizing the vertical lines corresponding to the midpoints of the upper frame lines of the structural frames, so that the positions of the second-stage nodes are moderate, meanwhile, each four-stage node is connected with the corresponding three-stage node, a second structural tree unit is generated according to the connection relation of the four-stage nodes and the three-stage nodes, and finally a fusion structural tree is obtained to display data. In addition, in order to carry out privacy processing on the data, the scheme can be combined with different users to call different data for display, so that the users cannot see the data of other users. In addition, the scheme also calculates the heat degree of the fusion structure tree by combining the number dimension and the data volume dimension, and the fusion structure tree is ordered by combining the heat degree, so that the higher ordering of the heat degree is forward, and the efficiency of the user in traversing the fusion structure tree can be improved.
3. According to the scheme, the target display data of the aggregators are encrypted by adopting a first preset encryption strategy, the target display data of the separators are encrypted by adopting a second preset encryption strategy, the target display data of the purchasers are encrypted by adopting a third preset encryption strategy, different modes of encryption processing are carried out by combining different target display data in the encryption process, and the encryption keys corresponding to the green electricity aggregators, the separators and the purchasers are realized by using the irregular ordering of the numbers of the nodes, so that the dynamic encryption of the data is realized.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein.
It should be understood that, in various embodiments of the present invention, the sequence number of each process does not mean that the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present invention, "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements that are expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "plurality" means two or more. "and/or" is merely an association relationship describing an association object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. "comprising A, B and C", "comprising A, B, C" means that all three of A, B, C comprise, "comprising A, B or C" means that one of the three comprises A, B, C, and "comprising A, B and/or C" means that any 1 or any 2 or 3 of the three comprises A, B, C.
It should be understood that in the present invention, "B corresponding to a", "a corresponding to B", or "B corresponding to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information. The matching of A and B is that the similarity of A and B is larger than or equal to a preset threshold value.
As used herein, "if" may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to detection" depending on the context.
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Firstly, the scene of the scheme is explained, in order to conduct aggregate transaction on a plurality of users producing green electricity, a green electricity aggregator exists, the green electricity aggregator can collect a plurality of green electricity separators, then the green electricity collecting transaction is realized, and the scheme is designed for processing data in the green electricity collecting transaction, and the scheme is specifically explained below.
Referring to fig. 1, a flow chart of a data processing method based on a multi-party green electricity polymerization transaction system according to an embodiment of the present invention includes S1-S5:
s1, a server receives multiparty distributed power supply data transmitted by any multiparty green electricity aggregator, wherein the multiparty distributed power supply data comprises a plurality of green electricity separators and distributed power supply information corresponding to each green electricity separator.
The server of the scheme can receive the multiparty distributed power data transmitted by any multiparty green electric aggregator in real time.
It can be appreciated that, since the green electricity aggregator gathers the power data for a plurality of green electricity separators, the multiparty distributed power data includes a plurality of green electricity separators and distributed power information corresponding to each green electricity separator.
The distributed power information may be green electricity generated by each green electricity separator by using wind power generation equipment, hydroelectric power generation equipment, solar power generation equipment and the like.
S2, generating a first-level node corresponding to the multiparty green electricity aggregator, generating a second-level node corresponding to each green electricity separator, generating a third-level node corresponding to each distributed power supply information, and generating a first structural tree unit according to the first-level node, the second-level node and the third-level node.
First, a first-level node corresponding to the multiparty green electric aggregator is generated, then a second-level node corresponding to each green electric separator is generated, then a third-level node corresponding to each distributed power supply information is generated, and finally the scheme generates a first structural tree unit by using the first-level node, the second-level node and the third-level node.
The scheme can obtain corresponding first structural tree units by utilizing the multi-level data, so that the multi-level data is displayed by utilizing the first structural tree units.
In some embodiments, S2 (generating a primary node corresponding to the multiparty green electric aggregator, generating a secondary node corresponding to each green electric separator, generating a tertiary node corresponding to each distributed power supply information, generating a first structural tree unit from the primary node, the secondary node, and the tertiary node) comprises S21-S23:
And S21, generating secondary nodes corresponding to each green electric separator according to the number of the green electric separators, and counting all distributed power supply information of all the green electric separators to generate corresponding tertiary nodes.
Because the secondary nodes correspond to the green electric separators, the secondary nodes corresponding to each green electric separator can be generated by using the number of the green electric separators, and after the construction of the secondary nodes is completed, the scheme can count all distributed power supply information of all the green electric separators to generate corresponding tertiary nodes.
It can be understood that the green electricity data corresponding to each green electricity separator can be clearly displayed through the construction of the secondary node and the tertiary node.
S22, arranging the primary nodes at the center of the first node layer, discretely arranging all the secondary nodes at the second node layer, and arranging all the tertiary nodes at the same distance in the third node layer.
After the primary node, the secondary node and the tertiary node are obtained, the scheme can locate the positions of the primary node, the secondary node and the tertiary node, so that the whole first structural tree units are orderly arranged.
It should be noted that, since the number of power generation devices corresponding to different green electric separators is often different, the number of distributed power information corresponding to the power generation devices is also different, so that three-level nodes corresponding to different green electric separators are also often different.
In order to enable the primary nodes, the secondary nodes and the tertiary nodes to be distributed more uniformly, the primary nodes are arranged in the center of the first node layer, all the secondary nodes are arranged in the second node layer in a discrete mode, and all the tertiary nodes are arranged in the third node layer at the same distance.
It can be understood that, by the above manner, the positions of the primary node and the tertiary node are located, and at this time, the secondary node has not yet been located, and the locating manner is referred to step S23.
S23, obtaining first quantity of distributed power supply information corresponding to each green electricity separator, sequencing all the green electricity separators according to the first quantity to obtain a separator sequence, determining corresponding relations between all the green electricity separators and secondary nodes based on the separator sequence, and generating a first structural tree unit.
In order to locate the secondary node, the scheme obtains a first quantity of distributed power supply information corresponding to each green electricity separator, then sequences all green electricity separators by using the first quantity to obtain a separator sequence, and determines the corresponding relation between all green electricity separators and the secondary node based on the separator sequence to generate a first structural tree unit, see below.
In some embodiments, S23 (obtaining a first number of distributed power supply information corresponding to each green electric separator, sorting all green electric separators according to the first number to obtain a separator sequence, determining correspondence between all green electric separators and secondary nodes based on the separator sequence, and generating a first structural tree unit) includes S231-S233:
s231, determining the secondary nodes corresponding to the green electric separators in sequence based on the separator sequences, and dividing the adjacent tertiary nodes in the third node layer according to the first quantity corresponding to each green electric separator to obtain a plurality of node division areas.
Firstly, the scheme sequentially determines the secondary nodes corresponding to each green electric separator by using a separator sequence, for example, 10 green electric separators exist in the separator sequence, and then 10 secondary nodes are corresponding.
After the secondary nodes of the green electric separators are determined, the scheme divides adjacent tertiary nodes in the third node layer according to the first quantity corresponding to each green electric separator to obtain a plurality of node division areas.
For example, the green electric separator a has 8 pieces of distributed power information, and the corresponding three-level nodes also have 8 pieces, so that the scheme divides the corresponding 8 adjacent three-level nodes to obtain a node division area. Through the mode, the multiple node division areas can be obtained. For example, 10 node division areas corresponding to 10 green electric separators can be obtained.
S232, generating structure frames corresponding to different node division areas, and sequentially connecting the secondary nodes with the corresponding structure frames according to the corresponding sequence of the secondary nodes in the separator sequence to obtain the corresponding relation between each green electricity separator and the secondary nodes.
The method can obtain the structure frames corresponding to different node dividing areas, and the structure frames are utilized to frame the nodes in the node dividing areas.
And then, sequentially connecting the secondary nodes with corresponding structure frames by utilizing the corresponding sequence of the secondary nodes in the separator sequence, so as to obtain the corresponding relation between each green electric separator and the secondary nodes.
It can be understood that by the above manner, the positional relationship between the secondary node and the tertiary node can be obtained, so that the distributed power information corresponding to each green electricity separator can be obtained.
S233, connecting all the secondary nodes with the primary nodes respectively, determining the middle point of the upper frame line of the structural frame and the vertical line of the middle point, setting each secondary node at the vertical line of the corresponding structural frame, connecting the secondary nodes with the middle point of the upper frame line, and generating a first structural tree unit according to the connection relation of the primary nodes, the secondary nodes and the structural frame.
The positional relationship between the secondary node and the tertiary node can be obtained through step S232, however, the position location of the secondary node is not yet achieved in the present solution.
In order to achieve the positioning of the secondary node in a relatively balanced manner, the scheme determines the midpoint of the upper frame line of the structural frame and the vertical line of the midpoint, and it is understood that the midpoint of the upper frame line of the structural frame can represent the center position of the tertiary node corresponding to a green electric separator, that is, the secondary node can be positioned to the middle position of the corresponding tertiary node through the midpoint, so that the positioning of the positions of the secondary node and the tertiary node is achieved.
It should be noted that in this scheme, each secondary node is located at a vertical line of the corresponding structural frame, and the secondary node is connected to a midpoint of the upper frame line. Finally, the scheme can generate a first structural tree unit by utilizing the connection relation of the primary node, the secondary node and the structural frame.
And S3, acquiring green electricity selling data corresponding to the current moment of the multiparty green electricity aggregator, wherein the green electricity selling data comprises green electricity purchasers and distributed power supply information corresponding to green electricity purchased by each green electricity purchaser.
It can be understood that when green electricity is needed by a green electricity purchaser, green electricity purchasing can be performed to the green electricity aggregator, and green electricity selling data corresponding to the current time of multiple green electricity aggregators can be collected in real time, wherein the green electricity selling data comprises the green electricity purchasers and distributed power supply information corresponding to the green electricity purchased by each green electricity purchaser.
And S4, generating a four-level node corresponding to the green electricity purchasers, connecting the four-level node with a three-level node corresponding to the distributed power supply information of the purchased green electricity to generate a second structural tree unit, and generating a fusion structural tree according to the first structural tree unit and the second structural tree unit.
The scheme can generate four-level nodes corresponding to green electricity purchasers, the four-level nodes are connected with three-level nodes corresponding to distributed power supply information of purchased green electricity to generate a second structural tree unit, and then a fusion structural tree is generated by utilizing the first structural tree unit and the second structural tree unit.
It will be appreciated that the fusion structure tree may exhibit green electricity aggregators, green electricity splitters, distributed power information, and relevant nodes of the green electricity purchasers, as well as interactions between the relevant nodes.
In some embodiments, S4 (generating a fourth level node corresponding to the green electricity purchaser, connecting the fourth level node with distributed power information corresponding to the purchased green electricity to generate a second structural tree unit) comprises S41-S42:
and S41, generating four-level nodes corresponding to each green electricity purchaser according to the number of the green electricity purchasers, and determining three-level nodes corresponding to the distributed power supply information of the green electricity purchased by each four-level node.
The method can generate four-level nodes corresponding to each green electricity purchaser by using the number of the green electricity purchasers, and determine three-level nodes corresponding to distributed power information of green electricity purchased by each four-level node.
And S42, connecting each four-level node with a corresponding three-level node, and generating a second structural tree unit according to the connection relation of the four-level node and the three-level node.
It should be noted that the second structure tree unit may be updated once in a month unit, for example, the green electricity distributor a has 10 pieces of idle distributed power information in 1 month, the green electricity distributor 1 needs 5 pieces of distributed power information of the green electricity distributor a in 1 month, and the green electricity distributor 2 needs 2 pieces of distributed power information of the green electricity distributor a in 1 month, that is, 5 pieces of equipment of the green electricity distributor a are needed to perform green electricity production for the green electricity distributor 1, and 2 pieces of equipment of the green electricity distributor a are needed to perform green electricity production for the green electricity distributor 2. Thus, in 1 month, green electricity purchaser 1 would be connected to 5 corresponding tertiary nodes of green electricity separator a, and green electricity purchaser 2 would be connected to 2 corresponding tertiary nodes of green electricity separator a.
And S5, after judging that the display requests respectively sent by the terminals corresponding to the green electric aggregator, the green electric separator and the green electric buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction strategy and feeds the extracted and encrypted target display data back to the corresponding terminal.
In order to ensure data security and privacy, after judging that the server receives the display requests respectively sent by the terminals corresponding to the green electric aggregator, the green electric separator and the green electric buyer, the server extracts and encrypts the target display data in the fusion structure tree by utilizing the display request authority corresponding to the terminal and a preset encryption extraction strategy and feeds the extracted and encrypted target display data back to the corresponding terminal.
Through the method, the user can only see the target display data corresponding to the user in the fusion structure tree, and the target display data is encrypted and then fed back to the corresponding user.
In one embodiment, the encryption of the corresponding green electricity aggregator, S5 (after the server judges that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity buyer are received, respectively, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and the preset encryption extraction policy and feeds the extracted and encrypted target display data back to the corresponding terminal) includes a51-a54:
and A51, the server judges that a display request sent by a terminal corresponding to the green electricity aggregator is received, and invokes a first preset encryption strategy corresponding to the corresponding terminal.
Firstly, the scheme can call a first preset encryption strategy corresponding to a corresponding terminal after judging that a display request sent by the terminal corresponding to the green electric aggregator is received.
It will be appreciated that the first preset encryption policy corresponds to the green e-aggregator.
And A52, counting the distributed power supply information of all three-level nodes connected with the four-level nodes to obtain the total information of the current production electric energy, and counting the distributed power supply information of all three-level nodes not connected with the four-level nodes to obtain the total information of the current production electric energy.
The method can count the distributed power information of all three-level nodes connected with the four-level nodes to obtain the total information of the current production electric energy, and count the distributed power information of all three-level nodes which are not connected with the four-level nodes to obtain the total information of the current producible electric energy.
It will be appreciated that all three-level nodes connected to four-level nodes refer to all devices reserved by all green electricity purchasers, and that the total information of the current production electric energy may be the sum of electric energy of all reserved devices in the month. It will also be appreciated that all tertiary nodes not connected to a quaternary node refer to devices not reserved by green electricity purchasers, and that the total information of currently producible electrical energy may be the sum of electrical energy of all non-reserved devices at this month.
By the method, the green electricity aggregator can clearly know the electric energy data which are transacted out and the electric energy data which are not transacted out.
And A53, retrieving a fusion structure tree corresponding to the display request authority of the green electric aggregator, and generating target display data based on the fusion structure tree, the current total information of the produced electric energy and the current total information of the producible electric energy.
According to the scheme, the fusion structure tree corresponding to the display request authority of the green electric aggregator is fetched, and then target display data is generated by utilizing the fusion structure tree, the current total information of the produced electric energy and the current total information of the producible electric energy.
It can be understood that the scheme can call the fusion structure tree corresponding to the display request authority of the green electric aggregator, that is, the green electric aggregator a can only see the fusion structure tree corresponding to the green electric aggregator a, and the current total information of the produced electric energy and the current total information of the producible electric energy corresponding to the green electric aggregator a.
A54, extracting node information of the fusion structure tree based on the first preset encryption strategy to generate a first encryption key, encrypting the target display data according to the first encryption key, and feeding back to the corresponding terminal.
The method comprises the steps of extracting node information of a fusion structure tree by using a first preset encryption strategy to obtain a first encryption key, encrypting target display data by using the first encryption key, and feeding back the encrypted target display data to a corresponding terminal.
In some embodiments, a54 (extracting node information of the fusion structure tree based on the first preset encryption policy to generate a first encryption key, encrypting the target display data according to the first encryption key, and feeding back to the corresponding terminal) includes a541-a544:
and A541, numbering the secondary nodes, the tertiary nodes and the quaternary nodes in the fusion structure tree according to the sequence.
In order to obtain the first encryption key, the secondary node, the tertiary node and the quaternary node in the fusion structure tree are respectively numbered according to the sequence. For example, the numbers may be all numbers from 1, and for example, the numbers of the secondary nodes are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 in order.
And A542, extracting all three-level nodes in the structural frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to the numbers of all three-level nodes in the first node set, and combining the numbers of the corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence.
The method comprises the steps of extracting all three-level nodes in a structural frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to numbers of all three-level nodes in the first node set, and combining numbers of corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence.
In an exemplary embodiment, a secondary node is numbered 1, and the corresponding first node set has 3 tertiary nodes, numbered 1, 2, and 3, respectively, and then the first fused number sequence is 1, 2, and 3, where the number of the secondary node is combined with the first number sequence before.
In another example, a secondary node is numbered 2, and its corresponding first node group has 5 tertiary nodes numbered 4, 5, 6, 7, 8, respectively, and then the first fused number sequence is 2, 4, 5, 6, 7, 8, where the secondary node numbers are combined with the first number sequence.
And A543, extracting all three-level nodes connected with the same four-level node to obtain a second node set, obtaining a second number sequence according to the numbers of all three-level nodes in the second node set, and combining the numbers of the corresponding four-level nodes with the second number sequence to obtain a second fusion number sequence.
For example, a four-level node is numbered 1, the corresponding second node set has 2 three-level nodes, the numbers are 1, 5, and then the second fusion number sequence is 1, 5, and 1, wherein the numbers of the four-level nodes are combined with the second number sequence later.
And A544, determining preset characters of the aggregators corresponding to the green electric aggregators, sequencing the preset characters of the aggregators, the first fusion number sequence and the second fusion number sequence to obtain fusion characters, and carrying out hash calculation on the fusion characters to obtain a first encryption key.
The scheme further determines preset characters of the syndicater corresponding to the green electric syndicater, for example, a juheshangA style, sorts the preset characters of the syndicater, the first fusion number sequence and the second fusion number sequence to obtain fusion characters, and performs hash calculation on the fusion characters to obtain a first encryption key.
According to the scheme, the first encryption key corresponding to the green electricity polymer can be realized by using the irregular sequence of the numbers of the nodes, so that the dynamic encryption of the data is realized.
In another embodiment, the encryption corresponding to the green electricity separator, S5 (after the server judges that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity buyer are received, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and the preset encryption extraction policy and feeds back the extracted and encrypted target display data to the corresponding terminal) includes B51-B54:
and B51, the server judges that a display request sent by a terminal corresponding to the green electricity separator is received, and invokes a second preset encryption strategy corresponding to the corresponding terminal.
Firstly, after judging that a display request sent by a terminal corresponding to a green electricity separator is received, the scheme invokes a second preset encryption strategy corresponding to the corresponding terminal.
It will be appreciated that the second preset encryption policy corresponds to a green electronic separator.
And B52, determining a secondary node corresponding to the green electric separator and all tertiary nodes in the structural frame connected with the secondary node, and forming a separator substructure tree according to the secondary node corresponding to the green electric separator sending the display request and all tertiary nodes in the structural frame.
In order to obtain data corresponding to the green electric separator, the scheme firstly determines the secondary node corresponding to the green electric separator and all tertiary nodes in the structural frame connected with the secondary node, and then combines the secondary node corresponding to the green electric separator sending the display request and all tertiary nodes in the structural frame to form a separator substructure tree.
It can be appreciated that by the above manner, the node corresponding to the green electricity separator can be obtained, and the nodes corresponding to the rest of the green electricity separators cannot be checked.
And B53, counting the distributed power supply information corresponding to all the three-level nodes to obtain the electricity production information of the separator.
The scheme can obtain the separator electric energy production information corresponding to the green electric separator, namely, the green electric separator can know the electric energy which can be obtained by the separator through the separator electric energy production information.
And B54, generating target display data based on the separator substructure tree and the separator electric energy production information, extracting node information of the first structure tree unit based on the second preset encryption strategy to generate a second encryption key, encrypting the target display data according to the second encryption key, and feeding back to the corresponding terminal.
The scheme can combine the separator substructure tree and the separator electric energy production information to generate target display data so as to display the data corresponding to the corresponding green electric separator.
Then, the scheme extracts node information of the first structural tree unit by using a second preset encryption strategy to generate a second encryption key, encrypts the target display data according to the second encryption key, and feeds the encrypted target display data back to the corresponding terminal.
In some embodiments, B54 (generating target display data based on the splitter substructure tree and the splitter power production information, extracting node information of the first structure tree unit based on the second preset encryption policy, generating a second encryption key, encrypting the target display data according to the second encryption key, and feeding back to the corresponding terminal) includes B541-B544:
and B541, numbering the secondary nodes and the tertiary nodes in the fusion structure tree according to the sequence.
In order to obtain the second encryption key, the secondary nodes and the tertiary nodes in the fusion structure tree are respectively numbered according to the sequence. For example, the numbers may be all numbers from 1, and for example, the numbers of the secondary nodes are 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10 in order.
And B542, extracting all three-level nodes in the structural frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to the numbers of all three-level nodes in the first node set, and combining the numbers of the corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence.
The method comprises the steps of extracting all three-level nodes in a structural frame connected with each two-level node to obtain a first node set, obtaining a first number sequence according to numbers of all three-level nodes in the first node set, and combining numbers of corresponding two-level nodes with the first number sequence to obtain a first fusion number sequence.
In an exemplary embodiment, a secondary node is numbered 1, and the corresponding first node set has 3 tertiary nodes, numbered 1, 2, and 3, respectively, and then the first fused number sequence is 1, 2, and 3, where the number of the secondary node is combined with the first number sequence before.
In another example, a secondary node is numbered 2, and its corresponding first node group has 5 tertiary nodes numbered 4, 5, 6, 7, 8, respectively, and then the first fused number sequence is 2, 4, 5, 6, 7, 8, where the secondary node numbers are combined with the first number sequence.
And B543, arranging the first fusion number sequences corresponding to the green electric separators sending the display request at the front parts of other first fusion number sequences.
The first fusion number sequence corresponding to the green electric separator sending the display request is arranged in front of other first fusion number sequences, and a total number sequence is obtained. By means of the scheme, the total fusion number sequences obtained by different green electric separators can be different, and therefore the obtained second encryption keys are different.
And B544, determining a separator preset character corresponding to the green electricity separator, sequencing the separator preset character and the first fusion number sequence to obtain a fusion character, and carrying out hash calculation on the fusion character to obtain a second encryption key.
The scheme further determines a preset character of an aggregator corresponding to the green electric separator, for example, a pattern of fenlishangA, and then sorts the preset character of the separator and the first fusion number sequence to obtain a fusion character, for example, the preset character of the separator is before, the first fusion number sequence is after, and hash calculation is performed on the fusion character to obtain a first encryption key.
In yet another embodiment, in order to implement encryption on the green electricity purchasers, S5 (after the server determines that the display requests sent by the terminals corresponding to the green electricity aggregator, the green electricity separator and the green electricity purchasers are received, respectively, the server extracts and encrypts the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction policy, and feeds back the extracted and encrypted target display data to the corresponding terminal) includes C51-C54:
and C51, the server judges that a display request sent by a terminal corresponding to the green electricity purchaser is received, and invokes a third preset encryption strategy corresponding to the corresponding terminal.
Firstly, after judging that a display request sent by a terminal corresponding to a green electricity purchaser is received, the scheme invokes a third preset encryption strategy corresponding to the corresponding terminal.
It will be appreciated that the third preset encryption policy corresponds to a green electricity purchaser.
And C52, determining a four-level node corresponding to the green electricity purchasers and all three-level nodes connected with the four-level node, and forming a purchaser substructure tree according to the four-level node and the three-level node corresponding to the green electricity purchasers sending the display request.
In order to obtain the data corresponding to the green electricity purchasers, the scheme can determine four-level nodes corresponding to the green electricity purchasers and all three-level nodes connected with the four-level nodes, and then form a purchaser substructure tree by combining the four-level nodes and the three-level nodes corresponding to the green electricity purchasers for sending the display request.
It will be appreciated that green electricity purchasers are different, as are corresponding purchaser sub-structure trees.
And C53, counting the distributed power supply information corresponding to all three-level nodes to obtain the electric energy production information of the purchasers.
The distributed power information corresponding to all three-level nodes can be counted to obtain the electric energy production information of the purchaser, and it can be understood that the green electricity purchaser can know the electric quantity information purchased in the month through the electric energy production information of the purchaser.
And C54, generating target display data based on the purchaser substructure tree and the purchaser electric energy production information, extracting node information of the second structure tree unit based on the third preset encryption strategy to generate a third encryption key, encrypting the target display data according to the third encryption key, and feeding back to the corresponding terminal.
The method comprises the steps of generating target display data by utilizing a purchaser substructure tree and purchaser electric energy production information, extracting node information of a second structure tree unit by combining a third preset encryption strategy to generate a third encryption key, encrypting the target display data by utilizing the obtained third encryption key, and feeding back to a corresponding terminal.
Wherein C54 (generating target display data based on the buyer substructure tree and the buyer power generation information, extracting node information of the second structure tree unit based on the third preset encryption policy to generate a third encryption key, encrypting the target display data according to the third encryption key, and feeding back to the corresponding terminal) includes C541-C544:
And C541, numbering the three-level nodes and the four-level nodes in the fusion structure tree according to the sequence.
The scheme can respectively number three-level nodes and four-level nodes in the fusion structure tree according to the sequence.
And C542, extracting all three-level nodes connected with each four-level node to obtain a second node set, obtaining a second number sequence according to the numbers of all three-level nodes in the second node set, and combining the numbers of the corresponding four-level nodes with the second number sequence to obtain a second fusion number sequence.
For example, a four-level node is numbered 1, and the corresponding second node set has 2 three-level nodes, and the numbers are 1 and 5 respectively, so that the second fusion number sequence is 1, 1 and 5, and the numbers of the four-level nodes are combined with the second number sequence before.
And C543, arranging the second fusion number sequences corresponding to the green electric separators sending the display request at the rear parts of other second fusion number sequences.
After the second fusion number sequence is obtained, the second fusion number sequence corresponding to the green electric separator sending the display request is arranged at the rear part of other second fusion number sequences, and the total second fusion number sequence is obtained.
And C544, determining a preset character of the purchaser corresponding to the green electricity purchaser, sequencing the preset character of the purchaser and the second fusion number sequence to obtain a fusion character, and carrying out hash calculation on the fusion character to obtain a third encryption key.
The scheme further determines a preset character of the purchaser, such as a style of a gouai shangA, corresponding to the green electric purchaser, sorts the preset character of the purchaser and the second fusion number sequence to obtain a fusion character, and performs hash calculation on the fusion character to obtain a third encryption key.
Based on the above embodiment, the present solution further calculates the heat of the fused structural tree, and further includes S61-S65:
and S61, respectively counting target display data corresponding to the multiparty green electric aggregators, the green electric separators and the green electric purchasers corresponding to each fusion structure tree to obtain the aggregation business data quantity, the separator data quantity and the purchase business data quantity. Firstly, the scheme respectively calculates target display data corresponding to a multiparty green electric aggregator, a green electric separator and a green electric buyer corresponding to each fusion structure tree to obtain the data quantity of the aggregations, the data quantity of the separators and the data quantity of the buyers.
S62, counting the data quantity of each target display data to obtain an aggregate quotient data quantity value, a separator quotient data quantity value and a purchase quotient data quantity value. The data size dimension is counted to obtain the aggregate quotient data size, the separator quotient data size and the purchasing quotient data size.
And S63, calculating according to the quantity of the aggregation quotient data, the quantity of the separation quotient data and the quantity of the purchase quotient data to obtain the quantity value heat coefficient of the corresponding fusion structure tree. It can be understood that the heat coefficient of the number dimension obtained by calculating the number dimension in this step is that the larger the corresponding target display data number is, the larger the corresponding data number is, which means that the higher the access frequency is, and the higher the heat of the corresponding fusion structure tree is.
And S64, calculating according to the aggregate quotient data value, the separator quotient data value and the purchase quotient data value to obtain the data quantity heat coefficient of the corresponding fusion structure tree, wherein it is understood that the heat coefficient calculated in the data quantity dimension is larger, the larger the data quantity value is, the larger the corresponding data is, and the heat of the corresponding fusion structure tree is.
S65, comprehensively calculating the heat coefficient according to the number value and the data heat coefficient to obtain the total heat coefficient of the corresponding fusion structure tree, and sequencing and storing the fusion structure tree according to the total heat coefficient to obtain a structure tree sequence.
In some embodiments, the total heat coefficient may be calculated by the following formula,
wherein,,is->Total heat coefficient of the individual fusion structure trees, < ->For the heat coefficient of the quantity value, < >>For the heat coefficient of data quantity, < >>For the aggregate quotient gradient parameter value, +.>For aggregating the number of business data, < > for>For separating quotient gradient parameter values, +.>For separating the quotient data quantity, < >>Gradient parameter values for the number of buyers, +.>For the number of data of buyers, < > for>Is a constant value of number +.>Is a poly (ethylene-propylene-butyleneData volume gradient parameter value of the quotient combination +.>An aggregator data value for the target display data of the d-th aggregator, w being an upper limit value for the number of target display data of the aggregator, +.>Gradient parameter values for the data quantity of the separator +.>Aggregate quotient data value for target display data of the b-th separator,/for the b-th separator>Upper limit value of the amount of display data for the object of the separator,/->Gradient parameter values for the data quantity of the purchase agent, +.>Is->Aggregate data quantity value of target display data of individual buyers,/- >An upper limit value of the amount of data is displayed for the purchasers' targets,is a constant value of the data amount.
In the above-mentioned formula(s),coefficients representing the aggregate quotient number dimension, +.>Coefficients representing the number dimension of the separator, +.>Obtaining a coefficient of heat of a number value of the number dimension through the data, wherein the coefficient represents the number dimension of the purchase quotient; />Coefficients representing the aggregate quotient in the data size dimension, +.>Coefficients representing the separator in the data size dimension, +.>The coefficient of the data volume dimension representing the purchaser obtains the heat coefficient of the data volume in the data volume dimension through the data; the gradient parameter value, the number constant value and the data amount constant value may be preset by a worker.
Referring to fig. 2, a schematic structural diagram of a data processing device based on a multi-party green electricity polymerization transaction system according to an embodiment of the present invention is provided, where the device includes:
the receiving module is used for receiving multiparty distributed power supply data transmitted by any multiparty green electricity aggregator, wherein the multiparty distributed power supply data comprises a plurality of green electricity separators and distributed power supply information corresponding to each green electricity separator;
the structure module is used for generating primary nodes corresponding to the multi-party green electric aggregators, generating secondary nodes corresponding to each green electric separator, generating tertiary nodes corresponding to each distributed power supply information, and generating a first structure tree unit according to the primary nodes, the secondary nodes and the tertiary nodes;
The system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring green electricity selling data corresponding to the current moment of a multiparty green electricity aggregator, and the green electricity selling data comprises green electricity purchasers and distributed power supply information corresponding to green electricity purchased by each green electricity purchaser;
the fusion module is used for generating a quaternary node corresponding to the green electricity purchasers, connecting the quaternary node with a tertiary node corresponding to the distributed power supply information of the purchased green electricity to generate a second structure tree unit, and generating a fusion structure tree according to the first structure tree unit and the second structure tree unit;
and the feedback module is used for extracting and encrypting the target display data in the fusion structure tree according to the display request authority corresponding to the terminal and a preset encryption extraction strategy after the server judges that the display requests respectively sent by the terminals corresponding to the green electric aggregator, the green electric separator and the green electric buyer are received, and feeding the target display data back to the corresponding terminal.
The present invention also provides a storage medium having stored therein a computer program for implementing the methods provided by the various embodiments described above when executed by a processor.
The storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the storage medium may reside as discrete components in a communication device. The storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present invention also provides a program product comprising execution instructions stored in a storage medium. The at least one processor of the device may read the execution instructions from the storage medium, the execution instructions being executed by the at least one processor to cause the device to implement the methods provided by the various embodiments described above.
In the above embodiments of the terminal or the server, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.