CN113313594B - 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
CN113313594B
CN113313594B CN202110707114.XA CN202110707114A CN113313594B CN 113313594 B CN113313594 B CN 113313594B CN 202110707114 A CN202110707114 A CN 202110707114A CN 113313594 B CN113313594 B CN 113313594B
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.)
Active
Application number
CN202110707114.XA
Other languages
Chinese (zh)
Other versions
CN113313594A (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

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 obtains 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: identification of a target financial transaction order, 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 identification of the target financial transaction order and the identification of the financial hosting platform comprises the following steps: 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 perform settlement processing on the target financial transaction order to the financial hosting platform. The method and the device improve verification efficiency and verification accuracy.

Description

Order processing method, order processing device, electronic equipment, storage medium and program product
Technical Field
The present disclosure relates to data processing technologies, and in particular, to an order processing method, an order processing device, an electronic device, a storage medium, and a program product.
Background
Typically, a financial transaction order is required to be completed by a financial escrow institution, a financial transaction institution, and a transaction management institution. Specifically, the user may conduct a financial transaction on a financial item provided by a financial hosting facility through a financial transaction platform of the financial transaction facility. After the user conducts a 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 the transaction data associated with the financial transaction order from a platform other than the financial transaction platform. Wherein the platform other than 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 mechanism 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. After verification is passed, the financial escrow institution can settle the financial transaction order.
At present, a user of a transaction management mechanism checks transaction data of a financial transaction order generated by a financial transaction platform and the transaction data of the financial transaction order acquired by the financial hosting platform in a manual checking 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, so that verification efficiency and verification accuracy are improved.
In a first aspect, the present application provides a method for order processing, the method comprising:
the method comprises the steps that a transaction management platform obtains first transaction information of a target financial transaction order to be settled, which is pushed by a financial transaction platform, wherein the first transaction information comprises the following steps: 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, wherein the first transaction data is generated by the financial transaction platform based on transaction operation of a user on the target financial transaction order;
the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data are transaction data generated by the transaction operation of the user for the target financial transaction order, which is acquired by the financial hosting platform;
If 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;
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 carry out settlement processing on the target financial transaction order.
Optionally, the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, including:
the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification 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 and the second transaction data are the same, the transaction management platform determines that the target financial transaction order passes verification, including:
And if the first transaction data and the second transaction data are the same according to the verification result of the target financial transaction order, and the transaction management platform compares the first transaction data with the second transaction data to obtain the same verification result of the first transaction data and the second transaction data, the transaction management platform determines that the target financial transaction order passes the verification.
Optionally, the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, and the first transaction data, including:
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 transaction management platform generates a settlement request message meeting a message format identifiable 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 the target financial transaction order and the first transaction data;
The transaction management platform establishes a settlement task of the target financial transaction order through a Quartz frame 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 acquiring 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 invokes a task execution thread to execute the settlement task, the method further includes:
the transaction management platform records the time length of the thread executing the settlement task;
if the duration exceeds a preset duration threshold, the transaction management platform terminates the task execution thread and ends the settlement task;
and the transaction management platform outputs prompt information of transaction abnormality of the target financial transaction order.
Optionally, after the transaction management platform outputs the prompt information of the transaction abnormality 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 indicates 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 obtains 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 plurality of 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 from a plurality of cached financial transaction orders to be settled as the target financial transaction order, 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 quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priorities of the at least two financial hosting platforms from high to low.
Optionally, 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, including:
acquiring settlement priorities of all financial transaction orders in the plurality of financial transaction orders to be settled;
and extracting the first quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priority of each financial transaction order from high to low.
Optionally, before the transaction management platform extracts the first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order, the method further includes:
the transaction management platform determines the first quantity of financial transaction orders to be subjected to parallel settlement processing according to the quantity of idle threads 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 plurality of financial transaction orders to be settled as the target financial transaction order, including:
and the transaction management platform adopts a target settlement frequency, and extracts a first quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders.
Optionally, the method further comprises:
the transaction management platform acquires pushing frequency of pushing a target financial transaction order to be settled by the financial transaction platform;
and the transaction management platform determines the target settlement frequency according to the push frequency, and the target settlement frequency is positively related to the push 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 the financial transaction platform, and 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, wherein the first transaction data is generated by the financial transaction platform based on transaction operation of a user on the target financial transaction 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 identification of the target financial transaction order and the identification of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data are transaction data generated by the transaction operation of the user for the target financial transaction order, which is acquired by the financial hosting platform;
a determining module configured to determine that the target financial transaction order passes verification when the first transaction data and the second transaction data are the same;
the sending module is used for sending a settlement instruction to the financial hosting platform, and the settlement instruction is used for instructing the financial hosting platform to carry out settlement processing on the target financial transaction order.
In a third aspect, the present application provides an electronic device, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, 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 transaction platform are obtained through the transaction management platform, automatic verification is conducted on whether the first transaction data and the second transaction data are identical or not. When the first transaction data and the second transaction data are the same, the fact that the transaction data of the target financial transaction order acquired by the two parties of the financial transaction platform and the financial hosting platform are correct is indicated, a settlement instruction can be sent to the financial hosting platform, so that the financial hosting platform is prompted to perform settlement processing on the target financial transaction order. Through automatic checking of the first transaction data and the second transaction data, the first transaction data and the second transaction data do not need to be checked manually, so that the checking efficiency of the transaction management platform is improved, the possibility of errors caused by manual negligence is avoided, and the accuracy of the transaction management platform in checking the transaction data is improved.
Drawings
For a clearer description of the technical solutions of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of a conventional financial transaction order processing method;
FIG. 2 is a flow chart of an order processing method provided in the present application;
FIG. 3 is a flow chart of 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 flow chart of another order processing method provided in the present application;
fig. 5 is a schematic structural diagram of an order processing device provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, 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 apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following explains some of the concepts to which this application relates:
financial transaction institution: a financial transaction institution is an institution that manages a user to conduct a financial transaction.
Financial transaction platform: the financial transaction platform is a platform provided by electronic devices of a financial transaction institution having processing capabilities. The user can conduct financial transactions through the financial transaction platform. After the user conducts a 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 institution may provide financial items for the user to transact. The financial escrow institution may be, for example, a bond institution. The financial item for the user to trade may be, for example, a bond.
Financial escrow platform: the financial hosting platform is a platform provided by electronic devices of a financial hosting institution having processing capabilities. The financial escrow platform may obtain the transaction data associated with the financial transaction order from a platform other than the financial transaction platform.
Transaction management mechanism: the transaction management mechanism is a mechanism for verifying transaction data of the financial transaction order generated by the financial transaction platform and 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 by electronic equipment with processing capability of a transaction management mechanism. The transaction management platform can acquire transaction data of the financial transaction order generated by the financial transaction platform and transaction data of the financial transaction order acquired by the financial hosting platform.
Quartz frame: quartz is an open source item. Multiple threads can be created to perform multiple tasks simultaneously based on the Quartz framework. Wherein a thread may perform a task at the same time.
Fig. 1 is a schematic diagram of an application scenario of a conventional financial transaction order processing method. As shown in fig. 1, a user 1 and a user 2 who conduct financial transactions may conduct financial transactions 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 financial transaction process of the two parties of the user, and send the financial transaction order to the transaction management platform. The financial hosting platform may acquire transaction data generated by financial transactions between the two parties of the user from a platform other than the financial transaction platform, and send the transaction data to the transaction management platform. Accordingly, the transaction management platform may 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 transaction platform, the data of the two parties need to be checked so as to ensure that the transaction data of the financial transaction order is correct.
At present, a user of a transaction management mechanism checks transaction data sent by a financial transaction platform acquired by the transaction management platform and transaction data sent by a financial hosting platform in a manual checking mode. However, the manual verification has the problems of low verification efficiency and poor accuracy.
Considering the problems of lower verification efficiency and poor accuracy of the existing 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 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 to the financial hosting platform corresponding to the financial transaction order for instructing the financial hosting platform to perform settlement processing on the transaction. By the method, the transaction data sent by the financial transaction platform and the transaction data sent by the financial hosting platform are not required to be checked manually, so that the checking efficiency is improved, the possibility of errors caused by manual negligence is avoided, and the checking accuracy is improved.
The technical scheme of the present application will be described in detail with reference to specific embodiments. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
Fig. 2 is a flow chart of an order processing method provided in 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 method comprises the steps of identifying a target financial transaction order, identifying a financial hosting platform corresponding to the target financial transaction order, and first transaction data of the target financial transaction order.
It should be understood that, the application does not limit how the financial transaction platform obtains the identification of the 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 identification of the target financial transaction order may be, for example, a combination of a plurality of digits. Alternatively, the identification of the target financial transaction order may be generated by the financial transaction platform based on, for example, the identification of the user who performed the target financial transaction order, the time at which the user performed the transaction, and so on.
The identification of the financial hosting platform corresponding to the target financial transaction order may be, for example, an identification number (Identity document, ID) of the financial hosting platform corresponding to the target financial transaction order. There is only one financial hosting platform corresponding to a target financial transaction order. The financial escrow 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 plurality of items of data such as transaction amount, transaction time, and identification of transaction mode corresponding to the target financial transaction order. The financial transaction platform generates the first transaction data based on a transaction operation of the user for the target financial transaction order.
As a first possible implementation manner, the transaction management platform may be connected to the financial transaction platform by way of wireless communication, so as to obtain the 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 lower efficiency of processing all the financial transaction orders to be settled at the same time. Therefore, the transaction management platform can buffer the financial transaction order to be settled pushed by the transaction fusion platform. The transaction management platform can be cached with at least one financial transaction order to be settled pushed by the financial transaction platform. Under the implementation, the transaction management platform can acquire the target financial transaction order to be settled from the cached at least one financial transaction order to be settled, and further acquire the first transaction information of the target financial transaction order to be settled.
S102, the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform.
Wherein the second transaction information includes: second trade data for the target financial trade order. The second transaction data is transaction data acquired by the financial hosting platform and generated by a transaction operation of a user for a target financial transaction order. The second transaction data may include, for example, a transaction amount, a transaction time, an identification of a transaction manner, and the like corresponding to the target financial transaction order.
It should be appreciated that the present application is not limited to how the financial escrow platform obtains the second transaction information for the target financial transaction order. In particular, the manner in which the financial hosting platform obtains the second transaction information for the target financial transaction order may be different for different financial transaction types of financial transactions. Exemplary, to relate to 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 identification of the target financial transaction order and the identification of the financial hosting platform.
Optionally, the transaction management platform may determine, according to the identification of the financial hosting platform, a financial hosting platform corresponding to the target financial transaction order. The identification of the target financial transaction order is then sent to the financial escrow platform. After receiving the identification of the target financial transaction order, the financial hosting platform can acquire second transaction information of the target financial transaction order according to the identification 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 identification of the target financial transaction order, the identification of the financial hosting platform, and the first transaction data.
Optionally, the transaction management platform may determine, according to the identification of the financial hosting platform, a financial hosting platform corresponding to the target financial transaction order. The identification of the target financial transaction order is then transmitted, along with the first transaction data, to the financial escrow platform.
The financial escrow platform may optionally, after receiving the identification of the target financial transaction order and the first transaction data, obtain second transaction data for the target financial transaction order based on the identification of the target financial transaction order. And then the financial hosting platform can use a result of judging whether the first transaction data and the second transaction number are the same 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: 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 may accept the second transaction information.
S103, determining whether the first transaction data and the second transaction data are identical. If so, step S103 is performed. If different, the transaction management platform may optionally perform 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 identical by comparing whether corresponding data in the first transaction data and the second transaction data are identical.
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 identifier of a transaction manner, where the first transaction data may be shown in table 1 below, and the second transaction data may be shown in table 2 below, for example:
TABLE 1
Transaction amount Amount of 1
Transaction date Date 1
Identification of transaction means Sign 1
TABLE 2
Transaction amount Amount of 2
Transaction date Date 2
Identification of transaction means Sign 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 and the second transaction data are the same. Otherwise, it may be determined that the first transaction data and the second transaction data are not identical. It should be understood that the present application is not limited to how the transaction management platform determines whether the above data are identical. The transaction management platform may determine whether the corresponding data in the first transaction data and the second transaction data are the same through a field comparison algorithm or the like.
As a second possible implementation manner, as mentioned above, the transaction management platform may further obtain "the 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 by the transaction management platform.
If the first transaction data and the second transaction data are represented to be the same by the verification result of the financial hosting platform aiming at the target financial transaction order, and the first transaction data and the second transaction data are compared by the transaction management platform, the obtained verification result is that the first transaction data and the second transaction data are the same, and the transaction management platform can determine that the first transaction data and the second transaction data are the same. 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 identical or not through the verification results of the financial hosting platform on the first transaction data and the second transaction data and the verification results 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 identical or not is improved, and further the accuracy of determining whether a target financial transaction order passes or not is improved.
S104, determining that the target financial transaction order passes verification.
If 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 the verification, wherein the transaction information of the target financial transaction order to be settled is correct.
S105, sending a settlement instruction to the financial hosting platform.
After determining that the target financial transaction order passes verification, the financial hosting platform may settle the target financial transaction order to be settled. The transaction management platform may instruct the financial hosting platform to begin settlement processing of the target financial transaction order by sending a "settlement instruction to the financial hosting platform that instructs the financial hosting platform to perform settlement processing of the target financial transaction order.
It should be understood that the present application does not limit how the financial hosting platform performs the settlement process on the target financial transaction order after receiving the above-described settlement instruction. By way of example, the settlement process may include, for example, calculation of money from the user, transfer of money, and the like.
S106, acquiring first transaction information of the target financial transaction order to be settled and second transaction information of the target financial transaction order again.
If the first transaction data and the second transaction data are different, which indicates that there is a possibility of error in the transaction information of the target financial transaction order to be settled, the transaction management platform can re-acquire 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 whether the first transaction data and the second transaction data are the same again.
Or after determining that the first transaction data and the second transaction data are different, the transaction management platform may further output prompt information for prompting the user of the transaction management mechanism to confirm the target financial transaction order to be settled. Wherein the content of the prompt message may include first transaction information of the target financial transaction 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 mechanism, so that the user of the transaction management mechanism may discover the prompt information in time. Then, the user of the transaction management mechanism can query the user of the corresponding financial transaction mechanism and the user of the financial hosting mechanism about the transaction information of the target financial transaction order according to the first transaction information included in the prompt information so as to acquire correct first transaction data and second transaction data. Then, the transaction management platform may send a settlement instruction to the financial hosting platform when the manual verification result characterizes the first transaction data and the second transaction data to be the same.
In this embodiment, after acquiring the first transaction data of the target financial transaction order pushed by the financial transaction platform and the 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, the fact that the transaction data of the target financial transaction order acquired by the two parties of the financial transaction platform and the financial hosting platform are correct is indicated, a settlement instruction can be sent to the financial hosting platform, so that the financial hosting platform is prompted to perform settlement processing on the target financial transaction order. Through automatic checking of the first transaction data and the second transaction data, the first transaction data and the second transaction data do not need to be checked manually, so that the checking efficiency of the transaction management platform is improved, the possibility of errors caused by manual negligence is avoided, and the accuracy of the transaction management platform in checking the transaction data is improved.
As previously mentioned, the transaction management platform may obtain the second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, and the first transaction data. In this implementation, a detailed description will be given below of how the transaction management platform obtains the second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, and the first transaction data. Fig. 3 is a flowchart of 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 identifiable message formats of different financial hosting platforms can be the same or different.
Optionally, the transaction management platform may store, for example, a mapping relationship between an identifier of the financial hosting platform and a message format identifiable by the financial hosting platform in advance. The transaction management platform can acquire a message format which can be identified by the financial hosting platform according to the identification of the financial hosting platform and the mapping relation.
For example, the mapping relationship between the identifier of the financial hosting platform and the recognizable message format of the financial hosting platform may be as shown in the following table 3:
TABLE 3 Table 3
Sequence number Identification of financial escrow platform Recognizable message format of financial hosting platform
1 Sign 1 Message format 1
2 Sign 2 Message format 2
3 Sign 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, according to the mapping relationship, the transaction management platform may determine that the message format identifiable by the financial hosting platform is message format 2.
Alternatively, the transaction management platform may also send request information to the financial hosting platform requesting acquisition of a message format recognizable by the financial hosting platform, for example. After the financial hosting platform receives the request information, a message format recognizable by the financial hosting platform may be fed back to the transaction management platform. Accordingly, the transaction management platform may receive a message format recognizable by the financial hosting platform.
S202, the transaction management platform generates a settlement request message meeting a 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 the target financial transaction order and first transaction data.
The transaction management platform may place the identification of the target financial transaction order and the first transaction data in a preset position in the settlement request message according to a message format identifiable by the financial hosting platform, so as to generate a settlement request message meeting the message format identifiable by the financial hosting platform.
It should be appreciated that the present application is not limited as to whether the settlement request message further includes content other than the identification of the target financial transaction order and the first transaction data. In specific implementation, the content which can be further included in the settlement request message can be determined according to the user requirement.
S203, the transaction management platform creates a settlement task of the target financial transaction order through the Quartz frame 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 acquiring a verification result of a 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 packet as parameters of a settlement task, so as to implement a settlement task of creating the target financial transaction order through the Quartz frame.
S204, the transaction management platform starts and calls 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 there are a plurality of settlement tasks, asynchronous processing of the settlement tasks, or synchronous processing can be realized by each thread in an idle state in the thread pool of the Quartz framework. When the number of the settlement tasks is larger than the number 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 smaller than or equal to the number of the threads in the idle state, the transaction management platform can realize synchronous processing of the settlement tasks.
By starting and calling the task execution thread, the transaction management platform can be enabled to execute settlement tasks. That is, by starting and calling the task execution thread, 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 verify results 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 embodiment, settlement tasks for different financial hosting platforms may be created through the identifiers of the different financial hosting platforms, so that even if there are multiple financial hosting platforms, the transaction management platform may implement automated processing of the target financial transaction order. By generating the settlement request message meeting the recognizable message format of the financial hosting platform, the financial hosting platform can directly recognize and acquire the identification 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 needed on the settlement request message, so that the efficiency of the financial hosting platform in verifying the first transaction data and the second transaction data is improved, and the efficiency of the transaction management platform in verifying the first transaction data and the second transaction data is further 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, the settlement task execution failure may be derived. As a possible implementation manner, after the transaction management platform starts and invokes 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 duration of execution of the settlement task by the thread. And then judging whether the duration exceeds a preset duration threshold. The preset duration threshold may be, for example, stored in the transaction management platform in advance by the user.
If the time length does not exceed the preset time length threshold value, which indicates that no problem occurs in the settlement task execution process, the transaction management platform can continue the task execution thread.
If the duration exceeds the preset duration threshold, the settlement task execution process may be problematic, 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 may be faulty. The transaction management platform may terminate the task execution thread and end the settlement task. And then outputting prompt information of transaction abnormality of the target financial transaction order.
Optionally, the user of the transaction management mechanism may log in the financial hosting platform according to the prompt information of the transaction abnormality of the target financial transaction order. The first transaction data and the second transaction data are then continuously verified in the financial hosting platform. If the user determines that the first transaction data and the second transaction data are the same, a manual verification result can be input to the transaction management platform.
That is, as one possible implementation, after outputting the prompt information of the transaction abnormality of the target financial transaction order, 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 a settlement instruction to the financial escrow platform. Alternatively, the user of the transaction management institution may enter a settlement instruction to 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 can re-acquire 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 duration of executing the settlement task in the thread exceeds the preset duration threshold, the task execution thread is terminated, the settlement task is terminated, and prompt information of transaction abnormality 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 the computing resources are saved. By outputting the prompt information of the transaction abnormality of the target financial transaction order, the user can timely notice the failure of executing the settlement task, and further the user can timely process the settlement task, so that the problem that the settlement task cannot be executed on time is avoided, and further 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 acquiring first transaction information of a target financial transaction order to be settled pushed by the financial transaction platform, 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 above-mentioned first number is determined, several possible implementations are provided below for the present application.
As a first possible implementation, the first number may be pre-stored by the user in the transaction management platform.
As a second possible implementation manner, the transaction management platform may determine the first number of financial transaction orders to be subjected to parallel settlement processing according to the number of threads in an idle state in the thread pool of the quantiz framework. Wherein one thread corresponds to one financial transaction order.
For example, the transaction management platform may consider the number of threads in an idle state in the thread pool of the Quartz framework as the first number. The method can fully utilize threads in the thread pool of the Quartz frame to execute the settlement task, and improves the efficiency of the transaction management platform in processing the settlement task.
As a third possible implementation manner, the first number may also be determined by the transaction management platform according to a processing performance parameter of its own hardware. Wherein, the processing performance parameter of the hardware can be used for representing the processing performance of the hardware. The higher the processing performance of the hardware of the transaction management platform, the more the number of the target financial transaction orders which can be processed by the transaction management platform at the same time is, the larger the first number can be, so that the efficiency of the transaction management platform for processing the target financial transaction orders can be improved. The lower the processing performance of the hardware of the transaction management platform, the smaller the quantity of the target financial transaction orders which can be processed by the transaction management platform at the same time, the smaller the first quantity can be, so that the transaction management platform is prevented from being halted, and the transaction management platform can be guaranteed to process settlement tasks normally.
For how to extract a first number of financial transaction orders as target financial transaction orders from a plurality of financial transaction orders to be settled cached by a transaction management platform, several possible implementations are provided below.
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, according to the settlement priority of each financial hosting platform, a first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order.
Specifically, the transaction management platform may obtain the settlement priorities of the at least two financial hosting platforms according to the identifications of the at least two financial hosting platforms. Optionally, the transaction management platform may store in advance a mapping relationship between an identifier of the financial hosting platform and a settlement priority of the financial hosting platform. The transaction management platform may determine a settlement priority of each of the at least two financial hosting platforms based on the mapping relationship and the identification of the at least two financial hosting platforms.
Then, the transaction management platform may extract the first number of financial transaction orders as the target financial transaction orders from the cached plurality of financial transaction orders to be settled according to the order of 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 the following table 4:
TABLE 4 Table 4
Sequence number Financial transaction orders to be settled Corresponding financial escrow platform
1 Financial transaction order 1 Financial hosting 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 hosting platform 1
As shown in table 4, assuming that the settlement priority of the financial hosting platform 1 is higher than the settlement priority of the financial hosting platform 2, assuming that the first number is 2, the transaction management platform may extract the financial transaction order 1 from the four buffered financial transaction orders to be settled, and the financial transaction order 4 as a 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 the first quantity of financial transaction orders from the cached financial transaction orders to be settled as target financial transaction orders according to the order of the settlement priority of each financial transaction order from high to low.
Optionally, the first transaction information of the financial transaction order to be settled may further include an identifier for indicating a settlement priority of the financial transaction order to be settled, for example. The transaction management platform may determine the settlement priority of the financial transaction order to be settled according to the identification 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 identification 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
As shown in table 5, assuming that the transaction management platform determines that the settlement priority of the identifier 1 is higher than the settlement priority of the identifier 2, and assuming that the first number is 2, the transaction management platform may extract the financial transaction order 1 from the four buffered financial transaction orders to be settled, and the financial transaction order 3 as a target financial transaction order.
As a third possible implementation manner, the transaction management platform may further extract, according to a time sequence of buffering each financial transaction order to be settled, a first number of financial transaction orders from the buffered plurality of financial transaction orders to be settled as the target financial transaction order.
Further, the transaction management platform may further use the target settlement frequency to extract the first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order.
For how the above-described target settlement frequency is determined, several possible implementations are provided below for the present application.
As a first possible implementation, the target settlement frequency may be stored in advance in the transaction management platform by the user, for example.
As a second possible implementation manner, the transaction management platform may further obtain a pushing frequency of the financial transaction platform to push the target financial transaction order to be settled. Then, a target settlement frequency is determined based on the push frequency.
Wherein the target settlement frequency is positively correlated with the push frequency. When the pushing frequency of pushing the target financial transaction order to be settled by the financial transaction platform is high, the fact that the buffered financial transaction orders to be settled are possibly more is indicated, 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 buffered financial transaction orders to be settled.
When the pushing frequency of pushing the target financial transaction order to be settled by the financial transaction platform is smaller, the situation that the cached financial transaction order to be settled is possibly smaller is indicated, and the transaction management platform can reduce the target settlement frequency so as to save the computing resources.
In specific implementation, the transaction management platform may determine the pushing frequency by, for example, the number of target financial transaction orders to be settled pushed by the financial transaction platform received per second. After the push frequency is acquired, optionally, a mapping relationship between the push frequency and the target settlement frequency may be stored in the transaction management platform, for example. The transaction management platform can determine the target settlement frequency according to the push frequency and the mapping relation between the push frequency and the target settlement frequency.
As a third possible implementation manner, the transaction management platform may also store, for example, a mapping relationship between each time period (for example, may be one time period per hour) in a day (24 hours) and the target settlement frequency. The transaction management platform can acquire the current time, and then determine the target settlement frequency according to the time period of the current time and the mapping relation.
Based on the above embodiments, taking the example that a plurality of financial transaction orders to be settled pushed by the financial transaction platform are cached in the transaction management platform, fig. 4 is a flow chart of another order processing method provided in 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 time period of the current time and the mapping relation between each time period (for example, one time period per hour) in one day (24 hours) and the target settlement frequency.
S303, the transaction management platform adopts the target settlement frequency, and extracts a first number of financial transaction orders from the 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.
Wherein the first number 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 method comprises the steps of identifying a target financial transaction order, identifying a financial hosting platform corresponding to the target financial transaction order, and first transaction data of the target financial transaction order.
S305, 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.
S306, the transaction management platform generates a settlement request message meeting a message format recognizable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data.
S307, the transaction management platform creates a settlement task of the target financial transaction order through the Quartz frame 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 acquiring 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.
S308, the transaction management platform starts and calls 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, step S311 is executed. If not, step S317 is performed.
S311, the transaction management platform terminates the task execution thread and ends the settlement task. And then outputting prompt information of transaction abnormality of the target financial transaction order.
S312, the transaction management platform receives the manual verification result input by the user based on the prompt information.
S313, judging whether the manual verification result represents that the first transaction data and the second transaction data are the same. If so, step S314 is performed. If not, step S315 is performed.
S314, the transaction management platform determines that the target financial transaction order passes verification. The transaction management platform then performs S316.
S315, the transaction management platform outputs prompt information for prompting a user of the transaction management mechanism to confirm the target financial transaction order to be settled. Then, the transaction management platform may perform step S312.
S316, the transaction management platform sends a settlement instruction to the financial hosting platform.
S317, the transaction management platform obtains a verification result by comparing the first transaction data and the second transaction data according to the verification result of the financial hosting platform for the target financial transaction order, and determines whether the first transaction data and the second transaction data are identical.
If so, step S314 is performed. If not, step S315 is performed.
Fig. 5 is a schematic structural diagram of an order processing device provided in the present application. As shown in fig. 5, the apparatus includes: a first acquisition module 41, a second acquisition module 42, a determination module 43, and a transmission module 44. Wherein,
the first obtaining module 41 is configured to obtain 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 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 transaction data is generated by the financial transaction platform based on a transaction operation of a user for the target financial transaction 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 includes: second trade data for the target financial trade order. The second transaction data is transaction data generated by a transaction operation of the user for the target financial transaction order, wherein the transaction operation is acquired by the financial hosting platform.
A determining module 43, configured to determine that the target financial transaction order passes when the first transaction data and the second transaction data are the same.
And the sending module 44 is used for sending a settlement instruction to the financial hosting platform. 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, from the financial hosting platform, second transaction information of the target financial transaction order according to the identifier of the target financial transaction order and 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. In this implementation manner, the determining module 43 is specifically configured to determine that the target financial transaction order passes the verification when the verification result of the financial hosting platform on the target financial transaction order indicates that the first transaction data and the second transaction data are identical, and the transaction management platform compares the first transaction data and the second transaction data to obtain the verification result that the first transaction data and the second transaction data are identical.
Optionally, the second obtaining module 42 is specifically configured to obtain, according to the identifier of the financial hosting platform, a message format identifiable by the financial hosting platform; generating a settlement request message meeting a message format identifiable by the financial hosting platform according to the identification of the target financial transaction order and the first transaction data; creating a settlement task of the target financial transaction order through a Quartz frame 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 identification 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 acquiring 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 device 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 executing the settlement task by the thread after the transaction management platform starts and calls the task execution thread to execute the settlement task. And the termination module is used for terminating the task execution thread and ending the settlement task when the duration exceeds a preset duration threshold. And the output module is used for outputting prompt information of transaction abnormality of the target financial transaction order.
Optionally, the apparatus may further include: and a receiving module. And the system is used for receiving a manual verification result input by a user based on the prompt information after the transaction management platform outputs the prompt information of the transaction abnormality of the target financial transaction order. 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 characterizes the first transaction data and the second transaction data as being identical.
Optionally, the transaction management platform caches a plurality of financial transaction orders to be settled pushed by the financial transaction platform. In this implementation manner, the order processing device further includes an extracting module, configured to extract, from the cached multiple to-be-settled financial transaction orders, a first number of financial transaction orders as the target financial transaction order before acquiring the first transaction information of the to-be-settled target financial transaction order pushed by the financial transaction platform.
Optionally, the plurality of financial transaction orders to be settled correspond to at least two financial hosting platforms. Under the implementation mode, the extraction module is specifically configured to obtain 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 quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priorities of the at least two financial hosting platforms from high to low.
Optionally, the extracting module is specifically configured to obtain a settlement priority of each financial transaction order in the plurality of financial transaction orders to be settled; and extracting the first quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priority of each financial transaction order from high to low.
Optionally, the determining module 43 is further configured to determine, before the transaction management platform extracts the first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order, the first number of financial transaction orders to be settled in parallel according to the number of threads in an idle state in the thread pool of the q frame. Wherein one thread corresponds to one financial transaction order.
Optionally, the extracting module is specifically configured to extract, from the cached plurality of financial transaction orders to be settled, a first number of financial transaction orders as the target financial transaction order by adopting a target settlement frequency.
In the above implementation manner, the second obtaining module 42 is further configured to obtain a pushing frequency of pushing the target financial transaction order to be settled by the financial transaction platform; 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 device provided by the application is used for executing the order processing method embodiment, and the implementation principle and the technical effect are similar, and are not repeated.
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 a memory 502.
A memory 502 for storing a program. In particular, the program may include program code including computer-operating instructions.
The memory 502 may comprise high-speed RAM memory or may further comprise 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 embodiment. The processor 501 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
Optionally, the electronic device 500 may also 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 and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the communication interface 503, the memory 502, and the processor 501 are integrated on a chip, the communication interface 503, the memory 502, and the processor 501 may complete communication through internal interfaces.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc., in which program codes may be stored, and in particular, the computer-readable storage medium stores program instructions for the methods in the above 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 instructions from the readable storage medium, the execution instructions being executed by the at least one processor to cause the electronic device to implement the order processing methods provided by the various embodiments described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution 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 scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (14)

1. A method of order processing, the method comprising:
the method comprises the steps that a transaction management platform obtains first transaction information of a target financial transaction order to be settled, which is pushed by a financial transaction platform, wherein the first transaction information comprises the following steps: 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, wherein the first transaction data is generated by the financial transaction platform based on transaction operation of a user on the target financial transaction order;
the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data are transaction data generated by the transaction operation of the user for the target financial transaction order, which is acquired by the financial hosting platform;
if 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;
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 carry out settlement processing on the target financial transaction order;
the transaction management platform acquires second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, wherein the transaction management platform creates a settlement task of the target financial transaction order through a Quartz frame according to the identification of the financial hosting platform, and starts and invokes 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; the total number of threads in the thread pool of the Quartz frame is pre-stored in the transaction management platform by a user; when a plurality of settlement tasks exist, asynchronous processing or synchronous processing of the settlement tasks can be realized through each thread in an idle state in a thread pool of the Quartz frame; when the number of the settlement tasks is larger than the number of the threads in the idle state, the transaction management platform realizes asynchronous processing of the settlement tasks; and when the number of the settlement tasks is smaller than or equal to the number of the threads in the idle state, the transaction management platform realizes synchronous processing of the settlement tasks.
2. The method of claim 1, wherein the transaction management platform obtaining second transaction information for the target financial transaction order from the financial escrow platform based on the identification of the target financial transaction order and the identification of the financial escrow platform, comprising:
the transaction management platform obtains second transaction information of the target financial transaction order from the financial hosting platform according to the identification of the target financial transaction order and the identification 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 and the second transaction data are the same, the transaction management platform determines that the target financial transaction order passes verification, including:
and if the first transaction data and the second transaction data are the same according to the verification result of the target financial transaction order, and the transaction management platform compares the first transaction data with the second transaction data to obtain the same verification result of the first transaction data and 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 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, and the first transaction data, comprising:
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 transaction management platform generates a settlement request message meeting a message format identifiable 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 the target financial transaction order and the first transaction data;
the transaction management platform establishes a settlement task of the target financial transaction order through a Quartz frame 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 acquiring 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 execute the settlement task, the method further comprises:
the transaction management platform records the time length of the thread executing the settlement task;
if the duration exceeds a preset duration threshold, the transaction management platform terminates the task execution thread and ends the settlement task;
and the transaction management platform outputs prompt information of transaction abnormality of the target financial transaction order.
5. The method of claim 4, wherein after the transaction management platform outputs the alert of the transaction anomaly of the target financial transaction 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 indicates 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 of any one of claims 3-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 obtains 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 from a plurality of cached financial transaction orders to be settled as the target financial transaction order, 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 quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priorities of the at least two financial hosting platforms from high to low.
8. The method of claim 6, wherein the transaction management platform extracting a first number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order comprises:
acquiring settlement priorities of all financial transaction orders in the plurality of financial transaction orders to be settled;
and extracting the first quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders according to the order of the settlement priority of each financial transaction order from high to low.
9. The method of claim 6, wherein 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, the method further comprising:
the transaction management platform determines the first quantity of financial transaction orders to be subjected to parallel settlement processing according to the quantity of idle threads 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 number of financial transaction orders from the cached plurality of financial transaction orders to be settled as the target financial transaction order comprises:
And the transaction management platform adopts a target settlement frequency, and extracts a first quantity of financial transaction orders from the cached financial transaction orders to be settled as the target financial transaction orders.
11. The method according to claim 10, wherein the method further comprises:
the transaction management platform acquires pushing frequency of pushing a target financial transaction order to be settled by the financial transaction platform;
and the transaction management platform determines the target settlement frequency according to the push frequency, and the target settlement frequency is positively related to the push frequency.
12. 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 the financial transaction platform, and 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, wherein the first transaction data is generated by the financial transaction platform based on transaction operation of a user on the target financial transaction 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 identification of the target financial transaction order and the identification of the financial hosting platform; the second transaction information includes: second trade data of the target financial trade order; the second transaction data are transaction data generated by the transaction operation of the user for the target financial transaction order, which is acquired by the financial hosting platform;
a determining module configured to determine that the target financial transaction order passes verification when the first transaction data and the second transaction data are the same;
the sending module is used for sending a settlement instruction to the financial hosting platform, wherein the settlement instruction is used for instructing the financial hosting platform to carry out settlement processing on the target financial transaction order;
the second transaction information of the target financial transaction order is obtained from the financial hosting platform according to the identification of the target financial transaction order and the identification of the financial hosting platform, wherein the transaction management platform creates a settlement task of the target financial transaction order through a Quartz frame according to the identification of the financial hosting platform, and a task execution thread is started and called to execute the 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 frame is pre-stored in the transaction management platform by a user; when a plurality of settlement tasks exist, asynchronous processing or synchronous processing of the settlement tasks can be realized through each thread in an idle state in a thread pool of the Quartz frame; when the number of the settlement tasks is larger than the number of the threads in the idle state, the transaction management platform realizes asynchronous processing of the settlement tasks; and when the number of the settlement tasks is smaller than or equal to the number of the threads in the idle state, the transaction management platform realizes synchronous processing of the settlement tasks.
13. An electronic device, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1-11.
14. A computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, implement the method of any of claims 1-11.
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 CN113313594A (en) 2021-08-27
CN113313594B true 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
CN113313594A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN106453415B (en) Block chain-based equipment authentication method, authentication server and user equipment
CN110489415B (en) Data updating method and related equipment
CN107436799B (en) Method and device for realizing consistency of distributed transactions
CN110019873B (en) Face data processing method, device and equipment
CN111626858A (en) Processing method and device for transaction, electronic equipment and computer readable medium
CN111008082A (en) Service request processing method and device
CN110781134A (en) Data processing method and device, computer storage medium and electronic equipment
CN113313594B (en) Order processing method, order processing device, electronic equipment, storage medium and program product
CN111125168A (en) Data processing method and device, electronic equipment and storage medium
CN115543837A (en) Software testing method and device, electronic equipment and storage medium
CN112131180B (en) Data reporting method, device and storage medium
CN112732733B (en) Data checking processing method and device
CN111309495B (en) Batch processing request initiating method and device, risk identification equipment and storage medium
CN111179524B (en) ATM (automatic Teller machine) card retaining and retrieving method and device
CN111754348A (en) Scene combined transaction method and device
CN113052688A (en) Credit card handling method and device based on block chain
CN111488236A (en) Order abnormity processing method, server, storage medium and processing device
CN110929135A (en) Query processing method and device
CN113076331B (en) Method, device, equipment, storage medium and program product for processing middle-stage data
CN111651481B (en) Log processing method, device, equipment and computer readable storage medium
CN108876570B (en) Electronic device, method for processing abnormal fund problem and storage medium
CN111401221B (en) Card ticket identification method, device, equipment and storage medium
CN109584087B (en) Information processing method, device and storage medium
CN117094798A (en) Processing method, device, equipment and storage medium for online transaction
CN117155985A (en) Service processing method, device, electronic equipment and 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