CN115829579A - Resource data processing method, device, server and storage medium - Google Patents

Resource data processing method, device, server and storage medium Download PDF

Info

Publication number
CN115829579A
CN115829579A CN202211509017.0A CN202211509017A CN115829579A CN 115829579 A CN115829579 A CN 115829579A CN 202211509017 A CN202211509017 A CN 202211509017A CN 115829579 A CN115829579 A CN 115829579A
Authority
CN
China
Prior art keywords
resource
interaction
account
information
target user
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
Application number
CN202211509017.0A
Other languages
Chinese (zh)
Inventor
哈显贺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202211509017.0A priority Critical patent/CN115829579A/en
Publication of CN115829579A publication Critical patent/CN115829579A/en
Pending legal-status Critical Current

Links

Images

Abstract

The present disclosure relates to a resource data processing method, apparatus, electronic device, and storage medium, wherein the method comprises: acquiring resource pool description data generated by a resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account; aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to a target user account; and responding to a query request initiated aiming at the resource interaction aggregation information, and displaying the resource interaction aggregation information. By adopting the method and the device, the efficiency of the user for acquiring the resource information in the resource interaction account service can be improved.

Description

Resource data processing method, device, server and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a resource data processing method, an apparatus, a server, and a storage medium.
Background
With the development of internet technology, more and more users realize resource interaction among different users through the internet technology.
However, in the related art, the payment account service usually only directly and respectively stores resource interaction information generated by a plurality of resource interaction events under a certain resource interaction service line, and since the change cost and difficulty of the underlying basic data storage structure of the payment account service are high, a user cannot directly obtain resource data information of a user dimension from the payment account service.
Therefore, the related art has a problem of low efficiency in acquiring the user resource data information.
Disclosure of Invention
The present disclosure provides a resource data processing method, device, server, and storage medium, to at least solve the problem of low resource data information acquisition efficiency in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a resource data processing method, including:
acquiring resource pool description data generated by a resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account;
aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account;
and responding to a query request initiated aiming at the resource interaction aggregation information, and displaying the resource interaction aggregation information.
In a possible implementation manner, the aggregating the resource interaction information corresponding to each resource pool account to obtain the resource interaction aggregation information corresponding to the target user account includes:
aggregating resource residual information corresponding to each resource pool account to obtain residual resource summary information corresponding to the target user account, wherein the residual resource summary information is used as the resource interaction aggregation information; and the residual resource summarizing information is used for representing the sum of the residual resources corresponding to each resource pool account.
In a possible implementation manner, the obtaining the remaining resource information corresponding to the target user account according to aggregating the remaining resource information corresponding to each resource pool account includes:
determining the resource surplus corresponding to each resource pool account according to the resource surplus information corresponding to each resource pool account;
and generating residual resource information corresponding to the target user account according to the total amount of the resource residual amounts corresponding to the resource pool accounts.
In a possible implementation manner, the aggregating the resource interaction information corresponding to each resource pool account to obtain the resource interaction aggregation information corresponding to the target user account includes:
and aggregating the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account, which is used as the resource interaction aggregation information.
In a possible implementation manner, the resource change information includes a resource interaction flow record and a resource interaction order record, and the aggregating resource change information corresponding to each resource pool account to obtain resource change summary information corresponding to the target user account includes:
fusing the resource interaction flow records corresponding to the resource pool accounts to obtain resource interaction flow summarizing records corresponding to the target user accounts, and fusing the resource interaction order records corresponding to the resource pool accounts to obtain resource interaction order summarizing records corresponding to the target user accounts;
and generating resource change summary information corresponding to the target user account according to the resource interaction flow summary record and the resource interaction order summary record.
In a possible implementation manner, after the step of aggregating the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account, the method further includes:
responding to a preset recording statistics triggering condition, and performing statistics processing on the resource change summary information to obtain a resource change statistical result corresponding to the target user account;
and storing the resource change statistical result corresponding to the target user account into a target storage space.
In a possible implementation manner, after the step of storing the resource variation statistical result corresponding to the target user account into a preset target storage space, the method further includes:
receiving a statistical result query request initiated aiming at the target user account;
and responding to the statistical result query request, and displaying the resource change statistical result.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource data processing apparatus including:
the acquisition unit is configured to execute acquisition of resource pool description data stored in the resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to a target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account;
the aggregation unit is configured to perform aggregation of resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account;
a returning unit configured to perform presentation of the resource interaction aggregation information in response to a query request initiated for the resource interaction aggregation information.
In a possible implementation manner, the resource interaction information includes resource residual information, and the aggregation unit is specifically configured to perform aggregation on resource residual information corresponding to each resource pool account to obtain residual resource summary information corresponding to the target user account, which is used as the resource interaction aggregation information; and the residual resource summarizing information is used for representing the sum of the residual resources corresponding to each resource pool account.
In a possible implementation manner, the aggregation unit is specifically configured to determine, according to resource surplus information corresponding to each of the resource pool accounts, a resource surplus corresponding to each of the resource pool accounts; and generating residual resource information corresponding to the target user account according to the total amount of the resource residual amounts corresponding to the resource pool accounts.
In a possible implementation manner, the resource interaction information includes resource change information, and the aggregation unit is specifically configured to perform aggregation on the resource change information corresponding to each resource pool account to obtain resource change summary information corresponding to the target user account, which is used as the resource interaction aggregation information.
In one possible implementation manner, the resource change information includes resource interaction flow records and resource interaction order records, and the aggregation unit is specifically configured to perform fusion of the resource interaction flow records corresponding to the resource pool accounts to obtain a resource interaction flow summary record corresponding to the target user account, and fuse the resource interaction order records corresponding to the resource pool accounts to obtain a resource interaction order summary record corresponding to the target user account; and generating resource change summary information corresponding to the target user account according to the resource interaction flow summary record and the resource interaction order summary record.
In one possible implementation manner, the apparatus is further configured to perform, in response to a preset record statistics triggering condition being met, a statistical processing on the resource change summary information, so as to obtain a resource change statistical result corresponding to the target user account; and storing the resource change statistical result corresponding to the target user account into a target storage space.
In one possible implementation, the apparatus is further configured to perform receiving a statistical result query request initiated for the target user account; and responding to the statistical result query request, and displaying the resource change statistical result.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor implements the resource data processing method according to the first aspect or any one of the possible implementation manners of the first aspect when executing the computer program.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements a resource data processing method according to the first aspect or any one of the possible implementations of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a device reads and executes the computer program, so that the device performs the resource data processing method of any one of the possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: the resource pool description data generated by the resource interaction account service is acquired, the resource pool description data comprises resource interaction information generated by resource interaction events associated with at least two resource pool accounts associated with a target user account in the resource interaction account service, the resource interaction aggregation information corresponding to the target user account is acquired by aggregating the resource interaction information corresponding to each resource pool account, and the resource interaction aggregation information is displayed by responding to a query request initiated aiming at the resource interaction aggregation information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a diagram illustrating an application environment for a resource data processing method in accordance with an illustrative embodiment.
FIG. 2 is a flow diagram illustrating a resource data processing method according to an example embodiment.
FIG. 3 is a system framework diagram illustrating a resource data processing method in accordance with an exemplary embodiment.
FIG. 4 is a flow diagram illustrating another resource data processing method in accordance with an exemplary embodiment.
FIG. 5 is a block diagram illustrating a resource data processing apparatus according to an example embodiment.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure.
It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are both information and data that are authorized by the user or sufficiently authorized by various parties.
The resource data processing method provided by the present disclosure can be applied to the application environment shown in fig. 1. Wherein client 102 communicates with server 104 over 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 the cloud or other network server. The server 104 obtains resource pool description data stored in the resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account; the server 104 aggregates the resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account; the server 104 sends the resource interaction aggregation information to the client 102 in response to a query request initiated by the client 102 for the resource interaction aggregation information, so as to present the resource interaction aggregation information through the client 102. In practical applications, the client 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
Fig. 2 is a flowchart illustrating a resource data processing method according to an exemplary embodiment, which is used in the server in fig. 1, as shown in fig. 2, and includes the following steps.
In step S202, resource pool description data generated by the resource interaction account service is acquired.
The resource pool description data may refer to data for describing resource information of at least two resource pool accounts associated by the target user account in the resource interaction account service.
The resource interaction account service may refer to a business system for a target user account to perform resource interaction. In practical applications, the resource interaction account service may be a payment account system.
The resource pool account can be an account corresponding to a resource pool associated by the target user account in the resource interaction account service. For example, the resource pool may refer to a wallet associated with the target user account at the payment account system.
In practical applications, the payment account system establishes a user account (i.e., a merchant account) for a service party, and establishes different resource pools for different service activities (resource interaction events) of the service party, where the resource pools are used for storing resource data associated with corresponding resource interaction events.
The resource pool description data comprises resource interaction information corresponding to each resource pool account. In practical applications, the resource interaction information is information generated by executing resource interaction events associated with each resource pool account.
The resource interaction information may include, but is not limited to, resource remaining information, resource change information, resource type information, resource attribute information, and the like of the resource pool.
For example, when the resource pool is a wallet associated with a target User account in the payment account system, the resource interaction information corresponding to each wallet account associated with the target User account (User ID, uid) in the payment account system may include, but is not limited to, balance information, running information, order information, and the like.
In specific implementation, a resource data aggregation service (e.g., a C-side wallet service) may be deployed in a server in which a resource interaction account service is deployed, and the resource data aggregation service and the resource interaction account service may be deployed in the same business project at the same time. In the process of executing the resource interaction event associated with each resource pool account, the resource interaction account service may also generate resource interaction information corresponding to each resource pool account according to information generated by executing the resource interaction event associated with each resource pool account, and collect the resource interaction information corresponding to each resource pool account as resource pool description data.
Then, the resource interaction account service generates a target message queue based on the collected resource pool description data, and further the resource data aggregation service consumes the messages in the target message queue, so that the resource data aggregation service obtains the resource pool description data generated by the resource interaction account service, that is, obtains the resource interaction information corresponding to at least two resource pool accounts associated with the target user account in the resource interaction account service.
In step S204, the resource interaction information corresponding to each resource pool account is aggregated to obtain the resource interaction aggregation information corresponding to the target user account.
In the specific implementation, the resource data aggregation service of the server obtains the resource interaction information corresponding to each resource pool account, and the resource data aggregation service can aggregate the resource interaction information corresponding to each resource pool account to obtain and store the resource interaction aggregation information corresponding to the target user account, so that the resource interaction information corresponding to each resource pool account is redundantly consumed in the resource data aggregation service, and the resource interaction aggregation information corresponding to the target user account is stored according to the dimension (i.e., user dimension) of the target user account. For example, the resource interaction aggregation information corresponding to the target user account may refer to total wallet balance information, running view information, running statistics information, and the like corresponding to the target user account. The flow view information may include flow summary information, order summary information, and the like corresponding to the target user account.
It should be noted that, the following description will specifically limit the step of aggregating the resource interaction information corresponding to each resource pool account by the server to obtain the resource interaction aggregation information corresponding to the target user account, and will not be described herein too much.
In step S206, in response to the query request initiated for the resource interaction aggregation information, the resource interaction aggregation information is presented.
In a specific implementation, when the resource data aggregation service needs to be presented (for example, a user needs to check resource interaction aggregation information corresponding to the target user account), a query request for resource interaction aggregation information corresponding to the target user account may be sent to the server through the client, and after the server receives the query request for resource interaction aggregation information, the server may respond to the query request initiated by the client for resource interaction aggregation information, and send the resource interaction aggregation information to the client, so that the resource interaction aggregation information is presented through the client.
For example, referring to fig. 3, fig. 3 provides a system framework schematic diagram of a resource data processing method, where in a case that resource interaction aggregation information is wallet total balance information corresponding to a target user account, when a user needs to check the wallet total balance corresponding to the target user account, the user may send a wallet total balance query request to a server through a client, and the server receives and responds to the wallet total balance query request, and returns wallet total balance information corresponding to the target user account to the client, so that the client displays the wallet total balance information, that is, the total balance of wallets a and wallets B associated with the target user account in the account system, in a balance check page.
For another example, referring to fig. 3 again, when the resource interaction aggregation information is the running statistics information corresponding to the target user account, the running statistics information is information generated by resource interaction operations (e.g., cash withdrawal operations) initiated by the client to the payment account system according to the target user account, when the user needs to check the running statistics information corresponding to the target user account, the user may send a running statistics request to the server through the client, and the server receives and responds to the running statistics request, and returns the running statistics information corresponding to the target user account to the client, so that the client displays the running statistics information in a running statistics page.
According to the resource data processing method, the resource pool description data generated by the resource interaction account service is obtained, the resource pool description data comprises the resource interaction information generated by the resource interaction events associated with at least two resource pool accounts associated with the target user account in the resource interaction account service, the resource interaction aggregation information corresponding to the target user account is obtained by aggregating the resource interaction information corresponding to the resource pool accounts, the resource interaction aggregation information is sent to the client by responding to the query request initiated by the client for the resource interaction aggregation information, the resource interaction aggregation information is presented through the client, therefore, the resource interaction information corresponding to the resource pool accounts from different data sources can be aggregated according to the user dimension without changing the original data storage structure of the resource interaction account service, the resource interaction aggregation information of the user dimension is stored, the client can conveniently perform high-performance query and display on the resource interaction aggregation information corresponding to the target user account according to the user dimension, the user does not need to indirectly determine the resource interaction data of the user dimension, the efficiency of obtaining the resource data information by the user is effectively improved, and good expandability is achieved.
In an exemplary embodiment, the resource interaction information includes resource remaining information, and the resource interaction information corresponding to each resource pool account is aggregated to obtain resource interaction aggregation information corresponding to a target user account, including: determining the resource surplus corresponding to each resource pool account according to the resource surplus information corresponding to each resource pool account; and generating residual resource information corresponding to the target user account as resource interaction aggregation information according to the total amount of the resource residual amounts corresponding to the resource pool accounts.
And the residual resource summarizing information is used for representing the sum of the residual resources corresponding to each resource pool account.
In a specific implementation, when the resource interaction information includes resource residual information, the resource data aggregation service of the server may determine resource residual amounts corresponding to the resource pool accounts according to the resource residual information corresponding to the resource pool accounts; and then, the resource data aggregation service of the server generates residual resource information corresponding to the target user account according to the total amount of the resource residual amounts corresponding to the resource pool accounts, and the residual resource information is used as resource interaction aggregation information.
Specifically, taking the resource pool as a wallet in the payment account system as an example, the resource residual information corresponding to the wallet account may be balance information corresponding to the wallet account, and the resource data aggregation service of the server may determine, according to the balance information corresponding to each wallet account, a balance value corresponding to each wallet account, and generate total balance information corresponding to the target user account based on a sum of the balance values corresponding to each wallet account, as the resource interaction aggregation information. For example, referring back to fig. 3, given that the target user account has associated wallet a and wallet B in the account system, and the resource data aggregation service determines that the balance value of wallet a is 3 and the balance value of wallet B is 6, the resource data aggregation service may determine that the total balance information of the target user account is that the total balance value of wallet is equal to 9.
According to the technical scheme of the embodiment, the resource surplus corresponding to each resource pool account is determined according to the resource surplus information corresponding to each resource pool account; and generating residual resource information corresponding to the target user account as resource interaction aggregation information according to the total amount of the resource residuals corresponding to each resource pool account, so that the resource interaction aggregation information (such as the total wallet balance) corresponding to the target user account can be stored in a user dimension redundancy mode under the condition that the existing data storage structure of the payment account system is not changed, and a subsequent client can conveniently inquire the resource interaction aggregation information corresponding to the target user account at a high performance.
In an exemplary embodiment, the resource interaction information includes resource change information, the resource change information includes resource interaction flow records and resource interaction order records, and in a process of aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to a target user account, the method includes: fusing the resource interaction flow records corresponding to the resource pool accounts to obtain resource interaction flow summarizing records corresponding to the target user accounts, and fusing the resource interaction order records corresponding to the resource pool accounts to obtain resource interaction order summarizing records corresponding to the target user accounts; and generating resource change summary information corresponding to the target user account according to the resource interaction flow summary record and the resource interaction order summary record.
The resource change information may refer to change information (e.g., transfer-out or transfer-in information) of the resource recorded in association with the resource pool account. In practical applications, the resource interaction information may refer to pipeline view data.
In practical applications, the resource interaction information may refer to pipeline view data. Under the condition that the resource interaction information is the pipeline view data, the resource interaction pipeline record can refer to pipeline record data, and the resource interaction order record can refer to order record data.
In a specific implementation, in the case that the resource interaction information is the pipeline view data, the server may fuse pipeline record data corresponding to each resource pool account to obtain pipeline view aggregate information corresponding to the target user account in the process of aggregating the pipeline view data corresponding to each resource pool account by the server to obtain pipeline record summary data corresponding to the target user account, and fuse order record data corresponding to each resource pool account to obtain order record summary data corresponding to the target user account; and finally, generating the streamline view summary data corresponding to the target user account by the server according to the streamline record summary data corresponding to the target user account and the order record summary data corresponding to the target user account.
According to the technical scheme, the pipelined view data corresponding to the target user account can be stored in a user dimension redundancy mode under the condition that the existing data storage structure of the payment account system is not changed, so that a subsequent client can conveniently inquire the pipelined view data corresponding to the target user account in a high-performance mode, the efficiency of a user for acquiring resource data information is effectively improved, and good expandability is achieved.
In an exemplary embodiment, after the step of aggregating the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account, the method further includes: responding to the meeting of a preset record counting triggering condition, and carrying out counting processing on the resource change summary information to obtain a resource change counting result corresponding to the target user account; and storing the resource change statistical result corresponding to the target user account into the target storage space.
The resource change statistical result may refer to running statistics corresponding to the target user account.
In a specific implementation, after the server aggregates the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account, the server may perform statistical processing on the resource change summary information in response to the preset record statistics triggering condition being satisfied. Specifically, the preset recording statistic triggering condition may be determined according to a preset statistic time period, or may be determined according to a received data statistic request. Under the condition that the server receives a data statistics request or determines that the current time point is a statistics time point determined based on the statistics time period, the server judges that a preset record statistics triggering condition is met, and performs statistics processing on the running water summarized data according to a preset statistics item to obtain a running water statistics result corresponding to a target user account; and then, the server stores the running water statistical result corresponding to the target user account into the target storage space.
According to the technical scheme of the embodiment, the resource change summary information is subjected to statistical processing in response to the fact that the preset record statistical trigger condition is met, the resource change statistical result corresponding to the target user account is obtained, and the resource change statistical result is sent to the target storage space, so that the resource change statistical result (such as the pipeline statistical data) corresponding to the target user account can be stored in a user dimension redundancy mode under the condition that the existing data storage structure of the payment account system is not changed, and a follow-up client can conveniently inquire the resource change statistical result corresponding to the target user account in a high-performance mode.
In an exemplary embodiment, after the step of storing the resource variation statistical result corresponding to the target user account into the preset target storage space, the method further includes: receiving a statistical result query request initiated aiming at a target user account; and responding to the statistical result query request, and displaying the resource change statistical result and returning the resource change statistical result to the client.
In a specific implementation, after the server stores the resource change statistical result corresponding to the target user account into a preset target storage space, the client may send a statistical result query request initiated for the target user account to the server under the condition that the client needs to present the resource change statistical result; the server receives and responds to the statistical result query request, and returns the stored resource change statistical result to the client so as to present the resource change statistical result through the client.
For example, when a target user account needs to check running statistics data corresponding to the target user account, the target user account can open a running statistics page in a client to further realize inputting running statistics information check operation to the client, and the client sends a statistics result query request (running statistics check request) initiated for the target user account to a server in response to the running statistics information check operation; the server responds to the running statistics viewing request, and sends the stored running statistics (namely the resource change statistics) corresponding to the target user account to the client, so that the client can display the running statistics in a running statistics page.
According to the technical scheme, the stored resource change statistical result is returned to the client by responding to the statistical result query request initiated by the client for the target user account, so that the resource change statistical result is presented through the client, the resource change statistical result corresponding to the target user account is queried in a user dimension under the condition that the existing data storage structure of the payment account system is not changed, and the running statistical data query performance of the client is effectively improved under the condition that the implementation cost is not increased.
Fig. 4 is a flowchart illustrating another resource data processing method, as shown in fig. 3, for use in the server of fig. 1, according to an example embodiment, including the following steps.
In step S402, resource pool description data generated by the resource interaction account service is acquired; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account; the resource interaction information includes resource remaining information.
In step S404, the resource surplus corresponding to each resource pool account is determined according to the resource surplus information corresponding to each resource pool account.
In step S406, the remaining resource information corresponding to the target user account is generated according to the total amount of the remaining resources corresponding to each resource pool account.
In step S408, in response to a query request initiated by the client for the resource interaction aggregation information, the resource interaction aggregation information is sent to the client, so as to present the resource interaction aggregation information through the client.
It should be noted that, for the specific limitations of the above steps, reference may be made to the above specific limitations of a resource data processing method, which is not described herein again.
It should be understood that although the steps in the flowcharts of fig. 2 and 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
It is understood that the same/similar parts between the embodiments of the method described above in this specification can be referred to each other, and each embodiment focuses on the differences from the other embodiments, and it is sufficient that the relevant points are referred to the descriptions of the other method embodiments.
FIG. 5 is a block diagram illustrating a resource data processing apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes:
an obtaining unit 510 configured to perform obtaining resource pool description data stored in a resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account;
an aggregating unit 520, configured to perform aggregation of resource interaction information corresponding to each resource pool account, to obtain resource interaction aggregation information corresponding to the target user account;
a returning unit 530 configured to perform presenting the resource interaction aggregation information in response to a query request initiated for the resource interaction aggregation information.
In an exemplary embodiment, the resource interaction information includes resource remaining information, and the aggregating unit 530 is specifically configured to perform aggregation on resource remaining information corresponding to each resource pool account to obtain remaining resource summary information corresponding to the target user account, which is used as the resource interaction aggregation information; and the residual resource summarizing information is used for representing the sum of the residual resources corresponding to each resource pool account.
In an exemplary embodiment, the aggregating unit 530 is specifically configured to determine the resource remaining amount corresponding to each resource pool account according to the resource remaining information corresponding to each resource pool account; and generating residual resource information corresponding to the target user account according to the total amount of the resource residual amounts corresponding to the resource pool accounts.
In an exemplary embodiment, the resource interaction information includes resource change information, and the aggregating unit 530 is specifically configured to perform aggregating resource change information corresponding to each resource pool account to obtain resource change summary information corresponding to the target user account, which is used as the resource interaction aggregation information.
In an exemplary embodiment, the resource change information includes resource interaction flow records and resource interaction order records, and the aggregation unit 530 is specifically configured to perform fusion of the resource interaction flow records corresponding to the resource pool accounts to obtain a resource interaction flow summary record corresponding to the target user account, and fuse the resource interaction order records corresponding to the resource pool accounts to obtain a resource interaction order summary record corresponding to the target user account; and generating resource change summary information corresponding to the target user account according to the resource interaction flow summary record and the resource interaction order summary record.
In an exemplary embodiment, the apparatus is further configured to perform, in response to a preset recording statistics trigger condition being met, a statistical processing on the resource variation summary information, so as to obtain a resource variation statistical result corresponding to the target user account; and storing the resource change statistical result corresponding to the target user account into a target storage space.
In an exemplary embodiment, the apparatus is further configured to perform receiving a statistics query request initiated against the target user account; and responding to the statistical result query request, and displaying the resource change statistical result.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 6 is a block diagram illustrating an electronic device 600 for performing the resource data processing method described above according to an example embodiment. For example, the electronic device 600 may be a server. Referring to fig. 6, electronic device 600 includes a processing component 620 that further includes one or more processors and memory resources, represented by memory 622, for storing instructions, such as applications, that are executable by processing component 620. The application programs stored in memory 622 may include one or more modules that each correspond to a set of instructions. Further, the processing component 620 is configured to execute instructions to perform the above-described methods.
The electronic device 600 may further include: the power component 624 is configured to perform power management for the electronic device 600, the wired or wireless network interface 626 is configured to connect the electronic device 600 to a network, and the input/output (I/O) interface 628. The electronic device 600 may operate based on an operating system stored in the memory 622, such as Windows Server, mac OS X, unix, linux, freeBSD, or the like.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as the memory 622 comprising instructions, executable by the processor of the electronic device 600 to perform the above-described method is also provided. The storage medium may be a computer-readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, which includes instructions executable by a processor of the electronic device 600 to perform the above-described method.
It should be noted that the descriptions of the above-mentioned apparatus, the electronic device, the computer-readable storage medium, the computer program product, and the like according to the method embodiments may also include other embodiments, and specific implementations may refer to the descriptions of the related method embodiments, which are not described in detail herein.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for processing resource data, comprising:
acquiring resource pool description data generated by a resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account;
aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account;
and responding to a query request initiated aiming at the resource interaction aggregation information, and displaying the resource interaction aggregation information.
2. The method of claim 1, wherein the resource interaction information includes resource residual information, and the aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account includes:
aggregating resource residual information corresponding to each resource pool account to obtain residual resource summary information corresponding to the target user account, wherein the residual resource summary information is used as the resource interaction aggregation information; and the residual resource summarizing information is used for representing the sum of the residual resources corresponding to each resource pool account.
3. The method according to claim 2, wherein the aggregating the remaining resource information corresponding to each resource pool account to obtain the remaining resource information corresponding to the target user account includes:
determining the resource surplus corresponding to each resource pool account according to the resource surplus information corresponding to each resource pool account;
and generating residual resource information corresponding to the target user account according to the total amount of the resource residual amounts corresponding to the resource pool accounts.
4. The method of claim 1, wherein the resource interaction information includes resource change information, and the aggregating resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account includes:
and aggregating the resource change information corresponding to each resource pool account to obtain resource change summary information corresponding to the target user account, wherein the resource change summary information is used as the resource interaction aggregation information.
5. The method according to claim 4, wherein the resource change information includes a resource interaction flow record and a resource interaction order record, and the aggregating the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account includes:
fusing resource interaction flow records corresponding to the resource pool accounts to obtain resource interaction flow summarizing records corresponding to the target user accounts, and fusing resource interaction order records corresponding to the resource pool accounts to obtain resource interaction order summarizing records corresponding to the target user accounts;
and generating resource change summary information corresponding to the target user account according to the resource interaction flow summary record and the resource interaction order summary record.
6. The method according to claim 4, wherein after the step of aggregating the resource change information corresponding to each resource pool account to obtain the resource change summary information corresponding to the target user account, the method further comprises:
responding to a preset record counting triggering condition, and carrying out counting processing on the resource change summary information to obtain a resource change counting result corresponding to the target user account;
and storing the resource change statistical result corresponding to the target user account into a target storage space.
7. The method according to claim 6, wherein after the step of storing the resource variation statistics corresponding to the target user account in the target storage space, the method further comprises:
receiving a statistical result query request initiated aiming at the target user account;
and responding to the statistical result query request, and displaying the resource change statistical result.
8. A resource data processing apparatus, comprising:
the acquisition unit is configured to execute the acquisition of resource pool description data generated by the resource interaction account service; the resource pool description data comprises resource interaction information corresponding to at least two resource pool accounts related to the target user account in the resource interaction account service; the resource interaction information is information generated by executing resource interaction events associated with each resource pool account;
the aggregation unit is configured to perform aggregation on the resource interaction information corresponding to each resource pool account to obtain resource interaction aggregation information corresponding to the target user account;
and the return unit is configured to execute the query request initiated aiming at the resource interaction aggregation information and display the resource interaction aggregation information.
9. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the resource data processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a server, enable the server to perform the resource data processing method of any one of claims 1 to 7.
CN202211509017.0A 2022-11-29 2022-11-29 Resource data processing method, device, server and storage medium Pending CN115829579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211509017.0A CN115829579A (en) 2022-11-29 2022-11-29 Resource data processing method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211509017.0A CN115829579A (en) 2022-11-29 2022-11-29 Resource data processing method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN115829579A true CN115829579A (en) 2023-03-21

Family

ID=85532520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211509017.0A Pending CN115829579A (en) 2022-11-29 2022-11-29 Resource data processing method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN115829579A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116319017A (en) * 2023-03-23 2023-06-23 国网浙江省电力有限公司 Comprehensive contract account storage method and system based on energy Internet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116319017A (en) * 2023-03-23 2023-06-23 国网浙江省电力有限公司 Comprehensive contract account storage method and system based on energy Internet
CN116319017B (en) * 2023-03-23 2023-08-15 国网浙江省电力有限公司 Comprehensive contract account storage method and system based on energy Internet

Similar Documents

Publication Publication Date Title
US10438295B2 (en) Method and system for E-commerce transaction data accounting
US9501778B2 (en) Delivering personalized recommendations that relate to transactions on display
US8825798B1 (en) Business event tracking system
CN107133309B (en) Method and device for storing and querying process example, storage medium and electronic equipment
CN111046237B (en) User behavior data processing method and device, electronic equipment and readable medium
CN109491998B (en) Method and device for analyzing business data and electronic equipment
CN111400482B (en) Method and device for establishing question-answer pairs
US20210150573A1 (en) Real-time financial system advertisement sharing system
US20220045847A1 (en) Determining a change to product information or user information via hashing
CN111444287B (en) Graph database construction method, associated information query method, device and computing equipment
CN115829579A (en) Resource data processing method, device, server and storage medium
US20150235187A1 (en) Real-Time Data Capture and Distribution System for E-Commerce Payment Transactions
US11687535B2 (en) Automatic computation of features from a data stream
CN116843390A (en) Information display method and device
CN110782310A (en) Method, device and system for asynchronously acquiring user attribute information from third-party platform
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN113407587B (en) Data processing method, device and equipment for online analysis processing engine
CN114676359A (en) Form display method and device, computer equipment and storage medium
CN113553203A (en) Request processing method, device, server and storage medium
US20210248129A1 (en) Stitching event data using identity mappings
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
CN114816586B (en) Visible data loading method and device, computer equipment and storage medium
CN115987782B (en) Cloud hostname generation method, device, equipment, storage medium and program product
CN111325582B (en) Advertisement recall method, advertisement recall device, server and storage medium
US20230140712A1 (en) Systems and methods for generating and using virtual card numbers

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