WO2020019896A1 - Cross-border transaction declaration method and apparatus - Google Patents

Cross-border transaction declaration method and apparatus Download PDF

Info

Publication number
WO2020019896A1
WO2020019896A1 PCT/CN2019/091105 CN2019091105W WO2020019896A1 WO 2020019896 A1 WO2020019896 A1 WO 2020019896A1 CN 2019091105 W CN2019091105 W CN 2019091105W WO 2020019896 A1 WO2020019896 A1 WO 2020019896A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction data
total amount
transaction
less
remaining
Prior art date
Application number
PCT/CN2019/091105
Other languages
French (fr)
Chinese (zh)
Inventor
王珂莉
唐强
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020019896A1 publication Critical patent/WO2020019896A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/02Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP]
    • G06Q20/023Payment architectures, schemes or protocols involving a neutral party, e.g. certification authority, notary or trusted third party [TTP] the neutral party being a clearing house
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • This specification relates to the field of computer software technology, and in particular, to a method and device for reporting cross-border transactions.
  • FIG. 1 is a diagram of the organizational structure involved in cross-border transaction reporting.
  • the embodiments of the present specification provide a method and device for cross-border transaction declaration, which are used to solve the following technical problem: a more efficient cross-border transaction declaration scheme needs to be provided for a third-party payment institution.
  • a method for reporting cross-border transactions provided in the embodiments of this specification, the method includes:
  • the transaction data includes: a transaction amount
  • the transaction data is sorted from large to small according to the transaction amount; or the transaction data is sorted from small to large according to the transaction amount.
  • the sum of the transaction data and each previous transaction data is determined in order until the sum of the transaction data and each previous transaction data is greater than a preset total amount and each transaction before the transaction data The sum of the data is less than or equal to the preset total amount.
  • the method further comprises:
  • the transaction data When the transaction data is sorted from large to small, it is determined that the sum of the transaction data before the transaction data is less than the preset total amount, according to the preset total amount and the transaction data before the transaction data The sum determines the remaining total amount, traverses the remaining transaction data, and selects a number of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount.
  • the first transaction data smaller than the remaining total amount is determined, and for each transaction data after the determined first transaction data smaller than the remaining total amount, the first transaction data smaller than the remaining total amount is determined.
  • the sum of the transaction data between the transaction data of the amount and the current transaction data is greater than the remaining total amount and the first transaction data smaller than the remaining total amount and the previous transaction data of the current transaction data Less than the remaining total amount.
  • a preset total amount is preset as the remaining total amount, starting from the first transaction data, determining transaction data less than the remaining total amount in order, and Updating the remaining total amount until the updated remaining total amount is zero or traversing all transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount;
  • the preset total amount is preset to the remaining total amount.
  • the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is less than the transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
  • the method further comprises:
  • a cross-border transaction declaration device provided in an embodiment of the present specification, the device includes:
  • An acquisition module configured to acquire transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
  • a sorting module configured to sort the transaction data according to the transaction amount
  • a selection module for selecting transaction data that meets a preset total amount in accordance with the order of the transaction data
  • a reporting module which is used to perform consolidated reporting on selected transaction data.
  • the sorting module is specifically configured to sort the transaction data from large to small according to the transaction amount; or sort the transaction data from small to large according to the transaction amount.
  • the selection module is specifically configured to sequentially determine the sum of the transaction data and the previous transaction data for the transaction data until the sum of the transaction data and the previous transaction data is greater than a preset total amount And the sum of each transaction data before the transaction data is less than or equal to a preset total amount.
  • the selection module is further configured to: when the sorting module sorts the transaction data from large to small, and determines that the sum of the transaction data before the transaction data is less than a preset total amount, based on The sum of the preset total amount and each transaction data before the transaction data determines the remaining total amount, traverses the remaining transaction data, and selects a number of transaction data so that the sum of the several transaction data is less than or equal to the remaining total amount .
  • the selection module is further configured to determine the first transaction data that is less than the remaining total amount, and determine the first one for each transaction data after the determined first transaction data that is less than the remaining total amount The sum of the transaction data between the transaction data less than the remaining total amount and the current transaction data, until the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is equal to the remaining total amount , Or the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the first transaction data less than the remaining total amount and the previous transaction with the current transaction data The sum of the transaction data between the data is less than the remaining total amount.
  • the selection module is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from large to small, starting from the first transaction data , In order to determine the transaction data that is less than the remaining total amount, and update the remaining total amount until the updated remaining total amount is zero or traverse all the transaction data, where the updated remaining total amount is the preset total amount and the less than The difference between the sum of the remaining total transaction data;
  • the selection module is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from small to large, starting from the first transaction data and determining Transaction data less than the remaining total amount, and update the remaining total amount until the updated remaining total amount is less than the transaction data, where the updated remaining total amount is a preset amount of the total amount and the transaction data less than the remaining total amount The difference between the sum.
  • the device further comprises:
  • An adding module is configured to add undeclared transaction data to the pending transaction data in the second processing cycle.
  • the above at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: when there is a large amount of transaction detailed data to be processed, selecting transaction data that meets the preset total amount in accordance with the order of transaction data can greatly reduce The amount of calculation reduces the frequent calls between the systems, and can also fully use the total degree, and the total degree of utilization is high.
  • FIG. 1 is a diagram of the organizational structure involved in the cross-border transaction declaration provided in the background technology
  • FIG. 2 is a schematic diagram of a cross-border transaction declaration process provided by an embodiment of the present specification
  • FIG. 3 is an implementation manner of selecting transaction data that meets a preset total amount in accordance with an order of transaction data according to an embodiment of the specification
  • FIG. 4 is another implementation manner of cross-border transaction declaration provided by an embodiment of this specification.
  • FIG. 5 is a schematic structural diagram of a cross-border transaction declaration device provided by an embodiment of the present specification.
  • FIG. 2 is a cross-border transaction declaration process provided by an embodiment of this specification, and specifically includes the following steps:
  • cross-border payments are required to purchase foreign goods through electronic shopping platforms.
  • national regulatory agencies require third-party payment agencies Complete cross-border transaction declarations in a timely manner, and for the capital entry and exit business of third-party institutions, the national regulatory authority has set a limit on the outflow of funds, that is, third-party payment institutions can only complete cross-border payments of a fixed total amount per day Business, therefore, third-party payment institutions will select a part of transaction data from a large number of transaction details for cross-border transaction declaration.
  • the embodiments of the present specification first need to obtain the transaction data to be processed in the first processing cycle, and select a part of the transaction data from the transaction data to be processed for cross-border transaction declaration.
  • the transaction data in the first processing cycle need to be treated as pending Transaction data.
  • the transaction data includes the transaction amount, the names of both parties to the transaction, and the transaction time.
  • S202 Sort the transaction data according to the transaction amount.
  • the embodiment of this specification is based on the ordering of transaction data, and combines the transaction data according to the ordering of transaction data It can reduce the number of calculations while using up the transaction limits of national regulatory authorities as much as possible.
  • the transaction data can be sorted from large to small according to the transaction amount, and the transaction data can be sorted from small to large according to the transaction amount.
  • S203 Select transaction data that meets the preset total amount in accordance with the order of the transaction data.
  • the embodiment of this specification also provides an implementation manner of selecting transaction data that meets a preset total amount in accordance with the order of transaction data, as follows:
  • For transaction data determine the sum of the transaction data and the previous transaction data in turn until the sum of the transaction data and the previous transaction data is greater than a preset total amount and the sum of the transaction data before the transaction data Less than or equal to the preset total amount.
  • the flowchart shown in FIG. 3 can intuitively display the foregoing implementation manner of selecting the transaction data that meets the preset total amount in accordance with the order of the transaction data.
  • in order to sort the transaction data from small to large in determining the sum of the transaction data and the previous transaction data, until the sum of the transaction data and the previous transaction data is greater than the After the total amount is set and the sum of the transaction data before the transaction data is less than or equal to the preset total amount, each transaction data before the transaction data is selected as the transaction data that satisfies the preset total amount.
  • the above-mentioned implementation of selecting transaction data that meets the preset total amount in accordance with the order of transaction data is to select from the first transaction data after sorting, but in practical applications, it can also be selected from The sorted N-th transaction data starts, where N is an integer greater than 1. Therefore, in the embodiment of the present specification, for the transaction data, starting from the N-th transaction data, the transaction data and the N-th order may be determined in order.
  • the sum of the transaction data between the two transaction data until the sum of the transaction data between the transaction data and the Nth transaction data is greater than a preset total amount and the previous transaction data of the transaction data and the Nth
  • the sum of the transaction data between the transaction data is less than or equal to a preset total amount.
  • the sum of the transaction data between the transaction data and the Nth transaction data includes the transaction data and the Nth transaction data.
  • Table 1 is the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from small to large according to the transaction amount.
  • transaction data E determine that the sum of transaction data E and each previous transaction data (ie, transaction data F) is 200, which is less than 1900;
  • transaction data D determine that the sum of transaction data D and each previous transaction data (ie, transaction data F and transaction data E) is 600, which is less than 1900;
  • For transaction data C determine that the sum of transaction data C and each previous transaction data (that is, transaction data F, transaction data E, and transaction data D) is 1200, which is less than 1900;
  • For transaction data B determine that the sum of transaction data B and each previous transaction data (that is, transaction data F, transaction data E, transaction data D, and transaction data C) is 2000, which is greater than 1900;
  • the embodiment of this specification is for sorting transaction data from large to small.
  • the transaction data before the transaction data is selected as the transaction data that satisfies the preset total amount.
  • Table 1 is the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
  • transaction data B determine that the sum of transaction data B and the previous transaction data (ie, transaction data A) is 1800, which is less than 1900;
  • For transaction data C determine that the sum of transaction data C and each previous transaction data (ie, transaction data A and transaction data B) is 1900, which is equal to 1900;
  • For transaction data D determine that the sum of transaction data D and the previous transaction data (that is, transaction data A, transaction data B, and transaction data C) is 2000, which is greater than 1900;
  • the Set the total amount and the sum of the transaction data before the transaction data to determine the remaining total amount, traverse the remaining transaction data, and select a number of transaction data so that the sum of the several transaction data is less than or equal to the remaining total amount.
  • Table 3 shows the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
  • transaction data B determine that the sum of transaction data B and each previous transaction data (ie, transaction data A) is 1800, which is less than 2000;
  • For transaction data C determine that the sum of transaction data C and each previous transaction data (that is, transaction data A and transaction data B) is 2400, which is greater than 1900;
  • the embodiment of the specification provides an implementation manner of traversing the remaining transaction data and selecting a plurality of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount, as follows:
  • each transaction data between the first transaction data smaller than the remaining total amount and the current transaction data includes the first transaction data smaller than the remaining total amount and also includes the current transaction data.
  • the first transaction data smaller than the remaining total amount is directly selected
  • Each transaction data is transaction data satisfying a preset total amount.
  • the sum of the various transaction data between them determines the new remaining total amount, updates the original remaining total amount, traverses the new remaining transaction data, and selects a number of transaction data so that the sum of the several transaction data is less than or equal to the determined New remaining total amount until the updated new remaining total amount is zero or iterates through all transactions According to so far.
  • transaction data E among the remaining transaction data D, transaction data E, transaction data F, and transaction data H, determine that the first transaction data that is less than the remaining total amount is transaction data E.
  • the transaction data E is 100, less than 200;
  • For the current transaction data F determine that the sum of the current transaction data F and the transaction data E is 170, which is less than 200;
  • For the current transaction data H determine that the sum of the current transaction data H and the transaction data E is 220, which is greater than 200;
  • the transaction data E and the transaction data F are selected as the transaction data satisfying the preset total amount.
  • a report file can be generated based on the transaction data that meets the preset total amount determined in the above manner, and all data included in the transaction data is written into the report file. And submit the declaration documents to the supervision department.
  • the sorted transaction data can be numbered, such as the acquired pending transaction data after the initial sorting. Numbered in order.
  • the embodiment of the present specification also provides another implementation manner of selecting transaction data that meets a preset total amount in accordance with the order of transaction data, as follows:
  • the preset total amount is preset to the remaining total amount.
  • the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is zero or traversing all transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
  • Table 4 shows the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
  • the preset total amount is 1900
  • the preset total amount 1900 is preset as the remaining total amount.
  • the transaction data A is determined to be less than 1000.
  • the remaining total amount is 1900
  • the preset total amount is preset to the remaining total amount.
  • the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is less than the transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
  • the preset total amount is 1900
  • the preset total amount 1900 is preset as the remaining total amount.
  • selecting transaction data that meets the preset total amount in accordance with the order of the transaction data can greatly reduce the calculation amount, reduce frequent calls between systems, and can also fully use the total amount.
  • the total utilization rate is high.
  • the second processing cycle may give priority to the undeclared transaction data in the previous processing cycle, or Follow the above steps to process the undeclared data from the previous processing cycle.
  • S402 Sort the data in the set S according to the transaction amount to generate an ordered set S1.
  • S403 Number the transaction data in the ordered set S1 and calculate the cumulative transaction amount from the first row to the current row.
  • S404 Calculate the difference between the preset total amount and the calculated cumulative transaction amount from the first row to the current row according to the sort order of the transaction data.
  • step S405 Determine whether the difference between the preset total amount and the accumulated transaction amount is less than or equal to 0. If yes, go to step S406; if not, go to step S403.
  • step S410 Determine whether the updated total amount is greater than the difference between the transaction amounts. If yes, go to step S409; if no, go to step S411.
  • the above is a cross-border transaction declaration method provided by an embodiment of the present specification. Based on the same thinking, the embodiment of the present specification also provides a cross-border transaction declaration device, as shown in FIG. 5.
  • FIG. 5 is a schematic structural diagram of a cross-border transaction declaration device according to an embodiment of the present specification.
  • the device includes:
  • the obtaining module 501 is configured to obtain transaction data to be processed in a first processing cycle, wherein the transaction data includes: a transaction amount;
  • a selection module 503, configured to select transaction data that meets a preset total amount in accordance with the order of the transaction data
  • a reporting module 504 is configured to perform consolidated reporting on the selected transaction data.
  • the sorting module 502 is specifically configured to sort the transaction data from large to small according to the transaction amount; or sort the transaction data from small to large according to the transaction amount.
  • the selection module 503 is specifically configured to sequentially determine the sum of the transaction data and the previous transaction data for the transaction data until the sum of the transaction data and the previous transaction data is greater than a preset total amount and the The sum of each transaction data before the transaction data is less than or equal to a preset total amount.
  • the selection module 503 is further configured to: when the sorting module sorts the transaction data from large to small, and determines that the sum of the transaction data before the transaction data is less than a preset total amount, according to the preset The sum of the total amount and the transaction data before the transaction data determine the remaining total amount, traverse the remaining transaction data, and select a number of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount.
  • the selection module 503 is further configured to determine the first transaction data that is less than the remaining total amount, and for each transaction data after the determined first transaction data that is less than the remaining total amount, determine the first less than the remaining amount The sum of the transaction data between the transaction data of the total amount and the current transaction data, until the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the The sum of the transaction data between a transaction data smaller than the remaining total amount and the current transaction data is less than the remaining total amount.
  • the selecting module 503 is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from large to small, starting from the first transaction data, in order Determine transaction data that is less than the remaining total amount and update the remaining total amount until the updated remaining total amount is zero or traverse all transaction data, where the updated remaining total amount is the preset total amount and the less than the remaining total amount The difference between the sum of transaction data in degrees;
  • the selection module 503 is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from small to large, starting from the first transaction data, in order Determine the transaction data that is less than the remaining total amount and update the remaining total amount until the updated remaining total amount is less than the transaction data, where the updated remaining total amount is the preset total amount and the transaction data that is less than the remaining total amount The difference of the sum.
  • the device further includes:
  • the adding module 505 is configured to add the undeclared transaction data to the pending transaction data in the second processing cycle.
  • the embodiments of the present specification also provide a device corresponding to the above method and a non-volatile computer storage medium.
  • a cross-border transaction declaration processing device provided in the embodiment of this specification and corresponding to FIG. 2 includes:
  • At least one processor At least one processor
  • a memory connected in communication with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
  • the transaction data includes: a transaction amount
  • a non-volatile computer storage medium corresponding to FIG. 2 provided in the embodiment of this specification stores computer-executable instructions, and the computer-executable instructions are set to:
  • the transaction data includes: a transaction amount
  • the apparatus, device, and non-volatile computer storage medium provided in the embodiments of the present specification correspond to the method. Therefore, the apparatus, device, and non-volatile computer storage medium also have beneficial technical effects similar to the corresponding method.
  • the beneficial technical effects of the method are described in detail, and therefore, the beneficial technical effects of the corresponding device, device, and non-volatile computer storage medium are not repeated here.
  • a programmable logic device Programmable Logic Device (PLD)
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) 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, With the Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor. , Logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are
  • controller logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded controllers by logic programming the method steps Microcontrollers, etc. to achieve the same function. Therefore, such a controller can be regarded as a hardware component, and a device included in the controller for implementing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as a structure that can be both a software module implementing the method and a hardware component.
  • the system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, the embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • This specification may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media, including storage devices.

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed in the embodiments of the present description are a cross-border transaction declaration method and apparatus, the method comprising: acquiring transaction data to be processed within a first processing period that contains a transaction amount; sorting the transaction data according to the transaction amount; according to the sequence of the transaction data, selecting transaction data that meets a preset total amount; and merging the selected transaction data and declaring same.

Description

一种跨境交易申报方法及装置Method and device for reporting cross-border transactions 技术领域Technical field
本说明书涉及计算机软件技术领域,尤其涉及一种跨境交易申报方法及装置。This specification relates to the field of computer software technology, and in particular, to a method and device for reporting cross-border transactions.
背景技术Background technique
随着经济全球化以及电子商务的快速发展,通过电子购物平台购买国外商品逐渐成为了人们日常生活的组成部分。With the economic globalization and the rapid development of e-commerce, buying foreign goods through electronic shopping platforms has gradually become a part of people's daily lives.
目前,通过电子购物平台购买国外商品需要进行跨境支付,为了规范第三方支付机构的跨境支付业务,防范第三方支付机构跨境资金的流动风险,国家监管部门要求第三方支付机构及时完成跨境交易申报,并且,针对第三方机构的资金出入境业务,国家监管部门要求境内银行对第三方支付机构的资金流出业务设置了限额,也就是说,第三方支付机构每日只能完成固定总额度的跨境支付业务,因此,第三方支付机构会从大量交易明细数据中选取出一部分交易数据进行跨境交易申报,图1为跨境交易申报所涉及的组织机构架构图。At present, cross-border payments are required to purchase foreign goods through electronic shopping platforms. In order to regulate the cross-border payment business of third-party payment agencies and prevent the risk of cross-border funds from cross-border funds, national regulatory authorities require third-party payment agencies to complete cross-border payments in a timely manner In addition, with regard to the declaration of overseas transactions, and for the entry and exit of funds from third-party institutions, national regulatory authorities require domestic banks to set limits on the outflow of funds from third-party payment institutions, which means that third-party payment institutions can only complete a fixed total daily. Cross-border payment business, therefore, third-party payment institutions will select a part of transaction data from a large number of transaction details for cross-border transaction reporting. Figure 1 is a diagram of the organizational structure involved in cross-border transaction reporting.
基于此,需要为第三方支付机构提供一个更高效的跨境交易申报方案。Based on this, a more efficient cross-border transaction declaration scheme needs to be provided for third-party payment institutions.
发明内容Summary of the Invention
本说明书实施例提供一种跨境交易申报方法及装置,用以解决如下技术问题:需要为第三方支付机构提供一个更高效的跨境交易申报方案。The embodiments of the present specification provide a method and device for cross-border transaction declaration, which are used to solve the following technical problem: a more efficient cross-border transaction declaration scheme needs to be provided for a third-party payment institution.
为解决上述技术问题,本说明书实施例是这样实现的:To solve the above technical problems, the embodiments of the present specification are implemented as follows:
本说明书实施例提供的一种跨境交易申报方法,所述方法包括:A method for reporting cross-border transactions provided in the embodiments of this specification, the method includes:
获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;Acquiring transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
根据所述交易金额,将所述交易数据排序;Sorting the transaction data according to the transaction amount;
按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;Selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
对选取的交易数据进行合并申报。Consolidate the selected transaction data.
优选地,根据所述交易金额,将所述交易数据由大到小进行排序;或根据所述交易金额,将所述交易数据由小到大进行排序。Preferably, the transaction data is sorted from large to small according to the transaction amount; or the transaction data is sorted from small to large according to the transaction amount.
优选地,针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。Preferably, for the transaction data, the sum of the transaction data and each previous transaction data is determined in order until the sum of the transaction data and each previous transaction data is greater than a preset total amount and each transaction before the transaction data The sum of the data is less than or equal to the preset total amount.
优选地,所述方法还包括:Preferably, the method further comprises:
当将所述交易数据由大到小进行排序,确定出该交易数据之前的各交易数据之和小于预设的总额度金额时,根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额。When the transaction data is sorted from large to small, it is determined that the sum of the transaction data before the transaction data is less than the preset total amount, according to the preset total amount and the transaction data before the transaction data The sum determines the remaining total amount, traverses the remaining transaction data, and selects a number of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount.
优选地,确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之和等于剩余总额度金额,或者第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额。Preferably, the first transaction data smaller than the remaining total amount is determined, and for each transaction data after the determined first transaction data smaller than the remaining total amount, the first transaction data smaller than the remaining total amount is determined The sum of the transaction data and the current transaction data, until the sum of the first transaction data less than the remaining total amount and the previous transaction data of the current transaction data is equal to the remaining total amount, or the first is less than the remaining total amount The sum of the transaction data between the transaction data of the amount and the current transaction data is greater than the remaining total amount and the first transaction data smaller than the remaining total amount and the previous transaction data of the current transaction data Less than the remaining total amount.
优选地,当将所述交易数据由大到小进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值;Preferably, when the transaction data is sorted from large to small, a preset total amount is preset as the remaining total amount, starting from the first transaction data, determining transaction data less than the remaining total amount in order, and Updating the remaining total amount until the updated remaining total amount is zero or traversing all transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount;
当将所述交易数据由小到大进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。When the transaction data is sorted from small to large, the preset total amount is preset to the remaining total amount. Starting from the first transaction data, the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is less than the transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
优选地,所述方法还包括:Preferably, the method further comprises:
将未申报的交易数据添加到第二处理周期内的待处理的交易数据内。Add the undeclared transaction data to the pending transaction data in the second processing cycle.
本说明书实施例提供的一种跨境交易申报装置,所述装置包括:A cross-border transaction declaration device provided in an embodiment of the present specification, the device includes:
获取模块,用于获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;An acquisition module, configured to acquire transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
排序模块,用于根据所述交易金额,将所述交易数据排序;A sorting module, configured to sort the transaction data according to the transaction amount;
选取模块,用于按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;A selection module for selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
申报模块,用于对选取的交易数据进行合并申报。A reporting module, which is used to perform consolidated reporting on selected transaction data.
优选地,所述排序模块具体用于,根据所述交易金额,将所述交易数据由大到小进行排序;或根据所述交易金额,将所述交易数据由小到大进行排序。Preferably, the sorting module is specifically configured to sort the transaction data from large to small according to the transaction amount; or sort the transaction data from small to large according to the transaction amount.
优选地,所述选取模块具体用于,针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。Preferably, the selection module is specifically configured to sequentially determine the sum of the transaction data and the previous transaction data for the transaction data until the sum of the transaction data and the previous transaction data is greater than a preset total amount And the sum of each transaction data before the transaction data is less than or equal to a preset total amount.
优选地,所述选取模块还用于,当所述排序模块将所述交易数据由大到小进行排序,确定出该交易数据之前的各交易数据之和小于预设的总额度金额时,根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额。Preferably, the selection module is further configured to: when the sorting module sorts the transaction data from large to small, and determines that the sum of the transaction data before the transaction data is less than a preset total amount, based on The sum of the preset total amount and each transaction data before the transaction data determines the remaining total amount, traverses the remaining transaction data, and selects a number of transaction data so that the sum of the several transaction data is less than or equal to the remaining total amount .
优选地,所述选取模块还用于,确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和等于剩余总额度金额,或者第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额。Preferably, the selection module is further configured to determine the first transaction data that is less than the remaining total amount, and determine the first one for each transaction data after the determined first transaction data that is less than the remaining total amount The sum of the transaction data between the transaction data less than the remaining total amount and the current transaction data, until the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is equal to the remaining total amount , Or the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the first transaction data less than the remaining total amount and the previous transaction with the current transaction data The sum of the transaction data between the data is less than the remaining total amount.
优选地,所述选取模块具体用于,当所述排序模块将所述交易数据由大到小进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值;Preferably, the selection module is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from large to small, starting from the first transaction data , In order to determine the transaction data that is less than the remaining total amount, and update the remaining total amount until the updated remaining total amount is zero or traverse all the transaction data, where the updated remaining total amount is the preset total amount and the less than The difference between the sum of the remaining total transaction data;
所述选取模块具体用于,当所述排序模块将所述交易数据由小到大进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。The selection module is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from small to large, starting from the first transaction data and determining Transaction data less than the remaining total amount, and update the remaining total amount until the updated remaining total amount is less than the transaction data, where the updated remaining total amount is a preset amount of the total amount and the transaction data less than the remaining total amount The difference between the sum.
优选地,所述装置还包括:Preferably, the device further comprises:
添加模块,用于将未申报的交易数据添加到第二处理周期内的待处理的交易数据内。An adding module is configured to add undeclared transaction data to the pending transaction data in the second processing cycle.
本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果::当存在大量的待处理的交易明细数据时,按照交易数据的顺序选取满足预设的总额度金额的交易数据能够大大的降低计算量,减少系统间的频繁调用,也能够充分的使用总额度,总额度使用率高。The above at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects: when there is a large amount of transaction detailed data to be processed, selecting transaction data that meets the preset total amount in accordance with the order of transaction data can greatly reduce The amount of calculation reduces the frequent calls between the systems, and can also fully use the total degree, and the total degree of utilization is high.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
此处所说明的附图用来提供对本说明书实施例的进一步理解,构成本说明书实施例的一部分,本说明书实施例的示意性实施例及其说明用于解释本说明书实施例,并不构成对本说明书实施例的不当限定。在附图中:The drawings described here are used to provide a further understanding of the embodiments of the present specification, and constitute a part of the embodiments of the present specification. Examples are improperly limited. In the drawings:
图1为背景技术中提供的跨境交易申报所涉及的组织机构架构图;FIG. 1 is a diagram of the organizational structure involved in the cross-border transaction declaration provided in the background technology;
图2为本说明书实施例提供的跨境交易申报过程示意图;FIG. 2 is a schematic diagram of a cross-border transaction declaration process provided by an embodiment of the present specification; FIG.
图3为本说明书实施例提供的按照交易数据的顺序选取满足预设的总额度金额的交易数据的实施方式;FIG. 3 is an implementation manner of selecting transaction data that meets a preset total amount in accordance with an order of transaction data according to an embodiment of the specification; FIG.
图4为本说明书实施例提供的另一种跨境交易申报实施方式;FIG. 4 is another implementation manner of cross-border transaction declaration provided by an embodiment of this specification;
图5为本说明书实施例提供的跨境交易申报装置结构示意图。FIG. 5 is a schematic structural diagram of a cross-border transaction declaration device provided by an embodiment of the present specification.
具体实施方式detailed description
为使本说明书实施例的目的、技术方案和优点更加清楚,下面将结合本说明书实施例具体实施例及相应的附图对本说明书实施例技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本说明书实施例一部分实施例,而不是全部的实施例。基于本说明书实施例中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书实施例保护的范围。In order to make the objectives, technical solutions, and advantages of the embodiments of the present specification clearer, the technical solutions of the embodiments of the present specification will be described clearly and completely in combination with the specific embodiments of the embodiments of the present specification and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the specification, but not all of the embodiments. Based on the embodiments in the embodiments of the present specification, all other embodiments obtained by a person having ordinary skill in the art without creative efforts shall fall within the protection scope of the embodiments of the present specification.
图2为本说明书实施例提供的跨境交易申报过程,具体包括以下步骤:FIG. 2 is a cross-border transaction declaration process provided by an embodiment of this specification, and specifically includes the following steps:
S201:获取第一处理周期内待处理的交易数据。S201: Obtain transaction data to be processed in the first processing cycle.
在实际应用中,通过电子购物平台购买国外商品需要进行跨境支付,为了规范第三方支付机构的跨境支付业务,防范第三方支付机构跨境资金的流动风险,国家监管部门要求第三方支付机构及时完成跨境交易申报,并且,针对第三方机构的资金出入境业务, 国家监管部门对资金流出业务设置了限额,也就是说,第三方支付机构每日只能完成固定总额度的跨境支付业务,因此,第三方支付机构会从大量交易明细数据中选取出一部分交易数据进行跨境交易申报。In practical applications, cross-border payments are required to purchase foreign goods through electronic shopping platforms. In order to regulate the cross-border payment business of third-party payment agencies and prevent the risk of cross-border capital flow from third-party payment agencies, national regulatory agencies require third-party payment agencies Complete cross-border transaction declarations in a timely manner, and for the capital entry and exit business of third-party institutions, the national regulatory authority has set a limit on the outflow of funds, that is, third-party payment institutions can only complete cross-border payments of a fixed total amount per day Business, therefore, third-party payment institutions will select a part of transaction data from a large number of transaction details for cross-border transaction declaration.
基于此,本说明书实施例在实现跨境交易申报的过程中,首先需要获取第一处理周期内待处理的交易数据,并从待处理的交易数据中选取一部分交易数据进行跨境交易申报。Based on this, in the process of implementing the declaration of cross-border transactions, the embodiments of the present specification first need to obtain the transaction data to be processed in the first processing cycle, and select a part of the transaction data from the transaction data to be processed for cross-border transaction declaration.
在此需要说明的是,由于在对交易数据进行跨境交易申报时是每隔一定的周期(如,每天)进行结算申报的,因此,需要将第一处理周期内的交易数据作为待处理的交易数据,另外,在本说明书实施例中,交易数据包括交易金额,交易双方名称,交易时间等。What needs to be explained here is that since cross-border transaction declarations of transaction data are made at regular intervals (for example, every day), the transaction data in the first processing cycle need to be treated as pending Transaction data. In addition, in the embodiment of the present specification, the transaction data includes the transaction amount, the names of both parties to the transaction, and the transaction time.
S202:根据所述交易金额,将所述交易数据排序。S202: Sort the transaction data according to the transaction amount.
进一步的,由于需要尽可能的用完国家监管部门对资金流出业务所设置的限额,同时减少运算次数,因此,本说明书实施例是基于交易数据的排序,并根据交易数据的排序组合交易数据来实现尽可能的用完国家监管部门的交易限额的同时,降低运算次数的。Further, since it is necessary to use up the limit set by the national regulatory authority for the outflow of funds while reducing the number of calculations, the embodiment of this specification is based on the ordering of transaction data, and combines the transaction data according to the ordering of transaction data It can reduce the number of calculations while using up the transaction limits of national regulatory authorities as much as possible.
在此需要说明的是,在本说明书实施例中,可以根据交易金额,将交易数据由大到小进行排序,也可以根据交易金额,将交易数据由小到大进行排序。It should be noted that, in the embodiment of the present specification, the transaction data can be sorted from large to small according to the transaction amount, and the transaction data can be sorted from small to large according to the transaction amount.
S203:按照所述交易数据的顺序选取满足预设的总额度金额的交易数据。S203: Select transaction data that meets the preset total amount in accordance with the order of the transaction data.
进一步的,由于国家监管部门对资金流出业务设置了限额,因此,在本说明书实施例中,需要根据预设的总额度金额,在排序后的交易数据中选取一部分交易数据作为待申报的交易数据,并完成跨境交易申报。Further, because the national regulatory authority has set a limit on the outflow of funds, in the embodiment of this specification, it is necessary to select a part of the transaction data as the transaction data to be declared in the sorted transaction data according to the preset total amount. And complete the declaration of cross-border transactions.
在此,本说明书实施例也给出了按照交易数据的顺序选取满足预设的总额度金额的交易数据的实施方式,具体如下:Here, the embodiment of this specification also provides an implementation manner of selecting transaction data that meets a preset total amount in accordance with the order of transaction data, as follows:
针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。For transaction data, determine the sum of the transaction data and the previous transaction data in turn until the sum of the transaction data and the previous transaction data is greater than a preset total amount and the sum of the transaction data before the transaction data Less than or equal to the preset total amount.
在此需要说明的是,图3所示的流程图可以直观的显示上述按照交易数据的顺序选取满足预设的总额度金额的交易数据的实施方式。另外,本说明书实施例针对将交易数据由小到大进行排序而言,在确定出该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易 数据之和小于或等于预设的总额度金额后,将该交易数据之前的各交易数据选取为满足预设的总额度金额的交易数据。It should be noted here that the flowchart shown in FIG. 3 can intuitively display the foregoing implementation manner of selecting the transaction data that meets the preset total amount in accordance with the order of the transaction data. In addition, in the embodiment of this specification, in order to sort the transaction data from small to large, in determining the sum of the transaction data and the previous transaction data, until the sum of the transaction data and the previous transaction data is greater than the After the total amount is set and the sum of the transaction data before the transaction data is less than or equal to the preset total amount, each transaction data before the transaction data is selected as the transaction data that satisfies the preset total amount.
在此还需要说明的是,上述按照交易数据的顺序选取满足预设的总额度金额的交易数据的实施方式是从排序后的第一个交易数据开始选取,而在实际应用中,也可以从排序后的第N个交易数据开始,其中,N为大于1的整数,因此,在本说明书实施例中,也可以针对交易数据,从第N个交易数据开始,依次确定该交易数据与第N个交易数据之间的各交易数据之和,直至该交易数据与第N个交易数据之间的各交易数据之和大于预设的总额度金额且该交易数据的前一交易数据与第N个交易数据之间的各交易数据之和小于或等于预设的总额度金额。其中,该交易数据与第N个交易数据之间的各交易数据之和包括该交易数据以及第N个交易数据。It should also be noted here that the above-mentioned implementation of selecting transaction data that meets the preset total amount in accordance with the order of transaction data is to select from the first transaction data after sorting, but in practical applications, it can also be selected from The sorted N-th transaction data starts, where N is an integer greater than 1. Therefore, in the embodiment of the present specification, for the transaction data, starting from the N-th transaction data, the transaction data and the N-th order may be determined in order. The sum of the transaction data between the two transaction data until the sum of the transaction data between the transaction data and the Nth transaction data is greater than a preset total amount and the previous transaction data of the transaction data and the Nth The sum of the transaction data between the transaction data is less than or equal to a preset total amount. The sum of the transaction data between the transaction data and the Nth transaction data includes the transaction data and the Nth transaction data.
例如,假设第一处理周期为一天,表1为第一处理周期内所获取的待处理的交易数据,并根据交易金额对待处理的交易数据进行了由小到大的排序。For example, assuming that the first processing cycle is one day, Table 1 is the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from small to large according to the transaction amount.
交易名称Name of Trade 交易金额Transaction amount
交易FTransaction F 100100
交易ETransaction E 100100
交易DTransaction D 400400
交易CTransaction C 600600
交易BTransaction B 800800
交易ATransaction A 10001000
表1Table 1
假设预设的总额度金额为1900,按照表1中交易数据的排序,针对交易数据F,确定交易数据F及其之前的各交易数据(即,无交易数据)之和为100;Assume that the preset total amount is 1900. According to the ordering of transaction data in Table 1, for transaction data F, determine that the sum of transaction data F and each previous transaction data (ie, no transaction data) is 100;
针对交易数据E,确定交易数据E及其之前的各交易数据(即,交易数据F)之和为200,小于1900;For transaction data E, determine that the sum of transaction data E and each previous transaction data (ie, transaction data F) is 200, which is less than 1900;
针对交易数据D,确定交易数据D及其之前的各交易数据(即,交易数据F和交易数据E)之和为600,小于1900;For transaction data D, determine that the sum of transaction data D and each previous transaction data (ie, transaction data F and transaction data E) is 600, which is less than 1900;
对交易数据C,确定交易数据C及其之前的各交易数据(即,交易数据F,交易数据E和交易数据D)之和为1200,小于1900;For transaction data C, determine that the sum of transaction data C and each previous transaction data (that is, transaction data F, transaction data E, and transaction data D) is 1200, which is less than 1900;
对交易数据B,确定交易数据B及其之前的各交易数据(即,交易数据F,交易数 据E,交易数据D和交易数据C)之和为2000,大于1900;For transaction data B, determine that the sum of transaction data B and each previous transaction data (that is, transaction data F, transaction data E, transaction data D, and transaction data C) is 2000, which is greater than 1900;
选取交易数据F,交易数据E和交易数据D为满足预设的总额度金额的交易数据。Select transaction data F, transaction data E, and transaction data D as transaction data that satisfy a preset total amount.
在此还需要说明的是,本说明书实施例针对将交易数据由大到小进行排序而言,当该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和等于预设的总额度金额时,将该交易数据之前的各交易数据选取为满足预设的总额度金额的交易数据。What needs to be explained here is that in order to sort the transaction data from large to small, the embodiment of this specification is for sorting transaction data from large to small. When the sum of the transaction data and the previous transaction data is greater than the preset total amount and When the sum of each transaction data is equal to the preset total amount, the transaction data before the transaction data is selected as the transaction data that satisfies the preset total amount.
例如,假设第一处理周期为一天,表1为第一处理周期内所获取的待处理的交易数据,并根据交易金额对待处理的交易数据进行了由大到小的排序。For example, assuming that the first processing cycle is one day, Table 1 is the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
交易名称Name of Trade 交易金额Transaction amount
交易ATransaction A 10001000
交易BTransaction B 800800
交易CTransaction C 100100
交易DTransaction D 100100
表2Table 2
假设预设的总额度金额为1900,按照表2中交易数据的排序,针对交易数据A,确定交易数据A及其之前的各交易数据(即,无交易数据)之和为1000,小于1900;Assume that the preset total amount is 1900. According to the ordering of transaction data in Table 2, for transaction data A, determine that the sum of transaction data A and the previous transaction data (ie, no transaction data) is 1000, which is less than 1900;
针对交易数据B,确定交易数据B及其之前的各交易数据(即,交易数据A)之和为1800,小于1900;For transaction data B, determine that the sum of transaction data B and the previous transaction data (ie, transaction data A) is 1800, which is less than 1900;
针对交易数据C,确定交易数据C及其之前的各交易数据(即,交易数据A和交易数据B)之和为1900,等于1900;For transaction data C, determine that the sum of transaction data C and each previous transaction data (ie, transaction data A and transaction data B) is 1900, which is equal to 1900;
针对交易数据D,确定交易数据D及其之前的各交易数据(即,交易数据A,交易数据B和交易数据C)之和为2000,大于1900;For transaction data D, determine that the sum of transaction data D and the previous transaction data (that is, transaction data A, transaction data B, and transaction data C) is 2000, which is greater than 1900;
选取交易数据A,交易数据B和交易数据C为满足预设的总额度金额的交易数据。Select transaction data A, transaction data B, and transaction data C as transaction data that satisfy the preset total amount.
而在本说明书实施例中,当该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于预设的总额度金额时,根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额。In the embodiment of the present specification, when the sum of the transaction data and the previous transaction data is greater than the preset total amount and the sum of the transaction data before the transaction data is less than the preset total amount, the Set the total amount and the sum of the transaction data before the transaction data to determine the remaining total amount, traverse the remaining transaction data, and select a number of transaction data so that the sum of the several transaction data is less than or equal to the remaining total amount.
例如,假设第一处理周期为一天,表3为第一处理周期内所获取的待处理的交易数 据,并根据交易金额对待处理的交易数据进行了由大到小的排序。For example, assuming that the first processing cycle is one day, Table 3 shows the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
交易名称Name of Trade 交易金额Transaction amount
交易ATransaction A 10001000
交易BTransaction B 800800
交易CTransaction C 600600
交易DTransaction D 400400
交易ETransaction E 100100
交易FTransaction F 7070
交易HTransaction H 5050
表3table 3
假设预设的总额度金额为2000,按照表3中交易数据的排序,针对交易数据A,确定交易数据A及其之前的各交易数据(即,无交易数据)之和为1000,小于2000;Assume that the preset total amount is 2000. According to the order of transaction data in Table 3, for transaction data A, determine that the sum of transaction data A and each previous transaction data (ie, no transaction data) is 1000, which is less than 2000;
针对交易数据B,确定交易数据B及其之前的各交易数据(即,交易数据A)之和为1800,小于2000;For transaction data B, determine that the sum of transaction data B and each previous transaction data (ie, transaction data A) is 1800, which is less than 2000;
针对交易数据C,确定交易数据C及其之前的各交易数据(即,交易数据A和交易数据B)之和为2400,大于1900;For transaction data C, determine that the sum of transaction data C and each previous transaction data (that is, transaction data A and transaction data B) is 2400, which is greater than 1900;
选取交易数据A和交易数据B为满足预设的总额度金额的交易数据;Select transaction data A and transaction data B as transaction data that satisfy the preset total amount;
根据预设的2000和交易数据C之前的各交易数据(即,交易数据A和交易数据B)之和1800,确定剩余总额度金额200(即,2000-1800),遍历剩余的交易数据D,交易数据E,交易数据F和交易数据H,确定交易数据F和交易数据E(或交易数据F和交易数据H,或交易数据E和交易数据H)之和小于剩余总额度金额200,选取交易数据F和交易数据E(或交易数据F和交易数据H,或交易数据E和交易数据H)作为满足预设的总额度金额的交易数据。Determine the remaining total amount 200 (ie, 2000-1800) according to the preset sum 1800 of each transaction data (ie, transaction data A and transaction data B) before 2000 and transaction data C, and traverse the remaining transaction data D, Transaction data E, transaction data F, and transaction data H, determine that the sum of transaction data F and transaction data E (or transaction data F and transaction data H, or transaction data E and transaction data H) is less than the remaining total amount of 200, select the transaction The data F and the transaction data E (or the transaction data F and the transaction data H, or the transaction data E and the transaction data H) are used as the transaction data satisfying the preset total amount.
另外,本说明书实施例给出了一种遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额的实施方式,具体如下:In addition, the embodiment of the specification provides an implementation manner of traversing the remaining transaction data and selecting a plurality of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount, as follows:
确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和等于剩余总额度金额,或者第一个小于剩余总额度金额 的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额。Determine the first transaction data that is less than the remaining total amount, and for each transaction data after the first transaction data that is less than the remaining total amount, determine the first transaction data that is less than the remaining total amount and the current transaction The sum of the transaction data between the data until the sum of the first transaction data less than the remaining total amount and the current transaction data is equal to the remaining total amount, or the first one is less than the remaining total amount The sum of the transaction data between the transaction data and the current transaction data is greater than the remaining total amount and the sum of the transaction data between the first transaction data that is less than the remaining total amount and the previous transaction data of the current transaction data is less than the remaining Total amount.
在此需要说明的是,第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据包含第一个小于剩余总额度金额的交易数据,也包含当前交易数据。另外,第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和等于剩余总额度金额时,直接选取第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据为满足预设的总额度金额的交易数据。What needs to be explained here is that each transaction data between the first transaction data smaller than the remaining total amount and the current transaction data includes the first transaction data smaller than the remaining total amount and also includes the current transaction data. In addition, when the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is equal to the remaining total amount, the first transaction data smaller than the remaining total amount is directly selected Each transaction data is transaction data satisfying a preset total amount.
在此还需要说明的是,当第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额时,选取第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据为满足预设的总额度金额的交易数据的同时,还需要根据所确定出的剩余总额度金额和所选取的第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和确定新的剩余总额度金额,并更新原有的剩余总额度金额,遍历新的剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所确定的新的剩余总额度金额,直至更新后的新的剩余总额度金额为零或者遍历所有交易数据为止。It should also be noted here that when the sum of the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the first transaction data is less than the remaining total amount When the sum of the transaction data between the previous transaction data of the current transaction data is less than the remaining total amount, the transaction data between the first transaction data that is less than the remaining total amount and the previous transaction data of the current transaction data is selected In order to meet the preset transaction data of the total amount, it is also necessary to calculate the remaining total amount and the first selected transaction data that is less than the remaining total amount and the previous transaction data of the current transaction data. The sum of the various transaction data between them determines the new remaining total amount, updates the original remaining total amount, traverses the new remaining transaction data, and selects a number of transaction data so that the sum of the several transaction data is less than or equal to the determined New remaining total amount until the updated new remaining total amount is zero or iterates through all transactions According to so far.
延续上例,在剩余的交易数据D,交易数据E,交易数据F和交易数据H中,确定第一个小于剩余总额度金额的交易数据为交易数据E,针对当前交易数据E,确定交易数据E为100,小于200;Continuing the above example, among the remaining transaction data D, transaction data E, transaction data F, and transaction data H, determine that the first transaction data that is less than the remaining total amount is transaction data E. For the current transaction data E, determine the transaction data E is 100, less than 200;
针对当前交易数据F,确定当前交易数据F与交易数据E之和为170,小于200;For the current transaction data F, determine that the sum of the current transaction data F and the transaction data E is 170, which is less than 200;
针对当前交易数据H,确定当前交易数据H与交易数据E之和为220,大于200;For the current transaction data H, determine that the sum of the current transaction data H and the transaction data E is 220, which is greater than 200;
选取交易数据E和交易数据F作为满足预设的总额度金额的交易数据。The transaction data E and the transaction data F are selected as the transaction data satisfying the preset total amount.
在此需要说明的是,在本说明书实施例中,可以根据通过上述方式确定出的满足预设的总额度金额的交易数据生成申报文件,将交易数据所包含的所有数据均写入到申报文件内,并将申报文件申报给监督部门。It should be noted that, in the embodiment of the present specification, a report file can be generated based on the transaction data that meets the preset total amount determined in the above manner, and all data included in the transaction data is written into the report file. And submit the declaration documents to the supervision department.
在此还需要说明的是,在每次确定满足预设的总额度金额的交易数据之前,可以对排序后的交易数据进行编号,如,对最开始排序后的所获取的待处理的交易数据按顺序进行编号。It should also be noted here that before each time the transaction data that meets the preset total amount is determined, the sorted transaction data can be numbered, such as the acquired pending transaction data after the initial sorting. Numbered in order.
进一步的,本说明书实施例还提供了另一种按照交易数据的顺序选取满足预设的总额度金额的交易数据的实施方式,具体如下:Further, the embodiment of the present specification also provides another implementation manner of selecting transaction data that meets a preset total amount in accordance with the order of transaction data, as follows:
当将所述交易数据由大到小进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。When the transaction data is sorted from large to small, the preset total amount is preset to the remaining total amount. Starting from the first transaction data, the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is zero or traversing all transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
例如,假设第一处理周期为一天,表4为第一处理周期内所获取的待处理的交易数据,并根据交易金额对待处理的交易数据进行了由大到小的排序。For example, assuming that the first processing cycle is one day, Table 4 shows the transaction data to be processed obtained in the first processing cycle, and the transaction data to be processed is sorted from large to small according to the transaction amount.
交易名称Name of Trade 交易金额Transaction amount
交易ATransaction A 10001000
交易BTransaction B 800800
交易CTransaction C 100100
交易DTransaction D 100100
表4Table 4
假设预设的总额度金额为1900,将预设的总额度金额1900预置为剩余总额度,按照如表4的交易数据的排序,从交易数据A开始,确定交易数据A的交易金额1000小于剩余总额度1900,选取交易数据A为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额1900-1000=900,将900替换掉1900作为新的剩余总额度;Assume that the preset total amount is 1900, and the preset total amount 1900 is preset as the remaining total amount. According to the transaction data in Table 4, the transaction data A is determined to be less than 1000. The remaining total amount is 1900, and the transaction data A is selected to satisfy the preset total amount amount of transaction data, and the total amount amount to be updated is calculated as 1900-1000 = 900, and 900 is replaced by 1900 as the new remaining total amount;
确定交易数据B的交易金额800小于剩余总额度900,选取交易数据B为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额900-800=100,将100替换掉900作为新的剩余总额度;Make sure that the transaction amount 800 of transaction data B is less than the remaining total amount of 900, select transaction data B as the transaction data that meets the preset total amount, and calculate the total amount to be updated 900-800 = 100, replacing 100 as 900. New remaining aggregate
确定交易数据C的交易金额100等于剩余总额度100,选取交易数据C为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额100-800=0,将0替换掉100作为新的剩余总额度,停止选取满足预设的总额度金额的交易数据。Make sure that the transaction amount 100 of the transaction data C is equal to the remaining total amount 100, select the transaction data C as the transaction data that meets the preset total amount, and calculate the total amount 100-800 = 0 to be updated, and replace 0 with 100 as For the new remaining total amount, stop selecting transaction data that meets the preset total amount.
当将所述交易数据由小到大进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。When the transaction data is sorted from small to large, the preset total amount is preset to the remaining total amount. Starting from the first transaction data, the transaction data smaller than the remaining total amount is determined in order, and the remaining total amount is updated. Until the updated total remaining amount is less than the transaction data, wherein the updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
例如,假设如表1所示的交易数据及条件,假设预设的总额度金额为1900,将预设 的总额度金额1900预置为剩余总额度,按照如表1的交易数据的排序,从交易数据F开始,确定交易数据F的交易金额100小于剩余总额度1900,选取交易数据F为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额1900-100=1800,将1800替换掉1900作为新的剩余总额度;For example, assuming the transaction data and conditions shown in Table 1, suppose the preset total amount is 1900, and the preset total amount 1900 is preset as the remaining total amount. According to the order of transaction data in Table 1, Starting with the transaction data F, determine that the transaction amount 100 of the transaction data F is less than the remaining total amount 1900, select the transaction data F as the transaction data that meets the preset total amount, and calculate the total amount to be updated 1900-100 = 1800. 1800 replaces 1900 as the new remaining total;
确定交易数据E的交易金额100小于剩余总额度1800,选取交易数据E为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额1800-100=1700,将1700替换掉1800作为新的剩余总额度;Make sure that the transaction amount 100 of transaction data E is less than the remaining total amount of 1800, select transaction data E as the transaction data that meets the preset total amount, and calculate the total amount to be updated 1800-100 = 1700. Replace 1700 with 1800 as New remaining aggregate
确定交易数据D的交易金额400小于剩余总额度1700,选取交易数据D为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额1700-400=1300,将1300替换掉1700作为新的剩余总额度;Make sure that the transaction amount 400 of transaction data D is less than the remaining total amount of 1700, select transaction data D as the transaction data that meets the preset total amount, and calculate the total amount that needs to be updated 1700-400 = 1300, and replace 1300 with 1700 as New remaining aggregate
确定交易数据C的交易金额600小于剩余总额度1300,选取交易数据C为满足预设的总额度金额的交易数据,并计算需要更新的总额度金额1300-600=700,将700替换掉1300作为新的剩余总额度;Make sure that the transaction amount 600 of transaction data C is less than the remaining total amount 1300. Select transaction data C as the transaction data that meets the preset total amount, and calculate the total amount to be updated 1300-600 = 700. Replace 700 with 1300 as New remaining aggregate
确定交易数据B的交易金额800大于剩余总额度700,停止选取满足预设的总额度金额的交易数据。It is determined that the transaction amount 800 of the transaction data B is greater than the remaining total amount 700, and stop selecting transaction data that meets the preset total amount.
S204:对选取的交易数据进行合并申报。S204: Perform consolidated declaration on the selected transaction data.
当存在大量的待处理的交易明细数据时,按照交易数据的顺序选取满足预设的总额度金额的交易数据能够大大的降低计算量,减少系统间的频繁调用,也能够充分的使用总额度,总额度使用率高。When there is a large amount of transaction detailed data to be processed, selecting transaction data that meets the preset total amount in accordance with the order of the transaction data can greatly reduce the calculation amount, reduce frequent calls between systems, and can also fully use the total amount. The total utilization rate is high.
进一步的,在实际应用中,会存在第一处理周期内所要申报的交易数据只是所获取的待处理的交易数据的一部分,也就是说,还有部分交易数据无法再第一处理周期内进行申报的情况,因此,在本说明书实施例,针对这种情况,可以将未申报的交易数据添加到第二处理周期内的待处理的交易数据内。Further, in practical applications, there will be transaction data to be reported in the first processing cycle, which is only part of the acquired transaction data to be processed, that is, some transaction data cannot be reported in the first processing cycle. Therefore, in this embodiment of the present specification, for this case, undeclared transaction data may be added to the transaction data to be processed in the second processing cycle.
在此需要说明的是,将未申报的交易数据添加到第二处理周期内的待处理的交易数据内后,在第二处理周期可以优先处理上一个处理周期内未申报的交易数据,也可以按照上述步骤来处理上一个处理周期未申报的数据。It should be noted here that after adding the undeclared transaction data to the pending transaction data in the second processing cycle, the second processing cycle may give priority to the undeclared transaction data in the previous processing cycle, or Follow the above steps to process the undeclared data from the previous processing cycle.
进一步的,本说明书实施例在此结合图4所提供的另一种具体实施方式来阐述跨境交易申报的过程。Further, the embodiment of the present specification describes the process of cross-border transaction declaration in combination with another specific implementation manner provided in FIG. 4.
S401:获取待处理的交易数据集合S。S401: Acquire a transaction data set S to be processed.
S402:对集合S中的数据按交易金额大小排序生成有序集合S1。S402: Sort the data in the set S according to the transaction amount to generate an ordered set S1.
S403:对有序集合S1中的交易数据编号并计算出从第一行到当前行的累积交易金额。S403: Number the transaction data in the ordered set S1 and calculate the cumulative transaction amount from the first row to the current row.
S404:按交易数据的排序顺序计算预设的总额度金额与计算出的从第一行到当前行的累积交易金额之差。S404: Calculate the difference between the preset total amount and the calculated cumulative transaction amount from the first row to the current row according to the sort order of the transaction data.
S405:判断预设的总额度金额与累积交易金额之差是否小于等于0,若是,则执行步骤S406,若否,则执行步骤S403。S405: Determine whether the difference between the preset total amount and the accumulated transaction amount is less than or equal to 0. If yes, go to step S406; if not, go to step S403.
S406:记录对应的当前行的行号n。S406: Record the line number n of the corresponding current line.
S407:将n行之前的交易数据生成临时申报文件。S407: Generate the temporary declaration file from the transaction data before n rows.
S408:计算剩余未申报总额度并更新总额度值。S408: Calculate the remaining undeclared total degree and update the total degree value.
S409:从n+1行开始顺序比较更新后的总额度与交易金额的大小。S409: Compare the updated total amount and the transaction amount in order from the n + 1 line.
S410:判断更新后的总额度是否大于交易金额的差值,若是,则执行步骤S409,若否,则执行步骤S411。S410: Determine whether the updated total amount is greater than the difference between the transaction amounts. If yes, go to step S409; if no, go to step S411.
S411:记录对应的当前行的行号m。S411: Record the line number m of the corresponding current line.
S412:确定m之后的交易数据,并更新有序集合S1,执行步骤S403。S412: Determine the transaction data after m, update the ordered set S1, and execute step S403.
S413:总额度值小于最后一笔交易数据的交易金额时,停止生成临时申报文件。S413: When the total amount value is less than the transaction amount of the last transaction data, the temporary report file generation is stopped.
S414:合并临时申报文件。S414: Combine the temporary declaration documents.
S415:监管申报。S415: Regulatory declaration.
以上为本说明书实施例提供的跨境交易申报方法,基于同样的思路,本说明书实施例还提供一种跨境交易申报装置,如图5所示。The above is a cross-border transaction declaration method provided by an embodiment of the present specification. Based on the same thinking, the embodiment of the present specification also provides a cross-border transaction declaration device, as shown in FIG. 5.
图5为本说明书实施例提供的跨境交易申报装置结构示意图,所述装置包括:FIG. 5 is a schematic structural diagram of a cross-border transaction declaration device according to an embodiment of the present specification. The device includes:
获取模块501,用于获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;The obtaining module 501 is configured to obtain transaction data to be processed in a first processing cycle, wherein the transaction data includes: a transaction amount;
排序模块502,用于根据所述交易金额,将所述交易数据排序;A sorting module 502, configured to sort the transaction data according to the transaction amount;
选取模块503,用于按照所述交易数据的顺序选取满足预设的总额度金额的交易 数据;A selection module 503, configured to select transaction data that meets a preset total amount in accordance with the order of the transaction data;
申报模块504,用于对选取的交易数据进行合并申报。A reporting module 504 is configured to perform consolidated reporting on the selected transaction data.
所述排序模块502具体用于,根据所述交易金额,将所述交易数据由大到小进行排序;或根据所述交易金额,将所述交易数据由小到大进行排序。The sorting module 502 is specifically configured to sort the transaction data from large to small according to the transaction amount; or sort the transaction data from small to large according to the transaction amount.
所述选取模块503具体用于,针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。The selection module 503 is specifically configured to sequentially determine the sum of the transaction data and the previous transaction data for the transaction data until the sum of the transaction data and the previous transaction data is greater than a preset total amount and the The sum of each transaction data before the transaction data is less than or equal to a preset total amount.
所述选取模块503还用于,当所述排序模块将所述交易数据由大到小进行排序,确定出该交易数据之前的各交易数据之和小于预设的总额度金额时,根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额。The selection module 503 is further configured to: when the sorting module sorts the transaction data from large to small, and determines that the sum of the transaction data before the transaction data is less than a preset total amount, according to the preset The sum of the total amount and the transaction data before the transaction data determine the remaining total amount, traverse the remaining transaction data, and select a number of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount.
所述选取模块503还用于,确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和小于剩余总额度金额。The selection module 503 is further configured to determine the first transaction data that is less than the remaining total amount, and for each transaction data after the determined first transaction data that is less than the remaining total amount, determine the first less than the remaining amount The sum of the transaction data between the transaction data of the total amount and the current transaction data, until the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the The sum of the transaction data between a transaction data smaller than the remaining total amount and the current transaction data is less than the remaining total amount.
所述选取模块503具体用于,当所述排序模块将所述交易数据由大到小进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值;The selecting module 503 is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from large to small, starting from the first transaction data, in order Determine transaction data that is less than the remaining total amount and update the remaining total amount until the updated remaining total amount is zero or traverse all transaction data, where the updated remaining total amount is the preset total amount and the less than the remaining total amount The difference between the sum of transaction data in degrees;
所述选取模块503具体用于,当所述排序模块将所述交易数据由小到大进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。The selection module 503 is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from small to large, starting from the first transaction data, in order Determine the transaction data that is less than the remaining total amount and update the remaining total amount until the updated remaining total amount is less than the transaction data, where the updated remaining total amount is the preset total amount and the transaction data that is less than the remaining total amount The difference of the sum.
所述装置还包括:The device further includes:
添加模块505,用于将未申报的交易数据添加到第二处理周期内的待处理的交易 数据内。The adding module 505 is configured to add the undeclared transaction data to the pending transaction data in the second processing cycle.
基于同样的思路,本说明书实施例还提供了上述方法对应的设备和非易失性计算机存储介质。Based on the same thinking, the embodiments of the present specification also provide a device corresponding to the above method and a non-volatile computer storage medium.
本说明书实施例提供的对应于图2的一种跨境交易申报处理设备,包括:A cross-border transaction declaration processing device provided in the embodiment of this specification and corresponding to FIG. 2 includes:
至少一个处理器;以及,At least one processor; and
与所述至少一个处理器通信连接的存储器;其中,A memory connected in communication with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;Acquiring transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
根据所述交易金额,将所述交易数据排序;Sorting the transaction data according to the transaction amount;
按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;Selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
对选取的交易数据进行合并申报。Consolidate the selected transaction data.
本说明书实施例提供的对应于图2的一种非易失性计算机存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为:A non-volatile computer storage medium corresponding to FIG. 2 provided in the embodiment of this specification stores computer-executable instructions, and the computer-executable instructions are set to:
获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;Acquiring transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
根据所述交易金额,将所述交易数据排序;Sorting the transaction data according to the transaction amount;
按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;Selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
对选取的交易数据进行合并申报。Consolidate the selected transaction data.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The specific embodiments of the present specification have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and the desired result may still be achieved. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、设备、非易失性计算机存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, the embodiments of the device, device, and non-volatile computer storage medium are basically similar to the method embodiment, so the description is relatively simple. For the related parts, refer to the description of the method embodiment.
本说明书实施例提供的装置、设备、非易失性计算机存储介质与方法是对应的,因此,装置、设备、非易失性计算机存储介质也具有与对应方法类似的有益技术效果,由于上面已经对方法的有益技术效果进行了详细说明,因此,这里不再赘述对应装置、设备、非易失性计算机存储介质的有益技术效果。The apparatus, device, and non-volatile computer storage medium provided in the embodiments of the present specification correspond to the method. Therefore, the apparatus, device, and non-volatile computer storage medium also have beneficial technical effects similar to the corresponding method. The beneficial technical effects of the method are described in detail, and therefore, the beneficial technical effects of the corresponding device, device, and non-volatile computer storage medium are not repeated here.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, for a technical improvement, it can be clearly distinguished whether it is an improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, switches, etc.) or an improvement in software (for the improvement of method flow). However, with the development of technology, the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware entity modules. For example, a programmable logic device (Programmable Logic Device (PLD)) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a PLD, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of making integrated circuit chips manually, this programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not the only one, but there are many types, such as ABEL (Advanced Boolean ExpressionLanguage) , AHDL (Altera, Hardware, Description, Language), Confluence, CUPL (Cornell, University Programming, Language), HDCal, JHDL (Java, Hardware, Description, Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby, Hardware, Description), etc. VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also be clear that as long as the method flow is logically programmed and integrated into the integrated circuit using the above-mentioned several hardware description languages, a hardware circuit that implements the logic method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌 入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) 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, With the 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 implementing the controller in a purely computer-readable program code manner, it is entirely possible to make the controller logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded controllers by logic programming the method steps Microcontrollers, etc. to achieve the same function. Therefore, such a controller can be regarded as a hardware component, and a device included in the controller for implementing various functions can also be regarded as a structure within the hardware component. Or even, the means for implementing various functions can be regarded as a structure that can be both a software module implementing the method and a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or a product with a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, the functions of each unit may be implemented in the same or multiple software and / or hardware when implementing this specification.
本领域内的技术人员应明白,本说明书实施例可提供为方法、系统、或计算机程序产品。因此,本说明书实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, the embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present specification may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the specification. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate Means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算 机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both permanent and non-persistent, removable and non-removable media. Information can be stored by any method or technology. Information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices. As defined herein, computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "including," "including," or any other variation thereof are intended to encompass non-exclusive inclusion, so that a process, method, product, or device that includes a series of elements includes not only those elements but also Other elements not explicitly listed, or those that are inherent to such a process, method, product, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, product or equipment including the elements.
本领域技术人员应明白,本说明书实施例可提供为方法、系统或计算机程序产品。因此,本说明书可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
本说明书可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书,在这些分布式 计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant part, refer to the description of the method embodiment.
以上所述仅为本说明书实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present specification and are not intended to limit the application. For those skilled in the art, this application may have various modifications and changes. Any modification, equivalent replacement, and improvement made within the spirit and principle of this application shall be included in the scope of claims of this application.

Claims (15)

  1. 一种跨境交易申报方法,其特征在于,所述方法包括:A method for reporting cross-border transactions, characterized in that the method includes:
    获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;Acquiring transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
    根据所述交易金额,将所述交易数据排序;Sorting the transaction data according to the transaction amount;
    按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;Selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
    对选取的交易数据进行合并申报。Consolidate the selected transaction data.
  2. 如权利要求1所述的方法,其特征在于,根据所述交易金额,将所述交易数据排序,具体包括:The method according to claim 1, wherein the ordering the transaction data according to the transaction amount specifically comprises:
    根据所述交易金额,将所述交易数据由大到小进行排序;或Sort the transaction data from large to small according to the transaction amount; or
    根据所述交易金额,将所述交易数据由小到大进行排序。Sort the transaction data from small to large according to the transaction amount.
  3. 如权利要求2所述的方法,其特征在于,按照所述交易数据的顺序选取满足预设的总额度金额的交易数据,具体包括:The method according to claim 2, wherein selecting transaction data that satisfies a preset total amount in accordance with the order of the transaction data specifically includes:
    针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。For transaction data, determine the sum of the transaction data and the previous transaction data in turn until the sum of the transaction data and the previous transaction data is greater than a preset total amount and the sum of the transaction data before the transaction data Less than or equal to the preset total amount.
  4. 如权利要求3所述的方法,其特征在于,当将所述交易数据由大到小进行排序,确定出该交易数据之前的各交易数据之和小于预设的总额度金额时,所述方法还包括:The method according to claim 3, wherein when the transaction data is sorted from large to small, and it is determined that the sum of the transaction data before the transaction data is less than a preset total amount, the method Also includes:
    根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额;Determining the remaining total amount according to the preset total amount and the sum of various transaction data before the transaction data;
    遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额。Iterate through the remaining transaction data and select several transaction data so that the sum of the several transaction data is less than or equal to the remaining total amount.
  5. 如权利要求4所述的方法,其特征在于,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和小于或等于所述剩余总额度金额,具体包括:The method according to claim 4, wherein traversing the remaining transaction data and selecting a plurality of transaction data so that the sum of the plurality of transaction data is less than or equal to the remaining total amount, specifically including
    确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和等于剩余总额度金额,或者第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额。Determine the first transaction data that is less than the remaining total amount, and for each transaction data after the first transaction data that is less than the remaining total amount, determine the first transaction data that is less than the remaining total amount and the current transaction The sum of the transaction data between the data until the sum of the first transaction data less than the remaining total amount and the current transaction data is equal to the remaining total amount, or the first one is less than the remaining total amount The sum of the transaction data between the transaction data and the current transaction data is greater than the remaining total amount and the sum of the transaction data between the first transaction data that is less than the remaining total amount and the previous transaction data of the current transaction data is less than the remaining Total amount.
  6. 如权利要求2所述的方法,其特征在于,当将所述交易数据由大到小进行排序时,按照所述交易数据的排序顺序选取满足预设的总额度金额的交易数据,具体包括:The method according to claim 2, wherein, when the transaction data is sorted from large to small, selecting transaction data that satisfies a preset total amount according to the sorting order of the transaction data specifically includes:
    将预设的总额度金额预置为剩余总额度;Preset the preset total amount as the remaining total amount;
    从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据;Starting from the first transaction data, determine transaction data less than the remaining total amount in turn, and update the remaining total amount until the updated remaining total amount is zero or traverse all transaction data;
    其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值;The updated total remaining amount is the difference between the preset total amount and the sum of the transaction data smaller than the remaining total amount;
    当将所述交易数据由小到大进行排序时,按照所述交易数据的排序顺序选取满足预设的总额度金额的交易数据,具体包括:When the transaction data is sorted from small to large, selecting transaction data that satisfies a preset total amount according to the sorting order of the transaction data specifically includes:
    将预设的总额度金额预置为剩余总额度;Preset the preset total amount as the remaining total amount;
    从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据;Starting from the first transaction data, determine transaction data less than the remaining total amount in turn, and update the remaining total amount until the updated remaining total amount is less than the transaction data;
    其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。The updated remaining total amount is the difference between the preset total amount and the sum of the transaction data less than the remaining total amount.
  7. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1, further comprising:
    将未申报的交易数据添加到第二处理周期内的待处理的交易数据内。Add the undeclared transaction data to the pending transaction data in the second processing cycle.
  8. 一种跨境交易申报装置,其特征在于,所述装置包括:A cross-border transaction declaration device is characterized in that the device includes:
    获取模块,用于获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;An acquisition module, configured to acquire transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
    排序模块,用于根据所述交易金额,将所述交易数据排序;A sorting module, configured to sort the transaction data according to the transaction amount;
    选取模块,用于按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;A selection module for selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
    申报模块,用于对选取的交易数据进行合并申报。A reporting module, which is used to perform consolidated reporting on selected transaction data.
  9. 如权利要求8所述的装置,其特征在于,所述排序模块具体用于,根据所述交易金额,将所述交易数据由大到小进行排序;或根据所述交易金额,将所述交易数据由小到大进行排序。The device according to claim 8, wherein the sorting module is specifically configured to sort the transaction data from large to small according to the transaction amount; or to sort the transactions according to the transaction amount The data is sorted from small to large.
  10. 如权利要求9所述的装置,其特征在于,所述选取模块具体用于,针对交易数据,依次确定该交易数据及其之前的各交易数据之和,直至该交易数据及其之前的各交易数据之和大于预设的总额度金额且该交易数据之前的各交易数据之和小于或等于预设的总额度金额。The device according to claim 9, wherein the selection module is specifically configured to sequentially determine the sum of the transaction data and the previous transaction data for the transaction data, up to the transaction data and the previous transactions. The sum of the data is greater than the preset total amount and the sum of the transaction data before the transaction data is less than or equal to the preset total amount.
  11. 如权利要求10所述的装置,其特征在于,所述选取模块还用于,当所述排序模块将所述交易数据由大到小进行排序,确定出该交易数据之前的各交易数据之和小于预设的总额度金额时,根据预设的总额度金额和该交易数据之前的各交易数据之和确定剩余总额度金额,遍历剩余的交易数据,选择若干交易数据,使得该若干交易数据之和 小于或等于所述剩余总额度金额。The device according to claim 10, wherein the selection module is further configured to: when the sorting module sorts the transaction data from large to small, determine the sum of the transaction data before the transaction data When it is less than the preset total amount, the remaining total amount is determined according to the sum of the preset total amount and the transaction data before the transaction data. It traverses the remaining transaction data and selects a number of transaction data so that the And less than or equal to the remaining total amount.
  12. 如权利要求11所述的装置,其特征在于,所述选取模块还用于,确定第一个小于剩余总额度金额的交易数据,针对所确定的第一个小于剩余总额度金额的交易数据之后的每个交易数据,确定第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和,直至第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和等于剩余总额度金额,或者第一个小于剩余总额度金额的交易数据与当前交易数据之间的各交易数据之和大于剩余总额度金额且第一个小于剩余总额度金额的交易数据与当前交易数据的前一交易数据之间的各交易数据之和小于剩余总额度金额。The device according to claim 11, wherein the selection module is further configured to determine the first transaction data smaller than the remaining total amount, and after the determined first transaction data smaller than the remaining total amount For each transaction data, determine the sum of each transaction data between the first transaction data less than the remaining total amount and the current transaction data, until the first transaction data less than the remaining total amount and the current transaction data. The sum of the transaction data is equal to the remaining total amount, or the sum of the transaction data between the first transaction data less than the remaining total amount and the current transaction data is greater than the remaining total amount and the first is less than the remaining total amount The sum of the transaction data between the transaction data and the previous transaction data of the current transaction data is less than the remaining total amount.
  13. 如权利要求9所述的装置,其特征在于,所述选取模块具体用于,当所述排序模块将所述交易数据由大到小进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度为零或者遍历所有交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值;The device according to claim 9, wherein the selecting module is specifically configured to preset the preset total amount to the remaining amount when the sorting module sorts the transaction data from large to small. Total amount, starting from the first transaction data, determining transaction data less than the remaining total amount in turn, and updating the remaining total amount until the updated remaining total amount is zero or traversing all transaction data, where the updated remaining total amount is The difference between the preset total amount and the sum of the transaction data less than the remaining total amount;
    所述选取模块具体用于,当所述排序模块将所述交易数据由小到大进行排序时,将预设的总额度金额预置为剩余总额度,从第一个交易数据开始,依次确定小于剩余总额度的交易数据,并更新剩余总额度,直至更新后的剩余总额度小于交易数据,其中更新后的剩余总额度为预设的总额度金额与所述小于剩余总额度的交易数据之和的差值。The selection module is specifically configured to preset the preset total amount to the remaining total amount when the sorting module sorts the transaction data from small to large, starting from the first transaction data and determining Transaction data less than the remaining total amount, and update the remaining total amount until the updated remaining total amount is less than the transaction data, where the updated remaining total amount is a preset amount of the total amount and the transaction data less than the remaining total amount The difference between the sum.
  14. 如权利要求8所述的装置,其特征在于,所述装置还包括:The apparatus according to claim 8, further comprising:
    添加模块,用于将未申报的交易数据添加到第二处理周期内的待处理的交易数据内。An adding module is configured to add undeclared transaction data to the pending transaction data in the second processing cycle.
  15. 一种跨境交易申报处理设备,包括:A cross-border transaction declaration processing equipment includes:
    至少一个处理器;以及,At least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,A memory connected in communication with the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
    获取第一处理周期内待处理的交易数据,其中,所述交易数据包括:交易金额;Acquiring transaction data to be processed in the first processing cycle, wherein the transaction data includes: a transaction amount;
    根据所述交易金额,将所述交易数据排序;Sorting the transaction data according to the transaction amount;
    按照所述交易数据的顺序选取满足预设的总额度金额的交易数据;Selecting transaction data that meets a preset total amount in accordance with the order of the transaction data;
    对选取的交易数据进行合并申报。Consolidate the selected transaction data.
PCT/CN2019/091105 2018-07-27 2019-06-13 Cross-border transaction declaration method and apparatus WO2020019896A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810841990.XA CN109165933A (en) 2018-07-27 2018-07-27 A kind of cross-border transaction declaration method and device
CN201810841990.X 2018-07-27

Publications (1)

Publication Number Publication Date
WO2020019896A1 true WO2020019896A1 (en) 2020-01-30

Family

ID=64898355

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091105 WO2020019896A1 (en) 2018-07-27 2019-06-13 Cross-border transaction declaration method and apparatus

Country Status (3)

Country Link
CN (1) CN109165933A (en)
TW (1) TWI721422B (en)
WO (1) WO2020019896A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165933A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 A kind of cross-border transaction declaration method and device
CN111815400A (en) * 2020-06-16 2020-10-23 上海中通吉网络技术有限公司 Cross-border trade electronic commerce logistics information customs declaration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616111A (en) * 2015-02-12 2015-05-13 北京恒华伟业科技股份有限公司 Budget fund management method and system
US20150317747A1 (en) * 2014-05-02 2015-11-05 Mastercard International Incorporated Method and system for providing financial performance data associated with a merchant
CN107403380A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 A kind of processing method and processing device of data message
CN109165933A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 A kind of cross-border transaction declaration method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540546A (en) * 2003-10-31 2004-10-27 中国人民银行南京分行 Intelligent method for checking balance of international payments not oniste
US20120296804A1 (en) * 2011-05-18 2012-11-22 Stibel Aaron B System and Methods for Producing a Credit Feedback Loop
CN105844480A (en) * 2016-03-23 2016-08-10 上海极鲜网电子商务有限公司 Raw and fresh food electronic transaction platform
CN106910065B (en) * 2016-06-16 2020-08-14 阿里巴巴集团控股有限公司 Data processing method, device and system for calculating settlement amount based on multiple transactions
CN106296381A (en) * 2016-08-09 2017-01-04 深圳市淘淘谷信息技术有限公司 A kind of block chain realizes the method that in process of exchange, tax revenue calculates

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150317747A1 (en) * 2014-05-02 2015-11-05 Mastercard International Incorporated Method and system for providing financial performance data associated with a merchant
CN104616111A (en) * 2015-02-12 2015-05-13 北京恒华伟业科技股份有限公司 Budget fund management method and system
CN107403380A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 A kind of processing method and processing device of data message
CN109165933A (en) * 2018-07-27 2019-01-08 阿里巴巴集团控股有限公司 A kind of cross-border transaction declaration method and device

Also Published As

Publication number Publication date
CN109165933A (en) 2019-01-08
TW202008301A (en) 2020-02-16
TWI721422B (en) 2021-03-11

Similar Documents

Publication Publication Date Title
CA3048740C (en) Blockchain-based data processing method and device
EP3547169B1 (en) Block chain-based data processing method and equipment
US20200211106A1 (en) Method, apparatus, and device for training risk management models
CN110008018A (en) A kind of batch tasks processing method, device and equipment
CN105335389B (en) A kind of business method for visualizing and system
CN110852503B (en) Payment channel selection method and device and payment channel route
WO2019085601A1 (en) Task execution method and apparatus
WO2020019896A1 (en) Cross-border transaction declaration method and apparatus
WO2019095858A1 (en) Random walk method, apparatus and device, and cluster-based random walk method, apparatus and device
WO2019085614A1 (en) Random walking, and random walking method, apparatus and device based on distributed system
CN116304226A (en) Information query method, device, equipment and medium
CN108255471A (en) A kind of system configuration item configuration device based on configuration external member, method and apparatus
TWI728357B (en) Method and device for generating serial number
CN110276637B (en) Resource allocation method and device, and coupon allocation method and device
WO2020063181A1 (en) Data processing method, device and apparatus
CN110008386B (en) Data generation, processing and evaluation method, device, equipment and medium
CN116523543A (en) Data processing method, equipment and medium for preformed dish transaction progress display
CN110083602A (en) A kind of method and device of data storage and data processing based on hive table
WO2019072063A1 (en) Random walking and cluster-based random walking method, apparatus and device
TW202036327A (en) Method and system for generating statistical information, and electronic device
CN116204533B (en) Metadata model-based field index mapping method, device and storage medium
CN111402038B (en) Transaction message generation method and device and electronic equipment
CN109635147B (en) Vertex graph embedding vector generation and query method and device
CN109302352A (en) A kind of data flow control method, apparatus and system
CN109657939A (en) The equalization methods and device of-kind of transaction amended record

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19841094

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19841094

Country of ref document: EP

Kind code of ref document: A1