Resource management method and device, electronic equipment and storage medium
By obtaining and analyzing the resource transaction logs of the target customers, determining the resource transaction action sequence and performing traceability processing, the problem of low resource management efficiency in the existing technology is solved, and efficient management and traceability processing of initial resources is achieved.
Patent Information
- Application Number
- CN202411152491.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-12-06
AI Technical Summary
Existing resource management methods are inefficient, especially inability to effectively manage initial resources that have not conducted other forms of resource transactions.
By obtaining the resource transaction log of the target customer, determining the resource transaction action sequence, and tracing the second resource by the resource provider, the management of some resources that have not been processed is realized.
It improves resource management efficiency, can trace and manage resource transaction processes more accurately, and ensures the accuracy and efficiency of dynamic accounting processing.
Smart Images

Figure CN119090514A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a resource management method, device, electronic device and storage medium. Background Art
[0002] Currently, the target customer can obtain initial resources from at least one resource provider, and perform at least one transaction based on the obtained initial resources to obtain other forms of resources, such as digital products or physical objects, etc. Among them, it is necessary to analyze and process the initial resources used by the digital products or physical objects to facilitate the management of the initial resources.
[0003] The current resource management method is mainly based on the target customer's organization, that is, the target customer's organization is the main body, and the resource benefit of the target customer's structure is determined based on other forms of resources obtained from the target customer's transaction, and then the initial resources are managed in combination with the resource benefit. In the above scheme, it is difficult to manage some of the initial resources that have been obtained and have not been traded in other forms of resources, and the resource management efficiency is poor. Summary of the invention
[0004] The present disclosure provides a resource management method, device, electronic device and storage medium to at least solve the problem of poor resource management efficiency in related technologies. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a resource management method is provided, the method comprising: obtaining a resource transaction log of a target customer; the resource transaction log comprises at least one resource transaction data; the resource transaction data comprises a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; according to the resource transaction action in the at least one resource transaction data and the traded resource, at least one resource transaction action sequence is determined; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; according to the at least one resource transaction action sequence, the second resource is subjected to resource provider tracing processing to obtain a tracing processing result.
[0006] According to a second aspect of an embodiment of the present disclosure, a resource management device is provided, the device comprising: a first acquisition module, used to acquire a resource transaction log of a target customer; the resource transaction log comprises at least one resource transaction data; the resource transaction data comprises a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by performing at least one resource transaction; a determination module, used to determine at least one resource transaction action sequence according to the resource transaction action and the traded resource in the at least one resource transaction data; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; a tracing processing module, used to perform resource provider tracing processing on the second resource according to the at least one resource transaction action sequence to obtain a tracing processing result.
[0007] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the resource management method as described above.
[0008] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the resource management method as described above.
[0009] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, including a computer program, wherein when the computer program is executed by a processor of an electronic device, the electronic device is enabled to execute a resource management method as described above.
[0010] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0011] By obtaining the resource transaction log of the target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes resource transaction actions and resources traded by the resource transaction actions; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; according to the resource transaction actions in at least one resource transaction data and the resources traded, at least one resource transaction action sequence is determined; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; according to at least one resource transaction action sequence, the resource provider is traced back to the second resource to obtain a traceability result; wherein, at least one resource transaction action sequence may involve some resources that have been obtained but not traded, and these resources can be managed, thereby improving resource management efficiency.
[0012] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0014] Figure 1 is a flow chart of a resource management method according to the first embodiment of the present disclosure;
[0015] Figure 2 is a flowchart of another resource management method according to the second embodiment of the present disclosure;
[0016] Figure 3 It is a flowchart of resource management;
[0017] Figure 4 is a schematic diagram of the structure of a resource management device according to the third embodiment of the present disclosure;
[0018] Figure 5 is a block diagram of an electronic device that executes a resource management method. DETAILED DESCRIPTION
[0019] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0021] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0022] Figure 1is a flow chart of a resource management method according to the first embodiment of the present disclosure. Figure 1 As shown, the following steps are included.
[0023] In step 101, a resource transaction log of a target customer is obtained; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded in the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by conducting at least one resource transaction.
[0024] It should be noted that the execution subject of the resource management method of the present disclosure is a resource management device. The resource management method of the embodiment of the present disclosure can be executed by the resource management device of the embodiment of the present disclosure, and the resource management device of the embodiment of the present disclosure can be configured in any electronic device, or in any software on any electronic device, to execute the resource management method of the embodiment of the present disclosure. Among them, the resource management device can be, for example, a resource management system in an electronic device. In the following embodiments, the execution subject is taken as an example for explanation.
[0025] In the embodiment of the present disclosure, the process of the resource management system executing step 101 may, for example, be to obtain at least one resource transaction data from the resource processing system through the message middleware; deduplicate the at least one resource transaction data and sort it according to the transaction time point to obtain a resource transaction data set; and determine the resource transaction log of the target customer based on the resource transaction data related to the target customer in the resource transaction data set.
[0026] Among them, a plurality of resource provision activities may be set in the resource processing system, wherein in the resource provision activities, the target customer may receive resources by completing tasks, etc. Among them, it should be noted that the resources received by the target customer in the resource provision activities may be virtual resources, such as points, virtual coins, etc., which may be set according to actual needs.
[0027] In particular, the resource processing system can generate resource transaction data for the target customer's behavior of collecting resources in the resource provision activity. The resource processing system can save the acquired resource transaction data to the message middleware. In particular, the data in the message middleware can be subscribed by the resource management system.
[0028] Among them, the resource processing scenarios to which the resource transaction actions in the resource transaction data belong include at least one of the following: resource distribution scenarios, resource application scenarios, and resource write-off scenarios. Among them, the resource transaction actions in the resource distribution scenario are, for example, resource distribution actions. The resource transaction actions in the resource application scenario are, for example, resource redemption digital product actions, resource redemption physical object actions, non-redemption resource deductions, resource returns for failed digital product redemption, resource returns for failed physical object redemption, order returns for successful digital product redemption, order returns for successful physical object redemption, returns for digital product write-off orders, returns for unused digital products upon expiration, digital products that are invalidated upon expiration (no returns), and resource expiration. The resource transaction actions in the resource write-off scenario are, for example, the write-off of digital products.
[0029] Among them, the setting of message middleware can ensure the separation of resource management system and resource processing system, realize independent processing of resource application and resource accounting, and realize resource accounting processing asynchronously and in quasi-real time, thereby improving resource management efficiency.
[0030] Among them, the setting of multiple resource processing scenarios makes it convenient for the resource management system to distinguish and process resource transaction data under multiple resource processing scenarios, and then establish upstream and downstream relationships of resource transaction data under different resource processing scenarios to obtain a resource transaction action sequence for traceability processing, and then perform traceability processing and resource management processing, thereby further improving resource management efficiency.
[0031] In the embodiments of the present disclosure, the first resource may be, for example, points, virtual coins, etc. The second resource may be, for example, digital products, physical objects, etc. Among them, digital products may be, for example, coupons, audio products, video products, etc. Coupons may be used to redeem audio products, video products, physical objects, etc. Among them, for second resources such as digital products or physical objects that do not need to be redeemed through coupons, etc., they may be obtained through a single resource transaction of the first resource; for second resources such as digital products or physical objects that need to be redeemed through coupons, etc., they may be obtained through multiple resource transactions of the first resource.
[0032] In the disclosed embodiment, the resource transaction data may further include at least one of the following: resource transaction action number, transaction time, resource type traded, and resource quantity traded. When the resource processing scenario to which the resource transaction action in the resource transaction data belongs is a resource distribution scenario, the resource transaction data also includes a resource source; the resource source indicates the resource provider corresponding to the traded resource.
[0033] The resource provider corresponding to the resource being traded refers to the organization to which the resource provision activity that distributes the resource belongs. It should be noted that the resource transaction activity involves both parties to the transaction, and the resources traded in the resource transaction action may include the resources provided by both parties for the transaction. Taking the exchange of the first resource for a digital product as an example, the resource provided by the first party for the transaction is the first resource, and the resource provided by the second party for the transaction is the digital product.
[0034] The resource transaction action number is a number that can uniquely identify the resource transaction action, such as a string of characters, etc. The resource type traded, such as points, digital products, physical objects, etc.
[0035] Among them, the setting of various parameters in the resource transaction data, such as the type of resources traded and the source of resources, facilitates the resource management system to obtain more details from the resource transaction data for traceability processing, thereby further improving resource management efficiency.
[0036] In step 102, at least one resource transaction action sequence is determined according to the resource transaction action in at least one resource transaction data and the resource being traded; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource.
[0037] In the disclosed embodiment, there is a contextual relationship between a series of resource transaction actions involved in the transaction process from the first resource to the second resource, that is, there is a contextual relationship between adjacent resource transaction actions in a series of resource transaction actions. It is assumed that the adjacent resource transaction actions include the first resource transaction action at the front and the second resource transaction action at the back. Among them, the resource obtained by the first resource transaction action is the same resource as the resource used for the transaction by the second resource transaction action. For example, the first resource transaction action can be to collect the first resource from the resource provision activity; the second resource transaction action can be to use the first resource in exchange for the second resource.
[0038] In step 103, according to at least one resource transaction action sequence, a resource provider tracing process is performed on the second resource to obtain a tracing process result.
[0039] In the embodiment of the present disclosure, the process of the resource management system executing step 103 may, for example, be to determine, for each resource transaction action sequence, the second resource traded by the last resource transaction action in the resource transaction action sequence; determine, in combination with the resources traded by each resource transaction action in the resource transaction action sequence, the first resource used to trade for the second resource, as well as the quantity and resource provider of the first resource; and determine the first resource used to trade for the second resource, as well as the quantity and resource provider of the first resource, as the traceability processing result of the second resource.
[0040] There is a contextual relationship between a series of resource trading actions in the resource trading action sequence, that is, among adjacent resource trading actions, the resource used for trading by the later resource trading action is the resource obtained by the earlier resource trading action. Therefore, the resource used for trading by the first resource trading action in the resource trading action sequence can obtain the resource obtained by the last resource trading action in the resource trading action sequence through resource trading performed by a series of resource trading actions. The resource used for trading by the first resource trading action is the first resource. The resource obtained by the last resource trading action is the second resource.
[0041] For example, the resource transaction action sequence may include the following resource transaction actions: resource distribution action, resource redemption digital product action, and order return of successfully redeemed digital products.
[0042] Among them, combining the second resource traded by the last resource trading action in the resource trading action sequence and the resource traded by the first resource trading action in the resource trading action sequence can accurately and quickly determine the traceability processing result of the second resource and improve the traceability efficiency.
[0043] In the embodiment of the present disclosure, the traceability processing result includes the first resource used to trade for the second resource, the quantity of the first resource, and the resource provider. After step 103, the resource management system may also perform the following process: obtaining the resource metering account of the resource provider and the resource metering account of the target customer; and performing account movement processing on the resource metering account of the resource provider and the resource metering account of the target customer according to the first resource and the quantity of the first resource.
[0044] The dynamic processing of the resource metering account of the resource provider may refer to deducting the first resource in the resource metering account of the resource provider according to the quantity of the first resource. After the resource management system performs the dynamic processing on the resource metering account of the resource provider, it may also determine the quantity of the real resource to be deducted based on the quantity of the deducted first resource, the total quantity of the first resource provided by the resource provider, and the quantity of the real resource set by the resource provider for the first resource, and then perform the real resource deduction processing.
[0045] Among them, according to the first resource used for trading to obtain the second resource, the quantity of the first resource and the resource provider in the traceability processing result, the resource metering account of the resource provider and the resource metering account of the target customer are processed dynamically, which can improve the efficiency of the dynamic account processing and ensure the accuracy of the dynamic account processing.
[0046] In the disclosed embodiment, the resource management system may also perform at least one of the following steps to expand the functionality of the resource management system: displaying the account information of each resource metering account in a visual manner; verifying the account dynamic processing process of the resource metering account, archiving the account dynamic information of the resource metering account, etc.
[0047] In summary, by obtaining the resource transaction log of the target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes resource transaction actions and resources traded by the resource transaction actions; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; according to the resource transaction actions in at least one resource transaction data and the resources traded, at least one resource transaction action sequence is determined; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; according to at least one resource transaction action sequence, the resource provider is traced back to the second resource to obtain a traceability result; wherein, at least one resource transaction action sequence may involve some resources that have been obtained but not traded, and these resources can be managed, thereby improving resource management efficiency.
[0048] In the process of determining at least one resource transaction action sequence according to the resource transaction action in at least one resource transaction data and the resource being traded, the resource management system can first determine the resource transaction data sequence under each resource processing scenario; and determine the resource transaction action sequence in combination with the resource transaction data sequence and the transaction action sequence template under each resource processing scenario for traceability processing, thereby improving the traceability processing efficiency. Figure 2 As shown, Figure 2 FIG. 1 is a flowchart of another resource management method according to the second embodiment of the present disclosure, and the specific implementation process is as follows:
[0049] In step 201, a resource transaction log of a target customer is obtained; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded in the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by conducting at least one resource transaction.
[0050] In step 202, according to the resource processing scenario to which the resource transaction action in at least one resource transaction data belongs, a resource transaction data sequence under each resource processing scenario is determined.
[0051] In the embodiment of the present disclosure, the process of the resource management system executing step 202 may, for example, be to obtain, for each resource processing scenario, intermediate resource transaction data of the resource processing scenario to which the resource transaction action belongs; sort and process each intermediate resource transaction data according to the transaction time point to obtain a resource transaction data sequence under the resource processing scenario.
[0052] Among them, the resource transaction actions involved in the resource transaction data sequence in the resource distribution scenario can be the actions of the target customer to collect resources from various resource provision activities. The resource transaction actions involved in the resource transaction data sequence in the resource application scenario can be the actions of the target customer to exchange other forms of resources based on the collected resources. The resource transaction actions involved in the resource transaction data sequence in the resource write-off scenario can be the resource write-off actions based on the resource exchange operation.
[0053] In step 203, a plurality of transaction action sequence templates are obtained.
[0054] In the disclosed embodiment, the transaction action sequence template may include a reference transaction action and all possible downstream transaction actions after the reference transaction action, and / or a reference transaction action and all possible upstream transaction actions before the reference transaction action.
[0055] For example, taking the case where the first resource is exchanged for a digital product and the digital product can be returned to the first resource when it expires and is not used, the transaction action sequence template may include the following transaction actions: Transaction action 1, the first resource is exchanged for a digital product. Transaction action 2, if the first resource is exchanged for a digital product and fails, the first resource is returned. Transaction action 3, if the first resource is exchanged for a digital product successfully and the exchange is returned, the first resource is returned. Transaction action 4, if the first resource is exchanged for a digital product successfully and expires, the first resource is returned.
[0056] For another example, taking the case where the first resource is exchanged for a digital product and the first resource is not returned when the digital product expires and is not used, the transaction action sequence template may include the following transaction actions: Transaction action 1, the first resource is exchanged for a digital product. Transaction action 2, if the first resource is exchanged for a digital product and fails, the first resource is returned. Transaction action 3, if the first resource is exchanged for a digital product successfully and the exchange is returned, the first resource is returned. Transaction action 4, if the first resource is exchanged for a digital product successfully and expires, the first resource is not returned.
[0057] In step 204, for each target resource transaction data in the resource application scenario, multiple transaction action sequence templates are queried according to the resource transaction actions in the target resource transaction data and the traded resources to obtain a target transaction action sequence template matching the target resource transaction data.
[0058] In the embodiment of the present disclosure, the process of the resource management system executing step 204 may, for example, be to determine, for each target resource transaction data in the resource application scenario, and for each transaction action sequence template in multiple transaction action sequence templates, whether the transaction action sequence template contains the resource transaction action in the target resource transaction data; in the case where the transaction action sequence template contains the resource transaction action, determine whether the resource traded by the resource transaction action in the transaction action sequence template is the same as the resource traded by the resource transaction action in the target resource transaction data; if so, determine the transaction action sequence template as the target transaction action sequence template.
[0059] In addition, when the transaction action sequence template does not include the resource transaction action, or when the resource traded by the resource transaction action in the transaction action sequence template is different from the resource traded by the resource transaction action in the target resource transaction data, the transaction action sequence template is determined as a non-target transaction action sequence template.
[0060] It should be noted that the number of target transaction action sequence templates matching the target resource transaction data may be one or more. In the case where the resource transaction action in the target resource transaction data includes exchanging the first resource for a digital product, the two transaction action sequence templates exemplified in step 203 are both target transaction action sequence templates matching the target resource transaction data.
[0061] In step 205, based on the target transaction action sequence template, upstream resource transaction data in the resource transaction data sequence under the resource distribution scenario that matches the target resource transaction data is determined, and / or, based on the target transaction action sequence template, downstream resource transaction data in the resource transaction sequence under the resource verification scenario that matches the target resource transaction data is determined.
[0062] In the embodiments of the present disclosure, in the first example, the resource management system may determine the upstream resource transaction data that matches the target resource transaction data in the resource transaction data sequence in the resource distribution scenario based on the target transaction action sequence template. In the second example, the resource management system may determine the downstream resource transaction data that matches the target resource transaction data in the resource transaction sequence in the resource write-off scenario based on the target transaction action sequence template. In the third example, the resource management system may determine the upstream resource transaction data that matches the target resource transaction data in the resource transaction data sequence in the resource distribution scenario based on the target transaction action sequence template, and determine the downstream resource transaction data that matches the target resource transaction data in the resource transaction sequence in the resource write-off scenario based on the target transaction action sequence template.
[0063] In the embodiments of the present disclosure, in the first example, the process of the resource management system determining the upstream resource transaction data that matches the target resource transaction data can be, for example, determining at least one candidate resource transaction data in the resource transaction data sequence under the resource distribution scenario according to the target transaction action sequence template; selecting at least one upstream resource transaction data from the at least one candidate resource transaction data according to the resources traded in the target resource transaction data and the first quantity of the traded resources; the resources traded in the at least one upstream resource transaction data are consistent with the resources traded in the target resource transaction data, and the total quantity of the resources traded in the at least one upstream resource transaction data matches the first quantity.
[0064] Specifically, for the target transaction action sequence template, the resource management system can first determine the resource transaction action in the target transaction action sequence template that matches the target resource transaction data; and then obtain the upstream resource transaction action of the resource transaction action in the target transaction action sequence template; when the upstream resource transaction action is a resource distribution action, the resource transaction data whose transaction time point in the resource transaction data sequence under the resource distribution scenario is before the transaction time point of the target resource transaction data is determined as candidate resource transaction data.
[0065] It should be noted that, when the upstream resource transaction action is not a resource distribution action, the upstream resource transaction action may be other resource transaction actions in the resource application scenario. For example, the resource transaction action in the target resource transaction data may be a coupon exchange for a physical object; the upstream resource transaction action of a coupon exchange for a physical object may be a points exchange for a coupon; the upstream resource transaction action of a points exchange for a coupon may be a points collection.
[0066] Among them, according to the resources traded in the target resource transaction data and the first quantity of the traded resources, at least one upstream resource transaction data is selected from at least one candidate resource transaction data, which can ensure that the resources received from the upstream resource transaction data are sufficient for the resource transaction actions in the target resource transaction data, thereby ensuring the contextual relevance between the upstream resource transaction data and the target resource transaction data, thereby further improving the accuracy of the determined resource transaction action sequence.
[0067] In step 206, a resource transaction action sequence is determined in combination with the target resource transaction data, the upstream resource transaction data and / or the downstream resource transaction data.
[0068] In step 207, according to at least one resource transaction action sequence, a resource provider tracing process is performed on the second resource to obtain a tracing process result.
[0069] It should be noted that the description of step 201 and step 207 can be referred to Figure 1 The detailed description of step 101 and step 103 in the illustrated embodiment will not be further described here.
[0070] In summary, by obtaining the resource transaction log of the target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; according to the resource processing scenario to which the resource transaction action in at least one resource transaction data belongs, a resource transaction data sequence under each resource processing scenario is determined; a plurality of transaction action sequence templates are obtained; for each target resource transaction data under the resource application scenario, a plurality of transaction action sequence templates are queried according to the resource transaction action in the target resource transaction data and the resources traded, and a target transaction action sequence template matching the target resource transaction data is obtained; according to the target transaction action sequence template, a resource transaction data sequence matching the target resource transaction data under the resource distribution scenario is determined. Matching upstream resource transaction data, and / or, according to the target transaction action sequence template, determining the downstream resource transaction data matching the target resource transaction data in the resource transaction sequence under the resource write-off scenario; determining the resource transaction action sequence in combination with the target resource transaction data, the upstream resource transaction data and / or the downstream resource transaction data; performing resource provider traceability processing on the second resource according to at least one resource transaction action sequence to obtain a traceability processing result; wherein, in the process of determining at least one resource transaction action sequence according to the resource transaction action in at least one resource transaction data and the resource traded, the resource management system can specifically first determine the resource transaction data sequence under each resource processing scenario; and determining the resource transaction action sequence in combination with the resource transaction data sequence under each resource processing scenario and the transaction action sequence template for traceability processing, thereby improving the traceability processing efficiency.
[0071] The following examples are used to illustrate this. Figure 3 The following is a flowchart of resource management. Figure 3The following steps may be included. Step 301, start. Step 302, points application scenario - transaction data collection, and points application scenario - transaction data processing (i.e., collecting and processing resource transaction data under the resource application scenario to obtain a resource transaction data sequence under the resource application scenario). Step 303, points issuance stage - prepaid expense measurement (i.e., collecting and processing resource transaction data under the resource distribution scenario to obtain a resource transaction data sequence under the resource distribution scenario). Step 304, points application stage - marketing activity tracing of redemption orders / deductions / expirations or contingent expenses (determine at least one resource transaction action sequence for tracing processing). Step 305, points application stage - measurement of contingent expenses for failed redemption orders or returns, points application stage - measurement of actual expenses for failed redemption orders or returns, and equity write-off stage - measurement of actual expenses (i.e., dynamic account processing of expense metering accounts based on tracing processing results). Step 306, data verification (verification and processing of the dynamic account processing process of resource metering accounts). Step 307: archiving the cost metering data (ie, archiving the account information of the resource metering account). Step 308: ending.
[0072] In order to implement the above embodiment, the embodiment of the present disclosure proposes a resource management device.
[0073] Figure 4 is a schematic diagram of the structure of a resource management device according to the third embodiment of the present disclosure, referring to Figure 4 The resource management device 400 may include: a first acquisition module 401, a determination module 402 and a tracing processing module 403.
[0074] Among them, the first acquisition module 401 is used to obtain the resource transaction log of the target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; the determination module 402 is used to determine at least one resource transaction action sequence based on the resource transaction action and the traded resource in the at least one resource transaction data; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; the tracing processing module 403 is used to perform resource provider tracing processing on the second resource according to the at least one resource transaction action sequence to obtain a tracing processing result.
[0075] As a possible implementation method of the embodiment of the present disclosure, the first acquisition module 401 is specifically used to obtain at least one resource transaction data from the resource processing system through the message middleware; deduplicate the at least one resource transaction data and sort it according to the transaction time point to obtain a resource transaction data set; determine the resource transaction log of the target customer based on the resource transaction data related to the target customer in the resource transaction data set.
[0076] As a possible implementation method of an embodiment of the present disclosure, the resource transaction data also includes at least one of the following: resource transaction action number, transaction time, transaction resource type, and transaction resource quantity; when the resource processing scenario to which the resource transaction action in the resource transaction data belongs is a resource distribution scenario, the resource transaction data also includes a resource source; the resource source indicates the resource provider corresponding to the transaction resource.
[0077] As a possible implementation manner of the embodiment of the present disclosure, the resource processing scenario to which the resource transaction action in the resource transaction data belongs includes at least one of the following: a resource distribution scenario, a resource application scenario, and a resource write-off scenario.
[0078] As a possible implementation of the embodiment of the present disclosure, the determination module 402 includes a first determination unit, a first acquisition unit, a second acquisition unit, a second determination unit and a third determination unit; the first determination unit is used to determine the resource transaction data sequence in each resource processing scenario according to the resource processing scenario to which the resource transaction action in the at least one resource transaction data belongs; the first acquisition unit is used to acquire multiple transaction action sequence templates; the second acquisition unit is used to query the multiple transaction action sequence templates according to the resource transaction action in the target resource transaction data and the traded resources for each target resource transaction data in the resource application scenario, and acquire a target transaction action sequence template matching the target resource transaction data; the second determination unit is used to determine the upstream resource transaction data matching the target resource transaction data in the resource transaction data sequence in the resource distribution scenario according to the target transaction action sequence template, and / or, according to the target transaction action sequence template, determine the downstream resource transaction data matching the target resource transaction data in the resource transaction sequence in the resource write-off scenario; the third determination unit is used to determine the resource transaction action sequence in combination with the target resource transaction data, the upstream resource transaction data and / or the downstream resource transaction data.
[0079] As a possible implementation method of an embodiment of the present disclosure, the second determination unit is specifically used to determine at least one candidate resource transaction data in the resource transaction data sequence under the resource distribution scenario according to the target transaction action sequence template; select at least one of the upstream resource transaction data from the at least one candidate resource transaction data according to the resources traded in the target resource transaction data and the first quantity of the traded resources; the resources traded in at least one of the upstream resource transaction data are consistent with the resources traded in the target resource transaction data, and the total quantity of the resources traded in at least one of the upstream resource transaction data matches the first quantity.
[0080] As a possible implementation method of the embodiment of the present disclosure, the traceability processing module 403 is specifically used to determine, for each resource transaction action sequence, the second resource traded by the last resource transaction action in the resource transaction action sequence; determine the first resource used to trade to obtain the second resource, as well as the quantity and resource provider of the first resource, in combination with the resources traded by each resource transaction action in the resource transaction action sequence; and determine the first resource used to trade to obtain the second resource, as well as the quantity and resource provider of the first resource, as the traceability processing result of the second resource.
[0081] As a possible implementation manner of an embodiment of the present disclosure, the traceability processing result includes the first resource used to trade to obtain the second resource, the quantity of the first resource, and the resource provider; the device also includes: a second acquisition module and a dynamic account processing module; the second acquisition module is used to obtain the resource metering account of the resource provider and the resource metering account of the target customer; the dynamic account processing module is used to perform dynamic account processing on the resource metering account of the resource provider and the resource metering account of the target customer according to the first resource and the quantity of the first resource.
[0082] In summary, by obtaining the resource transaction log of the target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes resource transaction actions and resources traded by the resource transaction actions; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; according to the resource transaction actions in at least one resource transaction data and the resources traded, at least one resource transaction action sequence is determined; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; according to at least one resource transaction action sequence, the resource provider is traced back to the second resource to obtain a traceability result; wherein, at least one resource transaction action sequence may involve some resources that have been obtained but not traded, and these resources can be managed, thereby improving resource management efficiency.
[0083] Figure 5 is a block diagram of an electronic device that executes a resource management method.
[0084] like Figure 5 As shown, the electronic device 1000 includes:
[0085] The memory 1010 and the processor 1020, the bus 1030 connecting different components (including the memory 1010 and the processor 1020), the memory 1010 stores a computer program, and when the processor 1020 executes the program, the resource management method described in the embodiment of the present disclosure is implemented.
[0086] Bus 1030 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0087] The electronic device 1000 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 1000, including volatile and non-volatile media, removable and non-removable media.
[0088] The memory 1010 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1040 and / or cache memory 1050. The electronic device 1000 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 1060 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 1030 via one or more data medium interfaces. The memory 1010 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present disclosure.
[0089] A program / utility 1080 having a set (at least one) of program modules 1070 may be stored, for example, in the memory 1010, such program modules 1070 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 1070 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0090] The electronic device 1000 may also communicate with one or more external devices 1090 (e.g., keyboard, pointing device, display 1091, etc.), one or more devices that enable a user to interact with the electronic device 1000, and / or any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 1092. Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 1093. Figure 5 As shown, the network adapter 1093 communicates with other modules of the electronic device 1000 via the bus 1030. It should be understood that although Figure 5 Not shown, other hardware and / or software modules may be used in conjunction with electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0091] The processor 1020 executes various functional applications and data processing by running the programs stored in the memory 1010 .
[0092] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the aforementioned explanation of the resource management method of the embodiment of the present disclosure, and will not be repeated here.
[0093] In order to implement the above embodiments, the present disclosure also proposes a storage medium.
[0094] When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the resource management method as described above.
[0095] In order to implement the above embodiments, the present disclosure further provides a computer program product, including a computer program, which, when executed by a processor of an electronic device, enables the electronic device to execute the resource management method as described above.
[0096] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0097] It should be understood that the present disclosure is not limited to the exact structures that have been 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
1. A resource management method, It is characterized in that The method comprises: Obtaining a resource transaction log of a target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by at least one resource transaction; Determine at least one resource transaction action sequence according to the resource transaction action in the at least one resource transaction data and the resource being traded; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; According to the at least one resource transaction action sequence, a resource provider tracing process is performed on the second resource to obtain a tracing process result.
2. The method according to claim 1, It is characterized in that The step of obtaining the resource transaction log of the target customer includes: Acquire at least one resource transaction data from the resource processing system through the message middleware; De-duplication of the at least one resource transaction data and sorting the data according to transaction time points to obtain a resource transaction data set; The resource transaction log of the target customer is determined according to the resource transaction data related to the target customer in the resource transaction data set.
3. The method according to claim 1 or 2, It is characterized in that The resource transaction data also includes at least one of the following: resource transaction action number, transaction time, transaction resource type, and transaction resource quantity; When the resource processing scenario to which the resource transaction action in the resource transaction data belongs is a resource distribution scenario, the resource transaction data also includes a resource source; the resource source indicates a resource provider corresponding to the traded resource.
4. The method according to claim 1, It is characterized in that The resource processing scenario to which the resource transaction action in the resource transaction data belongs includes at least one of the following: a resource distribution scenario, a resource application scenario, and a resource write-off scenario.
5. The method according to claim 4, It is characterized in that The determining at least one resource transaction action sequence according to the resource transaction action in the at least one resource transaction data and the transaction resource comprises: Determine a resource transaction data sequence under each resource processing scenario according to the resource transaction action in the at least one resource transaction data; Get multiple transaction action sequence templates; For each target resource transaction data in the resource application scenario, query the multiple transaction action sequence templates according to the resource transaction actions in the target resource transaction data and the resources traded, and obtain a target transaction action sequence template matching the target resource transaction data; Determine, according to the target transaction action sequence template, upstream resource transaction data that matches the target resource transaction data in the resource transaction data sequence in the resource distribution scenario, and / or, according to the target transaction action sequence template, determine downstream resource transaction data that matches the target resource transaction data in the resource transaction sequence in the resource write-off scenario; The resource transaction action sequence is determined in combination with the target resource transaction data, the upstream resource transaction data and / or the downstream resource transaction data.
6. The method according to claim 5, It is characterized in that The step of determining, according to the target transaction action sequence template, upstream resource transaction data in a resource transaction data sequence in a resource distribution scenario that matches the target resource transaction data includes: Determine, according to the target transaction action sequence template, at least one candidate resource transaction data in the resource transaction data sequence under the resource distribution scenario; At least one of the upstream resource transaction data is selected from the at least one candidate resource transaction data based on the resources traded in the target resource transaction data and the first quantity of the traded resources; the resources traded in at least one of the upstream resource transaction data are consistent with the resources traded in the target resource transaction data, and the total quantity of the resources traded in at least one of the upstream resource transaction data matches the first quantity.
7. The method according to claim 1, It is characterized in that The performing resource provider tracing processing on the second resource according to the at least one resource transaction action sequence to obtain a tracing processing result includes: For each resource transaction action sequence, determining a second resource traded by the last resource transaction action in the resource transaction action sequence; Determine, in combination with the resources traded by each resource trading action in the resource trading action sequence, a first resource used to trade for obtaining the second resource, as well as the quantity and resource provider of the first resource; The first resource used for the transaction to obtain the second resource, as well as the quantity and resource provider of the first resource, are determined as the traceability processing result of the second resource.
8. The method according to claim 1 or 7, It is characterized in that The traceability processing result includes the first resource used for the transaction to obtain the second resource, the quantity of the first resource and the resource provider; the method further includes: Obtaining the resource metering account of the resource provider and the resource metering account of the target customer; According to the first resource and the quantity of the first resource, account movement processing is performed on the resource metering account of the resource provider and the resource metering account of the target customer.
9. A resource management device, It is characterized in that The device comprises: A first acquisition module is used to acquire a resource transaction log of a target customer; the resource transaction log includes at least one resource transaction data; the resource transaction data includes a resource transaction action and a resource traded by the resource transaction action; the resource is a first resource provided by a resource provider, or a second resource obtained by performing at least one resource transaction; A determination module, configured to determine at least one resource transaction action sequence according to the resource transaction action in the at least one resource transaction data and the resource being traded; the resource transaction action sequence is a series of resource transaction actions involved in the transaction process from the first resource to the second resource; The tracing processing module is used to perform resource provider tracing processing on the second resource according to the at least one resource transaction action sequence to obtain a tracing processing result.
10. The device according to claim 9, in, The first acquisition module is specifically used to: Acquire at least one resource transaction data from the resource processing system through the message middleware; De-duplication of the at least one resource transaction data and sorting the data according to transaction time points to obtain a resource transaction data set; The resource transaction log of the target customer is determined according to the resource transaction data related to the target customer in the resource transaction data set.
11. The device according to claim 9 or 10, in, The resource transaction data also includes at least one of the following: resource transaction action number, transaction time, transaction resource type, and transaction resource quantity; When the resource processing scenario to which the resource transaction action in the resource transaction data belongs is a resource distribution scenario, the resource transaction data also includes a resource source; the resource source indicates a resource provider corresponding to the traded resource.
12. The device according to claim 9, in, The resource processing scenario to which the resource transaction action in the resource transaction data belongs includes at least one of the following: a resource distribution scenario, a resource application scenario, and a resource write-off scenario.
13. The device according to claim 12, in, The determination module includes a first determination unit, a first acquisition unit, a second acquisition unit, a second determination unit and a third determination unit; The first determining unit is used to determine a sequence of resource transaction data under each resource processing scenario according to the resource processing scenario to which the resource transaction action in the at least one resource transaction data belongs; The first acquisition unit is used to acquire a plurality of transaction action sequence templates; The second acquisition unit is used to query the multiple transaction action sequence templates for each target resource transaction data in the resource application scenario according to the resource transaction actions in the target resource transaction data and the resources traded, and acquire the target transaction action sequence template matching the target resource transaction data; The second determination unit is used to determine, according to the target transaction action sequence template, upstream resource transaction data that matches the target resource transaction data in the resource transaction data sequence in the resource distribution scenario, and / or, according to the target transaction action sequence template, determine downstream resource transaction data that matches the target resource transaction data in the resource transaction sequence in the resource write-off scenario; The third determination unit is used to determine the resource transaction action sequence in combination with the target resource transaction data, the upstream resource transaction data and / or the downstream resource transaction data.
14. The device according to claim 13, It is characterized in that The second determining unit is specifically configured to: Determine, according to the target transaction action sequence template, at least one candidate resource transaction data in the resource transaction data sequence under the resource distribution scenario; At least one of the upstream resource transaction data is selected from the at least one candidate resource transaction data based on the resources traded in the target resource transaction data and the first quantity of the traded resources; the resources traded in at least one of the upstream resource transaction data are consistent with the resources traded in the target resource transaction data, and the total quantity of the resources traded in at least one of the upstream resource transaction data matches the first quantity.
15. The device according to claim 9, It is characterized in that The traceability processing module is specifically used to: For each resource transaction action sequence, determining a second resource traded by the last resource transaction action in the resource transaction action sequence; Determine, in combination with the resources traded by each resource trading action in the resource trading action sequence, a first resource used to trade for obtaining the second resource, as well as the quantity and resource provider of the first resource; The first resource used for the transaction to obtain the second resource, as well as the quantity and resource provider of the first resource, are determined as the traceability processing result of the second resource.
16. The device according to claim 9 or 15, It is characterized in that The traceability processing result includes the first resource used for the transaction to obtain the second resource, the quantity of the first resource and the resource provider; The device further comprises: a second acquisition module and a dynamic account processing module; The second acquisition module is used to acquire the resource metering account of the resource provider and the resource metering account of the target customer; The dynamic account processing module is used to perform dynamic account processing on the resource metering account of the resource provider and the resource metering account of the target customer according to the first resource and the quantity of the first resource.
17. An electronic device, It is characterized in that include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the resource management method according to any one of claims 1 to 8.
18. A storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource management method according to any one of claims 1 to 8.
19. A computer program product, It is characterized in that The invention comprises a computer program, which, when executed by a processor of an electronic device, enables the electronic device to execute the resource management method according to any one of claims 1 to 8.
