Order asynchronous settlement method and device, computer equipment and storage medium

By filtering and pushing unsettled order data in batches, the problem of inefficient non-instant settlement order processing is solved, efficient asynchronous settlement is achieved, system load and data loss is reduced, and order processing is ensured.

CN119130451APending Publication Date: 2024-12-13CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411173478.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

When handling non-instant settlement orders, the prior art has limited throughput, easy loss of order settlement status, untracked data update progress, and lack of ability to automatically discover timeout unsettled orders, resulting in inefficient data processing.

Method used

By filtering unsettled order data based on preset filtering conditions, filtering into batches of orders to be pushed, and pushing them to the payment terminal in batches based on preset push conditions, realizing asynchronous settlement, avoiding one-time big data transmission, and reducing system load , and ensure the continuity of data processing.

Benefits of technology

It improves the data processing efficiency of non-instant settlement orders, reduces the risks of data loss and repeated push, and enhances the scalability of the system and the accuracy of data status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119130451A_ABST
    Figure CN119130451A_ABST
Patent Text Reader

Abstract

The invention provides an order asynchronous settlement method and device, computer equipment and a storage medium, and relates to the field of data processing. According to the method, the non-settled order data is screened through the preset screening condition, and the non-settled order data is screened into the plurality of to-be-pushed order batches through the preset batching condition, so that the processing efficiency of a large amount of order data can be improved; through the preset pushing condition, the to-be-pushed orders are pushed to the payment terminal in batches for asynchronous settlement, the situation that too much data is sent to the payment terminal at a time can be avoided, the system load and the potential overload risk are reduced, batch pushing can be expanded more easily to adapt to larger data volume, and meanwhile, the efficiency is improved. According to batch pushing, order processing continuity can be guaranteed, data loss and repeated pushing are avoided, and the data processing efficiency of asynchronous settlement orders is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to an order asynchronous settlement method, device, computer equipment and storage medium. Background Art

[0002] With the development of mobile Internet, more and more saleable products (physical goods, services, etc.) are increasingly sold through mobile smart payment terminals. The issuance and cancellation of non-instant settlement products (such as merchant cards, merchant gift packages, etc.) have high requirements for high throughput and instant updates of the system. The order placement and payment (such as card issuance and cancellation) process is slow, involving many systems and long links. The current payment system still has the following defects in processing non-instant massive payment order data:

[0003] 1) The number of non-instant orders is large, and the synchronization of order information (order placement, payment, and settlement) in various systems will result in limited throughput;

[0004] 2) Order settlement status is easily lost. This is mainly due to network delays, system processing capabilities, or lack of unified data updates between systems, which leads to difficulties in order reconciliation.

[0005] 3) The data production and consumption capabilities of each system are unknown, the progress of data updates cannot be controlled, and the flow of data status cannot be tracked;

[0006] 4) It does not have the ability to automatically detect orders that have been severely overdue and not settled (paid).

[0007] In the related technology, the payment system notifies the settlement system to update the settlement status of the settlement flow through the return. Due to the different attributes of the goods, the payment settlement cycle of some orders will be very long, resulting in the return of the payment system is not synchronized, and the settlement system is not aware of the triggering time of the return file, which will also cause the bill data to be out of sync. When the amount of data is large, due to network jitter or the gap between the deployment of each system, there will be data loss and data delay; the settlement system cannot perceive the files that are not returned in time, and the payment system has no way to contact it, resulting in the inability to synchronize the settled bills to the settlement system.

[0008] Therefore, how to solve the current low efficiency of data processing for non-instant settlement orders has become a technical problem that needs to be solved urgently. Summary of the invention

[0009] The present application provides an order asynchronous settlement method, apparatus, computer equipment and storage medium, aiming to improve the data processing efficiency of non-instant settlement orders.

[0010] In a first aspect, the present application provides an order asynchronous settlement method, the order asynchronous settlement method comprising the following steps:

[0011] Filter unsettled order data based on preset filtering conditions;

[0012] Based on a preset batching condition, the unsettled order data is screened into at least one batch of orders to be pushed, wherein the batch of orders to be pushed includes at least one unsettled order;

[0013] Based on preset push conditions, the batches of orders to be pushed cached in the push buffer area are pushed to the payment terminal in batches to achieve asynchronous settlement of the unsettled orders.

[0014] In a second aspect, the present application further provides an order asynchronous settlement device, the order asynchronous settlement device comprising:

[0015] The order data screening module is used to screen unsettled order data based on preset screening conditions;

[0016] A data batching module, configured to screen the unsettled order data into at least one batch of orders to be pushed based on a preset batching condition, wherein the batch of orders to be pushed includes at least one unsettled order;

[0017] The order push module is used to push the order batches to be pushed cached in the push buffer area to the payment terminal in batches based on preset push conditions, so as to realize asynchronous settlement of the unsettled orders.

[0018] In a third aspect, the present application also provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the asynchronous order settlement method as described above are implemented.

[0019] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the above-mentioned asynchronous order settlement method are implemented.

[0020] The present application provides an order asynchronous settlement method, device, computer equipment and storage medium. The present application method includes filtering unsettled order data based on preset screening conditions; filtering the unsettled order data into at least one batch of orders to be pushed based on preset batch conditions, wherein the batch of orders to be pushed includes at least one unsettled order; based on preset push conditions, pushing the batch of orders to be pushed cached in the push buffer area to the payment terminal in batches to realize the asynchronous settlement of the unsettled orders. Through the above-mentioned method, the present application filters the unsettled order data by preset screening conditions, and filters the unsettled order data into multiple batches of orders to be pushed by preset batch conditions, which can improve the processing efficiency of a large amount of order data; by preset push conditions, the batches of orders to be pushed are pushed to the payment terminal in batches for asynchronous settlement, which can avoid sending too much data to the payment terminal at one time, thereby reducing the system load and potential overload risks, and batch push can be more easily expanded to adapt to a larger amount of data. At the same time, batch push can ensure the continuity of order processing, avoid data loss and repeated push, and improve the data processing efficiency of asynchronous settlement orders. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 A flowchart of a first embodiment of an asynchronous order settlement method provided by the present application;

[0023] Figure 2 A schematic diagram of a system flow for asynchronous settlement of orders provided in an embodiment of the present application;

[0024] Figure 3 A flowchart of the second embodiment of the asynchronous order settlement method provided by this application;

[0025] Figure 4 It is a structural diagram of a first embodiment of an asynchronous order settlement device provided by the present application;

[0026] Figure 5 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application.

[0027] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0030] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0031] Please refer to Figure 1 , Figure 1 A flowchart of the first embodiment of an asynchronous order settlement method provided in this application.

[0032] like Figure 1 As shown, the order asynchronous settlement method includes steps S101 to S103.

[0033] S101. Filter unsettled order data based on preset filtering conditions;

[0034] In one embodiment, the preset filtering condition can be to filter the unsettled order data according to the order filtering time range, for example, from the current time to the same day and time three months ago (such as August 17, 2023 to May 17, 2023, all unsettled order data within this time range).

[0035] In one embodiment, the screening time range may be pre-configured with a default time range, and the user may be allowed to set and modify it according to actual needs.

[0036] Furthermore, historical order data within the order screening time range is obtained; based on the historical order data, historical orders with associated transaction status of unsettled are screened to obtain the unsettled order data.

[0037] In one embodiment, the order status can be used for screening, that is, all order data within the order screening time range are first divided into settled order data and unsettled order data. Then, the associated transaction flow of the settled order data is further queried: if all associated transaction flows of the settled order data are in the "settled" state, the settled order data is marked as "completed" or "end of process" and other states; if any associated transaction flow of the settled order data is in the "unsettled" state, the settled order data is marked as "uncompleted" or "to be completed" and other states, and the settled order data is divided into "unsettled order data" so that the settled order data can be pushed to the payment terminal to complete the payment process of the associated transaction flow.

[0038] In one embodiment, the associated transaction records refer to all payment and refund activities directly related to an order. They are a series of detailed financial transaction records during the order settlement process. These financial transaction records detail the flow of funds during the payment and settlement process of the order.

[0039] In one embodiment, the associated transaction can have multiple statuses, such as “pending”, “processing”, “settled” and “unsettled”. The status reflects the current progress of the transaction.

[0040] Understandably, ensuring that all associated transactions are marked as "settled" is key to determining whether an order is truly completed. If there are unsettled associated transactions, even if the order itself is marked as "completed", the settlement process of the order may not actually be fully completed.

[0041] In one embodiment, if Figure 2 As shown, you can set a scheduled task to query the order data every screening cycle, screen out the order data that has timed out and not been settled, and send an early warning message to prompt the upstream system to pay in time. At the same time, for orders with a status of "completed", if their associated transactions are not all "settled", their status will be marked as "uncompleted" or "unsettled", etc.

[0042] In one embodiment, the screening cycle can be set according to user needs, such as one week, one month, three months, etc. For example, the screening cycle is set to three months, that is, screening is performed every three months, and the screening range can be all order data within the screening cycle, and can also include unsettled order data within the time range before the screening cycle; for example, if the unsettled orders screened out in the current screening cycle are still not settled in the current screening cycle, they can be screened into the next screening cycle for screening, and the unsettled orders can continue to be pushed.

[0043] Furthermore, based on a preset time period, the unsettled order data is divided into at least one cache data set, wherein the preset time period is less than or equal to the order screening time range; and based on a distributed cache database, each cache data set is stored in a dispersed manner.

[0044] In one embodiment, the preset time period is a dynamically configurable parameter, and the preset time period should be less than or equal to the order screening time range to ensure that all unsettled order data is stored.

[0045] For example, Figure 2 As shown in the figure, to prevent the occurrence of large keys, the preset time period can be one month, that is, the corresponding unsettled order data of each month is used as a cache data set, and then the corresponding cache data sets of each month are stored in the distributed cache database. With the distributed cache database, the unsettled order data can be split (Sharding) to different storage nodes, and each storage node processes a part of the data, thereby avoiding the large key problem on a single node.

[0046] For example, assuming that the size of an unsettled order data is 25 bytes, the size of 1,000 unsettled order data is about 25k, the size of 10,000 unsettled order data is about 250k, the size of 100,000 unsettled order data is about 2.5M, and the size of 1 million unsettled order data is about 25M. There is generally not much unsettled order data for a month, so there will be no large key.

[0047] Among them, "Key" refers to the "key" in the database, which is a mechanism for quickly retrieving and indexing data. In a database, a key is usually used to uniquely identify a record, such as a primary key or an index key. In database terminology, "large key" usually refers to the large size of the index key, which may affect the performance of the database, especially during index operations and queries.

[0048] In one embodiment, even if the amount of data is not large, the database design and indexing strategy will affect the performance. Therefore, using a distributed cache database, each storage node can only store a portion of the data set, which can avoid the appearance of a "large key" on a single storage node.

[0049] In one embodiment, Redis (Remote Dictionary Server, an in-memory data structure storage system) can be used to store unsettled order data. Redis can be used as a database, cache, and message broker. It supports multiple types of data structures, such as strings, hash tables, lists, sets, sorted sets, and range queries, bitmaps, hyperlogs, and geospatial index radius queries. Redis is suitable for scenarios that require fast access to data, such as session cache, full-page cache, rankings, real-time analysis, etc.

[0050] S102: Based on a preset batching condition, the unsettled order data is screened into at least one batch of orders to be pushed, wherein the batch of orders to be pushed includes at least one unsettled order;

[0051] In one embodiment, for settled orders, the settlement status of their associated transactions also needs to be queried. If a settled order has associated transactions that have not been settled, the settled order is marked as "unfinished" and used as unsettled order data.

[0052] In one embodiment, the unsettled order data with associated transaction records can be set as a batch of orders to be pushed. For example, if the current order has been completed, but it is associated with three transaction records, one of which is not settled, then the current order can be considered to have not been settled, and the current order and the data of the three associated transaction records can be set as a batch of orders to be pushed.

[0053] In one embodiment, the preset batching condition may be to use the unsettled order data and the associated flow data of the uncalculated orders as the condition for dividing the batches, that is, one unsettled order data is regarded as a batch of orders to be pushed.

[0054] In one embodiment, multiple unsettled order data may be used as a batch of orders to be pushed, for example, unsettled order data of similar products on a certain day may be used as a batch of orders to be pushed, or unsettled order data corresponding to the same payment terminal may be used as a batch of orders to be pushed, etc. It is understandable that the screening of batches of orders to be pushed may also be implemented in other ways, and the embodiments of the present application are only used for illustration and are not specifically limited.

[0055] S103: Based on preset push conditions, the order batches to be pushed cached in the push cache area are pushed to the payment terminal in batches to achieve asynchronous settlement of the unsettled orders.

[0056] In one embodiment, the preset push conditions include the number of push time nodes in each settlement push cycle and the number of order batches to be pushed at each push time node.

[0057] Optionally, one day can be used as a settlement push cycle, or other time lengths can be set as a settlement push cycle according to actual application requirements, such as one week, one month, or several hours.

[0058] Exemplarily, two adjacent settlement push cycles may be continuous in time, for example, one settlement push cycle is every 24 hours, and after the current settlement push cycle ends, the next settlement push cycle immediately begins, that is, one settlement cycle is every day.

[0059] Exemplarily, two adjacent settlement push cycles may also be discontinuous in time. For example, a settlement push cycle is 24 hours, and there may be a period of time between two adjacent settlement push cycles. For example, if the interval is also 24 hours, the order batches to be pushed are pushed in the current 24 hours, and then the push is stopped in the next 24 hours, and then the next settlement push cycle is entered to continue pushing the order batches to be pushed.

[0060] Exemplarily, the push time of the order batches to be pushed can also be specified, such as continuous push on working days and end push on non-working days, that is, the two adjacent settlement push cycles during working days are continuous in time, and then enter the next settlement push cycle after an interval of non-working days.

[0061] In one embodiment, one or more push time settlements may be set in each settlement push cycle, and the number of to-be-pushed order batches that need to be pushed in each settlement push cycle may be specified.

[0062] For example, if it is required to push 1,000 batches of orders to be pushed in each settlement push cycle, the 1,000 batches of orders to be pushed can be pushed to the payment terminal at one time; or they can be pushed in batches for multiple times, for example, they can be pushed in 4 times. Assuming that the settlement push cycle is 24 hours, they can be pushed every 6 hours, and 250 batches of orders to be pushed can be pushed at one time.

[0063] This embodiment selects a fixed-dimensional tag field for the settlement of massive order data, aggregates the data to generate batches, and processes the data in batches, so that the system can manage memory and processing resources more effectively and ensure performance even in the face of massive data. By pushing batches to downstream systems, the amount of data transmitted in a single transaction between businesses is reduced, the network load is reduced, and the transmission efficiency is improved.

[0064] Furthermore, when the order batch to be pushed in the current settlement cycle is pushed, the order batch to be pushed in the next settlement cycle is obtained from the distributed cache database; based on the push cache area, the order batch to be pushed in the next settlement cycle is cached.

[0065] In one embodiment, in order to ensure the maximum efficiency of the scheduled task, a certain number of order batches to be pushed can be set to be pushed in each settlement period, and a push buffer area is set to cache the order batches to be pushed that need to be pushed in each settlement period.

[0066] For example, assuming that a settlement cycle is one day, there are 100 batches of orders to be pushed in each settlement cycle, that is, 1,000 batches of orders to be pushed are pushed every day. If there are less than 1,000 batches, the actual number shall prevail.

[0067] In one embodiment, there is a certain fluctuation in the number of unsettled orders screened out within each screening time range, and accordingly, the batches of orders to be pushed generated thereby are also different. The number of batches of orders to be pushed pushed in the final settlement cycle may be less than the pre-set number of pushes. At this time, the actual number of batches of orders to be pushed can be pushed in the final settlement cycle.

[0068] Optionally, if the number of orders to be pushed in the current settlement cycle is less than the preset number of pushes, you can also choose to re-screen the unsettled order data to make up for it. Or, among the order batches to be pushed that are screened within the current screening cycle, select the unsettled order data that has been pushed but not returned to supplement and re-push. Among them, the uncalculated order data selected for re-push can be selected in the order of push time, that is, the time order from the settlement cycle with the largest time span to the end of the current settlement cycle is selected.

[0069] This embodiment stores data in an offline file service based on the non-instant settlement feature. The downstream system can selectively operate the order data and asynchronously transmit the payment status back to the upstream system. Storing data in an offline file service allows the downstream system to asynchronously process orders based on its own processing capabilities, thereby improving the flexibility and responsiveness of the system.

[0070] Furthermore, after the batch of orders to be pushed is completed, the batch of orders to be pushed is deleted from the push buffer area.

[0071] In one embodiment, after the order batches to be pushed are pushed, the pushed order batches to be pushed are deleted from the push cache area to avoid repeated pushing and occupying space.

[0072] Similarly, when a batch of orders to be pushed that needs to be pushed in the current settlement cycle is read from the distributed cache database, the corresponding data stored in the distributed cache database can be deleted after the reading is completed.

[0073] This embodiment uses a backfill mechanism and a series of dynamic configuration capabilities to flexibly control the consumption and status synchronization of order data according to the production and consumption capabilities of upstream and downstream. Through profit backfill file verification, settlement and payment can be effectively controlled. It can prevent users from swiping orders and avoid underpayment, overpayment, etc. It can improve the payment system's processing capabilities for non-instant massive payment order data, reduce data loss and delay, and ensure the accuracy and timely update of order status.

[0074] The present embodiment provides an order asynchronous settlement method. The present application method screens unsettled order data by preset screening conditions, and screens the unsettled order data into multiple order batches to be pushed by preset batch conditions, thereby improving the processing efficiency of a large amount of order data; by preset push conditions, the order batches to be pushed are pushed to the payment terminal in batches for asynchronous settlement, which can avoid sending too much data to the payment terminal at one time, thereby reducing the system load and potential overload risks, and batch push can be more easily expanded to adapt to larger data volumes. At the same time, batch push can ensure the continuity of order processing, avoid data loss and repeated push, and improve the data processing efficiency of asynchronous settlement orders.

[0075] Please refer to Figure 3 , Figure 3 A flowchart of the second embodiment of the asynchronous order settlement method provided in this application.

[0076] In this embodiment, Figure 3 As shown, based on the above Figure 1 In the illustrated embodiment, after step S103, the following steps are further included:

[0077] S201. upon receiving a return file sent by the payment terminal, determining the unsettled order corresponding to the return file;

[0078] In one embodiment, if Figure 2 As shown, after receiving and settling an unsettled order, the payment terminal will generate a return file. The settlement system can read or receive the return file generated by the payment terminal through file transfer, API (Application Programming Interface) call or other communication methods.

[0079] In one embodiment, a return transaction refers to the process of importing or transferring data from an external system or file back to the source system. The return transaction file usually contains the processed or modified transaction data, such as the transaction processing results, status updates, etc. The return transaction file records the detailed information of the transaction, including transaction time, buying and selling direction, price, quantity, order number, transaction status, etc.

[0080] In one embodiment, the return file is parsed and converted from its storage format (such as XML, CSV, JSON, etc.) to a data structure that can be processed by the settlement system. Then, the settlement information in the return file is mapped to the uncalculated order according to the identifier (such as order number, transaction ID, etc.) in the return file.

[0081] S202: Based on the order return file, update the order settlement status of the unsettled order.

[0082] In one embodiment, the corresponding unsettled order is searched in the system according to the order identifier (such as order number, transaction ID, etc.) in the return file. For each matching order, the settlement status in the return file is checked, and the order status in the system is updated.

[0083] For example, if the return status is "paid", the order settlement status of the corresponding uncalculated order is updated to "settled". If the return status is "payment failed", the order status of the corresponding uncalculated order needs to be updated to "pending payment" or "payment exception".

[0084] In one embodiment, detailed logs of all status update operations may be recorded through logs, including order number, original status, updated status, update time, operator, etc., to facilitate subsequent backtracking of the operational processes of all orders.

[0085] In one embodiment, for orders that cannot be matched or whose status update fails, the exception can be recorded and subsequent processing can be performed, such as notifying relevant personnel to perform manual inspection.

[0086] In one embodiment, after the order settlement status of the uncalculated order is updated, the user of the payment terminal may be notified via email, SMS, or in-application notification.

[0087] In one embodiment, if an unsettled order that has been pushed has not been settled to generate a return file after a certain period of time, the unsettled order is re-screened into the uncalculated order data and pushed to the payment terminal again.

[0088] This embodiment can ensure that the order management system can efficiently and accurately process the return file of the payment terminal and update the order status in time, thereby improving customer satisfaction and the automation level of business processes.

[0089] See also Figure 4 , Figure 4 It is a structural diagram of a first embodiment of an asynchronous order settlement device provided in the present application, and the asynchronous order settlement device is used to execute the aforementioned asynchronous order settlement method.

[0090] like Figure 4 As shown, the order asynchronous settlement device 300 includes: an order data screening module 301, a data batching module 302 and an order pushing module 303.

[0091] The order data screening module 301 is used to screen the unsettled order data based on the preset screening conditions;

[0092] The data batching module 302 is used to screen the unsettled order data into at least one batch of orders to be pushed based on a preset batching condition, wherein the batch of orders to be pushed includes at least one unsettled order;

[0093] The order push module 303 is used to push the order batches to be pushed cached in the push buffer area to the payment terminal in batches based on preset push conditions, so as to realize asynchronous settlement of the unsettled orders.

[0094] In one embodiment, the order data screening module 301 includes:

[0095] A historical order data acquisition unit, used to acquire historical order data within an order screening time range;

[0096] The unsettled order screening unit is used to screen the historical orders whose associated flow status is an unsettled status based on the historical order data to obtain the unsettled order data.

[0097] In one embodiment, the order asynchronous settlement device 300 further includes a data storage module, and the data storage module specifically includes:

[0098] a data set division unit, configured to divide the unsettled order data into at least one cache data set based on a preset time period, wherein the preset time period is less than or equal to the order screening time range;

[0099] The data dispersion storage unit is used for dispersively storing each cache data set based on a distributed cache database.

[0100] In one embodiment, the order asynchronous settlement device 300 further includes a data cache module, which specifically includes:

[0101] A data reading unit, configured to obtain the batch of orders to be pushed in the next settlement cycle from the distributed cache database when the batch of orders to be pushed in the current settlement cycle is pushed;

[0102] A data cache unit is used to cache the batch of orders to be pushed in the next settlement cycle based on the push cache area.

[0103] In one embodiment, the preset push conditions include the number of push time nodes in each settlement push cycle and the number of order batches to be pushed at each push time node.

[0104] In one embodiment, the order asynchronous settlement device 300 further includes a data clearing module, and the data clearing module specifically includes:

[0105] The cache deletion unit is used to delete the batch of orders to be pushed from the push cache area after the batch of orders to be pushed is pushed.

[0106] In one embodiment, the order asynchronous settlement device 300 further includes a settlement status update module, and the settlement status update module specifically includes:

[0107] a return file analysis unit, configured to determine the unsettled order corresponding to the return file upon receiving the return file sent by the payment terminal;

[0108] An order settlement status updating unit is used to update the order settlement status of the unsettled order based on the return order file.

[0109] It should be noted that technical personnel in the relevant field can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned order asynchronous settlement method embodiment, and will not be repeated here.

[0110] The apparatus provided in the above embodiment may be implemented in the form of a computer program. The computer program may be Figure 5 Runs on the computer device shown.

[0111] See also Figure 5 , Figure 5 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.

[0112] See also Figure 5 The computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a non-volatile storage medium and an internal memory.

[0113] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any order asynchronous settlement method.

[0114] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0115] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any order asynchronous settlement method.

[0116] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art will appreciate that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0118] In one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0119] Filter unsettled order data based on preset filtering conditions;

[0120] Based on a preset batching condition, the unsettled order data is screened into at least one batch of orders to be pushed, wherein the batch of orders to be pushed includes at least one unsettled order;

[0121] Based on preset push conditions, the batches of orders to be pushed cached in the push buffer area are pushed to the payment terminal in batches to achieve asynchronous settlement of the unsettled orders.

[0122] In one embodiment, when implementing the filtering of unsettled order data based on the preset filtering condition, the processor is used to implement:

[0123] Get historical order data within the order filtering time range;

[0124] Based on the historical order data, historical orders with associated transaction status of unsettled are screened to obtain the unsettled order data.

[0125] In one embodiment, after implementing the filtering of historical orders with associated transaction status as unsettled based on the historical order data and obtaining the unsettled order data, the processor is further configured to implement:

[0126] Based on a preset time period, dividing the unsettled order data into at least one cache data set, wherein the preset time period is less than or equal to the order screening time range;

[0127] Based on a distributed cache database, each cache data set is stored in a decentralized manner.

[0128] In one embodiment, before the processor implements the pushing of the to-be-pushed order batches cached in the push buffer area to the payment terminal in batches based on the preset push condition to implement the asynchronous settlement of the unsettled orders, it is further configured to implement:

[0129] When the batch of orders to be pushed in the current settlement cycle is completed, the batch of orders to be pushed in the next settlement cycle is obtained from the distributed cache database;

[0130] Based on the push buffer area, the batch of orders to be pushed in the next settlement cycle is cached.

[0131] In one embodiment, the preset push conditions include the number of push time nodes in each settlement push cycle and the number of order batches to be pushed at each push time node.

[0132] In one embodiment, after the processor implements the step of pushing the batches of orders to be pushed cached in the push buffer area to the payment terminal in batches based on the preset push condition to implement the asynchronous settlement of the unsettled orders, the processor is further configured to implement:

[0133] After the batch of orders to be pushed is completed, the batch of orders to be pushed is deleted from the push buffer area.

[0134] In one embodiment, after the processor implements the step of pushing the batches of orders to be pushed cached in the push buffer area to the payment terminal in batches based on the preset push condition to implement the asynchronous settlement of the unsettled orders, the processor is further configured to implement:

[0135] Upon receiving the return file sent by the payment terminal, determining the unsettled order corresponding to the return file;

[0136] Based on the order return file, the order settlement status of the unsettled order is updated.

[0137] A computer-readable storage medium is also provided in an embodiment of the present application, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the processor executes the program instructions to implement any one of the order asynchronous settlement methods provided in the embodiments of the present application.

[0138] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.

[0139] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. An asynchronous order settlement method, characterized in that: The method comprises: Filter unsettled order data based on preset filtering conditions; Based on a preset batching condition, the unsettled order data is screened into at least one batch of orders to be pushed, wherein the batch of orders to be pushed includes at least one unsettled order; Based on preset push conditions, the batches of orders to be pushed cached in the push buffer area are pushed to the payment terminal in batches to achieve asynchronous settlement of the unsettled orders.

2. The asynchronous order settlement method according to claim 1, characterized in that: The filtering of unsettled order data based on the preset filtering conditions includes: Get historical order data within the order filtering time range; Based on the historical order data, historical orders with associated transaction status of unsettled are screened to obtain the unsettled order data.

3. The asynchronous order settlement method according to claim 2, characterized in that: After filtering the historical orders whose associated transaction status is unsettled based on the historical order data and obtaining the unsettled order data, the method further includes: Based on a preset time period, dividing the unsettled order data into at least one cache data set, wherein the preset time period is less than or equal to the order screening time range; Based on a distributed cache database, each cache data set is stored in a decentralized manner.

4. The asynchronous order settlement method according to claim 3, characterized in that: Before the method pushes the order batches to be pushed cached in the push buffer area to the payment terminal in batches based on the preset push conditions to realize the asynchronous settlement of the unsettled orders, it also includes: When the batch of orders to be pushed in the current settlement cycle is completed, the batch of orders to be pushed in the next settlement cycle is obtained from the distributed cache database; Based on the push buffer area, the batch of orders to be pushed in the next settlement cycle is cached.

5. The asynchronous order settlement method according to claim 1, characterized in that: The preset push conditions include the number of push time nodes in each settlement push cycle and the number of order batches to be pushed at each push time node.

6. The asynchronous order settlement method according to claim 1, characterized in that: After the order batches to be pushed cached in the push buffer area are pushed to the payment terminal in batches based on the preset push conditions to realize the asynchronous settlement of the unsettled orders, the method further includes: After the batch of orders to be pushed is completed, the batch of orders to be pushed is deleted from the push buffer area.

7. The asynchronous order settlement method according to claim 1, characterized in that: After the order batches to be pushed cached in the push buffer area are pushed to the payment terminal in batches based on the preset push conditions to realize the asynchronous settlement of the unsettled orders, the method further includes: Upon receiving the return file sent by the payment terminal, determining the unsettled order corresponding to the return file; Based on the order return file, the order settlement status of the unsettled order is updated.

8. An asynchronous order settlement device, characterized in that: The order asynchronous settlement device comprises: The order data screening module is used to screen unsettled order data based on preset screening conditions; A data batching module, configured to screen the unsettled order data into at least one batch of orders to be pushed based on a preset batching condition, wherein the batch of orders to be pushed includes at least one unsettled order; The order push module is used to push the order batches to be pushed cached in the push buffer area to the payment terminal in batches based on preset push conditions, so as to realize asynchronous settlement of the unsettled orders.

9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the steps of the order asynchronous settlement method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the asynchronous order settlement method according to any one of claims 1 to 7 are implemented.