Method and apparatus for processing transaction information, electronic device, and storage medium

By matching the amount of undeclared resources and the total amount of resources to be declared in cross-region transactions, selecting the corresponding amount of resources to be declared, and performing resource declaration processing, the problem of low utilization rate of transaction information in the existing technology is solved, and the accuracy and completeness of transaction information processing is improved.

CN117670351BActive Publication Date: 2025-06-17TENPAY PAID TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210991396.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2025-06-17
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

In cross-regional transactions, when the prior art makes resource declaration, the declaration information is usually selected based on the transaction resource amount of transaction information, but the matching degree between the declared resource amount and the transaction resource amount in the selected transaction information is low, resulting in a low utilization rate of transaction information, which affects the accuracy and completeness of transaction information processing.

Method used

By obtaining resource declaration requests and transaction information sets, match the undeclared resources and the total amount of resources to be declared, select the corresponding number of resources to be declared, and perform resource declaration processing to improve the matching degree and utilization rate of resource declarations.

Benefits of technology

It improves the accuracy and completeness of transaction information processing, improves the utilization rate of transaction information, and ensures the accuracy and completeness of resource declaration processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117670351B_ABST
    Figure CN117670351B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a method and device, equipment, and medium for processing transaction information. The method includes: first, obtaining a resource declaration request including the total amount of resources to be declared and a transaction information set including multiple pieces of transaction information, where each piece of transaction information includes the declared amount of resources and the undeclared amount of resources; then, obtaining multiple target transaction information from the transaction information set, where the sum of the undeclared amounts of resources included in the multiple target transaction information matches the total amount of resources to be declared, and selecting a corresponding amount of resources to be declared from the undeclared amounts of resources included in the multiple target transaction information according to the total amount of resources to be declared, and performing resource declaration processing according to the multiple target transaction information and the amounts of resources to be declared respectively selected from the multiple target transaction information. The technical solution of the present application can improve the accuracy and integrity of transaction information processing and improve the utilization rate of transaction information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular, to a method for processing transaction information, a device for processing transaction information, an electronic device, and a computer-readable medium. Background Art

[0002] With the rapid development of economic globalization and e-commerce, cross-regional transactions are becoming increasingly frequent. Among them, cross-regional transactions refer to transactions in which the seller and the buyer are not in the same region.

[0003] In the scenario of cross-regional transactions, if the seller needs to transfer the resources obtained from the transaction from the region where the buyer is located to the region where the seller is located, it is necessary to declare to the relevant institutions based on the transaction information. However, in the related technology, when declaring, the transaction information for declaration is usually selected based on the transaction resource amount in the transaction information. However, the matching degree between the declared resource amount and the transaction resource amount in the selected transaction information is relatively low, and the utilization rate of the transaction information is relatively low, resulting in the inability to declare the transaction resources corresponding to some transaction information, affecting the accuracy and integrity of transaction information processing. Summary of the Invention

[0004] To solve the above technical problems, embodiments of the present application provide a method, a device, a device, and a medium for processing transaction information, thereby at least improving the accuracy and integrity of transaction information processing to a certain extent.

[0005] According to one aspect of the embodiments of the present application, embodiments of the present application provide a method for processing transaction information, the method comprising:

[0006] Obtain a resource declaration request and a transaction information set; wherein, the resource declaration request includes a total amount of resources to be declared, and the transaction information set includes multiple pieces of transaction information, and each piece of transaction information includes a declared resource amount and an undeclared resource amount;

[0007] Obtain multiple target transaction information from the transaction information set, the sum of the undeclared resource amounts included in which matches the total amount of resources to be declared;

[0008] Select a corresponding amount of resources to be declared from the undeclared resource amounts included in the multiple pieces of target transaction information according to the total amount of resources to be declared;

[0009] Perform resource declaration processing according to the multiple pieces of target transaction information and the amounts of resources to be declared respectively selected from the multiple pieces of target transaction information.

[0010] According to one aspect of the embodiments of the present application, embodiments of the present application provide a device for processing transaction information, the device comprising:

[0011] A request and collection obtaining module, configured to obtain a resource declaration request and a collection of transaction information; wherein, the resource declaration request includes the total amount of resources to be declared, and the collection of transaction information includes multiple pieces of transaction information, and each piece of transaction information includes the declared amount of resources and the undeclared amount of resources;

[0012] An information obtaining module, configured to obtain multiple target transaction information from the collection of transaction information, where the sum of the undeclared amounts of resources included in the multiple target transaction information matches the total amount of resources to be declared;

[0013] A resource amount determining module, configured to select a corresponding amount of resources to be declared from the undeclared amounts of resources included in the multiple target transaction information according to the total amount of resources to be declared;

[0014] A declaration module, configured to perform resource declaration processing according to the multiple target transaction information and the amounts of resources to be declared respectively selected from the multiple target transaction information.

[0015] In an embodiment of the present application, based on the foregoing solution, the resource amount determining module is specifically configured to:

[0016] According to the arrangement order of the multiple target transaction information, determine the transaction information arranged at the last position and other transaction information except the last transaction information from the multiple target transaction information;

[0017] Obtain the resource difference amount between the sum of the undeclared amounts of resources included in the other transaction information and the total amount of resources to be declared;

[0018] Use all the undeclared amounts of resources included in the other transaction information and the undeclared amount of resources corresponding to the resource difference amount included in the last transaction information as the amounts of resources to be declared.

[0019] In an embodiment of the present application, based on the foregoing solution, the information obtaining module includes:

[0020] An information set obtaining module, configured to obtain a resource information set; wherein, the resource information set includes the resource information corresponding to each piece of transaction information, and each piece of resource information includes the identification information of the corresponding transaction information and the undeclared amount of resources;

[0021] A target resource determining module, configured to obtain multiple target resource information from the resource information set, where the sum of the undeclared amounts of resources included in the multiple target resource information matches the total amount of resources to be declared;

[0022] A searching module, configured to search for the transaction information that matches the identification information included in the multiple target resource information from the collection of transaction information;

[0023] A target transaction determination module, configured to use the found transaction information as the target transaction information.

[0024] In an embodiment of the present application, based on the foregoing solution, under the condition that the resource information set includes multiple subsets obtained by classifying the resource information and the unreported resource amount included in each subset, the target resource determination module includes:

[0025] A subset determination module, configured to screen out at least one target subset from the multiple subsets, where the sum of the unreported resource amounts included in the target subset matches the total amount of resources to be declared;

[0026] A target resource acquisition module, configured to obtain multiple pieces of target resource information from the at least one target subset, where the sum of the unreported resource amounts included in the target resource information matches the total amount of resources to be declared.

[0027] In an embodiment of the present application, based on the foregoing solution, the subset determination module is specifically configured to:

[0028] Obtain subsets from the multiple subsets in the arrangement order of the multiple subsets until the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared;

[0029] Use the obtained subset as the target subset.

[0030] In an embodiment of the present application, based on the foregoing solution, the target resource acquisition module is specifically configured to:

[0031] If the number of the target subsets is multiple, determine a candidate subset and other subsets except the candidate subset from the multiple target subsets;

[0032] Sum up the unoccupied resource amounts included in the other subsets to obtain a first resource amount, and calculate a resource difference between the total amount of resources to be declared and the first resource amount to obtain a second resource amount;

[0033] Obtain candidate resource information from the multiple pieces of resource information included in the candidate subset in the arrangement order corresponding to the multiple pieces of resource information included in the candidate subset until the sum of the unreported resource amounts corresponding to the obtained candidate resource information matches the second resource amount;

[0034] Use the obtained candidate resource information and the resource information included in the other subsets as the target resource information.

[0035] In an embodiment of the present application, based on the foregoing solution, the device further includes:

[0036] A receiving and determining module, configured to receive transaction information to be processed and determine the transaction resource type corresponding to the transaction information to be processed;

[0037] A generating and determining module, configured to generate resource information corresponding to the transaction information to be processed and determine the subset corresponding to the transaction resource type from the multiple subsets;

[0038] A first updating module, configured to update the generated resource information to the determined subset and update the unreported resource amount included in the determined subset according to the transaction resource amount of the transaction information to be processed.

[0039] In an embodiment of the present application, based on the foregoing solution, the apparatus further includes:

[0040] A receiving module, configured to receive transaction information to be processed;

[0041] A generating module, configured to generate resource information corresponding to the transaction information to be processed received within a preset time period;

[0042] A second updating module, configured to update the generated resource information to the resource information set.

[0043] In an embodiment of the present application, based on the foregoing solution, the resource amount determining module includes:

[0044] A first conversion parameter obtaining module, configured to obtain a target conversion parameter between the control resource and the specified type resource if the control resource corresponding to the unreported resource amount of the multiple target transaction information is a non-specified type resource;

[0045] A first conversion module, configured to convert the unreported resource amount of each target transaction information according to the target conversion parameter to obtain an unreported resource reference amount;

[0046] A reference amount determining module, configured to select a corresponding number of unreported resource reference amounts from the unreported resource reference amounts included in the multiple target transaction information according to the total amount of resources to be declared;

[0047] A second conversion module, configured to convert the unreported resource reference amount according to the target conversion parameter to obtain the amount of resources to be declared.

[0048] In an embodiment of the present application, based on the foregoing solution, the conversion parameter obtaining module is specifically configured to:

[0049] Determine the specified period to which the resource declaration request belongs according to the declaration time corresponding to the resource declaration request;

[0050] Determine a plurality of historical periods before the specified period, and obtain the conversion parameters of the control resource and the specified type of resource in each historical period;

[0051] Screen out the conversion parameter with the largest value from the obtained conversion parameters, and use the screened conversion parameter as the target conversion parameter.

[0052] In an embodiment of the present application, based on the foregoing solution, the information acquisition module includes:

[0053] A second conversion parameter acquisition module, configured to obtain the conversion parameter of the to-be-declared resource and the specified type of resource within the specified period if the to-be-declared resource corresponding to the total amount of to-be-declared resources is a non-specified type of resource; the specified period is the period to which the declaration time corresponding to the resource declaration request belongs;

[0054] A third conversion module, configured to convert the total amount of to-be-declared resources according to the conversion parameter within the specified period to obtain a reference total amount of to-be-declared resources;

[0055] A transaction information determination module, configured to obtain multiple target transaction information from the transaction information set whose sum of the un-declared resource amounts included therein matches the reference total amount of to-be-declared resources.

[0056] In an embodiment of the present application, based on the foregoing solution, the second conversion parameter acquisition module is specifically configured to:

[0057] Obtain the transaction type of the transaction information included in the transaction information set, and determine the target area from the resource transfer area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type;

[0058] Obtain the conversion parameter of the to-be-declared resource and the specified type of resource within the specified period in the target area.

[0059] According to an aspect of the embodiments of the present application, embodiments of the present application provide an electronic device, including:

[0060] One or more processors;

[0061] A storage device for storing one or more computer programs, which when executed by the one or more processors, cause the electronic device to implement the processing method of transaction information as described above.

[0062] According to an aspect of the embodiments of the present application, embodiments of the present application provide a computer-readable medium, on which a computer program is stored, which when executed by a processor of an electronic device, causes the electronic device to implement the processing method of transaction information as described above.

[0063] According to one aspect of the embodiments of the present application, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the method for processing transaction information as described above.

[0064] In the technical solution provided by the embodiments of the present application: first, obtain a resource declaration request including the total amount of resources to be declared and a transaction information set including multiple pieces of transaction information, where each piece of transaction information includes the declared amount of resources and the undeclared amount of resources; then, obtain multiple target transaction information whose sum of the undeclared amount of resources included in the transaction information set matches the total amount of resources to be declared, and according to the total amount of resources to be declared, select a corresponding amount of undeclared resources from the undeclared amount of resources included in the multiple target transaction information, that is, part of the resources can be selected from the undeclared amount of resources included in the target transaction information as the resources to be declared for this declaration, improving the matching degree between the resources to be declared corresponding to the transaction information and the total amount of resources to be declared; then, perform resource declaration processing according to the multiple target transaction information and the selected amount of resources to be declared from each of the multiple target transaction information respectively, thereby avoiding waste of transaction information, improving the utilization rate of transaction information, and improving the accuracy and integrity of resource declaration processing.

[0065] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings in the following description are only some embodiments of the present application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0067] Figure 1 is a schematic diagram of an exemplary implementation environment of the technical solution of the embodiments of the present application;

[0068] Figure 2 is a schematic diagram of an exemplary implementation environment of the technical solution of the embodiments of the present application;

[0069] Figure 3 is a flowchart of the method for processing transaction information shown in an exemplary embodiment of the present application;

[0070] Figure 4 is a flowchart of the method for processing transaction information shown in another exemplary embodiment of the present application;

[0071] Figure 5It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0072] Figure 6 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0073] Figure 7 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0074] Figure 8 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0075] Figure 9 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0076] Figure 10 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0077] Figure 11 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0078] Figure 12 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0079] Figure 13 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0080] Figure 14 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0081] Figure 15 It is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application;

[0082] Figure 16 It is a flowchart of the update of resource information shown in an exemplary embodiment of the present application;

[0083] Figure 17 It is a schematic diagram of information management shown in an exemplary embodiment of the present application;

[0084] Figure 18 It is a flowchart of the determination process of the resource quantity to be declared shown in an exemplary embodiment of the present application;

[0085] Figure 19 It is a schematic diagram of the generation process of the declaration document shown in an exemplary embodiment of the present application;

[0086] Figure 20 It is a block diagram of a processing device for transaction information shown in an exemplary embodiment of the present application;

[0087] Figure 21 It is a schematic structural diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application. Detailed implementation manners

[0088] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners identical to the present application. On the contrary, they are merely examples of devices and methods that are the same as some aspects of the present application as detailed in the appended claims.

[0089] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0090] The flowcharts shown in the drawings are only exemplary descriptions and do not necessarily include all contents and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0091] It should be noted that "a plurality of" mentioned in the present application means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0092] In the scenario of cross-regional transactions, if the seller needs to transfer the resources obtained from the transaction from the region where the buyer is located to the region where the seller is located, it is necessary to make a declaration to the relevant agency based on the transaction information. However, in the related technologies, when making a declaration, the transaction information for declaration is usually selected based on the transaction resource quantity in the transaction information. However, the matching degree between the declared resource quantity and the transaction resource quantity in the selected transaction information is relatively low, and the utilization rate of the transaction information is low, resulting in the inability to declare the transaction resources corresponding to some transaction information, which affects the accuracy and integrity of the transaction information processing. Based on this, the embodiments of the present application provide a method for processing transaction information, a device for processing transaction information, an electronic device, and a computer-readable medium, which can improve the accuracy and integrity of the resource declaration processing and improve the utilization rate of the transaction information.

[0093] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an implementation environment involved in the present application. This implementation environment includes a terminal device 110 and a server 120. The terminal device 110 and the server 120 communicate through a wired or wireless network. The terminal device 110 can upload its own data to the server 120 or obtain data from the server 120.

[0094] Among them, the terminal device 110 may include but is not limited to smart phones, tablets, laptop computers, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, and so on.

[0095] The server 120 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. This is not limited here.

[0096] It should be noted that Figure 1 the numbers of the terminal device 110 and the server 120 in

[0097] are only illustrative. According to actual needs, there may be any number of terminal devices 110 and servers 120.

[0098] Exemplarily, the terminal device 110 may first obtain a resource declaration request including the total amount of resources to be declared and a set of transaction information including multiple pieces of transaction information, where each piece of transaction information includes the declared resource amount and the undeclared resource amount; then obtain multiple target transaction information whose sum of the undeclared resource amounts included therein matches the total amount of resources to be declared from the set of transaction information, and select a corresponding amount of undeclared resource amounts from the undeclared resource amounts included in the multiple target transaction information according to the total amount of resources to be declared. That is, a partial amount of resources can be selected from the undeclared resource amounts included in the target transaction information as the undeclared resource amounts to be declared in this declaration according to the total amount of resources to be declared, so as to improve the matching degree between the undeclared resource amounts corresponding to the transaction information and the total amount of resources to be declared; then, resource declaration processing is performed according to the multiple target transaction information and the undeclared resource amounts respectively selected from the multiple target transaction information, thereby avoiding waste of transaction information and improving the accuracy and integrity of resource declaration processing.

[0099] In another exemplary embodiment, the server 120 may have a function similar to that of the terminal device 110, so as to execute the method for processing transaction information provided in the embodiments of the present application. Exemplarily, the server 120 may first obtain a resource declaration request and a set of transaction information, where each piece of transaction information includes the declared resource amount and the undeclared resource amount; then obtain multiple target transaction information whose sum of the undeclared resource amounts included therein matches the total amount of resources to be declared from the set of transaction information, and select a corresponding amount of undeclared resource amounts from the undeclared resource amounts included in the multiple target transaction information according to the total amount of resources to be declared; then, resource declaration processing is performed according to the multiple target transaction information and the undeclared resource amounts respectively selected from the multiple target transaction information.

[0100] In another exemplary embodiment, the terminal device 110 and the server 120 may also jointly execute the method for processing transaction information provided in the embodiments of the present application. Exemplarily, the terminal device 110 may initiate a resource declaration request and send the resource declaration request to the server 120; the server 120 obtains multiple target transaction information whose sum of the undeclared resource amounts included therein matches the total amount of resources to be declared from the set of transaction information, and selects a corresponding amount of undeclared resource amounts from the undeclared resource amounts included in the multiple target transaction information according to the total amount of resources to be declared; then, resource declaration processing is performed according to the multiple target transaction information and the undeclared resource amounts respectively selected from the multiple target transaction information.

[0101] It should be noted that the method for processing transaction information provided in the embodiments of the present application can be applied to different application scenarios. In one exemplary embodiment, referring to Figure 2 , Figure 2 is a schematic diagram of another application scenario involved in the present application. As Figure 2As shown in the figure, the application scenarios include a trading platform 210, a trading information processing system 220, and a business system 230. Sellers and buyers can conduct transactions on the trading platform 210. The trading platform 210 obtains trading information and sends the trading information to the trading information processing system 220. The business system 230 can receive a resource declaration instruction initiated by an object, trigger a resource declaration service, generate a resource declaration request, and send the resource declaration request to the trading information processing system 220. The trading information processing system 220 obtains multiple target trading information from the trading information set, where the sum of the unreported resource quantities included in the multiple target trading information matches the total quantity of resources to be declared. According to the total quantity of resources to be declared, the trading information processing system 220 selects a corresponding quantity of unreported resource quantities from the unreported resource quantities included in the multiple target trading information, and sends the multiple target trading information and the selected unreported resource quantities respectively selected from the multiple target trading information to the business system 230, so as to be provided to the object through the business system 230 for declaration.

[0102] It should be noted that in this application, regarding data related to objects such as trading information, when the trading information processing method in this application is applied to a specific product or technology, all of them are obtained with the permission or consent of the object, and the extraction, use, and processing of relevant data comply with local security standards and local laws and regulations.

[0103] The following elaborates in detail on various implementation details of the technical solutions of the embodiments of this application:

[0104] Please refer to Figure 3 , Figure 3 which is a flowchart of the trading information processing method shown in an embodiment of this application. This method can be applied to Figure 1 the implementation environment shown in Figure 1 and can be executed by the terminal device 110 in the implementation environment shown in Figure 1 or can be executed by the server 120 in the implementation environment shown in Figure 1 or can be jointly executed by the terminal device 110 and the server 120 in the implementation environment shown in

[0105] As Figure 3 shown, the trading information processing method at least includes steps S310 to S340, which are introduced in detail as follows:

[0106] Step S310: Obtain a resource declaration request and a trading information set; where the resource declaration request includes the total quantity of resources to be declared, and the trading information set includes multiple trading information, and each trading information includes a declared resource quantity and an unreported resource quantity.

[0107] It should be noted that the transaction information set contains multiple transaction information, and the transaction information can be obtained from a trading platform or obtained through other means.

[0108] The transaction information includes the declared resource quantity and the undeclared resource quantity. Among them, the declared resource quantity and the undeclared resource quantity are determined based on the transaction resource quantity and the resource declaration record. The transaction resource quantity represents the quantity of resources obtained by the seller during the transaction. For example, the transaction resource quantity can be the transaction amount. In some scenarios, the type of resources displayed by the trading platform to the buyer (i.e., the priced resources) is different from the type of resources settled by the trading platform to the seller in the transaction area (i.e., the settlement resources). For example, the buyer can trade with the trading platform through the first type of resources, and the trading platform can settle the transaction income resources to the seller through the second type of resources. Therefore, the transaction resources include priced resources and settlement resources, and the transaction resource quantity included in the transaction information can be based on the priced resources as the counting standard, or it can also be based on the settlement resources as the counting standard. In the embodiments of the present application, when conducting resource declaration, one resource declaration can only occupy a part of the transaction resource quantity included in the transaction information. Therefore, the transaction information includes the declared resource quantity and the undeclared resource quantity, where the declared resource quantity is the quantity of resources that have been declared, and the undeclared resource quantity is the quantity of resources that have not been declared.

[0109] The transaction information can also include at least one of the identification information of the transaction information, the transaction time, the transaction party information, the transaction commodity information, the transaction resource quantity, the transaction place, the trading platform, etc. Among them, the identification information of the transaction information is the identifier of the transaction information, used to uniquely identify the transaction information, which can be an order number, etc.; the transaction time is the occurrence time of the transaction; the transaction party information includes the seller information and the buyer information; the transaction place is the place where the transaction occurs; the trading platform is the trading platform to which the transaction information belongs.

[0110] A resource declaration request is used for resource declaration. When it is necessary to transfer resources from one area to another area, for example, when transferring resources from the area where the buyer is located to the area where the seller is located, a resource declaration request can be initiated. The resource declaration request may include the total amount of resources to be declared, and the total amount of resources to be declared represents the quantity of resources to be transferred. Among them, resources can represent funds, etc. Optionally, the resource declaration request may further include the identification information of the declarant, the resource transfer-in area, the resource transfer-out area, the type of resources to be transferred (the resources that need to be transferred, that is, the resources owned by the declarant), etc. Among them, the declarant refers to the party that initiates the resource declaration request, and it is the owner of the resources. For example, it can be the seller of the transaction information; since the trading platform usually settles with the seller in settlement resources, the resources to be transferred can be settlement resources, and the total amount of resources to be declared can be counted based on settlement resources, or can be counted based on other types of resources. For example, in some scenarios, after transferring the settlement resources to be transferred from the resource transfer-out area to the resource transfer-in area, the relevant institution can convert the settlement resources into target resources (or, the settlement resources to be transferred can be converted into target resources in the resource transfer-out area and then the converted target resources are transferred from the resource transfer-out area to the resource transfer-in area), and transfer the corresponding quantity of target resources to the seller. Among them, the target resources can be resources used for commodity trading in the resource transfer-in area. Under this condition, the declarant can also set the total amount of resources to be declared based on the target resources as the counting standard.

[0111] When resource declaration is required, a resource declaration request can be obtained, and a set of transaction information can be obtained to obtain the transaction information for declaration from the set of transaction information.

[0112] Step S320, obtain multiple target transaction information from the set of transaction information, where the sum of the un-declared resource quantities included in the multiple target transaction information matches the total amount of resources to be declared.

[0113] The target transaction information is the transaction information used for this declaration.

[0114] After obtaining the resource declaration request and the set of transaction information, multiple target transaction information can be obtained from the set of transaction information. That is to say, the sum of the un-declared resource quantities included in the multiple target transaction information matches the total amount of resources to be declared.

[0115] Among them, the sum of the un-declared resource quantities included in the multiple target transaction information matching the total amount of resources to be declared can be: the sum of the un-declared resource quantities included in the multiple target transaction information is equal to the total amount of resources to be declared, or the sum of the un-declared resource quantities included in the multiple target transaction information is greater than the total amount of resources to be declared.

[0116] Step S330: Select the corresponding quantity of resources to be declared from the un-declared resource quantities included in multiple pieces of target transaction information according to the total quantity of resources to be declared.

[0117] Among them, the quantity of resources to be declared is the quantity of resources that need to be declared in each piece of target transaction information during this resource declaration process.

[0118] In order to improve the matching degree between the quantity of resources to be declared and the total quantity of resources to be declared, after determining multiple pieces of target transaction information, the corresponding quantity of resources to be declared can be selected from the un-declared resource quantities included in multiple pieces of target transaction information according to the total quantity of resources to be declared, so that the sum of the quantities of resources to be declared corresponding to multiple pieces of target transaction information matches the total quantity of resources to be declared.

[0119] Among them, in order to avoid resource waste, the sum of the quantities of resources to be declared corresponding to multiple pieces of target transaction information matching the total quantity of resources to be declared can mean that the sum of the quantities of resources to be declared corresponding to multiple pieces of target transaction information is equal to the total quantity of resources to be declared. For example, assume that multiple pieces of target transaction information include transaction information a1, transaction information a2, and transaction information a3, and the total quantity of resources to be declared is 5. Then the quantity of resources to be declared for transaction information a1 can be 1, the quantity of resources to be declared for transaction information a2 can be 2, and the quantity of resources to be declared for transaction information a3 can be 2.

[0120] Optionally, the specific method of selecting the corresponding quantity of resources to be declared from the un-declared resource quantities included in multiple pieces of target transaction information according to the total quantity of resources to be declared can be flexibly set according to actual needs. For example, the quotient between the total quantity of resources to be declared and the quantity of target transaction information can be obtained, and the obtained quotient can be used as the quantity of resources to be declared for each piece of target transaction information. For example, assume that the total quantity of resources to be declared is 10 and there are 2 pieces of target transaction information, then the quantity of resources to be declared for each piece of target transaction information is 5.

[0121] Step S340: Perform resource declaration processing according to multiple pieces of target transaction information and the quantities of resources to be declared respectively selected from multiple pieces of target transaction information.

[0122] After determining the quantity of resources to be declared corresponding to each piece of target transaction information in multiple pieces of target transaction information, resource declaration processing can be performed according to multiple pieces of target transaction information and the quantity of resources to be declared corresponding to each piece of target transaction information.

[0123] Optionally, a declaration file can be generated according to multiple pieces of target transaction information and the quantity of resources to be declared corresponding to each piece of transaction information in multiple pieces of target transaction information for resource declaration processing based on the declaration file. Among them, the declaration file can include multiple pieces of target transaction information and the quantity of resources to be declared corresponding to each piece of transaction information in multiple pieces of target transaction information.

[0124] AtFigure 3 In the illustrated embodiment, first, a resource declaration request including the total amount of resources to be declared and a set of transaction information including multiple pieces of transaction information are obtained. Each piece of transaction information includes the declared resource amount and the undeclared resource amount. Then, multiple target transaction information whose sum of the undeclared resource amounts included therein matches the total amount of resources to be declared is obtained from the set of transaction information, and according to the total amount of resources to be declared, a corresponding number of undeclared resource amounts are selected from the undeclared resource amounts included in the multiple target transaction information. That is to say, part of the undeclared resource amounts can be selected from the undeclared resource amounts included in the target transaction information according to the total amount of resources to be declared as the undeclared resource amounts to be declared in this declaration, so as to improve the matching degree between the undeclared resource amounts corresponding to the transaction information and the total amount of resources to be declared. Then, resource declaration processing is performed according to the multiple target transaction information and the undeclared resource amounts respectively selected from the multiple target transaction information, thereby avoiding waste of transaction information, improving the utilization rate of transaction information, and improving the accuracy and integrity of resource declaration processing.

[0125] In an exemplary embodiment, refer to Figure 4 , Figure 4 which is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the illustrated implementation environment, which can be executed by the terminal device 110 in the Figure 1 illustrated implementation environment, or can be executed by the server 120 in the Figure 1 illustrated implementation environment, or can also be jointly executed by the terminal device 110 and the server 120 in the Figure 1 illustrated implementation environment.

[0126] As Figure 4 shown, the method for processing transaction information includes step S310 - step S320, step S410 - step S430, and step S340. The detailed introduction of step S410 - step S430 is as follows:

[0127] Step S410, determine the transaction information ranked last among the multiple target transaction information and other transaction information except the last transaction information according to the arrangement order of the multiple target transaction information.

[0128] Among them, the arrangement order of multiple target transaction information can be flexibly set according to actual needs. For example, multiple target transaction information can be sorted in the order of the corresponding transaction time from the front to the back (or from the back to the front), can be sorted in the order of the corresponding transaction resource quantity from small to large (or from large to small), can be sorted in the order of the corresponding unreported resource quantity from small to large (or from large to small); or, multiple target transaction information can be sorted in the order of the corresponding acquisition time from the front to the back (or from the back to the front), where the acquisition time is the time to obtain the target transaction information from the transaction information set.

[0129] In order to accurately determine the to-be-declared resource quantity of each target transaction information, the transaction information arranged in the last position and other transaction information except the last one can be determined from multiple target transaction information according to the arrangement order of multiple transaction information.

[0130] Step S420, obtain the resource difference between the sum of the unreported resource quantities included in other transaction information and the total to-be-declared resource quantity.

[0131] After determining other transaction information, the sum of the unreported resource quantities included in other transaction information can be calculated, and the resource difference between the sum of the unreported resource quantities included in other transaction information and the total to-be-declared resource quantity can be calculated.

[0132] Step S430, use all the unreported resource quantities included in other transaction information and the unreported resource quantity corresponding to the resource difference included in the last transaction information as the to-be-declared resource quantity.

[0133] After calculating the resource difference between the sum of the unreported resource quantities included in other transaction information and the total to-be-declared resource quantity, all the unreported resource quantities included in other transaction information and the unreported resource quantity corresponding to the resource difference included in the last transaction information can be used as the to-be-declared resource quantity. That is to say, for other transaction information, its to-be-declared resource quantity is the unreported resource quantity it includes, and for the last transaction information, its to-be-declared resource quantity is the resource difference. For example, assume that the total to-be-declared resource quantity is 100, and the sorting of multiple target transaction information is transaction information b1 - b4 in sequence. Among them, the unreported resource quantities of transaction information b1 - b4 are: 25, 28, 35, 40 respectively. That is, the sum of the unreported resource quantities included in transaction information b1 - b3 is 88, and the resource difference between it and the total to-be-declared resource quantity is 12. Then 12 can be used as the to-be-declared resource quantity of transaction information b4, and for transaction information b1 - b3, their to-be-declared resource quantities are: 25, 28, 35 respectively.

[0134] It should be noted thatFigure 4 The specific implementation details of steps S310 - S320 and step S340 shown can be referred to Figure 3 steps S310 - S320 and step S340 shown, which will not be elaborated here.

[0135] In Figure 4 the embodiment shown, according to the arrangement order of multiple target transaction information, determine the transaction information ranked last among the multiple target transaction information and other transaction information except the last one, obtain the resource difference between the sum of the unreported resource amounts included in the other transaction information and the total amount of resources to be declared, and use all the unreported resource amounts included in the other transaction information and the unreported resource amount corresponding to the resource difference included in the last transaction information as the resources to be declared, so as to improve the matching degree between the resources to be declared and the total amount of resources to be declared.

[0136] In an exemplary embodiment, refer to Figure 5 , Figure 5 which is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the implementation environment shown, which can be executed by Figure 1 the terminal device 110 in the implementation environment shown, or can be executed by Figure 1 the server 120 in the implementation environment shown, or, can also be jointly executed by Figure 1 the terminal device 110 and the server 120 in the implementation environment shown.

[0137] As Figure 5 shown, this method for processing transaction information includes steps S310, steps S510 - S540, and steps S330 - S340, where the detailed introduction of steps S510 - S540 is as follows:

[0138] Step S510, obtain a set of resource information; where the set of resource information includes the resource information corresponding to each transaction information, and each resource information includes the identification information and the unreported resource amount of the corresponding transaction information.

[0139] It should be noted that transaction information includes various types of data. To reduce the amount of data processing, for each transaction information included in the set of transaction information, its corresponding resource information will be generated, thereby obtaining a set of resource information, where each resource information includes the identification information of its corresponding transaction information and the unreported resource amount. Optionally, each resource information may further include at least one of the declared resource amount, transaction resource amount, resource declaration record, etc. of its corresponding transaction information.

[0140] In this embodiment, in order to reduce the amount of data processing and improve the acquisition efficiency of target transaction information, the resource information set may be acquired first.

[0141] Step S520: Obtain multiple pieces of target resource information from the resource information set, where the sum of the unreported resource amounts included in the multiple pieces of target resource information matches the total amount of resources to be declared.

[0142] After obtaining the resource information set, multiple pieces of target resource information whose sum of the unreported resource amounts included matches the total amount of resources to be declared can be obtained.

[0143] Among them, the sum of the unreported resource amounts included in the multiple pieces of target resource information matching the total amount of resources to be declared may be: the sum of the unreported resource amounts included in the multiple pieces of target resource information is equal to the total amount of resources to be declared, or the sum of the unreported resource amounts included in the multiple pieces of target resource information is greater than the total amount of resources to be declared.

[0144] Step S530: Search for transaction information in the transaction information set that matches the identification information included in the multiple pieces of target resource information.

[0145] After determining the multiple pieces of target resource information, the transaction information corresponding to the target resource information can be found from the transaction information set according to the identification information of the transaction information included in the target resource information.

[0146] Step S540: Use the found transaction information as the target transaction information.

[0147] After finding the transaction information corresponding to the target resource information, use the found transaction information as the target transaction information.

[0148] It should be noted that Figure 5 The specific implementation details of the steps S310, S330 - S340 shown can be referred to Figure 3 the steps S310, S330 - S340 shown, which will not be elaborated here.

[0149] In Figure 5 the embodiment shown, the resource information set is acquired; where the resource information set includes the resource information corresponding to each transaction information, each piece of resource information includes the identification information and the unreported resource amount of the corresponding transaction information, multiple pieces of target resource information whose sum of the unreported resource amounts included matches the total amount of resources to be declared are obtained from the resource information set, transaction information that matches the identification information included in the multiple pieces of target resource information is found from the transaction information set, and the found transaction information is used as the target transaction information. Since the amount of data of the resource information is less than that of the transaction information, determining the target transaction information based on the resource information set can reduce the amount of data processing and improve the determination efficiency of the target transaction information.

[0150] In an exemplary embodiment, refer to Figure 6 , Figure 6 which is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the implementation environment shown in Figure 1 and can be executed by the terminal device 110 in the implementation environment shown in Figure 1 , or can be executed by the server 120 in the implementation environment shown in Figure 1 , or can be jointly executed by the terminal device 110 and the server 120 in the implementation environment shown in

[0151] As shown in Figure 6 , after the resource information set includes multiple subsets obtained by classifying the resource information and the unreported resource amount included in each subset, the method for processing the transaction information includes steps S310, S510, S610 - S620, S530 - S540, and S330 - S340. Among them, the detailed introduction of steps S610 - S620 is as follows:

[0152] Step S610: Select at least one target subset from the multiple subsets, where the sum of the unreported resource amounts included in the target subset matches the total amount of resources to be declared.

[0153] It should be noted that the resource information set includes multiple pieces of resource information. Multiple subsets can be obtained by classifying the multiple pieces of resource information. Each subset includes at least one piece of resource information. The unreported resource amount included in each subset is the sum of the unreported resource amounts included in at least one piece of resource information included in it. For example, assume that a certain subset includes resource information c1 - c2, and the unreported resource amounts of resource information c1 - c2 are 10 and 8 in sequence. Then the unreported resource amount included in this subset is 18.

[0154] Among them, the way of classifying the resource information can be flexibly set according to actual needs. For example, the resource information can be classified according to at least one of the data related to the transaction information, such as the seller of the transaction information, the transaction time, the transaction type, the transaction resource type, the place where the transaction occurs, the transaction platform, etc. Optionally, when classifying, the resource information can also be classified at multiple levels based on multiple types of data. In one example, the resource information can be classified first based on the seller, then the resource information belonging to the same seller can be classified based on the transaction type, and then the resource information belonging to the same seller and the same transaction type can be classified based on the transaction time.

[0155] In the process of determining the target resource information, at least one target subset whose sum of the to-be-declared resource quantities included matches the total to-be-declared resource quantity can be filtered out from multiple subsets included in the resource information set.

[0156] Among them, the sum of the undeclared resource quantities included in at least one target subset matching the total to-be-declared resource quantity can be: the sum of the undeclared resource quantities included in at least one target subset is equal to the total to-be-declared resource quantity, or the sum of the undeclared resource quantities included in at least one target subset is greater than the total to-be-declared resource quantity.

[0157] Optionally, considering that different resource declaration requests require different types of transaction information, therefore, a target type can be determined according to the resource declaration request, a subset matching the target type can be selected from multiple subsets, and then at least one target subset can be filtered out from the selected subsets. For example, if the resource information set contains resource information of different sellers, a subset matching the seller corresponding to the resource declaration request can be selected from multiple subsets; for another example, if the types of resources to be transferred included in different resource declaration requests are different, a subset with the settlement resources matching the type of the resources to be transferred can be selected from multiple subsets; for another example, if the resource information set contains information on the foreign exchange settlement method, multiple subsets matching the foreign exchange settlement method information can be selected from multiple subsets, that is, in the process of managing resource information, the supported foreign exchange settlement methods are recorded, so that classification management can be carried out according to the foreign exchange settlement method. For the specific introduction of the foreign exchange settlement method, please refer to the records in the subsequent embodiments, which will not be elaborated here.

[0158] Step S620, obtain multiple pieces of target resource information whose sum of the undeclared resource quantities included matches the total to-be-declared resource quantity from at least one target subset.

[0159] After determining at least one target subset, multiple pieces of target resource information whose sum of the undeclared resource quantities included matches the total to-be-declared resource quantity can be obtained from the target subset, that is, the target resource information belongs to the target subset.

[0160] It should be noted that Figure 6 The specific implementation details of the shown step S310, step S330 - step S340 can be referred to Figure 3 the shown step S310, step S330 - step S340, Figure 6 The specific implementation details of the shown step S510, step S530 - step S540 can be referred to Figure 5 the shown step S510, step S530 - step S540, which will not be elaborated here.

[0161] In Figure 6In the illustrated embodiment, first, at least one target subset whose sum of unreported resource amounts included therein matches the total amount of resources to be declared is screened out from multiple subsets, and then, multiple pieces of target resource information whose sum of unreported resource amounts included therein matches the total amount of resources to be declared are obtained from the at least one target subset. Thus, the target subset is searched for in units of subsets first, and then the target resource information is searched for from the target subset in units of resource information, improving the data search efficiency.

[0162] In one exemplary embodiment, referring to Figure 7 , Figure 7 is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the illustrated implementation environment, which can be executed by Figure 1 the terminal device 110 in the illustrated implementation environment, or can be executed by Figure 1 the server 120 in the illustrated implementation environment, or, alternatively, can be jointly executed by Figure 1 the terminal device 110 and the server 120 in the illustrated implementation environment.

[0163] As shown in Figure 7 , this method for processing transaction information includes step S310, step S510, steps S710 - S720, step S620, steps S530 - S540, and steps S330 - S340. Among them, the detailed introduction of steps S710 - S720 is as follows:

[0164] Step S710: Obtain subsets from multiple subsets in the arranged order of the multiple subsets until the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared.

[0165] Among them, the multiple subsets included in the resource information set can be sorted, and the sorting method can be flexibly set according to actual needs. For example, the multiple subsets can be sorted in ascending order (or, descending order) of the included unreported resource amounts, or the multiple subsets can be sorted in the order from the later update time to the earlier update time (or, from the earlier update time to the later update time), where the update time of the subset is the update time of the data included in the subset; of course, the multiple subsets can also be sorted in other ways.

[0166] To reduce the data processing complexity and minimize the number of target subsets as much as possible, subsets are obtained from multiple subsets in the arranged order of the multiple subsets until the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared.

[0167] Among them, the sum of the unreported resource amounts included in the obtained subset matching the total amount of resources to be declared may be: the sum of the unreported resource amounts included in the obtained subset is greater than or equal to the total amount of resources to be declared.

[0168] Step S720, use the obtained subset as the target subset.

[0169] After the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared, use the obtained subset as the target subset.

[0170] It should be noted that Figure 7 The specific implementation details of the shown step S310, steps S330 - S340 can be referred to Figure 3 the shown step S310, steps S330 - S340, Figure 7 The specific implementation details of the shown step S510, steps S530 - S540 can be referred to Figure 5 the shown step S510, steps S530 - S540, Figure 7 The specific implementation details of the shown step S620 can be referred to Figure 6 the shown step S620, which will not be elaborated here.

[0171] In Figure 7 the shown embodiment, first, according to the arrangement order of multiple subsets, obtain subsets from the multiple subsets until the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared, and then use the obtained subset as the target subset, thereby reducing the data processing complexity and minimizing the number of target subsets as much as possible.

[0172] In an exemplary embodiment, refer to Figure 8 , Figure 8 is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the shown implementation environment, which can be executed by Figure 1 the terminal device 110 in the shown implementation environment, or can be executed by Figure 1 the server 120 in the shown implementation environment, or, alternatively, can be jointly executed by Figure 1 the terminal device 110 and the server 120 in the shown implementation environment.

[0173] As Figure 8 shown, this method for processing transaction information includes steps S310, S510, S610, steps S810 - S840, steps S530 - S540, and steps S330 - S340. Among them, the detailed introduction of steps S810 - S840 is as follows:

[0174] Step S810: If the number of target subsets is multiple, determine a candidate subset and other subsets except the candidate subset from the multiple target subsets.

[0175] Among them, the candidate subset is one of the multiple target subsets. The specific determination method of the candidate subset can be flexibly set according to actual needs. For example, a subset can be randomly selected from the multiple target subsets as the candidate subset; or, the subset arranged in the last position can be selected from the multiple target subsets as the candidate subset. The arrangement order of the target subsets can refer to the arrangement order of the subsets in the foregoing embodiments and will not be elaborated here.

[0176] The other subsets are the subsets except the candidate subset among the multiple target subsets.

[0177] Step S820: Perform a summation operation on the unoccupied resource amounts included in the other subsets to obtain a first resource amount, and calculate a resource difference amount between the total resource amount to be declared and the first resource amount to obtain a second resource amount.

[0178] Among them, the sum of the unoccupied resource amounts included in the other subsets can be calculated to obtain the first resource amount, and then, the resource difference amount between the total resource amount to be declared and the first resource amount can be calculated to obtain the second resource amount.

[0179] Step S830: According to the arrangement order corresponding to the multiple resource information included in the candidate subset, obtain candidate resource information from the multiple resource information included in the candidate subset until the sum of the unreported resource amounts corresponding to the obtained candidate resource information matches the second resource amount.

[0180] The candidate resource information is the resource information obtained from the candidate subset.

[0181] After determining the second resource amount, candidate resource information can be obtained from it according to the arrangement order corresponding to the multiple resource information included in the candidate subset until the sum of the unreported resource amounts corresponding to the obtained candidate resource information matches the second resource amount.

[0182] Among them, the sorting method of the multiple resource information included in the candidate subset can refer to the sorting method of the foregoing target transaction information and will not be elaborated here.

[0183] The sum of the unreported resource amounts corresponding to the obtained candidate resource information matching the second resource amount can be: the sum of the unreported resource amounts corresponding to the obtained candidate resource information is greater than or equal to the second resource amount.

[0184] Step S840: Use the obtained candidate resource information and the resource information included in other subsets as the target resource information.

[0185] In this embodiment, the candidate resource information obtained from the candidate subset and the resource information included in other subsets are used as the target resource information, so that the sum of the unreported resource amounts included in the multiple target resource information matches the total amount of resources to be reported.

[0186] It should be noted that Figure 8 For the specific implementation details of the steps S310, S330 - S340 shown, reference can be made to Figure 3 the steps S310, S330 - S340 shown, Figure 8 For the specific implementation details of the steps S510, S530 - S540 shown, reference can be made to Figure 5 the steps S510, S530 - S540 shown, Figure 8 For the specific implementation details of the step S610 shown, reference can be made to Figure 6 the step S610 shown, which will not be elaborated here.

[0187] In Figure 8 the shown embodiment, if the number of target subsets is multiple, determine the candidate subset and other subsets except the candidate subset from the multiple target subsets, perform a summation operation on the unoccupied resource amounts included in the other subsets to obtain the first resource amount, calculate the resource difference between the total amount of resources to be reported and the first resource amount to obtain the second resource amount, and according to the arrangement order corresponding to the multiple resource information included in the candidate subset, obtain the candidate resource information from the multiple resource information included in the candidate subset until the sum of the unreported resource amounts corresponding to the obtained candidate resource information matches the second resource amount. Then, use the obtained candidate resource information and the resource information included in other subsets as the target resource information. Thus, while ensuring that the sum of the unreported resource amounts included in the target resource information matches the total amount of resources to be reported, the number of target resource information is reduced as much as possible, and the data processing speed is improved.

[0188] In an exemplary embodiment, refer to Figure 9 , Figure 9 which is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the shown implementation environment, which can be executed by the terminal device 110 in Figure 1 the shown implementation environment, or can be executed by the server 120 in Figure 1 the shown implementation environment, or can be jointly executed by the terminal device 110 and the server 120 in Figure 1 the shown implementation environment.

[0189] As Figure 9 shown, the processing method of the transaction information includes steps S310, S510, S610 - S620, S530 - S540, S330 - S340, and S910 - S930. The detailed introduction of steps S910 - S930 is as follows:

[0190] Step S910: Receive the transaction information to be processed and determine the type of transaction resource corresponding to the transaction information to be processed.

[0191] Among them, the transaction information to be processed refers to the newly received transaction information, that is, the resource information corresponding to this transaction information has not been generated yet, and no declaration has been made based on this transaction information.

[0192] The type of transaction resource is the type of transaction resource corresponding to the transaction information. For example, in different regions, the types of resources used in the transaction process are different.

[0193] After obtaining the transaction information to be processed, the type of transaction resource corresponding to the transaction information to be processed can be determined first.

[0194] Step S920: Generate the resource information corresponding to the transaction information to be processed and determine the subset corresponding to the type of transaction resource from multiple subsets.

[0195] Among them, the resource information corresponding to the transaction information to be processed can be classified according to the type of transaction resource to obtain multiple subsets.

[0196] Therefore, after receiving the transaction information to be processed and determining its corresponding type of transaction resource, the resource information corresponding to the transaction information to be processed can be generated, and the subset that matches the type of transaction resource of the transaction information to be processed can be determined from the multiple subsets included in the resource information set.

[0197] Optionally, the transaction resources can include marked price resources and settlement resources. When classifying, the resource information can be classified first based on the settlement resources, and then the transaction information can be classified based on the marked price resources.

[0198] Step S930: Update the generated resource information to the determined subset and update the unreported resource quantity included in the determined subset according to the transaction resource quantity of the transaction information to be processed.

[0199] After determining the subset that matches the transaction resource type of the transaction information to be processed, the resource information of the transaction information to be processed can be updated to the determined subset. Moreover, since the change in the resource information will affect the unreported resource quantity included in the subset, and the transaction resource quantities of the transaction information to be processed have not been reported, the unreported resource quantity included in the determined subset can be updated according to the transaction resource quantity of the transaction information to be processed.

[0200] It should be noted that Figure 9 The specific implementation details of the steps S310, S330 - S340 shown can be referred to Figure 3 the steps S310, S330 - S340 shown Figure 9 The specific implementation details of the steps S510, S530 - S540 shown can be referred to Figure 5 the steps S510, S530 - S540 shown, which will not be elaborated here.

[0201] In Figure 9 the embodiment shown, the transaction information to be processed is received, the transaction resource type corresponding to the transaction information to be processed is determined, the resource information corresponding to the transaction information to be processed is generated, the subset corresponding to the transaction resource type is determined from multiple subsets, the generated resource information is updated to the determined subset, and the unreported resource quantity included in the determined subset is updated according to the transaction resource quantity of the transaction information to be processed. In this way, during the process of resource declaration, the target subset can be determined from multiple subsets according to the resource type to be transferred, improving the data processing efficiency.

[0202] In an exemplary embodiment, refer to Figure 10 , Figure 10 which is the flowchart of the processing method of transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the implementation environment shown, which can be executed by the terminal device 110 in the Figure 1 implementation environment shown, or can be executed by the server 120 in the Figure 1 implementation environment shown, or can also be jointly executed by the terminal device 110 and the server 120 in the Figure 1 implementation environment shown.

[0203] As Figure 10 shown, the processing method of this transaction information includes steps S310, S510 - S540, S330 - S340, and steps S1010 - 1030. Among them, the detailed introduction of steps S1010 - S1030 is as follows:

[0204] Step S1010, receive the transaction information to be processed.

[0205] Among them, for the relevant introduction of the transaction information to be processed, please refer to the foregoing embodiments.

[0206] Step S1020: Generate resource information corresponding to the transaction information to be processed received within a preset time period.

[0207] Among them, the preset time period is the generation cycle of the resource information, and its specific value can be flexibly set according to actual needs. For example, it can be set to 1 day, 1 hour, etc.

[0208] To improve the generation efficiency of the resource information, after receiving the transaction information to be processed, instead of immediately generating the resource information corresponding to this transaction information, the resource information corresponding to the transaction information to be processed received within a preset time period is generated, that is, the resource information is generated in batches.

[0209] Step S1030: Update the generated resource information to the resource information set.

[0210] After generating the resource information corresponding to the transaction information to be processed received within a preset time period, update the generated resource information to the resource information set.

[0211] Optionally, the method of updating the generated resource information to the resource information set can be referred to the description in the foregoing steps S910 - step S930.

[0212] It should be noted that Figure 10 The specific implementation details of the shown steps S310, steps S330 - step S340 can be referred to Figure 3 the shown steps S310, steps S330 - step S340, Figure 10 The specific implementation details of the shown steps S510, steps S530 - step S540 can be referred to Figure 5 the shown steps S510, steps S530 - step S540, which will not be elaborated here.

[0213] In Figure 10 the shown embodiment, first receive the transaction information to be processed, then generate the resource information corresponding to the transaction information to be processed received within a preset time period, and update the generated resource information to the resource information set, so as to realize the batch processing of the transaction information and improve the data processing efficiency.

[0214] In an exemplary embodiment, refer to Figure 11 , Figure 11 is the flowchart of the processing method of the transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the shown implementation environment, which can be composed of Figure 1It can be executed by the terminal device 110 in the illustrated implementation environment, or can be executed by Figure 1 the server 120 in the illustrated implementation environment, or, can also be jointly executed by Figure 1 the terminal device 110 and the server 120 in the illustrated implementation environment.

[0215] As Figure 11 shown, the processing method of the transaction information includes step S310 - step S320, step S1110 - step S1140, and step S340. Among them, the detailed introduction of step S1110 - step S1140 is as follows:

[0216] Step S1110, if the control resource corresponding to the unreported resource quantity of multiple target transaction information is a non - specified type resource, obtain the target conversion parameter between the control resource and the specified type resource.

[0217] It should be noted that there are different types of resources. Among them, the control resource is the resource used to control the unreported resource quantity during the resource declaration process, and it can be a transaction resource. In some scenarios, the transaction resource includes a marked - price resource and a settlement resource, and the control resource can be one of the transaction resource and the marked - price resource. Specifically, which resource is selected as the control resource can be flexibly set according to actual needs. For example, in some implementation manners, if the transaction information only includes the marked - price resource quantity, the marked - price resource can be selected as the control resource; if the transaction information only includes the settlement resource quantity, the settlement resource can be selected as the control resource; if the transaction information includes both the marked - price resource quantity and the settlement resource quantity, in order to reduce the calculation amount, the settlement resource can be selected as the control resource. Of course, the marked - price resource can also be selected as the settlement resource. Under this condition, it is necessary to convert the marked - price resource quantity into the settlement resource quantity.

[0218] The specified type resource is a pre - set resource type. The specified type resource can be flexibly set according to actual needs. For example, it can be set as the resource to be transferred, the settlement resource, etc.

[0219] The target conversion parameter is the conversion parameter between the control resource and the specified type resource.

[0220] In order to accurately determine the resource quantity to be declared, if the control resource corresponding to the unreported resource quantity of multiple target transaction information is a non - specified type resource, obtain the target conversion parameter between the control resource and the specified type resource. For example, in some scenarios, the resource to be transferred is the settlement resource, and the unreported resource quantity is counted based on the marked - price resource, then it is necessary to obtain the conversion parameter between the settlement resource and the marked - price resource, so as to facilitate accurately determining the resource quantity to be declared.

[0221] Step S1120: Convert the unreported resource quantity of each target transaction information according to the target conversion parameter to obtain the unreported resource reference quantity.

[0222] After obtaining the target conversion parameter, the unreported resource quantity of each target transaction information can be converted according to the target conversion parameter to obtain the unreported resource reference quantity of each target transaction information. That is to say, the unreported resource reference quantity of the target transaction information is based on the specified type of resource as the counting standard.

[0223] Step S1130: Select the corresponding quantity of unreported resource reference quantities from the unreported resource reference quantities included in multiple target transaction information according to the total quantity of resources to be declared.

[0224] After determining the unreported resource reference quantity of each target transaction information, according to the total quantity of resources to be declared, the corresponding quantity of unreported resource reference quantities can be selected from the unreported resource reference quantities included in multiple target transaction information, so that the sum of the unreported resource reference quantities corresponding to multiple target transaction information matches the total quantity of resources to be declared.

[0225] Among them, in order to avoid resource waste, the sum of the unreported resource reference quantities corresponding to multiple target transaction information matching the total quantity of resources to be declared can mean that the sum of the unreported resource reference quantities corresponding to multiple target transaction information is equal to the total quantity of resources to be declared.

[0226] Optionally, the specific method of selecting the corresponding quantity of unreported resource reference quantities from the unreported resource reference quantities included in multiple target transaction information according to the total quantity of resources to be declared can be flexibly set according to actual needs. For example, the quotient between the total quantity of resources to be declared and the quantity of target transaction information can be obtained, and the obtained quotient can be used as the unreported resource reference quantity of each target transaction information.

[0227] Step S1140: Convert the unreported resource reference quantity according to the target conversion parameter to obtain the quantity of resources to be declared.

[0228] Since the unreported resource reference quantity is based on the specified type of resource as the counting standard, in order to match it with the control resource corresponding to the unreported resource quantity, each unreported resource reference quantity can be converted according to the target conversion parameter to obtain the quantity of resources to be declared based on the control resource as the counting standard.

[0229] It should be noted that if the control resources corresponding to the unreported resource amounts of multiple target transaction information are non-specified type resources, in step S320, multiple target transaction information whose sum of the included unreported resource reference amounts (counted by specified type resources) matches the total amount of resources to be declared can be obtained from the transaction information set. Among them, the specific processing method is similar to the method of obtaining multiple target transaction information whose sum of the included unreported resource amounts matches the total amount of resources to be declared from the transaction information set, and will not be elaborated here.

[0230] Optionally, in Figure 11 the step S340 shown, resource declaration processing can also be performed based on the target conversion parameter, multiple target transaction information, and the total amount of resources to be declared.

[0231] It should be noted that Figure 11 the specific implementation details of the steps S310 - S320 and step S340 shown can refer to Figure 3 the steps S310 - S320 and step S340 shown, and will not be elaborated here.

[0232] In Figure 11 the embodiment shown, if the control resources corresponding to the unreported resource amounts of multiple target transaction information are non-specified type resources, then the target conversion parameter between the control resources and the specified type resources is obtained, the unreported resource amount of each target transaction information is converted according to the target conversion parameter to obtain the unreported resource reference amount, according to the total amount of resources to be declared, the corresponding number of unreported resource reference amounts are selected from the unreported resource reference amounts included in multiple target transaction information, and the unreported resource reference amount is converted according to the target conversion parameter to obtain the total amount of resources to be declared, so as to realize the conversion between different types of resources and the management of different types of resources.

[0233] In an exemplary embodiment, referring to Figure 12 , Figure 12 is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the implementation environment shown, which can be executed by the terminal device 110 in the Figure 1 implementation environment shown, or can be executed by the server 120 in the Figure 1 implementation environment shown, or, can also be jointly executed by the terminal device 110 and the server 120 in the Figure 1 implementation environment shown.

[0234] As Figure 12As shown in the figure, the method for processing the transaction information includes steps S310 - S320, steps S1210 - S1230, steps S1120 - S1140, and step S340. The detailed introduction of steps S1210 - S1230 is as follows:

[0235] Step S1210: Determine the specified period to which the resource declaration request belongs according to the declaration time corresponding to the resource declaration request.

[0236] Among them, the declaration time is the time corresponding to the resource declaration request; the specified period is the period to which the declaration time belongs, and the period can be the change period of the conversion parameter between the trading resource and the specified type of resource.

[0237] Step S1220: Determine multiple historical periods before the specified period, and obtain the conversion parameters of the control resource and the specified type of resource in each historical period.

[0238] Among them, the historical period is the period before the specified period. The specific number of historical periods can be flexibly set according to actual needs. For example, it can be set to 90 periods.

[0239] After determining the specified period, multiple historical periods can be determined first, and then the conversion parameters of the trading resource and the specified type of resource in each historical period can be obtained.

[0240] Step S1230: Screen out the conversion parameter with the largest value from the obtained conversion parameters, and use the screened conversion parameter as the target conversion parameter.

[0241] After obtaining the conversion parameters of the control resource and the specified type of resource in multiple historical periods, the conversion parameter with the largest value can be selected from them, and the conversion parameter with the largest value can be used as the target conversion parameter. Among them, the conversion parameter with the largest value is the conversion parameter that represents the most specified type of resources that can be converted based on a unit amount of the control resource. For example, assume there are 3 historical periods, and their conversion parameters respectively represent: based on 1 counting unit of the trading resource, 1 counting unit of the specified type of resource can be converted; based on 1 counting unit of the trading resource, 2 counting units of the specified type of resource can be converted; based on 1 counting unit of the trading resource, 5 counting units of the specified type of resource can be converted. Then, the last conversion parameter is selected as the target conversion parameter.

[0242] It should be noted that in some scenarios, the priced resources are different from the settled resources, and there is a time difference between the transaction time and the time when the trading platform settles the resources to the seller. For example, the trading platform usually converts the priced resources obtained from the buyer into settled resources every day, and the trading platform usually settles the settled resources obtained from the transaction to the seller based on the amount of priced resources every 7 - 15 days. Moreover, the conversion parameters between the priced resources and the settled resources often fluctuate, which may lead to the situation that the amount of settled resources calculated based on the amount of priced resources at the time of declaration is less than the actual amount of settled resources obtained by the seller, and further lead to the situation that some resources obtained by the seller from the transaction cannot be declared. Therefore, the controlled resources can be set as the priced resources, and the specified type of resources can be set as the settled resources. If the priced resources are different from the settled resources, the conversion parameters of the priced resources and the settled resources in multiple historical periods can be obtained, and the conversion parameter with the largest value can be used as the target conversion parameter, so as to avoid the situation that resources cannot be declared due to the fluctuation of the conversion parameters.

[0243] It should be noted that Figure 12 The specific implementation details of the steps S310 - S320 and step S340 shown can be referred to Figure 3 the steps S310 - S320 and step S340 shown Figure 12 The specific implementation details of the steps S1120 - S1140 shown can be referred to Figure 11 the steps S1120 - S1140 shown will not be elaborated here.

[0244] In Figure 12 the shown embodiment, according to the declaration time corresponding to the resource declaration request, determine the specified period to which the resource declaration request belongs, determine multiple historical periods before the specified period, and obtain the conversion parameters of the controlled resources and the specified type of resources in each historical period. Screen out the conversion parameter with the largest value from the obtained conversion parameters, and use the screened conversion parameter as the target conversion parameter, so that the controlled resources and the specified type of resources can be converted with the maximum resource conversion parameter in multiple historical periods, avoiding the situation where declaration cannot be carried out.

[0245] In an exemplary embodiment, refer to Figure 13 , Figure 13 is the flowchart of the processing method of transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the shown implementation environment, which can be executed by Figure 1 the terminal device 110 in the shown implementation environment, or can be executed by Figure 1 the server 120 in the shown implementation environment, or, can also be jointly executed by Figure 1 the terminal device 110 and the server 120 in the shown implementation environment.

[0246] As Figure 13 shown, the method for processing the transaction information includes step S310, steps S1310 - S1330, and steps S330 - S340. Among them, the detailed introduction of steps S1310 - S1330 is as follows:

[0247] Step S1310: If the to-be-declared resource corresponding to the total to-be-declared resources is a non-specified type of resource, obtain the conversion parameter between the to-be-declared resource and the specified type of resource within the specified period; the specified period is the period to which the declaration time corresponding to the resource declaration request belongs.

[0248] For the introduction of the specified period and the specified type of resource, please refer to the foregoing records.

[0249] If the to-be-declared resource corresponding to the total to-be-declared resources is a non-specified type of resource, the conversion parameter between the to-be-declared resource and the specified type of resource within the specified period can be obtained. For example, assuming that the declarant sets the total to-be-declared resources based on the target resource as the counting standard, and the target resource is different from the settlement resource, then the conversion parameter between the target resource and the settlement resource needs to be obtained.

[0250] Step S1320: Convert the total to-be-declared resources according to the conversion parameter within the specified period to obtain the reference total to-be-declared resources.

[0251] After obtaining the conversion parameter between the to-be-declared resource and the specified type of resource within the specified period, the total to-be-declared resources can be converted according to the conversion parameter within the specified period to obtain the reference total to-be-declared resources. That is to say, the reference total to-be-declared resources are based on the specified type of resource as the counting standard.

[0252] Step S1330: Obtain multiple target transaction information from the transaction information set whose sum of the un-declared resource amounts included therein matches the reference total to-be-declared resources.

[0253] Among them, the processing method of obtaining multiple target transaction information from the transaction information set whose sum of the un-declared resource amounts included therein matches the reference total to-be-declared resources is similar to the processing method of obtaining multiple target transaction information from the transaction information set whose sum of the un-declared resource amounts included therein matches the total to-be-declared resources as described above, and will not be elaborated here.

[0254] It should be noted that Figure 13 The specific implementation details of step S310, steps S330 - and step S340 shown can be referred to Figure 3 Step S310, steps S330 - and step S340 shown, and will not be elaborated here.

[0255] In Figure 13In the illustrated embodiment, if the resources to be declared corresponding to multiple target transaction information are non-specified type resources, obtain the conversion parameters of the resources to be declared and the specified type resources within a specified period; the specified period is the period to which the declaration time corresponding to the resource declaration request belongs, and convert the total amount of resources to be declared according to the conversion parameters within the specified period to obtain the reference total amount of resources to be declared, and obtain multiple target transaction information from the transaction information set whose sum of the un-declared resource amounts included therein matches the reference total amount of resources to be declared, so as to enable the conversion of different types of resources to be declared, and further enable the declarant to set the total amount of resources to be declared through different types of resources.

[0256] In an exemplary embodiment, refer to Figure 14 , Figure 14 is a flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. This method can be applied to Figure 1 the illustrated implementation environment, which can be executed by Figure 1 the terminal device 110 in the illustrated implementation environment, or can be executed by Figure 1 the server 120 in the illustrated implementation environment, or, alternatively, can be executed jointly by Figure 1 the terminal device 110 and the server 120 in the illustrated implementation environment.

[0257] As Figure 14 shown, the method for processing transaction information includes step S310, steps S1410 - S1420, steps S1320 - S1330, and steps S330 - S340. Among them, the detailed introduction of steps S1410 - S1420 is as follows:

[0258] Step S1410, if the resources to be declared corresponding to the total amount of resources to be declared are non-specified type resources, obtain the transaction types of the transaction information included in the transaction information set, and determine the target area from the resource transfer area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type.

[0259] It should be noted that in different areas, the conversion parameters of the resources to be declared and the specified type resources are different, and for different transaction types, their corresponding conversion methods are also different. In the embodiments of the present invention, if the resources to be declared corresponding to the total amount of resources to be declared are non-specified type resources, obtain the transaction types of the transaction information included in the transaction information set, and determine the target area from the resource transfer area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type.

[0260] Optionally, if the transaction type is current account goods trade, then in the resource transfer-in area, the to-be-declared resource and the specified type of resource can be converted based on the conversion parameters of the resource transfer-in area (i.e., onshore foreign exchange settlement). For other transaction types, in the resource transfer-in area, the to-be-declared resource and the specified type of resource can be converted based on the conversion parameters of the resource transfer-out area (i.e., offshore foreign exchange settlement). In one example, assuming that the to-be-declared resource is the target resource and the specified type of resource is the settlement resource, if the transaction type is current account goods trade, then after transferring the settlement resource from the resource transfer-out area to the resource transfer-in area, the settlement resource can be converted into the target resource based on the conversion parameters of the resource transfer-in area. If the transaction type is other transaction types, then after converting the settlement resource into the target resource based on the conversion parameters of the resource transfer-out area, the converted target resource can be transferred from the resource transfer-out area to the resource transfer-in area. That is, if the transaction type is current account goods trade, the target area is the resource transfer-in area; if the transaction type is other transaction types, the target area is the resource transfer-out area.

[0261] Step S1420: Obtain the conversion parameters of the to-be-declared resource and the specified type of resource within a specified period in the target area.

[0262] After determining the target area, obtain the conversion parameters of the to-be-declared resource and the specified type of resource within a specified period in the target area.

[0263] It should be noted that Figure 14 The specific implementation details of the shown step S310, step S330 - and step S340 can be referred to Figure 3 the shown step S310, step S330 - and step S340 Figure 14 The specific implementation details of the shown step S1320 - and step S1330 can be referred to Figure 13 the shown step S1320 - and step S1330, which will not be elaborated here.

[0264] In Figure 14 the shown embodiment, if the to-be-declared resource corresponding to the total amount of to-be-declared resources is a non-specified type of resource, obtain the transaction type of the transaction information included in the transaction information set, and determine the target area from the resource transfer-in area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type, and obtain the conversion parameters of the to-be-declared resource and the specified type of resource within a specified period in the target area, taking into account the influence of different transaction types on the conversion method and improving the accuracy of resource declaration processing.

[0265] In an exemplary embodiment, the transaction information is taken as an order information for illustration. Refer to Figure 15 , Figure 15It is a schematic flowchart of a method for processing transaction information shown in another exemplary embodiment of the present application. As Figure 15 shown, the method for processing the transaction information includes steps S1501 - S1510, which are introduced in detail as follows:

[0266] Step S1501, the business party obtains order information and stores the obtained order information in the object storage system.

[0267] Optionally, the business party can pull available order information from the e - commerce platform according to set rules, save it as an order information file, and upload it to the object storage system (Cloud Object Storage, COS).

[0268] Among them, the set rules can be flexibly set according to actual needs.

[0269] Step S1502, the business party can synchronize the obtained order information to the order information service unit.

[0270] Optionally, the business party can synchronize the storage address of the order information file to the order information service unit.

[0271] Step S1503, the order information batch processing unit verifies the order information and stores the order information after passing the verification in the order information database.

[0272] Optionally, the order information batch processing unit can obtain the storage address of the order information file from the order information service unit, obtain the order information based on the storage address, verify the order information, and store the order information that passes the verification in the order information database.

[0273] Among them, verifying the order information can be to verify the authenticity of the order information. The specific verification method can be flexibly set according to actual needs.

[0274] Step S1504, the order information batch processing unit obtains the order information for which resource information is to be generated from the order information database.

[0275] Optionally, the order information batch processing unit can obtain the order information for which resource information is to be generated from the order information database regularly (i.e., every certain period of time). Among them, the resource information includes the order number, marked price resource, settlement resource, unreported resource quantity, transaction type, resource type corresponding to the transaction resource, etc. corresponding to the order information.

[0276] Step S1505, the order information batch processing unit generates corresponding resource information according to the order information for which resource information is to be generated, and updates the resource information to the resource information database.

[0277] Optionally, see Figure 16As shown, step S1505 may include steps S1601 - S1605, which are introduced in detail as follows:

[0278] Step S1601, obtain multiple order information belonging to the same seller and of the same type.

[0279] The order information batch processing unit can batch process order information. When batch processing order information, the order information batch processing unit can obtain multiple order information belonging to the same seller and of the same type.

[0280] Among them, the classification method of order information can be flexibly set according to actual needs. For example, the same type of order information can be order information with the same settlement resource type, order information with the same settlement resource type and the same marked price resource type, or order information with the same trading platform, the same settlement resource type and the same marked price resource type, or order information with the same settlement resource type and the same trading type. Among them, the trading type represents the foreign exchange settlement method.

[0281] Step S1602, generate the respective resource information corresponding to multiple order information belonging to the same seller and of the same type.

[0282] Optionally, the resource information may include information such as order number, trading resource, foreign exchange settlement method, trading resource type, etc.

[0283] Step S1603, determine whether the resource information repository contains a subset of resource information that matches the type of the order information.

[0284] Step S1604, if not, create a subset of resource information that matches the type of the order information, update the generated resource information to the created subset of resource information, and update the unreported resources of the created subset of resource information.

[0285] Among them, the unreported resources of the subset of resource information are the sum of the unreported resources of the resource information it contains.

[0286] Step S1605, if so, update the generated resource information to the matching subset of resource information, and update the unreported resource quantity of the matching subset of resource information.

[0287] That is to say, when generating corresponding resource information for order information of the same seller and the same type, not only a corresponding subset of resource information is generated for order information of the same seller and the same type, the subset of resource information contains the unreported resource quantity, and moreover, each piece of resource information contains its corresponding unreported resource quantity, thus forming a tree-shaped two-layer management system.

[0288] Optionally, see Figure 17As shown, the order information service unit can obtain order information, and then generate resource information corresponding to the order information and update the resource information to the resource information library, thus forming a tree-shaped two-layer management system.

[0289] Step S1506: The business party sends a resource declaration request to the resource transfer service unit.

[0290] Step S1507: The resource transfer service unit sends the resource declaration request to the request storage unit.

[0291] Step S1508: The resource transfer service unit invokes the resource management service unit to process the resource declaration request.

[0292] Step S1509: The resource management service unit obtains the maximum conversion parameter from the conversion parameter service unit.

[0293] Optionally, in the process of determining the resource quantity to be declared, the conversion parameter can be obtained through the conversion parameter service unit.

[0294] Step S1510: The resource transfer service unit determines the target resource information and the resource quantity to be declared corresponding to the target resource information based on the resource declaration request and the maximum conversion parameter.

[0295] Step S1511: The declaration batch processing unit obtains the resource declaration request from the request storage unit, searches for the target resource information corresponding to the resource declaration request and the resource to be declared corresponding to the target resource information in the resource information library, queries the target order information corresponding to the target resource information in the order information library, and generates a declaration file based on the target order information and the resource quantity to be declared.

[0296] Step S1512: The declaration batch processing unit submits the declaration file to the designated unit.

[0297] Optionally, the designated unit can be the front-end machine corresponding to the declaration channel.

[0298] Optionally, Figure 15 in the dotted part, the included units can be deployed on the same device.

[0299] Optionally, referring to Figure 18 as shown, Step S1510 may include Step S1801 - Step S1814, which are introduced in detail as follows:

[0300] Step S1801: Search for at least one subset of resource information that matches the resource declaration request in the resource information library.

[0301] The resource declaration request includes the seller's identification information, the type of resources to be transferred, and the total amount of resources to be declared, where the total amount of resources to be declared is based on the resources to be transferred as the counting standard. At least one resource information set that matches the seller's identification information and whose settlement resources match the resources to be transferred can be found from the resource information database.

[0302] Step S1802, determine whether the resources corresponding to the un-declared resource quantity are priced resources.

[0303] Step S1803, if so, obtain the priced resources corresponding to at least one resource information subset, and query the highest conversion parameter between the priced resources and the settlement resources in multiple historical periods.

[0304] Among them, assuming one day as a period, the highest conversion parameter between the priced resources and the settlement resources within 90 days can be obtained.

[0305] Step S1804, convert the un-declared priced resource quantity of each resource information subset in at least one resource information subset based on the highest conversion parameter to obtain the declarable settlement resource quantity; and accumulate the declarable settlement resource quantities of at least one resource information subset.

[0306] Step S1805, determine whether the accumulated value is greater than or equal to the total amount of resources to be declared.

[0307] Step S1806, if not, the resources are insufficient, and end.

[0308] Step S1807, if so, determine the target subset from at least one resource information subset, and determine the priced resource quantity to be declared from the un-declared priced resource quantity of each target subset based on the maximum convertible parameter.

[0309] Among them, the subsets can be obtained from at least one resource information subset in the order from the latest update time to the earliest until the accumulated value of the declarable settlement resource quantity of the obtained subset is greater than or equal to the declarable settlement resource quantity, and the obtained subset is used as the target subset.

[0310] Among them, the settlement resource quantity to be occupied by the last target subset = the total amount of resources to be declared - the sum of the declarable settlement resource quantities of other target subsets. The settlement resource quantity to be occupied by other target subsets is their corresponding declarable settlement resource quantity.

[0311] After determining the settlement resource quantity to be occupied by each target subset, convert the settlement resource quantity to be occupied based on the maximum conversion parameter to obtain the priced resource quantity to be declared, and update the un-declared priced resource quantity based on the priced resource quantity to be declared.

[0312] Step S1808: Determine the resource quantity to be declared for pricing of the resource information in each target subset according to the resource quantity to be declared for pricing of each target subset.

[0313] Among them, for other target subsets, the resource quantity to be declared for pricing of the resource information included therein is the corresponding un-declared resource quantity. For the last target subset, candidate resource information can be obtained in sequence according to the order of transaction time from the front to the back until the un-declared resource quantity after the obtained candidate resource information is greater than or equal to the resource quantity to be declared for pricing of the last target subset. Among them, the resource quantity to be declared for pricing of the last candidate resource information = the resource quantity to be declared for pricing of the last target subset - the un-declared resource quantity after other candidate resource information; the resource quantity to be declared for pricing of other candidate resource information is the corresponding un-declared resource quantity.

[0314] To better understand the present invention, an example is given here for illustration. In an example, it is assumed that the total resource quantity to be declared is 150 (Resource 1), and the found subsets are shown in Table 1 below.

[0315]

[0316]

[0317] Table 1

[0318] For Subset 3, the settlement resource quantity to be occupied is 150 - 79 - 13 = 58 (Resource 1). Correspondingly, the resource quantity to be declared for pricing is 46 (Resource 4) = 58 (Resource 1) / 1.25. Assuming that the resource information included in Subset 3 is shown in Table 2 below, the resource declaration record is as follows:

[0319]

[0320] Table 2

[0321] That is to say, it is necessary to occupy 10 (Resource 4) in amazon_000; it is necessary to occupy 20 (Resource 4) in amazon_001; it is necessary to occupy 16 (Resource 4) in amazon_002. Among them, there are still 14 (Resource 4) unoccupied in amazon_002 and can be used for the next resource declaration. The target resource quantity is the quantity of the target resource that can be converted based on the resource quantity to be declared for equipment pricing. Among them, after the settlement resources are transferred to the resource transfer area, the institution corresponding to the resource transfer area can convert the settlement resources into target resources and transfer the target resources to the seller.

[0322] Step S1809: Update the resource declaration record according to the resource quantity to be declared for pricing of the resource information.

[0323] In step S1810, if the control resource corresponding to the unreported resource quantity is the settlement resource, it is determined whether the sum of the unreported settlement resource quantities of at least one resource information subset is greater than the resource quantity to be reported.

[0324] In step S1811, if the answer is no, the resources are insufficient and the process ends.

[0325] In step S1812, if the answer is yes, a target subset is determined from at least one resource information subset, and the settlement resource quantity to be reported for each target subset is determined.

[0326] Among them, the method for determining the settlement resource quantity to be reported for each target subset is similar to the method for determining the marked price resource quantity to be reported described above, and will not be elaborated here.

[0327] In step S1813, according to the settlement resource quantity to be reported for each target subset, the settlement resource quantity to be reported for the resource information in each target subset is determined.

[0328] Among them, in the process of determining the settlement resource quantity to be reported for the resource information, except that there is no need to convert the marked price resource and the settlement resource, other calculation methods are similar to the method for determining the marked price resource quantity to be reported for the resource information described above, and will not be elaborated here.

[0329] In step S1814, the resource declaration record is updated according to the settlement resource quantity to be reported for the resource information.

[0330] Optionally, as shown in Figure 19 Step S1511 may include steps S1901 - S1906, which are introduced in detail as follows:

[0331] In step S1901, the declaration batch processing unit queries the resource declaration requests in the request storage unit.

[0332] In step S1902, the declaration records of multiple pieces of resource information corresponding to the resource declaration request are queried from the resource information library.

[0333] In step S1903, the order information is queried through the order number in the declaration record of the resource information.

[0334] In step S1904, the multiple pieces of order information queried are aggregated into a declaration file for the resource declaration request.

[0335] In step S1905, the declaration files belonging to the same declaration batch are aggregated and uploaded to the file server.

[0336] In step S1906, the declaration is performed based on the declaration files in the file server.

[0337] It can be understood that Figure 15 、16 The specific implementation details of each step in the embodiments shown in FIGS. 18 and 19 have been introduced in detail in the foregoing embodiments, and will not be elaborated herein.

[0338] In Figure 15 the shown embodiment, during a resource declaration process, only a part of the resource quantity in the order information can be occupied. For the remaining part, it can be used in the next resource declaration process, so that the percentage of the tradable resource quantity in the order information is utilized; at the same time, it supports managing the un-declared resource quantity based on different types of resources (for example, marked price resources or settlement resources), automatically realizing the conversion between marked price resources and settlement resources, reducing the processing cost of the seller; and, during the conversion process between marked price resources and settlement resources, the maximum conversion parameter in multiple historical periods is selected to convert the marked price resources and settlement resources, avoiding the impact of conversion parameter fluctuations on resource declaration.

[0339] Figure 20 is a block diagram of a processing device for transaction information shown in an embodiment of the present application. As Figure 20 shown, the device includes:

[0340] A request and set acquisition module 2001, configured to acquire a resource declaration request and a set of transaction information; wherein, the resource declaration request includes the total amount of resources to be declared, and the set of transaction information includes multiple pieces of transaction information, and each piece of transaction information includes the declared resource quantity and the un-declared resource quantity;

[0341] An information acquisition module 2002, configured to acquire multiple target transaction information from the set of transaction information, where the sum of the un-declared resource quantities included in the multiple target transaction information matches the total amount of resources to be declared;

[0342] A resource quantity determination module 2003, configured to select a corresponding quantity of resources to be declared from the un-declared resource quantities included in the multiple target transaction information according to the total amount of resources to be declared;

[0343] A declaration module 2004, configured to perform resource declaration processing according to the multiple target transaction information and the resources to be declared respectively selected from the multiple target transaction information.

[0344] In an embodiment of the present application, the resource quantity determination module 2003 is specifically configured to:

[0345] Determine the last transaction information and other transaction information except the last transaction information from the multiple target transaction information according to the arrangement order of the multiple target transaction information;

[0346] Acquire the resource difference between the sum of the un-declared resource quantities included in the other transaction information and the total amount of resources to be declared;

[0347] Take all the unreported resource quantities included in other transaction information and the unreported resource quantity corresponding to the resource difference included in the last piece of transaction information as the resource quantities to be declared.

[0348] In an embodiment of the present application, the information acquisition module 2002 includes:

[0349] An information set acquisition module, configured to acquire a resource information set; wherein, the resource information set includes the resource information corresponding to each piece of transaction information, and each piece of resource information includes the identification information and the unreported resource quantity of the corresponding transaction information;

[0350] A target resource determination module, configured to acquire multiple pieces of target resource information from the resource information set, the sum of the unreported resource quantities included in which matches the total resource quantity to be declared;

[0351] A search module, configured to search for transaction information in the transaction information set that matches the identification information included in the multiple pieces of target resource information;

[0352] A target transaction determination module, configured to take the found transaction information as the target transaction information.

[0353] In an embodiment of the present application, under the condition that the resource information set includes multiple subsets obtained by classifying the resource information and the unreported resource quantity included in each subset, the target resource determination module includes:

[0354] A subset determination module, configured to screen out at least one target subset from the multiple subsets, the sum of the unreported resource quantities included in which matches the total resource quantity to be declared;

[0355] A target resource acquisition module, configured to acquire multiple pieces of target resource information from at least one target subset, the sum of the unreported resource quantities included in which matches the total resource quantity to be declared.

[0356] In an embodiment of the present application, the subset determination module is specifically configured to:

[0357] Acquire subsets from the multiple subsets in the arrangement order of the multiple subsets until the sum of the unreported resource quantities included in the acquired subset matches the total resource quantity to be declared;

[0358] Take the acquired subset as the target subset.

[0359] In an embodiment of the present application, the target resource acquisition module is specifically configured to:

[0360] If the number of target subsets is multiple, determine a candidate subset and other subsets except the candidate subset from the multiple target subsets;

[0361] Sum the unoccupied resource amounts included in other subsets to obtain a first resource amount, and calculate the resource difference between the total amount of resources to be declared and the first resource amount to obtain a second resource amount;

[0362] According to the arrangement order corresponding to multiple resource information included in the candidate subset, obtain candidate resource information from the multiple resource information included in the candidate subset until the sum of the undeclared resource amounts corresponding to the obtained candidate resource information matches the second resource amount;

[0363] Use the obtained candidate resource information and the resource information included in other subsets as target resource information.

[0364] In an embodiment of the present application, the apparatus further includes:

[0365] A receiving and determining module, configured to receive the transaction information to be processed and determine the transaction resource type corresponding to the transaction information to be processed;

[0366] A generating and determining module, configured to generate the resource information corresponding to the transaction information to be processed and determine the subset corresponding to the transaction resource type from multiple subsets;

[0367] A first updating module, configured to update the generated resource information to the determined subset and update the undeclared resource amount included in the determined subset according to the transaction resource amount of the transaction information to be processed.

[0368] In an embodiment of the present application, the apparatus further includes:

[0369] A receiving module, configured to receive the transaction information to be processed;

[0370] A generating module, configured to generate the resource information corresponding to the transaction information to be processed received within a preset time period;

[0371] A second updating module, configured to update the generated resource information to the resource information set.

[0372] In an embodiment of the present application, the resource amount determining module 2003 includes:

[0373] A first conversion parameter obtaining module, configured to obtain a target conversion parameter between the control resource and the specified type resource if the control resource corresponding to the undeclared resource amount of multiple target transaction information is a non-specified type resource;

[0374] A first conversion module, configured to convert the undeclared resource amount of each target transaction information according to the target conversion parameter to obtain an undeclared resource reference amount;

[0375] A reference quantity determination module, configured to select a corresponding number of reference quantities of resources to be declared from the reference quantities of undeclared resources included in multiple pieces of target transaction information according to the total quantity of resources to be declared.

[0376] A second conversion module, configured to convert the reference quantity of resources to be declared according to target conversion parameters to obtain the quantity of resources to be declared.

[0377] In an embodiment of the present application, the conversion parameter acquisition module is specifically configured to:

[0378] Determine the specified period to which the resource declaration request belongs according to the declaration time corresponding to the resource declaration request;

[0379] Determine multiple historical periods before the specified period, and obtain the conversion parameters of the control resource and the specified type of resource in each historical period;

[0380] Screen out the conversion parameter with the largest value from the obtained conversion parameters, and use the screened conversion parameter as the target conversion parameter.

[0381] In an embodiment of the present application, the information acquisition module 2002 includes:

[0382] A second conversion parameter acquisition module, configured to obtain the conversion parameter of the resource to be declared and the specified type of resource in the specified period if the resource to be declared corresponding to the total quantity of resources to be declared is a non-specified type of resource; the specified period is the period to which the declaration time corresponding to the resource declaration request belongs;

[0383] A third conversion module, configured to convert the total quantity of resources to be declared according to the conversion parameter in the specified period to obtain the total reference quantity of resources to be declared;

[0384] A transaction information determination module, configured to obtain multiple pieces of target transaction information from the transaction information set, the sum of the undeclared resource quantities included in which matches the total reference quantity of resources to be declared.

[0385] In an embodiment of the present application, the second conversion parameter acquisition module is specifically configured to:

[0386] Obtain the transaction type of the transaction information included in the transaction information set, and determine the target area from the resource transfer area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type;

[0387] Obtain the conversion parameter of the resource to be declared and the specified type of resource in the specified period in the target area.

[0388] It should be noted that the device provided in the foregoing embodiment and the method provided in the foregoing embodiment belong to the same concept, and the specific manners in which each module and unit perform operations have been described in detail in the method embodiment.

[0389] An embodiment of the present application further provides an electronic device, including: one or more processors; a storage device for storing one or more computer programs, which, when executed by the one or more processors, cause the electronic device to implement the method for processing transaction information as described above.

[0390] Figure 21 It is a schematic structural diagram of a computer system suitable for implementing the electronic device of the embodiment of the present application.

[0391] It should be noted that Figure 21 the computer system 2100 of the illustrated electronic device is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.

[0392] As Figure 21 shown, the computer system 2100 includes a central processing unit (CPU) 2101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 2102 or the program loaded from the storage section 2108 into the random access memory (RAM) 2103, such as executing the method in the above embodiment. In the RAM 2103, various programs and data required for system operation are also stored. The CPU 2101, ROM 2102, and RAM 2103 are connected to each other via a bus 2104. The input / output (I / O) interface 2105 is also connected to the bus 2104.

[0393] The following components are connected to the I / O interface 2105: an input section 2106 including a keyboard, a mouse, etc.; an output section 2107 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 2108 including a hard disk, etc.; and a communication section 2109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 2109 performs communication processing via a network such as the Internet. A drive 2110 is also connected to the I / O interface 2105 as required. A removable medium 2111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 2110 as required so that the computer program read from it can be installed into the storage section 2108 as required.

[0394] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 2109 and / or installed from the removable medium 2111. When the computer program is executed by the central processing unit (CPU) 2101, various functions defined in the system of the present application are executed.

[0395] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable medium can be any tangible medium that includes or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program included on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0396] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. Among them, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the above-mentioned module, program segment, or part of code includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in an order different from that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0397] The units described in the embodiments of the present application can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not constitute a limitation to the units themselves in some cases.

[0398] Another aspect of the present application also provides a computer-readable medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the processing method of transaction information as described above. The computer-readable medium can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device.

[0399] Another aspect of the present application also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable medium. The processor of the computer device reads the computer instructions from the computer-readable medium, and the processor executes the computer instructions, so that the computer device executes the processing method of transaction information provided in the above various embodiments.

[0400] The above content is only a preferred exemplary embodiment of the present application and is not used to limit the implementation of the present application. Those of ordinary skill in the art can easily make corresponding adaptations or modifications according to the main concept and spirit of the present application. Therefore, the protection scope of the present application should be subject to the protection scope required by the claims.

Claims

1. A method for processing transaction information, characterized in that, The method includes: Obtaining a resource declaration request and a set of transaction information; wherein, the resource declaration request includes the total amount of resources to be declared, and the set of transaction information includes multiple pieces of transaction information, and each piece of transaction information includes the declared amount of resources and the undeclared amount of resources; wherein, the declared amount of resources in each piece of transaction information is the quantity of resources that have been declared among the transaction resources of each piece of transaction information, and the undeclared amount of resources in each piece of transaction information is the quantity of resources that have not been declared among the transaction resources of each piece of transaction information; Obtaining multiple target transaction information from the set of transaction information, where the sum of the undeclared amounts of resources included in the multiple target transaction information matches the total amount of resources to be declared; the sum of the undeclared amounts of resources in the multiple target transaction information is greater than or equal to the total amount of resources to be declared; Selecting a corresponding quantity of undeclared resources from the undeclared amounts of resources included in the multiple target transaction information according to the total amount of resources to be declared; wherein, the sum of the undeclared amounts of resources in the multiple target transaction information is equal to the total amount of resources to be declared; Performing resource declaration processing according to the multiple target transaction information and the undeclared amounts of resources respectively selected from the multiple target transaction information.

2. The method according to claim 1, characterized in that, The step of selecting a corresponding quantity of undeclared resources from the undeclared amounts of resources included in the multiple target transaction information according to the total amount of resources to be declared includes: Determining the transaction information ranked last and other transaction information except the last transaction information from the multiple target transaction information according to the arrangement order of the multiple target transaction information; Obtaining the resource difference between the sum of the undeclared amounts of resources included in the other transaction information and the total amount of resources to be declared; Taking all the undeclared amounts of resources included in the other transaction information and the undeclared amount of resources corresponding to the resource difference included in the last transaction information as the undeclared amounts of resources to be declared.

3. The method according to claim 1, characterized in that, The step of obtaining multiple target transaction information from the set of transaction information, where the sum of the undeclared amounts of resources included in the multiple target transaction information matches the total amount of resources to be declared, includes: Obtaining a set of resource information; wherein, the set of resource information includes the resource information corresponding to each piece of transaction information, and each piece of resource information includes the identification information of the corresponding transaction information and the undeclared amount of resources; Obtaining multiple target resource information from the set of resource information, where the sum of the undeclared amounts of resources included in the multiple target resource information matches the total amount of resources to be declared; Searching in the set of transaction information for transaction information that matches the identification information included in the multiple target resource information; Taking the found transaction information as the target transaction information.

4. The method according to claim 3, characterized in that, The set of resource information includes multiple subsets obtained by classifying the resource information and the undeclared amount of resources included in each subset; the step of obtaining multiple target resource information from the set of resource information, where the sum of the undeclared amounts of resources included in the multiple target resource information matches the total amount of resources to be declared, includes: Filtering out at least one target subset from the multiple subsets, where the sum of the undeclared amounts of resources included in the target subset matches the total amount of resources to be declared; Obtain multiple pieces of target resource information from the at least one target subset, where the sum of the unreported resource amounts included therein matches the total amount of resources to be declared.

5. The method according to claim 4, characterized in that, The screening out of at least one target subset from the multiple subsets, where the sum of the unreported resource amounts included therein matches the total amount of resources to be declared, includes: Obtain subsets from the multiple subsets in the arranged order of the multiple subsets until the sum of the unreported resource amounts included in the obtained subset matches the total amount of resources to be declared; Use the obtained subset as the target subset.

6. The method according to claim 4, characterized in that, The obtaining of multiple pieces of target resource information from the at least one target subset, where the sum of the unreported resource amounts included therein matches the total amount of resources to be declared, includes: If the number of target subsets is multiple, determine a candidate subset and other subsets other than the candidate subset from the multiple target subsets; Perform a summation operation on the unoccupied resource amounts included in the other subsets to obtain a first resource amount, and calculate a resource difference amount between the total amount of resources to be declared and the first resource amount to obtain a second resource amount; Obtain candidate resource information from the multiple pieces of resource information included in the candidate subset in the arranged order corresponding to the multiple pieces of resource information included in the candidate subset until the sum of the unreported resource amounts corresponding to the obtained candidate resource information matches the second resource amount; Use the obtained candidate resource information and the resource information included in the other subsets as the target resource information.

7. The method according to claim 4, characterized in that, The method further includes: Receive transaction information to be processed and determine the transaction resource type corresponding to the transaction information to be processed; Generate resource information corresponding to the transaction information to be processed and determine the subset corresponding to the transaction resource type from the multiple subsets; Update the generated resource information to the determined subset and update the unreported resource amount included in the determined subset according to the transaction resource amount of the transaction information to be processed.

8. The method according to claim 3, characterized in that, The method further includes: Receive transaction information to be processed; Generate resource information corresponding to the transaction information to be processed received within a preset time period; Update the generated resource information to the resource information set.

9. The method according to any one of claims 1-8, characterized in that, The selecting of a corresponding amount of resources to be declared from the unreported resource amounts included in the multiple pieces of target transaction information according to the total amount of resources to be declared includes: If the control resource corresponding to the unreported resource amount of the multiple pieces of target transaction information is a non-specified type resource, obtain a target conversion parameter between the control resource and the specified type resource; Convert the unreported resource amount of each piece of target transaction information according to the target conversion parameter to obtain an unreported resource reference amount; Select a corresponding amount of unreported resource reference amounts from the unreported resource reference amounts included in the multiple pieces of target transaction information according to the total amount of resources to be declared; Convert the unreported resource reference amount according to the target conversion parameter to obtain the amount of resources to be declared.

10. The method according to claim 9, characterized in that, The obtaining of the target conversion parameter between the control resource and the specified type resource includes: Determine the specified period to which the resource declaration request belongs according to the declaration time corresponding to the resource declaration request; Determine multiple historical periods before the specified period, and obtain the conversion parameters of the control resource and the specified type of resource in each historical period; Screen out the conversion parameter with the largest value from the obtained conversion parameters, and use the screened conversion parameter as the target conversion parameter.

11. The method according to any one of claims 1-8, characterized in that, The obtaining of multiple target transaction information whose sum of the unreported resource quantities included in the transaction information set matches the total quantity of resources to be declared includes: If the resources to be declared corresponding to the total quantity of resources to be declared are non-specified type resources, obtain the conversion parameter of the resources to be declared and the specified type of resources in the specified period; the specified period is the period to which the declaration time corresponding to the resource declaration request belongs; Convert the total quantity of resources to be declared according to the conversion parameter in the specified period to obtain the reference total quantity of resources to be declared; Obtain multiple target transaction information whose sum of the unreported resource quantities included in the transaction information set matches the reference total quantity of resources to be declared.

12. The method according to claim 11, characterized in that, The obtaining of the conversion parameter of the resources to be declared and the specified type of resources in the specified period includes: Obtain the transaction types of the transaction information included in the transaction information set, and determine the target area from the resource transfer area and the resource transfer-out area corresponding to the resource declaration request according to the transaction type; Obtain the conversion parameter of the resources to be declared and the specified type of resources in the specified period in the target area.

13. A processing device for transaction information, characterized in that, The device includes: A request and set acquisition module configured to acquire a resource declaration request and a transaction information set; wherein, the resource declaration request includes the total quantity of resources to be declared, and the transaction information set includes multiple transaction information, and each transaction information includes a declared resource quantity and an unreported resource quantity; wherein, the declared resource quantity of each transaction information is the quantity of the resources that have been declared among the transaction resource quantities of each transaction information, and the unreported resource quantity of each transaction information is the quantity of the unreported resources among the transaction resource quantities of each transaction information; An information acquisition module configured to acquire multiple target transaction information whose sum of the unreported resource quantities included in the transaction information set matches the total quantity of resources to be declared; the sum of the unreported resource quantities of the multiple target transaction information is greater than or equal to the total quantity of resources to be declared; A resource quantity determination module configured to select a corresponding quantity of resources to be declared from the unreported resource quantities included in the multiple target transaction information according to the total quantity of resources to be declared; wherein, the sum of the resources to be declared of the multiple target transaction information is equal to the total quantity of resources to be declared; A declaration module configured to perform resource declaration processing according to the multiple target transaction information and the resources to be declared respectively selected from the multiple target transaction information.

14. An electronic device, characterized in that, Includes: One or more processors; A storage device for storing one or more computer programs, which, when executed by the one or more processors, cause the electronic device to implement the method for processing transaction information according to any one of claims 1-12.

15. A computer-readable storage medium, characterized in that, A computer program is stored thereon, which, when executed by a processor of an electronic device, causes the electronic device to implement the method for processing transaction information according to any one of claims 1-12.

16. A computer program product, characterized in that, It includes a computer program, which, when executed by a processor, implements the method for processing transaction information according to any one of claims 1-12.

Citation Information

Patent Citations

  • Data processing method, device and system of calculating sums of settlement of exchange based on multiple transactions

    CN106910065A

  • Resource matching method and device, equipment and storage medium

    CN117520858A