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 the electricity consumption data, staff is required to count the electricity consumption of the user, then the electricity charge which the user needs to pay is calculated according to the counting result, the electricity consumption is different, the calculation modes are different, and the applicable calculation modes are also different for different users, so that the efficiency is low when the electricity consumption data of different users are processed.
Disclosure of Invention
In order to solve the technical problems, the application provides a method and a system for processing electricity data, which improve the processing efficiency of the electricity data of a user.
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 electricity consumption data, where the method includes:
acquiring an identifier of a user, and inquiring the electricity utilization type of the user in a server according to the identifier; acquiring configuration information corresponding to the electricity type according to the electricity type of the user;
configuring a transmission channel of the user through the server by utilizing the configuration information;
and transmitting the electricity consumption data of the user to a preset model by using the transmission channel so as to process the electricity consumption data.
Optionally, the configuration information carries period information for controlling the transmission channel to be opened, and the configuring, by the server, the transmission channel of the user includes:
and configuring the opening period of the transmission channel of the user through the server by utilizing the period information.
Optionally, the opening 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 steps of:
according to the electricity consumption data, analyzing the electricity consumption of the user, and judging whether the electricity consumption of the user is lower than a preset value;
if yes, the first sub-model is called to process the electricity consumption data;
and if not, calling the second sub-model to process the electricity utilization data.
Optionally, the method further comprises: and sending the processing result of the electricity consumption data to a monitoring center so that the monitoring center monitors the processing result.
Optionally, the method further comprises: and storing the processing result into the server so as to inquire the record of the processing information later.
In a second aspect, an embodiment of the present application provides a system for processing electricity consumption data, including: the device comprises an acquisition unit, a configuration unit and a processing unit;
the acquisition unit is used for acquiring the identification of the user and inquiring the electricity utilization type of the user in the server according to the identification; acquiring configuration information corresponding to the electricity type according to the electricity type of the user;
the configuration unit is used for configuring a transmission channel of the user through the server by utilizing the configuration information;
and the processing unit is used for transmitting the electricity consumption data of the user to a preset model by utilizing the transmission channel so as to process the electricity consumption data.
Optionally, the configuration information carries cycle information for controlling the transmission channel to be opened, and the configuration unit comprises a cycle control unit;
the period control unit is used for configuring the starting period of the transmission channel of the user through the server by utilizing the period information; wherein the opening period is any one of a day, a month or a year.
Optionally, the preset model includes a first sub-model and a second sub-model; the system further comprises: a judging unit;
the judging unit is used for analyzing the electricity consumption of the user according to the electricity consumption data and judging whether the electricity 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 judging result of the judging unit is yes; and the second sub-model is also used for calling the second sub-model to process the electricity utilization data when the judging result of the judging unit is negative.
Optionally, the system further comprises: a monitoring unit and a storage unit;
the monitoring unit is used for monitoring the processing result of the electricity consumption 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 later.
As can be seen from the technical scheme, the embodiment of the application has the following advantages:
inquiring the electricity utilization type of a user in a server according to the identification by acquiring the identification of the user; acquiring configuration information corresponding to the electricity type according to the electricity type of the user; configuring a transmission channel of the user through the server by utilizing the configuration information; and the transmission channel is utilized to transmit the electricity consumption data of the user to a preset model, the electricity consumption data is processed, when aiming at different users, different users can be distinguished, and different preset models are adopted for processing, so that the processing efficiency of the electricity consumption data is improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a diagram showing an example of a method for processing electricity consumption data;
FIG. 2 is a diagram showing another example of a method for processing electricity consumption data;
FIG. 3 is an exemplary diagram of a processing system for electricity consumption data.
Detailed Description
The applicant has found that the need to process separately for user data without the user, and that the continuous way of converting the calculation results in a very low efficiency when large amounts of data are to be processed.
In view of the above, the application provides a method and a system for processing electricity consumption data, which improve the processing efficiency of the electricity consumption data of users.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Embodiment one:
referring to fig. 1, a first embodiment of the present application discloses a method for processing electricity data, including:
step 101: acquiring an identifier of a user, and inquiring the electricity utilization type of the user in a server according to the identifier; and acquiring configuration information corresponding to the electricity type according to the electricity type of the user.
The identification of the user uniquely represents the user characteristics, 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.
The electricity consumption type can be commercial electricity consumption or residential electricity consumption.
Step 102: and configuring a transmission channel of the user through the server by utilizing the configuration information.
As an implementation manner, 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 daily, monthly, or annual, and may be set as required by those skilled in the art.
Step 103: and transmitting the electricity consumption data of the user to a preset model by using the transmission channel so as to process the electricity consumption data.
As an implementation manner, according to the electricity consumption data of the user, the electricity consumption of the user is analyzed, and the electricity charge information of the user is calculated by using the preset model.
It should be noted that the preset model may be set according to specific electricity charge conditions and actual electricity charge calculation rules.
Embodiment two:
with reference to fig. 2, a second embodiment of the present application discloses a method for processing electricity consumption data, including:
steps 201 to 203, which are the same as or similar to the first embodiment of the present application, are not repeated here, and refer to the first embodiment of the present application.
Step 204: according to the electricity consumption data, analyzing the electricity consumption of the user, and judging whether the electricity consumption of the user is lower than a preset value; if yes, the first sub-model is called to process the electricity consumption data; and if not, calling the second sub-model to process the electricity utilization data.
As one embodiment, the preset model includes a first sub-model and a second sub-model; the first sub-model and the second sub-model are different in corresponding calculation mode.
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 consumption data to a monitoring center.
And sending the processing result of the electricity consumption data to a monitoring center so that the monitoring center monitors the processing result.
It should be noted that, when a problem occurs in the processing result, a worker is notified to perform manual intervention so as to ensure the accuracy of the processing result.
Step 2052: and storing the processing result into the server.
And storing the processing result into the server so as to inquire the record of the processing information later.
It should be noted that, the record includes the electricity data information of different users,
the embodiment of the application has the following advantages:
inquiring the electricity utilization type of a user in a server according to the identification by acquiring the identification of the user; acquiring configuration information corresponding to the electricity type according to the electricity type of the user; configuring a transmission channel of the user through the server by utilizing the configuration information; and the transmission channel is utilized to transmit the electricity consumption data of the user to a preset model, the electricity consumption data is processed, when aiming at different users, different users can be distinguished, and different preset models are adopted for processing, so that the processing efficiency of the electricity consumption data is improved.
Embodiment III:
referring to fig. 3, a third embodiment of the present application discloses a system for processing electricity 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 electricity type according to the electricity 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 electricity consumption data of the user to a preset model by using the transmission channel, so as to process the electricity consumption data.
The embodiment of the application has the following advantages:
acquiring an identifier of a user through the acquiring unit 301, and inquiring the electricity utilization type of the user in a server according to the identifier; acquiring configuration information corresponding to the electricity type according to the electricity type of the user; configuring a transmission channel of the user through the server by using the configuration information of the configuration unit 302; and the transmission channel of the processing unit 303 is used for transmitting the electricity consumption data of the user to a preset model, processing the electricity consumption data, distinguishing different users when aiming at different users, and processing by adopting different preset models, thereby improving the processing efficiency of the electricity consumption data.
The foregoing 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 easily contemplated by those skilled in the art within the technical scope of the present application should be included in the scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.