A batch task processing method and device

By dividing cross-border transactions into batch tasks and setting up processing status chains, the problem of low efficiency in cross-border accounting is solved, and more efficient and accurate cross-border transaction processing is achieved.

CN114971903BActive Publication Date: 2025-10-24CHINA CONSTRUCTION BANK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210597010.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2025-10-24
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Currently, cross-border accounting relies entirely on manual operations, which leads to low efficiency and a high risk of errors. Furthermore, manual verification and confirmation are required when problems arise.

Method used

Cross-border transactions are divided into batch tasks, and a processing status chain is set for each batch task, including data verification, foreign exchange settlement and remittance stages. Through compliance screening and validity period verification, the execution results of each task stage are determined to decide the processing of the next stage.

Benefits of technology

It improves the efficiency and accuracy of cross-border accounting, reduces the need for manual verification, and avoids duplicate transactions and processing that does not meet security requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114971903B_ABST
    Figure CN114971903B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data processing, and discloses a batch task processing method and device, which performs batch division on to-be-processed cross-border transactions to obtain at least one batch task; each batch task comprises multiple cross-border transactions; a cross-border transaction processing state chain is set for each cross-border transaction in each batch task; the processing state chain is used for recording execution results of each task stage; the task stages include a data verification stage, a settlement stage and a remittance stage in sequence according to execution orders; for any batch task, whether the i+1th task stage is executed on the batch task is determined according to the execution result of the i th task stage in the processing state chain of each cross-border transaction in the batch task. According to the above scheme, a processing state chain is set for each to-be-processed cross-border transaction in the batch task, so that the batch task can be processed one task stage at a time, and the data processing efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of data processing, and in particular, to a batch task processing method and device. BACKGROUND

[0002] Currently, for the matter of payment of goods by an overseas e-commerce operator to a domestic supplier, cross-border account processing is involved. At present, when the matter of payment of goods by an overseas e-commerce operator to a domestic supplier is processed, the processing flow is completely completed by manual, that is, the current manual execution of a cross-border transaction is required to complete a new cross-border transaction. Obviously, this manual processing method is very tedious and prone to problems, and when problems occur, it needs to be repeatedly confirmed and checked by a teller at the counter, and the processing efficiency is extremely low. SUMMARY

[0003] The present application provides a batch task processing method and device to improve the efficiency and correctness of cross-border account processing.

[0004] In a first aspect, the embodiments of the present application provide a batch task processing method, which comprises: dividing a plurality of cross-border transactions to be processed into batches to obtain at least one batch task; each batch task includes a plurality of cross-border transactions; for each cross-border transaction in each batch task, a processing state chain of the cross-border transaction is set; the processing state chain is used to record the execution results of each task stage; the task stages include a data verification stage, a settlement stage and a remittance stage in turn according to the execution order; for any batch task, according to the execution result of the i-th task stage in the processing state chain of each cross-border transaction in the batch task, it is determined whether to execute the i+1-th task stage of the batch task.

[0005] In the above scheme, a large number of cross-border transactions to be processed submitted by a user are divided into batches, that is, batch tasks are formed; for any batch task obtained by division, a processing state chain is set for each cross-border transaction in the batch task; thus, after processing each cross-border transaction in the batch task at a task stage, the execution result of the cross-border transaction after being processed at the task stage is set, so that the execution result of each cross-border transaction in the batch task at a task stage in the processing state chain is determined whether to execute the next stage of the batch task. Compared with the manual processing of each cross-border transaction in the background technology, the above scheme sets a processing state chain for each cross-border transaction to be processed in the batch task, so that the batch task can be processed one task stage at a time, improving the efficiency and accuracy of data processing.

[0006] In a possible implementation, the task stage is a data verification stage; the processing state chain of the cross-border transaction is set for each cross-border transaction in each batch task, including: for any batch task, performing compliance screening on any cross-border transaction in the batch task, and setting the processing state of the cross-border transaction in the data verification stage according to the compliance screening result; the compliance screening is screening of the cross-border transaction based on compliance screening rules formulated according to a set date; the compliance screening rules include at least one of the following: the monitoring system list and level check of goods trade, the check of key supervision enterprises of cross-border RMB business, and anti-money laundering screening.

[0007] In the above solution, after the cross-border transactions to be processed are divided into at least one batch task, for any batch task obtained by the division, data verification needs to be performed first when the batch task is processed, and subsequently, the cross-border transactions passing the data verification are processed, which can ensure the correctness of the cross-border transaction processing. The data verification includes screening of each cross-border transaction in the batch task based on compliance screening rules formulated according to a set date, including the monitoring system list and level check of goods trade, the check of key supervision enterprises of cross-border RMB business, and anti-money laundering screening, and after the screening of each cross-border transaction is completed, the result of the cross-border transaction after the data verification needs to be recorded in the processing state chain of the cross-border transaction, so that when a task stage after the data verification is executed, the execution can be triggered based on the processing result of each cross-border transaction in the batch task in the data verification stage.

[0008] In a possible implementation, after the at least one batch task is obtained and before the processing state chain of the cross-border transaction is set, the method further includes: for any batch task, determining that each cross-border transaction in the batch task satisfies a non-repetition condition; the non-repetition condition includes that each cross-border transaction in the batch task is not repeated with each cross-border transaction in a historical batch task, and each cross-border transaction in the batch task is not repeated.

[0009] In the above solution, in order to further ensure the correctness of the cross-border transaction processing and avoid the problem of incorrect accounting caused by repeated processing of some cross-border transactions, in the present application, before setting the processing state chain of any cross-border transaction in any batch task obtained after the cross-border transactions to be processed are divided, it is checked whether each cross-border transaction in the batch task satisfies the non-repetition condition, that is, it is checked whether there is a repeated transaction in the batch task with each cross-border transaction in a historical batch task, or whether there is a repeated cross-border transaction in the batch task itself, and if there is a repeated transaction, the processing of the repeated transaction is discarded.

[0010] In a possible implementation, the task stage is a settlement stage; the determining, for any batch of tasks, whether to perform an (i+1)th task stage based on an execution result of an ith task stage in a processing state chain of each cross-border transaction in the batch of tasks, includes: determining, based on an execution result of the data verification stage in the processing state chain of each cross-border transaction in the batch of tasks, whether to perform the settlement stage on the batch of tasks; the setting, for each cross-border transaction in each batch of tasks, of the processing state chain of the cross-border transaction includes: performing, for each cross-border transaction in the batch of tasks for which the data verification stage is passed, validity period checking of the compliance screening, and determining, from the batch of tasks, each cross-border transaction for which the validity period checking of the compliance screening is passed; determining, for each cross-border transaction in the batch of tasks for which the validity period checking of the compliance screening is passed, a settlement application message based on customer information in the cross-border transaction; entering, based on the settlement application message, each cross-border transaction in the batch of tasks for which the validity period checking of the compliance screening is passed through a foreign exchange channel dedicated spot entry system; if it is determined that the entering is successful, sending a spot transaction confirmation, and setting, based on a returned message, a processing state of each cross-border transaction in the batch of tasks for which the validity period checking of the compliance screening is passed in the settlement stage.

[0011] In the above solution, for a batch of tasks divided, after a task stage of performing data verification on the batch of tasks, only cross-border transactions in the batch of tasks for which the data verification is passed are subjected to subsequent task stages, and cross-border transactions for which the data verification is not passed are avoided from being processed, so that the correctness of batch task processing can be further improved. For each cross-border transaction in the batch of tasks for which the data verification is passed, validity period checking of the compliance screening is first performed, and only cross-border transactions for which the validity period checking of the compliance screening is passed are subjected to subsequent settlement processing, so that the correctness of data processing can be further improved, and processing of transactions that do not meet security requirements is avoided.

[0012] In a possible implementation, the validity period checking is based on a settlement date; the performing, for each cross-border transaction in the batch of tasks for which the data verification stage is passed, of validity period checking of the compliance screening, and the determining, from the batch of tasks, of each cross-border transaction for which the validity period checking of the compliance screening is passed, includes: checking, for any cross-border transaction in the batch of tasks for which the data verification stage is passed, a date of performing the compliance screening of the cross-border transaction and the settlement date; if it is determined that the date of performing the compliance screening and the settlement date are the same, the cross-border transaction is taken as a cross-border transaction for which the validity period checking is passed.

[0013] In the above scheme, how to perform the validity period correction of the compliance screening is specifically described, that is, by checking whether the date of performing the compliance screening and the date of actually occurring the settlement are the same, it is determined whether they are the same. Only when they are the same, it is determined that the validity period correction is passed, and the subsequent task stage is carried out. If they are not the same, the subsequent processing of the cross-border transaction is discarded, because the cross-border transaction no longer meets the compliance screening rule of the settlement date, and thus the security of the cross-border transaction cannot be guaranteed.

[0014] In a possible implementation, the task stage is the remittance stage; and the setting, for each cross-border transaction in each batch task, of the processing state chain of the cross-border transaction includes: locking, for each cross-border transaction in the batch task whose processing state in the settlement stage is settlement passed, the cross-border transaction; if the number of cross-border transactions successfully locked is the same as the number of cross-border transactions whose processing state in the settlement stage is settlement passed, calling a general account query service cyclically, and setting, according to a query result, the processing state of each cross-border transaction whose processing state in the settlement stage is settlement passed in the remittance stage; and for each cross-border transaction whose processing state in the remittance stage is unknown, calling the account query service cyclically after an interval of a set time length, and updating, based on a query result, the processing state of each cross-border transaction whose processing state in the remittance stage is unknown.

[0015] In the above scheme, by remitting only the cross-border transaction whose processing state in the settlement stage is settlement passed, the correctness of batch task processing can be improved. In the remittance process, by calling the account query service cyclically after an interval of a set time length for each cross-border transaction whose processing state in the remittance stage is unknown, and updating, based on a query result, the processing state of the cross-border transaction in the remittance stage, the input of manual checking is reduced, and the efficiency of batch task processing is improved.

[0016] In a possible implementation, for at least one batch task that completes the remittance stage within a set time period, it is determined whether there is lock information; if there is no lock information, a thread that successfully acquires a lock is used to perform the balance declaration work; the thread that successfully acquires the lock is used to update the lock information after performing the balance declaration work; when the lock information is a first value, each thread is used to acquire a lock and perform the balance declaration work; and when the lock information is a second value, the balance declaration work is completed.

[0017] In the above scheme, when each batch task obtained by dividing a plurality of to-be-processed cross-border transactions in a period of time (such as within a day) is executed to perform data verification, settlement, and transfer processing operations, then the balance reporting work of the batch tasks in the period of time can be performed. When it is determined that no lock information exists during the balance reporting work, it indicates that the balance reporting work has not been started, and thus a lock thread can be instructed to perform the balance reporting work, which can improve the processing speed of the balance reporting work.

[0018] In a second aspect, an embodiment of the present application provides a batch task processing apparatus, which comprises: a batch task determination unit configured to divide to-be-processed cross-border transactions into batches to obtain at least one batch task; each batch task comprises a plurality of cross-border transactions; a processing state chain setting unit configured to set, for each cross-border transaction in each batch task, a processing state chain of the cross-border transaction; the processing state chain is used to record the execution results of each task stage; the task stages comprise, in sequence according to the execution order, a data verification stage, a settlement stage, and a transfer stage; and a processing unit configured to determine, for any batch task, whether to execute an (i+1)th task stage according to the execution result of an ith task stage in the processing state chain of each cross-border transaction in the batch task.

[0019] In the above scheme, a large number of to-be-processed cross-border transactions submitted by a user are divided into batches, that is, batch tasks are formed; for any batch task obtained by the division, a processing state chain is set for each cross-border transaction in the batch task; thus, after each cross-border transaction in the batch task is processed in a task stage, the execution result of the cross-border transaction after being processed in the task stage is set, so that whether the next stage of the batch task is to be executed can be determined according to the execution result of each cross-border transaction in the batch task in a task stage in the processing state chain. Compared with the manual processing of each cross-border transaction in the background technology, the above scheme sets a processing state chain for each to-be-processed cross-border transaction in the batch task, so that the batch task can be processed one task stage at a time, thereby improving the efficiency and accuracy of data processing.

[0020] In a possible implementation method, the task stage is a data verification stage; and the processing state chain setting unit is specifically configured to: perform compliance screening on any cross-border transaction in any batch task, and set the processing state of the cross-border transaction in the data verification stage according to the compliance screening result; the compliance screening is screening of the cross-border transaction based on a compliance screening rule formulated according to a set date; and the compliance screening rule comprises at least one of a commodity trade monitoring system directory and level check, a cross-border RMB business key supervision enterprise check, and an anti-money laundering screening.

[0021] In the above solution, after the cross-border transaction to be processed is divided into at least one batch task, for any batch task obtained by the division, data verification is performed first when the batch task is processed, and then the cross-border transaction processing correctness can be ensured by processing the cross-border transaction passing the data verification. The data verification includes screening each cross-border transaction in the batch task based on the compliance screening rules of the goods trade monitoring system directory formulated based on the set date, the level check, the cross-border RMB business key regulatory enterprise check and the anti-money laundering screening, and after the screening of each cross-border transaction is completed, the result of the cross-border transaction after the data verification is recorded in the processing state chain of the cross-border transaction, so that when a task stage after the data verification is executed, each cross-border transaction in the batch task can be triggered to be executed based on the processing result of the cross-border transaction in the data verification stage.

[0022] In a possible implementation, the processing unit is further configured to: for any batch task, determine that each cross-border transaction in the batch task satisfies a non-repetition condition; and the non-repetition condition includes that each cross-border transaction in the batch task is not repeated with each cross-border transaction in a historical batch task, and each cross-border transaction in the batch task is not repeated.

[0023] In the above solution, in order to further ensure the correctness of cross-border transaction processing and avoid the problem of incorrect accounting caused by repeated processing of some cross-border transactions, in the present application, before setting the processing state chain of any cross-border transaction in any batch task obtained after the cross-border transaction to be processed is divided, it is checked whether each cross-border transaction in the batch task satisfies the non-repetition condition, that is, it is checked whether there is a repeated transaction in the batch task with each cross-border transaction in a historical batch task, or whether there is a repeated cross-border transaction in the batch task itself, and if there is a repeated transaction, the processing of the repeated transaction is discarded.

[0024] In a possible implementation, the task stage is a settlement stage; the processing unit is specifically configured to: determine to perform the settlement stage on the batch task according to execution results of the data verification stage of each cross-border transaction in the batch task; the processing state chain setting unit is specifically configured to: perform validity period checking of compliance screening on each cross-border transaction of the batch task for which the data verification stage is passed one by one, and determine each cross-border transaction for which the validity period checking of compliance screening is passed from the batch task; determine a settlement application message according to customer information in each cross-border transaction of the batch task for which the validity period checking of compliance screening is passed; and based on the settlement application message, input each cross-border transaction of the batch task for which the validity period checking of compliance screening is passed through a foreign exchange channel special spot entry system; if it is determined that the input is successful, send a spot transaction confirmation, and set the processing state of each cross-border transaction of the batch task for which the validity period checking of compliance screening is passed in the settlement stage according to a returned message.

[0025] In the above solution, for the batch task obtained by division, after the data verification stage, only the cross-border transactions of the batch task for which the data verification is passed are processed in subsequent task stages, and some cross-border transactions for which the data verification is not passed are avoided from being processed, so that the correctness of batch task processing can be further improved. For the cross-border transactions of the batch task for which the data verification is passed, validity period checking of compliance screening is first performed, and only the cross-border transactions for which the validity period checking of compliance screening is passed are processed in subsequent settlement, so that the correctness of data processing can be further improved, and the processing of transactions that do not meet the security requirements is avoided.

[0026] In a possible implementation, the validity period checking is based on a settlement date; the processing unit is further configured to: for any cross-border transaction of the batch task for which the data verification stage is passed, check a date of compliance screening of the cross-border transaction and the settlement date; if it is determined that the date of compliance screening and the settlement date are the same, the cross-border transaction is regarded as a cross-border transaction for which the validity period checking is passed.

[0027] In the above solution, how to perform validity period checking of compliance screening is specifically described, that is, by checking whether the date of compliance screening and the actual settlement date are the same, it is determined whether they are the same. Only when they are the same, the subsequent task stage can be determined to be passed, and the subsequent processing of the cross-border transaction is abandoned if they are not the same, because the cross-border transaction no longer meets the compliance screening rules of the settlement date, and the security of the cross-border transaction cannot be guaranteed.

[0028] In a possible implementation, the task stage is a settlement stage; and the processing state chain setting unit is specifically configured to: for each cross-border transaction in the batch task whose processing state in the settlement stage is settlement success, locking the cross-border transaction; if the number of cross-border transactions successfully locked is the same as the number of cross-border transactions in the settlement success, calling a general account state query service cyclically, and setting the processing state of each cross-border transaction in the settlement success in the settlement stage according to a query result; and for each cross-border transaction whose processing state in the settlement stage is unknown, calling the account state query service cyclically after an interval setting time length, and updating the processing state of each cross-border transaction in the settlement stage based on a query result.

[0029] In the solution, the settlement is performed only on the cross-border transaction whose processing state in the settlement stage is settlement success, so that the correctness of batch task processing is improved; and in the settlement process, the account state query service is called cyclically after an interval setting time length for each cross-border transaction whose processing state in the settlement stage is unknown, and the processing state of the cross-border transaction in the settlement stage is updated based on a query result, so that the input of manual checking is reduced, and the efficiency of batch task processing is improved.

[0030] In a possible implementation, the processing unit is further configured to: determine whether there is lock information for at least one batch task that has completed the settlement stage within a setting time period; if there is no lock information, perform the balance declaration work through a thread that has successfully acquired the lock; the thread that has successfully acquired the lock is configured to update the lock information after performing the balance declaration work; when the lock information is a first value, perform the balance declaration work through threads that acquire the lock; and when the lock information is a second value, the balance declaration work is completed.

[0031] In the solution, after each batch task obtained by dividing a plurality of to-be-processed cross-border transactions in a time period (for example, within one day) performs the processing operations in the data verification, settlement, and settlement stages, the balance declaration work can be performed on the batch task in the time period. When the balance declaration work is performed, if it is determined that there is no lock information, it indicates that the balance declaration work has not been started, so the lock thread can be instructed to perform the balance declaration work, and the speed of processing the balance declaration work is improved.

[0032] In a third aspect, an embodiment of the present application provides a computing device, comprising:

[0033] a memory configured to store program instructions;

[0034] a processor configured to invoke the program instructions stored in the memory, and perform the method according to any one of the implementations of the first aspect.

[0035] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any implementation method of the first aspect.

[0036] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute any implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A schematic diagram of a batch task processing method provided in an embodiment of the present application;

[0039] Figure 2 A schematic diagram of a batch task processing device provided in an embodiment of the present application;

[0040] Figure 3 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] To make the objectives, technical solutions, and advantages of this application more clear, this application will be further described in detail below with reference to the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.

[0042] Regarding overseas e-commerce operators paying domestic suppliers for goods, the current practice is to manually process cross-border transactions one by one, which is obviously extremely inefficient and prone to errors.

[0043] To address the above technical issues, this application provides a batch task processing method. It should be noted that the acquisition, storage, use, and processing of data required during the execution of the batch task processing method in the embodiments of this application comply with relevant national laws and regulations.

[0044] like Figure 1 FIG. 1 is a schematic diagram of a batch task processing method provided in an embodiment of the present application, the method comprising the following steps:

[0045] Step 101, batch division is performed on the cross-border transactions to be processed, to obtain at least one batch task.

[0046] Each batch task includes multiple cross-border transactions.

[0047] In this step, the cross-border transactions to be processed are optional cross-border transactions generated when an overseas e-commerce operator initiates a bank through a corporate online banking to pay for a domestic supplier. In order to improve the efficiency of data processing, the cross-border transactions to be processed are batched, thereby forming batch tasks, which facilitates subsequent processing of cross-border transactions according to batches.

[0048] It is explained that the manner of batch division of the cross-border transactions to be processed in the present application is not limited, such as equal division of the cross-border transactions to be processed, such as division into a plurality of parts of the same number, each part being a batch task; or the cross-border transactions to be processed can not be divided, but the cross-border transactions to be processed as a whole are taken as a batch task, of course, other batch division manners can also be used, which are not exemplified in the present application.

[0049] Step 102, for each cross-border transaction in each batch task, a processing state chain of the cross-border transaction is set.

[0050] The processing state chain is used to record the execution results of each task stage; the task stages include a data verification stage, a settlement stage and a remittance stage in turn according to the execution order.

[0051] In this step, for the processing flow involved in cross-border business, including the data verification stage, the settlement stage and the remittance stage, the processing state chain of each cross-border transaction is created to control the cross-border business flow to be processed in sequence according to the task stage, thereby improving the efficiency of cross-border business processing.

[0052] Step 103, for any batch task, according to the execution result of the i-th task stage in the processing state chain of each cross-border transaction in the batch task, it is determined whether the i+1-th task stage is executed for the batch task.

[0053] In this step, when the processing of a certain task stage of the cross-border transaction reaches a key point, the batch state will be changed, thereby determining whether to start the next task stage. Through the control of the state chain, it is ensured that each key task is executed once and in the predetermined order, thereby improving the efficiency and correctness of cross-border business processing.

[0054] In the above scheme, a large number of cross-border transactions submitted by a user to be processed are divided into batches, i.e., batch tasks are formed; for any batch task obtained by division, a processing state chain is set for each cross-border transaction in the batch task; thus, after each cross-border transaction in the batch task is processed at a task stage, the execution result of the cross-border transaction after being processed at the task stage is set, so that whether the next stage of the batch task is to be executed can be determined according to the execution result of each cross-border transaction in the batch task at a task stage in the processing state chain. Compared with the manner in the background art in which each cross-border transaction is processed by a person one by one, in the above scheme, a processing state chain is set for each cross-border transaction to be processed in the batch task, so that the batch task can be processed one task stage at a time, and the efficiency and accuracy of data processing are improved.

[0055] Some of the above steps will be described in detail below with examples.

[0056] In one implementation of the above step 102, the task stage is a data verification stage; and the setting, for each cross-border transaction in each batch task, of the processing state chain of the cross-border transaction includes: for any batch task, performing compliance screening on any cross-border transaction in the batch task, and setting the processing state of the cross-border transaction at the data verification stage according to the compliance screening result; the compliance screening is screening of the cross-border transaction based on a compliance screening rule formulated according to a set date; and the compliance screening rule includes at least one of a commodity trade monitoring system directory and level check, a cross-border RMB business key supervision enterprise check, and an anti-money laundering screening.

[0057] In some implementations of the present application, before the setting of the processing state chain of the cross-border transaction after the obtaining of the at least one batch task, the method further includes: for any batch task, determining that each cross-border transaction in the batch task satisfies a non-repetition condition; and the non-repetition condition includes that each cross-border transaction in the batch task is not repeated with each cross-border transaction of a historical batch task, and each cross-border transaction in the batch task is not repeated.

[0058] For example, the following embodiments specifically illustrate how to determine whether each cross-border transaction satisfies the non-repetition condition and how to carry out the data processing process of the data verification task stage.

[0059] Assume that an overseas e-commerce operator submits a cross-border transaction to be processed to the bank through its enterprise online bank, and there are a total of 500 cross-border transactions to be processed in this submission; further assume that the bank takes the 500 cross-border transactions to be processed as a batch task, and for the convenience of description, let the batch task be batch task A, so as to process batch task A. First of all, the bank will check whether there are duplicate cross-border transactions in the batch task. Among them, assume that each cross-border transaction corresponds to a unique identifier, and optionally, in the cross-border transaction processing scenario, the identifier of each cross-border transaction is a unique order number. Therefore, optionally, in the embodiment of the present application, the no-duplicate condition of each cross-border transaction in batch task A is checked through the freezing pool mechanism, and after the check, the embodiment of the present application will process each cross-border transaction in batch task A that meets the no-duplicate condition in the subsequent task stage. Optionally, when checking whether each cross-border transaction in batch task A meets the no-duplicate condition in the present application, the following two aspects are included: for any cross-border transaction in batch task A, determine whether the cross-border transaction is a cross-border transaction in a historical batch task and determine whether there is another cross-border transaction in batch task A that is the same as the cross-border transaction. For example, for a cross-border transaction 1 in batch task A, by comparing the order number of cross-border transaction 1 with the order numbers of each cross-border transaction in the historical batch task, if it is determined that there is a cross-border transaction in the historical batch task whose order number is the same as that of cross-border transaction 1, cross-border transaction 1 is discarded, otherwise, it is further determined whether there is a cross-border transaction in batch task A that has the same order number as cross-border transaction 1, if it is determined that there is a cross-border transaction in batch task A that has the same order number as cross-border transaction 1, cross-border transaction 1 also needs to be discarded, otherwise, it can be determined that cross-border transaction 1 meets the no-duplicate condition.

[0060] It is explained that the order of determining whether each cross-border transaction in the batch task meets the no-duplicate condition in the present application is not limited, that is, it can be determined that the cross-border transaction to be judged has no duplicate with each cross-border transaction in the historical batch task first, and then it is determined whether there is a duplicate cross-border transaction in the batch task, or it can be determined whether there is a duplicate cross-border transaction in the batch task first, and then it is determined that the cross-border transaction to be judged has no duplicate with each cross-border transaction in the historical batch task.

[0061] For batch task A, after the no-duplicate condition check, it is determined that there is no any cross-border transaction with duplication in batch task A, then the 500 cross-border transactions in batch task A can be checked by using the compliance screening rule, specifically as follows:

[0062] (1) Goods trade monitoring system directory and level check

[0063] For any cross-border transaction in the batch task, the batch task processing device of the present application calls the FIMS (Foreign-exchange Information Management System) interface, and then judges whether the enterprise corresponding to the cross-border transaction has been registered in the goods trade monitoring system directory according to the result. If the enterprise has been registered in the goods trade monitoring system directory in the early stage, the platform feedback result is "enterprise current management information", such as "classification result" field value is "A class", which means that the verification is passed.

[0064] The batch task processing device of the present application can capture the classification results "A class", "B class" and "C class", and write the captured classification results into the "goods trade monitoring system directory and level verification situation" column of the data verification stage in the processing state chain of the cross-border transaction.

[0065] (2) Cross-border RMB business key regulatory enterprise verification

[0066] The batch task processing device of the present application screens out the information of the cross-border transaction with "account type" as "2. Public" in the batch task, and feeds back the key regulatory enterprise verification information to the payment settlement component of the handling site, including "payee name" and "payee certificate number". After downloading by the branch, the RPA is used for self-checking, and the verification result is uploaded and fed back to the batch task processing device of the present application, so that the batch task processing device of the present application can write the verification result into the "cross-border RMB business key regulatory enterprise verification situation" column of the data verification stage in the processing state chain of the cross-border transaction.

[0067] (3) Anti-money laundering screening

[0068] The batch task processing device of the present application links the anti-money laundering list monitoring system to monitor the payee name, payee name, payee certificate number, etc., complete the anti-money laundering work, and write the verification result into the anti-money laundering screening result of the cross-border transaction being verified. For suspected hits of cross-border transactions, wait for the manual processing result of anti-money laundering, and finally write the screening situation "pass" and "hit" into the "anti-money laundering screening situation" column of the data verification stage in the processing state chain of the cross-border transaction.

[0069] Finally, after obtaining the verification results of the above three aspects, the batch task processing device of the present application can make the following judgments:

[0070] The batch task processing device collects three verification results to form an execution result of the data verification stage, and calculates the total amount of convertible:

[0071] (1) "Goods trade monitoring system directory" can be "non-existent" or "existent", and "goods trade monitoring system directory level verification situation" can be A, B or C class;

[0072] (2) "Cross-border RMB business key regulatory enterprise verification status" can be "included" or "not included";

[0073] (3) "Anti-money laundering screening status": null result, false positive, hit.

[0074] As shown in Table 1 below, the following table 1 shows the corresponding relationship between the screening results and the data verification stage passed by the embodiment of the present application:

[0075]

[0076]

[0077] Table 1

[0078] For example, if the order number is not repeated, the goods trade monitoring system directory and the level verification status is A, not included in the cross-border RMB business key regulatory list, and the anti-money laundering list monitoring condition is normal, the system updates the "screening status" flag of the corresponding order information to "screening passed", and includes the order in the "payable information" list, and generates the payable amount. If the order number is repeated, the one-vote veto will include the payment information in the "unpayable information" list, and no further verification is needed.

[0079] For example, if the transaction parties are classified as B / C in the foreign exchange bureau goods trade monitoring system directory or included in the cross-border RMB business key regulatory list, the "screening status" of the order information is updated to "not passed", and the information is included in the "unpayable information" list, and no further verification is needed.

[0080] For example, if the anti-money laundering list monitoring screening exists system alarm, the order information is pushed to the new generation of staff channel payment settlement module for manual review by the teller, and the feedback "false positive" or "screening not passed" verification result.

[0081] Finally, the batch task processing device of the present application summarizes the results of each sub-item verification and determines the final verification conclusion, generates a "payable information" list, and the "payable information" list is recorded as the data of each cross-border transaction in the data verification stage passed by batch task A.

[0082] In one implementation of the step 102, the task stage is a settlement stage; the determining whether to perform the i+1th task stage on the batch of tasks according to the execution result of the i th task stage in the processing state chain of each cross-border transaction in the batch of tasks includes: determining to perform the settlement stage on the batch of tasks according to the execution result of the data verification stage in the processing state chain of each cross-border transaction in the batch of tasks; the setting the processing state chain of each cross-border transaction in each batch of tasks includes: performing the validity period check of the compliance screening on each cross-border transaction in the batch of tasks whose data verification stage is passed one by one, and determining each cross-border transaction whose validity period check is passed from the batch of tasks; determining the settlement application message according to the customer information in each cross-border transaction in the batch of tasks whose validity period check is passed; based on the settlement application message, entering each cross-border transaction in the batch of tasks whose validity period check is passed through the foreign exchange channel special spot entry system; if it is determined that the entry is successful, sending the spot transaction confirmation, and setting the processing state of each cross-border transaction in the batch of tasks whose validity period check is passed in the settlement stage according to the returned message.

[0083] In some implementations of the present application, the validity period check is based on the settlement date; the performing the validity period check of the compliance screening on each cross-border transaction in the batch of tasks whose data verification stage is passed one by one, and determining each cross-border transaction whose validity period check is passed from the batch of tasks includes: for any cross-border transaction in the batch of tasks whose data verification stage is passed, checking the date of performing the compliance screening of the cross-border transaction and the settlement date; if it is determined that the date of performing the compliance screening and the settlement date are the same, the cross-border transaction is regarded as a cross-border transaction whose validity period check is passed.

[0084] For example, when the batch task processing apparatus of the present application receives a settlement request, it first determines whether the result of the data verification task stage is expired. For example, for some enterprises, although they do not involve money laundering today, it cannot be ensured that they will not involve money laundering tomorrow, so in the present application, the data verification is verified by the compliance screening rules formulated daily for the cross-border transactions to be processed on the same day. For each cross-border transaction in the batch task that passes the compliance screening of the data verification task stage, before settlement, it is further necessary to further check whether the date of each cross-border transaction when the compliance screening is performed is the current date that needs to be settled. If so, the cross-border transaction can be settled; if not, the processing state of the processing state chain of the data verification task stage needs to be reset and the data verification needs to be re-executed. It is explained that in the present application, it is assumed that the 500 cross-border transactions in batch task A that pass the data verification stage verification can pass the validity period check, that is, the 500 cross-border transactions in batch task A can be settled in the present application. Optionally, the settlement processing flow is as follows:

[0085] (1) Call the financial market transaction query to obtain the statistical property subject code of the enterprise;

[0086] (2) Call the financial market foreign exchange channel special spot entry transaction to obtain the entry contract number, and update it to the batch table at the same time;

[0087] (3) Call the financial market spot transaction confirmation submission to perform settlement processing. If the transaction is successful, update the batch table state and the settlement state is settled; if the transaction fails, update the settlement state of the batch table to settlement failure; if the transaction is unknown, call the settlement result query transaction to confirm the result, and if the query result returns success, update the original settlement result to the batch table state; if the result fails or is unknown, update the settlement state of the batch table to settlement unknown, and then convert to manual query to confirm the result.

[0088] In one embodiment of the above step 102, the task stage is the remittance stage; for each cross-border transaction in each batch task, setting the processing state chain of the cross-border transaction includes: for each cross-border transaction in the batch task whose processing state in the settlement stage is settlement passed, locking the cross-border transaction; if the number of cross-border transactions successfully locked is the same as the number of cross-border transactions that passed the settlement, then the general account transfer state query service is called in a loop, and the processing state of each cross-border transaction that passed the settlement in the remittance stage is set based on the query result; for each cross-border transaction whose processing state in the remittance stage is unknown, after the interval setting time, the account transfer state query service is called in a loop, and the processing state of each cross-border transaction whose processing state is unknown in the remittance stage is updated based on the query result.

[0089] For example, if the execution result of the settlement of the batch task A in the settlement stage is settlement success, the batch task processing device of the present application polls the state of the batch task A. If the state of the batch task A is payment pending, it indicates that the payment condition is met, and the batch task A is locked to become payment pending. First, the payment details corresponding to the batch task A are locked, the state is changed to payment pending, and it is calculated whether the locked details data is consistent with the number of payable details of the batch task A. If consistent, the verification is passed, and the payment process is entered.

[0090] The RMB super web remittance transaction is called in a loop. After all the details are called, the system sleeps for 15 seconds, and then the RMB general payment credit state query service is called in a loop. The payment result is confirmed according to the global tracking number. If the query result is A0, it means that the RMB payment has not found the flow sheet, and the detail state is updated to payment unknown. If the query state is payment success, the detail state is updated to payment success. If it is payment failure, it is updated to payment failure, and other states are updated to payment unknown.

[0091] The transaction details of the locked payment and the state of payment unknown 10 minutes ago are polled in a loop, and the RMB general payment credit state query service is called in a loop. The payment result is confirmed according to the global tracking number. If the query result is A0, it means that the RMB payment has not found the flow sheet, and the detail state is updated to pending manual processing. If the query state is payment success, the detail state is updated to payment success. If it is payment failure, it is updated to payment failure, and other states are updated to pending manual processing. The teller queries the transaction details of the pending manual processing, performs manual accounting, and updates the state of the transaction details. Therefore, after the detail state is updated to the final state, the state of the batch task A in the settlement stage is also updated synchronously.

[0092] In some embodiments of the present application, at least one batch task that completes the settlement stage is determined whether to have lock information within a set period of time. If there is no lock information, the thread that successfully grabs the lock is used to perform the revenue and expenditure reporting work. The thread that successfully grabs the lock is used to update the lock information after performing the revenue and expenditure reporting work. When the lock information is a first value, each thread is used to grab the lock and perform the revenue and expenditure reporting work. When the lock information is a second value, it indicates that the revenue and expenditure reporting work is completed.

[0093] In the present application, when the batch task processing device of the present application completes the data verification, settlement and remittance of each batch task in a day, it can further perform the task of revenue and expenditure reporting. Optionally, in the present application, the execution time of the revenue and expenditure reporting task is from 2 a.m. to 4 a.m. every day, and it is executed every ten minutes. The specific process of the revenue and expenditure reporting is as follows:

[0094] First, determine whether the current day's data exists. The scheduled task control table is used to control the execution of scheduled tasks. If the scheduled task control table does not contain the current day's data, it means that the current day's task has not been executed. If the scheduled task control table contains the current day's data and the lock field is successful, it means that the declared task has already been executed and no further execution is required, so it ends directly. If the scheduled task control table contains the current day's data, but the lock field is failed, it means that the declared task has failed. The corresponding record in the scheduled task control table needs to be deleted to make room for the thread to grab the lock and execute the task again the next time the task starts.

[0095] Then, when there is no corresponding record in the scheduled task control table, the thread can grab the lock. Among multiple threads, only the thread that arrives first can successfully grab the lock (insert the primary key) and continue to execute the subsequent code. When subsequent processes insert records to grab the lock, they will fail to grab the lock due to the primary key conflict error. The thread that fails to grab the lock returns directly and ends.

[0096] The thread that has acquired the lock then continues executing the subsequent code, first creating the declaration file (initially an empty file). The subsequent steps include data paging, data processing, and writing the data to the file. The corresponding declaration status in the declaration summary table and the payable order table is changed to successful declaration. Data paging, data processing, and writing the data to the file are executed in a single transaction. If an error occurs midway, the transaction is rolled back, the generated file is deleted, and the lock field in the control table that records the declaration is set to failure, ending the transaction. If the execution is successful without any exceptions, the transaction ends.

[0097] Finally, upload the written file to the FIMS system. If the upload fails, set the value of the lock field in the control table to "failure" and the process ends. If the upload succeeds, set the value of the lock field in the control table to "success" and the process ends.

[0098] Based on the same concept, the embodiment of the present application provides a batch task processing device, such as Figure 2 , which is a schematic diagram of a batch task processing device provided by an embodiment of the present application, the device includes a batch task determination unit 201, a processing state chain setting unit 202, and a processing unit 203;

[0099] The batch task determination unit 201 is configured to divide the cross-border transactions to be processed into batches to obtain at least one batch task; each batch task includes multiple cross-border transactions;

[0100] The processing status chain setting unit 202 is used to set a processing status chain for each cross-border transaction in each batch task; the processing status chain is used to record the execution results of each task stage; the task stages include, in order of execution, a data verification stage, a foreign exchange settlement stage, and a remittance transfer stage;

[0101] The processing unit 203 is configured to determine, for any batch task, whether to execute an (i+1)th task stage according to an execution result of an ith task stage in the processing state chain of each cross-border transaction in the batch task.

[0102] Further, for the device, the task stage is a data verification stage; the processing state chain setting unit 202 is specifically configured to: for any batch task, perform compliance screening on any cross-border transaction in the batch task, and set a processing state of the cross-border transaction in the data verification stage according to a compliance screening result; the compliance screening is screening of the cross-border transaction based on a compliance screening rule formulated according to a set date; the compliance screening rule includes at least one of a commodity trade monitoring system directory and level check, a cross-border RMB business key supervision enterprise check, and an anti-money laundering screening.

[0103] Further, for the device, the processing unit 203 is further configured to: for any batch task, determine that each cross-border transaction in the batch task satisfies a non-repetition condition; the non-repetition condition includes that each cross-border transaction in the batch task and each cross-border transaction of a historical batch task are non-repetitive, and each cross-border transaction in the batch task is non-repetitive.

[0104] Further, for the device, the task stage is a settlement stage; the processing unit 203 is specifically configured to: determine to execute the settlement stage for the batch task according to an execution result of the data verification stage in the processing state chain of each cross-border transaction in the batch task; the processing state chain setting unit 202 is specifically configured to: for each cross-border transaction in the batch task for which the data verification stage is passed, perform validity period correction of compliance screening one by one, and determine each cross-border transaction for which the validity period correction is passed from the batch task; for each cross-border transaction in the batch task for which the validity period correction is passed, determine a settlement application message according to customer information in the cross-border transaction; based on the settlement application message, input the cross-border transaction in the batch task for which the validity period correction is passed through a foreign exchange channel dedicated spot entry system; if it is determined that the input is successful, send a spot transaction confirmation, and set a processing state of the cross-border transaction in the batch task for which the validity period correction is passed in the settlement stage according to a returned message.

[0105] Further, for the device, the validity period correction is correction based on a settlement date; the processing unit 203 is further configured to: for any cross-border transaction in the batch task for which the data verification stage is passed, correct a date of performing compliance screening of the cross-border transaction and the settlement date; if it is determined that the date of performing compliance screening and the settlement date are the same, the cross-border transaction is taken as a cross-border transaction for which the validity period correction is passed.

[0106] Furthermore, for the device, the task stage is the remittance stage; the processing status chain setting unit 202 is specifically used to: for each cross-border transaction in the batch task whose processing status in the foreign exchange settlement stage is foreign exchange settlement passed, lock each cross-border transaction that has passed the foreign exchange settlement; if it is determined that the number of successfully locked cross-border transactions is the same as the number of cross-border transactions that have passed the foreign exchange settlement, then cyclically call the general account status query service, and set the processing status of each cross-border transaction that has passed the foreign exchange settlement in the remittance stage according to the query result; for each cross-border transaction whose processing status in the remittance stage is unknown, after an interval set time, cyclically call the account status query service, and update the processing status of each cross-border transaction whose processing status is unknown in the remittance stage based on the query result.

[0107] Furthermore, for this device, the processing unit 203 is also used to: determine whether there is lock information for at least one batch task that completes the remittance stage within a set time period; if there is no lock information, the income and expenditure declaration work is performed through the thread that successfully grabs the lock; the thread that successfully grabs the lock is used to update the lock information after executing the income and expenditure declaration work; when the lock information is a first value, the lock is grabbed and the income and expenditure declaration work is performed through each thread; when the lock information is a second value, it indicates that the income and expenditure declaration work is completed.

[0108] The present application also provides a computing device, which may be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), etc. The computing device may include a central processing unit (CPU), a memory, input / output devices, etc. The input device may include a keyboard, a mouse, a touch screen, etc. The output device may include a display device, such as a liquid crystal display (LCD), a cathode ray tube (CRT), etc.

[0109] The memory may include a read-only memory (ROM) and a random access memory (RAM), and provides the processor with program instructions and data stored in the memory. In an embodiment of the present application, the memory may be used to store program instructions of the batch task processing method;

[0110] The processor is used to call the program instructions stored in the memory and execute the batch task processing method according to the obtained program.

[0111] like Figure 3 FIG. 1 is a schematic diagram of a computing device provided in an embodiment of the present application, wherein the computing device includes:

[0112] The processor 301, the memory 302, the transceiver 303, the bus interface 304; wherein the processor 301, the memory 302 and the transceiver 303 are connected through the bus 305;

[0113] The processor 301 is configured to read a program in the memory 302 and execute the above batch task processing method.

[0114] The processor 301 can be a central processing unit (CPU), a network processor (NP) or a combination of CPU and NP. It can also be a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0115] The memory 302 is configured to store one or more executable programs and data used by the processor 301 when performing operations.

[0116] Specifically, the program can include program code, and the program code includes computer operation instructions. The memory 302 can include a volatile memory such as a random-access memory (RAM), and can also include a non-volatile memory such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or a combination of the above types of memories.

[0117] The memory 302 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:

[0118] Operation instructions: include various operation instructions for implementing various operations.

[0119] Operating system: includes various system programs for implementing various basic services and processing hardware-based tasks.

[0120] Bus 305 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.

[0121] Bus interface 304 can be a wired communication interface, a wireless bus interface, or a combination thereof, where the wired bus interface can be, for example, an Ethernet interface. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless bus interface can be a WLAN interface.

[0122] The embodiment of the present application further provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions are used for enabling a computer to execute the batch task processing method.

[0123] The embodiment of the present application further provides a computer program product, which comprises computer executable instructions, and the computer executable instructions are used for enabling a computer to execute the batch task processing method.

[0124] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, or a computer program product. Therefore, the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt a computer program product in the form of being 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 codes.

[0125] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks can be realized by computer program instructions. These computer program instructions can be provided to a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce the functions described in the flowcharts and / or block diagrams. Figure 1 One flow or multiple flows and / or blocks Figure 1apparatuses that carry out the functions specified in the block or blocks.

[0126] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 flow or flows and / or blocks Figure 1 apparatuses that carry out the functions specified in the block or blocks.

[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that are executed on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 flow or flows and / or blocks Figure 1 apparatuses that carry out the functions specified in the block or blocks.

[0128] Although preferred embodiments of the application have been described herein, changes and modifications can be suggested to one skilled in the art and are intended to be encompassed within the scope of the appended claims. It is the intent, therefore, to be limited only as indicated by the scope of the claims appended hereto.

[0129] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described herein.

Claims

1. A method of batch task processing, characterized by, The method comprises the following steps: batching cross-border transactions to be processed to obtain at least one batch task; each batch task comprises a plurality of cross-border transactions; for each cross-border transaction in each batch task, a processing state chain of the cross-border transaction is set; the processing state chain is used to record the execution results of each task stage; the task stages include a data verification stage, a settlement stage and a remittance stage in sequence according to the execution order; the cross-border transaction to be processed is generated when an overseas e-commerce operator initiates a bank through a corporate online banking to pay for a domestic supplier; for any batch task, according to the execution result of the i-th task stage in the processing state chain of each cross-border transaction in the batch task, it is determined whether the i+1-th task stage is executed for the batch task; wherein, when the task stage is the data verification stage, any cross-border transaction in the batch task is subjected to compliance screening, and the processing state of the cross-border transaction in the data verification stage is set according to the compliance screening result; when the task stage is the settlement stage, for each cross-border transaction in the batch task whose data verification stage is passed, the validity period of the compliance screening is checked, the settlement application message is determined and the spot transaction confirmation is sent, and the processing state of each cross-border transaction in the batch task whose validity period check is passed in the settlement stage is set according to the returned message; when the task stage is the remittance stage, for each cross-border transaction in the batch task whose processing state in the settlement stage is settlement passed, the cross-border transaction is locked; if the number of cross-border transactions determined to be successfully locked is the same as the number of cross-border transactions passed in the settlement, a general account transfer state query service is called in a loop, and the processing state of each cross-border transaction passed in the settlement in the remittance stage is set according to the query result.

2. The method of claim 1, wherein, The task stage is the data verification stage; the compliance screening is a compliance screening rule based on a set date; the compliance screening rule comprises at least one of the following: a commodity trade monitoring system directory and level check, a cross-border RMB business key supervision enterprise check and an anti-money laundering screening.

3. The method of claim 1, wherein, after obtaining the at least one batch task and before setting the processing state chain of the cross-border transaction, the method further comprises: for any batch task, it is determined that each cross-border transaction in the batch task satisfies a non-repetition condition; the non-repetition condition comprises that each cross-border transaction in the batch task is not repeated with each cross-border transaction in a historical batch task, and each cross-border transaction in the batch task is not repeated.

4. The method of claim 1, wherein, The task stage is the settlement stage. The method of claim 1, wherein, for any batch task, according to the execution result of the i-th task stage in the processing state chain of each cross-border transaction in the batch task, it is determined whether the i+1-th task stage is executed for the batch task, comprising: according to the execution result of the data verification stage in the processing state chain of each cross-border transaction in the batch task, it is determined that the settlement stage is executed for the batch task; for each cross-border transaction in each batch task, the processing state chain of the cross-border transaction is set, comprising: For each cross-border transaction in the batch task that passes the data verification stage, determine the validity period of each cross-border transaction that passes the validity period check from the batch task; For each cross-border transaction in the batch task that passes the validity period check, determine the remittance application message based on the customer information in the cross-border transaction; Based on the remittance application message, enter each cross-border transaction in the batch task that passes the validity period check through the foreign exchange channel dedicated spot entry system; If it is determined that the entry is successful, send a spot transaction confirmation, and set the processing status of each cross-border transaction in the batch task that passes the validity period check in the remittance stage according to the return message.

5. The method of claim 4, wherein, The validity period check is based on the remittance date; The validity period check for each cross-border transaction in the batch task that passes the data verification stage includes: For any cross-border transaction in the batch task that passes the data verification stage, check the date of compliance screening of the cross-border transaction and the remittance date; If the date of compliance screening and the remittance date are determined to be the same, the cross-border transaction is considered to pass the validity period check.

6. The method of claim 4, wherein, Also includes: For each cross-border transaction with an unknown processing status in the remittance stage, after a set interval, the account status query service is called in a loop, and the processing status of each cross-border transaction with an unknown processing status in the remittance stage is updated based on the query result.

7. The method according to any one of claims 1 to 6, characterized in that, The method further includes: Within a set period, determine whether at least one batch task that has completed the remittance stage has lock information; If there is no lock information, perform the income and expenditure declaration work through a thread that has successfully acquired the lock; the thread that has successfully acquired the lock is used to update the lock information after performing the income and expenditure declaration work; when the lock information is a first value, each thread performs lock acquisition and performs the income and expenditure declaration work; when the lock information is a second value, it indicates that the income and expenditure declaration work is complete.

8. A batch task processing apparatus characterized by comprising: Includes: A batch task determination unit is configured to divide the cross-border transactions to be processed into batches to obtain at least one batch task; each batch task includes multiple cross-border transactions; the cross-border transactions to be processed are generated when a foreign e-commerce operator uses enterprise online banking to pay for goods from a domestic supplier to a bank; A processing state chain setting unit is configured to set a processing state chain for each cross-border transaction in each batch task; the processing state chain is used to record the execution results of each task stage; the task stages include a data verification stage, a remittance stage, and a remittance stage in order of execution; A processing unit is configured to determine whether to perform an i+1 task stage on any batch task based on the execution result of the i task stage in the processing state chain of each cross-border transaction in the batch task; The processing state chain setting unit is specifically configured to: when the task stage is the data verification stage, performing compliance screening on any cross-border transaction in the batch task, and setting the processing state of the cross-border transaction in the data verification stage according to the compliance screening result; when the task stage is the settlement stage, performing, for each cross-border transaction in the batch task whose data verification stage is passed, validity period correction, determining a settlement application message, and sending a spot transaction confirmation, and setting the processing state of each cross-border transaction in the batch task whose validity period correction is passed in the settlement stage according to a returned message; and when the task stage is the remittance stage, locking each cross-border transaction in the batch task whose processing state in the settlement stage is settlement passed, and if the number of cross-border transactions determined to be successfully locked is the same as the number of cross-border transactions whose settlement is passed, calling a general account transfer state query service cyclically, and setting the processing state of each cross-border transaction in the batch task whose settlement is passed in the remittance stage according to a query result.

9. The apparatus of claim 8, wherein, The task stage is the data verification stage. The compliance screening is screening of the cross-border transaction based on a compliance screening rule formulated according to a specified date, and the compliance screening rule includes at least one of a commodity trade monitoring system directory and level check, a cross-border RMB business key supervision enterprise check, and an anti-money laundering screening.

10. The apparatus of claim 8, wherein, The processing unit is further configured to: For any batch task, determine that each cross-border transaction in the batch task meets a non-repetition condition, and the non-repetition condition includes that each cross-border transaction in the batch task is not repeated with each cross-border transaction of a historical batch task, and each cross-border transaction in the batch task is not repeated.

11. The apparatus of claim 8, wherein, The task stage is the settlement stage. The processing unit is specifically configured to: According to the execution result of the data verification stage in the processing state chain of each cross-border transaction in the batch task, determine to perform the settlement stage on the batch task. The processing state chain setting unit is specifically configured to: For each cross-border transaction in the batch task whose data verification stage is passed, determine each cross-border transaction whose validity period correction is passed from the batch task. For each cross-border transaction in the batch task whose validity period correction is passed, determine a settlement application message according to customer information in the cross-border transaction. Based on the settlement application message, enter each cross-border transaction in the batch task whose validity period correction is passed through a foreign exchange channel special spot entry system; If it is determined that the entry is successful, a spot transaction confirmation is sent, and the processing state of each cross-border transaction in the batch task whose validity period correction is passed in the settlement stage is set according to a returned message.

12. The apparatus of claim 11, wherein, The validity period correction is based on a settlement date. The processing unit is further configured to: For any cross-border transaction in the batch task whose data verification stage is passed, correct the date of performing compliance screening of the cross-border transaction and the settlement date; If it is determined that the date of performing compliance screening and the settlement date are the same, the cross-border transaction is taken as a cross-border transaction whose validity period correction is passed.

13. The apparatus of claim 11, wherein, The processing state chain setting unit is further configured to: For each cross-border transaction whose processing state in the remittance stage is unknown, after a time interval is set, the account crediting state query service is called cyclically, and the processing state of each cross-border transaction whose processing state is unknown is updated based on the query result.

14. The apparatus of any one of claims 8 to 13, wherein, The processing unit is further configured to: determine whether there is lock information for at least one batch task that has completed the remittance stage within a set time period; if there is no lock information, perform the balance reporting work through a thread that has successfully acquired the lock; the thread that has successfully acquired the lock is configured to update the lock information after performing the balance reporting work; when the lock information is a first value, each thread acquires the lock and performs the balance reporting work; when the lock information is a second value, it indicates that the balance reporting work is completed.

15. A computer device, comprising: comprise: a memory configured to store a computer program; a processor configured to invoke the computer program stored in the memory and execute the method according to any one of claims 1-7 according to the obtained program.

16. A computer-readable storage medium, characterized in that, The storage medium stores computer executable instructions, and the computer executable instructions are used to make the computer execute the method according to any one of claims 1-7.

17. A computer program product, characterised in that, The computer program product comprises computer executable instructions, and the computer executable instructions are used to make the computer execute the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • A method of bank settlement in cross-border trade

    CN109509084A

  • Foreign exchange service declaration method, device and equipment and storage medium

    CN111369253A

  • Cluster type multi-thread automatic accounting batch processing method, device and system

    CN114138489A