CN117522301A - Account binding method, device, computer equipment and storage medium - Google Patents
Account binding method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117522301A CN117522301A CN202311419287.7A CN202311419287A CN117522301A CN 117522301 A CN117522301 A CN 117522301A CN 202311419287 A CN202311419287 A CN 202311419287A CN 117522301 A CN117522301 A CN 117522301A
- Authority
- CN
- China
- Prior art keywords
- account
- data
- water
- electricity
- hydropower
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims abstract description 279
- 230000005611 electricity Effects 0.000 claims abstract description 271
- 238000004590 computer program Methods 0.000 claims abstract description 42
- 238000007405 data analysis Methods 0.000 claims description 54
- 238000012545 processing Methods 0.000 claims description 20
- 238000004458 analytical method Methods 0.000 claims description 18
- 230000000875 corresponding effect Effects 0.000 description 73
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004140 cleaning Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001932 seasonal effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Marketing (AREA)
- Entrepreneurship & Innovation (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Data Mining & Analysis (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application relates to an account binding method, apparatus, device, storage medium and computer program product. The method comprises the following steps: receiving a water and electricity account binding request sent by a user; acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request; and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side. By adopting the method, the convenience of account operation can be improved.
Description
Technical Field
The present application relates to the field of big data technologies, and in particular, to an account binding method, apparatus, device, storage medium, and computer program product.
Background
With the rapid development of information technology, the field of water and electricity supply is also gradually digitalized and intelligent, and users can manage their electricity and water service in a more convenient manner, for example, by monitoring the electricity and water conditions through application programs in smart phones.
Currently, water and electricity are provided and managed by different departments or suppliers, and users need to manage and operate their electricity and water service respectively through two different sets of electricity and water accounts, namely, processes such as billing or payment of electricity and water by the electricity account and the water account.
However, the above method has a problem of poor convenience in account operation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an account binding method, apparatus, device, storage medium, and computer program product that can improve the convenience of account management.
In a first aspect, the present application provides an account binding method. The method comprises the following steps:
receiving a water and electricity account binding request sent by a user;
acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
In one embodiment, the obtaining, according to the hydropower account binding request, historical electricity consumption data of an electricity consumption account and historical water consumption data of a water consumption account corresponding to the user side includes:
determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
and searching to obtain the historical electricity consumption data according to the electricity consumption account, and searching to obtain the historical water consumption data according to the water consumption account.
In one embodiment, the determining the electricity account and the water account according to the water and electricity account binding request includes:
analyzing the hydroelectric account binding request to obtain the electricity consumption account and the water consumption account; or,
and searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request.
In one embodiment, the searching according to the electricity consumption account to obtain the historical electricity consumption data, and searching according to the water consumption account to obtain the historical water consumption data includes:
searching in the first server according to the electricity consumption account based on a first standardized interface between the first server and the first server to obtain the historical electricity consumption data;
And searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
In one embodiment, the method further comprises:
and sending the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
In one embodiment, the method further comprises:
receiving update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user side according to the hydropower account data;
and according to the updating data, carrying out data updating on the locally stored hydroelectric account data.
In one embodiment, the method further comprises:
carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
And if an acquisition request for the data analysis result is received, responding to the acquisition request based on the data analysis result.
In a second aspect, the present application also provides an account binding apparatus. The device comprises:
the first receiving module is used for receiving a water and electricity account binding request sent by a user side;
the acquisition module is used for acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
the storage module is used for storing the historical electricity consumption data and the historical water consumption data in an associated mode with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, and the hydropower account data are used for establishing a hydropower account for the user side.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method according to the first aspect described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
According to the account binding method, the device, the equipment, the storage medium and the computer program product, the hydropower account binding request sent by the user side is received, the historical electricity consumption data of the electricity consumption account corresponding to the user side and the historical water consumption data of the water consumption account are obtained according to the hydropower account binding request, the historical electricity consumption data and the historical water consumption data are stored in a correlated mode with the preset hydropower account identification, the hydropower account data corresponding to the user side are obtained, and the hydropower account data are used for establishing the hydropower account for the user side. In this way, according to the embodiment of the application, according to the response to the water and electricity account binding request, the historical electricity data and the historical water data corresponding to the user side are stored in association with the preset water and electricity account identification, in other words, the electricity account and the water account are bound and associated into one water and electricity account, and the user side can control and manage the electricity consumption situation and the electricity consumption situation through the water and electricity account.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is a diagram of an implementation environment for an account binding method in one embodiment;
FIG. 2 is a flow diagram of an account binding method in one embodiment;
FIG. 3 is a flowchart of a server obtaining historical electricity consumption data of an electricity consumption account corresponding to a user side and historical water consumption data of a water consumption account in an embodiment;
FIG. 4 is a flow chart of an account binding method according to another embodiment;
FIG. 5 is a flow chart of an account binding method according to another embodiment;
FIG. 6 is a flow chart of an account binding method according to another embodiment;
FIG. 7 is a flow chart of an account binding method according to another embodiment;
FIG. 8 is a block diagram of an account binding apparatus in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The account binding method provided by the embodiment of the application can be applied to an implementation environment shown in fig. 1. Wherein the client 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
In combination with the implementation environment shown in fig. 1, the server 104 obtains a hydropower account binding request sent by the user terminal 102, the server 104 obtains historical electricity consumption data of an electricity consumption account corresponding to the user terminal 102 and historical water consumption data of a water consumption account according to the hydropower account binding request, then, the server 104 stores the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user terminal 102, and the hydropower account data is used for establishing the hydropower account for the user terminal 102.
The client 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, an account binding method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
step 201, a server receives a water and electricity account binding request sent by a user.
In daily life, a user needs to pay a water and electricity fee, monitor the water and electricity consumption, know the electricity price and the water consumption rate structure, and the like, so as to maintain daily life, for example, after receiving a power (or water consumption) bill, the user can log in a platform or APP (Application) for managing the power (or water consumption) of the user, input a corresponding bill number and payment information, and make online payment.
In this embodiment of the present application, if the user needs to bind the electricity account and the water account, the user may operate at the user side, so that the user side sends a water and electricity account binding request to the server.
In a possible implementation manner, after the user logs in the electricity consumption account of the user side, if the user needs to perform binding operation on the electricity consumption account and the water consumption account, a control used for binding the water consumption account and the water consumption account can be found in an interface of the electricity consumption account, and clicking the control can trigger the user side to send a water and electricity account binding request, and the user side sends the water and electricity account binding request to the server.
In another possible implementation manner, after the user logs in the water account of the user side, if the user needs to perform a binding operation on the water account and the water account, a control for binding the water account and the water account can be found in an interface of the water account, and clicking the control can trigger the user side to send a water and electricity account binding request, and the user side sends the water and electricity account binding request to the server.
In other possible embodiments, the user may log in to another account at the user side, where the user interface of the other account has a control for binding the water electricity account and the water account, and clicking the control by the user may trigger the user side to send a hydropower account binding request, and the user side sends the hydropower account binding request to the server, where the other account may be any account that the user can log in to at the user side, and no specific limitation is imposed herein.
Thus, the server receives the water and electricity account binding request sent by the user side.
Step 202, the server obtains historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of the water consumption account according to the water and electricity account binding request.
The electricity consumption account refers to an electricity supply account associated with a user, and is used for recording information and cost of electricity consumption of the user, including user information of the user, namely name, address, contact information and the like of the user, and the historical electricity consumption data of the electricity consumption account refers to electricity consumption generated by the electricity consumption account in a period of time, electricity consumption time and related statistical information, wherein the record of the historical electricity consumption data can have various forms, including digital records, ammeter readings or statistical reports and the like.
The water account is a water service account associated with the user and is used for recording water information and related fees of the user, wherein the water service account comprises personal information of the user, such as name, address, contact information and the like, and the historical water consumption data of the water account refers to water consumption generated in a period of time, water consumption time and related statistical information, and the historical water consumption data can have various forms, such as digital records, water meter readings or statistical reports and the like.
In this embodiment of the present application, a server receives a hydropower account binding request sent by a user side, where the hydropower account binding request may include certain information data, that is, the user information, a user account identifier, information about an electricity consumption account, information about an water consumption account, and the like, and the server queries, according to the information data included in the hydropower account binding request, a corresponding electricity consumption account and a corresponding water consumption account.
As an optional embodiment, the server receives a hydropower account binding request sent by the user side, accesses a corresponding electricity account database and a corresponding water account database respectively, queries and matches the corresponding electricity account and the corresponding water account according to the hydropower account binding request, and if the server queries and matches the corresponding electricity account, historical electricity data can be obtained; if the server inquires the corresponding water account, historical water consumption data can be obtained.
And 203, the server stores the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
In the embodiment of the application, the preset hydropower account identifier refers to a preset or distributed unique identifier of the hydropower account, so that different hydropower accounts can be conveniently identified and distinguished.
As described above, the server obtains the historical electricity data of the electricity account and the historical water data of the water account corresponding to the user side according to the water and electricity account binding request, correlates the historical electricity data and the historical water data with the preset water and electricity account identifier, after the correlation is successful, the server correlates the water and electricity account identifier with the historical electricity data of the corresponding electricity account and the historical water data of the water account to be stored in the database, for example, the server obtains the historical electricity data of the electricity account and the historical water data of the water account corresponding to the user side, the preset water and electricity account identifier of the user side is AccountA123, correlates the historical electricity data and the historical water data with the preset water and electricity account identifier AccountA123 to be stored in the database, and finally, establishes the water and electricity account corresponding to the user side through the water and electricity account data.
According to the account binding method, the device, the equipment, the storage medium and the computer program product, the hydropower account binding request sent by the user side is received, the historical electricity consumption data of the electricity consumption account corresponding to the user side and the historical water consumption data of the water consumption account are obtained according to the hydropower account binding request, the historical electricity consumption data and the historical water consumption data are stored in a correlated mode with the preset hydropower account identification, the hydropower account data corresponding to the user side are obtained, and the hydropower account data are used for establishing the hydropower account for the user side. In this way, according to the embodiment of the application, according to the response to the water and electricity account binding request, the historical electricity data and the historical water data corresponding to the user side are stored in association with the preset water and electricity account identification, in other words, the electricity account and the water account are bound and associated into one water and electricity account, and the user side can control and manage the electricity consumption situation and the electricity consumption situation through the water and electricity account.
Based on the embodiment shown in fig. 2, referring to fig. 3, the present embodiment relates to a process of how the server obtains, according to the hydroelectric account binding request, historical electricity consumption data of the electricity consumption account corresponding to the user side and historical water consumption data of the water consumption account in step 202, where the process includes steps 301 and 302 shown in fig. 3:
in step 301, the server determines an electricity account and a water account according to the water and electricity account binding request.
As described above, the electricity consumption account is an account of the user in the power system, and is used for recording the electricity consumption amount, the electricity consumption expense, the payment record and other information related to the electricity consumption of the user, so that the monitoring and control of the electricity consumption can be realized; the water account is an account of the user in the water supply system and is used for recording the water consumption, the water consumption cost, the water cost payment record and the like of the user, and can manage the use of water resources and control the water consumption.
In one possible implementation, the server parses the hydroelectric account binding request to obtain a utility account and a water use account. Specifically, the server receives a hydropower account binding request sent from the user side, where the hydropower account binding request may be a data packet or API (Application Programming Interface) request, where the data packet includes related information of a corresponding electricity consumption account and a corresponding water consumption account, and the server analyzes the hydropower account binding request to extract key information, which may include an electricity consumption account identifier and a water consumption account identifier, and obtains a corresponding electricity consumption account and a corresponding water consumption account according to matching of the electricity consumption account identifier and the water consumption account identifier.
In another possible implementation manner, the server searches and obtains the electricity account and the water account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request. Specifically, the server receives a hydropower account binding request sent from the user side, the hydropower account binding request carries a user side identifier of the user side, the user side identifier can be a user name, a user ID (Identifier), a user mobile phone number and the like and is used for distinguishing different users or devices, and the server searches a corresponding database according to the user side identifier and searches and obtains an electricity account and a water account corresponding to the user side identifier. For example, the user a sends a hydropower account binding request to the server based on the user side, the hydropower account binding request includes a user side identifier of the user a, if the user side identifier is a user ID (a 002), the server queries corresponding databases according to the user ID (a 002), and matches and obtains an electricity account and a water account associated with the a 002.
In this way, the server can determine the corresponding electricity account and water account according to the water and electricity account binding request.
Step 302, the server searches for historical electricity consumption data according to the electricity consumption account, and searches for historical water consumption data according to the water consumption account.
As an optional embodiment, based on a first standardized interface with the first server, historical electricity consumption data is obtained by searching in the first server according to the electricity consumption account; and searching in the second server according to the water account to obtain historical water use data based on a second standardized interface between the second server and the second server.
The first server is used for processing data related to the electricity consumption account, and can be an electricity provider side, and a first standardized interface provided by the first server can allow other systems or servers to query historical electricity consumption data based on the first standardized interface, namely if historical electricity consumption data corresponding to a certain electricity consumption account needs to be acquired, the server can be connected with the first server through the first standardized interface to acquire the corresponding historical electricity consumption data; the second server is used for processing data related to the water account, and may be a water provider side, and the second standardized interface provided by the second server may allow other systems or servers to query historical water data based on the second standardized interface, that is, if the historical water data corresponding to a certain water account needs to be obtained, the server may be connected with the second server through the second standardized interface to obtain the corresponding historical water data.
Specifically, the server may establish an API connection with the electricity provider side, where the API connection allows the server to send a request to the electricity provider system to obtain historical electricity consumption data corresponding to the electricity consumption account, that is, the service and the first server may communicate through the API connection to obtain the required historical electricity consumption data; the server may also establish an API connection with the water provider side, which allows the server to send a request to the water provider side to obtain historical water usage data corresponding to the water usage account, i.e. the server usage and the second server may communicate via the API connection to obtain the required historical water usage data.
Therefore, through the mode, the embodiment of the application binds the electricity consumption account and the water consumption account, so that the user side can more conveniently control and manage the electricity consumption and water consumption conditions of the user side, can access relevant information of all electricity consumption and water consumption of the user side on one platform, solves the inconvenience brought to the user side by separately managing the electricity consumption account and the water consumption account, establishes the correlation between the electricity consumption account and the water consumption account, and helps the user side to manage resources more effectively.
In one embodiment, referring to fig. 4, based on the embodiment shown in fig. 2, the account binding method of the present embodiment may further include steps 401, 402, and 403 shown in fig. 4:
And step 401, the server sends the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
The third target server is different from the first server and the second server, and can be used for processing the hydroelectric account data and establishing a hydroelectric account of the user side according to the hydroelectric account data.
In one possible implementation, the server sends the acquired hydroelectric account data to a third target server, where the hydroelectric account data may include a user identifier of the user, user information, historical electricity consumption data of the application account, historical water consumption data of the application account, and other related data, and then the third target server may process the received hydroelectric account data, that is, perform data cleaning, data verification, associate related user information, and so on, and establish a hydroelectric account of the user for each user.
And step 402, the server receives update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user terminal according to the hydropower account data.
In this embodiment of the present application, if the hydropower account data stored in the third server is updated, in other words, user information (i.e., name, address, contact information of the user) included in the hydropower account data, historical water use data, or the like are changed, for example, address information is changed or contact information is changed by a user moving the user; or, the user has electricity behavior in a certain period of time in the past, so that the electricity record is changed, and the third server sends the updated data of the updated hydroelectric account to the server, so that the server can receive the updated data sent by the third server.
And step 403, the server updates the data of the locally stored hydroelectric account data according to the updated data.
As described above, the local storage (i.e. the storage space of the server itself) stores the hydropower account data corresponding to the hydropower account of the user side, where the hydropower account data includes user information, historical water consumption data, and historical electricity consumption data.
In this embodiment of the present application, the server correspondingly modifies the locally stored hydropower account data according to the received update data of the hydropower account, for example, updates user information (new address or contact information), modifies historical water use data or historical electricity use data, for example, updates account balance, usage data, cost information and the like of the water use account or the electricity use account.
In one possible implementation, the update data of the hydroelectric account sent by the third server may be a data packet containing update data, where the data packet includes a new user address of the hydroelectric account, new user contact information, updated water usage data or updated electricity usage data, and the server searches for a hydroelectric account matching the locally stored hydroelectric account that needs to be updated according to the hydroelectric account identifier (e.g., account number, user ID, etc.) contained in the update data. Then, the server searches the hydropower account data corresponding to the hydropower account in the local storage, correspondingly modifies the locally stored hydropower account data according to the update data, and if the update data contains a new user address or user contact information, the server updates the new user information into a corresponding user information field; if the updated data contains new water usage data or electricity usage data, the server updates the corresponding historical water usage data or historical electricity usage data, i.e. modifies account balance, usage data, cost information, etc. in the hydroelectric account. And finally, the server stores the modified and updated hydroelectric account data to a local storage.
Therefore, through the mode, the server can perform data interaction with the third target server, so that the hydroelectric account data of the user side are ensured to be in the latest state, and the accuracy, the integrity and the reliability of the hydroelectric account data of the user side are improved.
In one embodiment, referring to fig. 5, based on the embodiment shown in fig. 2, the account binding method of the present embodiment may further include step 501 and step 502 shown in fig. 5:
step 501, the server performs data analysis processing on the water and electricity account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results.
In this embodiment of the present application, the server performs data analysis processing according to the locally stored hydropower account data, and first, performs cleaning work on the hydropower account data, for example, removing duplicate data, processing missing values, processing abnormal values, and the like. Next, the patterns and trends of electricity/water consumption of the hydroelectric account are analyzed and processed, respectively, and the data analysis process may include analyzing seasonal electricity/water consumption trend of the hydroelectric account (i.e., analyzing changes in electricity/water consumption in different seasons, such as summer and winter), analyzing daily electricity/water consumption patterns (i.e., analyzing electricity patterns in different time periods during a day, such as peaks and valleys, analyzing water consumption patterns in different time periods during a day, such as early morning, daytime and evening), and the like. And finally, the server generates corresponding data analysis results based on the electricity/water consumption modes and the trends of the hydroelectric accounts obtained through data analysis processing, wherein the data analysis results can comprise an electricity/water consumption trend chart, statistical data, abstract information and the like.
In step 502, if the server receives the acquisition request for the data analysis result, the server responds to the acquisition request based on the data analysis result.
As described above, after the server performs data analysis processing on the water and electricity account data, a corresponding data analysis result is obtained, when the server receives an acquisition request of other systems or other servers for the data analysis result, the server first analyzes the acquisition request to obtain a specific requirement of the acquisition request, in other words, a format (such as a chart, a report, statistical data, etc.) of the data analysis result required to be acquired by the other systems or other servers, and then, the server retrieves the corresponding data analysis result from the generated data analysis result according to the acquisition request and sends the data analysis result to the requester.
In this way, through the manner, the server in the embodiment of the application performs data analysis processing on the acquired water and electricity account data, and the obtained data analysis result can enable the provider to better know the user behavior and market trend, so that more intelligent decisions and strategies are made, meanwhile, the user can better know own water and electricity consumption habits and corresponding energy consumption trend, energy saving measures are facilitated, and the water and electricity consumption cost is reduced.
In one embodiment, an account binding method is provided for the server 104 of FIG. 1, see FIG. 6, comprising the steps of:
in step 601, the server receives a water and electricity account binding request sent by a user.
Step 602, a server analyzes a water and electricity account binding request to obtain a power consumption account and a water consumption account; or according to the user end identifier of the user end carried by the hydroelectric account binding request, searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier.
Step 603, the server searches for historical electricity consumption data in the first server according to the electricity consumption account based on a first standardized interface between the server and the first server; and searching in the second server according to the water account to obtain historical water use data based on a second standardized interface between the second server and the second server.
Step 604, the server stores the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
Step 605, the server sends the hydroelectric account data to the third target server, where the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
In step 606, the server receives the update data for the hydropower account data sent by the third server, where the update data is obtained by the third server based on the established hydropower account after the third server establishes the hydropower account for the user terminal according to the hydropower account data, and updates the locally stored hydropower account data according to the update data.
In step 607, the server performs data analysis processing on the hydropower account data to obtain a data analysis result, where the data analysis result includes at least one of an electricity consumption trend analysis result and a water consumption trend analysis result, and if an acquisition request for the data analysis result is received, the server responds to the acquisition request based on the data analysis result.
The implementation of the account binding method of the above embodiment is exemplarily described below.
As shown in fig. 7, when the server receives a hydropower account binding request of a user side, firstly, the validity and authority of the hydropower account binding request can be verified, and according to the hydropower account binding request, the server queries and matches a water account and an electricity account corresponding to the user account of the user side from a corresponding water/electricity database or data source through an API interface, if the matching verification is successful, the server can execute a hydropower account binding operation, and the user account and the corresponding water account and electricity account are bound in a correlated manner; if the matching verification fails, the server returns corresponding error information to inform the user that the binding request fails.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an account binding device for realizing the account binding method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the account binding device or devices provided below may be referred to the limitation of the account binding method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 8, there is provided an account binding apparatus comprising:
a first receiving module 801, configured to receive a hydropower account binding request sent by a user side;
the obtaining module 802 is configured to obtain, according to the hydropower account binding request, historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account;
and the storage module 803 is configured to store the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier, so as to obtain hydropower account data corresponding to the user terminal, where the hydropower account data is used for establishing a hydropower account for the user terminal.
In one embodiment, the acquiring module 802 includes:
the determining unit is used for determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
and the searching unit is used for searching and obtaining the historical electricity consumption data according to the electricity consumption account and obtaining the historical water consumption data according to the water consumption account.
In one embodiment, the determining unit is specifically configured to parse the water and electricity account binding request to obtain the electricity account and the water and electricity account; or according to the user terminal identifier of the user terminal carried by the hydropower account binding request, searching and obtaining the electricity consumption account and the water consumption account corresponding to the user terminal identifier.
In one embodiment, the searching unit is specifically configured to search the historical electricity consumption data in the first server according to the electricity consumption account based on a first standardized interface between the searching unit and the first server; and searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
In one embodiment, the apparatus further comprises:
and the sending module is used for sending the hydropower account data to a third target server, and the hydropower account data is used for the third server to establish a hydropower account for the user side according to the hydropower account data.
In one embodiment, the apparatus further comprises:
the second receiving module is used for receiving update data of the hydroelectric account data sent by the third server, wherein the update data is acquired by the third server based on the established hydroelectric account after the third server establishes the hydroelectric account for the user terminal according to the hydroelectric account data;
and the updating module is used for updating the data of the locally stored hydroelectric account data according to the updating data.
In one embodiment, the apparatus further comprises:
the analysis module is used for carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
and the response module is used for responding to the acquisition request based on the data analysis result if the acquisition request aiming at the data analysis result is received.
The various modules in the account binding apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing account binding data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an account binding method.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving a water and electricity account binding request sent by a user;
acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
In one embodiment, the processor, when executing the computer program, performs the steps of:
Determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
and searching to obtain the historical electricity consumption data according to the electricity consumption account, and searching to obtain the historical water consumption data according to the water consumption account.
In one embodiment, the processor, when executing the computer program, performs the steps of:
analyzing the hydroelectric account binding request to obtain the electricity consumption account and the water consumption account; or,
and searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request.
In one embodiment, the processor, when executing the computer program, performs the steps of:
searching in the first server according to the electricity consumption account based on a first standardized interface between the first server and the first server to obtain the historical electricity consumption data;
and searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
And sending the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user side according to the hydropower account data;
and according to the updating data, carrying out data updating on the locally stored hydroelectric account data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
and if an acquisition request for the data analysis result is received, responding to the acquisition request based on the data analysis result.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Receiving a water and electricity account binding request sent by a user;
acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
In one embodiment, the computer program when executed by a processor performs the steps of:
determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
and searching to obtain the historical electricity consumption data according to the electricity consumption account, and searching to obtain the historical water consumption data according to the water consumption account.
In one embodiment, the computer program when executed by a processor performs the steps of:
analyzing the hydroelectric account binding request to obtain the electricity consumption account and the water consumption account; or,
and searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request.
In one embodiment, the computer program when executed by a processor performs the steps of:
searching in the first server according to the electricity consumption account based on a first standardized interface between the first server and the first server to obtain the historical electricity consumption data;
and searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and sending the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user side according to the hydropower account data;
and according to the updating data, carrying out data updating on the locally stored hydroelectric account data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
and if an acquisition request for the data analysis result is received, responding to the acquisition request based on the data analysis result.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
receiving a water and electricity account binding request sent by a user;
acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
In one embodiment, the computer program when executed by a processor performs the steps of: determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
And searching to obtain the historical electricity consumption data according to the electricity consumption account, and searching to obtain the historical water consumption data according to the water consumption account.
In one embodiment, the computer program when executed by a processor performs the steps of: analyzing the hydroelectric account binding request to obtain the electricity consumption account and the water consumption account; or,
and searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request.
In one embodiment, the computer program when executed by a processor performs the steps of: searching in the first server according to the electricity consumption account based on a first standardized interface between the first server and the first server to obtain the historical electricity consumption data;
and searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and sending the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user side according to the hydropower account data;
and according to the updating data, carrying out data updating on the locally stored hydroelectric account data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
and if an acquisition request for the data analysis result is received, responding to the acquisition request based on the data analysis result.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (10)
1. A method of account binding, the method comprising:
receiving a water and electricity account binding request sent by a user;
acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
and storing the historical electricity consumption data and the historical water consumption data in association with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, wherein the hydropower account data is used for establishing a hydropower account for the user side.
2. The method of claim 1, wherein the obtaining historical electricity consumption data of the electricity consumption account and historical water consumption data of the water consumption account corresponding to the user terminal according to the hydroelectric account binding request includes:
determining the electricity consumption account and the water consumption account according to the water electricity account binding request;
and searching to obtain the historical electricity consumption data according to the electricity consumption account, and searching to obtain the historical water consumption data according to the water consumption account.
3. The method of claim 2, wherein the determining the electricity account and the water account based on the water and electricity account binding request comprises:
analyzing the hydroelectric account binding request to obtain the electricity consumption account and the water consumption account; or,
and searching and obtaining the electricity consumption account and the water consumption account corresponding to the user end identifier according to the user end identifier of the user end carried by the water and electricity account binding request.
4. The method of claim 2, wherein the looking up the historical electricity usage data from the electricity usage account and looking up the historical water usage data from the water usage account comprises:
Searching in the first server according to the electricity consumption account based on a first standardized interface between the first server and the first server to obtain the historical electricity consumption data;
and searching in the second server according to the water account based on a second standardized interface between the historical water consumption data and the second server.
5. The method according to claim 1, wherein the method further comprises:
and sending the hydroelectric account data to a third target server, wherein the hydroelectric account data is used for the third server to establish a hydroelectric account for the user terminal according to the hydroelectric account data.
6. The method of claim 5, wherein the method further comprises:
receiving update data for the hydropower account data sent by the third server, wherein the update data is acquired by the third server based on the established hydropower account after the third server establishes the hydropower account for the user side according to the hydropower account data;
and according to the updating data, carrying out data updating on the locally stored hydroelectric account data.
7. The method according to claim 1, wherein the method further comprises:
Carrying out data analysis processing on the hydropower account data to obtain data analysis results, wherein the data analysis results comprise at least one of electricity consumption trend analysis results and water consumption trend analysis results;
and if an acquisition request for the data analysis result is received, responding to the acquisition request based on the data analysis result.
8. An account binding apparatus, the apparatus comprising:
the first receiving module is used for receiving a water and electricity account binding request sent by a user side;
the acquisition module is used for acquiring historical electricity consumption data of an electricity consumption account corresponding to the user side and historical water consumption data of a water consumption account according to the water and electricity account binding request;
the storage module is used for storing the historical electricity consumption data and the historical water consumption data in an associated mode with a preset hydropower account identifier to obtain hydropower account data corresponding to the user side, and the hydropower account data are used for establishing a hydropower account for the user side.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311419287.7A CN117522301A (en) | 2023-10-30 | 2023-10-30 | Account binding method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311419287.7A CN117522301A (en) | 2023-10-30 | 2023-10-30 | Account binding method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117522301A true CN117522301A (en) | 2024-02-06 |
Family
ID=89744799
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311419287.7A Pending CN117522301A (en) | 2023-10-30 | 2023-10-30 | Account binding method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117522301A (en) |
-
2023
- 2023-10-30 CN CN202311419287.7A patent/CN117522301A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110851465A (en) | Data query method and system | |
JP2013519941A (en) | Method and system for e-commerce transaction data accounting | |
US9082155B2 (en) | Real estate analysis system | |
US20190050435A1 (en) | Object data association index system and methods for the construction and applications thereof | |
CN108280134B (en) | Data circulation system and method based on account limit control, storage medium and terminal | |
CN112488745A (en) | Intelligent charge control management method, device, equipment and storage medium | |
US10951540B1 (en) | Capture and execution of provider network tasks | |
CN114168595B (en) | Data analysis method and device | |
CN116450890A (en) | Graph data processing method, device and system, electronic equipment and storage medium | |
CN115168389A (en) | Request processing method and device | |
CN112199426B (en) | Interface call management method, device, server and medium under micro-service architecture | |
CN112181972A (en) | Data management method and device based on big data and computer equipment | |
CN110851758A (en) | Webpage visitor number statistical method and device | |
CN117522301A (en) | Account binding method, device, computer equipment and storage medium | |
CN113052700B (en) | Method and device for determining micro-service call chain | |
CN115481026A (en) | Test case generation method and device, computer equipment and storage medium | |
CN114238289A (en) | Business data cleaning method and device, computer equipment and storage medium | |
CN114742547A (en) | Internet online collection control method, device, medium and electronic equipment | |
CN114116908A (en) | Data management method and device and electronic equipment | |
CN111782696A (en) | Credit investigation data processing method and device | |
US10558647B1 (en) | High performance data aggregations | |
CN114626832A (en) | Service data processing method and device, computer equipment and storage medium | |
CN110060128B (en) | Data management method and system | |
CN114841811A (en) | Quantitative strategy monitoring method and device, computer equipment and storage medium | |
CN115757463A (en) | Data query method, device, equipment, medium and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |