Resource interaction processing method and device, equipment, storage medium and program product
By obtaining expected interaction information and updating resource interaction tasks when receiving resource interaction events, the problems of low efficiency and low accuracy in the prior art are solved, and more efficient and accurate resource management is achieved.
Patent Information
- Application Number
- CN202411294290.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2025-02-21
AI Technical Summary
The prior art is inefficient and low accuracy when handling resource interaction, and requires manual accounting and identification of resource types and quantities.
When receiving the resource interaction event, the expected interaction information is obtained and the number of resource interactions in the resource interaction task is updated according to the resource quantity difference, so as to perform the correct resource interaction task.
It improves the accuracy and efficiency of resource interaction processing, reduces manual errors, and achieves more accurate and efficient resource management.
Smart Images

Figure CN119494456A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of interactive information processing, and in particular to a resource interactive processing method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of the Internet, various online businesses have brought people the traversal of resource management operations.
[0003] However, since the processing of some services involves multi-party interactions, it is necessary to manually calculate the differences between received and sent interactive operations and manually identify resource types and resource quantities. However, manual calculation is inefficient and prone to operational errors. Summary of the invention
[0004] The present application provides a resource interaction processing method, apparatus, device, storage medium and program product, which can improve the accuracy and efficiency of resource interaction processing.
[0005] In a first aspect, the present application provides a resource interaction processing method, comprising:
[0006] When receiving a resource interaction event, obtaining expected interaction information corresponding to the resource interaction event;
[0007] When there is a difference in resource quantity between the interaction resource quantity corresponding to the resource interaction event and the expected resource quantity in the expected interaction information, obtaining at least one resource interaction task associated with the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity;
[0008] According to the resource quantity difference, updating the resource interaction quantity in each resource interaction task to obtain an updated resource interaction task;
[0009] The updated resource interaction task is executed.
[0010] In a second aspect, the present application provides a resource interaction processing device, including:
[0011] An expected interaction information module, configured to obtain expected interaction information corresponding to a resource interaction event when receiving the resource interaction event;
[0012] A resource quantity difference detection module, configured to obtain at least one resource interaction task associated with the expected interaction information when there is a resource quantity difference between the interaction resource quantity corresponding to the resource interaction event and the expected resource quantity in the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity;
[0013] An interaction task updating module, used for updating the resource interaction quantity in each resource interaction task according to the resource quantity difference, to obtain an updated resource interaction task;
[0014] The interactive task execution module is used to execute the updated resource interactive task.
[0015] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0016] The memory stores computer-executable instructions;
[0017] The processor executes the computer-executable instructions stored in the memory to implement the method described in the present application.
[0018] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the present application.
[0019] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the present application when executed by a processor.
[0020] The present application provides a resource interaction processing method, apparatus, device, storage medium and program product. When a resource interaction event is received, the method compares it with the expected interaction information. When there is expected interaction information corresponding to the resource interaction event and there is a difference in the resource interaction amount between the two, the resource interaction amount in at least one resource interaction task associated with the expected interaction information is adjusted, thereby executing the correct resource interaction task. This can solve the problem of low efficiency and low accuracy of existing accounting interaction operations and improve the accounting efficiency and accuracy of resource interactions. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] Figure 1 A flowchart of a resource interaction processing method provided in an embodiment of the present application;
[0023] Figure 2 A flowchart of a resource interaction processing method provided in an embodiment of the present application;
[0024] Figure 3 A schematic diagram of the structure of a resource interaction processing device provided in an embodiment of the present application;
[0025] Figure 4A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0026] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0027] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0028] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must use the relevant content of the solution. The acquisition, storage, use, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations.
[0029] The present application proposes a resource interaction processing method, apparatus, device, storage medium and program product. When a resource interaction event is received, it is compared with the expected interaction information. When there is expected interaction information corresponding to the resource interaction event and there is a difference in the resource interaction amount between the two, the resource interaction quantity in at least one resource interaction task associated with the expected interaction information is adjusted, thereby executing the correct resource interaction task. This can solve the problem of low efficiency and low accuracy of existing accounting interaction operations and improve the accounting efficiency and accuracy of resource interactions.
[0030] Figure 1 The process of the resource interaction processing method provided in the embodiment of the present application is applicable to the case where the resource interaction operation that occurs is calculated with the resource interaction operation that is expected to occur. The method can be executed by a resource interaction processing device, which can be implemented in the form of hardware and / or software. Figure 1 As shown, the method comprises the following steps:
[0031] S101. When a resource interaction event is received, obtain expected interaction information corresponding to the resource interaction event.
[0032] A resource interaction event may refer to an event of a resource interaction operation that actually occurs, and expected interaction information may refer to an event of a resource interaction operation that is expected to occur. Resource interaction may refer to one party receiving resources and one party sending resources. In an embodiment of the present application, the two parties of resource interaction are resource parties, and in addition to the resource parties, there is also a third party that manages the resources, namely, a resource management object. In one example, in the financial field, the resource is a bond, the resource party is a bank or a personal account, and the resource management object is a bank or financial institution that is different from the resource party.
[0033] According to the resource-related information in the resource interaction event, expected interaction information that is consistent with the resource-related information may be queried as the expected interaction information corresponding to the resource interaction event.
[0034] S102. When there is a difference between the interaction resource amount corresponding to the resource interaction event and the expected resource amount in the expected interaction information, obtain at least one resource interaction task associated with the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity.
[0035] The amount of interactive resources can refer to the number of resources that actually interact in a resource interaction event. The expected amount of resources can refer to the number of resources that interact in an expected event that should occur, or the number of resources that should interact in a resource interaction event. The existence of a resource amount difference indicates that the resource amount of the resource interaction event is different from that of the expected interaction information. The difference in resource amount will cause a change in the resource amount of the resource interaction task to be executed, and it is necessary to trace the source and adjust the resource amount that needs to be processed for subsequent execution tasks.
[0036] A resource interaction task may refer to a task that needs to be performed after a resource interaction event occurs. Expected interaction information may refer to a set of all interaction operations that should occur at a certain point in time. After an interaction operation is performed, a resource interaction task needs to be performed. Accordingly, there is at least one interaction operation and at least one resource interaction task.
[0037] The interaction type may refer to the type of the interaction operation. The resource type may refer to the type of the resource to be processed. The resource management object may refer to the object that manages the resource. The resource interaction quantity may refer to the quantity of the resource to be processed.
[0038] In one example, the resource interaction task may include modifying resource records or interacting with resource parties, etc. In the financial field, the resource interaction task may include account processing, returning resource amounts to resource parties, and receiving resource amounts returned by resource parties, etc.
[0039] S103: updating the resource interaction quantity in each resource interaction task according to the resource quantity difference to obtain an updated resource interaction task.
[0040] The resource quantity difference may refer to the sum of the adjustment amounts of the resource quantities of all resource interaction tasks. Based on the resource quantity difference, the adjustment amount of the resource quantity of a single resource interaction task may be determined, and the adjustment amount of the resource quantity of the single resource interaction task may be added to the resource quantity of the resource interaction task to update the resource quantity of the resource interaction task.
[0041] S104: Execute the updated resource interaction task.
[0042] Executing the updated resource interaction task, implementing post-processing of the resource interaction event, and performing updated post-processing according to the real-time resource interaction event can improve the real-time response of the resource interaction event.
[0043] The embodiment of the present application compares a received resource interaction event with the expected interaction information. When there is expected interaction information corresponding to the resource interaction event and there is a difference in the amount of resource interaction between the two, the amount of resource interaction in at least one resource interaction task associated with the expected interaction information is adjusted, thereby executing the correct resource interaction task. This can solve the problem of low efficiency and low accuracy in existing accounting interaction operations and can improve the accounting efficiency and accuracy of resource interactions.
[0044] Figure 2 A flowchart of a resource interaction processing method provided in an embodiment of the present application. This embodiment is based on the above-mentioned embodiment and will update the number of resource interactions in each resource interaction task according to the resource quantity difference. It is specifically as follows: when the resource interaction event is the first interaction event triggered by a resource management object, each resource interaction task is divided according to the resource management object of each resource interaction task to obtain at least one task group and a resource management object corresponding to each task group; the target difference corresponding to each resource management object in the resource quantity difference is obtained; for the same task group, the resource adjustment amount of the resource interaction task in the task group is calculated according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group and the resource interaction amount of each resource interaction task in the task group; and the resource interaction amount of each resource interaction task is adjusted according to the resource adjustment amount of each resource interaction task. Figure 2 As shown, the method comprises the following steps:
[0045] S201. When a resource interaction event is received, obtain expected interaction information corresponding to the resource interaction event.
[0046] S202. When there is a difference between the interaction resource amount corresponding to the resource interaction event and the expected resource amount in the expected interaction information, obtain at least one resource interaction task associated with the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity.
[0047] S203. When the resource interaction event is the first interaction event triggered by a resource management object, the resource interaction tasks are divided according to the resource management objects of the resource interaction tasks to obtain at least one task group and the resource management objects corresponding to the task groups.
[0048] The first interaction event triggered by the resource management object may refer to an event triggered by the operation of the resource sent by the resource management object to the current resource party. Among them, the number of resource management objects is at least one, but the time point for triggering the first interaction event is the same. The first interaction event may refer to an event triggered by at least one resource management object at the same time point. The current resource party sends resources to the resource management object, and the resource management object proxies the resources. The resource management object will return the proxied resources at at least one time point. When the resources increase or decrease, the resource management object will return the increased or decreased resources at the corresponding time point. The resource management objects of different resource interaction tasks can be the same or different. The resource interaction tasks of the same resource management object are placed in the same task group, and the task group corresponds to the resource management object, and the resource interaction tasks of different resource management objects are placed in different task groups. Task groups and resource management objects correspond one to one.
[0049] S204: According to the resource quantity difference, obtain the target difference corresponding to each resource management object in the resource quantity difference.
[0050] The target difference may refer to a part of the resource quantity difference. The sum of all target differences is the resource quantity difference. The resource quantity difference is divided according to the resource management object to obtain the corresponding target difference of each resource management.
[0051] S205. For the same task group, calculate the resource adjustment amount of the resource interaction tasks in the task group according to the target difference corresponding to the corresponding resource management objects, the interaction type of each resource interaction task in the task group, and the resource interaction quantity of each resource interaction task in the task group.
[0052] The target difference corresponding to the resource management object is used to adjust the resource interaction quantity of the resource interaction task in the task group corresponding to the resource management object. The resource adjustment amount calculation method can be determined for different interaction types, and the resource adjustment amount of each resource interaction task can be calculated based on the proportion of the resource interaction quantity of each resource interaction task.
[0053] S206: Adjust the resource interaction quantity of each resource interaction task according to the resource adjustment amount of each resource interaction task.
[0054] The resource adjustment amount of a resource interaction task is added to the resource interaction quantity of the resource interaction task to adjust the resource interaction quantity of the resource interaction task.
[0055] S207: Execute the updated resource interaction task.
[0056] The embodiment of the present application triggers a first interaction event on a resource management object, divides the task group according to the resource management object, and divides the resource quantity difference into target differences according to the resource management object. For different resource management objects, the resource adjustment amount of the resource interaction task in the task group is calculated based on the target difference, so as to achieve resource difference adjustment adapted to the resource management object, thereby increasing the accuracy and flexibility of resource adjustment.
[0057] Optionally, the resource adjustment amount of the resource interaction tasks in the task group is calculated according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group, and the number of resource interactions of each resource interaction task in the task group, including: dividing the resource interaction tasks in the task group according to the interaction type to obtain at least one subgroup; when there is only one subgroup, determining the target difference corresponding to the corresponding resource management object as the group adjustment amount of the subgroup; when there are multiple subgroups, calculating the group adjustment amount of each subgroup according to the target difference corresponding to the corresponding resource management object and the number of resource interactions of each resource interaction task in each subgroup; the sum of the group adjustment amounts of each subgroup is the target difference corresponding to the corresponding resource management object; for each subgroup, calculating the resource adjustment amount of each resource interaction task according to the group adjustment amount of the subgroup and the number of resource interactions of each resource interaction task in the subgroup.
[0058] A subgroup may refer to a group obtained by dividing resource interaction tasks in a task group according to interaction type. A subgroup includes at least one resource interaction task. A task group includes at least one subgroup. Subgroups correspond to interaction types one by one. The same subgroup represents resource interaction tasks of the same interaction mode. The resource adjustment amount of different interaction types is calculated differently. The target difference corresponding to a resource management object is equivalent to the target difference corresponding to the task group corresponding to the resource management object. The group adjustment amount of a subgroup may refer to the sum of the resource adjustment amounts of the resource interaction tasks in the subgroup.
[0059] If the task group includes one subgroup, the target difference of the task group is the group adjustment of the subgroup. If the task group includes multiple subgroups, the target difference of the task group is the sum of the group adjustments of the multiple subgroups.
[0060] The resource adjustment amount of the resource interaction tasks included in the subgroup can be determined according to the group adjustment amount of the subgroup and the ratio of the resource interaction quantity of the resource interaction tasks included in the subgroup. The sum of the resource adjustment amounts of the resource interaction tasks included in the subgroup is the group adjustment amount of the subgroup.
[0061] In an example, the target difference of the resource management object corresponding to the task group is 100. The task group includes 3 subgroups. The calculated group adjustment amount of subgroup 1 is 10, the group adjustment amount of subgroup 2 is 60, and the group adjustment amount of subgroup 3 is 30.
[0062] The task group is further divided into subgroups by interaction type, and the target difference is divided into the group adjustment amount of the subgroup. The resource adjustment amount of each resource interaction task is calculated at the subgroup granularity. The resource adjustment amount of each resource interaction task can be calculated step by step, and the resource adjustment amount of resource interaction tasks with different resource management objects and different interaction types can be distinguished in a fine-grained manner. The calculation accuracy of the resource adjustment amount is increased, thereby improving the accuracy of the resource adjustment amount. It can also be more adaptable to scenario requirements and calculate the resource adjustment amount in fine-grained manner in different dimensions.
[0063] Optionally, the resource adjustment amount of each resource interaction task is calculated based on the group adjustment amount of the subgroup and the number of resource interactions of each resource interaction task in the subgroup, including: when there are multiple resource interaction tasks in the subgroup, calculating the ratio between the number of resource interactions of each resource interaction task in the subgroup, and the resource types of each resource interaction task in the subgroup are different; determining the resource adjustment amount of each resource interaction task based on the ratio between the group adjustment amount of the subgroup and the number of resource interactions of each resource interaction task in the subgroup.
[0064] When a subgroup includes one resource interaction task, the resource adjustment amount of the resource interaction task is the group adjustment amount of the subgroup. When a subgroup includes multiple resource interaction tasks, the resource types of these multiple resource interaction tasks are different. The total resource interaction quantity can be calculated based on the resource interaction quantity of all resource interaction tasks included in the subgroup, and for each resource interaction task included in the subgroup, the ratio between the resource interaction quantity of the resource interaction task and the total resource interaction quantity is calculated. The product of the ratio and the group adjustment amount of the subgroup is calculated to obtain the resource adjustment amount of the resource interaction task.
[0065] As in the previous example, subgroup 1 includes 1 resource interaction task, and the resource adjustment amount of this resource interaction task is 10. Subgroup 2 includes resource interaction task a and resource interaction task b. The number of resource interactions of resource interaction task a is 5, and the number of resource interactions of resource interaction task 1 is 1. Accordingly, the resource adjustment amount of resource interaction task a is 60*5 / 6=50, and the resource adjustment amount of resource interaction b is 60*1 / 6=10. Subgroup 3 includes 1 resource interaction task, and the resource adjustment amount of this resource interaction task is 30.
[0066] By determining the ratio of the number of resource interactions of each resource interaction task according to the number of resource interactions of multiple resource interaction tasks included in the subgroup, and calculating the resource adjustment amount of each resource interaction task according to the ratio, the resource amount difference is finally evenly distributed to the number of resource interactions of each resource interaction task according to the proportion of the number of resource interactions.
[0067] Optionally, executing the updated resource interaction task includes: when the interaction type of the updated resource interaction task is sending resource party, executing the updated resource interaction task so that the updated resource interaction quantity is sent to the resource party corresponding to the updated resource interaction task.
[0068] The resource interaction task with the interaction type of sending resource party can be a task of sending resources to the resource party. After the resource interaction task is updated, the sent resource interaction quantity has been updated according to the resource adjustment amount. At this time, executing the updated resource interaction task actually sends the updated resource interaction quantity to achieve the correct resource quantity for interaction.
[0069] In addition, when the interaction type is receiving a resource management object, the resource interaction task of this interaction type is used to record the interaction operation, and the number of resources sent by the resource management object is recorded as the updated resource interaction number, so as to record the correct number of resources.
[0070] By sending the updated resource interaction quantity for the resource interaction task of the interaction type of the sending resource party, the correct resource quantity can be sent to achieve correct execution of the resource interaction task.
[0071] Optionally, updating the number of resource interactions in each of the resource interaction tasks based on the difference in resource quantities includes: when the resource interaction event is a second interaction event triggered by a resource party, calculating the ratio between the numbers of resource interactions of each resource interaction task, the resource types of each resource interaction task being different; determining the resource adjustment amount of each resource interaction task based on the difference in resource quantities and the ratio between the numbers of resource interactions of each resource interaction task; and adjusting the number of resource interactions of each resource interaction task based on the resource adjustment amount of each resource interaction task.
[0072] The second interaction event may refer to an event triggered by a resource operation sent by other resource parties to the current resource party. The current resource party is used to implement the resource interaction processing method provided in the embodiment of the present application. Other resource parties may refer to resource parties that can interact with the current resource party, and the other resource parties are different from the current resource party. Since the second interaction event is an event caused by the difference between the number of resources actually sent by other resource parties and the number of resources expected to be sent, the resource is not the content managed by the resource management object. Therefore, the resource interaction task does not need to distinguish between resource management objects, but only needs to distinguish between resource types. Accordingly, different resource interaction tasks have different resource types.
[0073] The total resource interaction quantity can be calculated based on the resource interaction quantity of all resource interaction tasks, and for each resource interaction task, the ratio between the resource interaction quantity of the resource interaction task and the total resource interaction quantity can be calculated. The product of the ratio and the target resource quantity difference can be calculated to obtain the resource adjustment quantity of the resource interaction task.
[0074] By triggering a second interaction event for the resource party, for resource interaction tasks of different resource types, the resource adjustment amount of the resource interaction task in the task group is calculated based on the resource quantity difference, and the resource difference adjustment adapted to the resource party is achieved, which can increase the accuracy and flexibility of resource adjustment.
[0075] Optionally, obtaining the expected interaction information corresponding to the resource interaction event includes: obtaining associated attributes of the resource interaction event; the associated attributes include: event identification information and the number of resource interactions; the event identification information includes: event occurrence time, event occurrence object and event resource identification; obtaining expected attributes of at least one expected interaction information, the expected interaction information includes expected identification information and expected interaction number; the expected identification information includes expected interaction time, expected interaction object and expected resource identification; when there is target interaction information in which the event identification information is the same as the expected identification information, and the difference between the number of resource interactions and the expected number of interactions meets a small difference condition, the target interaction information is determined as the expected interaction information corresponding to the resource interaction event.
[0076] The event identification information is used to identify the event. The event occurrence object may refer to the object that generates the interactive operation with the current resource party. The event occurrence object may include other resource parties or resource management objects, etc. The event resource identification may refer to the identification of the resource of the actual interaction. The expected resource identification may refer to the identification of the resource of the expected interaction. The minor difference condition may refer to the condition for judging that the difference is less than the preset difference threshold. When the difference between the number of resource interactions and the expected number of interactions is less than the difference threshold, it is determined that the difference meets the minor difference condition. The target interaction information may refer to the expected interaction information whose expected identification information is the same as the event identification information, and the difference between the expected number of interactions and the number of resource interactions meets the minor difference condition. The expected identification information is the same as the event identification information, which may mean that the event occurrence time is the same as the expected interaction time, the event occurrence object is the same as the expected interaction object, and the event resource identification is the same as the expected resource identification. In an example, the event occurrence time and the expected interaction time are the same, which may mean that the event occurrence time and the expected interaction time are the same time period, and the time period may be years, months, days, hours, minutes or seconds, etc.
[0077] It can be determined first whether the expected identification information of the expected interaction information is the same as the event identification information. If the expected identification information is different from the event identification information, the expected interaction information does not correspond to the resource interaction event. When the expected identification information is the same as the event identification information, it is determined whether the difference between the expected interaction quantity and the resource interaction quantity meets the slight difference condition. When the difference is greater than or equal to the difference threshold, it is determined that the slight difference condition is not met, and the expected interaction information does not correspond to the resource interaction event.
[0078] When the expected interaction number is the same as the resource interaction number, there is no need to adjust the resource interaction number in the resource interaction task, and the resource interaction task associated with the expected interaction information can be directly executed.
[0079] By determining that the expected interaction information with the same identification information and a small difference in the number of interactions corresponds to the resource interaction events, the resource interaction events with only a difference in the number of resources can be accurately determined, and for the resource interaction events with a difference in the number of resources, the resource interaction quantity of the corresponding resource interaction tasks can be adjusted, and the resource interaction tasks that need to be adjusted can be accurately screened out.
[0080] Optionally, the resource interaction processing method also includes: when a resource increment event is detected, obtaining resource increment information corresponding to the resource increment event, the resource increment information including: resource identification, resource type, at least one interaction time point, resource interaction object and resource quantity; generating at least one resource interaction task based on the resource increment information, and at least one content of different resource interaction tasks is different; obtaining resource interaction tasks at the same interaction time point; for each of the same interaction time points, generating expected interaction information corresponding to the same interaction time point based on the resource interaction tasks at the same interaction time point, and associating the resource interaction tasks at the same interaction time point with the expected interaction information.
[0081] A resource increment event may refer to an event in which a resource is increased. In one example, the resource is a bond, and a resource increment event may be an event in which a bond is purchased. One resource interaction task corresponds to one interaction time point. One interaction time point may correspond to multiple resource interaction tasks. In the resource increment information, the number of resource types is at least one, and the number of resource interaction objects is at least one. For the same resource identifier, the same resource type, and the same resource interaction object, the resource quantity is divided into sub-quantities corresponding to each interaction time point according to each interaction time point, and one resource interaction task is generated for one interaction time point and the corresponding sub-quantity. At least one content of different resource interaction tasks is different, which may refer to at least one of the interaction type, resource type, resource management object, and resource interaction quantity included in the resource interaction task being different.
[0082] The resource interaction tasks at the same interaction time point are aggregated to obtain expected interaction information, and at least one resource interaction task at the same interaction time point is associated with the expected interaction information. The expected resource identifier of the expected interaction information is the set of resource identifiers of each resource interaction task at the same interaction time point; the expected interaction object of the expected interaction information is the set of resource interaction objects of each resource interaction task at the same interaction time point; the event occurrence event of the expected interaction information is the same interaction time point. The expected interaction quantity of the expected interaction information is the sum of the sub-quantities of each resource interaction task at the same interaction time point.
[0083] By determining the resource interaction tasks according to the resource increment information corresponding to the resource increment event, and aggregating the resource interaction tasks according to the interaction time point, the expected interaction information of the interaction time point is generated. Multiple time points can be configured for resource accounting, and the accounting time points can be flexibly set according to the resource increment event to achieve resource accounting adapted to different resource increment events, thereby increasing the flexibility and control granularity of resource accounting.
[0084] Optionally, generating at least one resource interaction task based on the resource incremental information includes: when the resource incremental event includes a first incremental event, determining the expected number of interactions corresponding to each interaction time point based on the incremental coefficient corresponding to the resource incremental information, each interaction time point and the number of resources in the resource incremental information; the first incremental event is a resource incremental event generated by interacting with a resource management object; generating a resource interaction task corresponding to each interaction time point based on the resource incremental information and the expected number of interactions corresponding to each interaction time point; the expected interaction time of the resource interaction task corresponding to the interaction time point is the same as the interaction time point.
[0085] The first incremental event can be a resource incremental event generated by the interaction between the current resource party and the resource management object. It is actually an event in which the resource management object adds resources to the current resource party. The operation of the current resource party sending resources to the resource management object generates a resource incremental event. In an example, the resource is a bond. The bond will generate interest during the holding period. The generated interest is a resource incremental event. The added resources are the generated interest. The interest can also be converted into bonds, that is, interest is also a resource.
[0086] The incremental coefficient is used to calculate the added resources. The expected number of interactions may refer to the number of resources that should be interacted with a certain resource identifier, a certain resource type, and a certain resource interaction object at the interaction time point. In fact, the resource quantity of the resource increment event is configured with the number of resources that should be interacted corresponding to at least one resource identifier, at least one resource type, and at least one resource interaction object at each interaction time point, and the number of resources that should be interacted can be determined as the accounting quantity. According to the duration between each interaction time point and the current time point, the accounting quantity corresponding to each interaction time point, and the incremental coefficient, the increase quantity of each interaction time point is calculated, for example, the product between the calculation duration, the accounting quantity and the incremental coefficient is calculated to obtain the increase quantity. According to the accumulation of the accounting quantity and the increase quantity, the expected number of interactions at the interaction time point can be obtained. Among them, the incremental coefficient corresponds to the resource identifier one by one. Among them, the expected number of interactions corresponding to one interaction time point is at least one, and one expected number of interactions may refer to the number of interactions that should be corresponding to one resource identifier, one resource type, and one resource interaction object. One expected number of interactions may generate a resource interaction task corresponding to the interaction time point corresponding to the expected number of interactions and the corresponding generated resource interaction task.
[0087] Through the first incremental event triggered for the resource management object, the expected number of interactions corresponding to each interaction time point is calculated according to the incremental coefficient corresponding to the resource incremental information, each interaction time point and the number of resources. This is used as the number of resources for interaction of the resource interaction task, and the resource interaction task is generated accordingly. The expected number of interactions and resource interaction tasks corresponding to each item in the resource incremental information are generated, which can adapt to the changeable and complex resource incremental information and increase the dimension of the resource interaction task.
[0088] Optionally, generating at least one resource interaction task based on the resource incremental information includes: when the resource incremental event includes a second incremental event, generating a resource interaction task corresponding to each interaction time point based on each interaction time point and resource quantity in the resource incremental information; the second incremental event is a resource incremental event generated by interaction with the resource party.
[0089] The second incremental event can be a resource incremental event generated by the interaction between the current resource party and other resource parties. It is actually an incremental event of resources added by other resource parties to the current resource party. Since the second incremental event is a resource sent directly by other resource parties, that is, the interaction time point of the resource is the current time point. In fact, there is no resource increment for this resource at the current resource party, and the resource increment has been accumulated at other resource parties. The number of resources that should be interacted, that is, the accounting number, corresponding to at least one resource identifier, at least one resource type, and at least one resource interaction object at each interaction time point configured according to the resource quantity can be directly determined as the expected interaction quantity.
[0090] The expected number of interactions corresponding to an interaction time point is at least one, and an expected number of interactions may refer to the number of interactions that should be corresponding to a resource flag, a resource type, and a resource interaction object. An expected number of interactions may generate a resource interaction task. The interaction time point corresponding to the expected number of interactions corresponds to the correspondingly generated resource interaction task.
[0091] According to the resource increment information and the expected number of interactions corresponding to each interaction time point, a resource interaction task corresponding to each interaction time point is generated; the expected interaction time of the resource interaction task corresponding to the interaction time point is the same as the interaction time point.
[0092] In addition, when the resource incremental event includes a first incremental event and a second incremental event, the resource interaction task generated based on the first incremental event and the resource interaction task generated based on the second incremental event are aggregated to obtain at least one expected interaction information and at least one resource interaction task associated with each expected interaction information.
[0093] By triggering the second incremental event for other resource parties, the expected number of interactions corresponding to each interaction time point is calculated according to the interaction time point and resource quantity in the resource incremental information, and the resource interaction task is used as the interaction resource quantity of the resource interaction task. The resource interaction task is generated accordingly, and the expected number of interactions and resource interaction tasks corresponding to each item in the resource incremental information are generated. This can adapt to the changeable and complex resource incremental information and increase the dimension of the resource interaction task.
[0094] In a specific example, the resource is a bond, the resource management object is a custodian, the number of custodians is at least one, and the other resource parties are counterparties. The interaction time point is the interest collection date. The resource type can be an accounting classification. Exemplarily, resource types may include AMC (financial assets measured at amortized cost), FVOCI (financial asset over comprehensive income), and FVTPL (financial asset measured at fair value through profit & loss).
[0095] In the field of financial management, (1) according to the accounting three-classification requirements of bond holdings, record bond positions according to the accounting classification; according to the management requirements of the bond position custodian, record bond positions according to the custodian. (2) Generate measurement sub-category bond duration transactions according to the bond positions recorded in the accounting classification; generate custodian bond duration transactions according to the bond positions held by the custodian; generate counterparty interest duration transactions according to the contract of lending or pledging after the purchase of bonds, that is, resource interaction tasks that adjust resource records, or resource interaction tasks with the interaction type of receiving other resource parties; generate counterparty interest duration transactions according to the contract of borrowing or pledging bonds, that is, resource interaction tasks with the interaction type of sending other resource parties. (3) According to the comparison between the receivable funds of the custodian bond duration transaction and the actual interest collected by the custodian, the difference fund system automatically adjusts the account, that is, the resource interaction task with the interaction type of adjusting resource records; according to the comparison between the receivable funds of the counterparty interest duration transaction and the actual interest paid by the counterparty, the difference fund system automatically adjusts the account, that is, the resource interaction task with the interaction type of adjusting resource records.
[0096] (1) Position measurement and custodian bank position management
[0097] The first incremental event includes: the signing of a bond purchase and sale contract; the second incremental event includes: the signing of a bond lending contract and / or the signing of a buy-back repurchase contract, etc.
[0098] For bond trading contracts, bond positions are recorded in three categories according to the purpose of financial market transactions, and the positions of custodians are recorded according to the custody status of bond positions.
[0099] For bond lending contracts, the accounting type of the borrowing position is recorded according to the deposit account of the borrowed bond position, and the accounting type of the lending position is recorded according to the withdrawal account of the lending bond position.
[0100] For outright repo contracts, the accounting type of the deposited bond position is recorded according to the deposit account of the deposited bond position, and the accounting type of the outgoing bond position is recorded according to the withdrawal account of the outgoing bond position.
[0101] Note: Borrowed and loaned bond positions must be returned to the original holders upon maturity. Therefore, these bond positions are not investment-held positions and will not be included in the accounting of the three-category position records. They will only affect the number of bond positions held by the custodian institution.
[0102] (2) Transaction management during the duration period:
[0103] The resources currently held by the resource party, that is, the distribution of bond positions is as follows:
[0104] Calculate the three-category bond positions + borrowed or pledged bond positions = custodian bond positions + lent or pledged bond positions
[0105] According to bond lending or buy-back transactions, if bond interest is collected during the contract period, the custodian institution will pay the interest amount to the current bond position holder, and this interest amount truly belongs to the original bond position holder. Therefore, when the current resource party borrows or pledges bonds, the current resource party should return the bond interest received to the counterparty on the same day; when the current resource party lends or pledges bonds, the counterparty should pay the bond interest received to the current resource party on the same day.
[0106] According to the above rules, the duration contract is automatically generated on the interest collection date according to the position record, and the expected interaction information is generated:
[0107] Generate measurement sub-class bond duration transactions based on the bond positions in the accounting classification records, thereby triggering accounting processing, that is, the resource interaction task with the interaction type of adjusting resource records;
[0108] Generate custodian bond duration transactions based on the custodian's bond positions, thereby triggering the generation of receivable records (receivables from the custodian), that is, the resource interaction task with the interaction type of adjusting resource records;
[0109] Generate a counterparty interest collection duration transaction based on the contract for lending or pledging the bonds after purchase, thereby triggering the generation of receivables records (receivables from the counterparty), that is, a resource interaction task with the interaction type of adjusting resource records;
[0110] Generate a counterparty interest payment duration transaction based on the bond borrowing or pledge contract, thereby triggering the generation of interest payments to the counterparty, that is, the interaction type is a resource interaction task that sends other resource parties.
[0111] In an example, as shown in Table 1, the three data pieces whose transaction direction is buy are data generated by a bond trading contract; the one data piece whose transaction direction is reverse repurchase is data generated by a bond lending contract; and the one data piece whose transaction direction is positive repurchase is data generated by a buy-back repurchase contract.
[0112] Table 1
[0113]
[0114] The expected interaction information is obtained by integrating the resource increment events, and the expected interaction information is shown in Table 2.
[0115] Table 2
[0116]
[0117] Table 3
[0118]
[0119] According to different resource types, different interaction types, different resource management objects, and different resource interaction quantities, at least one resource interaction task is determined, and each resource interaction task is shown in Table 3. Table 3 shows that the current resource party expects to receive resources with a resource interaction quantity of 160 from resource management object 1, a resource interaction quantity of 10 from resource management object 2, and a resource interaction quantity of 20 from the counterparty, i.e., other resource parties, for a total of 190 resources; and then return 10 resources to the counterparty, and the resource interaction quantity of the resources actually included in the holding is 180.
[0120] After the expected interaction information is generated, a certain interaction time point is reached at the current time point, for example, 0618. When a first interaction event triggered by a resource management object and / or a second interaction event triggered by other resource parties is received, that is, when a resource interaction event is monitored, the resource interaction event is compared with the expected interaction information produced in priority. The expected interaction information can be understood as receivables, and the resource interaction event can be understood as actual receipts.
[0121] Process the current resource party interest-collecting duration transaction of the account, automatically compare the difference between the actual receipt and the receivable, and identify the resource quantity difference, given that the loaned securities come from the self-held resource position after purchase. First, add the resource quantity difference to the resource interaction quantity of other resource parties to make it consistent with the actual receipt of resources, and actually add the resource quantity difference to the corresponding measurement sub-category resource duration transaction to increase or decrease the resource interaction quantity accordingly.
[0122] The resource management object's bond life cycle transactions automatically compare the difference between actual receipts and receivables. Given that the resource management object's holdings come from the bond positions held after purchase and the bond positions incorporated or borrowed, and considering that the interest collected from the incorporated or borrowed bonds needs to be returned to other resource parties, the resource quantity difference is identified. First, the resource quantity difference is added to the resource management object's bond life cycle transaction resource interaction quantity to be consistent with the actual received resources. Secondly, the interest payment resource quantity difference of other resource parties and the measurement sub-category resource quantity difference are calculated separately, that is, the group adjustment quantity. The group adjustment quantity is allocated according to the ratio of the resource interaction quantity to other resource parties / the resource interaction quantity of the bond resource management object dimension. The remaining group adjustment quantity is allocated to all measurement sub-categories during the life cycle, and the allocation ratio sub-category transaction resource quantity during the life cycle / the total resource adjustment quantity of all measurement sub-categories. When calculating the last measurement sub-category, the resource quantity difference needs to be subtracted from the calculated resource adjustment quantity of the measurement sub-category. Alternatively, the resource adjustment quantity is still obtained by using the allocation ratio sub-category transaction resource quantity during the life cycle / the total resource quantity of all measurement sub-categories.
[0123] A=X / Ⅲ*Ⅱ
[0124] B=(XA) / ∑Ⅰ*Ⅰ
[0125] The difference in the amount of interest-paying resources of other resource parties is A
[0126] The difference in transaction resource volume during the duration of the measurement sub-category is B
[0127] The difference in the amount of interest-collecting resources during the transaction period of the resource management object bond is X
[0128] The self-held bond position, that is, the resources held by other resource parties is I
[0129] The bond position that is integrated or borrowed, that is, the resource interaction amount of sending other resource parties is II
[0130] The bond position of other resource parties, that is, the amount of resource interaction received from other resource parties is III
[0131] In one example, for the interaction type of receiving other resource parties, that is, the adjustment process of the resource interaction task during the counterparty's interest collection period is shown in Table 4:
[0132] Table 4
[0133]
[0134] For the interaction type of receiving resource management object 1, the adjustment process of the resource interaction task during the resource management object lifetime is shown in Table 5:
[0135] Table 5
[0136]
[0137] For the interaction type of receiving resource management object 2, the adjustment process of the resource interaction task during the resource management object lifetime is shown in Table 6:
[0138] Table 6
[0139]
[0140] Combining the adjustment process of the above resource interaction tasks, the final adjustment information is obtained, as shown in Table 7:
[0141] Table 7
[0142]
[0143] In fact, the interest collected was 166.4 from resource management object 1, 10.4 from resource management object 2, and 20.8 from other resource parties, totaling 197.6; 10.4 was returned to other resource parties, and the actual interest income was 187.2.
[0144] The embodiment of the present application supports automatic adjustment of the difference receivable resource volume to ensure that the position account is recorded correctly, and automatically adjusts the difference resource volume income to ensure that the contract account, i.e., the resource volume income account, is recorded correctly, thereby avoiding manual identification and manual processing, improving processing efficiency, and avoiding manual operation risks.
[0145] Figure 3 This is a schematic diagram of the structure of the resource interaction processing device provided in the embodiment of the present application. Figure 3 As shown, the resource interaction processing device includes:
[0146] The expected interaction information module 301 is used to obtain the expected interaction information corresponding to the resource interaction event when receiving the resource interaction event;
[0147] A resource quantity difference detection module 302 is used to obtain at least one resource interaction task associated with the expected interaction information when there is a resource quantity difference between the interaction resource quantity corresponding to the resource interaction event and the expected resource quantity in the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity;
[0148] An interaction task updating module 303 is used to update the resource interaction quantity in each resource interaction task according to the resource quantity difference to obtain an updated resource interaction task;
[0149] The interactive task execution module 304 is used to execute the updated resource interactive task.
[0150] Optionally, the interactive task updating module 303 includes:
[0151] A first task division unit is used for, when the resource interaction event is a first interaction event triggered by a resource management object, dividing each resource interaction task according to the resource management object of each resource interaction task to obtain at least one task group and a resource management object corresponding to each task group;
[0152] A first difference division unit, configured to obtain, according to the resource quantity difference, a target difference corresponding to each resource management object in the resource quantity difference;
[0153] A resource adjustment amount calculation unit, used for calculating the resource adjustment amount of the resource interaction tasks in the task group according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group and the resource interaction quantity of each resource interaction task in the task group for the same task group;
[0154] The task adjustment unit is used to adjust the resource interaction quantity of each resource interaction task according to the resource adjustment amount of each resource interaction task.
[0155] Optionally, the resource adjustment amount calculation unit is specifically used to:
[0156] Dividing the resource interaction tasks in the task group according to the interaction type to obtain at least one subgroup;
[0157] When there is only one subgroup, determining the target difference corresponding to the corresponding resource management object as the group adjustment amount of the subgroup;
[0158] When there are multiple subgroups, the group adjustment amount of each subgroup is calculated according to the target difference corresponding to the corresponding resource management object and the resource interaction quantity of each resource interaction task in each subgroup; the sum of the group adjustment amounts of each subgroup is the target difference corresponding to the corresponding resource management object;
[0159] For each of the subgroups, the resource adjustment amount of each of the resource interaction tasks is calculated according to the group adjustment amount of the subgroup and the resource interaction quantity of each of the resource interaction tasks in the subgroup.
[0160] Optionally, the resource adjustment amount calculation unit is specifically used to:
[0161] When there are multiple resource interaction tasks in the subgroup, calculating the ratio between the resource interaction quantities of the resource interaction tasks in the subgroup, and the resource types of the resource interaction tasks in the subgroup are different;
[0162] The resource adjustment amount of each resource interaction task is determined according to the ratio between the group adjustment amount of the subgroup and the resource interaction quantity of each resource interaction task in the subgroup.
[0163] Optionally, the interactive task execution module 304 includes:
[0164] The resource sending unit is used to execute the updated resource interaction task when the interaction type of the updated resource interaction task is sending resource party, so that the updated resource interaction quantity is sent to the resource party corresponding to the updated resource interaction task.
[0165] Optionally, the interactive task updating module 303 includes:
[0166] a resource ratio calculation unit, configured to calculate a ratio between the resource interaction quantities of each resource interaction task in the subgroup when the resource interaction event is a second interaction event triggered by a resource party, wherein the resource types of each resource interaction task in the subgroup are different;
[0167] a resource adjustment amount determining unit, configured to determine the resource adjustment amount of each resource interaction task according to the resource amount difference and the ratio between the resource interaction quantity of each resource interaction task, wherein the resource type of each resource interaction task is different;
[0168] The resource adjustment unit is used to adjust the resource interaction quantity of each resource interaction task according to the resource adjustment amount of each resource interaction task.
[0169] Optionally, the expected interaction information acquisition module includes:
[0170] An event attribute acquisition unit, used to acquire the associated attributes of the resource interaction event; the associated attributes include: event identification information and the number of resource interactions; the event identification information includes: event occurrence time, event occurrence object, and event resource identification;
[0171] An expected attribute acquisition unit, used to acquire an expected attribute of at least one expected interaction information, wherein the expected interaction information includes expected identification information and expected interaction quantity; the expected identification information includes expected interaction time, expected interaction object and expected resource identification;
[0172] The expected matching unit is used to determine the target interaction information as the expected interaction information corresponding to the resource interaction event when there is target interaction information whose event identification information is the same as the expected identification information and the difference between the resource interaction quantity and the expected interaction quantity meets the slight difference condition.
[0173] Optionally, the resource interaction processing device further includes:
[0174] An incremental event triggering module is used to obtain event information corresponding to the resource incremental event when a resource incremental event is detected, wherein the resource incremental information includes: resource identification, resource type, at least one interaction time point, resource management object and resource quantity;
[0175] An interactive task generating module, configured to generate at least one resource interactive task according to the resource increment information, wherein at least one content of different resource interactive tasks is different;
[0176] Time division module, used to obtain resource interaction tasks at the same interaction time point;
[0177] The task association module is used to generate expected interaction information corresponding to the same interaction time point according to the resource interaction tasks at the same interaction time point for each of the same interaction time points, and associate the resource interaction tasks at the same interaction time point with the expected interaction information.
[0178] Optionally, the interactive task generating module is specifically used to:
[0179] When the resource increment event includes a first increment event, determining the expected number of interactions corresponding to each interaction time point according to the increment coefficient corresponding to the resource increment information, each interaction time point and the number of resources in the resource increment information; the first increment event is a resource increment event generated by interacting with a resource management object;
[0180] According to the resource increment information and the expected number of interactions corresponding to each interaction time point, a resource interaction task corresponding to each interaction time point is generated; the expected interaction time of the resource interaction task corresponding to the interaction time point is the same as the interaction time point.
[0181] Optionally, the interactive task generating module is specifically used to:
[0182] When the resource incremental event includes a second incremental event, a resource interaction task corresponding to each interaction time point is generated according to each interaction time point and resource quantity in the resource incremental information; the second incremental event is a resource incremental event generated by interaction with the resource party.
[0183] The resource interaction processing device provided in the embodiment of the present invention can execute the resource interaction processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0184] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0185] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0186] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0187] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a resource interaction processing method.
[0188] In some embodiments, the resource interaction processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the resource interaction processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the resource interaction processing method in any other appropriate manner (e.g., by means of firmware).
[0189] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0190] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0191] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0192] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0193] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0194] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0195] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the resource interaction processing method provided in any embodiment of the present application.
[0196] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0197] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A resource interaction processing method, characterized in that: include: When receiving a resource interaction event, obtaining expected interaction information corresponding to the resource interaction event; When there is a difference in resource quantity between the interaction resource quantity corresponding to the resource interaction event and the expected resource quantity in the expected interaction information, obtaining at least one resource interaction task associated with the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity; According to the resource quantity difference, updating the resource interaction quantity in each resource interaction task to obtain an updated resource interaction task; The updated resource interaction task is executed.
2. The method according to claim 1, characterized in that The updating of the resource interaction quantity in each resource interaction task according to the resource quantity difference includes: When the resource interaction event is a first interaction event triggered by a resource management object, the resource interaction tasks are divided according to the resource management objects of the resource interaction tasks to obtain at least one task group and a resource management object corresponding to each task group; According to the resource quantity difference, obtaining the target difference corresponding to each resource management object in the resource quantity difference; For the same task group, according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group and the resource interaction quantity of each resource interaction task in the task group, the resource adjustment amount of the resource interaction task in the task group is calculated; According to the resource adjustment amount of each resource interaction task, the resource interaction quantity of each resource interaction task is adjusted.
3. The method according to claim 2, characterized in that The calculating the resource adjustment amount of the resource interaction task in the task group according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group, and the resource interaction quantity of each resource interaction task in the task group includes: Dividing the resource interaction tasks in the task group according to the interaction type to obtain at least one subgroup; When there is only one subgroup, determining the target difference corresponding to the corresponding resource management object as the group adjustment amount of the subgroup; When there are multiple subgroups, the group adjustment amount of each subgroup is calculated according to the target difference corresponding to the corresponding resource management object and the resource interaction quantity of each resource interaction task in each subgroup; the sum of the group adjustment amounts of each subgroup is the target difference corresponding to the corresponding resource management object; For each of the subgroups, the resource adjustment amount of each of the resource interaction tasks is calculated according to the group adjustment amount of the subgroup and the resource interaction quantity of each of the resource interaction tasks in the subgroup.
4. The method according to claim 3, characterized in that The calculating the resource adjustment amount of each resource interaction task according to the group adjustment amount of the subgroup and the resource interaction quantity of each resource interaction task in the subgroup includes: When there are multiple resource interaction tasks in the subgroup, calculating the ratio between the resource interaction quantities of the resource interaction tasks in the subgroup, and the resource types of the resource interaction tasks in the subgroup are different; The resource adjustment amount of each resource interaction task is determined according to the ratio between the group adjustment amount of the subgroup and the resource interaction quantity of each resource interaction task in the subgroup.
5. The method according to claim 1, characterized in that: The executing the updated resource interaction task includes: When the interaction type of the updated resource interaction task is sending resource party, the updated resource interaction task is executed so that the updated resource interaction quantity is sent to the resource party corresponding to the updated resource interaction task.
6. The method according to claim 1, characterized in that The updating of the resource interaction quantity in each resource interaction task according to the resource quantity difference includes: When the resource interaction event is a second interaction event triggered by a resource party, calculating a ratio between resource interaction quantities of each of the resource interaction tasks, where resource types of each of the resource interaction tasks are different; Determining a resource adjustment amount for each of the resource interaction tasks according to the resource amount difference and a ratio between the resource interaction quantities of each of the resource interaction tasks; According to the resource adjustment amount of each resource interaction task, the resource interaction quantity of each resource interaction task is adjusted.
7. The method according to claim 1, characterized in that The acquiring the expected interaction information corresponding to the resource interaction event includes: Acquire the associated attributes of the resource interaction event; the associated attributes include: event identification information and the number of resource interactions; the event identification information includes: event occurrence time, event occurrence object and event resource identification; Acquire at least one expected attribute of expected interaction information, wherein the expected interaction information includes expected identification information and expected interaction quantity; the expected identification information includes expected interaction time, expected interaction object and expected resource identification; When there is target interaction information whose event identification information is the same as the expected identification information and the difference between the resource interaction quantity and the expected interaction quantity satisfies a slight difference condition, the target interaction information is determined as the expected interaction information corresponding to the resource interaction event.
8. The method according to claim 7, characterized in that Also includes: When a resource increment event is detected, resource increment information corresponding to the resource increment event is obtained, where the resource increment information includes: a resource identifier, a resource type, at least one interaction time point, a resource interaction object, and a resource quantity; generating at least one resource interaction task according to the resource increment information, wherein at least one content of different resource interaction tasks is different; Get resource interaction tasks at the same interaction time point; For each of the same interaction time points, expected interaction information corresponding to the same interaction time point is generated according to the resource interaction task at the same interaction time point, and the resource interaction task at the same interaction time point is associated with the expected interaction information.
9. The method according to claim 8, characterized in that The generating at least one resource interaction task according to the resource increment information includes: When the resource increment event includes a first increment event, determining the expected number of interactions corresponding to each of the interaction time points according to the increment coefficient corresponding to the resource identifier in the resource increment information, the resource increment information, and the resource quantity; the first increment event is a resource increment event generated by interaction with a resource management object; According to the resource increment information and the expected number of interactions corresponding to each interaction time point, a resource interaction task corresponding to each interaction time point is generated; the expected interaction time of the resource interaction task corresponding to the interaction time point is the same as the interaction time point.
10. The method according to claim 8, characterized in that The generating at least one resource interaction task according to the resource increment information includes: When the resource incremental event includes a second incremental event, a resource interaction task corresponding to each interaction time point is generated according to each interaction time point and resource quantity in the resource incremental information; the second incremental event is a resource incremental event generated by interaction with the resource party.
11. A resource interaction processing device, characterized in that: include: An expected interaction information acquisition module, configured to acquire expected interaction information corresponding to a resource interaction event when receiving the resource interaction event; A resource quantity difference detection module, configured to obtain at least one resource interaction task associated with the expected interaction information when there is a resource quantity difference between the interaction resource quantity corresponding to the resource interaction event and the expected resource quantity in the expected interaction information; the resource interaction task includes an interaction type, a resource type, a resource management object, and a resource interaction quantity; An interaction task updating module, used for updating the resource interaction quantity in each resource interaction task according to the resource quantity difference, to obtain an updated resource interaction task; The interactive task execution module is used to execute the updated resource interactive task.
12. The device according to claim 11, characterized in that The interactive task updating module comprises: A first task division unit is used for, when the resource interaction event is a first interaction event triggered by a resource management object, dividing each resource interaction task according to the resource management object of each resource interaction task to obtain at least one task group and a resource management object corresponding to each task group; A first difference division unit, configured to obtain, according to the resource quantity difference, a target difference corresponding to each resource management object in the resource quantity difference; A resource adjustment amount calculation unit, used for calculating the resource adjustment amount of the resource interaction tasks in the task group according to the target difference corresponding to the corresponding resource management object, the interaction type of each resource interaction task in the task group and the resource interaction quantity of each resource interaction task in the task group for the same task group; The task adjustment unit is used to adjust the resource interaction quantity of each resource interaction task according to the resource adjustment amount of each resource interaction task.
13. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the resource interaction processing method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the resource interaction processing method according to any one of claims 1 to 11.
15. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the resource interaction processing method according to any one of claims 1 to 11.