CN117172839A - Resource data processing method, device, computer equipment and storage medium - Google Patents

Resource data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117172839A
CN117172839A CN202310906602.2A CN202310906602A CN117172839A CN 117172839 A CN117172839 A CN 117172839A CN 202310906602 A CN202310906602 A CN 202310906602A CN 117172839 A CN117172839 A CN 117172839A
Authority
CN
China
Prior art keywords
resource
resource transfer
allowance
transfer account
target
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
CN202310906602.2A
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310906602.2A priority Critical patent/CN117172839A/en
Publication of CN117172839A publication Critical patent/CN117172839A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application relates to a resource data processing method, a device, a computer device and a storage medium. The method comprises the following steps: acquiring a resource transfer request; querying a plurality of resource transfer accounts associated with the user identification; according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts, and screening from the plurality of resource transfer accounts according to the interaction matrixes to obtain a target resource transfer account; acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule; deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account. The method can improve the utilization rate of resources.

Description

Resource data processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a resource data processing method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of computer technology, people can not only get resources off-line, but also get resources shared by the resource sharing terminal in the network through the resource getting terminal. The resources acquired include, but are not limited to, virtual red packs, electronic coupons, loyalty coupons, points, electronic sub coupons, gaming chips, virtual items, and the like.
However, at present, after each resource owner sends the resource to the target user, the target user needs to use the resource in a specific scene when using the resource, and even if the resource use scene is met, a certain condition needs to be met, and the target user can use the received resource, so that the utilization rate of the resource is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource data processing method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the utilization rate.
In a first aspect, the present application provides a method for processing resource data. The method comprises the following steps:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
querying a plurality of resource transfer accounts associated with the user identification;
obtaining interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
In one embodiment, the obtaining the interaction matrix corresponding to the plurality of resource transfer accounts according to the preset knowledge graph, and the screening the target resource transfer account from the plurality of resource transfer accounts according to the interaction matrix includes:
acquiring interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph;
according to the interaction matrix, calculating the weight corresponding to each resource transfer account;
and screening the target resource transfer accounts from the plurality of resource transfer accounts according to the weight.
In one embodiment, the calculating the weight corresponding to each resource transfer account according to the interaction matrix includes:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a degree centrality calculation method;
and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
In one embodiment, the resource data processing method further includes:
acquiring the limit processing time length of the resource allowance;
and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
In one embodiment, the resource data processing method further includes:
acquiring the resource allowance of a target resource transfer account;
and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing duration.
In one embodiment, the resource data processing method further includes:
receiving the shared resource amount;
placing the shared resource amount into the target resource transfer account;
and updating the resource allowance of the target resource transfer account.
In a second aspect, the application further provides a resource data processing device. The device comprises:
the request acquisition module is used for acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
a query module for querying a plurality of resource transfer accounts associated with the user identification;
the screening module is used for acquiring interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
the deduction resource quantity acquisition module is used for acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
and the resource allowance deduction module is used for deducting the allowed deduction resource amount from the resource allowance of the target resource transfer account and updating the resource allowance of the target resource transfer account.
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 which when executing the computer program performs the steps of:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
querying a plurality of resource transfer accounts associated with the user identification;
obtaining interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
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 performs the steps of:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
querying a plurality of resource transfer accounts associated with the user identification;
obtaining interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
querying a plurality of resource transfer accounts associated with the user identification;
obtaining interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
The resource data processing method, the device, the computer equipment, the storage medium and the computer program product acquire a resource transfer request, wherein the resource transfer request carries a user identifier; querying a plurality of resource transfer accounts associated with the user identification; according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts, and screening from the plurality of resource transfer accounts according to the interaction matrixes to obtain a target resource transfer account; acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule; deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account. In the scheme, a target resource transfer account is obtained by screening from a plurality of resource transfer accounts according to a preset knowledge graph, a corresponding allowable deduction resource amount is determined according to a preset resource deduction rule, the allowable deduction resource amount is deducted from the resource allowance of the target resource transfer account, and the allowable deduction resource amount can be directly deducted from the resource allowance of the target resource transfer account, so that the fractional use of the resources is supported, the fractional use in a plurality of scenes is supported, and the use rate of the resources is improved.
Drawings
FIG. 1 is a diagram of an application environment for a resource data processing method in one embodiment;
FIG. 2 is a flow chart of a method of processing resource data in one embodiment;
FIG. 3 is a flowchart of a method for processing resource data according to another embodiment;
FIG. 4 is a block diagram of a resource data processing device in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource data processing method provided by the embodiment of the application can be applied to an application environment shown in figure 1. The resource sharing server 102 sends the shared resource amount to the resource transfer server 104, the resource transfer server 104 receives the shared resource amount, the resource transfer server 104 obtains a resource transfer request, queries a plurality of resource transfer accounts associated with the user identifier, obtains interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, screens the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes, obtains a preset resource deduction rule, determines an allowable deduction resource amount corresponding to the resource transfer request according to the preset resource deduction rule, deducts the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updates the resource allowance of the target resource transfer account.
In one embodiment, as shown in fig. 2, a resource data processing method is provided, and the method is applied to the resource transfer server 104 in fig. 1 for illustration, and includes the following steps:
s100, acquiring a resource transfer request.
The resource transfer request is a request generated according to a resource transfer command input by a user, and aims to transfer the resource of the user account to the other user account; the user identification is an identification for identifying the identity of the user when the user logs in.
Specifically, a user logs in a resource data processing system, inputs user information, wherein the user information comprises a user identifier, the user can select whether to transfer resources in a checking frame, if so, the checking frame is clicked to generate a resource transfer request, and the resource data processing system loaded in a server acquires the resource transfer request, wherein the resource transfer request carries the user identifier.
S200, inquiring a plurality of resource transfer accounts associated with the user identification.
The resource transfer account is an account for transferring the resources to another account, and the resource allowance of the resource transfer account can be obtained through the inquiry of the resource transfer account.
Specifically, each user can be associated with a plurality of resource transfer accounts, and after the user information is acquired, the database is queried for a plurality of resource transfer accounts associated with the user identification through the user identification of the user information.
S300, according to a preset knowledge graph, obtaining interaction matrixes corresponding to the plurality of resource transfer accounts, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes.
The interaction matrix comprises an account for transferring resources and an account for receiving the transferred resources, and the flow direction of the resource transfer can be obtained through the interaction matrix; the target resource transfer account refers to one of the resource transfer accounts selected from the plurality of resource transfer accounts to transfer the resources of the account.
Specifically, the knowledge graph is a directional information heterogeneous network, which comprises nodes, entities and directional edges. And acquiring the resource transfer account labels associated with each user, determining the relation among the resource transfer account labels, namely the flow direction of the resource transfer, generating nodes based on the resource transfer account labels, and generating edges among the nodes based on the relation among the resource transfer account labels to construct a knowledge graph. And obtaining interaction matrixes corresponding to the plurality of resource transfer accounts through the constructed knowledge graph, obtaining the resource transfer flow directions of the plurality of associated resource transfer accounts through the interaction matrixes, and screening the accounts with the highest resource transfer frequency from the plurality of resource transfer accounts according to the interaction matrixes, namely the target resource transfer account.
S400, acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule.
The allowable deduction resource amount is determined according to the resource deduction rule setting and is used for deducting the transfer resource amount.
Specifically, when the user performs resource transfer, if a preset resource deduction rule is met, the amount of transferred resources can be reduced; and determining the allowable deduction resource quantity corresponding to the resource transfer request according to a preset resource deduction rule, and deducting the allowable deduction resource quantity from the resource allowance of the target resource transfer account when the user meets the resource deduction rule.
S500, deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
Specifically, after determining the allowable deduction resource amount according to a preset resource deduction rule, when a resource transfer request is initiated, deducting the allowable deduction resource amount, such as a virtual red packet, from the resource allowance of the target resource transfer account, and when a user pays, deducting a part of payment amount from the virtual red packet through the deduction rule, if the deduction rule is full 10 minus 7, the total amount of the virtual red packet is 20 yuan, and when the payment amount is 11 yuan, deducting 7 yuan from the virtual red packet, and only deducting 4 yuan from the target resource transfer account. And after deducting the allowable deduction resource amount, updating the resource allowance of the target resource transfer account.
In the resource data processing method, a resource transfer request is acquired, a plurality of resource transfer accounts associated with a user identifier are queried, an interaction matrix corresponding to the plurality of resource transfer accounts is acquired according to a preset knowledge graph, a target resource transfer account is obtained by screening from the plurality of resource transfer accounts according to the interaction matrix, a preset resource deduction rule is acquired, an allowable deduction resource amount corresponding to the resource transfer request is determined according to the preset resource deduction rule, the allowable deduction resource amount is deducted from the resource allowance of the target resource transfer account, the resource allowance of the target resource transfer account is updated, and the allowable deduction resource amount can be directly deducted from the resource allowance of the target resource transfer account, so that the fractional use of resources is supported, the fractional use in a plurality of scenes is supported, and the use rate of the resources is improved.
In one embodiment, as shown in fig. 3, S300 includes:
s320, according to a preset knowledge graph, obtaining interaction matrixes corresponding to the plurality of resource transfer accounts.
And S340, calculating the weight corresponding to each resource transfer account according to the interaction matrix.
S360, screening a target resource transfer account from a plurality of resource transfer accounts according to the weight.
Specifically, according to a preset knowledge graph, an interaction matrix corresponding to a plurality of resource transfer accounts is obtained, the resource transfer flow direction of each resource transfer account is obtained through the interaction matrix, and the weight corresponding to each resource transfer account is calculated, so that the use frequency of each resource transfer account is obtained according to the weight corresponding to each resource transfer account, the greater the weight is, the higher the use frequency of the resource transfer account is, and the resource transfer account with the largest weight is selected as a target resource transfer account.
In this embodiment, the interaction matrix corresponding to the plurality of resource transfer accounts is obtained according to the preset knowledge graph, the weight corresponding to each resource transfer account is calculated according to the interaction matrix, and the target resource transfer account is obtained by screening from the plurality of resource transfer accounts according to the weight, so that the resource transfer account with high use frequency can be obtained according to the weight corresponding to each resource transfer account.
In one embodiment, calculating the weight for each resource transfer account according to the interaction matrix includes:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a centrality calculation method; and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
Specifically, the centrality (Degree Centrality) is the most direct metric characterizing node centrality in network analysis. The greater the degree of a node means the greater the centrality of the node, the more important the node is in the network. According to the interaction matrix, through a centrality calculation method, optionally, an importance value corresponding to each resource transfer account can be obtained through calculation methods such as proximity centrality and intermediation centrality, and according to the importance value corresponding to each resource transfer account, a weight corresponding to each resource transfer account is obtained, wherein the larger the importance value is, the larger the weight is.
In this embodiment, the importance value corresponding to each resource transfer account is obtained through a centrality calculation method according to the interaction matrix, and the weight corresponding to each resource transfer account is obtained according to the importance value corresponding to each resource transfer account, so that the weight corresponding to each resource transfer account can be obtained according to the importance value, and the target resource transfer account is screened out according to the weight.
In one embodiment, the resource data processing method further includes:
acquiring the limit processing time of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
Specifically, the limiting processing duration of the resource allowance is obtained, the limiting processing duration can be one week, one month, one year, and the like, if the limiting processing duration is longer than the preset duration, the system automatically withdraws the resource allowance of the target resource transfer account, and the resource allowance of the target resource transfer account is zeroed, for example, the service life of the virtual red packet is one week, if the time from the release of the virtual red packet exceeds one week, the residual amount of the virtual red packet is zeroed.
In this embodiment, by acquiring the processing limiting time length of the resource allowance, if the processing limiting time length is longer than the preset time length, the resource allowance of the target resource transfer account is zeroed, so that the resource data processing time can be limited.
In one embodiment, the resource data processing method further includes:
acquiring the resource allowance of a target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
Specifically, obtaining a resource allowance of a target resource transfer account, wherein the resource allowance can be a residual amount of the virtual red package; if the resource allowance is not zero, pushing the residual effective time of the resource allowance to prompt a message to a user according to the limited processing time, wherein the user can be reminded through various modes such as popup window, message pushing, short message pushing and the like. For example, if the remaining amount of the virtual red package is not zero, the push message alerts the user to use the remaining amount of the virtual red package during the lifetime of the virtual red package.
In this embodiment, by acquiring the resource margin of the target resource transfer account, if the resource margin is not zero, pushing the resource margin remaining effective time prompt message according to the limiting processing duration, the user can be reminded to use the resource margin in the resource margin remaining effective time.
In one embodiment, the resource data processing method further includes:
receiving the shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
Specifically, the resource sharing end sends the shared resource amount to the resource transfer end, the resource transfer end receives the shared resource amount, the shared resource amount is put into the target resource transfer account, and meanwhile, the resource allowance of the target resource transfer account is updated.
In this embodiment, the shared resource amount is received and put into the target resource transfer account, so that the resource allowance of the target resource transfer account is updated, and the shared resource amount can be further processed through the updated resource allowance.
In order to describe the technical scheme and the effect of the resource data processing method in detail, a specific application example is adopted for description. In practical application, the whole resource data processing method comprises the following steps:
step one: and acquiring a resource transfer request, wherein the resource transfer request carries the user identifier.
Step two: a plurality of resource transfer accounts associated with the user identification are queried.
Step three: according to a preset knowledge graph, an interaction matrix corresponding to a plurality of resource transfer accounts is obtained, and according to the interaction matrix, a target resource transfer account is obtained through screening from the plurality of resource transfer accounts. The method specifically comprises the following steps:
(1) And acquiring interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph.
(2) And obtaining the importance value corresponding to each resource transfer account by a centrality calculation method according to the interaction matrix.
(3) And obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
(4) And screening a plurality of resource transfer accounts to obtain a target resource transfer account according to the weight.
Step four: receiving the shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
Step five: acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
step six: deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
Step seven: acquiring the limit processing time of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
Step eight: acquiring the resource allowance of a target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
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 a resource data processing device for realizing the above related resource data processing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more resource data processing apparatus provided below may refer to the limitation of the resource data processing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 4, there is provided a resource data processing apparatus including: a request acquisition module 100, a query module 200, a screening module 300, a deduction resource amount acquisition module 400, and a resource margin deduction module 500, wherein:
the request acquisition module 100 is configured to acquire a resource transfer request, where the resource transfer request carries a user identifier;
a query module 200 for querying a plurality of resource transfer accounts associated with the user identification;
the screening module 300 is configured to obtain interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screen the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
the deduction resource quantity acquisition module 400 is configured to acquire a preset resource deduction rule, and determine an allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
and the resource allowance deduction module 500 is used for deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account and updating the resource allowance of the target resource transfer account.
In one embodiment, the screening module 300 is further configured to obtain interaction matrices corresponding to the plurality of resource transfer accounts according to a preset knowledge graph; according to the interaction matrix, calculating the weight corresponding to each resource transfer account; and screening a plurality of resource transfer accounts to obtain a target resource transfer account according to the weight.
In one embodiment, the screening module 300 is further configured to obtain, according to the interaction matrix, an importance value corresponding to each resource transfer account through a centrality calculation method; and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
In one embodiment, the resource data processing device further comprises a prompt module, configured to obtain a limitation processing duration of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
In one embodiment, the prompt module is further configured to obtain a resource margin of the target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
In one embodiment, the resource data processing device further includes a resource amount sharing module, configured to receive a shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
The respective modules in the above-described resource data processing apparatus may be implemented in whole or in part by software, hardware, or a combination 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 embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. 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 resource data. The network 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 a resource data processing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, 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:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier; querying a plurality of resource transfer accounts associated with the user identification; according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts, and screening from the plurality of resource transfer accounts according to the interaction matrixes to obtain a target resource transfer account; acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule; deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
In one embodiment, the processor when executing the computer program further performs the steps of:
according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts; according to the interaction matrix, calculating the weight corresponding to each resource transfer account; and screening a plurality of resource transfer accounts to obtain a target resource transfer account according to the weight.
In one embodiment, the processor when executing the computer program further performs the steps of:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a centrality calculation method; and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring the limit processing time of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring the resource allowance of a target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
In one embodiment, the processor when executing the computer program further performs the steps of:
receiving the shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
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:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier; querying a plurality of resource transfer accounts associated with the user identification; according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts, and screening from the plurality of resource transfer accounts according to the interaction matrixes to obtain a target resource transfer account; acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule; deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts; according to the interaction matrix, calculating the weight corresponding to each resource transfer account; and screening a plurality of resource transfer accounts to obtain a target resource transfer account according to the weight.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a centrality calculation method; and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the limit processing time of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the resource allowance of a target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving the shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier; querying a plurality of resource transfer accounts associated with the user identification; according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts, and screening from the plurality of resource transfer accounts according to the interaction matrixes to obtain a target resource transfer account; acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule; deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to a preset knowledge graph, obtaining interaction matrixes corresponding to a plurality of resource transfer accounts; according to the interaction matrix, calculating the weight corresponding to each resource transfer account; and screening a plurality of resource transfer accounts to obtain a target resource transfer account according to the weight.
In one embodiment, the computer program when executed by the processor further performs the steps of:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a centrality calculation method; and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the limit processing time of the resource allowance; and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the resource allowance of a target resource transfer account; and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing time.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving the shared resource amount; putting the shared resource amount into a target resource transfer account; and updating the resource allowance of the target resource transfer account.
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.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
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 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 embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not 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 foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of resource data processing, the method comprising:
acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
querying a plurality of resource transfer accounts associated with the user identification;
obtaining interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
deducting the allowable deduction resource amount from the resource allowance of the target resource transfer account, and updating the resource allowance of the target resource transfer account.
2. The method of claim 1, wherein the obtaining the interaction matrix corresponding to the plurality of resource transfer accounts according to the preset knowledge graph, and the screening the target resource transfer account from the plurality of resource transfer accounts according to the interaction matrix comprises:
acquiring interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph;
according to the interaction matrix, calculating the weight corresponding to each resource transfer account;
and screening the target resource transfer accounts from the plurality of resource transfer accounts according to the weight.
3. The method of claim 2, wherein calculating the corresponding weight for each resource transfer account from the interaction matrix comprises:
according to the interaction matrix, obtaining an importance value corresponding to each resource transfer account through a degree centrality calculation method;
and obtaining the weight corresponding to each resource transfer account according to the importance value corresponding to each resource transfer account.
4. The method as recited in claim 1, further comprising:
acquiring the limit processing time length of the resource allowance;
and if the limiting processing time is longer than the preset time, resetting the resource allowance of the target resource transfer account to zero.
5. The method as recited in claim 4, further comprising:
acquiring the resource allowance of a target resource transfer account;
and if the resource allowance is not zero, pushing a residual effective time prompt message of the resource allowance according to the limit processing duration.
6. The method as recited in claim 1, further comprising:
receiving the shared resource amount;
placing the shared resource amount into the target resource transfer account;
and updating the resource allowance of the target resource transfer account.
7. A resource data processing apparatus, the apparatus comprising:
the request acquisition module is used for acquiring a resource transfer request, wherein the resource transfer request carries a user identifier;
a query module for querying a plurality of resource transfer accounts associated with the user identification;
the screening module is used for acquiring interaction matrixes corresponding to the plurality of resource transfer accounts according to a preset knowledge graph, and screening the plurality of resource transfer accounts to obtain a target resource transfer account according to the interaction matrixes;
the deduction resource quantity acquisition module is used for acquiring a preset resource deduction rule, and determining the allowable deduction resource quantity corresponding to the resource transfer request according to the preset resource deduction rule;
and the resource allowance deduction module is used for deducting the allowed deduction resource amount from the resource allowance of the target resource transfer account and updating the resource allowance of the target resource transfer account.
8. 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 6 when the computer program is executed.
9. 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 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310906602.2A 2023-07-21 2023-07-21 Resource data processing method, device, computer equipment and storage medium Pending CN117172839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310906602.2A CN117172839A (en) 2023-07-21 2023-07-21 Resource data processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310906602.2A CN117172839A (en) 2023-07-21 2023-07-21 Resource data processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117172839A true CN117172839A (en) 2023-12-05

Family

ID=88943849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310906602.2A Pending CN117172839A (en) 2023-07-21 2023-07-21 Resource data processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117172839A (en)

Similar Documents

Publication Publication Date Title
WO2016118429A1 (en) System for efficient processing of transaction requests related to an account in a database
CN115334082A (en) Load balancing method, device, computer equipment, storage medium and product
CN116204311A (en) Pod cluster capacity expansion and contraction method and device, computer equipment and storage medium
CN115277570B (en) Traffic distribution method, traffic distribution device, computer equipment and storage medium
CN116578410A (en) Resource management method, device, computer equipment and storage medium
CN117172839A (en) Resource data processing method, device, computer equipment and storage medium
CN116167882A (en) Conditional expression dynamic configuration method, accounting condition calculation method and accounting condition calculation device
CN115408396B (en) Method, device, computer equipment and storage medium for storing business data
CN117455501A (en) Request processing method, apparatus, computer device and storage medium
CN118034885A (en) Task processing method, device, computer equipment and storage medium
CN118035052A (en) Breakpoint event processing method and device and computer equipment
CN114676675A (en) Data processing method, data processing device, computer equipment and storage medium
CN117555487A (en) Data splitting method, device, computer equipment and storage medium
CN117539625A (en) Server resource allocation method, device, computer equipment and storage medium
CN117041161A (en) Service request processing method, device, computer equipment and storage medium
CN116880927A (en) Rule management method, device, computer equipment and storage medium
CN116915864A (en) User request processing method, device, computer equipment and storage medium
CN116366724A (en) Business process processing method, device, computer equipment and storage medium
CN116880961A (en) Service request processing method, device, computer equipment and storage medium
CN117290354A (en) Data processing method, device, computer equipment and storage medium
CN117573305A (en) Service processing method, device, computer equipment, storage medium and program product
CN116451965A (en) Service request processing method and device, computer equipment and storage medium
CN116112442A (en) Request response method, request response device, computer device, storage medium, and program product
CN118152414A (en) Data processing method, apparatus, device, storage medium, and program product
CN117172896A (en) Prediction method, prediction apparatus, computer device, storage medium, and program 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