CN110852753A - Transaction order closing method and device - Google Patents

Transaction order closing method and device Download PDF

Info

Publication number
CN110852753A
CN110852753A CN201911056369.3A CN201911056369A CN110852753A CN 110852753 A CN110852753 A CN 110852753A CN 201911056369 A CN201911056369 A CN 201911056369A CN 110852753 A CN110852753 A CN 110852753A
Authority
CN
China
Prior art keywords
time point
transaction
order
data table
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.)
Pending
Application number
CN201911056369.3A
Other languages
Chinese (zh)
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.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
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 NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN201911056369.3A priority Critical patent/CN110852753A/en
Publication of CN110852753A publication Critical patent/CN110852753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction
    • 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/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a transaction order method and a device, wherein the method comprises the following steps: when a target fragmentation task triggered at a preset triggering period is monitored, recording the current order closing time point for triggering the target fragmentation task, wherein the target fragmentation task is used for indicating to close orders of transaction data in a target transaction database, and the target transaction database comprises a data table; inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table; and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table. Therefore, the processing efficiency of the transaction order is improved, and the clearing platform can rapidly obtain the order in mass transaction amount.

Description

Transaction order closing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for trading customs clearance.
Background
At present, a clearing platform accepts a transaction of a payment mechanism and requests a bank to accept the transaction, and if the bank is requested to be overtime, the clearing platform assumes that the state of the accepted transaction which is overtime is a final state, and the process is a transaction order.
In practical situations, the transaction of the payment mechanism has the characteristics of high concurrency and large data, and how to realize quick closing of the settlement platform in mass transaction amount becomes a technical problem to be solved urgently.
Content of application
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
To this end, a first object of the present application is to propose a method of trading customs clearance.
A second object of the present application is to provide a transaction order device.
A third object of the present application is to propose another transaction order device.
A fourth object of the present application is to propose a computer readable storage medium.
A fifth object of the present application is to propose a computer program product.
To achieve the above object, an embodiment of a first aspect of the present application provides a method for trading customs clearance, including:
when a target fragmentation task triggered at a preset triggering period is monitored, recording the current order closing time point for triggering the target fragmentation task, wherein the target fragmentation task is used for indicating to close orders of transaction data in a target transaction database, and the target transaction database comprises a data table;
inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table;
and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table.
In an embodiment of the present application, the performing order closing processing on the transaction data in each data table according to the service timeout time, the current order closing time point, and the last order closing time point of each data table includes:
calculating the current transaction overtime time point according to the service overtime time and the current order closing time point;
screening each data table according to the previous statement time point and the transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database;
and updating the state of the transaction data of the to-be-closed order into a transaction final state.
In an embodiment of the present application, after performing the order processing on the transaction data in each data table, the method further includes:
and updating the last order closing time point of each data table recorded in the order closing schedule table to be the current order closing time point.
In an embodiment of the present application, the target fragmentation task is one of at least one fragmentation task divided by the distributed task system.
According to the transaction order closing method, when a target slicing task triggered at preset trigger periods is monitored, the current order closing time point for triggering the target slicing task is recorded, wherein the target slicing task is used for indicating to close the order of transaction data in a target transaction database, and the target transaction database comprises a data table; inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table; and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table. Therefore, the processing efficiency of the transaction order is improved, and the clearing platform can rapidly obtain the order in mass transaction amount.
To achieve the above object, a second aspect of the present application provides a transaction order apparatus, including:
the monitoring module is used for recording the order closing time point of the target slicing task when the target slicing task triggered at every preset trigger period is monitored, wherein the target slicing task is used for indicating the order closing processing of transaction data in a target transaction database, and the target transaction database comprises a data table;
the query module is used for querying the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database and acquiring the last order closing time point of each data table;
and the processing module is used for acquiring the service overtime time and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of the time and the last order closing time point of each data table.
In an embodiment of the present application, the processing module is specifically configured to:
calculating the current transaction overtime time point according to the service overtime time and the current order closing time point;
screening each data table according to the previous statement time point and the transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database;
and updating the state of the transaction data of the to-be-closed order into a transaction final state.
In an embodiment of the application, the processing module is further configured to, after performing order closing processing on the transaction data in each data table, update the last order closing time point of each data table recorded in the order closing schedule table to the current order closing time point.
In an embodiment of the present application, the target fragmentation task is one of at least one fragmentation task divided by the distributed task system.
The transaction order closing device of the embodiment of the application records the current order closing time point for triggering a target slicing task when monitoring the target slicing task triggered at preset triggering intervals, wherein the target slicing task is used for indicating to close the order of transaction data in a target transaction database, and the target transaction database comprises a data table; inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table; and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table. Therefore, the processing efficiency of the transaction order is improved, and the clearing platform can rapidly obtain the order in mass transaction amount.
To achieve the above object, a third aspect of the present invention provides another transaction order device, including: memory, processor and computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements a transaction order method as described above.
To achieve the above object, a fourth aspect of the present application provides a transaction order device, including: memory, processor and computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements a transaction order method as described above.
In order to achieve the above object, a fifth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the transaction order method as described above.
In order to achieve the above object, a sixth aspect of the present application provides a computer program product, wherein when being executed by an instruction processor, the computer program product implements the transaction order method as described above.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for trading customs clearance according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a transaction order device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of another transaction order device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The following describes a transaction order method and apparatus according to an embodiment of the present application with reference to the drawings.
Fig. 1 is a schematic flow chart of a method for trading a customs clearance according to an embodiment of the present application. As shown in fig. 1, the transaction order method includes the following steps:
step 101, when a target slicing task triggered every other preset trigger period is monitored, recording a current order closing time point for triggering the target slicing task, wherein the target slicing task is used for indicating to close orders of transaction data in a target transaction database, and the target transaction database comprises at least one data table.
Specifically, the execution subject of the transaction order method provided by this embodiment is the transaction order device provided by this application, and this device may be configured in the clearing platform to implement that the clearing platform executes the transaction order operation.
The preset trigger period is set according to the actual situation.
Generally, a clearing platform is provided with a plurality of Data centers (Internet Data centers, IDCs), each Data Center independently accepts transaction services to the outside, and transaction amounts accepted by each Data Center are huge. If the transaction is overtime due to network or system reasons, the clearing platform presumes the state of the transaction data with overtime transaction as a final state, and updates the state of the transaction data stored in the transaction database to be the final state.
Specifically, in order to improve the transaction processing efficiency, the clearing platform divides the whole customs clearance task into at least one slicing task, and different slicing tasks are used for indicating the customs clearance processing of transaction data in different transaction databases. The target fragmentation task is one of at least one fragmentation task, and each fragmentation task can conduct order closing processing on transaction data in one or more transaction databases.
For example, the entire customs clearance task is split into sharding tasks 1, 2, 3 … …, etc., sharding task 1 indicating processing of transaction data in transaction database 1, transaction database 2, etc., sharding task 2 indicating processing of transaction data in transaction database 3, transaction database 4, etc., sharding task 3 indicating processing of transaction data in transaction database 3, transaction database 4, etc.
For example, the clearing platform has one or more data centers, each of which may be configured with one or more trading concerns. The clearing platform divides the whole customs clearance task into at least one fragment task, the clearing platform triggers one fragment task every minute, and the corresponding transaction customs clearance device carries out customs clearance processing on transaction data in a transaction database corresponding to the distributed fragment task.
As an example, to implement management of task allocation, the clearing platform includes a distributed task system, which divides the entire customs clearance task into at least one sharding task and determines a transaction database to be processed for each sharding task. The distributed task system triggers a fragmentation task every other preset trigger period, and the transaction order device monitoring the fragmentation task performs order processing on the transaction data in the transaction database corresponding to the distributed fragmentation task.
And 102, inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database, and acquiring the last order closing time point of each data table.
Specifically, in order to improve the processing efficiency of the order, an order schedule is configured for each transaction database, and the order schedule records the last order closing time point of each data table in the transaction database. Before the next transaction database is subjected to order closing processing, the last order closing time point of each data table is obtained from the order closing schedule table, and the order closing processing is performed on the transaction data in each data table according to the service timeout time, the current order closing time point and the last order closing time point of each data table.
And 103, acquiring service overtime, and performing order closing processing on the transaction data in each data table according to the service overtime, the order closing time point of this time and the last order closing time point of each data table.
Specifically, the service timeout time recorded by the clearing platform is obtained, for example, the service timeout time is 30 seconds. The clearing platform accepts the transaction of the payment mechanism, requests the bank to accept the transaction, and records the business overtime time of the transaction in real time if the bank is requested to overtime.
As an example, the implementation manner of performing policy closing processing on the transaction data in each data table according to the service timeout time, the current policy closing time point, and the last policy closing time point of each data table is as follows: calculating the current transaction overtime time point according to the service overtime time and the current order closing time point; screening each data table according to the previous statement time point and the current transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database; and updating the state of the transaction data of the to-be-closed order into a transaction final state.
The warehousing time point can also be understood as the earliest time when the clearing platform accepts the transaction, the clearing platform accepts each transaction, stores corresponding transaction data in a corresponding transaction database, and records the warehousing time point of the transaction data.
It can be understood that the business timeout time is subtracted from the current order closing time point to calculate the current transaction timeout time point.
It can be understood that the transactions are all transactions with uncertain timeout states at the warehousing time point earlier than the current transaction timeout time point, and the transaction order processing needs to be performed by modifying the state of the transactions with uncertain timeout states into the final state.
For example, the service timeout time is 30 seconds, the current order closing time point is 2019-10-189: 50, the last order closing time point is 2019-10-189: 49, and the current transaction timeout time point is 2019-10-189: 49: 30. The transaction data needing the order in the data table at this time is the transaction data between the time point of the last order closing 2019-10-189: 49 and the time point of the current transaction timeout 2019-10-189: 49:30, and the transaction data between the time point of the last order closing 2019-10-189: 49:30 and the time point of the current order closing 2019-10-189: 50 in the data table is the transaction data needing no order closing.
Further, after step 103, the method further comprises: and updating the last order closing time point of each data table recorded in the order closing schedule table to be the current order closing time point.
For example, the time point of the current order closing is 2019-10-189: 50, and the time point of the last order closing is 2019-10-189: 49. After the triggered target slicing task is executed, updating the last order closing time point in the corresponding data table in the order closing schedule table from 2019-10-189: 49 to 2019-10-189: 50.
According to the transaction order closing method provided by the embodiment of the application, when a target fragment task triggered at preset trigger periods is monitored, the order closing time point of the target fragment task is triggered is recorded, wherein the target fragment task is used for indicating to close the order of transaction data in a target transaction database, and the target transaction database comprises a data table; inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table; and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table. Therefore, the processing efficiency of the transaction order is improved, and the clearing platform can rapidly obtain the order in mass transaction amount.
Fig. 2 is a schematic structural diagram of a transaction order apparatus according to an embodiment of the present disclosure. As shown in fig. 2, the transaction order apparatus includes: the system comprises a monitoring module 11, an inquiry module 12 and a processing module 13;
the monitoring module 11 is configured to record a current order closing time point for triggering a target slicing task when a target slicing task triggered every preset trigger period is monitored, where the target slicing task is used to instruct to close orders for transaction data in a target transaction database, and the target transaction database includes a data table;
the query module 12 is configured to query the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database, and obtain the last order closing time point of each data table;
and the processing module 13 is configured to acquire a service timeout time, and perform order closing processing on the transaction data in each data table according to the service timeout time, the order closing time point of this time, and the last order closing time point of each data table.
In an embodiment of the present application, the processing module 13 is specifically configured to:
calculating the current transaction overtime time point according to the service overtime time and the current order closing time point;
screening each data table according to the previous statement time point and the transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database;
and updating the state of the transaction data of the to-be-closed order into a transaction final state.
In an embodiment of the present application, the processing module 13 is further configured to, after performing order closing processing on the transaction data in each data table, update the last order closing time point of each data table recorded in the order closing schedule table to the current order closing time point.
In an embodiment of the present application, the target fragmentation task is one of at least one fragmentation task divided by the distributed task system.
It should be noted that the foregoing explanation of the embodiment of the transaction order method is also applicable to the transaction order device of the embodiment, and the implementation principle thereof is similar and will not be described herein again.
The transaction order closing device of the embodiment of the application records the current order closing time point for triggering a target slicing task when monitoring the target slicing task triggered at preset triggering intervals, wherein the target slicing task is used for indicating to close the order of transaction data in a target transaction database, and the target transaction database comprises a data table; inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table; and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table. Therefore, the processing efficiency of the transaction order is improved, and the clearing platform can rapidly obtain the order in mass transaction amount.
Fig. 3 is a schematic structural diagram of another transaction order device according to an embodiment of the present disclosure. The transaction order device comprises:
memory 1001, processor 1002, and computer programs stored on memory 1001 and executable on processor 1002.
The processor 1002, when executing the program, implements the transaction policy method provided in the above embodiments.
Further, the transaction order device further comprises:
a communication interface 1003 for communicating between the memory 1001 and the processor 1002.
A memory 1001 for storing computer programs that may be run on the processor 1002.
Memory 1001 may include high-speed RAM memory and may also include non-volatile memory (e.g., at least one disk memory).
The processor 1002 is configured to implement the transaction order method according to the above embodiment when executing the program.
If the memory 1001, the processor 1002, and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001, and the processor 1002 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on one chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through an internal interface.
The processor 1002 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
The present application also provides a computer program product, which when executed by an instruction processor in the computer program product, implements the transaction order method as described above.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method of trading orders, comprising:
when a target fragmentation task triggered at a preset triggering period is monitored, recording the current order closing time point for triggering the target fragmentation task, wherein the target fragmentation task is used for indicating to close orders of transaction data in a target transaction database, and the target transaction database comprises a data table;
inquiring the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database to obtain the last order closing time point of each data table;
and acquiring service overtime time, and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of this time and the last order closing time point of each data table.
2. The method of claim 1, wherein the performing the order-closing process on the transaction data in each data table according to the service timeout time, the current order-closing time point, and the last order-closing time point of each data table comprises:
calculating the current transaction overtime time point according to the service overtime time and the current order closing time point;
screening each data table according to the previous statement time point and the transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database;
and updating the state of the transaction data of the to-be-closed order into a transaction final state.
3. The method of claim 1, after performing a customs clearance process on the transaction data in each data table, further comprising:
and updating the last order closing time point of each data table recorded in the order closing schedule table to be the current order closing time point.
4. The method of claim 1, wherein the target fragmentation task is one of splitting an entire customs clearance task into at least one fragmentation task by a distributed task system.
5. A transaction order device, comprising:
the monitoring module is used for recording the order closing time point of the target slicing task when the target slicing task triggered at every preset trigger period is monitored, wherein the target slicing task is used for indicating the order closing processing of transaction data in a target transaction database, and the target transaction database comprises a data table;
the query module is used for querying the last order closing time point of each data table recorded in the order closing schedule table corresponding to the target transaction database and acquiring the last order closing time point of each data table;
and the processing module is used for acquiring the service overtime time and performing order closing processing on the transaction data in each data table according to the service overtime time, the order closing time point of the time and the last order closing time point of each data table.
6. The apparatus of claim 5, wherein the processing module is specifically configured to:
calculating the current transaction overtime time point according to the service overtime time and the current order closing time point;
screening each data table according to the previous statement time point and the transaction overtime time point, and acquiring the transaction data of which the warehousing time point is between the previous statement time point and the current transaction overtime time point and is in a state of being a pending statement, wherein the warehousing time point indicates the time point when the corresponding transaction data is recorded into a target transaction database;
and updating the state of the transaction data of the to-be-closed order into a transaction final state.
7. The apparatus of claim 5, wherein the processing module is further configured to, after performing the order processing on the transaction data in each data table, update the previous order time point of each data table recorded in the order schedule table to the current order time point.
8. The apparatus of claim 5, wherein the target fragmentation task is one of a split up of an entire customs clearance task into at least one fragmentation task by a distributed task system.
9. A transaction order device, comprising:
memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor when executing the program implements the transaction order method according to any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which program, when executed by a processor, carries out the transaction order method according to any of claims 1-4.
CN201911056369.3A 2019-10-31 2019-10-31 Transaction order closing method and device Pending CN110852753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911056369.3A CN110852753A (en) 2019-10-31 2019-10-31 Transaction order closing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911056369.3A CN110852753A (en) 2019-10-31 2019-10-31 Transaction order closing method and device

Publications (1)

Publication Number Publication Date
CN110852753A true CN110852753A (en) 2020-02-28

Family

ID=69599338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911056369.3A Pending CN110852753A (en) 2019-10-31 2019-10-31 Transaction order closing method and device

Country Status (1)

Country Link
CN (1) CN110852753A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109064176A (en) * 2018-06-11 2018-12-21 阿里巴巴集团控股有限公司 A kind of transaction processing method, apparatus and system
CN109741153A (en) * 2019-01-18 2019-05-10 网联清算有限公司 Overtime transaction processing method, device, computer equipment and storage medium
US20190179935A1 (en) * 2017-12-11 2019-06-13 Nextworld Llc Automated transaction engine
CN110298666A (en) * 2019-06-21 2019-10-01 网联清算有限公司 Abnormality eliminating method and device during trading processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190179935A1 (en) * 2017-12-11 2019-06-13 Nextworld Llc Automated transaction engine
CN109064176A (en) * 2018-06-11 2018-12-21 阿里巴巴集团控股有限公司 A kind of transaction processing method, apparatus and system
CN109741153A (en) * 2019-01-18 2019-05-10 网联清算有限公司 Overtime transaction processing method, device, computer equipment and storage medium
CN110298666A (en) * 2019-06-21 2019-10-01 网联清算有限公司 Abnormality eliminating method and device during trading processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程国建 等: "《迁移到云端 在云计算的新世界开发应用》", 30 June 2015, 国防工业出版社 *

Similar Documents

Publication Publication Date Title
CN107392722B (en) Order processing method and device, electronic equipment and storage medium
CN107203875B (en) Capital clearing method, device and server
CN110059110B (en) Business data security processing method and device, computer equipment and storage medium
CN108256113B (en) Data blood relationship mining method and device
CN110728429A (en) Case allocation method, case allocation device, case allocation medium and computer equipment
CN110060139B (en) Accounting processing method and device
CN110633977A (en) Payment exception processing method and device and terminal equipment
CN111241177B (en) Data acquisition method, system and network equipment
CN105989163A (en) Data real-time processing method and system
CN110321364B (en) Transaction data query method, device and terminal of credit card management system
CN110389773A (en) Software publication and dispositions method, apparatus and system
CN109710263B (en) Code compiling method and device, storage medium and electronic equipment
EP3861433B1 (en) Upgrades based on analytics from multiple sources
CN112783749A (en) Static code scanning optimization method and device, electronic equipment and storage medium
CN112598529B (en) Data processing method and device, computer readable storage medium and electronic equipment
JP6814637B2 (en) A system for analyzing electronic legal invoice data
WO2021129005A1 (en) Blockchain state change-based transaction tracking method and device
CN113312259A (en) Interface testing method and device
CN110852753A (en) Transaction order closing method and device
US10552059B2 (en) Data migration with placement based on access patterns
CN110852848A (en) Work order processing method, device and equipment
CN113905092B (en) Method, device, terminal and storage medium for determining reusable agent queue
CN109741153A (en) Overtime transaction processing method, device, computer equipment and storage medium
CN111857670B (en) Application architecture determining method and device
CN105488076B (en) Data accumulation method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228