Resource processing method and apparatus, and device, storage medium and program product

By acquiring and analyzing business data sets and determining the conditions and methods for resource transfer, efficient secondary transfer of resources is achieved, solving the problem of difficulty in maintaining resource transfer balance in existing technologies and improving the efficiency and applicability of resource processing.

WO2025213984A1PCT designated stage Publication Date: 2025-10-16TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/080219
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-07
Filing Date
2025-03-03
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

Existing technologies are unable to process historical resource transfer records in massive resource transfer events in a timely manner, making it difficult to maintain resource transfer balance.

Method used

By obtaining business data sets, determining the target business data that meets the resource transfer conditions, and determining the resource transfer method based on historical resource transfer volumes, secondary resource transfer is achieved.

Benefits of technology

It improves the efficiency and applicability of resource processing, maintains the balance between resource types in a timely manner, and reduces the timeliness risk of resource processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025080219_16102025_PF_FP_ABST
    Figure CN2025080219_16102025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a resource processing method and apparatus, and a device, a storage medium and a program product. The method comprises: acquiring a first service dataset from a preset dataset, wherein the first service dataset comprises at least one piece of service data, and each piece of service data is used for recording a first historical resource transfer amount of a first resource type and a second historical resource transfer amount of a second resource type when resources are transferred between the first resource type and the second resource type; on the basis of the second historical resource transfer amount, determining target service data meeting a resource transfer condition among the at least one piece of service data; on the basis of the first historical resource transfer amount and the second historical resource transfer amount, determining a first resource transfer mode of the first resource type, wherein the first resource transfer mode comprises resource transfer-in or resource transfer-out; and on the basis of the first resource transfer mode, transferring resources of the first historical resource transfer amount of the first resource type.
Need to check novelty before this filing date? Find Prior Art

Description

Resource processing method, device, equipment, storage medium and program product

[0001] The present application claims priority to the Chinese patent application No. 202410411581.1, filed on April 7, 2024, and entitled "Resource processing method, device, equipment and storage medium". TECHNICAL FIELD

[0002] The present application relates to the technical field of computer, and in particular, to a resource processing method, device, equipment, storage medium and program product.

[0003] BACKGROUND

[0004] With the development of computer technology, resource flow based on the Internet has appeared, which brings great convenience to people's daily life. In the process of international trade, frequent foreign exchange transactions will generate various foreign exchange transaction records. In the process of resource flow, secondary resource transfer needs to be performed on different historical resource transfer records to maintain resource transfer balance, such as continuously maintaining foreign exchange balance in foreign exchange transactions.

[0005] However, due to the continuous occurrence of massive resource flow events, the existing technology cannot timely process resources based on historical resource transfer records. SUMMARY

[0006] The embodiments of the present application provide a resource processing method, device, equipment, storage medium and program product, which can improve the resource processing efficiency and have high applicability.

[0007] In one aspect, the embodiments of the present application provide a resource processing method, which is executed by an electronic device, and the method comprises:

[0008] obtaining a first business data set from a preset data set, the first business data set comprising at least one piece of business data, wherein each piece of business data is used to record a first historical resource transfer amount of a first resource type and a second historical resource transfer amount of a second resource type when resources are transferred between the first resource type and the second resource type;

[0009] determining target business data in the at least one piece of business data that meets a resource transfer condition according to the second historical resource transfer amount;

[0010] determining a first resource transfer mode of the first resource type according to the first historical resource transfer amount and the second historical resource transfer amount, the first resource transfer mode comprising resource transfer-in or resource transfer-out; and

[0011] transferring resources of the first historical resource transfer amount of the first resource type according to the first resource transfer mode.

[0012] In another aspect, an embodiment of the present application provides a resource processing apparatus, which comprises:

[0013] a data acquisition module, configured to acquire a first service data set from a preset data set, the first service data set comprising at least one piece of service data, wherein each piece of service data is used to record a first historical resource transfer amount of a first resource type and a second historical resource transfer amount of a second resource type when resources are transferred between the first resource type and the second resource type;

[0014] a data analysis module, configured to determine target service data meeting a resource transfer condition from the at least one piece of service data according to the second historical resource transfer amount;

[0015] a transfer mode determination module, configured to determine a first resource transfer mode of the first resource type according to the first historical resource transfer amount and the second historical resource transfer amount, the first resource transfer mode comprising resource transfer-in or resource transfer-out; and

[0016] a resource transfer module, configured to transfer resources of the first historical resource transfer amount of the first resource type according to the first resource transfer mode.

[0017] In another aspect, an embodiment of the present application provides an electronic device, which comprises a processor and a memory, the processor and the memory being connected to each other;

[0018] The memory is used to store a computer program;

[0019] The processor is used to execute a resource processing method provided by an embodiment of the present application when the computer program is invoked.

[0020] In another aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, the computer program being executed by a processor to implement a resource processing method provided by an embodiment of the present application.

[0021] In another aspect, an embodiment of the present application provides a computer program product, which comprises a computer program, the computer program being executed by a processor to implement a resource processing method provided by an embodiment of the present application.

[0022] BRIEF DESCRIPTION OF DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art without creative effort based on these drawings are within the scope of protection of the present application.

[0024] FIG. 1 is a schematic diagram of a resource processing method according to an embodiment of the present application;

[0025] FIG. 2 is a flowchart of a resource processing method according to an embodiment of the present application;

[0026] FIG. 3 is a schematic diagram of a data structure of a service data set according to an embodiment of the present application;

[0027] FIG. 4 is another schematic diagram of a data structure of a service data set according to an embodiment of the present application;

[0028] FIG. 5 is a schematic diagram of a data structure of a condition set according to an embodiment of the present application;

[0029] FIG. 6 is a schematic diagram of a scenario of a resource processing method according to an embodiment of the present application;

[0030] FIG. 7 is a schematic diagram of a scenario of changing a resource state according to an embodiment of the present application;

[0031] FIG. 8 is a schematic diagram of a scenario of adding a resource entry according to an embodiment of the present application;

[0032] FIG. 9 is a schematic diagram of a structure of a resource processing apparatus according to an embodiment of the present application;

[0033] FIG. 10 is a schematic diagram of a structure of an electronic device according to an embodiment of the present application.

[0034] Embodiment

[0035] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0036] The resource processing method provided by the embodiments of the present application can be applied to a related resource management platform for providing resource transfer decision and management, and is used to realize secondary transfer of a specific amount of resource according to historical resource flow records between a first resource type and a second resource type in service data.

[0037] As shown in FIG. 1, after the electronic device 100 obtains the first business data set 101 from a plurality of business data sets in a preset data set, the electronic device 100 can determine the historical resource flow record between the first resource type and the second resource type recorded by each piece of business data in the first business data set 101.

[0038] Further, when it is determined that the target business data 102 satisfying the resource transfer condition exists in the first business data set 101 according to the second historical resource transfer amount of the second resource type, the first resource transfer mode of the first resource type can be determined according to the first historical resource transfer amount of the first resource type and the second historical resource transfer amount of the second resource type in the target business data 102, the first resource transfer mode including resource transfer-in or resource transfer-out.

[0039] Based on this, for the target business data 102, the secondary resource transfer 103 of the specific resource amount of the first resource type in the target business data can be realized according to the first resource transfer mode, and the specific resource amount is the first historical resource transfer amount.

[0040] In this embodiment of the present application, the resource processing method can be implemented based on the electronic device 100. The electronic device 100 can be a server, a terminal, or a corresponding functional module. The specific implementation can be determined based on the actual application scenario, which is not limited herein.

[0041] The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms.

[0042] The terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a vehicle-mounted terminal, a flying device, a smart home appliance (such as a smart television), or a wearable device, etc.

[0043] Referring to FIG. 2, FIG. 2 is a flowchart of the resource processing method provided in the embodiment of the present application. As shown in FIG. 2, the resource processing method provided in the embodiment of the present application is executed by an electronic device, such as the electronic device 100 in FIG. 1, and can include the following steps:

[0044] S21, obtaining a first business data set from a preset data set, the first business data set including at least one business data, each piece of business data being used to record a historical resource transfer amount between a first resource type and a second resource type.

[0045] In some embodiments, the preset data set comprises at least one business data set, each business data set comprising at least one business data, each business data being used to record a first historical resource transfer amount of the first resource type and a second historical resource transfer amount of the second resource type when resources are transferred between the first resource type and the second resource type.

[0046] The resource type refers to the category or classification of the resource, which is used to classify and count the resource amount by different dimensions.

[0047] The second resource type can also be referred to as a basic resource type, which plays a core role in resource transfer, resource measurement, resource statistics, and resource management.

[0048] The first resource type is a resource type that can be used to classify and count the resource amount in resource transfer, resource measurement, resource statistics, and resource management.

[0049] As an example, in the foreign exchange trading scenario, CNY is the second resource type, and EUR and HKD are the first resource types in different countries or regions and serve as value scales and exchange media. In this case, CNY can be the basic resource type, and EUR and HKD can be different first resource types.

[0050] The foreign exchange transaction refers to buying resources of one resource type combination (such as CNY and EUR) and selling resources of the other resource type, which is an exchange of resource amounts between the first resource type and the second resource type.

[0051] For each business data, the business data is used to record the historical resource transfer amount between the first resource type and the second resource type, specifically to record the historical resource transfer-out amount and the historical resource transfer-in amount of the two parties when resource transfer (i.e., exchange) occurs between one first resource type and the second resource type.

[0052] Specifically, for each business data, the business data is used to record the first historical resource transfer-in amount of the first resource type and the second historical resource transfer-out amount of the second resource type, or to record the first historical resource transfer-out amount of the first resource type and the second historical resource transfer-in amount of the second resource type.

[0053] That is, for each business data, the business data is used to record the amount of resources of the second resource type transferred out when a certain amount of resources of the first resource type is transferred in, or to record the amount of resources of the second resource type transferred in when a certain amount of resources of the first resource type is transferred out.

[0054] As an example, in a foreign exchange transaction scenario, the first business data set can be referred to as a position set, and each piece of business data in the position set is used to record a buy / sell amount between a first resource type and a second resource type.

[0055] The first business data set can be as shown in FIG. 3. A business data set (such as the first business data set) is also referred to as a position set, and each position in the position set can be regarded as a piece of business data.

[0056] The position set can also be referred to as an exposure set, and is used to record foreign exchange exposure.

[0057] The position includes a "long position" and a "short position", where the long position indicates that the purchase amount is greater than the sale amount, and the short position indicates that the sale amount is greater than the purchase amount. The "short position" and the "long position" can also be referred to as "foreign exchange exposure".

[0058] As shown in FIG. 3, for business data A, the business data A is used to record that 10000 USD is bought and 66895 CNY is sold. For business data B, the business data B is used to record that 20000 EUR is sold and 133990 CNY is bought. For business data C, the business data C is used to record that 10000 HKD is bought and 9000 CNY is sold. For business data D, the business data D is used to record that 10000 EUR is bought and 70000 CNY is sold.

[0059] CNY, USD, EUR, and HKD represent different resource types, CNY is the second resource type, and USD, EUR, and HKD are different first resource types.

[0060] The negative sign "-" in the value of the historical resource transfer amount indicates that the historical resource transfer amount is a historical resource transfer-out amount, for example, the second historical resource transfer amount -66895 in business data A and the first historical resource transfer amount -20000 in business data B. In embodiments of the present application, the first historical resource transfer amount and the second historical resource transfer amount both refer to absolute values.

[0061] S22, determining, according to the second historical resource transfer amount, a target business data in the at least one piece of business data that satisfies a resource transfer condition.

[0062] In some embodiments, after obtaining the first business data set, whether there is a target business data in the first business data set that satisfies a resource transfer condition can be determined according to a second historical resource transfer amount of the second resource type recorded by each piece of business data in the first business data set.

[0063] Specifically, a first condition set associated with the first service data set can be acquired first.

[0064] Each service data set in the preset data set is associated with a different condition set, or each service data set in the preset data set can be associated with the same condition set, which can be determined based on actual application scenarios and is not limited here.

[0065] Each condition set associated with each service data set includes at least one trigger condition, and each trigger condition is used to determine whether each service data in the service data set meets the resource transfer condition.

[0066] For example, the first service data set includes at least one trigger condition, and each trigger condition includes a resource amount threshold.

[0067] For any service data set, if the second historical resource transfer amount of the second resource type in a service data in the service data set exceeds the resource amount threshold corresponding to any trigger condition in the corresponding condition set, it means that the service data can be used as a candidate service data that may meet the resource transfer condition, and then the target service data that meets the resource transfer condition is determined from each candidate service data.

[0068] For the first service data set, after acquiring the first condition set associated with the first service data set, if there is at least one candidate service data in the first service data set whose second historical resource transfer amount exceeds at least one resource amount threshold (i.e., the resource amount threshold corresponding to at least one trigger condition) in the first condition set, the target service data that meets the resource transfer condition can be determined according to each candidate service data.

[0069] That is, after acquiring the first condition set associated with the first service data set, each service data in the first service data set can be compared with each trigger condition in the first condition set one by one to determine the candidate service data in the first service data set whose second historical resource transfer amount exceeds the resource amount threshold corresponding to at least one trigger condition.

[0070] Further, after determining the candidate service data from the first data set, each candidate service data can be determined to be the target service data that meets the resource transfer condition.

[0071] Optionally, each trigger condition further includes a resource type range and a valid time interval.

[0072] In this case, when the target service data is determined according to the candidate service data, for each candidate service data,

[0073] In at least one of the trigger conditions, a trigger condition in which a resource amount threshold is not exceeded by a second historical resource transfer amount in the candidate service data is determined as a candidate trigger condition.

[0074] In response to the current time being located within a valid time interval included in any candidate trigger condition, and a resource type range included in the any candidate trigger condition including the first resource type in the candidate service data, the candidate service data is determined as target service data.

[0075] As an example, in a foreign exchange scenario, if CNY is the second resource type and USD is the first resource type. User 1 can generate service data E after using CNY to exchange USD, and the service data E is used to record that the user 1 spends 1000 CNY (i.e., the second historical resource transfer-out amount) to exchange 10 USD (i.e., the first historical resource transfer-in amount). User 2 can generate service data F after using USD to exchange CNY, and the service data F is used to record that the user 2 exchanges 10 CNY (i.e., the second historical resource transfer-in amount) for 1 USD (i.e., the first historical resource transfer-out amount).

[0076] If the service data E and the service data E belong to the first service data set, and the first service data set includes trigger condition A, and the resource amount threshold included in the trigger condition A is 800. For the service data E, since the amount of CNY spent by the user 1 is 1000, which exceeds 800, the service data E can be determined as candidate service data. For the service data F, since the amount of CNY exchanged by the user 2 is 10, which does not exceed 800, the service data F is determined not to be candidate service data.

[0077] In the case where the trigger condition A only includes the resource amount threshold, the service data E can be determined as target service data that satisfies the resource amount transfer condition.

[0078] In the case where the trigger condition A further includes the resource type range and the valid time interval, and the current time is located within the valid time interval corresponding to the trigger condition A, if the resource type range corresponding to the trigger condition A includes USD, the service data E can be determined as target service data, and if the resource type range corresponding to the trigger condition A does not include USD, the service data E is determined not to be target service data.

[0079] As an example, in a foreign exchange scenario, the first service data set can be as shown in FIG. 4, and the first condition set associated with the first service data set can be as shown in FIG. 5.

[0080] Among them, CNY, USD, EUR, HKD represent different resource types, CNY is the second resource type, and USD, EUR, HKD are different first resource types.

[0081] As shown in FIG. 4 and FIG. 5, when the business data A is the candidate business data, the second historical resource transfer amount of the business data A is 66895, which exceeds the resource amount thresholds 10000 and 50000 corresponding to the trigger condition B and the trigger condition C, and thus the trigger condition B and the trigger condition C are determined as the candidate trigger conditions corresponding to the business data A.

[0082] Further, if the current time is 1:00, the current time is located in the valid time interval corresponding to the trigger condition B, and the first resource type (USD) in the business data A is located in the resource type range corresponding to the trigger condition B, the business data A can be determined as the target business data.

[0083] When the business data B is the candidate business data, the second historical resource transfer amount of the business data B is 133990, which exceeds the resource amount thresholds corresponding to the trigger condition B to the trigger condition E, i.e. 10000, 50000, 88888 and 99999, and thus the trigger condition B to the trigger condition E are all determined as the candidate trigger conditions corresponding to the business data B.

[0084] Further, in the case that the current time is 1:00, the current time is only located in the valid time interval (00:00-12:00) corresponding to the trigger condition B, and the first resource type (EUR) in the business data B is located in the resource type range (USD, EUR) corresponding to the trigger condition B, the business data B can be determined as the target business data.

[0085] In FIG. 4, for the business data C and the business data D, the second historical resource transfer amounts of the business data C and the business data D are 9000 and 6000 respectively, which are less than the resource amount thresholds corresponding to each trigger condition in FIG. 5, i.e. 10000, 50000, 88888 and 99999, and thus it is determined that the business data C and the business data D are not the target business data.

[0086] S23, determining a first resource transfer mode of the first resource type according to the first historical resource transfer amount and the second historical resource transfer amount.

[0087] After the target business data is determined from the first business data set, the first resource transfer mode of the first resource type in the target business data can be determined according to the historical resource transfer amount between the first resource type and the second resource type in the target business data.

[0088] Specifically, the first resource transfer mode includes resource transfer-in or resource transfer-out.

[0089] Specifically, if the first historical resource transfer amount of the first resource type in the target business data is the first historical resource transfer-out amount, and the second historical resource transfer amount of the second resource type in the target business data is the second historical resource transfer-in amount, it is determined that the first resource transfer mode of the first resource type is resource transfer-in.

[0090] That is, for the target business data, in the case where a certain amount of the first resource type of resource is previously transferred out to obtain a certain amount of the second resource type of resource, when the target business data meets the resource transfer condition, a certain amount of the first resource type of resource is subsequently transferred in.

[0091] If the first historical resource transfer amount of the first resource type in the target business data is the first historical resource transfer-in amount, and the second historical resource transfer amount of the second resource type in the target business data is the second historical resource transfer-out amount, it is determined that the first resource transfer mode of the first resource type is resource transfer-out.

[0092] That is, for the target business data, in the case where a certain amount of the second resource type of resource is previously transferred out to obtain a certain amount of the first resource type of resource, when the target business data meets the resource transfer condition, a certain amount of the first resource type of resource is subsequently transferred in.

[0093] S24, according to the first resource transfer mode, transferring the first historical resource transfer amount of the first resource type.

[0094] In this step, a new secondary transfer processing is performed, including: when it is determined that the first resource transfer mode of the first resource type is resource transfer-in, the first historical resource transfer-out amount of the first resource type of resource can be transferred into the virtual account corresponding to the first resource type. When it is determined that the first resource transfer mode of the first resource type is resource transfer-out, the first historical resource transfer-in amount of the first resource type of resource can be transferred out from the virtual account corresponding to the first resource type.

[0095] In the embodiments of the present application, after obtaining the first business data set, for each piece of business data used to record the historical resource transfer amount between the first resource type and the second resource type, the target business data meeting the resource transfer condition can be determined in time according to the second historical resource transfer amount of the second resource type, and the determination efficiency of the target business data is improved. Further, the resource transfer mode for transferring the resource of the first resource type and the resource amount to be transferred can be determined according to the historical resource transfer amount recorded by the target business data, so that the resource amount of the first resource type can be directly transferred according to the determined resource transfer mode, the balance between the resource amount of the first resource type and the resource amount of the second resource type in the target business is realized, the resource processing efficiency is improved, and the applicability is high.

[0096] In some embodiments, after determining the first resource transfer manner, a second resource transfer manner for the second resource type can be determined.

[0097] The first resource transfer manner and the second resource transfer manner are opposite. For example, when the first resource transfer manner is resource transfer-in, the second resource transfer manner is resource transfer-out; when the first resource transfer manner is resource transfer-out, the second resource transfer manner is resource transfer-in.

[0098] Further, since a certain amount of the second resource type needs to be transferred out when the first resource type is transferred in, or a certain amount of the second resource type needs to be transferred in when the first resource type is transferred out, the resource conversion rate between the first resource type and the second resource type in the target business data can be determined first, for example, the exchange rate between CNY and USD in the foreign exchange transaction scenario.

[0099] In this case, the current resource transfer amount of the second resource type can be determined according to the first historical resource transfer amount and the resource conversion rate. Then, when the first resource transfer manner is used to transfer the first historical resource transfer amount of the first resource type, the second resource transfer manner can be used to transfer the current resource transfer amount of the second resource type. For example, when the first historical resource transfer amount of resources is transferred into the virtual account corresponding to the first resource type, the current resource transfer amount of resources is transferred out of the virtual account corresponding to the second resource type. Conversely, when the first historical resource transfer amount of resources is transferred out of the virtual account corresponding to the first resource type, the current resource transfer amount of resources is transferred into the virtual account corresponding to the second resource type.

[0100] For example, in the foreign exchange transaction scenario, the exposure has the factor of imbalance between income and expenditure, and the exchange rate fluctuates in various ways, which may bring risks. Therefore, it is necessary to sell long and make up short, that is, to close the position or flat the exposure. If a position (business data) meets the resource transfer condition, a close operation can be determined for the virtual foreign currency (corresponding to the first resource type) therein. That is, when a certain amount of virtual foreign currency is bought in the business data in the past, the same amount of virtual foreign currency needs to be sold at this time; when a certain amount of virtual foreign currency is sold in the past, the same amount of virtual foreign currency needs to be bought at this time.

[0101] As an example, referring to FIG. 3, for the business data A, the business data A is used to record that 10000 USD is bought and 66895 CNY is sold. In a case where the business data A is target business data satisfying the resource transfer condition, since the first historical transfer resource amount of the first resource type (i.e., USD) in the business data A is the first historical resource transfer-in amount (i.e., 10000), and the second historical transfer resource amount of the second resource type (i.e., CNY) is the second historical resource transfer-out amount (i.e., 66895), at this time, it can be determined that the first resource transfer mode for the first resource type (i.e., USD) in the business data A is resource transfer-out, and then 10000 USD is transferred out from the virtual account corresponding to USD. Meanwhile, according to 10000 USD and the current exchange rate of USD and CNY, the current resource transfer amount corresponding to CNY is determined, and then the virtual account corresponding to CNY is transferred in with the CNY of the current resource transfer amount.

[0102] As another example, referring to FIG. 3, for the business data B, the business data B is used to record that 20000 EUR is sold and 133990 CNY is bought. In a case where the business data B is target business data satisfying the resource transfer condition, since the first historical transfer resource amount of the first resource type (i.e., EUR) in the business data B is the first historical resource transfer-out amount (i.e., 20000), and the second historical transfer resource amount of the second resource type (i.e., CNY) is the second historical resource transfer-in amount (i.e., 133990), at this time, it can be determined that the first resource transfer mode for the first resource type (i.e., EUR) in the business data B is resource transfer-in, and then 20000 EUR is transferred in to the virtual account corresponding to EUR. Meanwhile, according to 20000 EUR and the current exchange rate of EUR and CNY, the current resource transfer amount corresponding to CNY is determined, and then the virtual account corresponding to CNY is transferred out with the CNY of the current resource transfer amount.

[0103] In the embodiment of the present application, the business data is classified into different business data sets, and the business data can be classified and managed according to different business requirements. Since each trigger condition in the first condition set is used to limit the range, the valid time interval and the resource amount threshold of different first resource types, according to each trigger condition in the first condition set, all target business data satisfying the resource transfer condition in the first business data set can be determined quickly and specifically, which is beneficial to improving the timeliness of resource amount transfer.

[0104] Also, when the first historical resource transfer amount of the first resource type in the target business data is a historical resource transfer-in amount, the same amount of resources of the first resource type can be transferred out, and when the first historical resource transfer amount of the first resource type in the target business data is a historical resource transfer-out amount, the same amount of resources of the first resource type can be transferred in, which is beneficial to timely maintain the balance of the amount of resources of the first resource type and improve the resource processing efficiency.

[0105] In some embodiments, each business data set in the preset data set can be determined in a classification manner.

[0106] Specifically, a plurality of business data can be acquired.

[0107] Among them, the business data can be acquired from different business data processing platforms, accounts, etc., and the specific acquisition manner is not limited here,

[0108] Further, after acquiring the plurality of business data, each of the business data can be classified according to at least one of a transfer time of a historical resource amount, a resource type, or a source of the business data, to obtain at least one business data set.

[0109] Among them, the transfer time of the historical resource amount includes a generation time of the first historical resource transfer amount of the first resource type and a generation time of the second historical resource transfer amount of the second resource type recorded by the business data.

[0110] As an example, the generation time of the first historical resource transfer amount and the generation time of the second historical resource transfer amount can be the same, and at this time, the transfer time of the historical resource transfer amount is a single value. The business data with the same transfer time in a same preset interval can be classified into one business data set.

[0111] As an example, when the business data is classified according to the first resource type, the business data with the same first resource type can be classified into one business data set, the business data with the same second resource type can also be classified into one business data set, or the business data involving the same resource type pair (i.e., the first resource type and the second resource type are the same) can be classified into one business data set.

[0112] Among them, the source of the business data can be different resource management platforms, resource processing channels, accounts, geographic regions, etc., and the specific source can be determined based on actual application scene requirements, which is not limited here.

[0113] In some embodiments, each service data set and the corresponding condition set can be stored in the preset data set in association with each other. When the first service data and the first condition set associated with the first service data are acquired, any resource entry in the resource pool in the unlocked state can be determined as the target resource entry, and the target resource entry is set to the locked state.

[0114] The resource pool includes at least one resource entry, and each resource entry includes a data set identifier of a service data set in the preset data set and a condition set identifier of a condition set associated with the service data set.

[0115] The resource state of each resource entry in the resource pool is in the locked state or the unlocked state. For each resource entry in the resource pool, if the resource entry is in the locked state, it means that the resource entry is in the unobtainable state in the resource pool, and if the resource entry is in the unlocked state, it means that the resource entry is in the obtainable state in the resource pool.

[0116] Further, the service data set in the preset data set corresponding to the data set identifier in the target resource entry can be determined as the first service data set, and the condition set in the preset data set corresponding to the condition set identifier in the target resource entry can be determined as the first condition set associated with the first service data set.

[0117] Based on this, the first service data set and the first condition set associated therewith can be acquired from the preset data set according to the target resource entry.

[0118] As shown in FIG. 6, FIG. 6 is a scene schematic diagram of the resource processing method provided by the embodiments of the present application. The resource processing method shown in FIG. 6 can be executed by the resource processing module in the electronic device.

[0119] Step 601: Apply for a resource lock (i.e., a resource entry) to the resource manager to acquire first service data and a first condition set associated with the first service data.

[0120] Step 602: Select an idle resource lock in the resource pool through the resource manager. That is, select the target resource entry in the unlocked state in the resource pool through the resource manager.

[0121] For example, the resource pool includes multiple resource locks such as resource lock A, resource lock B and resource lock C. Each resource lock can be regarded as a resource entry, and each resource lock includes a data set identifier of a service data set and a condition set identifier of a condition set associated therewith. For example, the resource lock A corresponds to a resource entry, which includes a service data set identifier: service data set A, and a condition set identifier: condition set B.

[0122] The resource pool can run in a relational database, and the resource manager is configured to perform operations such as adding a resource lock in the resource pool, setting a locked state or an unlocked state of the resource lock, and transferring the resource lock.

[0123] In order to make the resource lock in the resource pool be acquired frequently, so that the corresponding business data set and its associated condition set are repeatedly run, the preemption time can be set for each resource lock in the resource pool, and each resource lock is only allowed to be acquired once within the corresponding preemption time. Alternatively, when the resource manager sets the resource lock from the locked state to the unlocked state, the state change can be performed after a certain delay time. For example, when it is necessary to set the resource lock A from the locked state to the unlocked state, the resource lock A can be set to the unlocked state after a preset delay time, so as to avoid that the resource lock A is repeatedly acquired within a short time.

[0124] Step 603: The resource pool returns the resource lock (such as the resource lock D) in the idle state (i.e., in the unlocked state) to the resource manager.

[0125] Step 604: The resource manager queries and acquires the first business data set and the first condition set corresponding to the idle resource lock from the preset data set in the business data management system. For example, the business data set D and the condition set B corresponding to the resource lock D are queried and acquired from the business data management system.

[0126] Step 605: The resource manager sends the resource lock D, the acquired first business data set D, and the first condition set B to the resource processing module.

[0127] Step 606: The resource processing module processes the first business data set D and the first condition set B, i.e., matches each trigger condition in the first condition set B with each business data in the first business data set D to determine the target business data satisfying the resource transfer condition from the first business data set D. The specific process can be referred to the above embodiment.

[0128] Step 607: The resource processing module performs the resource transfer for the first resource type in the target business data.

[0129] If the first historical resource transfer amount of the first resource type in the target business data is the first historical resource transfer-in amount, the resource transfer platform is used to transfer out the resource of the first resource type corresponding to the first historical resource transfer-in amount from the virtual account corresponding to the first resource type.

[0130] If the first historical resource transfer amount of the first resource type in the target business data is the first historical resource transfer-out amount, the resource transfer platform is used to transfer in the resource of the first resource type corresponding to the first historical resource transfer-out amount to the virtual account corresponding to the first resource type.

[0131] In the foreign exchange transaction scenario, the business data management system can be an exposure management system, which is used to aggregate all foreign exchange exposures, and then manage the exposures according to strategies, including multiple flat plate moments, flat plate transactions with different bank channels, and the size of flat plate transaction volume.

[0132] In the foreign exchange transaction scenario, the resource processing module can also be referred to as an automatic hedging module, which can include a submodule 1 for communicating with the resource manager, a submodule 2 for matching the first business data set with the first condition set, and a submodule 3 for communicating with the resource transfer platform to transfer the resource amount.

[0133] In the method shown in FIG. 6, multiple resource processing modules can simultaneously apply for different resource locks in the unlocked state to improve the efficiency of resource amount transfer.

[0134] After each resource processing module applies for a resource lock in the unlocked state and completes resource transfer, it can reapply for a resource lock in the unlocked state after a certain time interval to perform resource transfer again.

[0135] The time interval can be dynamically adjusted based on the number of resource locks and the number of resource processing models. For example, when the number of resource processing modules exceeds the number of resource locks, the time interval is shorter than when the number of resource processing models does not exceed the number of resource locks, thereby saving computing resources and improving resource processing efficiency.

[0136] In some embodiments, after obtaining the target resource entry from the resource pool and setting the target resource entry to the locked state, if the resource transfer of the first historical resource transfer amount is completed according to the first resource transfer method, the target resource entry is re-set to the unlocked state.

[0137] In some embodiments, to avoid data processing abnormalities causing the target resource entry to be in the locked state for a long time, after obtaining the target resource entry from the resource pool, if the resource transfer of the first historical resource transfer amount is completed according to the first resource transfer method within a preset time period after the target resource entry is set to the locked state, the target resource entry is re-set to the unlocked state.

[0138] If the resource transfer of the first historical resource transfer amount is not completed according to the first resource transfer method within a preset time period after the target resource entry is set to the locked state, it means that the resource processing has timed out, at which time the resource transfer is terminated and the target resource entry is re-set to the unlocked state.

[0139] As an example, referring to FIG. 7, which is a schematic diagram of a scenario of changing a resource state according to an embodiment of the present application. After obtaining the resource lock D (i.e., the target resource entry) from the resource pool in the manner shown in FIG. 6, the resource lock D (the target resource entry) in the resource pool is set to the locked state.

[0140] Step 701: The resource processing module performs resource transfer, including the following three cases:

[0141] According to the determined first resource transfer mode, resource transfer of the first historical resource transfer amount of the first resource type is completed; or,

[0142] Within a preset time period after setting the resource lock D to the locked state, resource transfer of the first historical resource transfer amount of the first resource type is completed according to the first resource transfer mode; or,

[0143] Within the preset time period after setting the resource lock D to the locked state, resource transfer of the first historical resource transfer amount of the first resource type is not completed according to the first resource transfer mode.

[0144] Step 702: The resource processing module requests the resource manager to release the resource lock D, i.e., to change the lock state of the resource lock D from the locked state to the unlocked state.

[0145] Step 703: The resource manager requests the resource pool to release the resource lock D, so that the lock state of the resource lock D in the resource pool is changed from the locked state to the unlocked state.

[0146] In some embodiments, after resource transfer of the first historical resource transfer amount of the first resource type is completed according to the first resource transfer mode, the target resource entry can be obtained from the resource pool again after a first time interval.

[0147] If all resource entries in the resource pool are in the locked state after the first time interval, the target resource entry is obtained from the resource pool again after a second time interval. The second time interval is less than the first time interval.

[0148] In some embodiments, the resource entries in the resource pool can be determined based on the following manner:

[0149] For the service data in each service data set in the preset data set,

[0150] A condition set associated with the service data set is generated;

[0151] A resource entry of the service data set is generated according to the data set identifier of the service data set and the condition set identifier of the generated condition set;

[0152] Add each resource entry to the resource pool and set each resource entry to an unlocked state.

[0153] That is, after adding the business data set to the preset data set, for each business data set, a trigger condition applicable to each business data can be generated according to the historical resource transfer amount recorded by each business data in the business data set, the first resource type, and the like, and then a condition set associated with the business data set is obtained.

[0154] Each trigger condition corresponding to each business data can be determined based on actual application scenario requirements, which is not limited herein.

[0155] Further, after adding the business data set and the condition set associated with each business data set to the preset data set, for each business data set, a resource entry corresponding to the business data set can be generated according to the data set identifier of the business data set and the condition set identifier of the condition set associated with the business data set. In this case, each resource entry can be added to the resource pool.

[0156] In some embodiments, after generating a resource entry and adding the resource entry to the resource pool, the resource entry can be set to an unlocked state, so that the resource entry is within the selectable range when the target resource entry is obtained.

[0157] Referring to FIG. 8, FIG. 8 is a schematic diagram of a scenario of adding a resource entry provided by an embodiment of the present application. As shown in FIG. 8,

[0158] Step 801: After determining the business data set and the condition set associated with each business data set, each business data set and each condition set can be added to the preset data set of the business data management system, and a plurality of resource entries can be generated.

[0159] Step 802: The business data management system sends an instruction set to the resource manager, and the instruction set is used to request the resource manager to add a resource entry to the resource pool.

[0160] Each resource entry includes a data set identifier of a business data set and a condition set identifier of a condition set associated with the business data set.

[0161] For example, the instruction set can be represented as: (“business data set A, condition set B”, “business data set C, condition set A”, …, “business data set D, condition set B”).

[0162] Step 803: The resource manager can split the instruction set to obtain various resource entries, such as a resource entry (service data set A, condition set B) indicating that the service data set A is associated with the condition set B, a resource entry (service data set C, condition set A) indicating that the service data set C is associated with the condition set A, and a resource entry (service data set D, condition set B) indicating that the service data set D is associated with the condition set B.

[0163] Step 804: The resource manager can publish a distributed lock in the resource pool to add each resource entry as a resource lock to the resource pool, and set the initial state of each resource lock as an unlocked state.

[0164] In the above implementation, a plurality of target resource entries can be obtained from the resource pool simultaneously, and resource processing can be performed in parallel on the service data corresponding to the plurality of target resource entries.

[0165] In the embodiments of the present application, each service data set can be associated with a plurality of condition sets, which can be determined based on actual application scene requirements, and is not limited herein.

[0166] For example, the service data set H can be associated with the condition set N and the condition set M, the condition set N is used to determine the target service data from the service data set H on holidays, and the condition set M is used to determine the target service data from the service data set H on weekdays.

[0167] In the embodiments of the present application, in the resource processing process, after obtaining each target resource entry from the resource pool, it can be set to a locked state, so as to avoid repeated resource processing on the service data corresponding to the target resource entry, and is beneficial to improve the resource processing efficiency. At the same time, the resource pool can support parallel acquisition and parallel resource processing of a plurality of target resource entries, which is beneficial to further improve the resource processing efficiency.

[0168] In the embodiments of the present application, in order to improve the determination speed of the target service data, the first service data set and the associated first condition set can be input into a condition judgment model to determine the target service data meeting the resource transfer condition.

[0169] In the above implementation, the condition judgment model can be trained based on machine learning (ML) of artificial intelligence (AI), and cloud computing, artificial intelligence cloud service and other technologies in cloud technology.

[0170] The resource transfer amount statistics and the resource processing process involved in the embodiments of the present application can be implemented based on cloud computing in cloud technology.

[0171] The preset data set (including the business data set and the condition set) in the embodiments of the present application can be stored in a designated storage space, including but not limited to cloud storage, a database (such as a relational database or a non-relational database, etc.) or a blockchain, etc. The specific storage space can be determined based on the actual application scenario requirements, which is not limited herein.

[0172] The cloud storage refers to a large number of various different types of storage devices (also referred to as storage nodes) in a network, which are cooperatively working together through application software or application interface to store the preset data set (including the business data set and the condition set).

[0173] Referring to FIG. 9, FIG. 9 is a structural schematic diagram of a resource processing apparatus 900 provided by an embodiment of the present application. The resource processing apparatus 900 comprises:

[0174] A data acquisition module 91, configured to acquire a first business data set from a preset data set, the first business data set comprising at least one piece of business data, wherein each piece of business data is used to record a first historical resource transfer amount of a first resource type and a second historical resource transfer amount of a second resource type when resources are transferred between the first resource type and the second resource type;

[0175] A data analysis module 92, configured to determine target business data that meets a resource transfer condition from the at least one piece of business data according to the second historical resource transfer amount;

[0176] A transfer mode determination module 93, configured to determine a first resource transfer mode of the first resource type according to the first historical resource transfer amount and the second historical resource transfer amount, the first resource transfer mode comprising resource transfer-in or resource transfer-out; and

[0177] A resource transfer module 94, configured to transfer resources of the first historical resource transfer amount of the first resource type according to the first resource transfer mode.

[0178] In some embodiments, the data analysis module 92 described above is configured to:

[0179] acquire a first condition set associated with the first business data set, the first condition set comprising at least one trigger condition, wherein each trigger condition comprises a resource amount threshold;

[0180] determine at least one piece of candidate business data in the at least one piece of business data, wherein the second historical resource transfer amount exceeds at least one resource amount threshold;

[0181] determine the target business data according to the at least one piece of candidate business data.

[0182] In some embodiments, each trigger condition further comprises a resource type range and a valid time interval; the data analysis module 92 is configured to:

[0183] For each candidate business data,

[0184] In the at least one trigger condition, the trigger condition that the resource amount threshold is not exceeded by the second historical resource transfer amount in the candidate business data is determined as a candidate trigger condition;

[0185] In response to the current time being located within the valid time interval included in any candidate trigger condition, and the resource type range included in the any candidate trigger condition including the first resource type in the candidate business data, the candidate business data is determined as the target business data.

[0186] In some embodiments, each business data is configured to record a first historical resource transfer-in amount of the first resource type and a second historical resource transfer-out amount of the second resource type, or to record a first historical resource transfer-out amount of the first resource type and a second historical resource transfer-in amount of the second resource type.

[0187] In some embodiments, the transfer mode determination module 93 is configured to:

[0188] In response to the first historical resource transfer amount being the first historical resource transfer-out amount and the second historical resource transfer amount being the second historical resource transfer-in amount, the first resource transfer mode is determined as the resource transfer-in;

[0189] In response to the first historical resource transfer amount being the first historical resource transfer-in amount and the second historical resource transfer amount being the second historical resource transfer-out amount, the first resource transfer mode is determined as the resource transfer-out.

[0190] In some embodiments, the preset data set comprises at least one business data set and a condition set associated with each business data set, and the resource pool comprises at least one resource entry, wherein each resource entry comprises a data set identifier corresponding to a business data set in the preset data set and a condition set identifier corresponding to a condition set associated with the business data set, and the data acquisition module 91 is further configured to:

[0191] acquire a resource entry in an unlocked state from the resource pool as a target resource entry, and set the target resource entry to a locked state;

[0192] determine, as the first business data set, a business data set in the preset data set corresponding to the data set identifier in the target resource entry;

[0193] corresponding to the condition set in the target resource item in the preset data set is determined as the first condition set.

[0194] In some embodiments, the resource transfer module 94 is further configured to, in response to completing the resource transfer of the first historical resource transfer amount according to the first resource transfer mode, set the target resource item to an unlocked state.

[0195] In some embodiments, the resource transfer module 94 is further configured to, in response to not completing the resource transfer of the first historical resource transfer amount according to the first resource transfer mode within a preset time period after setting the target resource item to the locked state, terminate the resource transfer and set the target resource item to the unlocked state.

[0196] In some embodiments, the resource transfer module 94 is configured to:

[0197] when the first resource transfer mode is the resource transfer-in, transfer the first historical resource transfer-out amount of resources of the first resource type into a virtual account corresponding to the first resource type;

[0198] when the first resource transfer mode is the resource transfer-out, transfer the first historical resource transfer-in amount of resources of the first resource type out of the virtual account corresponding to the first resource type.

[0199] In some embodiments, the resource transfer module 94 is configured to:

[0200] determine a resource conversion rate between the first resource type and the second resource type;

[0201] determine a current resource transfer amount corresponding to the second resource type according to the first historical resource transfer amount and the resource conversion rate;

[0202] transfer the first historical resource transfer amount of resources of the first resource type according to the first resource transfer mode;

[0203] transfer the current resource transfer amount of resources of the second resource type according to a second resource transfer mode, wherein the first resource transfer mode and the second resource transfer mode are opposite.

[0204] In some embodiments, the data acquisition module 91 is further configured to:

[0205] for the business data in each business data set in the preset data set,

[0206] generate a condition set associated with the business data set;

[0207] According to the data set identifier of the service data set and the condition set identifier of the generated condition set, a resource entry of the service data set is generated;

[0208] Each resource entry is added to the resource pool and set to an unlocked state.

[0209] In some embodiments, the data acquisition module 91 described above is further configured to:

[0210] Acquire a plurality of service data;

[0211] According to at least one of the generation time of the first historical resource transfer amount, the generation time of the second historical resource transfer amount, the first resource type, the second resource type, and the source of the service data, the plurality of service data are classified to obtain at least one service data set.

[0212] In specific implementations, the resource processing apparatus described above can execute the implementation manners provided by the steps in FIG. 2 as described above through various functional modules built therein. For details, refer to the implementation manners provided by the steps as described above, which will not be repeated here.

[0213] Referring to FIG. 10, FIG. 10 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 10, the electronic device 1000 in the embodiment can include a processor 1001, a network interface 1004, and a memory 1005. In addition, the electronic device 1000 described above can further include an object interface 1003 and at least one communication bus 1002. The communication bus 1002 is configured to realize the connection and communication between the components. The object interface 1003 can include a display and a keyboard. Optionally, the object interface 1003 can further include a standard wired interface and a wireless interface. The network interface 1004 can optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory or a non-volatile memory (NVM), for example, at least one disk memory. The memory 1005 can optionally be at least one storage device located away from the processor 1001. As shown in FIG. 10, the memory 1005 as a computer readable storage medium can include an operating system, a network communication module, an object interface module, and a device control application program.

[0214] In the electronic device 1000 shown in FIG. 10, the network interface 1004 can provide network communication functions; the object interface 1003 is mainly used to provide an interface for input of an object; and the processor 1001 can be used to invoke a device control application stored in the memory 1005 to implement the steps described in the above embodiments.

[0215] In some embodiments, the processor 1001 described above can be a central processing unit (CPU), and the processor can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gates or transistor logic components, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The memory can include a read-only memory and a random access memory, and provide instructions and data for the processor. A portion of the memory can also include a non-volatile random access memory. For example, the memory can also store device type information.

[0216] In a specific implementation, the electronic device 1000 described above can execute the implementation manners provided by the steps described above through various functional modules built therein, and specific implementation manners can be referred to the implementation manners provided by the steps described above, which will not be described herein.

[0217] The embodiments of the present application also provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method provided by the steps in FIG. 2, and specific implementation manners can be referred to the implementation manners provided by the steps described above, which will not be described herein.

[0218] The computer readable storage medium can be an internal storage unit of the resource processing apparatus or the electronic device according to any of the preceding embodiments, for example, a hard disk or a memory of the electronic device. The computer readable storage medium can also be an external storage device of the electronic device, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. The computer readable storage medium can also include a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc. Further, the computer readable storage medium can include both the internal storage unit and the external storage device of the electronic device. The computer readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer readable storage medium can also be used to temporarily store data that has been output or will be output.

[0219] The embodiment of the present application provides a computer program product, which comprises a computer program, and the computer program is used to execute the method provided by each step in FIG. 2.

[0220] The terms "first", "second", etc. in the claims and the specification and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or electronic device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or electronic device. In this document, "embodiment" means that the specific features, structures or characteristics described in connection with the embodiment can be included in at least one embodiment of the present application. The phrase is shown at various places in the specification does not necessarily refer to the same embodiment, nor is it independent or alternative to other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and / or" used in the specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0221] Those skilled in the art can realize the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be realized in electronic hardware, computer software, or a combination of both. The above described embodiments have been described in connection with the particular examples, and it will be evident to those skilled in the art that various modifications can be made thereto without parting from the spirit and scope of the application, and the application is not to be limited to the disclosed embodiments.

[0222] The above disclosure is merely preferred embodiments of the application and is not to be taken in a limiting sense. Other variations of the application will be apparent to those skilled in the art and can be made without departing from the scope of the application.

Claims

1. A resource processing method, executed by an electronic device, comprising: Acquire a first business data set from a preset data set, the first business data set including at least one business data item, wherein each business data item is used to record a first historical resource transfer amount of the first resource type and a second historical resource transfer amount of the second resource type when transferring resources between the first resource type and the second resource type; determining, based on the second historical resource transfer amount, target service data that meets a resource transfer condition in the at least one piece of service data; determining a first resource transfer mode for the first resource type according to the first historical resource transfer amount and the second historical resource transfer amount, wherein the first resource transfer mode includes resource transfer-in or resource transfer-out; and According to the first resource transfer mode, resources of the first resource type and the first historical resource transfer amount are transferred.

2. The method according to claim 1, wherein The determining, based on the second historical resource transfer amount, target service data that meets the resource transfer condition in the at least one service data includes: Acquire a first condition set associated with the first service data set, where the first condition set includes at least one trigger condition, wherein each trigger condition includes a resource amount threshold; Determine, among the at least one piece of service data, at least one piece of candidate service data in which the second historical resource transfer amount exceeds at least one of the resource amount thresholds; The target business data is determined according to the at least one piece of candidate business data.

3. The method according to claim 2, wherein: Each trigger condition further includes a resource type range and a valid time interval; and determining the target business data based on the at least one candidate business data includes: For each candidate business data, Among the at least one trigger condition, determining the trigger condition in which the resource amount threshold does not exceed the second historical resource transfer amount in the candidate service data as a candidate trigger condition; In response to the current moment being within the valid time interval included in any candidate trigger condition, and the resource type range included in any candidate trigger condition including the first resource type in the candidate business data, the candidate business data is determined as the target business data.

4. The method according to any one of claims 1 to 3, wherein Each piece of business data is used to record the first historical resource transfer-in amount of the first resource type and the second historical resource transfer-out amount of the second resource type, or to record the first historical resource transfer-out amount of the first resource type and the second historical resource transfer-in amount of the second resource type.

5. The method according to claim 4, wherein The determining, based on the first historical resource transfer amount and the second historical resource transfer amount, a first resource transfer mode of the first resource type includes: In response to the first historical resource transfer amount being the first historical resource transfer-out amount and the second historical resource transfer amount being the second historical resource transfer-in amount, determining the first resource transfer mode to be the resource transfer-in; In response to the first historical resource transfer amount being the first historical resource transfer-in amount and the second historical resource transfer amount being the second historical resource transfer-out amount, the first resource transfer mode is determined to be the resource transfer-out.

6. The method according to claim 2, wherein: The preset data set includes at least one business data set and a condition set associated with each business data set; the resource pool includes at least one resource entry, wherein each resource entry includes a data set identifier corresponding to a business data set in the preset data set and a condition set identifier corresponding to the condition set associated with the business data set; and the method further includes: Obtaining a resource entry in an unlocked state from the resource pool as a target resource entry, and setting the target resource entry to a locked state; The obtaining of the first service data set from the preset data set includes: Determine the business data set corresponding to the data set identifier in the target resource entry in the preset data set as the first business data set; The acquiring of a first condition set associated with the first business data set includes: The condition set in the preset data set corresponding to the condition set identifier in the target resource entry is determined as the first condition set.

7. The method according to claim 6, further comprising: In response to completing the resource transfer of the first historical resource transfer amount according to the first resource transfer manner, setting the target resource entry to an unlocked state.

8. The method according to claim 6, further comprising: In response to failure to complete resource transfer of the first historical resource transfer amount according to the first resource transfer method within a preset time period after setting the target resource entry to a locked state, terminating the resource transfer and setting the target resource entry to an unlocked state.

9. The method according to claim 4 or 5, wherein: The transferring of the first historical resource transfer amount of the first resource type according to the first resource transfer mode includes: When the first resource transfer mode is the resource transfer-in, transferring resources of the first historical resource transfer-out amount of the first resource type into the virtual account corresponding to the first resource type; When the first resource transfer mode is the resource transfer-out, resources of the first historical resource transfer-in amount of the first resource type are transferred out from the virtual account corresponding to the first resource type.

10. The method according to any one of claims 1 to 8, wherein The transferring of the first historical resource transfer amount of the first resource type according to the first resource transfer mode includes: determining a resource conversion rate between the first resource type and the second resource type; determining a current resource transfer amount corresponding to the second resource type according to the first historical resource transfer amount and the resource conversion rate; Transferring resources of the first resource type and the first historical resource transfer amount according to the first resource transfer method; According to a second resource transfer mode, resources of the current resource transfer amount of the second resource type are transferred, wherein the first resource transfer mode is opposite to the second resource transfer mode.

11. The method according to any one of claims 6 to 8, further comprising: For the business data in each business data set in the preset data set, Generate a condition set associated with the business data set; Generate a resource entry of the business data set according to the data set identifier of the business data set and the condition set identifier of the generated condition set; Each resource entry is added to the resource pool, and each resource entry is set to an unlocked state.

12. The method according to any one of claims 1 to 11, wherein The at least one business data set is determined based on the following method: Get multiple business data; The multiple business data are classified according to at least one of the generation time of the first historical resource transfer amount, the generation time of the second historical resource transfer amount, the first resource type, the second resource type, and the source of the business data to obtain at least one business data set.

13. A resource processing device, comprising: a data acquisition module, configured to acquire a first business data set from a preset data set, wherein the first business data set includes at least one piece of business data, wherein each piece of business data is used to record a first historical resource transfer amount of the first resource type and a second historical resource transfer amount of the second resource type when resources are transferred between the first resource type and the second resource type; a data analysis module, configured to determine target service data that meets a resource transfer condition in the at least one piece of service data based on the second historical resource transfer amount; a transfer mode determining module, configured to determine a first resource transfer mode of the first resource type based on the first historical resource transfer amount and the second historical resource transfer amount, wherein the first resource transfer mode includes resource transfer-in or resource transfer-out; and A resource transfer module is configured to transfer the first historical resource transfer amount of the first resource type according to the first resource transfer method.

14. The device according to claim 13, wherein The data analysis module is used to obtain a first condition set associated with the first business data set, the first condition set including at least one trigger condition, wherein each trigger condition includes a resource quantity threshold; among the at least one business data, determine at least one candidate business data in which the second historical resource transfer amount exceeds at least one of the resource quantity thresholds; and determine the target business data based on the at least one candidate business data.

15. The device according to claim 13 or 14, wherein Each piece of business data is used to record the first historical resource transfer-in amount of the first resource type and the second historical resource transfer-out amount of the second resource type, or to record the first historical resource transfer-out amount of the first resource type and the second historical resource transfer-in amount of the second resource type.

16. The device according to claim 15, wherein The transfer mode determining module is configured to, in response to the first historical resource transfer amount being the first historical resource transfer-out amount and the second historical resource transfer amount being the second historical resource transfer-in amount, determine that the first resource transfer mode is the resource transfer-in; In response to the first historical resource transfer amount being the first historical resource transfer-in amount and the second historical resource transfer amount being the second historical resource transfer-out amount, the first resource transfer mode is determined to be the resource transfer-out.

17. The device according to claim 15 or 16, wherein: The resource transfer module is used to, when the first resource transfer method is the resource transfer-in, transfer the resources of the first historical resource transfer-out amount of the first resource type to the virtual account corresponding to the first resource type; when the first resource transfer method is the resource transfer-out, transfer the resources of the first historical resource transfer-in amount of the first resource type from the virtual account corresponding to the first resource type.

18. An electronic device comprising a processor and a memory, wherein the processor and the memory are connected to each other; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 12 when calling the computer program.

19. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method according to any one of claims 1 to 12.

20. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Resource transfer task triggering method, device and equipment

    CN111523903A

  • Information processing method, device and equipment and storage medium

    CN112597381A

  • Virtual resource processing method and device and computer readable storage medium

    CN116977066A

  • Resource processing method and device, equipment and storage medium

    CN116977074A