Method and system for processing electricity consumption data
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and a system for processing power consumption data.
Background
In the prior art, in the process of processing power consumption data, a worker is required to count the power consumption of a user, and then the power charge to be paid by the user is calculated according to the counting result, wherein the power consumption is different, the calculation modes are different, and the calculation modes suitable for different users are different, so that the efficiency is low when the power consumption data of different users are processed.
Disclosure of Invention
In order to solve the technical problem, the application provides a method and a system for processing power consumption data, so that the processing efficiency of the power consumption data of a user is improved.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for processing power consumption data, where the method includes:
acquiring an identifier of a user, and inquiring the power consumption type of the user in a server according to the identifier; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user;
configuring a transmission channel of the user through the server by using the configuration information;
and transmitting the electricity utilization data of the user to a preset model by using the transmission channel so as to process the electricity utilization data.
Optionally, the configuration information carries cycle information for controlling the transmission channel to be opened, and configuring, by the server, the transmission channel of the user includes:
and configuring the opening period of the transmission channel of the user by the server by utilizing the period information.
Optionally, the turn-on period is any one of day, month or year.
Optionally, the preset model includes a first sub-model and a second sub-model; the method further comprises the following steps:
analyzing the power consumption of the user according to the power consumption data, and judging whether the power consumption of the user is lower than a preset value;
if so, calling the first sub-model to process the electricity utilization data;
if not, calling the second submodel to process the electricity utilization data.
Optionally, the method further includes: and sending the processing result of the electricity utilization data to a monitoring center so that the monitoring center can monitor the processing result.
Optionally, the method further includes: and storing the processing result in the server so as to inquire the record of the processing information in the following.
In a second aspect, an embodiment of the present application provides a system for processing power consumption data, including: the device comprises an acquisition unit, a configuration unit and a processing unit;
the acquisition unit is used for acquiring an identifier of a user and inquiring the electricity utilization type of the user in the server according to the identifier; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user;
the configuration unit is used for configuring the transmission channel of the user through the server by using the configuration information;
and the processing unit is used for transmitting the electricity utilization data of the user to a preset model by using the transmission channel so as to process the electricity utilization data.
Optionally, the configuration information carries cycle information for controlling the transmission channel to be opened, and the configuration unit includes a cycle control unit;
the period control unit is configured to configure, by using the period information, an open period of a transmission channel of the user through the server; wherein the turn-on period is any one of day, month or year.
Optionally, the preset model includes a first sub-model and a second sub-model; the system further comprises: a judgment unit;
the judging unit is used for analyzing the power consumption of the user according to the power consumption data and judging whether the power consumption of the user is lower than a preset value or not;
the processing unit is further used for calling the first sub-model to process the electricity utilization data when the judgment result of the judging unit is yes; and the second submodel is called to process the electricity utilization data when the judgment result of the judgment unit is negative.
Optionally, the system further includes: a monitoring unit and a storage unit;
the monitoring unit is used for monitoring the processing result of the electricity utilization data;
and the storage unit is used for storing the processing result into the server so as to inquire the record of the processing information in the following.
According to the technical scheme, the embodiment of the application has the following advantages:
the method comprises the steps that by obtaining an identification of a user, the electricity utilization type of the user is inquired in a server according to the identification; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user; configuring a transmission channel of the user through the server by using the configuration information; the transmission channel is utilized to transmit the electricity utilization data of the users to the preset model, the electricity utilization data are processed, different users can be distinguished when the electricity utilization data are directed at different users, different preset models are adopted to process the electricity utilization data, and the processing efficiency of the electricity utilization data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a diagram illustrating an exemplary method for processing power consumption data;
FIG. 2 is a diagram illustrating another exemplary method for processing power consumption data;
fig. 3 is a diagram illustrating an example of a system for processing power consumption data.
Detailed Description
The applicant has found that when the user data of the user is not used, the data needs to be processed separately, and when a large amount of data needs to be processed, the calculation mode needs to be converted continuously, which results in extremely low efficiency.
In view of this, the present application provides a method and a system for processing power consumption data, which improve the efficiency of processing the power consumption data of a user.
Embodiments of the present application will be described below with reference to the accompanying drawings.
The first embodiment is as follows:
with reference to fig. 1, an embodiment of the present application discloses a method for processing power consumption data, including:
step 101: acquiring an identifier of a user, and inquiring the power consumption type of the user in a server according to the identifier; and acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user.
The identification of the user is the unique user characteristic, the identification corresponds to the electricity utilization type of the user, and the configuration information of the user is obtained according to the electricity utilization type of the user.
It should be noted that the electricity consumption type may be commercial electricity consumption or residential electricity consumption.
Step 102: and configuring the transmission channel of the user through the server by using the configuration information.
As an embodiment, the configuration information includes period information for controlling the transmission channel to be opened, and the server configures the opening period of the transmission channel of the user by using the period information.
The period may be a day, a month, or a year, and may be set by those skilled in the art according to actual needs.
Step 103: and transmitting the electricity utilization data of the user to a preset model by using the transmission channel so as to process the electricity utilization data.
As an implementation mode, the power consumption of the user is analyzed according to the power consumption data of the user, and the power fee information of the user is calculated by using the preset model.
It should be noted that the preset model can be set according to a specific electric charge condition and an actual electric charge calculation rule.
Example two:
with reference to fig. 2, an embodiment of the present application discloses a method for processing power consumption data, including:
step 201 to step 203 are the same as or similar to those in the first embodiment of the present application, and are not described herein again, see the first embodiment of the present application.
Step 204: analyzing the power consumption of the user according to the power consumption data, and judging whether the power consumption of the user is lower than a preset value; if so, calling the first sub-model to process the electricity utilization data; if not, calling the second submodel to process the electricity utilization data.
As an embodiment, the preset model includes a first sub-model and a second sub-model; and the first submodel and the second submodel have different corresponding calculation modes.
It should be noted that the preset model may include not only the first sub-model and the second sub-model, but also a plurality of other models to adapt to different calculation rules.
Step 2051: and sending the processing result of the electricity utilization data to a monitoring center.
And sending the processing result of the electricity utilization data to a monitoring center so that the monitoring center can monitor the processing result.
It should be noted that when a problem in the processing result is monitored, the worker is notified to perform manual intervention to ensure the accuracy of the processing result.
Step 2052: and storing the processing result in the server.
And storing the processing result in the server so as to inquire the record of the processing information in the following.
It should be noted that, the records include information of electricity consumption data of different users,
the embodiment of the application has the following advantages:
the method comprises the steps that by obtaining an identification of a user, the electricity utilization type of the user is inquired in a server according to the identification; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user; configuring a transmission channel of the user through the server by using the configuration information; the transmission channel is utilized to transmit the electricity utilization data of the users to the preset model, the electricity utilization data are processed, different users can be distinguished when the electricity utilization data are directed at different users, different preset models are adopted to process the electricity utilization data, and the processing efficiency of the electricity utilization data is improved.
Example three:
with reference to fig. 3, a third embodiment of the present application discloses a system for processing power consumption data, including: an acquisition unit 301, a configuration unit 302 and a processing unit 303;
the obtaining unit 301 is configured to obtain an identifier of a user, and query, in a server, a power consumption type of the user according to the identifier; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user;
the configuration unit 302 is configured to configure, by using the configuration information, a transmission channel of the user through the server;
the processing unit 303 is configured to transmit the power consumption data of the user to a preset model by using the transmission channel, so as to process the power consumption data.
The embodiment of the application has the following advantages:
acquiring an identifier of a user through the acquisition unit 301, and inquiring the power consumption type of the user in a server according to the identifier; acquiring configuration information corresponding to the power utilization type according to the power utilization type of the user; configuring a transmission channel of the user through the server by using the configuration information of the configuration unit 302; utilize processing unit 303 transmission passageway transmits user's power consumption data to presetting the model, right the power consumption data is handled, when to different users, can distinguish different users to adopt different models of presetting to handle, improved the treatment effeciency to the power consumption data.
The above description is only one specific embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.