CN113313594A - Order processing method, order processing device, electronic equipment, storage medium and program product - Google Patents

Order processing method, order processing device, electronic equipment, storage medium and program product Download PDF

Info

Publication number
CN113313594A
CN113313594A CN202110707114.XA CN202110707114A CN113313594A CN 113313594 A CN113313594 A CN 113313594A CN 202110707114 A CN202110707114 A CN 202110707114A CN 113313594 A CN113313594 A CN 113313594A
Authority
CN
China
Prior art keywords
transaction
financial
order
platform
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110707114.XA
Other languages
Chinese (zh)
Other versions
CN113313594B (en
Inventor
陈博
劳伟
朱江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110707114.XA priority Critical patent/CN113313594B/en
Publication of CN113313594A publication Critical patent/CN113313594A/en
Application granted granted Critical
Publication of CN113313594B publication Critical patent/CN113313594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/382Payment protocols; Details thereof insuring higher security of transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

The application provides an order processing method, an order processing device, electronic equipment, a storage medium and a program product. The method comprises the following steps: the transaction management platform acquires first transaction information of a target financial transaction order to be settled, which is pushed by the financial transaction platform, wherein the first transaction information comprises: the identification of the target financial transaction order, the identification of a financial hosting platform corresponding to the target financial transaction order and first transaction data of the target financial transaction order; acquiring the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform comprises: second trade information of second trade data of the target financial trade order; when the first transaction data and the second transaction data are the same, determining that the target financial transaction order passes verification; and sending a settlement instruction for instructing the financial hosting platform to settle the target financial transaction order to the financial hosting platform. The application improves the checking efficiency and the checking accuracy.

Description

Order processing method, order processing device, electronic equipment, storage medium and program product
Technical Field
The present application relates to data processing technologies, and in particular, to an order processing method, an order processing apparatus, an electronic device, a storage medium, and a program product.
Background
Typically, a financial transaction order is completed by a financial host institution, a financial transaction institution, and a transaction management institution, all together. Specifically, the user may perform a financial transaction on a financial item provided by the financial escrow institution through a financial transaction platform of the financial transaction institution. After the user conducts the financial transaction through the financial transaction platform, the financial transaction platform may generate transaction data related to the financial transaction order. The financial hosting platform of the financial hosting institution may also obtain transaction data related to the financial transaction order from a platform other than the financial transaction platform. The platform except the financial transaction platform is related to the financial item type of the financial transaction order. In order to ensure that the transaction data of the financial transaction order is correct, the transaction management entity needs to verify the transaction data of the financial transaction order generated by the financial transaction platform and the transaction data of the financial transaction order acquired by the financial hosting platform. When the check is passed, the financial host institution can settle the financial transaction order.
At present, users of a transaction management organization mainly verify transaction data of financial transaction orders generated by a financial transaction platform and transaction data of financial transaction orders acquired by a financial hosting platform in a manual verification mode. However, the manual verification has the problems of low verification efficiency and poor accuracy.
Disclosure of Invention
The application provides an order processing method, an order processing device, electronic equipment, a storage medium and a program product, which are used for improving the verification efficiency and the verification accuracy.
In a first aspect, the present application provides an order processing method, including:
the transaction management platform acquires first transaction information of a target financial transaction order to be settled, which is pushed by the financial transaction platform, wherein the first transaction information comprises: the identification of the target financial trading order, the identification of a financial hosting platform corresponding to the target financial trading order, and first trading data of the target financial trading order, wherein the first trading data is generated by the financial trading platform based on trading operation of a user for the target financial trading order;
the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data is transaction data which is acquired by the financial hosting platform and generated by a user aiming at the transaction operation of the target financial transaction order;
if the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order passes the verification;
and the transaction management platform sends a settlement instruction to the financial hosting platform, wherein the settlement instruction is used for instructing the financial hosting platform to settle the target financial transaction order.
Optionally, the obtaining, by the transaction management platform, second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform includes:
the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order, the identifier of the financial hosting platform and the first transaction data; the second transaction information further includes: the financial hosting platform obtains a verification result of the target financial transaction order based on the first transaction data and the second transaction data;
if the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order is verified to be passed, including:
and if the verification result of the financial hosting platform for the target financial transaction order indicates that the first transaction data is the same as the second transaction data, and the transaction management platform compares the first transaction data with the second transaction data to obtain the verification result that the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order passes the verification.
Optionally, the acquiring, by the transaction management platform, second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order, the identifier of the financial hosting platform, and the first transaction data includes:
the transaction management platform acquires a message format which can be identified by the financial hosting platform according to the identifier of the financial hosting platform;
the transaction management platform generates a settlement request message meeting the message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data; the settlement request message comprises an identifier of the target financial transaction order and the first transaction data;
the transaction management platform creates a settlement task of the target financial transaction order through a Quartz framework according to the identification of the financial hosting platform and the settlement request message; the settlement task is used for sending the settlement request message to the financial hosting platform, acquiring the second transaction data from the financial hosting platform, and obtaining a verification result of the target financial transaction order by the financial hosting platform based on the first transaction data and the second transaction data;
the transaction management platform starts and calls a task execution thread to execute the settlement task; the task execution thread is any thread in an idle state in a thread pool of the Quartz frame.
Optionally, after the transaction management platform starts and calls a task execution thread to execute the settlement task, the method further includes:
the transaction management platform records the time length of the thread for executing the settlement task;
if the time length exceeds a preset time length threshold value, the transaction management platform terminates the task execution thread and ends the settlement task;
and the transaction management platform outputs prompt information of transaction abnormity of the target financial transaction order.
Optionally, after the transaction management platform outputs prompt information of transaction exception of the target financial transaction order, the method further includes:
the transaction management platform receives a manual verification result input by a user based on the prompt information;
and if the manual verification result represents that the first transaction data and the second transaction data are the same, the transaction management platform determines that the target financial transaction order passes verification.
Optionally, the transaction management platform caches a plurality of financial transaction orders to be settled pushed by the financial transaction platform;
before the transaction management platform acquires the first transaction information of the target financial transaction order to be settled, which is pushed by the financial transaction platform, the transaction management platform further comprises:
the transaction management platform extracts a first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order.
Optionally, the financial transaction orders to be settled correspond to at least two financial hosting platforms;
the transaction management platform extracts a first number of financial transaction orders as the target financial transaction order from the cached plurality of financial transaction orders to be settled, and comprises:
obtaining settlement priorities of the at least two financial hosting platforms according to the identifications of the at least two financial hosting platforms;
and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of the at least two financial hosting platforms.
Optionally, the transaction management platform extracts a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction order, and includes:
acquiring the settlement priority of each financial transaction order in the plurality of financial transaction orders to be settled;
and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of each financial transaction order.
Optionally, before the transaction management platform extracts a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction order, the method further includes:
the transaction management platform determines a first quantity of financial transaction orders to be subjected to parallel settlement processing according to the quantity of threads in an idle state in a thread pool of the Quartz frame; wherein one thread corresponds to one financial transaction order.
Optionally, the transaction management platform extracts a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction order, and includes:
the transaction management platform extracts a first number of financial transaction orders as the target financial transaction orders from the cached multiple financial transaction orders to be settled by adopting a target settlement frequency.
Optionally, the method further includes:
the transaction management platform acquires the pushing frequency of the financial transaction platform for pushing a target financial transaction order to be settled;
and the transaction management platform determines the target settlement frequency according to the pushing frequency, wherein the target settlement frequency is positively correlated with the pushing frequency.
In a second aspect, the present application provides an order processing apparatus, the apparatus comprising:
the first obtaining module is used for obtaining first transaction information of a target financial transaction order to be settled, which is pushed by a financial transaction platform, and the first transaction information comprises: the identification of the target financial trading order, the identification of a financial hosting platform corresponding to the target financial trading order, and first trading data of the target financial trading order, wherein the first trading data is generated by the financial trading platform based on trading operation of a user for the target financial trading order;
the second acquisition module is used for acquiring second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data is transaction data which is acquired by the financial hosting platform and generated by a user aiming at the transaction operation of the target financial transaction order;
a determining module for determining that the target financial transaction order is verified when the first transaction data and the second transaction data are the same;
and the sending module is used for sending a settlement instruction to the financial hosting platform, and the settlement instruction is used for indicating the financial hosting platform to perform settlement processing on the target financial transaction order.
In a third aspect, the present application provides an electronic device, comprising: at least one processor, a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the electronic device to perform the method of any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the method of any one of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising a computer program that, when executed by a processor, implements the method of any of the first aspects.
According to the order processing method, the order processing device, the electronic equipment, the storage medium and the program product, after first transaction data of a target financial transaction order pushed by a financial transaction platform and second transaction data of the target financial transaction order in the financial hosting platform are obtained through the transaction management platform, whether the first transaction data and the second transaction data are the same or not is automatically checked. When the first transaction data and the second transaction data are the same, it is indicated that the transaction data of the target financial transaction order acquired by the financial transaction platform and the financial escrow platform are correct, and a settlement instruction can be sent to the financial escrow platform to prompt the financial escrow platform to perform settlement processing on the target financial transaction order. Through automatic verification of the first transaction data and the second transaction data, the first transaction data and the second transaction data do not need to be verified manually, the verification efficiency of the transaction management platform is improved, the possibility of errors caused by manual negligence is avoided, and the accuracy of verification of the transaction management platform on the transaction data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the present application or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive labor.
FIG. 1 is a diagram illustrating an application scenario of a conventional financial transaction order processing method;
FIG. 2 is a schematic flow chart illustrating an order processing method according to the present application;
FIG. 3 is a flowchart illustrating a method for a transaction management platform to obtain second transaction information of a target financial transaction order from a financial hosting platform according to the present application;
FIG. 4 is a schematic flow chart illustrating another method for order processing according to the present application;
fig. 5 is a schematic structural diagram of an order processing apparatus provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following explains some concepts related to the present application:
a financial transaction institution: a financial transaction institution is an institution that manages the financial transactions conducted by users.
A financial transaction platform: the financial transaction platform is a platform provided by an electronic device with processing capability of a financial transaction institution. The user can conduct financial transactions through the financial transaction platform. After the user conducts the financial transaction through the financial transaction platform, the financial transaction platform may generate transaction data related to the financial transaction order.
Financial escrow institution: the financial escrow institution may provide financial items for the user to transact. Illustratively, the financial escrow institution may be, for example, a bond institution. The financial items that are available for the user to trade may be, for example, bonds.
A financial escrow platform: the financial escrow platform provides a platform for a processing-capable electronic device of a financial escrow institution. The financial hosting platform may obtain transaction data related to the financial transaction order from a platform other than the financial transaction platform.
A transaction management authority: the transaction management mechanism is a mechanism for verifying the transaction data of the financial transaction order generated by the financial transaction platform and the transaction data of the financial transaction order acquired by the financial hosting platform.
A transaction management platform: the transaction management platform is a platform provided for electronic equipment with processing capability of a transaction management organization. The transaction management platform can acquire transaction data of financial transaction orders generated by the financial transaction platform and transaction data of financial transaction orders acquired by the financial hosting platform.
Quartz frame: quartz is an open source project. Multiple threads can be created based on the Quartz framework to perform multiple tasks simultaneously. Wherein one thread can execute one task at a time.
Fig. 1 is a schematic view of an application scenario of a conventional financial transaction order processing method. As shown in fig. 1, a user 1 and a user 2 performing a financial transaction may perform a financial transaction through a financial transaction platform. The financial transaction platform can generate a financial transaction order to be settled according to transaction data generated in the process of financial transaction between the two users, and sends the financial transaction order to the transaction management platform. The financial hosting platform can also acquire transaction data generated by financial transactions between the two users from platforms except the financial transaction platform and send the transaction data to the transaction management platform. Accordingly, the transaction management platform can receive the transaction data of the user sent by the financial transaction platform and the transaction data of the user sent by the financial hosting platform.
After the transaction management platform receives the transaction data of the user sent by the financial transaction platform and the transaction data of the user sent by the financial hosting platform, the data of both parties needs to be verified to ensure that the transaction data of the financial transaction order is correct.
At present, a user of a transaction management organization mainly checks transaction data, which are acquired by a transaction management platform and sent by a financial transaction platform, and transaction data sent by a financial escrow platform in a manual checking mode. However, the manual verification has the problems of low verification efficiency and poor accuracy.
In consideration of the problems of low verification efficiency and poor accuracy of the conventional method for processing the financial transaction order to be settled because the order needs to be manually processed, the application provides a method for automatically verifying the transaction data of the financial transaction order to be settled through a transaction management platform. After the verification is passed, the transaction management platform may automatically send an instruction for instructing the financial hosting platform to perform settlement processing on the transaction to the financial hosting platform corresponding to the financial transaction order. By the method, the transaction data sent by the financial transaction platform and the transaction data sent by the financial escrow platform do not need to be verified manually, so that the verification efficiency is improved, the possibility of errors caused by manual negligence is avoided, and the verification accuracy is improved.
The technical solution of the present application will be described in detail with reference to specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a flowchart illustrating an order processing method according to the present application. As shown in fig. 2, the method comprises the steps of:
s101, the transaction management platform acquires first transaction information of a target financial transaction order to be settled, which is pushed by the financial transaction platform.
Wherein the first transaction information includes: the first transaction data includes an identification of the target financial transaction order, an identification of a financial hosting platform to which the target financial transaction order corresponds, and the first transaction data of the target financial transaction order.
It should be understood that the application is not limited to how the financial trading platform obtains the above-mentioned identification of the financial trading order, the identification of the financial hosting platform corresponding to the target financial trading order, and the first trading data of the target financial trading order.
Illustratively, the identification of the target financial transaction order may be a combination of a plurality of numbers, for example. Alternatively, the identification of the target financial transaction order may be generated by the financial transaction platform based on, for example, an identification of a user that made the target financial transaction order, a time at which the user made the transaction, and so on.
The identifier of the financial hosting platform corresponding to the target financial transaction order may be, for example, an Identity Document (ID) of the financial hosting platform corresponding to the target financial transaction order. Only one financial escrow platform corresponding to one target financial transaction order is provided. The financial hosting platforms corresponding to different target financial transaction orders may be the same or different.
The first transaction data of the target financial transaction order may include, for example, a transaction amount, a transaction time, an identifier of a transaction manner, and other data corresponding to the target financial transaction order. The financial trading platform generates the first trading data based on trading operations of the user for the target financial trading order.
As a first possible implementation manner, the transaction management platform may be connected with the financial transaction platform through wireless communication to obtain first transaction information of the target financial transaction order to be settled.
As a second possible implementation manner, when the financial transaction platform pushes more financial transaction orders to be settled, the transaction management platform has a lower efficiency of processing all financial transaction orders to be settled simultaneously. Therefore, the transaction management platform can cache the financial transaction orders to be settled pushed by the transaction fusion platform. At least one financial transaction order to be settled pushed by the financial transaction platform can be cached in the transaction management platform. Under the implementation, the transaction management platform may obtain a target financial transaction order to be settled from the at least one cached financial transaction order to be settled, and further obtain first transaction information of the target financial transaction order to be settled.
And S102, the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform.
Wherein the second transaction information includes: second trade data of the target financial trade order. The second transaction data is transaction data acquired by the financial hosting platform and generated by the user for the transaction operation of the target financial transaction order. For example, the second transaction data may include a transaction amount, a transaction time, an identification of a transaction mode, and the like corresponding to the target financial transaction order.
It should be understood that the application does not limit how the financial hosting platform obtains the second trade information of the target financial trade order. In a specific implementation, for financial transactions of different financial transaction types, the manner in which the financial hosting platform obtains the second transaction information of the target financial transaction order may be different. Exemplary, to involve foreign exchange
As a first possible implementation manner, the transaction management platform may obtain the second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform.
Optionally, the transaction management platform may determine, according to the identifier of the financial hosting platform, a financial hosting platform corresponding to the target financial transaction order. An identification of the target financial transaction order is then sent to the financial hosting platform. After receiving the identifier of the target financial transaction order, the financial hosting platform may obtain second transaction information of the target financial transaction order according to the identifier of the target financial transaction order, and send the second transaction information to the transaction management platform.
As a second possible implementation manner, the transaction management platform may further obtain second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order, the identifier of the financial hosting platform, and the first transaction data.
Optionally, the transaction management platform may determine, according to the identifier of the financial hosting platform, a financial hosting platform corresponding to the target financial transaction order. An identification of the target financial transaction order, and, the first transaction data, is then transmitted to the financial hosting platform.
After receiving the identifier of the target financial transaction order and the first transaction data, the financial hosting platform may optionally obtain second transaction data of the target financial transaction order according to the identifier of the target financial transaction order. And then the financial hosting platform can use the result of judging whether the first transaction data is the same as the second transaction data or not as a verification result of the target financial transaction order through a preset verification algorithm. After obtaining the verification result for the target financial transaction order, the financial hosting platform may send the verification result to the transaction management platform as part of the second transaction information. That is, in this implementation, the second transaction information may further include: and the financial hosting platform obtains a verification result of the target financial transaction order based on the first transaction data and the second transaction data.
Accordingly, the transaction management platform can accept the second transaction information.
S103, determining whether the first transaction data and the second transaction data are the same. If yes, go to step S103. If not, optionally, the transaction management platform may execute step S106.
As a first possible implementation manner, the transaction management platform may determine whether the first transaction data and the second transaction data are the same by comparing whether corresponding items of data in the first transaction data and the second transaction data are the same.
For example, the first transaction data and the second transaction data each include a transaction amount and a transaction date corresponding to the target financial transaction order, and an identification of the transaction mode, for example, the first transaction data may be as shown in table 1 below, and the second transaction data may be as shown in table 2 below:
TABLE 1
Amount of transaction Amount 1
Date of transaction Date 1
Identification of transaction mode Identification 1
TABLE 2
Amount of transaction Amount 2
Date of transaction Date 2
Identification of transaction mode Identification 2
Taking the above table 1 and table 2 as an example, if the transaction management platform determines that the amount 1 is equal to the amount 2, the date 1 is the same as the date 2, and the identifier 1 is the same as the identifier 2, it may be determined that the first transaction data is the same as the second transaction data. Otherwise, it may be determined that the first transaction data and the second transaction data are not the same. It should be understood that the application is not limited to how the transaction management platform determines whether the data items are the same. For example, the transaction management platform may determine whether the corresponding items of data in the first transaction data and the second transaction data are the same through a field comparison algorithm, for example.
As a second possible implementation manner, as mentioned above, the transaction management platform may further obtain "a verification result of the target financial transaction order obtained by the financial hosting platform based on the first transaction data and the second transaction data". In this implementation manner, the transaction management platform may determine whether the first transaction data and the second transaction data are the same according to a verification result of the financial hosting platform for the target financial transaction order and a verification result obtained by comparing the first transaction data and the second transaction data with each other by the transaction management platform.
If the verification result of the financial hosting platform for the target financial transaction order indicates that the first transaction data is the same as the second transaction data, and the transaction management platform compares the first transaction data with the second transaction data, and the obtained verification result indicates that the first transaction data is the same as the second transaction data, the transaction management platform can determine that the first transaction data is the same as the second transaction data. Otherwise, the transaction management platform may determine that the first transaction data and the second transaction data are different.
The transaction management platform determines whether the first transaction data and the second transaction data are the same through the verification result of the financial hosting platform on the first transaction data and the second transaction data and the verification result of the transaction management platform on the first transaction data and the second transaction data, and after two times of verification, the accuracy of determining whether the first transaction data and the second transaction data are the same is improved, and the accuracy of determining whether the target financial transaction order passes the verification is improved.
And S104, determining that the target financial transaction order passes verification.
If the first transaction data and the second transaction data are the same, which indicates that the transaction information of the target financial transaction order to be settled is correct, the transaction management platform can determine that the target financial transaction order passes verification.
And S105, sending a settlement instruction to the financial hosting platform.
After determining that the target financial transaction order is verified, the financial escrow platform may settle the target financial transaction order to be settled. The transaction management platform may instruct the financial hosting platform to begin the settlement process for the target financial transaction order by sending a "settlement instruction to instruct the financial hosting platform to perform the settlement process for the target financial transaction order" to the financial hosting platform.
It should be understood that the application is not limited to how the financial hosting platform performs the settlement process on the target financial transaction order after receiving the settlement instruction. Illustratively, the settlement process may include, for example, calculation, transfer, and the like of money for the user.
S106, the first transaction information of the target financial transaction order to be settled and the second transaction information of the target financial transaction order are obtained again.
If the first transaction data and the second transaction data are different, which indicates that the transaction information of the target financial transaction order to be settled may have errors, the transaction management platform may reacquire the first transaction information of the target financial transaction order to be settled and the second transaction information of the target financial transaction order, and then determine again whether the first transaction data and the second transaction data are the same.
Or after determining that the first transaction data is different from the second transaction data, the transaction management platform may further output prompt information for prompting a user of the transaction management institution to confirm the target financial transaction order to be settled. Wherein the content of the hint information may include first trade information for the target financial trade order. Optionally, the transaction management platform may output the prompt information to a display device of a terminal device used by a user of the transaction management institution, for example, so that the user of the transaction management institution may find the prompt information in time. Then, the user of the transaction management institution may inquire the transaction information about the target financial transaction order from the user of the corresponding financial transaction institution and the user of the financial hosting institution according to the first transaction information included in the prompt message, so as to obtain correct first transaction data and correct second transaction data. The transaction management platform may then send a settlement instruction to the financial escrow platform when the manual verification result indicates that the first transaction data and the second transaction data are the same.
In this embodiment, after acquiring first transaction data of a target financial transaction order pushed by the financial transaction platform and second transaction data of the target financial transaction order in the financial hosting platform, the transaction management platform automatically checks whether the first transaction data and the second transaction data are the same. When the first transaction data and the second transaction data are the same, it is indicated that the transaction data of the target financial transaction order acquired by the financial transaction platform and the financial escrow platform are correct, and a settlement instruction can be sent to the financial escrow platform to prompt the financial escrow platform to perform settlement processing on the target financial transaction order. Through automatic verification of the first transaction data and the second transaction data, the first transaction data and the second transaction data do not need to be verified manually, the verification efficiency of the transaction management platform is improved, the possibility of errors caused by manual negligence is avoided, and the accuracy of verification of the transaction management platform on the transaction data is improved.
As previously mentioned, the transaction management platform may obtain second transaction information for the target financial transaction order from the financial hosting platform based on the identification of the target financial transaction order and the identification of the financial hosting platform, as well as the first transaction data. In this implementation, how the transaction management platform obtains the second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order, the identifier of the financial hosting platform, and the first transaction data will be described in detail below. Fig. 3 is a flowchart illustrating a method for a transaction management platform to obtain second transaction information of a target financial transaction order from a financial hosting platform according to the present application. As shown in fig. 3, as a possible implementation manner, the step S102 may include the following steps:
s201, the transaction management platform obtains a message format which can be identified by the financial hosting platform according to the identification of the financial hosting platform.
The recognizable message formats of different financial hosting platforms can be the same or different.
Optionally, the transaction management platform may store, for example, an identifier of the financial hosting platform in advance, and a mapping relationship between the identifier and a message format that the financial hosting platform can recognize. The transaction management platform can acquire a message format recognizable by the financial hosting platform according to the identifier of the financial hosting platform and the mapping relation.
For example, the mapping relationship between the identifier of the financial hosting platform and the message format recognizable by the financial hosting platform may be as shown in table 3 below:
TABLE 3
Serial number Identification of financial escrow platform Message format recognizable by financial hosting platform
1 Identification 1 Message format 1
2 Identification 2 Message format 2
3 Identification 3 Message format 3
Taking the mapping relationship shown in table 3 as an example, assuming that the identifier of the financial hosting platform is identifier 2, the transaction management platform may determine that the message format recognizable by the financial hosting platform is message format 2 according to the mapping relationship.
Alternatively, the transaction management platform may also send request information for requesting to acquire a message format recognizable by the financial hosting platform to the financial hosting platform, for example. After the financial hosting platform receives the request information, a message format which can be identified by the financial hosting platform can be fed back to the transaction management platform. Accordingly, the transaction management platform may receive a message format recognizable by the financial escrow platform.
S202, the transaction management platform generates a settlement request message meeting the message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data.
The settlement request message comprises an identification of a target financial transaction order and first transaction data.
For example, the transaction management platform may put the identifier of the target financial transaction order and the first transaction data into a preset position in the settlement request message according to a message format recognizable by the financial hosting platform, so as to generate a settlement request message satisfying the message format recognizable by the financial hosting platform.
It should be understood that, the present application does not limit whether the settlement request message further includes contents other than the identifier of the target financial transaction order and the first transaction data. In the specific implementation, the content that the settlement request message may also include may be determined according to the user requirement.
And S203, the transaction management platform creates a settlement task of the target financial transaction order through a Quartz framework according to the identification of the financial hosting platform and the settlement request message.
The settlement task is used for sending a settlement request message to the financial hosting platform, acquiring second transaction data from the financial hosting platform, and obtaining a verification result of the target financial transaction order by the financial hosting platform based on the first transaction data and the second transaction data. One target financial transaction order to be settled corresponds to one settlement task.
Optionally, the transaction management platform may use the identifier of the financial hosting platform and the settlement request message as parameters of a settlement task, so as to implement a settlement task for creating a target financial transaction order through a Quartz framework.
And S204, starting the transaction management platform and calling a task execution thread to execute a settlement task.
The task execution thread is any thread in an idle state in a thread pool of the Quartz frame. The total number of threads in the thread pool of the Quartz framework may be pre-stored by the user in the transaction management platform. When a plurality of settlement tasks exist, asynchronous processing or synchronous processing of the settlement tasks can be realized through threads in idle states in a thread pool of the Quartz framework. When the number of the settlement tasks is larger than that of the threads in the idle state, the transaction management platform can realize asynchronous processing of the settlement tasks. When the number of the settlement tasks is less than or equal to the number of the threads in the idle state, the transaction management platform can realize the synchronous processing of the settlement tasks.
By starting and calling the task execution thread, the transaction management platform can be enabled to execute the settlement task. The transaction management platform can send a settlement request message to the financial hosting platform, acquire second transaction data from the financial hosting platform and obtain a verification result of the target financial transaction order based on the first transaction data and the second transaction data by starting and calling the task execution thread.
In this embodiment, settlement tasks for different financial hosting platforms can be created through the identifiers of the different financial hosting platforms, so that even if a plurality of financial hosting platforms exist, the transaction management platform can automatically process a target financial transaction order. By generating the settlement request message meeting the message format recognizable by the financial hosting platform, the financial hosting platform can directly identify and obtain the identifier of the target financial transaction order and the first transaction data in the settlement request message after receiving the settlement request message, and operations such as transcoding and the like are not required to be performed on the settlement request message, so that the efficiency of the financial hosting platform for verifying the first transaction data and the second transaction data is improved, and the efficiency of the transaction management platform for verifying the first transaction data and the second transaction data is improved.
Based on the above embodiment, it is considered that if the communication between the transaction management platform and the financial hosting platform is interrupted, the network speed is poor, or the financial hosting platform fails, and the like, it may be deduced that the execution of the settlement task fails. As a possible implementation manner, after the transaction management platform starts and calls the task execution thread to execute the settlement task, the transaction management platform may further determine whether the process of executing the settlement task is normal according to the duration of executing the settlement task by the thread.
Specifically, the transaction management platform may record the length of time that the thread performs the settlement task. And then judging whether the duration exceeds a preset duration threshold. The preset time length threshold may be, for example, pre-stored in the transaction management platform by the user.
If the time length does not exceed the preset time length threshold value, the settlement task execution process is not in a problem, and the transaction management platform can continue the task execution thread.
If the duration exceeds the preset duration threshold, it indicates that a problem may occur in the execution process of the settlement task, for example, communication between the transaction management platform and the financial hosting platform may be interrupted, the network speed is poor, or the financial hosting platform fails. The transaction management platform may terminate the task execution thread and end the settlement task. And then outputting prompt information of abnormal trading of the target financial trading order.
Optionally, the user of the transaction management organization may log in the financial hosting platform according to the prompt information of the transaction exception of the target financial transaction order. Then, in the financial hosting platform, the first transaction data and the second transaction data are continuously checked. If the user determines that the first transaction data is the same as the second transaction data, a manual verification result can be input to the transaction management platform.
That is, as a possible implementation manner, after the prompt information of the transaction exception of the target financial transaction order is output, the transaction management platform may further receive a manual verification result input by the user based on the prompt information.
If the manual verification result indicates that the first transaction data and the second transaction data are the same, the transaction management platform can determine that the target financial transaction order passes verification. The transaction management platform may then send settlement instructions to the financial escrow platform. Alternatively, a user of the transaction management institution may enter settlement instructions into the financial escrow platform.
If the manual verification result indicates that the first transaction data and the second transaction data are different, optionally, the transaction management platform may reacquire the first transaction information of the target financial transaction order to be settled and the second transaction information of the target financial transaction order.
In this embodiment, when the time length for executing the settlement task by the thread exceeds the preset time length threshold, the task execution thread is terminated, the settlement task is ended, and the prompt message of the transaction exception of the target financial transaction order is output. By terminating the task execution thread, the thread can be in an idle state, so that the transaction management platform can use the thread to execute other settlement tasks, and computing resources are saved. By outputting prompt information of transaction abnormity of the target financial transaction order, the user can timely notice that the settlement task is failed to be executed, so that the user can timely process the settlement task, the settlement task is prevented from being executed on time, and the execution efficiency of the settlement task is improved.
As mentioned above, the transaction management platform may cache at least one financial transaction order to be settled pushed by the financial transaction platform. When the transaction management platform caches a plurality of financial transaction orders to be settled pushed by the financial transaction platform, as a possible implementation manner, before first transaction information of a target financial transaction order to be settled pushed by the financial transaction platform is acquired, the transaction management platform may further extract a first number of financial transaction orders from the plurality of financial transaction orders to be settled cached by the transaction management platform as the target financial transaction order.
With respect to how the first number is determined, several possible implementations are provided below for the present application.
As a first possible implementation manner, the first quantity may be pre-stored in the transaction management platform by the user.
As a second possible implementation manner, the transaction management platform may determine, according to the number of threads in an idle state in a thread pool of the Quartz framework, a first number of financial transaction orders to be subjected to parallel settlement processing. Wherein one thread corresponds to one financial transaction order.
For example, the transaction management platform may use the number of threads in the thread pool of the Quartz framework in an idle state as the first number. By the method, the threads in the thread pool of the Quartz frame can be fully utilized to execute the settlement task, and the efficiency of the transaction management platform for processing the settlement task is improved.
As a third possible implementation manner, the first quantity may also be determined by the transaction management platform according to a processing performance parameter of its own hardware. The processing performance parameter of the hardware can be used for characterizing the processing performance of the hardware. The higher the processing performance of the hardware of the trading management platform is, the larger the number of target financial trading orders which can be processed by the trading management platform at the same time is, the larger the first number can be, so that the efficiency of processing the target financial trading orders by the trading management platform can be improved. The lower the processing performance of the hardware of the transaction management platform is, the smaller the number of target financial transaction orders which can be processed by the transaction management platform at the same time is, the smaller the first number can be, so that the transaction management platform is prevented from crashing, and the transaction management platform is further ensured to be capable of normally processing settlement tasks.
In order to how to extract a first number of financial transaction orders from a plurality of financial transaction orders to be settled cached by the transaction management platform as a target financial transaction order, several possible implementation manners provided by the present application are as follows.
As a first possible implementation manner, the plurality of financial transaction orders to be settled may correspond to at least two financial hosting platforms. In this implementation, considering that the settlement priorities of different financial hosting platforms may be different, the transaction management platform may extract a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction orders according to the settlement priorities of the financial hosting platforms.
Specifically, the transaction management platform may obtain the settlement priority of the at least two financial hosting platforms according to the identifiers of the at least two financial hosting platforms. Optionally, the transaction management platform may store in advance an identifier of the financial hosting platform and a mapping relationship between the identifier and the settlement priority of the financial hosting platform. The transaction management platform can determine the settlement priority of each financial hosting platform based on the mapping relation and the identifications of the at least two financial hosting platforms.
Then, the transaction management platform may extract a first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the settlement priorities of the at least two financial hosting platforms from high to low.
For example, assuming that the transaction management platform caches four financial transaction orders to be settled, the financial hosting platform corresponding to each financial transaction order may be as shown in table 4 below:
TABLE 4
Serial number Financial transaction orders to be settled Corresponding financial escrow platform
1 Financial transaction order 1 Financial escrow platform 1
2 Financial transaction order 2 Financial escrow platform 2
3 Financial transaction order 3 Financial escrow platform 2
4 Financial transaction order 4 Financial escrow platform 1
As shown in table 4, assuming that the settlement priority of the financial hosting platform 1 is higher than that of the financial hosting platform 2, and assuming that the first quantity is 2, the transaction management platform may extract the financial transaction order 1 from the cached four financial transaction orders to be settled, and the financial transaction order 4 is used as the target financial transaction order.
As a second possible implementation manner, the transaction management platform may further obtain a settlement priority of each financial transaction order in the plurality of financial transaction orders to be settled. And then extracting a first number of financial trading orders from the buffered financial trading orders to be settled as target financial trading orders according to the descending order of the settlement priority of each financial trading order.
Optionally, the first transaction information of the financial transaction order to be settled may further include, for example, an identifier for indicating a settlement priority of the financial transaction order to be settled. The transaction management platform may determine the settlement priority of the financial transaction order to be settled according to the identifier indicating the settlement priority of the financial transaction order to be settled. In this implementation manner, the transaction management platform may store, in advance, an identifier of the settlement priority of the financial transaction order and a mapping relationship between the identifier and the settlement priority of the financial transaction order. The transaction management platform may determine the settlement priority of each financial transaction order to be settled based on the mapping relationship and the identifier of the settlement priority of each financial transaction order to be settled.
For example, assuming that the transaction management platform caches four financial transaction orders to be settled, the identification of the settlement priority of each financial transaction order may be as shown in table 5 below:
TABLE 5
Figure BDA0003131814790000181
As shown in table 5, assuming that the transaction management platform determines that the settlement priority of the identifier 1 is higher than that of the identifier 2, and assuming that the first quantity is 2, the transaction management platform may extract the financial transaction order 1 from the cached financial transaction orders to be settled, and the financial transaction order 3 as the target financial transaction order.
As a third possible implementation manner, the transaction management platform may further extract the financial transaction orders of the first quantity from the plurality of cached financial transaction orders to be settled as the target financial transaction orders according to the time sequence of caching the financial transaction orders to be settled.
Further, the transaction management platform may further extract a first number of financial transaction orders as the target financial transaction order from the cached multiple financial transaction orders to be settled using the target settlement frequency.
Several possible implementations are provided below for the present application with respect to how to determine the above-mentioned target settlement frequency.
As a first possible implementation, the target settlement frequency may be, for example, pre-stored by the user in the transaction management platform.
As a second possible implementation manner, the transaction management platform may further obtain a pushing frequency of the financial transaction platform for pushing the target financial transaction order to be settled. Then, a target settlement frequency is determined according to the push frequency.
Wherein the target settlement frequency is positively correlated with the push frequency. When the pushing frequency of the financial transaction platform for pushing the target financial transaction order to be settled is high, the situation that the number of the cached financial transaction orders to be settled is possibly high is shown, and the transaction management platform can increase the target settlement frequency so as to improve the efficiency of processing the financial transaction order to be settled and further improve the efficiency of processing all the cached financial transaction orders to be settled.
When the pushing frequency of the financial transaction platform for pushing the target financial transaction order to be settled is low, the cached financial transaction order to be settled is possibly less, and the transaction management platform can reduce the target settlement frequency so as to save computing resources.
In a specific implementation, the transaction management platform may determine the pushing frequency by, for example, receiving the number of target financial transaction orders to be settled, which are pushed by the financial transaction platform every second. After obtaining the push frequency, optionally, the transaction management platform may further store a mapping relationship between the push frequency and the target settlement frequency. The transaction management platform may determine the target settlement frequency according to the push frequency and a mapping relationship between the push frequency and the target settlement frequency.
As a third possible implementation manner, for example, a mapping relationship between each time period (for example, each hour may be a time period) in a day (24 hours) and the target settlement frequency may also be stored in the transaction management platform. The transaction management platform may obtain the current time and then determine the target settlement frequency based on the time period in which the current time is located and the mapping relationship.
Based on the above embodiments, taking the transaction management platform as an example where a plurality of financial transaction orders to be settled pushed by the financial transaction platform are cached, fig. 4 is a schematic flow chart of another order processing method provided by the present application. As shown in fig. 4, the method comprises the steps of:
s301, the transaction management platform acquires the current time.
S302, the transaction management platform determines a target settlement frequency according to the mapping relationship between the current time period and each time period (for example, each hour can be a time period) in one day (24 hours) and the target settlement frequency.
S303, the transaction management platform extracts a first number of financial transaction orders from the plurality of cached financial transaction orders to be settled as target financial transaction orders according to the time sequence of caching the financial transaction orders to be settled by adopting the target settlement frequency.
Wherein the first amount may be pre-stored by the user in the transaction management platform.
S304, the transaction management platform acquires the first transaction information of each target financial transaction order.
Wherein the first transaction information includes: the first transaction data includes an identification of the target financial transaction order, an identification of a financial hosting platform to which the target financial transaction order corresponds, and the first transaction data of the target financial transaction order.
S305, the transaction management platform acquires a message format which can be identified by the financial hosting platform according to the identification of the financial hosting platform.
And S306, the transaction management platform generates a settlement request message meeting the message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data.
And S307, the transaction management platform creates a settlement task of the target financial transaction order through a Quartz framework according to the identification of the financial hosting platform and the settlement request message.
The settlement task is used for sending a settlement request message to the financial hosting platform, acquiring second transaction data from the financial hosting platform, and obtaining a verification result of the target financial transaction order by the financial hosting platform based on the first transaction data and the second transaction data.
And S308, starting the transaction management platform and calling a task execution thread to execute a settlement task.
The task execution thread is any thread in an idle state in a thread pool of the Quartz frame.
S309, the transaction management platform records the time length of the thread executing the settlement task.
S310, the transaction management platform judges whether the duration exceeds a preset duration threshold. If yes, go to step S311. If not, go to step S317.
And S311, the transaction management platform terminates the task execution thread and ends the settlement task. And then outputting prompt information of abnormal trading of the target financial trading order.
And S312, receiving a manual verification result input by the user based on the prompt information by the transaction management platform.
S313, judging whether the manual verification result represents that the first transaction data is the same as the second transaction data. If yes, go to step S314. If not, go to step S315.
S314, the transaction management platform determines that the target financial transaction order passes the verification. The transaction management platform then executes S316.
And S315, the transaction management platform outputs prompt information for prompting a user of the transaction management institution to confirm the target financial transaction order to be settled. The transaction management platform may then perform step S312.
And S316, the transaction management platform sends a settlement instruction to the financial hosting platform.
And S317, the transaction management platform obtains a verification result according to the verification result of the financial hosting platform for the target financial transaction order, and the transaction management platform compares the first transaction data with the second transaction data to determine whether the first transaction data is the same as the second transaction data.
If yes, go to step S314. If not, go to step S315.
Fig. 5 is a schematic structural diagram of an order processing apparatus provided in the present application. As shown in fig. 5, the apparatus includes: a first obtaining module 41, a second obtaining module 42, a determining module 43, and a sending module 44. Wherein the content of the first and second substances,
the first obtaining module 41 is configured to obtain first trade information of a target financial trade order to be settled, which is pushed by the financial trading platform. Wherein the first transaction information comprises: the identification of the target financial transaction order, the identification of the financial hosting platform corresponding to the target financial transaction order, and the first transaction data of the target financial transaction order. The first trading data is generated by the financial trading platform based on trading operations of a user for the target financial trading order.
A second obtaining module 42, configured to obtain second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform. Wherein the second transaction information comprises: second trade data of the target financial trade order. The second transaction data is transaction data which is acquired by the financial hosting platform and generated by the user aiming at the transaction operation of the target financial transaction order.
A determining module 43, configured to determine that the target financial transaction order is verified when the first transaction data and the second transaction data are the same.
A sending module 44, configured to send a settlement instruction to the financial hosting platform. Wherein the settlement instruction is used for instructing the financial hosting platform to perform settlement processing on the target financial transaction order.
Optionally, the second obtaining module 42 is specifically configured to obtain, according to the identifier of the target financial transaction order, the identifier of the financial hosting platform, and the first transaction data, second transaction information of the target financial transaction order from the financial hosting platform. The second transaction information further includes: the financial hosting platform obtains a verification result of the target financial transaction order based on the first transaction data and the second transaction data. In this implementation, the determining module 43 is specifically configured to determine that the target financial transaction order passes verification when the verification result of the financial hosting platform for the target financial transaction order indicates that the first transaction data is the same as the second transaction data, and the transaction management platform compares the first transaction data with the second transaction data to obtain a verification result that the first transaction data is the same as the second transaction data.
Optionally, the second obtaining module 42 is specifically configured to obtain, according to the identifier of the financial hosting platform, a message format that is recognizable by the financial hosting platform; generating a settlement request message meeting the message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data; establishing a settlement task of the target financial transaction order through a Quartz framework according to the identification of the financial hosting platform and the settlement request message; and starting and calling a task execution thread to execute the settlement task. Wherein the settlement request message includes an identifier of the target financial transaction order and the first transaction data. The settlement task is used for sending the settlement request message to the financial hosting platform, acquiring the second transaction data from the financial hosting platform, and obtaining a verification result of the target financial transaction order by the financial hosting platform based on the first transaction data and the second transaction data. The task execution thread is any thread in an idle state in a thread pool of the Quartz frame.
Optionally, the order processing apparatus may further include: the device comprises a recording module, a termination module and an output module. The recording module is used for recording the time length of the thread for executing the settlement task after the transaction management platform starts and calls a task execution thread to execute the settlement task. And the termination module is used for terminating the task execution thread and finishing the settlement task when the time length exceeds a preset time length threshold value. And the output module is used for outputting prompt information of abnormal transaction of the target financial transaction order.
Optionally, the apparatus may further include: and a receiving module. And the transaction management platform is used for receiving a manual verification result input by a user based on prompt information after the prompt information of transaction abnormity of the target financial transaction order is output by the transaction management platform. In this implementation, the determining module 43 is further configured to determine that the target financial transaction order is verified when the manual verification result indicates that the first transaction data and the second transaction data are the same.
Optionally, the transaction management platform caches a plurality of financial transaction orders to be settled pushed by the financial transaction platform. In this implementation, the order processing apparatus further includes an extracting module, configured to extract a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction order before acquiring the first transaction information of the target financial transaction order to be settled pushed by the financial transaction platform.
Optionally, the plurality of financial transaction orders to be settled correspond to at least two financial hosting platforms. In this implementation manner, the extraction module is specifically configured to obtain the settlement priorities of the at least two financial hosting platforms according to the identifiers of the at least two financial hosting platforms; and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of the at least two financial hosting platforms.
Optionally, the extracting module is specifically configured to obtain a settlement priority of each financial transaction order in the multiple financial transaction orders to be settled; and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of each financial transaction order.
Optionally, the determining module 43 is further configured to determine, before the transaction management platform extracts a first number of financial transaction orders from the cached multiple financial transaction orders to be settled as the target financial transaction order, the first number of financial transaction orders to be concurrently settled according to the number of threads in an idle state in the thread pool of the Quartz framework. Wherein one thread corresponds to one financial transaction order.
Optionally, the extracting module is specifically configured to extract a first number of financial transaction orders from the cached multiple financial transaction orders to be settled by using a target settlement frequency as the target financial transaction order.
In the above implementation manner, the second obtaining module 42 is further configured to obtain a pushing frequency of the financial transaction platform pushing a target financial transaction order to be settled; the determining module 43 is further configured to determine the target settlement frequency according to the push frequency. Wherein the target settlement frequency is positively correlated with the push frequency.
The order processing apparatus provided in the present application is configured to execute the foregoing order processing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device provided in the present application. As shown in fig. 6, the electronic device 500 may include: at least one processor 501 and memory 502.
The memory 502 is used for storing programs. In particular, the program may include program code including computer operating instructions.
Memory 502 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 501 is configured to execute computer-executable instructions stored in the memory 502 to implement the order processing method described in the foregoing method embodiments. The processor 501 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Optionally, the electronic device 500 may further include a communication interface 503. In a specific implementation, if the communication interface 503, the memory 502 and the processor 501 are implemented independently, the communication interface 503, the memory 502 and the processor 501 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Optionally, in a specific implementation, if the communication interface 503, the memory 502, and the processor 501 are integrated into a chip, the communication interface 503, the memory 502, and the processor 501 may complete communication through an internal interface.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and in particular, the computer-readable storage medium stores program instructions, and the program instructions are used in the method in the foregoing embodiments.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the electronic device may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the electronic device to implement the order processing method provided in the above-described various embodiments.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (15)

1. An order processing method, characterized in that the method comprises:
the transaction management platform acquires first transaction information of a target financial transaction order to be settled, which is pushed by the financial transaction platform, wherein the first transaction information comprises: the identification of the target financial trading order, the identification of a financial hosting platform corresponding to the target financial trading order, and first trading data of the target financial trading order, wherein the first trading data is generated by the financial trading platform based on trading operation of a user for the target financial trading order;
the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data is transaction data which is acquired by the financial hosting platform and generated by a user aiming at the transaction operation of the target financial transaction order;
if the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order passes the verification;
and the transaction management platform sends a settlement instruction to the financial hosting platform, wherein the settlement instruction is used for instructing the financial hosting platform to settle the target financial transaction order.
2. The method of claim 1, wherein the transaction management platform obtaining second transaction information for the target financial transaction order from the financial hosting platform based on the identification of the target financial transaction order and the identification of the financial hosting platform comprises:
the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order, the identifier of the financial hosting platform and the first transaction data; the second transaction information further includes: the financial hosting platform obtains a verification result of the target financial transaction order based on the first transaction data and the second transaction data;
if the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order is verified to be passed, including:
and if the verification result of the financial hosting platform for the target financial transaction order indicates that the first transaction data is the same as the second transaction data, and the transaction management platform compares the first transaction data with the second transaction data to obtain the verification result that the first transaction data is the same as the second transaction data, the transaction management platform determines that the target financial transaction order passes the verification.
3. The method of claim 2, wherein the transaction management platform obtains second transaction information for the targeted financial transaction order from the financial hosting platform based on the identification of the targeted financial transaction order and the identification of the financial hosting platform, and the first transaction data, comprising:
the transaction management platform acquires a message format which can be identified by the financial hosting platform according to the identifier of the financial hosting platform;
the transaction management platform generates a settlement request message meeting the message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data; the settlement request message comprises an identifier of the target financial transaction order and the first transaction data;
the transaction management platform creates a settlement task of the target financial transaction order through a Quartz framework according to the identification of the financial hosting platform and the settlement request message; the settlement task is used for sending the settlement request message to the financial hosting platform, acquiring the second transaction data from the financial hosting platform, and obtaining a verification result of the target financial transaction order by the financial hosting platform based on the first transaction data and the second transaction data;
the transaction management platform starts and calls a task execution thread to execute the settlement task; the task execution thread is any thread in an idle state in a thread pool of the Quartz frame.
4. The method of claim 3, wherein after the transaction management platform initiates and invokes a task execution thread to perform the settlement task, the method further comprises:
the transaction management platform records the time length of the thread for executing the settlement task;
if the time length exceeds a preset time length threshold value, the transaction management platform terminates the task execution thread and ends the settlement task;
and the transaction management platform outputs prompt information of transaction abnormity of the target financial transaction order.
5. The method of claim 4, wherein after the trading management platform outputs a prompt for a trade exception for the target financial trade order, the method further comprises:
the transaction management platform receives a manual verification result input by a user based on the prompt information;
and if the manual verification result represents that the first transaction data and the second transaction data are the same, the transaction management platform determines that the target financial transaction order passes verification.
6. The method according to any one of claims 3 to 5, wherein the transaction management platform caches a plurality of financial transaction orders to be settled pushed by the financial transaction platform;
before the transaction management platform acquires the first transaction information of the target financial transaction order to be settled, which is pushed by the financial transaction platform, the transaction management platform further comprises:
the transaction management platform extracts a first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order.
7. The method of claim 6, wherein the plurality of financial transaction orders to be settled correspond to at least two financial escrow platforms;
the transaction management platform extracts a first number of financial transaction orders as the target financial transaction order from the cached plurality of financial transaction orders to be settled, and comprises:
obtaining settlement priorities of the at least two financial hosting platforms according to the identifications of the at least two financial hosting platforms;
and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of the at least two financial hosting platforms.
8. The method of claim 6, wherein the transaction management platform extracting a first quantity of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order comprises:
acquiring the settlement priority of each financial transaction order in the plurality of financial transaction orders to be settled;
and extracting the first number of financial transaction orders as the target financial transaction orders from the buffered financial transaction orders to be settled according to the descending order of the settlement priority of each financial transaction order.
9. The method of claim 6, wherein before the transaction management platform extracts a first quantity of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order, the method further comprises:
the transaction management platform determines a first quantity of financial transaction orders to be subjected to parallel settlement processing according to the quantity of threads in an idle state in a thread pool of the Quartz frame; wherein one thread corresponds to one financial transaction order.
10. The method of claim 6, wherein the transaction management platform extracting a first quantity of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order comprises:
the transaction management platform extracts a first number of financial transaction orders as the target financial transaction orders from the cached multiple financial transaction orders to be settled by adopting a target settlement frequency.
11. The method of claim 10, further comprising:
the transaction management platform acquires the pushing frequency of the financial transaction platform for pushing a target financial transaction order to be settled;
and the transaction management platform determines the target settlement frequency according to the pushing frequency, wherein the target settlement frequency is positively correlated with the pushing frequency.
12. An order processing apparatus, characterized in that the apparatus comprises:
the first obtaining module is used for obtaining first transaction information of a target financial transaction order to be settled, which is pushed by a financial transaction platform, and the first transaction information comprises: the identification of the target financial trading order, the identification of a financial hosting platform corresponding to the target financial trading order, and first trading data of the target financial trading order, wherein the first trading data is generated by the financial trading platform based on trading operation of a user for the target financial trading order;
the second acquisition module is used for acquiring second transaction information of the target financial transaction order from the financial hosting platform according to the identifier of the target financial transaction order and the identifier of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data is transaction data which is acquired by the financial hosting platform and generated by a user aiming at the transaction operation of the target financial transaction order;
a determining module for determining that the target financial transaction order is verified when the first transaction data and the second transaction data are the same;
and the sending module is used for sending a settlement instruction to the financial hosting platform, and the settlement instruction is used for indicating the financial hosting platform to perform settlement processing on the target financial transaction order.
13. An electronic device, comprising: at least one processor, a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the electronic device to perform the method of any of claims 1-11.
14. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-11.
15. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-11 when executed by a processor.
CN202110707114.XA 2021-06-24 2021-06-24 Order processing method, order processing device, electronic equipment, storage medium and program product Active CN113313594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110707114.XA CN113313594B (en) 2021-06-24 2021-06-24 Order processing method, order processing device, electronic equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110707114.XA CN113313594B (en) 2021-06-24 2021-06-24 Order processing method, order processing device, electronic equipment, storage medium and program product

Publications (2)

Publication Number Publication Date
CN113313594A true CN113313594A (en) 2021-08-27
CN113313594B CN113313594B (en) 2024-02-02

Family

ID=77380379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110707114.XA Active CN113313594B (en) 2021-06-24 2021-06-24 Order processing method, order processing device, electronic equipment, storage medium and program product

Country Status (1)

Country Link
CN (1) CN113313594B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574189A (en) * 2015-02-05 2015-04-29 中国农业银行股份有限公司 Financial-transaction monitoring method and device
CN109598609A (en) * 2018-12-17 2019-04-09 中国建设银行股份有限公司 The automatic processing method and device of bond settlement of transactions task
CN109615363A (en) * 2019-01-04 2019-04-12 深圳壹账通智能科技有限公司 It polymerize method of payment, device, system, computer equipment and storage medium
CN112488830A (en) * 2020-11-16 2021-03-12 中信银行股份有限公司 Bond product transaction method and device, electronic equipment and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104574189A (en) * 2015-02-05 2015-04-29 中国农业银行股份有限公司 Financial-transaction monitoring method and device
CN109598609A (en) * 2018-12-17 2019-04-09 中国建设银行股份有限公司 The automatic processing method and device of bond settlement of transactions task
CN109615363A (en) * 2019-01-04 2019-04-12 深圳壹账通智能科技有限公司 It polymerize method of payment, device, system, computer equipment and storage medium
CN112488830A (en) * 2020-11-16 2021-03-12 中信银行股份有限公司 Bond product transaction method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN113313594B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN106453415B (en) Block chain-based equipment authentication method, authentication server and user equipment
KR101952498B1 (en) Loan service providing method using black chain and system performing the same
CN107797854B (en) Transaction file processing method and device, storage medium and computer equipment
CN110489415B (en) Data updating method and related equipment
WO2015188780A1 (en) Method and apparatus for processing account information
CN113064759A (en) Block chain data rollback processing method and processing system thereof
CN110781134A (en) Data processing method and device, computer storage medium and electronic equipment
CN113850600A (en) Transaction consensus method, device, equipment and storage medium based on block chain
CN111275540A (en) Consumption credit approval method and device and terminal equipment
CN113313594A (en) Order processing method, order processing device, electronic equipment, storage medium and program product
CN105787791B (en) Service request processing method and device
CN111340635A (en) Data checking method, equipment, server and readable storage medium
CN111125168A (en) Data processing method and device, electronic equipment and storage medium
CN107947935B (en) Message signature method, system and terminal equipment
CN112732733B (en) Data checking processing method and device
CN111179524B (en) ATM (automatic Teller machine) card retaining and retrieving method and device
CN111222942B (en) Data processing method and device, readable medium and electronic equipment
CN113065927A (en) Account checking method and device, electronic equipment and computer readable storage medium
CN111488236A (en) Order abnormity processing method, server, storage medium and processing device
CN111563756A (en) Transaction method based on credit guarantee, transaction establishing method and related hardware
CN111144977A (en) Stock order processing method and device
CN113792267B (en) Method and device for checking digital copyright of card surface picture of payment mechanism
CN108876570B (en) Electronic device, method for processing abnormal fund problem and storage medium
CN113628056A (en) Data processing method and device, server and computer storage medium
CN116048749A (en) Interface calling method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant