Movatterモバイル変換


[0]ホーム

URL:


CN106910065A - Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions - Google Patents

Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions
Download PDF

Info

Publication number
CN106910065A
CN106910065ACN201610427975.1ACN201610427975ACN106910065ACN 106910065 ACN106910065 ACN 106910065ACN 201610427975 ACN201610427975 ACN 201610427975ACN 106910065 ACN106910065 ACN 106910065A
Authority
CN
China
Prior art keywords
exchange
settlement
amount
transaction
money
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610427975.1A
Other languages
Chinese (zh)
Other versions
CN106910065B (en
Inventor
张梅
胡光辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding LtdfiledCriticalAlibaba Group Holding Ltd
Priority to CN202010753746.5ApriorityCriticalpatent/CN112016919B/en
Priority to CN201610427975.1Aprioritypatent/CN106910065B/en
Publication of CN106910065ApublicationCriticalpatent/CN106910065A/en
Application grantedgrantedCritical
Publication of CN106910065BpublicationCriticalpatent/CN106910065B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The application provides a data processing method, device and system for calculating a settlement amount based on multiple transactions. The method comprises the following steps: acquiring the settlement application amount and the current settlement transaction data, and judging whether the current settlement transaction data contains single transaction data marked as declared or not; if not, calculating the transaction amount of the user according to the calculated amount of the single transaction amount, and judging whether the amount is less than or equal to the transaction amount; if the sum is less than or equal to the sum of the selected candidate transaction group, matching and calculating the difference value between the single group total sum and the sum of the settlement application according to a preset settlement calculation mode to meet the matching requirement; and taking the single group total amount of the candidate transaction group as the settlement declaration amount data returned to the user, and marking the single transaction data as the settlement declaration amount as the declared single transaction data. By utilizing the embodiment of the application, the settlement application amount provided by the user can be accurately matched when multiple transactions are simultaneously submitted, and the user requirements are met.

Description

Translated fromChinese
基于多笔交易计算结汇金额的数据处理方法、装置及系统Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions

技术领域technical field

本申请属于货币结算信息数据处理技术领域,尤其涉及一种基于多笔交易计算结汇金额的数据处理方法、装置及系统。The present application belongs to the technical field of data processing of currency settlement information, and in particular relates to a data processing method, device and system for calculating settlement amounts based on multiple transactions.

背景技术Background technique

近年来信息技术的快速发展推动了跨境交易的迅速崛起,现在越来越多的商户直接或者通过线上交易平台等参与到跨境交易行列中。In recent years, the rapid development of information technology has promoted the rapid rise of cross-border transactions. Now more and more merchants participate in cross-border transactions directly or through online trading platforms.

由于通常不同国家之间货币汇率不同及政策影响,卖家商户等通常需要对交易货币进行结汇,换算成相应的境内货币。例如目前我国的境内商户的卖家用户对于境外发生的交易需要结汇成人民币后入境。国家对涉及到的外币入境结算成人名币,都需要按照监管要求进行申报,且目前申报需要按照交易维度进行申报。Due to the different currency exchange rates and policy influences between different countries, sellers and merchants usually need to settle the transaction currency and convert it into the corresponding domestic currency. For example, at present, sellers and users of domestic merchants in my country need to settle foreign exchange into RMB for overseas transactions before entering the country. The country needs to declare the adult currency involved in the foreign currency entry settlement according to the regulatory requirements, and the current declaration needs to be declared according to the transaction dimension.

结汇过程中基于监管机构要求,必须证明结汇金额必须是境外真实发生的交易,才能进行申报,且一笔交易只能申报一次。又因为多笔交易存在时交易可结汇金额拼凑结果无法完全与用户提出的结汇金额一致,甚至产生较大误差,因此,现有的外汇结算方式中采用的是仅对单笔交易数据金额进行结汇。原因主要在于每笔结汇申请金额是用户自主提出的,这个结汇申请金额跟当前用户实际可结汇金额没有实质关系,用户可能会输入大于,或者小于可结汇金额,或者是整数结汇,或者是小数结汇,或者是进行多次结汇等等。而对于每笔交易来说,这笔交易存在支付成功之后,还会存在退款(完成或者进行中的退款)或其他变更因素,结汇金额计算需要去掉这些退款金额等,可结汇金额也有拼凑的概念。但实际结汇过程中,用户的校验笔数及结汇金额等存在较大的不确定因素,难以满足用户多笔交易同时申报的精确结汇需求。In the process of foreign exchange settlement, based on the requirements of the regulatory agency, it is necessary to prove that the amount of foreign exchange settlement must be a real overseas transaction before it can be declared, and a transaction can only be declared once. In addition, when multiple transactions exist, the amount of foreign exchange that can be settled by the transaction cannot be completely consistent with the amount of foreign exchange settlement proposed by the user, and even a large error may occur. Therefore, the existing foreign exchange settlement method is to only settle foreign exchange for the data amount of a single transaction. . The main reason is that the amount of each foreign exchange settlement application is independently proposed by the user. This foreign exchange settlement application amount has no substantial relationship with the current user's actual foreign exchange settlement amount. The user may input more than or less than the available foreign exchange settlement amount, or an integer foreign exchange settlement, or a decimal foreign exchange settlement , or perform multiple foreign exchange settlements and so on. For each transaction, after the transaction is successfully paid, there will be refunds (completed or in-progress refunds) or other change factors. The calculation of the foreign exchange settlement amount needs to remove these refund amounts, etc., and the foreign exchange settlement amount also has Patchwork concept. However, in the actual process of foreign exchange settlement, there are large uncertainties in the number of checks and the amount of foreign exchange settlement by the user, which makes it difficult to meet the accurate foreign exchange settlement needs of users who declare multiple transactions at the same time.

因此,现有实际的外汇结算方式中采用的是仅对单笔交易数据金额进行结汇。显然,这种方式处理结汇金额效率低下,不能满足用户多笔交易同时申报时提出的结汇金额的精确匹配要求。Therefore, in the existing actual foreign exchange settlement method, only the data amount of a single transaction is settled. Obviously, this method is inefficient in processing the amount of foreign exchange settlement, and cannot meet the exact matching requirements of the amount of foreign exchange settlement proposed by users when multiple transactions are declared at the same time.

发明内容Contents of the invention

本申请目的在于提供一种基于多笔交易计算结汇金额的数据处理方法、装置及系统,可以实现多笔交易同时申报时能精确匹配用户提出的结汇申请金额,满足用于需求,提高用户体验。The purpose of this application is to provide a data processing method, device and system for calculating the amount of foreign exchange settlement based on multiple transactions, which can accurately match the application amount of foreign exchange settlement proposed by the user when multiple transactions are declared at the same time, meet user needs, and improve user experience.

本申请提供一种基于多笔交易计算结汇金额的数据处理方法、装置及系统是这样实现的:This application provides a data processing method, device and system for calculating the amount of foreign exchange settlement based on multiple transactions, which is realized in this way:

一种基于多笔交易计算结汇金额的数据处理方法,所述方法包括:A data processing method for calculating a foreign exchange settlement amount based on multiple transactions, the method comprising:

基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据,判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据;Obtain the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data, and determine whether there is a single transaction data marked as declared in the current foreign exchange settlement transaction data;

若所述判断的结果为不存在标记为已申报的单笔交易数据,则计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;并判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额;If the result of the judgment is that there is no single transaction data marked as declared, then calculate the single settlement amount of the single transaction data in the current foreign exchange settlement transaction data, and calculate the foreign exchange settlement amount based on the single transaction settlement amount. The user's transaction settlement amount; and determine whether the user's foreign exchange settlement application amount is less than or equal to the calculated transaction settlement amount;

若所述判断的结果为所述结汇申请金额小于等于交易可结汇总额,则基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组;If the result of the judgment is that the amount of the application for foreign exchange settlement is less than or equal to the total settlement amount of the transaction, then based on the single settlement amount of the single transaction data in the current foreign exchange settlement transaction data, the single group is matched and calculated according to the preset foreign exchange settlement calculation method Candidate transaction groups for which the difference between the total amount and the amount of the foreign exchange settlement application meets the matching requirements;

以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据,并将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。The single total amount of the candidate transaction group is used as the declared amount data of foreign exchange settlement returned to the user, and the single transaction data included in the candidate transaction group selected as the declared amount of foreign exchange settlement is marked as declared single transaction data.

一种基于多笔交易计算结汇金额的数据处理装置,所述装置包括:A data processing device for calculating the amount of foreign exchange settlement based on multiple transactions, the device comprising:

申报状态判断模块,用于基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据,判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据;A declaration status judging module, configured to obtain the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data, and determine whether there is a declared foreign exchange settlement transaction data in the current foreign exchange settlement transaction data. single transaction data;

金额比较模块,用于在所述判断的结果为不存在标记为已申报的单笔交易数据时,计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;并判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额;The amount comparison module is used to calculate the single settlement amount of the single transaction data in the current foreign exchange settlement transaction data when the result of the judgment is that there is no single transaction data marked as declared, according to the single Calculate the settlementable amount of the transaction of the user; and determine whether the amount of the user's application for settlement of foreign exchange is less than or equal to the calculated total settlementable amount of the transaction;

候选交易组计算模块,用于在所述判断的结果为所述结汇申请金额小于等于交易可结汇总额时,基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,并按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组;申报结果处理模块,用于以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据,并将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。The candidate transaction group calculation module is configured to, when the result of the judgment is that the amount of the foreign exchange settlement application is less than or equal to the total settlementable amount of the transaction, based on the single settlementable amount of the single transaction data in the current foreign exchange settlement transaction data, and according to the preset Set the foreign exchange settlement calculation method to match and calculate the candidate transaction group whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements; the declaration result processing module is used to return the total amount of a single group of the candidate transaction group as the return to the user The declared amount data of foreign exchange settlement, and mark the single transaction data included in the candidate transaction group selected as the declared amount of foreign exchange settlement as declared single transaction data.

一种结汇金额处理系统,所述系统包括:A foreign exchange settlement amount processing system, said system comprising:

数据获取单元,用于基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据;A data acquisition unit, configured to acquire the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data;

结汇处理单元,用于判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据;还用于在所述判断的结果为不存在标记为已申报的单笔交易数据时,计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;还用于判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额,并在所述判断的结果为所述结汇申请金额小于等于交易可结汇总额,基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,以及按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组;还用于以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据;The foreign exchange settlement processing unit is used to judge whether there is a single transaction data marked as declared in the current foreign exchange settlement transaction data; it is also used to calculate when the result of the judgment is that there is no single transaction data marked as declared The single settlementable amount of a single transaction data in the current foreign exchange settlement transaction data is used to calculate the settlementable total amount of the user's transaction according to the single transaction settlementable amount; it is also used to determine whether the user's foreign exchange settlement application amount is less than It is equal to the calculated total settlementable amount of the transaction, and the result of the judgment is that the amount of the application for foreign exchange settlement is less than or equal to the total settlementable amount of the transaction, based on the single settlementable amount of the single transaction data in the current foreign exchange settlement transaction data, and according to The preset foreign exchange settlement calculation method matches and calculates the candidate transaction group whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements; it is also used to use the total amount of a single group of the candidate transaction group as the foreign exchange settlement declaration returned to the user amount data;

申报状态更新单元,用于将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。The declaration status update unit is configured to mark the single transaction data included in the candidate transaction group selected as the declared amount of foreign exchange settlement as declared single transaction data.

本申请提供的一种基于多笔交易计算结汇金额的数据处理方法、装置及系统,可以通过设定的业务信息判断、处理算法和流程来实现基于多笔交易纬度精确计算出结汇金额的,可以满足与当下监管机构的申报要求。在本申请实施方案中,可以先判断申报的交易是否符合申报要求,如是否存在已申报交易或结汇申请金额小于交易可结汇总额等。若满足,然后根据每笔交易的可结汇金额判断交易可结汇总额是否大于用户的结汇申请金额。如果不大于,则可以从用户申请的多笔交易中筛选出与结汇申请金额差值最小的候选交易组,所述的候选交易组可以包括一笔或多笔单笔交易数据的组合。这样,以所述候选交易组中的每笔可结汇金额的总金额作为用户的结汇申报金额,可以实现用户基于多笔交易维度的精确计算出结汇金额,提高结汇计算效率,满足用户多笔交易进行结汇的复杂业务场景需求,提升用户体验。This application provides a data processing method, device and system for calculating the amount of foreign exchange settlement based on multiple transactions, which can accurately calculate the amount of foreign exchange settlement based on the latitude of multiple transactions through the set business information judgment, processing algorithm and process. Meet the reporting requirements with current regulatory agencies. In the implementation plan of this application, it is possible to first judge whether the declared transaction meets the reporting requirements, such as whether there is a declared transaction or the amount of the application for foreign exchange settlement is less than the total amount that can be settled in the transaction. If it is satisfied, then judge whether the total settlement amount of the transaction is greater than the user's settlement application amount according to the settlement amount of each transaction. If not, the candidate transaction group with the smallest difference with the amount of the foreign exchange settlement application may be selected from multiple transactions applied by the user, and the candidate transaction group may include a combination of one or more single transaction data. In this way, using the total amount of each settlementable foreign exchange amount in the candidate transaction group as the user's foreign exchange settlement declaration amount, the user can accurately calculate the foreign exchange settlement amount based on multiple transaction dimensions, improve the calculation efficiency of foreign exchange settlement, and satisfy the user's multiple transactions To meet the complex business scenario requirements of foreign exchange settlement and improve user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法一种实施例的方法流程示意图;Fig. 1 is a method flow diagram of an embodiment of a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by the present application;

图2是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图;Fig. 2 is a schematic flow diagram of another embodiment of a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by the present application;

图3是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组一种实施例的方法流程示意图;Fig. 3 is a schematic flow diagram of a method for calculating an embodiment of a candidate transaction group in a data processing method for calculating a foreign exchange settlement amount based on multiple transactions provided by the present application;

图4是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组另一种实施例的方法流程示意图;Fig. 4 is a schematic flow diagram of another embodiment of the method for calculating candidate transaction groups in a data processing method for calculating foreign exchange settlement amounts based on multiple transactions provided by the present application;

图5是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图;Fig. 5 is a schematic flow diagram of another embodiment of a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by the present application;

图6是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图;Fig. 6 is a schematic flow diagram of another embodiment of a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by the present application;

图7是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组另一种实施例的方法流程示意图;Fig. 7 is a schematic flow diagram of another embodiment of the method for calculating candidate transaction groups in a data processing method for calculating foreign exchange settlement amount based on multiple transactions provided by the present application;

图8是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置一种实施例的模块结构示意图;Fig. 8 is a schematic diagram of the module structure of an embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in the present application;

图9是本申请提供的候选交易组计算模块一种实施例的模块结构示意图;Fig. 9 is a schematic diagram of the module structure of an embodiment of the candidate transaction group calculation module provided by the present application;

图10是本申请提供的候选交易组计算模块另一种实施例的模块结构示意图;Fig. 10 is a schematic diagram of the module structure of another embodiment of the candidate transaction group calculation module provided by the present application;

图11是本申请提供的候选交易组计算模块另一种实施例的模块结构示意图;Fig. 11 is a schematic diagram of the module structure of another embodiment of the candidate transaction group calculation module provided by the present application;

图12是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置另一种实施例的模块结构示意图;Fig. 12 is a schematic diagram of the module structure of another embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application;

图13是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置另一种实施例的模块结构示意图。Fig. 13 is a schematic diagram of the module structure of another embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

下面结合附图对本申请所述的基于多笔交易计算结汇金额的数据处理方法、装置及客户端进行详细的说明。图1是本申请提供的基于多笔交易计算结汇金额的数据处理方法的一种实施例的方法流程示意图。虽然本申请提供了如下述实施例或附图所示的数据处理方法操作步骤或装置结构,但基于常规或者无需创造性的劳动在所述方法或装置中可以包括更多或者更少的操作步骤或模块结构。在逻辑性上不存在必要因果关系的步骤或结构中,这些步骤的执行顺序或装置的模块结构不限于本申请实施例提供的执行顺序或模块结构。所述的数据处理方法或模块结构的在实际中的数据处理装置或终端产品执行时,可以按照实施例或者附图所示的数据处理方法或模块结构连接进行顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。The data processing method, device and client for calculating foreign exchange settlement amount based on multiple transactions described in this application will be described in detail below with reference to the accompanying drawings. Fig. 1 is a schematic flow chart of an embodiment of the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by the present application. Although the present application provides the data processing method operation steps or device structure as shown in the following embodiments or drawings, more or less operation steps or device structures may be included in the method or device based on routine or creative work. Modular structure. In steps or structures that do not logically have a necessary causal relationship, the execution order of these steps or the modular structure of the device is not limited to the execution order or modular structure provided in the embodiments of the present application. When the data processing method or module structure is executed in actual data processing devices or terminal products, it can be executed sequentially or in parallel according to the data processing method or module structure connection shown in the embodiments or drawings (for example, parallel processing processor or multi-threaded environment).

本申请实施例以中国境内用户结汇金额为应用场景对本方案进行详细说明。当然,需要说明的是,本申请并不限于中国境内人民币结汇计算的应用,其他涉及本申请实施方案中的算法及逻辑相同或类似的业务,如不同币种的外币下多笔交易结汇计算,都可以适用本申请实施方案。具体的,在本申请实施例应用场景中,境内商户卖家用户对于境外发生的多笔交易外币需要结汇成人民币后入境。国家涉及到外币入境结算成人民币,都需要按照监管要求进行申报,且申报需要按照交易纬度进行申报。The embodiment of this application uses the amount of foreign exchange settlement by users in China as the application scenario to describe this solution in detail. Of course, it should be noted that this application is not limited to the application of RMB exchange settlement calculation in China, other businesses that involve the same or similar algorithms and logic in the implementation plan of this application, such as foreign exchange settlement calculation of multiple transactions in different currencies, All can be applied to the embodiment of the present application. Specifically, in the application scenario of the embodiment of this application, the domestic merchant seller user needs to settle foreign currency into RMB for multiple transactions that occur overseas before entering the country. When the country involves foreign currency entry settlement into RMB, it needs to declare in accordance with the regulatory requirements, and the declaration needs to be declared according to the transaction latitude.

通常情况下,用户的交易笔数及结汇金额存在退款、申报状态变更、新产生交易等多种不确定引擎,现实中一般需要用户自主提出结汇申请。在本申请实施例应用场景中,用户会随机提出结汇申请金额,结汇申请金额是多笔交易可结汇金额的总和,申报金额不得小于实际卖家用户得提现申请金额,并且已经申报的交易不允许重复申报。具体的如图1所示,本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中的一种实施例中所述方法可以包括:Under normal circumstances, the number of transactions and foreign exchange settlement amount of the user has various uncertain engines such as refund, declaration status change, and new transaction. In reality, the user generally needs to submit an application for foreign exchange settlement independently. In the application scenario of the embodiment of this application, the user will randomly submit an application amount for foreign exchange settlement. The application amount for foreign exchange settlement is the sum of the available foreign exchange settlement amounts for multiple transactions. The declared amount cannot be less than the actual withdrawal application amount of the seller user, and the declared transaction is not allowed to be repeated declare. Specifically, as shown in Figure 1, the method described in one embodiment of the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by this application may include:

S1:基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据,判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据。S1: Obtain the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data, and determine whether there is any single transaction data marked as declared in the current foreign exchange settlement transaction data.

在本申请实施例中,用户需要进行结汇申请时可以提交向结汇处理系统提交相应的结汇申请请求,所述结汇处理系统可以获取用户的结汇申请请求信息,从所述请求信息中获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据。本申请实施例中用户可以提出基于多笔交易的结汇申请,此时用户可以提供结汇申请金额,然后系统查询用户当前多笔交易的信息。在本实施例中,每笔交易可以设置有表示该比交易申报状态的标记符,如可以设置tag=true或false,用于表示交易是否已经被申报结算处理过,如果已申报,则将该交易的tag设置为true,否则设置为false。当然,本申请其他的实施例中采用其他标记符或方式标记交易是否为已申报,例如设置标记符为mark或者统一将已申报的交易的名称设置同一字符串开头等。In this embodiment of the application, when a user needs to apply for foreign exchange settlement, he can submit a corresponding foreign exchange settlement application request to the foreign exchange settlement processing system. The foreign exchange settlement processing system can obtain the user's foreign exchange settlement application request information, and obtain the user's foreign exchange settlement application request information from the request information. , and query the current foreign exchange settlement transaction data of the user. In the embodiment of this application, the user can submit a foreign exchange settlement application based on multiple transactions. At this time, the user can provide the amount of the foreign exchange settlement application, and then the system will query the information of the user's current multiple transactions. In this embodiment, each transaction can be provided with a tag representing the declaration status of the transaction, such as tag=true or false can be set to indicate whether the transaction has been declared and settled, and if it has been declared, the The tag of the transaction is set to true, otherwise it is set to false. Of course, in other embodiments of the present application, other markers or methods are used to mark whether the transaction is declared, such as setting the marker as mark or uniformly setting the name of the declared transaction at the beginning of the same string, etc.

本申请实施例中,可以基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据,判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据。In the embodiment of the present application, the user's foreign exchange settlement application amount can be obtained based on the user's foreign exchange settlement application request information, and the user's current foreign exchange settlement transaction data can be queried to determine whether there is a declared transaction in the current foreign exchange settlement transaction data. single transaction data.

S2:若所述判断的结果为不存在标记为已申报的单笔交易数据,则计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;并判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额。S2: If the result of the judgment is that there is no single transaction data marked as declared, then calculate the single settlement amount of the single transaction data in the current foreign exchange settlement transaction data, and calculate the settlement amount according to the single transaction Calculating the user's transaction settlement amount; and judging whether the user's foreign exchange settlement application amount is less than or equal to the calculated transaction settlement amount.

如果用户申报的当前结汇交易数据中不存在已经申报的单笔交易数据,则可以进一步的计算用户的交易可结汇总额。具体的,可以分别计算每笔交易的单笔可结汇金额,然后将该用户可结汇的所有单笔可结汇金额相加,得到该用户的交易可结汇总额。所述的交易可结汇总额可以用于判定用户的结汇申请金额是否满足要求。在本实施例硬要场景中,可以设置在用户的结汇申请金额小于等于(包括小于或等于中的任意一种情况)交易可结汇总额时才进行下一步结汇计算。If there is no declared single transaction data in the current foreign exchange settlement transaction data declared by the user, the user's transaction settlement amount can be further calculated. Specifically, the single settleable amount of each transaction can be calculated separately, and then all the single settleable amounts of the user can be added to obtain the user's transaction total amount. The total transaction settlement amount can be used to determine whether the user's application amount for foreign exchange settlement meets the requirements. In the rigid scenario of this embodiment, it can be set that the next step of foreign exchange settlement calculation will be performed only when the user's foreign exchange settlement application amount is less than or equal to (including any of the cases less than or equal to) the transaction settlement amount.

具体的例如用户的结汇申请金额为200元,用户现有7笔当前结汇交易数据,其中Trade4单笔交易数据金额为140元,单笔交易数据退款金额为40元,则单笔可结汇金额为100元=140元-40元。其他6笔当前结汇交易数据分别为Trade1’=10,Trade2’=80,Trade3’=70,Trade4’=140(refund4=40),Trade5’=270,Trade6’=50(refund=30),Trade7’=200(refund7=140),单位为元,结汇标记tag均为false。其中7笔交易中有3笔有退款,单笔可结汇金额=单笔交易数据金额-单笔交易数据退款金额,因此Trade4=140-40=100,Trade6=50-30=20,Trade7=200-140=60。然后该用户的交易可结汇总额为10+80+70+(140-40)+270+(50-30)+(200-140)=610元。计算出来的用户当前的校验可结汇总额610元大于用户结汇申请金额200元,可以认为满足本实施例中的结汇计算要求,可以进一步进行结汇计算。Specifically, for example, the user’s foreign exchange settlement application amount is 200 yuan, and the user has 7 current foreign exchange settlement transaction data, of which the Trade4 single transaction data amount is 140 yuan, and the single transaction data refund amount is 40 yuan, then the single foreign exchange settlement amount It is 100 yuan = 140 yuan - 40 yuan. The data of the other 6 current foreign exchange settlement transactions are Trade1'=10, Trade2'=80, Trade3'=70, Trade4'=140 (refund4=40), Trade5'=270, Trade6'=50 (refund=30), Trade7 '=200(refund7=140), the unit is yuan, and the settlement mark tag is false. Among the 7 transactions, 3 have refunds, and the single settlement amount = the single transaction data amount - the single transaction data refund amount, so Trade4 = 140-40 = 100, Trade6 = 50-30 = 20, Trade7 =200-140=60. Then the user's total transaction amount can be settled as 10+80+70+(140-40)+270+(50-30)+(200-140)=610 yuan. The calculated user's current checkable settlement amount of 610 yuan is greater than the user's foreign exchange settlement application amount of 200 yuan, which can be considered to meet the foreign exchange settlement calculation requirements in this embodiment, and further foreign exchange settlement calculations can be performed.

当然,如果当前结汇交易数据中存在已申报的单笔交易数据,如Trade4的结汇标记tag4=false,则可以根据预先设定的处理方式进行处理,例如判定该笔交易为非法结汇交易,不能参与本结汇计算,本次结算申请无效。或者,删除以标记为已申报的单笔交易数据后,再进行结汇计算。因此,本申请的另一种实施例中,所述方法还包括:Of course, if there is declared single transaction data in the current foreign exchange settlement transaction data, such as the foreign exchange settlement tag tag4=false of Trade4, it can be processed according to the preset processing method, for example, it is determined that the transaction is an illegal foreign exchange settlement transaction and cannot participate This foreign exchange settlement calculation, this settlement application is invalid. Or, delete the single transaction data marked as declared, and then perform foreign exchange settlement calculation. Therefore, in another embodiment of the present application, the method further includes:

S2’:若所述判断的结果为当前结汇交易数据中存在交易标记为已申报的单笔交易数据,则执行下述中的任意一种实施方式:S2': If the result of the judgment is that there is a single transaction data marked as declared in the current foreign exchange settlement transaction data, then execute any one of the following implementation methods:

S201’:判定用户当前的结汇申请失败;S201': Determine that the user's current foreign exchange settlement application has failed;

S202’:从用户的当前结汇交易数据中删除标记为已申报的单笔交易数据,以所述删除标记为已申报的单笔交易数据的当前结汇交易数据进行结汇金额计算。S202': Delete the single transaction data marked as declared from the user's current foreign exchange settlement transaction data, and calculate the foreign exchange settlement amount based on the current foreign exchange settlement transaction data that deletes the single transaction data marked as declared.

图2是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图。其他的实施例中,也可以根据具体的应用场景在当前结汇交易数据存在已申报的单笔交易数据时按照自定义的操作方式进行处理。在此不做赘述。Fig. 2 is a schematic flow diagram of another embodiment of a data processing method for calculating a foreign exchange settlement amount based on multiple transactions provided by the present application. In other embodiments, according to the specific application scenario, when there is declared single transaction data in the current foreign exchange settlement transaction data, it can be processed according to a self-defined operation mode. I won't go into details here.

S3:若所述判断的结果为所述结汇申请金额小于等于交易可结汇总额,则基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组。S3: If the result of the judgment is that the amount of the application for foreign exchange settlement is less than or equal to the total settlement amount of the transaction, based on the single settlement amount of the single transaction data in the current foreign exchange settlement transaction data, match and calculate according to the preset foreign exchange settlement calculation method Candidate transaction groups whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements.

经过上述用户的结汇申请金额与交易可结汇总额的比较,可以确定结汇申请金额是否小于等于计算出来的用户的交易可结汇总额。如果小于等于,则可以基于当前结汇交易数据中每笔交易的单笔可结汇金额匹配计算候选交易组。本申请所述的候选交易组可以包括按照预先设定的结算方式计算出来的用户当前结汇交易数据中符合结汇计算要求的一个或多个单笔交易数据的集合。例如本实施例中所述的候选交易组可以包括候选交易组中所有单笔交易数据的单笔可结汇金额的总金额与所述结汇申请金额的差值符合匹配,如差值为零或最小。After comparing the user's foreign exchange settlement application amount with the transaction settlement amount, it can be determined whether the foreign exchange settlement application amount is less than or equal to the calculated user's transaction settlement total amount. If it is less than or equal to, the candidate transaction group can be calculated based on the single settlementable amount of each transaction in the current foreign exchange settlement transaction data. The candidate transaction group described in this application may include a collection of one or more single transaction data that meet the requirements for foreign exchange settlement calculation among the user's current foreign exchange settlement transaction data calculated according to the preset settlement method. For example, the candidate transaction group described in this embodiment may include the difference between the total amount of the single settlement amount of all single transaction data in the candidate transaction group and the amount of the foreign exchange settlement application, for example, the difference is zero or the minimum .

所述的预设结汇计算方式可以根据具体的应用场景或设计需求进行计算,包括但不限于利用排列或组合的算法、已知和值逆向求解组合的算法、采用特定方式的交替叠加算法、以及其他匹配计算得出差值符合匹配要求的单笔交易组合的算法等。本申请提供一种计算所述候选交易组的实施方式,可以有效匹配计算出符合要求的候选交易组。具体的,本申请所述一种基于多笔交易计算结汇金额的数据处理方法的另一种实施例中,所述按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组可以包括:The preset settlement calculation methods can be calculated according to specific application scenarios or design requirements, including but not limited to algorithms that use permutations or combinations, algorithms that reversely solve combinations with known sum values, alternate superposition algorithms that use specific methods, and Algorithms for other matching calculations to obtain a single transaction combination whose difference meets the matching requirements, etc. The present application provides an implementation manner of calculating the candidate transaction group, which can effectively match and calculate the candidate transaction group that meets the requirements. Specifically, in another embodiment of the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, the matching and calculation of the total amount of a single group and the amount of the application for foreign exchange settlement according to the preset calculation method of foreign exchange settlement Candidate transaction groups whose difference meets the matching requirements may include:

S301:查找用户当前结汇交易数据中单笔可结汇金额是否有与用户结汇申请金额相同的单笔交易数据;若有,则以当前结汇交易数据中与结汇申请金额相同的K笔单笔交易数据分别作为K个候选交易组,K为正整数;S301: Find out whether there is single transaction data with the same amount as the user's foreign exchange settlement application amount in the user's current foreign exchange settlement transaction data; if so, use the K single transaction data in the current foreign exchange settlement transaction data with the same amount as the foreign exchange settlement application amount As K candidate transaction groups, K is a positive integer;

S302:若当前结汇交易数据中没有单笔可结汇金额与用户结汇申请金额相同的单笔交易数据,则以单笔交易数据的单笔可结汇金额为元素,列举出所述当前结汇交易数据的所有单笔交易组合C(N,M),并计算所述单笔交易组合C(N,M)中每一单笔交易组合的单笔可结汇金额的单组总金额,N为用户当前结汇交易数据中的单笔交易数目,M为整数且分别取值[2,N]];S302: If there is no single transaction data in the current foreign exchange settlement transaction data with a single foreign exchange settlement amount that is the same as the user's foreign exchange settlement application amount, list the current foreign exchange settlement transaction data with the single foreign exchange settlement amount of the single transaction data as an element All single transaction combinations C (N, M), and calculate the single group total amount of the single settlement amount of each single transaction combination in the single transaction combination C (N, M), N is the user's current foreign exchange settlement The number of single transactions in the transaction data, M is an integer and takes the value [2, N]];

S303:判断所述单笔交易组合C(N,M)中是否有单组总金额与所述结汇申请金额相同的单笔交易组合;若有,则以所述与所述结汇申请金额相同的单笔交易组合作为所述候选交易组。S303: Determine whether there is a single transaction combination in the single transaction combination C(N, M) whose total amount is the same as the amount of the foreign exchange settlement application; A single transaction combination is used as the candidate transaction group.

图3是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组一种实施例的方法流程示意图。具体的例如上述用户的结汇申请金额为200元,现有7(N为7)笔当前结汇交易数据的应用场景中,可以基于用户提出的结汇申请金额200元,查找用户当前7笔当前结汇交易数据中Trade1=10,Trade2=80,Trade3=70,Trade4=100,Trade5=270,Trade6=20,Trade7=60的单笔可结汇金额为200元的单笔交易数据。如有,则可以直接以该单笔可结汇金额为200元的单笔交易数据作为候选交易组。如果有单笔可结汇金额为200元的单笔交易数据,则可以形成多个候选交易组。Fig. 3 is a schematic flowchart of an embodiment of calculating candidate transaction groups in a data processing method for calculating foreign exchange settlement amount based on multiple transactions provided by the present application. Specifically, for example, the user’s foreign exchange settlement application amount is 200 yuan, and in the application scenario where there are 7 (N is 7) current foreign exchange settlement transaction data, the user’s current 7 current foreign exchange settlement transactions can be found based on the user’s foreign exchange settlement application amount of 200 yuan In the data, Trade1 = 10, Trade2 = 80, Trade3 = 70, Trade4 = 100, Trade5 = 270, Trade6 = 20, Trade7 = 60 single transaction data with a single settlement amount of 200 yuan. If so, the single transaction data with a single settlementable foreign exchange amount of 200 yuan can be directly used as a candidate transaction group. If there is a single transaction data with a single settlement amount of 200 yuan, multiple candidate transaction groups can be formed.

如本实施例应用场景中,如果没有单笔可结汇金额与用户的结汇申请金额相同的单笔交易数据,则可以以用户的7笔当前结汇交易数据每笔交易的单笔可结汇金额为元素,列举出所有的当前结汇交易数据的组合,例如先列举出7笔当前结汇交易数据中每两笔交易为一组的组合C(7,2),然后再列举7笔当前结汇交易数据中每三笔交易为一组的组合C(7,3),以此类推,一直到组合C(7,7),一种120种组合。然后再计算着120种组合中每一组所包括的当前结汇交易数据中单笔可结汇金额的单组总金额,判断哪些分组的单组总金额与所述结汇申请金额相同。若有单组总金额与所述结汇申请金额相同的分组,则可以以所述分组作为所述候选交易组。本实施例中为便于描述,可以将多种组合如120种组合中符合候选交易组筛选要求的组合称为候选分组。上述120种组合中,单笔总金额与所述结汇申请金额相同的候选分组可以包括(Trade1+Trade3+Trade4+Trade6=10+70+100+20=200)、(Trade2+Trade4+Trade6=80+100+20=200)。然后可以以该两组候选分组作为候选交易组。For example, in the application scenario of this embodiment, if there is no single transaction data with the same foreign exchange settlement amount as the user's foreign exchange settlement application amount, the user's 7 current foreign exchange settlement transaction data can use the single foreign exchange settlement amount of each transaction as an element , to list all the combinations of current foreign exchange settlement transaction data, for example, first list the combination C(7, 2) in which every two transactions in the 7 current foreign exchange settlement transaction data are a group, and then list each of the 7 current foreign exchange settlement transaction data Combination C (7, 3) with three transactions as a group, and so on, until combination C (7, 7), a combination of 120. Then calculate the single-group total amount of a single settable amount in the current foreign exchange settlement transaction data included in each of the 120 combinations, and determine which groups have the same single-group total amount as the foreign exchange settlement application amount. If there is a single group whose total amount is the same as the amount of the foreign exchange settlement application, the group can be used as the candidate transaction group. In this embodiment, for the convenience of description, various combinations such as 120 combinations that meet the screening requirements of candidate transaction groups may be referred to as candidate groupings. Among the above 120 combinations, the candidate groups whose single total amount is the same as the amount of the foreign exchange settlement application may include (Trade1+Trade3+Trade4+Trade6=10+70+100+20=200), (Trade2+Trade4+Trade6=80 +100+20=200). Then the two groups of candidate groups can be used as a candidate transaction group.

本申请实施例的实施方案,可以每笔当前结汇交易数据的单笔可结汇金额为元素列举出所有的组合,然后再所述组合中查找单组总金额与用户的结汇申请金额相同的候选分组,以查找到的候选分组作为候选交易组。这样,可以在用户的多笔交易中准确匹配出与用于申请金额相符的单笔交易。In the implementation of the embodiment of the present application, all the combinations can be enumerated by the single settlementable amount of each current foreign exchange settlement transaction data as an element, and then the candidate group whose total amount of a single group is the same as the user's foreign exchange settlement application amount is searched in the combination , taking the found candidate group as a candidate transaction group. In this way, a single transaction matching the application amount can be accurately matched among the user's multiple transactions.

可选的,本申请的另一种实施例中,如果所述组合C(N,M)中没有单组总金额与所述结汇申请金额相同的候选分组,则可以选取单组金额与所述结汇申请金额差值最小的分组作为候选交易组。这样,可以在符合结算规则的前提下为用户计算得出一个最精确于用户提供的结汇申请金额的结汇申报金额。具体的,本申请所述一种基于多笔交易计算结汇金额的数据处理方法的另一种实施例中,所述方法还可以包括:Optionally, in another embodiment of the present application, if there is no candidate group in the combination C(N, M) with a single group whose total amount is the same as the amount of the foreign exchange settlement application, then a single group of amount and the The group with the smallest difference in the application amount for foreign exchange settlement is the candidate transaction group. In this way, a foreign exchange settlement declaration amount that is most accurate to the foreign exchange settlement application amount provided by the user can be calculated for the user on the premise of complying with the settlement rules. Specifically, in another embodiment of the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, the method may further include:

S304:若所述单笔交易组合C(N,M)中没有单组总金额与所述结汇申请金额相同的单笔交易组合,则计算所述单笔交易组合C(N,M)中每个单笔交易组合的单组总金额与所述结汇申请金额的差值,并选取所述差值最小且单组总金额小于等于结汇申请金额的单笔交易组合作为候选交易组。S304: If there is no single transaction combination with the same total amount as the foreign exchange settlement application amount in the single transaction combination C (N, M), calculate the The difference between the total amount of a single group of a single transaction combination and the amount of the application for foreign exchange settlement, and select the single transaction combination with the smallest difference and the total amount of a single group that is less than or equal to the amount of the application for foreign exchange settlement as a candidate transaction group.

图4是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组一种实施例的方法流程示意图。具体的,例如120种所有C(N,M)组合中没有一组单组总金额为用户的结汇申请金额200元,则可以基于单笔可结汇金额分别计算这120种组合每个组合与结汇申请金额200元的差值。由于本申请实施例方案中可能有一些分组的单组总金额大于结汇申请金额,如Trade4+Trade1+Trade2+Trade6=210>200,因此本实施例中可以选取所述差值最小且单组总金额小于等于结汇申请金额的分组作为候选交易分组。Fig. 4 is a schematic flowchart of an embodiment of calculating candidate transaction groups in a data processing method for calculating foreign exchange settlement amount based on multiple transactions provided by the present application. Specifically, for example, if none of the 120 C(N, M) combinations has a single group whose total amount is the user’s foreign exchange settlement application amount of 200 yuan, then each of these 120 combinations can be calculated based on the single amount of foreign exchange settlement. The difference of the application amount of 200 yuan. Since the total amount of a single group of some groups in the scheme of the embodiment of this application may be greater than the amount of the application for settlement of foreign exchange, such as Trade4+Trade1+Trade2+Trade6=210>200, so in this embodiment, the minimum difference and the total amount of a single group can be selected. Groups whose amount is less than or equal to the application amount for foreign exchange settlement are regarded as candidate transaction groups.

当然,若所述判断结果为结汇申请金额大于交易可结汇总额,如结汇申请金额为650元,大于交易可结汇总额610元,则可以根据预先设定的处理方式进行处理,例如判定不符合结汇申请要求,本次结算申请无效。当然,也可以通知用户后,基于用户修改后符合结汇申请要的结汇申请金额进行处理等,具体的可以根据设计需求进行设置执行方式。因此,本申请的另一种实施例中,所述方法还包括:Of course, if the judgment result is that the amount of the application for foreign exchange settlement is greater than the total amount that can be settled in the transaction, for example, the amount of the application for foreign exchange settlement is 650 yuan, which is greater than the total amount of 610 yuan that can be settled in the transaction, then it can be processed according to the preset processing method, for example, it is determined that the foreign exchange settlement does not meet the requirements. Application requirements, this settlement application is invalid. Of course, after the user is notified, it can be processed based on the amount of the foreign exchange settlement application modified by the user and meets the requirements of the foreign exchange settlement application. Specifically, the execution method can be set according to the design requirements. Therefore, in another embodiment of the present application, the method further includes:

S3’:若所述判断结果为结汇申请金额大于交易可结汇总额,则判定用户当前的结汇申请失败。S3': If the judgment result is that the amount of the application for foreign exchange settlement is greater than the total amount that can be settled in the transaction, it is determined that the user's current application for foreign exchange settlement has failed.

图5是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图。Fig. 5 is a schematic flow diagram of another embodiment of a data processing method for calculating a foreign exchange settlement amount based on multiple transactions provided by the present application.

上述实施例中,可以先查找满足用户结汇申请金额要求的单笔交易数据,若不存在,则可以进一步的以组合为单位列举出当前结汇交易数据所有的可能组合。然后计算每一组的单组总金额,查找是否有与用户的结汇申请金额相同的组合,如有,则以该组合左右候选交易组。需要说明的,本申请中的一些实施例最后筛选得到的候选交易组可以包括一个,当然,在另一些实施例中可以包括存在多个符合要求的候选交易组,本申请对此并不做限制。例如本实施例中,可以与所述结汇申请金额的差值的匹配要求要零,即查找所述单笔交易组合C(N,M)中单组总金额与所述结汇申请金额相同的分组,如果存在这样的分组,则可以将其作为候选交易组。In the above embodiment, it is possible to first search for a single transaction data that meets the user's foreign exchange settlement application amount requirement, and if it does not exist, all possible combinations of the current foreign exchange settlement transaction data can be further listed in units of combinations. Then calculate the total amount of a single group of each group, find out whether there is a combination with the same amount as the user's foreign exchange settlement application, and if so, use this combination to control the candidate transaction group. It should be noted that in some embodiments of this application, the finally screened candidate transaction group may include one, and of course, in other embodiments, there may be multiple candidate transaction groups that meet the requirements, and this application does not limit this . For example, in this embodiment, the matching requirement of the difference with the amount of the foreign exchange settlement application should be zero, that is, to find the group whose total amount of a single group in the single transaction combination C (N, M) is the same as the amount of the foreign exchange settlement application , if such a group exists, it can be used as a candidate transaction group.

本申请实施例中,可以在所述判断的结果为所述结汇申请金额小于等于交易可结汇总额时,基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,并按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组。In the embodiment of the present application, when the result of the judgment is that the amount of the application for foreign exchange settlement is less than or equal to the total amount that can be settled in a transaction, based on the single settlementable amount of the single transaction data in the current foreign exchange settlement transaction data, and according to the preset The foreign exchange settlement calculation method matches and calculates the candidate transaction groups whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements.

S4:以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据,并将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。S4: Use the single total amount of the candidate transaction group as the declared amount data of foreign exchange settlement returned to the user, and mark the single transaction data included in the candidate transaction group selected as the declared amount of foreign exchange settlement as a declared single transaction data.

如前所述,所述的候选交易组可以包括一组或者多组的情况。可以根据场景设计要求或结算规则等选取一组候选交易组,以选取的所述候选交易组的单组总金额作为用户的结汇申报金额。同时,可以将选取的作为结汇申报金额的候选交易组的交易标记为已申报。具体的,例如上述实施例应用场景中,筛选单组总金额与结汇申请金额差值最小(优选为0)计算得到的两组候选交易组为:(Trade1+Trade3+Trade4+Trade6=10+70+100+20=200)和(Trade2+Trade4+Trade6=80+100+20=200)。然后可以根据预先制定的选取规则,如选取包含单笔交易数据最多或最少或包含最大金额等选取其中一组。本实施例中为减少交易单数,可以设置优选选取包含单笔交易数据最多的候选交易组,即可以从上述两组选取候选交易组中包含4笔交易的候选交易组:(Trade1+Trade3+Trade4+Trade6=10+70+100+20=200)。然后可以将改候选交易组中的每笔交易Trade1、Trade3、Trade4、Trade6标记为已申报,例如设置Trade1、Trade3、Trade4、Trade6的交易标记tag=true。As mentioned above, the candidate transaction group may include one or more groups of situations. A group of candidate transaction groups can be selected according to scenario design requirements or settlement rules, etc., and the single total amount of the selected candidate transaction groups can be used as the user's foreign exchange settlement declaration amount. At the same time, the selected transactions of the candidate transaction group as the declared amount of foreign exchange settlement may be marked as declared. Specifically, for example, in the application scenario of the above-mentioned embodiment, the two candidate transaction groups calculated by screening the difference between the total amount of a single group and the application amount for foreign exchange settlement with the smallest value (preferably 0) are: (Trade1+Trade3+Trade4+Trade6=10+70 +100+20=200) and (Trade2+Trade4+Trade6=80+100+20=200). Then you can select one of the groups according to the pre-established selection rules, such as selecting the most or the least single transaction data or including the largest amount. In this embodiment, in order to reduce the number of transaction orders, it is possible to set and preferably select the candidate transaction group containing the most single transaction data, that is, the candidate transaction group containing 4 transactions in the candidate transaction group can be selected from the above two groups: (Trade1+Trade3+Trade4 +Trade6=10+70+100+20=200). Then each trade Trade1, Trade3, Trade4, Trade6 in the candidate trade group can be marked as declared, for example, the trade flag tag=true of Trade1, Trade3, Trade4, Trade6 is set.

基于本申请提供实施方案中设定的业务规范、流程算法,可以在多笔交易同时申报时,在符合结汇规则前提下为用户给出一个最精确于用户提出的结汇申请金额的结汇申报金额,满足用户自主结汇需要,提升用户体验。Based on the business specifications and process algorithms set in the implementation plan provided by this application, when multiple transactions are declared at the same time, the user can be given a foreign exchange settlement declaration amount that is most accurate to the user's foreign exchange settlement application amount under the premise of complying with the foreign exchange settlement rules. To meet the needs of users for independent foreign exchange settlement and improve user experience.

本申请所述一种基于多笔交易计算结汇金额的数据处理方法的另一种实施例中,在判断的结果为结汇申请金额小于等于交易可结汇总额之后,还可以采取删除当前结汇交易数据中单笔可结汇金额大于本次用户结汇申请金额的单笔交易数据,这样,可以进一步提高结汇计算速率。图6是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法另一种实施例的方法流程示意图,具体的如图6所示,本申请所述一种基于多笔交易计算结汇金额的数据处理方法的另一种实施例中,在判断所述用户的结汇申请金额小于等于计算得到的交易可结汇总额之后,所述方法还可以包括:In another embodiment of the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, after the result of the judgment is that the application amount for foreign exchange settlement is less than or equal to the total amount that can be settled in the transaction, it is also possible to delete the current foreign exchange settlement transaction data. Single transaction data with a single amount that can be settled is greater than the amount of the user's application for foreign exchange settlement. In this way, the calculation speed of foreign exchange settlement can be further improved. Figure 6 is a schematic diagram of the method flow of another embodiment of a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions provided by this application. In another embodiment of the amount data processing method, after judging that the user's foreign exchange settlement application amount is less than or equal to the calculated transaction settlement amount, the method may further include:

S5:从所述用户当前结汇交易数据中删除单笔可结汇金额大于用户的结汇申请金额的单笔交易数据。S5: Delete the data of a single transaction whose single amount of foreign exchange that can be settled is greater than the amount of the user's application for foreign exchange settlement from the user's current foreign exchange settlement transaction data.

如上述实施例应用场景中,用户7笔交易中有一笔交易Trade5的单笔可结汇金额为270元,大于用户的结汇申请金额200元,因此在结汇计算过程中可以将Trade5这个当前结汇交易数据删除,用其余的6笔当前结汇交易数据进行结汇计算。显然,删除掉单笔可结汇金额大于结汇申请金额后的结汇数据计算量要比之前少,可以加快结汇计算速度,提高结汇处理效率。For example, in the application scenario of the above-mentioned embodiment, one of the user’s 7 transactions, Trade5, has a single foreign exchange settlement amount of 270 yuan, which is greater than the user’s foreign exchange settlement application amount of 200 yuan. Therefore, the current foreign exchange settlement transaction data of Trade5 can be used in the foreign exchange settlement calculation process. Delete, and use the remaining 6 current foreign exchange settlement transaction data for foreign exchange settlement calculation. Obviously, after deleting the amount of foreign exchange settlement data that can be settled in a single transaction that is greater than the amount of the application for foreign exchange settlement, the calculation volume of the foreign exchange settlement data is less than before, which can speed up the calculation speed of foreign exchange settlement and improve the efficiency of foreign exchange settlement processing.

本申请还提供另一种预设结汇计算方式的实施例,可以用于便捷、快速的匹配计算出候选交易组,计算出用户的结汇申报金额。图7是本申请提供的一种基于多笔交易计算结汇金额的数据处理方法中计算候选交易组另一种实施例的方法流程示意图。具体的,本申请所述一种基于多笔交易计算结汇金额的数据处理方法的另一种实施例中,所述基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,并按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组可以包括:The present application also provides another embodiment of a preset foreign exchange settlement calculation method, which can be used to conveniently and quickly match and calculate candidate transaction groups, and calculate the user's foreign exchange settlement declaration amount. Fig. 7 is a schematic flowchart of another embodiment of calculating candidate transaction groups in a data processing method for calculating foreign exchange settlement amount based on multiple transactions provided by the present application. Specifically, in another embodiment of the data processing method for calculating the foreign exchange settlement amount based on multiple transactions described in this application, the single foreign exchange settlement amount based on the single transaction data in the current foreign exchange settlement transaction data, and Candidate transaction groups that match and calculate the difference between the total amount of a single group and the amount of the application for foreign exchange settlement according to the preset foreign exchange settlement calculation method that meet the matching requirements may include:

S331:将当前结汇交易数据按照单笔交易数据的金额维度进行排序;S331: Sort the current foreign exchange settlement transaction data according to the amount dimension of the single transaction data;

S332:从排序队列最大值的一侧开始,依次按照头尾交替取值进行求和;S332: Starting from the side of the maximum value of the sorting queue, summing is performed sequentially according to the alternate values of the head and the tail;

S333:每一次取值求和之后将当前和值与结汇申请金额比较,当所述当前和值大于结汇申请金额时停止取值,并且去掉当前结汇计算的单笔交易的取值;S333: After summing each value, compare the current sum with the application amount for foreign exchange settlement, stop taking the value when the current sum is greater than the application amount for foreign exchange settlement, and delete the value of the single transaction for the current foreign exchange settlement calculation;

S334:以去掉当前结汇计算的单笔交易的取值所对应的当前和值所包括的单笔交易作为候选交易组;相应的,所述以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据包括:以去掉所述当前结汇计算的单笔交易的取值所得的当前和值作为返回给用户的结汇申请金额数据。S334: Use the single transaction included in the current sum value corresponding to the value of the single transaction calculated by removing the current foreign exchange settlement as the candidate transaction group; correspondingly, the single group total amount of the candidate transaction group is used as the return to The user's foreign exchange settlement declaration amount data includes: the current sum value obtained by subtracting the value of the single transaction calculated by the current foreign exchange settlement calculation as the foreign exchange settlement application amount data returned to the user.

具体的实施例应用场中,例如用户现有7笔交易,以Trade4为例单笔交易数据金额为140,单笔交易数据退款金额为40,单笔可结汇金额为100,Trade1=10,Trade2=80,Trade3=70,Trade4=140(refund4=40),Trade5=270,Trade6=50(refund=30),Trade7=200(refund7=140),结汇标记tag=false。其中7笔交易中有3笔有退款,单笔可结汇金额=单笔交易数据金额-单笔交易数据退款金额。Trade4=140-40=100,Trade6=50-30=20,Trade7=200-140=60。当前用户可结汇总额就是7笔交易的总额:交易可结汇总额=10+80+70+100+270+20+60=610。In the application field of the specific embodiment, for example, the user has 7 transactions. Taking Trade4 as an example, the data amount of a single transaction is 140, the refund amount of a single transaction data is 40, and the amount of a single foreign exchange settlement is 100. Trade1=10, Trade2=80, Trade3=70, Trade4=140 (refund4=40), Trade5=270, Trade6=50 (refund=30), Trade7=200 (refund7=140), settlement flag tag=false. Among the 7 transactions, 3 have refunds, and the single settlement amount = single transaction data amount - single transaction data refund amount. Trade4=140-40=100, Trade6=50-30=20, Trade7=200-140=60. The total amount that can be settled by the current user is the total amount of 7 transactions: the total amount that can be settled by the transaction = 10+80+70+100+270+20+60=610.

按照本实例提供的数据处理方法,可以包括如下实施过程:According to the data processing method provided in this example, the following implementation process may be included:

1、假如用户提出结汇申请金额为200;1. If the user submits an application for foreign exchange settlement with an amount of 200;

2、判断该用户是否有交易tag=false,如果是则继续下一步,如果没有则结汇申请失败;2. Determine whether the user has a transaction tag=false, if yes, continue to the next step, if not, the application for foreign exchange settlement fails;

3、判断结汇申请金额≤交易可结汇总额,如果是则继续下一步,如果否则结汇申请失败;3. Judging that the amount of the application for foreign exchange settlement ≤ the total amount that can be settled in the transaction, if yes, proceed to the next step, otherwise, the application for foreign exchange settlement fails;

4、删除掉交易中大于本次申请金额的交易号,如举例数据:Trade5;4. Delete the transaction number in the transaction that is greater than the application amount, such as example data: Trade5;

5、剩下的6笔交易按照金额纬度从小到大进行排序:5. The remaining 6 transactions are sorted according to the latitude of amount from small to large:

Trade1=10<Trade6=20<Trade7=60<Trade3=70<Trade2=80<Trade4=100;Trade1=10<Trade6=20<Trade7=60<Trade3=70<Trade2=80<Trade4=100;

6、然后从排序队列的头尾的取数进行求和,从队列尾开始取,再取头部,依次交替;6. Then sum the numbers from the head and tail of the sorted queue, start from the end of the queue, and then take the head, alternately;

7、每取一次与结汇申请金额比较,当计算金额>结汇申请金额时停止,并且去掉当前这笔的交易。如举例数据中详细步骤:7. Comparing each withdrawal with the amount of the foreign exchange settlement application, stop when the calculated amount > the foreign exchange settlement application amount, and delete the current transaction. For example, the detailed steps in the example data:

第一步:Trade4=100<200,继续累加;The first step: Trade4=100<200, continue to accumulate;

第二步:Trade4+Trade1=110<200,继续累加;The second step: Trade4+Trade1=110<200, continue to accumulate;

第三步:Trade4+Trade1+Trade2=190<200,继续累加;The third step: Trade4+Trade1+Trade2=190<200, continue to accumulate;

第四步:Trade4+Trade1+Trade2+Trade6=210>200,停止;Step 4: Trade4+Trade1+Trade2+Trade6=210>200, stop;

8、去掉Trade6,以Trade4、Trade1、Trade2为候选交易组;取Trade4、Trade1、Trade2得单次结汇金额的和值,该和值金额等于结汇申报金额,并且标记Trade4、Trade1、Trade2,tag=true;8. Remove Trade6, take Trade4, Trade1, and Trade2 as candidate transaction groups; take the sum of the single foreign exchange settlement amount obtained by Trade4, Trade1, and Trade2, and the sum value is equal to the declared amount of foreign exchange settlement, and mark Trade4, Trade1, Trade2, tag= true;

9、结汇申请成功,结汇申报金额为190,小于用户申请的200。9. The application for foreign exchange settlement is successful, and the declared amount of foreign exchange settlement is 190, which is less than the 200 requested by the user.

本申请的实施方案可以在按照提供的当前流程中的计算,是在符合结汇规则前提下给出一个最精确于用户提出的结汇金额值,满足用户自主结汇需求。The implementation plan of this application can be calculated in accordance with the current process provided, and under the premise of complying with the foreign exchange settlement rules, it can give the most accurate value of the foreign exchange settlement amount proposed by the user to meet the user's independent foreign exchange settlement needs.

本申请实施例提供的一种基于多笔交易计算结汇金额的数据处理方法,可以通过设定的业务信息判断、处理算法和流程来实现基于多笔交易纬度精确计算出结汇金额的,可以满足与当下监管机构的申报要求。在本申请实施方案中,可以先判断申报的交易是否符合申报要求,如是否存在已申报交易或结汇申请金额小于交易可结汇总额等。若满足,然后根据每笔交易的可结汇金额判断交易可结汇总额是否大于用户的结汇申请金额。如果不大于,则可以从用户申请的多笔交易中筛选出与结汇申请金额差值最小的候选交易组,所述的候选交易组可以包括一笔或多笔单笔交易数据的组合。这样,以所述候选交易组中的每笔可结汇金额的总金额作为用户的结汇申报金额,可以实现用户基于多笔交易维度的精确计算出结汇金额,提高结汇计算效率,满足用户多笔交易进行结汇的复杂业务场景需求,提升用户体验。The embodiment of the present application provides a data processing method for calculating the amount of foreign exchange settlement based on multiple transactions, which can accurately calculate the amount of foreign exchange settlement based on the latitude of multiple transactions through the set business information judgment, processing algorithm and process, and can meet the requirements of Current regulatory reporting requirements. In the implementation plan of this application, it is possible to first judge whether the declared transaction meets the reporting requirements, such as whether there is a declared transaction or the amount of the application for foreign exchange settlement is less than the total amount that can be settled in the transaction. If it is satisfied, then judge whether the total settlement amount of the transaction is greater than the user's settlement application amount according to the settlement amount of each transaction. If not, the candidate transaction group with the smallest difference with the amount of the foreign exchange settlement application may be selected from multiple transactions applied by the user, and the candidate transaction group may include a combination of one or more single transaction data. In this way, using the total amount of each settlementable foreign exchange amount in the candidate transaction group as the user's foreign exchange settlement declaration amount, the user can accurately calculate the foreign exchange settlement amount based on multiple transaction dimensions, improve the calculation efficiency of foreign exchange settlement, and satisfy the user's multiple transactions To meet the complex business scenario requirements of foreign exchange settlement and improve user experience.

基于本申请所述的一种基于多笔交易计算结汇金额的数据处理方法,本申请提供一种基于多笔交易计算结汇金额的数据处理装置。图8是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置一种实施例的模块结构示意图,如图8所示,所述装置可以包括:Based on the data processing method for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, this application provides a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions. Fig. 8 is a schematic diagram of the module structure of an embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in the present application. As shown in Fig. 8, the device may include:

申报状态判断模块101,可以用于基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据,判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据;The declaration status judging module 101 can be used to obtain the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data, and determine whether there is a marked as completed transaction in the current foreign exchange settlement transaction data. The declared single transaction data;

金额比较模块102,可以用于在所述判断的结果为不存在标记为已申报的单笔交易数据时,计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;并判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额;The amount comparison module 102 can be used to calculate the single settlement amount of a single transaction data in the current foreign exchange settlement transaction data when the result of the judgment is that there is no single transaction data marked as declared, according to the Calculating the settlementable amount of the transaction of the user in a single transaction; and judging whether the amount of the user's application for settlement of foreign exchange is less than or equal to the calculated total settlementable amount of the transaction;

候选交易组计算模块103,可以用于在所述判断的结果为所述结汇申请金额小于等于交易可结汇总额时,基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,并按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组;The candidate transaction group calculation module 103 may be configured to, when the result of the judgment is that the amount of the application for foreign exchange settlement is less than or equal to the total amount of the transaction that can be settled, based on the single settlementable amount of the single transaction data in the current foreign exchange settlement transaction data, and According to the preset foreign exchange settlement calculation method, match and calculate the candidate transaction group whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements;

申报结果处理模块104,可以用于以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据,并将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。The declaration result processing module 104 can be used to use the total amount of a single group of the candidate transaction group as the foreign exchange settlement declaration amount data returned to the user, and mark the single transaction data included in the candidate transaction group selected as the foreign exchange settlement declaration amount It is the declared single transaction data.

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述候选交易组计算模块103可以包括:In another embodiment of the data processing device for calculating the settlement amount based on multiple transactions described in this application, the candidate transaction group calculation module 103 may include:

第一处理模块1031,可以用于查找用户当前结汇交易数据中单笔可结汇金额是否有与用户结汇申请金额相同的单笔交易数据;若有,则以当前结汇交易数据中与结汇申请金额相同的K笔单笔交易数据分别作为K个候选交易组,K为正整数;The first processing module 1031 can be used to find out whether there is a single transaction data with the same amount as the user's foreign exchange settlement application amount in the user's current foreign exchange settlement transaction data; The K single transaction data of K are respectively used as K candidate transaction groups, and K is a positive integer;

第二处理模块1032,可以用于在当前结汇交易数据中没有单笔可结汇金额与用户结汇申请金额相同的单笔交易数据时,以单笔交易数据的单笔可结汇金额为元素,列举出所述当前结汇交易数据的所有单笔交易组合C(N,M),并计算所述单笔交易组合C(N,M)中每一单笔交易组合的单笔可结汇金额的单组总金额,N为用户当前结汇交易数据中的单笔交易数目,M为整数且分别取值[2,N];The second processing module 1032 can be used to use the single settlementable amount of the single transaction data as an element to list All single transaction combinations C(N, M) of the current foreign exchange settlement transaction data, and calculate the single group total of the single settlement amount of each single transaction combination in the single transaction combination C(N, M) Amount, N is the number of single transactions in the user's current foreign exchange settlement transaction data, M is an integer and takes the value [2, N] respectively;

第三处理模块1033,可以判断所述单笔交易组合C(N,M)中是否有单组总金额与所述结汇申请金额相同的单笔交易组合;若有,则以所述与所述结汇申请金额相同的单笔交易组合作为所述候选交易组。The third processing module 1033 can judge whether there is a single transaction combination in the single transaction combination C(N, M) whose total amount is the same as the amount of the foreign exchange settlement application; A single transaction combination with the same application amount for foreign exchange settlement is used as the candidate transaction group.

图9是本申请提供的候选交易组计算模块一种实施例的模块结构示意图。Fig. 9 is a schematic diagram of the module structure of an embodiment of the candidate transaction group calculation module provided by the present application.

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述候选交易组计算模块103还可以包括:In another embodiment of the data processing device for calculating the settlement amount based on multiple transactions described in this application, the candidate transaction group calculation module 103 may also include:

第四处理模块1034,可以用于在所述单笔交易组合C(N,M)中没有单组总金额与所述结汇申请金额相同的单笔交易组合时,计算所述单笔交易组合C(N,M)中每个单笔交易组合的单组总金额与所述结汇申请金额的差值,并选取所述差值最小且单组总金额小于等于结汇申请金额的单笔交易组合作为候选交易组。The fourth processing module 1034 can be used to calculate the single transaction combination C when there is no single transaction combination whose total amount is the same as the amount of the foreign exchange settlement application in the single transaction combination C(N, M) The difference between the total amount of a single group of each single transaction combination in (N, M) and the amount of the application for settlement of foreign exchange, and the single transaction combination with the smallest difference and the total amount of a single group that is less than or equal to the amount of the application for foreign exchange settlement is selected as Candidate transaction group.

图10是本申请提供的候选交易组计算模块另一种实施例的模块结构示意图。Fig. 10 is a schematic diagram of the module structure of another embodiment of the candidate transaction group calculation module provided by the present application.

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述候选交易组计算模块103可以包括:In another embodiment of the data processing device for calculating the settlement amount based on multiple transactions described in this application, the candidate transaction group calculation module 103 may include:

金额排序模块1131,可以用于将当前结汇交易数据按照单笔交易数据的金额维度进行排序;The amount sorting module 1131 can be used to sort the current foreign exchange settlement transaction data according to the amount dimension of the single transaction data;

求和计算模块1132,可以用于从排序队列最大值的一侧开始,依次按照头尾交替取值进行求和;The summation calculation module 1132 can be used to start from the side of the maximum value of the sorting queue, and perform summation according to the alternate values of the head and the tail;

和值比较处理模块1133,可以用于每一次取值求和之后将当前和值与结汇申请金额比较,当所述当前和值大于结汇申请金额时停止取值,并去掉当前结汇计算的单笔交易的取值;The sum value comparison processing module 1133 can be used to compare the current sum value with the application amount for foreign exchange settlement after each value summation, and stop taking the value when the current sum value is greater than the application amount for foreign exchange settlement, and remove the single transaction of the current foreign exchange settlement calculation The value of the transaction;

交易组确定模块1134,可以用于以去掉当前结汇计算的单笔交易的取值所对应的当前和值所包括的单笔交易作为候选交易组;相应的,所述申报结果处理模块104用于以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据包括所述申报结果处理模块104用于以去掉所述当前结汇计算的单笔交易的取值所得的当前和值作为返回给用户的结汇申请金额数据。The transaction group determination module 1134 can be used to remove the single transaction included in the current sum value corresponding to the value of the single transaction calculated by the current foreign exchange settlement as a candidate transaction group; correspondingly, the declaration result processing module 104 is used to The single-group total amount of the candidate transaction group is used as the foreign exchange settlement declaration amount data returned to the user, including the current sum value obtained by the declaration result processing module 104 by removing the value of the single transaction calculated by the current foreign exchange settlement calculation. The amount data of the foreign exchange settlement application returned to the user.

图11是本申请提供的候选交易组计算模块另一种实施例的模块结构示意图。Fig. 11 is a schematic diagram of the module structure of another embodiment of the candidate transaction group calculation module provided by the present application.

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述装置还可以包括:In another embodiment of the data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, the device may further include:

交易删除模块105,可以用于在判断所述用户的结汇申请金额小于等于计算得到的交易可结汇总额之后,从所述用户当前结汇交易数据中删除单笔可结汇金额大于用户的结汇申请金额的单笔交易数据。The transaction deletion module 105 may be configured to delete from the user's current foreign exchange settlement transaction data a single transaction whose amount is greater than the user's foreign exchange settlement application amount after judging that the user's foreign exchange settlement application amount is less than or equal to the calculated transaction settlement amount. single transaction data.

图12是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置另一种实施例的模块结构示意图。Fig. 12 is a schematic diagram of the module structure of another embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application.

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述装置还可以包括下述中的至少一种:In another embodiment of the data processing device for calculating the settlement amount based on multiple transactions described in this application, the device may also include at least one of the following:

第一失败处理模块1061,可以用于在判断的结果为当前结汇交易数据中存在交易标记为已申报的单笔交易数据时,判定用户当前的结汇申请失败;The first failure processing module 1061 can be used to determine that the user's current foreign exchange settlement application fails when the result of the judgment is that there is a single transaction data marked as declared in the current foreign exchange settlement transaction data;

重计算处理模块1062,可以用于从用户的当前结汇交易数据中删除标记为已申报的单笔交易数据,以所述删除标记为已申报的单笔交易数据的当前结汇交易数据进行结汇金额计算。The recalculation processing module 1062 can be used to delete the single transaction data marked as declared from the user's current foreign exchange settlement transaction data, and calculate the foreign exchange settlement amount based on the current foreign exchange settlement transaction data marked as declared. .

本申请所述一种基于多笔交易计算结汇金额的数据处理装置的另一种实施例中,所述装置还可以包括:In another embodiment of the data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application, the device may further include:

第二失败处理模块1063,可以用于在所述判断结果为结汇申请金额大于交易可结汇总额时,则判定用户当前的结汇申请失败。The second failure processing module 1063 may be configured to determine that the user's current foreign exchange settlement application fails when the judgment result is that the amount of the application for foreign exchange settlement is greater than the total amount that can be settled in the transaction.

图13是本申请所述的一种基于多笔交易计算结汇金额的数据处理装置另一种实施例的模块结构示意图。Fig. 13 is a schematic diagram of the module structure of another embodiment of a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions described in this application.

上述实施例提供的数据处理装置中具体涉及到的候选交易组计算方法、组合的计算方法、金额排序及交替取值以及和值比较等具体的可以参考本申请其他实施例或应用场景的相关描述,在此不做赘述。本申请实施例提供的一种基于多笔交易计算结汇金额的数据处理装置,可以通过设定的业务信息判断、处理算法和流程来实现基于多笔交易纬度精确计算出结汇金额的,可以满足与当下监管机构的申报要求。在本申请实施方案中,可以先判断申报的交易是否符合申报要求,如是否存在已申报交易或结汇申请金额小于交易可结汇总额等。若满足,然后根据每笔交易的可结汇金额判断交易可结汇总额是否大于用户的结汇申请金额。如果不大于,则可以从用户申请的多笔交易中筛选出与结汇申请金额差值最小的候选交易组,所述的候选交易组可以包括一笔或多笔单笔交易数据的组合。这样,以所述候选交易组中的每笔可结汇金额的总金额作为用户的结汇申报金额,可以实现用户基于多笔交易维度的精确计算出结汇金额,提高结汇计算效率,满足用户多笔交易进行结汇的复杂业务场景需求,提升用户体验。For details about the candidate transaction group calculation method, combination calculation method, amount sorting, alternate value selection, and sum value comparison specifically involved in the data processing device provided by the above embodiments, please refer to the relevant descriptions in other embodiments or application scenarios of this application. , which will not be described here. The embodiment of the present application provides a data processing device for calculating the amount of foreign exchange settlement based on multiple transactions, which can accurately calculate the amount of foreign exchange settlement based on the latitude of multiple transactions through the set business information judgment, processing algorithm and process, and can meet the requirements of Current regulatory reporting requirements. In the implementation plan of this application, it is possible to first judge whether the declared transaction meets the reporting requirements, such as whether there is a declared transaction or the amount of the application for foreign exchange settlement is less than the total amount that can be settled in the transaction. If it is satisfied, then judge whether the total settlement amount of the transaction is greater than the user's settlement application amount according to the settlement amount of each transaction. If not, the candidate transaction group with the smallest difference with the amount of the foreign exchange settlement application may be selected from multiple transactions applied by the user, and the candidate transaction group may include a combination of one or more single transaction data. In this way, using the total amount of each settlementable foreign exchange amount in the candidate transaction group as the user's foreign exchange settlement declaration amount, the user can accurately calculate the foreign exchange settlement amount based on multiple transaction dimensions, improve the calculation efficiency of foreign exchange settlement, and satisfy the user's multiple transactions To meet the complex business scenario requirements of foreign exchange settlement and improve user experience.

本申请上述所述的基于多笔交易计算结汇金额的数据处理方法或装置可以应用于结汇金额计算的处理系统中,可以实现多笔交易同时申报时,满足不能重复申报且还要求能精确匹配用户提出的结汇申请金额的需求,可以提供结汇计算效率,提高用户体验。具体的,本申请提供一种结汇金额处理系统,所述系统可以包括:The data processing method or device for calculating the amount of foreign exchange settlement based on multiple transactions described above in this application can be applied to the processing system for calculating the amount of foreign exchange settlement, and can realize the simultaneous declaration of multiple transactions, satisfying the requirement that repeated declarations cannot be repeated and that users can be accurately matched The demand for the amount of foreign exchange settlement application proposed can improve the efficiency of foreign exchange settlement calculation and improve user experience. Specifically, the application provides a foreign exchange settlement amount processing system, and the system may include:

数据获取单元,可以用于基于用户的结汇申请请求信息获取所述用户的结汇申请金额,并查询出所述用户的当前结汇交易数据;The data acquisition unit can be used to obtain the user's foreign exchange settlement application amount based on the user's foreign exchange settlement application request information, and query the user's current foreign exchange settlement transaction data;

结汇处理单元,可以用于判断所述当前结汇交易数据中是否存在标记为已申报的单笔交易数据;还用于在所述判断的结果为不存在标记为已申报的单笔交易数据时,计算所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,根据所述单笔交易可结汇金额计算所述用户的交易可结汇总额;还用于判断所述用户的结汇申请金额是否小于等于计算得到的交易可结汇总额,并在所述判断的结果为所述结汇申请金额小于等于交易可结汇总额,基于所述当前结汇交易数据中单笔交易数据的单笔可结汇金额,以及按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组;还用于以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据;The foreign exchange settlement processing unit can be used to judge whether there is a single transaction data marked as declared in the current foreign exchange settlement transaction data; it is also used for when the result of the judgment is that there is no single transaction data marked as declared, Calculate the single settlementable amount of a single transaction data in the current foreign exchange settlement transaction data, and calculate the user's transaction settlement amount according to the single transaction settlementable amount; it is also used to determine whether the user's foreign exchange settlement application amount is is less than or equal to the calculated settlementable total amount of the transaction, and the result of the judgment is that the amount of the foreign exchange settlement application is less than or equal to the transaction's settlementable total amount, based on the single settlementable amount of the single transaction data in the current foreign exchange settlement transaction data, and According to the preset foreign exchange settlement calculation method, match and calculate the candidate transaction group whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements; it is also used to use the total amount of a single group of the candidate transaction group as the foreign exchange settlement returned to the user Declared amount data;

申报状态更新单元,可以用于将选取的作为结汇申报金额的候选交易组所包括的单笔交易数据标记为已申报的单笔交易数据。The declaration status update unit may be used to mark the single transaction data included in the candidate transaction group selected as the declared amount of foreign exchange settlement as declared single transaction data.

用户的结汇交易数据可以包括但不限于采用分布式数据库的方式存储、云存储、本地存储、关系或非关系数据库存储等,所述的结汇处理单元可以包括但不限于CPU、逻辑门、可编程电路等方式实现。The user's foreign exchange settlement transaction data may include, but is not limited to, stored in a distributed database, cloud storage, local storage, relational or non-relational database storage, etc., and the foreign exchange settlement processing unit may include but not limited to CPU, logic gates, programmable circuits etc.

当然,在其他的实施例中,所述的结汇处理单元按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组,被设置成包括下述的实施方式:Of course, in other embodiments, the foreign exchange settlement processing unit matches and calculates the candidate transaction groups whose difference between the total amount of a single group and the application amount of foreign exchange settlement meets the matching requirements according to the preset foreign exchange settlement calculation method, and is set to include the following The described implementation mode:

查找用户当前结汇交易数据中单笔可结汇金额是否有与用户结汇申请金额相同的单笔交易数据;若有,则以当前结汇交易数据中与结汇申请金额相同的K笔单笔交易数据分别作为K个候选交易组,K为正整数;Find out whether there is a single transaction data with the same amount as the user's foreign exchange settlement application amount in the user's current foreign exchange settlement transaction data; K candidate transaction groups, K is a positive integer;

在当前结汇交易数据中没有单笔可结汇金额与用户结汇申请金额相同的单笔交易数据时,以单笔交易数据的单笔可结汇金额为元素,列举出所述当前结汇交易数据的所有单笔交易组合C(N,M),并计算所述单笔交易组合C(N,M)中每一单笔交易组合的单笔可结汇金额的单组总金额,N为用户当前结汇交易数据中的单笔交易数目,M为整数且分别取值[2,N];When there is no single transaction data in the current foreign exchange settlement transaction data with the same foreign exchange settlement amount as the user's foreign exchange settlement application amount, all transactions in the current foreign exchange settlement transaction data are listed using the single foreign exchange settlement amount in the single transaction data as an element. transaction combination C (N, M), and calculate the single group total amount of the single settlement amount of each single transaction combination in the single transaction combination C (N, M), N is the user's current foreign exchange settlement transaction data The number of single transactions in , M is an integer and takes the value [2, N] respectively;

判断所述单笔交易组合C(N,M)中是否有单组总金额与所述结汇申请金额相同的单笔交易组合;若有,则以所述与所述结汇申请金额相同的单笔交易组合作为所述候选交易组。Judging whether there is a single transaction combination in the single transaction combination C(N, M) whose total amount is the same as the amount of the foreign exchange settlement application; The transaction combination is used as the candidate transaction group.

当然,在其他的实施例中,所述的结汇处理单元按照预设结汇计算方式匹配计算出单组总金额与所述结汇申请金额的差值符合匹配要求的候选交易组,被设置成,包括下述的实施方式:Of course, in other embodiments, the foreign exchange settlement processing unit matches and calculates the candidate transaction groups whose difference between the total amount of a single group and the amount of the foreign exchange settlement application meets the matching requirements according to the preset foreign exchange settlement calculation method, and is set to include The following implementations:

将当前结汇交易数据按照单笔交易数据的金额维度进行排序;Sort the current foreign exchange settlement transaction data according to the amount dimension of the single transaction data;

从排序队列最大值的一侧开始,依次按照头尾交替取值进行求和;Starting from the side with the maximum value of the sorting queue, the sum is performed sequentially according to the alternate values of the head and the tail;

每一次取值求和之后将当前和值与结汇申请金额比较,当所述当前和值大于结汇申请金额时停止取值,并去掉当前结汇计算的单笔交易的取值;After each value summation, compare the current sum value with the application amount for foreign exchange settlement, stop taking the value when the current sum value is greater than the application amount for foreign exchange settlement, and remove the value of the single transaction for the current foreign exchange settlement calculation;

以去掉当前结汇计算的单笔交易的取值所对应的当前和值所包括的单笔交易作为候选交易组,相应的,所述以所述候选交易组的单组总金额作为返回给用户的结汇申报金额数据包括所述申报结果处理模块用于以去掉所述当前结汇计算的单笔交易的取值所得的当前和值作为返回给用户的结汇申请金额数据。The single transaction included in the current sum value corresponding to the value of the single transaction calculated by removing the current foreign exchange settlement is used as the candidate transaction group, and correspondingly, the single group total amount of the candidate transaction group is used as the return to the user The foreign exchange settlement declaration amount data includes the current sum value obtained by the declaration result processing module by subtracting the single transaction value of the current foreign exchange settlement calculation as the foreign exchange settlement application amount data returned to the user.

具体的,上述处理系统的实施例中涉及到的结汇处理单元数据处理的实施过程可以参照本申请其他方法或者装置实施例所述,在此不做赘述。Specifically, the implementation process of the data processing of the foreign exchange settlement processing unit involved in the above embodiment of the processing system can refer to the description in other method or device embodiments of the present application, and details are not repeated here.

本申请实施例提供的一种基于多笔交易计算结汇金额的数据处理方法、装置及系统,可以通过设定的业务信息判断、处理算法和流程来实现基于多笔交易纬度精确计算出结汇金额的,可以满足与当下监管机构的申报要求。在本申请实施方案中,可以先判断申报的交易是否符合申报要求,如是否存在已申报交易或结汇申请金额小于交易可结汇总额等。若满足,然后根据每笔交易的可结汇金额判断交易可结汇总额是否大于用户的结汇申请金额。如果不大于,则可以从用户申请的多笔交易中筛选出与结汇申请金额差值最小的候选交易组,所述的候选交易组可以包括一笔或多笔单笔交易数据的组合。这样,以所述候选交易组中的每笔可结汇金额的总金额作为用户的结汇申报金额,可以实现用户基于多笔交易维度的精确计算出结汇金额,提高结汇计算效率,满足用户多笔交易进行结汇的复杂业务场景需求,提升用户体验。The embodiment of the present application provides a data processing method, device and system for calculating the amount of foreign exchange settlement based on multiple transactions, which can accurately calculate the amount of foreign exchange settlement based on the latitude of multiple transactions through the set business information judgment, processing algorithm and process. , which can meet the reporting requirements of the current regulatory agencies. In the implementation plan of this application, it is possible to first judge whether the declared transaction meets the reporting requirements, such as whether there is a declared transaction or the amount of the application for foreign exchange settlement is less than the total amount that can be settled in the transaction. If it is satisfied, then judge whether the total settlement amount of the transaction is greater than the user's settlement application amount according to the settlement amount of each transaction. If not, the candidate transaction group with the smallest difference with the amount of the foreign exchange settlement application may be selected from multiple transactions applied by the user, and the candidate transaction group may include a combination of one or more single transaction data. In this way, using the total amount of each settlementable foreign exchange amount in the candidate transaction group as the user's foreign exchange settlement declaration amount, the user can accurately calculate the foreign exchange settlement amount based on multiple transaction dimensions, improve the calculation efficiency of foreign exchange settlement, and satisfy the user's multiple transactions To meet the complex business scenario requirements of foreign exchange settlement and improve user experience.

尽管本申请内容中提到人民币结汇、排列组合的计算、金额比较、候选交易组选取方式、单笔交易数据金额大于结汇申请金额以及包含已结汇交易时的结汇处理的数据计算、信息交互、规则定义之类的描述,但是,本申请并不局限于必须是完全标准、某国某种货币结汇或者所提及的方式的数据计算、信息交互、规则定义的情况。本申请中各个实施例所涉及的上述描述仅是本申请中的一些实施例中的应用,在某些标准、方法、国家货币结汇规则的基础上略加修改后的实施方式也可以实行上述本申请各实施例的方案。当然,在符合本申请上述各实施例的中所述的处理方法步骤的其他无创造性的变形,仍然可以实现相同的申请,在此不再赘述。Although the content of this application mentions RMB foreign exchange settlement, calculation of permutations and combinations, amount comparison, selection method of candidate transaction groups, single transaction data amount greater than the amount of foreign exchange settlement application, and data calculation, information interaction, and rules of foreign exchange settlement processing when foreign exchange settlement transactions are included However, this application is not limited to situations that must be complete standards, foreign exchange settlement of a certain currency in a certain country, or the data calculation, information interaction, and rule definition of the mentioned methods. The above descriptions involved in the various embodiments of this application are only the application in some embodiments of this application, and slightly modified implementations on the basis of certain standards, methods, and national currency settlement rules can also implement the above-mentioned this application. Apply for the solutions of each embodiment. Of course, other non-inventive modifications of the steps of the processing method described in the above embodiments of the present application can still achieve the same application, and will not be repeated here.

虽然本申请提供了如实施例或流程图所述的数据处理方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的数据处理装置或客户端产品执行时,可以按照实施例或者附图所示的数据处理方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。Although the present application provides the operation steps of the data processing method as described in the embodiments or flowcharts, more or less operation steps may be included based on routine or non-creative efforts. The sequence of steps enumerated in the embodiments is only one of the execution sequences of many steps, and does not represent the only execution sequence. When executed by a data processing device or a client product in practice, the data processing methods shown in the embodiments or drawings may be executed sequentially or in parallel (for example, in a parallel processor or multi-thread processing environment).

上述实施例阐明的装置、单元或模块,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。为了描述的方便,描述以上装置时以功能分为各种模块分别描述。在实施本申请时可以把各模块的功能在同一个或多个软件和/或硬件中实现。当然,也可以将实现某功能的模块由多个子模块或子单元组合实现。The devices, units, or modules described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. For the convenience of description, when describing the above devices, functions are divided into various modules and described separately. When implementing the present application, the functions of each module can be implemented in one or more software and/or hardware. Of course, a module that realizes a certain function may also be implemented by a combination of multiple submodules or subunits.

本申请中所述的数据处理方法、装置或模块可以以计算机可读程序代码方式实现控制器按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内部包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The data processing method, device or module described in this application can be implemented in a computer-readable program code and the controller can be implemented in any appropriate way. ) computer-readable media for computer-readable program code (such as software or firmware) executed by a processor, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to realizing the controller in a purely computer-readable program code mode, it is entirely possible to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded The same function can be realized in the form of a microcontroller or the like. Therefore, this kind of controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as the structure in the hardware component. Or even, means for realizing various functions can be regarded as a structure within both a software module realizing a method and a hardware component.

本申请所述装置中的部分模块可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构、类等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。Some of the modules of the apparatus described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的硬件的方式来实现。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,也可以通过数据迁移的实施过程中体现出来。该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,移动终端,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。It can be known from the above description of the implementation manners that those skilled in the art can clearly understand that the present application can be implemented by means of software plus necessary hardware. Based on this understanding, the essence of the technical solution of this application or the part that contributes to the existing technology can be embodied in the form of software products, or it can be reflected in the implementation process of data migration. The computer software product can be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions to make a computer device (which can be a personal computer, a mobile terminal, a server, or a network device, etc.) execute this Apply the methods described in each embodiment or some parts of the embodiments.

本说明书中的各个实施例采用递进的方式描述,各个实施例之间相同或相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。本申请的全部或者部分可用于众多通用或专用的计算机系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、移动通信终端、多处理器系统、基于微处理器的系统、可编程的电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。Each embodiment in this specification is described in a progressive manner, and the same or similar parts of each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. This application, in whole or in part, can be used in numerous general purpose or special purpose computer system environments or configurations. Examples: personal computers, server computers, handheld or portable devices, tablet-type devices, mobile communication terminals, multiprocessor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, including A distributed computing environment for any of the above systems or devices, etc.

虽然通过实施例描绘了本申请,本领域普通技术人员知道,本申请有许多变形和变化而不脱离本申请的精神,希望所附的权利要求包括这些变形和变化而不脱离本申请的精神。Although the present application has been described by way of example, those of ordinary skill in the art know that there are many variations and changes in the application without departing from the spirit of the application, and it is intended that the appended claims cover these variations and changes without departing from the spirit of the application.

Claims (17)

Settlement of exchange processing unit, for judging to be concluded the business with the presence or absence of labeled as the single declared in the current settlement of exchange transaction dataData;When the result being additionally operable in the judgement is in the absence of labeled as the single transaction data declared, calculate described currentThe single of single transaction data can settle the exchange the amount of money in settlement of exchange transaction data, can be settled the exchange according to single transaction described in the amount of money calculatesThe transaction of user can settle the exchange total value;Whether it is additionally operable to judge the settlement of exchange application amount of money of the user less than or equal to the friendship being calculatedCan easily settle the exchange total value, and be based on as the settlement of exchange application amount of money can settle the exchange total value less than or equal to transaction in the result for judgingThe single of single transaction data can settle the exchange the amount of money in the current settlement of exchange transaction data, and according to default settlement of exchange calculationApply for that the difference of the amount of money meets the candidate's transaction group for matching and requiring with the settlement of exchange with single group total amount is calculated;It is additionally operable to instituteThe single group total amount of candidate's transaction group is stated as the settlement of exchange amount declared data for returning to user;
CN201610427975.1A2016-06-162016-06-16 Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactionsActiveCN106910065B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN202010753746.5ACN112016919B (en)2016-06-162016-06-16Data processing method and device for calculating total amount
CN201610427975.1ACN106910065B (en)2016-06-162016-06-16 Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610427975.1ACN106910065B (en)2016-06-162016-06-16 Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions

Related Child Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010753746.5ADivisionCN112016919B (en)2016-06-162016-06-16Data processing method and device for calculating total amount

Publications (2)

Publication NumberPublication Date
CN106910065Atrue CN106910065A (en)2017-06-30
CN106910065B CN106910065B (en)2020-08-14

Family

ID=59206243

Family Applications (2)

Application NumberTitlePriority DateFiling Date
CN202010753746.5AActiveCN112016919B (en)2016-06-162016-06-16Data processing method and device for calculating total amount
CN201610427975.1AActiveCN106910065B (en)2016-06-162016-06-16 Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions

Family Applications Before (1)

Application NumberTitlePriority DateFiling Date
CN202010753746.5AActiveCN112016919B (en)2016-06-162016-06-16Data processing method and device for calculating total amount

Country Status (1)

CountryLink
CN (2)CN112016919B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107833138A (en)*2017-11-062018-03-23中国银行股份有限公司A kind of processing method and processing device of the Foreign Exchange Settlement and Sale transaction based on net amount netting
CN109165933A (en)*2018-07-272019-01-08阿里巴巴集团控股有限公司A kind of cross-border transaction declaration method and device
CN109583826A (en)*2018-09-282019-04-05阿里巴巴集团控股有限公司Declare document generating method, device, server and readable storage medium storing program for executing
CN109584057A (en)*2018-09-282019-04-05阿里巴巴集团控股有限公司Transaction details data capture method, device and server
CN110610409A (en)*2018-06-142019-12-24杭州振牛信息科技有限公司Order processing method and device and computer equipment
CN112465650A (en)*2020-11-302021-03-09深圳市富途网络科技有限公司Method, device and system for equity incentive earning settlement
CN117670351A (en)*2022-08-172024-03-08财付通支付科技有限公司 Transaction information processing methods and devices, electronic equipment, storage media

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1507600A (en)*2001-02-262004-06-23��ʽ������������ϵͳMethod and system for facilitating foreign currency exchange transactions over a network
US20080010186A1 (en)*2006-07-072008-01-10Rts Realtime Systems Software GmbhSystem and method for internally matching electronic trade orders originated by a preselected group of traders
CN104657843A (en)*2015-03-062015-05-27上海玖纳信息科技有限公司Cross-border on-line automatic customs clearance and reconciliation method and system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH103564A (en)*1996-06-181998-01-06Oki Electric Ind Co LtdMethod for checking transaction amount and automatic transaction system
CN101350087A (en)*1999-12-272009-01-21赵频Business settlement system
KR20040014887A (en)*2002-08-122004-02-18손영호System and Method of performing foreign exchanging using the Internet
US20060095361A1 (en)*2004-10-292006-05-04Rude Michael GMethods and apparatus for automatic settlement of foreign securities trades in trader's operating currency
JP2006343998A (en)*2005-06-092006-12-21Hitachi Ltd Forex settlement system
CN1928935A (en)*2006-10-112007-03-14中国工商银行股份有限公司Remittance exchange settlement system and method
CN101075336A (en)*2007-07-202007-11-21中国建设银行股份有限公司Foreign-currency trade system
US8429057B1 (en)*2007-11-192013-04-23Curex Innovations LlcSystems and methods for creation, issuance, redemption, conversion, offering, trading, and clearing a debt obligation convertible into cash plus a spot foreign exchange contract that is priced to reflect the value of the debt obligation in a base currency in relation to the value of a reference currency
TWI462047B (en)*2008-08-212014-11-21Alibaba Group Holding Ltd To achieve overseas transactions online trading methods and online trading system
KR20110051380A (en)*2009-11-102011-05-18주식회사 하나은행 How to exchange internet
US20150011265A1 (en)*2013-07-052015-01-08James A. Walsh, JR.Support Apparatus for Mobile Device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1507600A (en)*2001-02-262004-06-23��ʽ������������ϵͳMethod and system for facilitating foreign currency exchange transactions over a network
US20080010186A1 (en)*2006-07-072008-01-10Rts Realtime Systems Software GmbhSystem and method for internally matching electronic trade orders originated by a preselected group of traders
CN104657843A (en)*2015-03-062015-05-27上海玖纳信息科技有限公司Cross-border on-line automatic customs clearance and reconciliation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张德超: "A出口企业汇率风险规避模式研究", 《中国优秀硕士论文全文数据库经济与管理科学辑》*

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107833138A (en)*2017-11-062018-03-23中国银行股份有限公司A kind of processing method and processing device of the Foreign Exchange Settlement and Sale transaction based on net amount netting
CN110610409A (en)*2018-06-142019-12-24杭州振牛信息科技有限公司Order processing method and device and computer equipment
CN109165933A (en)*2018-07-272019-01-08阿里巴巴集团控股有限公司A kind of cross-border transaction declaration method and device
TWI721422B (en)*2018-07-272021-03-11開曼群島商創新先進技術有限公司 Cross-border transaction declaration method and device
CN109583826A (en)*2018-09-282019-04-05阿里巴巴集团控股有限公司Declare document generating method, device, server and readable storage medium storing program for executing
CN109584057A (en)*2018-09-282019-04-05阿里巴巴集团控股有限公司Transaction details data capture method, device and server
CN109583826B (en)*2018-09-282022-09-13创新先进技术有限公司Declaration file generation method, declaration file generation device, server and readable storage medium
CN109584057B (en)*2018-09-282023-08-11创新先进技术有限公司Transaction detail data acquisition method, device and server
CN112465650A (en)*2020-11-302021-03-09深圳市富途网络科技有限公司Method, device and system for equity incentive earning settlement
CN112465650B (en)*2020-11-302023-12-08深圳市富途网络科技有限公司Method, device and system for gathering equity incentive benefits
CN117670351A (en)*2022-08-172024-03-08财付通支付科技有限公司 Transaction information processing methods and devices, electronic equipment, storage media
CN117670351B (en)*2022-08-172025-06-17财付通支付科技有限公司 Transaction information processing method and device, electronic device, and storage medium

Also Published As

Publication numberPublication date
CN106910065B (en)2020-08-14
CN112016919B (en)2024-07-30
CN112016919A (en)2020-12-01

Similar Documents

PublicationPublication DateTitle
CN106910065A (en) Data processing method, device and system for calculating foreign exchange settlement amount based on multiple transactions
CN103605703B (en)It is a kind of it is multi-platform between data consistency detection method and system
CN106844314B (en) Method and device for plagiarism checking of articles
CN103577987A (en)Method and device for identifying risk users
CN107909178A (en)Electronic device, lost contact repair rate Forecasting Methodology and computer-readable recording medium
CN111292028B (en) Inventory information processing method and system, computer system and readable storage medium
CN107133233A (en)A kind of processing method and processing device of configuration data inquiry
WO2018032982A1 (en)Method and device for detecting fund transaction route in electronic payment process
CN116883108A (en)Bidding method, electronic device and storage medium
CN116029803A (en) A smart bidding method and system
US8086501B2 (en)Method and system for creative collaborative marketplaces
CN117668192A (en)Data processing method, device, equipment and storage medium
KR20210080748A (en)Method for processing covering of cryptocurrency collateral and System for the same
CN114926002B (en)Client affinity determination method, device, apparatus, medium and program product
CN116860652A (en) A software quality evaluation method, device, electronic equipment and storage medium
CN104867018A (en)Electronic commerce evaluation judgment system based on evaluation content and ID similarity identification
CN114626722A (en) Determination method and device, storage medium and electronic device for customer risk level
CN113516065A (en) Data weight calculation method, device, server and storage medium based on blockchain
CN113592529A (en)Potential customer recommendation method and device for bond products
CN110610409A (en)Order processing method and device and computer equipment
CN112989224A (en)Retrieval method, retrieval device, electronic equipment and storage medium
CN111815272A (en)Application auditing method and device, electronic equipment and storage medium
CN104933248A (en)Road network approximate shortest path calculation method on multi-core platform
CN119030741B (en)Multi-source threat information fusion analysis method and system for network security
CN115225489B (en)Dynamic control method for queue service flow threshold, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right

Effective date of registration:20200925

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after:Innovative advanced technology Co.,Ltd.

Address before:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee before:Advanced innovation technology Co.,Ltd.

Effective date of registration:20200925

Address after:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Patentee after:Advanced innovation technology Co.,Ltd.

Address before:Greater Cayman, British Cayman Islands

Patentee before:Alibaba Group Holding Ltd.

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20240221

Address after:Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after:Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after:Singapore

Address before:Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman ky1-9008

Patentee before:Innovative advanced technology Co.,Ltd.

Country or region before:Cayman Islands

TR01Transfer of patent right

[8]ページ先頭

©2009-2025 Movatter.jp