Order processing method, device, computer equipment and storage medium
By recording and polling order flow information, the accounting errors caused by missed, lost or blocked asynchronous notification messages in barcode payment are solved, ensuring the accuracy and consistency of bank accounts.
Patent Information
- Application Number
- CN202011303321.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2040-11-19
AI Technical Summary
The missed, lost or blocked notification messages in barcode payment lead to bank account processing errors, resulting in misrepresentation and missed accounts.
By recording the order flow information of unprocessed orders, receiving asynchronous notification messages from third-party companies, and regularly polling the order flow information collection, launching an order status query request to third-party companies, and processing according to the feedback order status to ensure the order processing status update and accounting consistency.
It effectively avoids missed accounts and wrong accounts in barcode payment, ensures consistency of bank accounts, and prevents accounting errors caused by asynchronous notification messages.
Smart Images

Figure CN112418848B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to data processing technology, and more particularly to an order processing method, apparatus, computer equipment and storage medium. Background Art
[0002] In the field of daily consumption and small transfers, barcode payment has become a mainstream payment method. Barcode payment refers to payment through the payer scanning the payee's payment code, or the payee scanning the payer's payment code.
[0003] The processing flow of barcode payment is as follows: after the payer scans the payee's payment code, or the payee scans the payee's payment code, the bank generates an order and sends the order to a third-party APP (application). The third-party APP generates an order and prompts the payee to enter the password to pay. After the payer confirms the payment, the third-party APP deducts the money from the payer's account and notifies the bank of the successful deduction in the form of an asynchronous notification message. After receiving the asynchronous notification message, the bank credits the payee's account and notifies the payee of the credit.
[0004] Under this barcode payment processing flow, once the asynchronous notification message is missed, lost or blocked, it will affect the bank's subsequent account processing, leading to problems such as wrong accounts and missed accounts. Summary of the invention
[0005] The embodiments of the present invention provide an order processing method, apparatus, computer equipment and storage medium to avoid missed accounts and wrong accounts in barcode payment and ensure the consistency of bank accounts.
[0006] In a first aspect, an embodiment of the present invention provides an order processing method, the method comprising:
[0007] When receiving order flow information of an unprocessed order, adding the order flow information to the order flow information set;
[0008] According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, and the order processing status of the target order is updated in the order flow information set;
[0009] Regularly poll to obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders;
[0010] An order status query request for each target unprocessed order is sent to a third-party company, and the matched target unprocessed orders are processed according to the order status fed back by the third-party company.
[0011] In a second aspect, an embodiment of the present invention further provides an order processing device, the device comprising:
[0012] An order flow information set generation module, configured to add the order flow information of an unprocessed order to the order flow information set when receiving the order flow information of the unprocessed order;
[0013] The target order processing module is used to process the target order according to the asynchronous notification message corresponding to the target order sent by the third-party company, and update the order processing status of the target order in the order flow information set;
[0014] The target unprocessed order acquisition module is used to periodically poll and obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders;
[0015] The order status query module is used to send an order status query request for each target unprocessed order to a third-party company, and process the matched target unprocessed orders according to the order status fed back by the third-party company.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an order processing method as described in any one of the embodiments of the present invention is implemented.
[0017] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute an order processing method as described in any one of the embodiments of the present invention.
[0018] The embodiment of the present invention records the order flow information of unprocessed orders, processes the target order when receiving the asynchronous notification message corresponding to the target order sent by the third-party company, and regularly polls the order flow information collection, initiates an order status query request to the third-party company for the unprocessed order, and processes the unprocessed order according to the order status fed back by the third-party company. The problem that the bank's subsequent order account processing is affected when the asynchronous notification message is missed, lost or blocked in the processing method of barcode payment orders in the prior art is solved, avoids missed and wrong accounts in barcode payment, and ensures the consistency of bank accounts. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flow chart of an order processing method in Embodiment 1 of the present invention;
[0020] Figure 2 is a flow chart of an order processing method in Embodiment 2 of the present invention;
[0021] Figure 3It is a structural schematic diagram of an order processing device in Embodiment 3 of the present invention;
[0022] Figure 4 It is a structural diagram of a computer device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0024] Embodiment 1
[0025] Figure 1 This is a flow chart of an order processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where a bank processes a barcode payment order. The method can be executed by an order processing device, which can be implemented by software and / or hardware and is generally integrated in a computer device.
[0026] like Figure 1 As shown, the technical solution of the embodiment of the present invention specifically includes the following steps:
[0027] S110. When order flow information of an unprocessed order is received, the order flow information is added to an order flow information set.
[0028] Among them, unprocessed orders are orders that have been generated by the bank but have not yet been processed. Order flow information is information related to unprocessed orders, such as order number, order time, payer, payee, and payment amount.
[0029] In the barcode payment scenario, after the payer scans the payee's payment code, or the payee scans the payee's payment code, the bank generates an unprocessed order and adds the order flow information of the unprocessed order to the order flow information collection.
[0030] S120. According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, and the order processing status of the target order is updated in the order flow information set.
[0031] The third-party company is used to process the payee's account and send the deduction result of the payee's account to the bank in the form of an asynchronous notification message. The asynchronous notification message is generated by the third-party company and sent to the bank to notify the bank of the deduction result of the payee's account. The order processing status can be unprocessed, processing, successful processing or failed processing, etc., which is not limited in this embodiment.
[0032] After the bank generates an unprocessed order, the third-party company also generates an order corresponding to the bank's unprocessed order and prompts the payee to pay. After the payee pays, the third-party company processes the payee's account and sends an asynchronous notification message to the bank to notify the payee of the processing result of the account.
[0033] After receiving the asynchronous notification message sent by the third-party company, the bank processes the target order corresponding to the asynchronous notification message and updates the order processing status of the target order.
[0034] S130, periodically polling to obtain the order processing status of each order flow information in the order flow information set, and obtaining the target unprocessed order.
[0035] Asynchronous notification messages may be missed, lost or blocked, causing the unprocessed orders corresponding to the missed, lost or blocked asynchronous notification messages to be unable to continue subsequent processing.
[0036] In the embodiment of the present invention, the order processing status corresponding to each order flow information in the order flow information set is polled regularly to obtain unprocessed orders, that is, orders for which corresponding asynchronous notification messages have not been received.
[0037] S140: Send an order status query request for each target unprocessed order to the third-party company, and process the matched target unprocessed orders according to the order status fed back by the third-party company.
[0038] The order status query request is used to query whether the order corresponding to the target unprocessed order of the bank in the third-party company has been processed, that is, whether the payer account corresponding to the target unprocessed order of the bank has been deducted successfully.
[0039] In the embodiment of the present invention, after periodically polling the order flow information set and obtaining the unprocessed orders, the bank proactively initiates an order status query request to the third-party company, and the third-party company queries whether the order corresponding to the unprocessed order has been processed, that is, whether the payer's account has been successfully deducted, and feedbacks the order status to the bank. After receiving the order status, the bank performs subsequent processing on the unprocessed order, that is, if the order status received by the bank shows that the payer's account has been successfully deducted, it will perform subsequent processing such as crediting the payee's account and updating the order status.
[0040] The technical solution of this embodiment records the order flow information of unprocessed orders, processes the target order when receiving the asynchronous notification message corresponding to the target order sent by the third-party company, and regularly polls the order flow information collection, initiates an order status query request to the third-party company for the unprocessed order, and processes the unprocessed order according to the order status fed back by the third-party company. It solves the problem that when the asynchronous notification message is missed, lost or blocked under the processing method of barcode payment orders in the prior art, the subsequent order account processing of the bank is affected, resulting in wrong accounts and missed accounts, avoiding missed accounts and wrong accounts in barcode payment, and ensuring the consistency of bank accounts.
[0041] Optionally, the method further includes: if it is determined that the number of asynchronous notification messages received within a preset time interval exceeds a flow control threshold, performing an asynchronous notification peak warning.
[0042] Optionally, the method further includes: if it is determined that a flow control threshold adjustment instruction has been received, adjusting the value of the flow control threshold.
[0043] Since the bank system may receive asynchronous notification messages corresponding to multiple different orders at the same time, and a third-party company may repeatedly send asynchronous notification messages for the same order, when the number of asynchronous notification messages increases, it is easy to form a transaction spike, causing the bank system to crash and affecting the bank's processing of other businesses. In the flow control management mode, when the flow control threshold is reached, the flow control threshold is adjusted. In the embodiment of the present invention, flow control management is performed on the asynchronous notification messages, which can avoid system paralysis caused by the increase in the number of asynchronous notification messages received.
[0044] In an embodiment of the present invention, the number of asynchronous notification messages is monitored in real time. When the number of asynchronous notification messages received within a preset time interval exceeds the flow control threshold, an asynchronous notification peak warning is issued so that operation and maintenance personnel can locate the cause of the transaction spike as soon as possible. When it is necessary to expand the flow control, the flow control threshold can also be directly adjusted to prevent order processing failures caused by a sharp increase in the number of asynchronous notification messages in a short period of time.
[0045] Optionally, the method further includes: if it is determined that within the real-time monitoring time period, the number of unprocessed orders in the order flow information set exceeds a threshold value for the number of unprocessed orders, an abnormal alarm is issued; wherein the threshold value for the number of unprocessed orders is determined based on the number of historical unprocessed orders within at least one historical monitoring time period.
[0046] In an embodiment of the present invention, when the number of unprocessed orders in the order flow information set exceeds the unprocessed order number threshold in a certain real-time monitoring time period, an unprocessed order number abnormality alarm is issued. The unprocessed order number threshold can be set according to the number of unprocessed orders in the previous historical monitoring time period, or can be set according to the average number of unprocessed orders in multiple historical monitoring time periods, and this embodiment does not limit this.
[0047] Optionally, the method further includes: if it is determined that within the real-time monitoring time period, at least one alarm-related information meets the threshold condition, then an abnormal alarm is issued; the alarm-related information includes: abnormal uneven file processing, the number of uneven files, and the duration of uneven file push.
[0048] The bank will conduct reconciliation at regular real-time monitoring intervals to check whether the amount of each processed order is consistent with the bank's book balance. When the reconciliation is not balanced, the bank system will generate an imbalance file and push it to the dispute system within a specified time for business personnel to verify and adjust the account.
[0049] The embodiment of the present invention monitors the entire process of order processing and reconciliation in real time. When there is an abnormality in the processing of uneven files within a certain monitoring time period, an abnormal alarm for uneven file processing is issued. When the number of uneven files exceeds a preset uneven file number threshold within a certain monitoring time period, an uneven file number alarm is issued. Among them, the uneven file number threshold can be calculated based on the average value of the number of uneven files in multiple historical time periods. When it is detected within a certain monitoring time period that the uneven file has not been pushed to the dispute system after exceeding the specified time, an uneven file push delay alarm is issued. The real-time monitoring time periods corresponding to each alarm-related information may be the same or different, and this embodiment does not limit this.
[0050] In the embodiment of the present invention, the whole process of order processing and reconciliation is monitored, and operation and maintenance personnel or business personnel can be promptly prompted to check the cause of the problem, thereby ensuring that the order processing and reconciliation procedures are carried out effectively.
[0051] Embodiment 2
[0052] Figure 2 It is a flowchart of an order processing method provided in Example 2 of the present invention. Based on the above embodiment, this embodiment of the present invention adds the steps of obtaining the target dedicated line corresponding to the unprocessed order, sending the target dedicated line callback address and order number of the unprocessed order to a third-party company, limiting the number of asynchronous notification messages by flow control threshold, repeatedly processing the asynchronous notification message, and real-time monitoring of each alarm-related information.
[0053] Correspondingly, such as Figure 2As shown, the technical solution of the embodiment of the present invention specifically includes the following steps:
[0054] S210. When order flow information of an unprocessed order is received, the order flow information is added to an order flow information set.
[0055] In the embodiment of the present invention, whenever order flow information of an unprocessed order is received, it is stored in the order flow information set so as to query the order status of each order later.
[0056] S220. Obtain a dedicated line set, and detect the dedicated line status of each dedicated line through the load balancing middleware.
[0057] The bank receives asynchronous notification messages from third-party companies through dedicated lines. In the embodiment of the present invention, multiple dedicated lines are set up to reduce the probability of failure to send asynchronous notification messages when a single dedicated line is damaged.
[0058] In the scenario of multiple dedicated lines, after the bank obtains unprocessed orders, it needs to send the order number and callback address of the unprocessed orders to the third-party company. The callback address is also the receiving address of the asynchronous notification message. When the bank sends the callback address, it needs to make sure that the dedicated line corresponding to the callback address is available, so as to ensure that the asynchronous notification message can be successfully received. Therefore, after the bank obtains unprocessed orders, it first needs to filter out the available dedicated lines.
[0059] In the embodiment of the present invention, different callback addresses are assigned to each dedicated line, the dedicated line status of each dedicated line is initialized to available and cached in the application memory, and the dedicated line status of each dedicated line is continuously detected by the load balancing middleware. The load balancing middleware can use Haproxy, but this embodiment does not limit the type of load balancing middleware. When the detection of a dedicated line fails, the dedicated line status of the dedicated line is modified to unavailable, and a dedicated line status abnormality prompt can be issued. In this way, available dedicated lines are screened out, thereby reducing the probability of failure to send asynchronous notification messages.
[0060] Detecting the dedicated line status of each dedicated line through the load balancing middleware may also include: if it is determined that the load balancing middleware fails to detect the target dedicated line, setting the dedicated line status of the target dedicated line to unavailable, otherwise setting the dedicated line status of the target dedicated line to available.
[0061] In an embodiment of the present invention, the dedicated line status of each dedicated line can also be set to empty, and the dedicated line status of each dedicated line can be continuously detected through the load balancing middleware. When the detection of a dedicated line fails, the dedicated line status of the dedicated line is set to unavailable. When the detection of a dedicated line is successful, the dedicated line status of the dedicated line is set to available.
[0062] S230. Generate an available dedicated line set according to each dedicated line whose status is available.
[0063] In the dedicated line set, a dedicated line whose state is available is selected to construct an available dedicated line set, so that an available dedicated line can be selected from the available dedicated line set for the third party company to send an asynchronous notification message through the available dedicated line.
[0064] S240: Select a target dedicated line corresponding to the unprocessed order from a set of available dedicated lines.
[0065] In the embodiment of the present invention, when there are multiple available dedicated lines in the available dedicated line set, it is necessary to select a target dedicated line as the dedicated line used when the third-party company sends an asynchronous notification message corresponding to an unprocessed order to the bank. The target dedicated line can be selected from the available dedicated line set by random selection, or a certain selection rule can be set to select the target dedicated line, which is not limited in this embodiment.
[0066] Accordingly, S240 may include:
[0067] S241. Obtain the order number of the unprocessed order according to the order flow information of the unprocessed order, and convert the order number into a numerical value.
[0068] In an embodiment of the present invention, the order number of the unprocessed order is obtained from the order flow information of the unprocessed order. The order number is usually in the form of letters and numbers. The order number can be converted into a numerical value by ASCII (American Standard Code for Information Interchange) code conversion, or the digits in the order number can be averaged or summed to obtain a numerical value, or the number on a certain flag position can be taken as the numerical value. This embodiment does not limit the method of obtaining the numerical value based on the order number.
[0069] S242: Perform a modulus calculation based on the numerical value and the number of available dedicated lines to obtain a modulus value, and select an available dedicated line corresponding to the modulus value from the available dedicated line set as a target dedicated line.
[0070] Take the modulus of the value converted from the order number and the number of available dedicated lines, and use the available dedicated line corresponding to the modulus value as the target dedicated line.
[0071] The selection method of the available dedicated lines in the embodiment of the present invention can avoid sending unavailable callback addresses and ensure load balancing among the available dedicated lines.
[0072] S250. Send the callback address of the target dedicated line and the order number of the unprocessed order to a third-party company, so that the third-party company can send an asynchronous notification message corresponding to the unprocessed order through the callback address.
[0073] In the embodiment of the present invention, after selecting a target dedicated line from the available dedicated line set, a callback address corresponding to the target dedicated line is obtained, and the callback address and the order number of the unprocessed order are sent to a third-party company.
[0074] S260. According to the target asynchronous notification message corresponding to the target order sent by the third-party company through the target callback address, the target order is processed, and the order processing status of the target order is updated in the order flow information set.
[0075] In an embodiment of the present invention, after the banking system receives the target asynchronous notification message sent by the third-party company through the target callback address, it obtains the target order corresponding to the target asynchronous notification message and processes the target order, that is, it credits the payee account corresponding to the target order and updates the order processing status of the target order.
[0076] S270. Determine whether an asynchronous notification message corresponding to the target order is received again from the third-party company through the target callback address. If so, execute S280; otherwise, execute S2120.
[0077] In the embodiment of the present invention, when the third-party company adopts a repeated notification mechanism for the asynchronous notification message, the bank system may receive multiple asynchronous notification messages for the same target order.
[0078] When the bank system receives the asynchronous notification message corresponding to the target order for the first time, it processes the target order and updates the order processing status of the target order according to the processing progress. When the bank system receives the asynchronous notification message corresponding to the target order again, it queries the order processing status of the target order. When the target order is successfully processed, it feeds back the order processing success information to the third-party company. When the third-party company receives the order processing success information, it stops sending asynchronous notification messages. When the target order has not been successfully processed, it feeds back the order processing failure information to the third-party company. The third-party company continues to send asynchronous notification messages until it receives the order processing success information.
[0079] S280. Obtain the order processing status of the target order.
[0080] S290: Determine whether the order processing status is successful. If yes, execute S2100; otherwise, execute S2110.
[0081] S2100: Send order processing success information to the third-party company to instruct the third-party company to stop sending asynchronous notification messages corresponding to the target order. Execute S2120.
[0082] S2110, sending order processing failure information to the third-party company. Execute S270.
[0083] S2120. Regularly poll to obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed order.
[0084] In the embodiment of the present invention, on the one hand, multiple dedicated lines are set up, and the status of each dedicated line is continuously detected, and the callback address of the available dedicated line is selected and sent to the third-party company, thereby reducing the probability of failure to send asynchronous notification messages. On the other hand, according to the order flow information set, unprocessed orders, that is, orders that have not received asynchronous notification messages, are screened, and an order status query is actively initiated to the third-party company, so that the order is processed according to the order status fed back by the third-party company. The technical solution of the embodiment of the present invention ensures the effective implementation of barcode payment orders from two levels, thereby reducing bank errors and omissions, and ensuring the consistency of bank accounts.
[0085] S2130: Send an order status query request for each target unprocessed order to the third-party company, and process the matched target unprocessed orders according to the order status fed back by the third-party company.
[0086] In the embodiment of the present invention, the number of unprocessed orders and alarm-related information are also monitored in real time during the real-time monitoring period, which will not be described in detail in this embodiment.
[0087] The technical solution of this embodiment records the order flow information of unprocessed orders, obtains the target dedicated line corresponding to the unprocessed orders, sends the target dedicated line and order number corresponding to the unprocessed orders to the third-party company, processes the target order when receiving the asynchronous notification message corresponding to the target order sent by the third-party company, returns the information of order processing success or failure to the third-party company when the asynchronous notification message is received repeatedly, regularly polls the order flow information collection, initiates an order status query request to the third-party company for the unprocessed orders, processes the unprocessed orders according to the order status fed back by the third-party company, and monitors the number of asynchronous notification messages and various alarm-related information in real time. It solves the problem that when the asynchronous notification message is missed, lost or blocked under the processing method of barcode payment orders in the prior art, the subsequent order account processing of the bank is affected, resulting in wrong accounts and missed accounts, avoids missed accounts and wrong accounts in barcode payment, and ensures the consistency of bank accounts.
[0088] Embodiment 3
[0089] Figure 3 1 is a schematic diagram of the structure of an order processing device in Embodiment 3 of the present invention, the device comprises: an order flow information set generation module 310, a target order processing module 320, a target unprocessed order acquisition module 330 and an order status query module 340. Among them:
[0090] The order flow information set generation module 310 is used to add the order flow information of the unprocessed order to the order flow information set when receiving the order flow information of the unprocessed order;
[0091] The target order processing module 320 is used to process the target order according to the asynchronous notification message corresponding to the target order sent by the third-party company, and update the order processing status of the target order in the order flow information set;
[0092] The target unprocessed order acquisition module 330 is used to periodically poll and acquire the order processing status of each order flow information in the order flow information set, and acquire the target unprocessed order;
[0093] The order status query module 340 is used to send an order status query request for each target unprocessed order to a third-party company, and process the matched target unprocessed orders according to the order status fed back by the third-party company.
[0094] The technical solution of this embodiment records the order flow information of unprocessed orders, processes the target order when receiving the asynchronous notification message corresponding to the target order sent by the third-party company, and regularly polls the order flow information collection, initiates an order status query request to the third-party company for the unprocessed order, and processes the unprocessed order according to the order status fed back by the third-party company. It solves the problem that when the asynchronous notification message is missed, lost or blocked under the processing method of barcode payment orders in the prior art, the subsequent order account processing of the bank is affected, resulting in wrong accounts and missed accounts, avoiding missed accounts and wrong accounts in barcode payment, and ensuring the consistency of bank accounts.
[0095] Based on the above embodiment, the device further includes:
[0096] A target dedicated line acquisition module, used for selecting a target dedicated line corresponding to the unprocessed order from a set of available dedicated lines;
[0097] A callback address sending module, used to send the callback address of the target dedicated line and the order number of the unprocessed order to a third-party company, so that the third-party company can send an asynchronous notification message corresponding to the unprocessed order through the callback address;
[0098] The target order processing module 320 includes:
[0099] The target order processing unit is used to process the target order according to the target asynchronous notification message corresponding to the target order sent by the third party company through the target callback address.
[0100] Based on the above embodiment, the device further includes:
[0101] The asynchronous notification message quantity monitoring module is used to issue an asynchronous notification peak warning if it is determined that the number of asynchronous notification messages received within a preset time interval exceeds a flow control threshold.
[0102] Based on the above embodiment, the device further includes:
[0103] The flow control threshold adjustment module is used to adjust the value of the flow control threshold if it is determined that a flow control threshold adjustment instruction has been received.
[0104] Based on the above embodiment, the device further includes:
[0105] An order processing status acquisition module, used to acquire the order processing status of the target order if an asynchronous notification message corresponding to the target order is received again from the third-party company through the target callback address;
[0106] An order processing success information sending module, for sending order processing success information to a third-party company if it is determined that the order processing status is successfully processed, so as to instruct the third-party company to stop sending asynchronous notification messages corresponding to the target order;
[0107] The order processing failure information sending module is used to send order processing failure information to a third-party company.
[0108] Based on the above embodiment, the device further includes:
[0109] The dedicated line status detection module is used to obtain the dedicated line set and detect the dedicated line status of each dedicated line through the load balancing middleware;
[0110] The available dedicated line set generation module is used to generate an available dedicated line set according to each dedicated line whose state is available.
[0111] Based on the above embodiment, the dedicated line status detection module is specifically used for:
[0112] If it is determined that the load balancing middleware fails to detect the target dedicated line, the dedicated line status of the target dedicated line is set to unavailable, otherwise the dedicated line status of the target dedicated line is set to available.
[0113] Based on the above embodiment, the target dedicated line acquisition module is specifically used to:
[0114] Obtain the order number of the unprocessed order according to the order flow information of the unprocessed order, and convert the order number into a numerical value;
[0115] A modulus is taken according to the numerical value and the number of available dedicated lines to obtain a modulus value, and an available dedicated line corresponding to the modulus value is selected from the available dedicated line set as a target dedicated line.
[0116] Based on the above embodiment, the device further includes:
[0117] The module for real-time monitoring of the number of unprocessed orders is used to generate an abnormal alarm if it is determined that the number of unprocessed orders in the order flow information set exceeds the threshold of the number of unprocessed orders within the real-time monitoring period.
[0118] The unprocessed order quantity threshold is determined based on the number of historical unprocessed orders within at least one historical monitoring time period.
[0119] Based on the above embodiment, the device further includes:
[0120] The alarm-related information real-time monitoring module is used to generate an abnormal alarm if it is determined that at least one alarm-related information meets a threshold condition within the real-time monitoring time period;
[0121] The alarm-related information includes: the number of unprocessed orders in the order flow information set, the abnormality in uneven file processing, the number of uneven files, and the duration of pushing uneven files.
[0122] The order processing device provided in the embodiment of the present invention can execute the order processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0123] Embodiment 4
[0124] Figure 4 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention is shown in FIG. Figure 4 As shown, the computer device includes a processor 70, a memory 71, an input device 72 and an output device 73; the number of processors 70 in the computer device can be one or more. Figure 4 A processor 70 is taken as an example; the processor 70, memory 71, input device 72 and output device 73 in the computer device can be connected by a bus or other means. Figure 4 The example of connecting through bus is taken in the following.
[0125] The memory 71 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as the modules corresponding to the order processing method in the embodiment of the present invention (for example, the order flow information set generation module 310, the target order processing module 320, the target unprocessed order acquisition module 330 and the order status query module 340 in the order processing device). The processor 70 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 71, that is, realizing the above-mentioned order processing method. The method includes:
[0126] When receiving order flow information of an unprocessed order, adding the order flow information to the order flow information set;
[0127] According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, and the order processing status of the target order is updated in the order flow information set;
[0128] Regularly poll to obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders;
[0129] An order status query request for each target unprocessed order is sent to a third-party company, and the matched target unprocessed orders are processed according to the order status fed back by the third-party company.
[0130] The memory 71 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 71 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 71 may further include a memory remotely arranged relative to the processor 70, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0131] The input device 72 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 73 may include a display device such as a display screen.
[0132] Embodiment 5
[0133] Embodiment 5 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute an order processing method when executed by a computer processor, the method comprising:
[0134] When receiving order flow information of an unprocessed order, adding the order flow information to the order flow information set;
[0135] According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, and the order processing status of the target order is updated in the order flow information set;
[0136] Regularly poll to obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders;
[0137] An order status query request for each target unprocessed order is sent to a third-party company, and the matched target unprocessed orders are processed according to the order status fed back by the third-party company.
[0138] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the order processing method provided by any embodiment of the present invention.
[0139] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0140] It is worth noting that in the embodiment of the above-mentioned order processing device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0141] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. An order processing method, characterized in that: include: When receiving order flow information of an unprocessed order, adding the order flow information to the order flow information set; wherein the unprocessed order is an order that has been generated by the bank but has not been processed; According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, and the order processing status of the target order is updated in the order flow information set; the asynchronous notification message is used to notify the bank of the deduction result of the payee's account; Regularly poll to obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders; Send an order status query request for each target unprocessed order to the third-party company, and process the matched target unprocessed orders according to the order status feedback from the third-party company; Monitor the number of asynchronous notification messages in real time. When the number of asynchronous notification messages received within a preset time interval exceeds the flow control threshold, issue an asynchronous notification peak warning. When there is an abnormality in the processing of uneven files within a certain monitoring time period, an abnormal alarm for uneven file processing will be issued; when the number of uneven files exceeds the preset uneven file number threshold within a certain monitoring time period, an uneven file number alarm will be issued; when within a certain monitoring time period, it is detected that the uneven files have not been pushed to the dispute system after the specified time, an uneven file push delay alarm will be issued.
2. The method according to claim 1, characterized in that When receiving the order flow information of the unprocessed order, adding the order flow information to the order flow information set includes: Selecting a target dedicated line corresponding to the unprocessed order from a set of available dedicated lines; Sending the callback address of the target dedicated line and the order number of the unprocessed order to the third-party company, so that the third-party company can send an asynchronous notification message corresponding to the unprocessed order through the callback address; According to the asynchronous notification message corresponding to the target order sent by the third-party company, the target order is processed, including: The target order is processed according to the target asynchronous notification message corresponding to the target order sent by the third-party company through the target callback address.
3. The method according to claim 1, characterized in that: After the asynchronous notification spike warning, it also includes: If it is determined that a flow control threshold adjustment instruction is received, the value of the flow control threshold is adjusted.
4. The method according to claim 2, characterized in that: After processing the target order, it also includes: If an asynchronous notification message corresponding to the target order is received again from the third-party company through the target callback address, the order processing status of the target order is obtained; If it is determined that the order processing status is successfully processed, sending order processing success information to the third-party company to instruct the third-party company to stop sending asynchronous notification messages corresponding to the target order; Otherwise, an order processing failure message will be sent to the third-party company.
5. The method according to claim 2, characterized in that: Before selecting the target dedicated line corresponding to the unprocessed order from the available dedicated line set, the method further includes: Get the dedicated line set and detect the dedicated line status of each dedicated line through the load balancing middleware; Generate an available dedicated line set based on each dedicated line that is in available state.
6. The method according to claim 5, characterized in that The dedicated line status of each dedicated line is detected through the load balancing middleware, including: If it is determined that the load balancing middleware fails to detect the target dedicated line, the dedicated line status of the target dedicated line is set to unavailable, otherwise the dedicated line status of the target dedicated line is set to available.
7. The method according to claim 5, characterized in that Selecting a target dedicated line corresponding to the unprocessed order from the available dedicated line set includes: Obtain the order number of the unprocessed order according to the order flow information of the unprocessed order, and convert the order number into a numerical value; A modulus is taken according to the numerical value and the number of available dedicated lines to obtain a modulus value, and an available dedicated line corresponding to the modulus value is selected from the available dedicated line set as a target dedicated line.
8. The method according to any one of claims 1 to 7, characterized in that: Also includes: If it is determined that the number of unprocessed orders in the order flow information set exceeds the unprocessed order quantity threshold within the real-time monitoring time period, an abnormal alarm is issued; The unprocessed order quantity threshold is determined based on the number of historical unprocessed orders within at least one historical monitoring time period.
9. An order processing device, characterized in that: include: An order flow information set generation module, configured to add the order flow information of an unprocessed order to the order flow information set when receiving the order flow information of the unprocessed order; wherein the unprocessed order is an order that has been generated by the bank but has not been processed for accounting; A target order processing module is used to process the target order according to an asynchronous notification message corresponding to the target order sent by a third-party company, and update the order processing status of the target order in the order flow information set; the asynchronous notification message is used to notify the bank of the deduction result of the payee's account; The target unprocessed order acquisition module is used to periodically poll and obtain the order processing status of each order flow information in the order flow information set, and obtain the target unprocessed orders; The order status query module is used to send an order status query request for each target unprocessed order to a third-party company, and process the matched target unprocessed orders according to the order status fed back by the third-party company; An asynchronous notification message quantity monitoring module is used to issue an asynchronous notification peak warning if it is determined that the number of asynchronous notification messages received within a preset time interval exceeds a flow control threshold; The real-time monitoring module of alarm-related information is used to issue an abnormal alarm for uneven file processing when there is an abnormality in the processing of uneven files within a certain monitoring time period; to issue an uneven file quantity alarm when the number of uneven files exceeds a preset uneven file quantity threshold within a certain monitoring time period; and to issue an uneven file push delay alarm when it is detected that the uneven file has not been pushed to the dispute system after a specified time within a certain monitoring time period.
10. The device according to claim 9, characterized in that Also includes: A target dedicated line acquisition module, used for selecting a target dedicated line corresponding to the unprocessed order from a set of available dedicated lines; A callback address sending module, used to send the callback address of the target dedicated line and the order number of the unprocessed order to a third-party company, so that the third-party company can send an asynchronous notification message corresponding to the unprocessed order through the callback address; The target order processing module includes: The target order processing unit is used to process the target order according to the target asynchronous notification message corresponding to the target order sent by the third party company through the target callback address.
11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the order processing method as described in any one of claims 1-8 is implemented.
12. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the order processing method according to any one of claims 1 to 8 when executed by a computer processor.
Citation Information
Patent Citations
Abnormal-order processing method and device and electronic equipment
CN107833113A
Order payment request exception processing method, equipment, server and system
CN110706069A
Order payment request exception processing method, equipment, server and system
CN110706071A
Order state synchronization method and system and storage medium
CN110912980A
Detection method, device and system for transaction information data transmission special line, and medium
CN111343049A
