Order processing method and device
By automating the processing of abnormal orders and formulating retry strategies based on order categories, the problem of low order exception processing efficiency in the existing technology is solved, and system stability and work efficiency are improved.
Patent Information
- Application Number
- CN202311552391.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2024-10-18
AI Technical Summary
In the existing technology, the order exception processing process relies on manual operations, which is inefficient, cannot meet the growing business needs, and affects system stability.
By obtaining order information within the business process, determine the order status, classify abnormal orders, and formulate different retry strategies according to categories, automatically handle abnormal orders and improve efficiency.
Through automation, the time-consuming operation of staff is reduced, order processing efficiency is improved, system stability is enhanced, and labor costs are reduced.
Smart Images

Figure CN118798796A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method and device for processing an order. Background Art
[0002] With the rapid development of various business systems of operators, the complexity of the business support system architecture is high, and order anomalies are prone to occur. Abnormal order failures affect the stability of the system and also affect the user experience of front-line personnel. In some instances, the order anomaly handling process relies on manual operation, that is, the front-line operators in the business hall find the failure and then feedback it to the back-end technicians. The back-end technicians locate the order anomaly failure based on manual experience, analyze it and then handle it.
[0003] This method has a long processing flow and low efficiency. As the operator's business expands, order abnormalities and failures gradually increase. The above method can no longer meet the growing business needs, and it also cannot guarantee system stability. Summary of the invention
[0004] The embodiments of the present application provide a method and device for processing an order to solve the problem of long process and low efficiency in the method for processing order exceptions in the related art.
[0005] In a first aspect, an embodiment of the present application provides a method for processing an order, comprising:
[0006] Obtaining order information of an order generated within a business process, wherein the order information includes order data;
[0007] Determine the order status of the order according to the order data, where the order status includes normal and abnormal;
[0008] In the case where the order is an abnormal order, classifying the abnormal order according to the order data;
[0009] According to the category of the abnormal order, different retry processes are performed on the abnormal order, and the retry process is used to make the order status of at least part of the abnormal orders become normal.
[0010] In a second aspect, an embodiment of the present application provides an order processing device, including:
[0011] A first acquisition module is used to acquire order information of an order generated in a business process, wherein the order information includes order data;
[0012] A determination module, used to determine the order status of the order according to the order data, wherein the order status includes normal and abnormal;
[0013] A classification module, used for classifying the abnormal order according to the order data when the order is an abnormal order;
[0014] A processing module is used to perform different retry processes on the abnormal orders according to the categories of the abnormal orders, and the retry processes are used to make the order status of at least some of the abnormal orders become normal.
[0015] In a third aspect, an embodiment of the present application provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0017] In an embodiment of the present application, firstly, the order information of the order generated in the business process is obtained, and the order information includes order data. Then, according to the order data, the order status of the order is determined. The order status includes normal and abnormal. In the case where the order is an abnormal order, the abnormal order is classified according to the order data. Finally, according to the category of the abnormal order, different retry processes are performed on the abnormal order. The retry process is used to make the order status of at least some abnormal orders become normal. In an embodiment of the present application, when an order abnormality is monitored, different retry strategies are formulated according to the type of order, so that at least some abnormal orders can be turned into normal orders. The operation time of the staff is greatly reduced through automation, and the efficiency is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 is a flowchart of a method for processing an order provided in an embodiment of the present application;
[0020] Figure 2 This is a schematic diagram of the order monitoring alarm process provided by the embodiment of the present application;
[0021] Figure 3 It is a schematic diagram of an order processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] 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.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0024] In the following, in conjunction with the accompanying drawings, an order processing method and device provided by an embodiment of the present application are described in detail through specific embodiments and their application scenarios.
[0025] like Figure 1 As shown, it is a flow chart of a method for processing an order provided in an embodiment of the present application. Figure 1 As shown, the method for processing the order may include: the contents shown in S101 to S104.
[0026] In S101, order information of an order generated in a business process is obtained.
[0027] The order information includes order data.
[0028] This embodiment can obtain the order information generated in the business process in real time through an automated tool, and save the obtained data in a log file. Then, Prometheus metrics are generated according to the order information, and the Hypertext Transfer Protocol (HTTP) service is started through the Prometheus Client, so that the Prometheus server can periodically pull the system order status data and store the corresponding information in the time series database of Prometheus.
[0029] In S102, the order status of the order is determined according to the order data, and the order status includes normal and abnormal.
[0030] In other words, we can judge whether an order is abnormal based on the order data. For example, we can compare some status fields of the order through historical data settings and set a threshold. If the threshold is exceeded, the order is considered to be in an abnormal state. Specifically, we can set an upper threshold for the processing time of the order at each stage. If the order takes too long at a certain stage, the order status is considered abnormal and it is prone to abnormal order failures.
[0031] It is worth noting that the set threshold value may be determined based on historical data or based on the experience of the staff. The specific value may be determined based on actual conditions and is not limited in this embodiment.
[0032] This embodiment can also assign corresponding feature codes to abnormal orders according to the corresponding stages of order abnormalities based on Prometheus technology. The feature codes can be used to identify the cause of order failures, which facilitates subsequent classification according to the cause of order failures.
[0033] In S103, when the order is an abnormal order, the abnormal order is classified according to the order data.
[0034] In S104, different retry processes are performed on the abnormal orders according to the categories of the abnormal orders, and the retry processes are used to make the order status of at least some of the abnormal orders become normal.
[0035] In an embodiment of the present application, firstly, the order information of the order generated in the business process is obtained, and the order information includes order data. Then, according to the order data, the order status of the order is determined. The order status includes normal and abnormal. In the case where the order is an abnormal order, the abnormal order is classified according to the order data. Finally, according to the category of the abnormal order, different retry processes are performed on the abnormal order. The retry process is used to make the order status of at least some abnormal orders become normal. In an embodiment of the present application, when an order abnormality is monitored, different retry strategies are formulated according to the type of order, so that at least some abnormal orders can be turned into normal orders. The operation time of the staff is greatly reduced through automation, and the efficiency is improved.
[0036] In a possible implementation of the present application, determining the order status of an order based on order data may include: determining multiple fields to be compared based on historical data in the order data; and determining that the order status of the order is abnormal when the fields to be compared in the current data in the order data exceed a field threshold.
[0037] That is to say, some status fields of the order can be compared through historical data settings, and thresholds can be set. If the threshold is exceeded, the order is considered to be in an abnormal state. Specifically, an upper threshold can be set for the processing time of the order at each stage. If the order takes too long at a certain stage, the order status is considered abnormal and is prone to abnormal order failures.
[0038] It is worth noting that the set threshold value may be determined based on historical data or based on the experience of the staff. The specific value may be determined based on actual conditions and is not limited in this embodiment.
[0039] Furthermore, the order status can be marked for easy query. Specifically, the status of a specific field of the order can be marked with "0" and "1", where "0" represents an abnormal order system status and "1" represents a normal order system status. The system business status can be queried through Prometheus Query Lanaguage (PromeQL).
[0040] In a possible implementation of the present application, the order processing method may further include: obtaining the number of abnormal orders within a preset time period, and the average number of abnormal orders in the same historical time period; performing alarm processing based on the number of abnormal orders and the average data of abnormal orders.
[0041] In this embodiment, the establishment of alarm rules is based on the accumulation of historical data. By setting a statistical time period according to historical data, or manually setting a time period, the number of abnormal orders and the corresponding time-consuming data counted in the above-mentioned embodiment within the time period can be compared with the average value of the number of abnormal orders and the corresponding time consumption in the same time period in the historical data, and the corresponding quantity, time consumption difference and growth ratio are calculated. The calculated quantity, time consumption difference and growth ratio are compared with the set threshold. If any one of them exceeds the threshold, an alarm is performed.
[0042] In a possible implementation of the present application, alarm processing is performed based on the number of abnormal orders and the average data of the abnormal orders, which may include: determining the growth amount of the abnormal number based on the number of abnormal orders and the average data of the abnormal orders; performing alarm processing when the growth amount exceeds a first threshold; determining the growth ratio of the abnormal number when the growth amount does not exceed the first threshold; performing alarm processing when the growth ratio exceeds a second threshold; determining the growth amount of abnormal time consumption when the growth ratio does not exceed the first threshold; performing alarm processing when the growth amount of abnormal time consumption exceeds a third threshold; determining the growth ratio of abnormal time consumption when the growth amount of abnormal time consumption does not exceed the third threshold; performing alarm processing when the growth ratio of abnormal time consumption exceeds a fourth threshold.
[0043] That is to say, Figure 2 As shown, the number of abnormal orders in the time period is compared with the average number of abnormal orders per order in the same historical time period, and the extreme abnormal number growth is interpolated. If the abnormal number growth interpolation exceeds the threshold, an alarm is issued. Otherwise, the abnormal number growth ratio is calculated. If the abnormal number growth ratio exceeds the threshold, an alarm is issued. Otherwise, the abnormal time consumption growth difference is further calculated. If the abnormal time consumption growth exceeds the threshold, an alarm is issued. Otherwise, the abnormal time consumption growth ratio is calculated. If the abnormal time consumption growth ratio exceeds the threshold, an alarm is issued.
[0044] In an example, since operators' business handling generally has a periodic pattern over time, the number of corresponding order failures will also show a corresponding periodic pattern that changes over time. Therefore, the average number of abnormal orders in the same historical time period can be used as the control data. For ease of understanding, an example is given. The number of abnormal orders is counted every 4 hours, that is, the time period is 4 hours. If the currently counted abnormal orders are data within the time period of 12:00-16:00 on Friday, then the corresponding historical time period should be the average value of abnormal orders in the time period of 12:00-16:00 on all historical Fridays.
[0045] Among them, the thresholds of abnormal order quantity, time consumption growth and growth ratio can be determined based on historical data, can be set based on experience, or can be determined based on other factors, which are subject to actual application and are not limited in this embodiment. The above thresholds can be the same or different, which are subject to actual application and are not limited in this embodiment.
[0046] Optionally, alarm processing can be sending alarm information, such as alarm via text message, email, etc., to inform the staff registered in the system, that is, the corresponding maintenance technicians, and the corresponding fields can be adjusted to adjust the alarm content. In this embodiment, no special requirements are made for specific fields.
[0047] Since there are various reasons for order abnormalities, some of which are caused by system jitter on the middle-office side, order retry operations can be used to resolve some order abnormalities, which is conducive to enhancing the stability of the system and improving the work efficiency of front-line personnel.
[0048] In a possible implementation of the present application, different retry processing is performed on abnormal orders according to the category of abnormal orders, which may include: when the abnormal order is caused by a system abnormality, performing a first preset number of retries on the abnormal order within a first time period; when the abnormal order is caused by business rule restrictions, performing a second preset number of retries on the abnormal order within a second time period, wherein the duration of the second time period is greater than the duration of the first time period, and the second preset number is greater than the first preset number.
[0049] The abnormal orders may be retried accordingly according to their types, wherein the types of abnormal orders may include abnormalities caused by the reasons in Table 1 below.
[0050] Table 1
[0051]
[0052] In this embodiment, different order retry strategies can be implemented for different reasons of order abnormality failure. Specifically, for order abnormality failures caused by system abnormalities, i.e., problems with the introduction of new business requirements, business problems caused by business promotion, environmental problems, and the introduction of rule center projects, the device will immediately retry the abnormal order three times. For corresponding order abnormality failures caused by business rule restrictions, such as order abnormality failures caused by billing period restrictions, corresponding order retry strategies can be implemented.
[0053] Among them, the three-time retry strategy for abnormal orders is to implement a step retry strategy, that is, retry once every 12 seconds, for a total of three times. For abnormal orders caused by the billing period limit, a timer can be set. By adjusting the timer, multiple and long-interval retry operations on the order can be achieved. For example, in the case of insufficient funds, it can be retried once a day for 7 days.
[0054] In a possible implementation of the present application, the order processing method may further include: according to the type of abnormal order, cleaning the abnormal orders at different preset periods, and the preset period corresponds to the type of abnormal order.
[0055] That is to say, some abnormal orders have little impact on the business system and need to be cleaned up regularly to avoid excessive accumulation and affect the operating resources of the business middle platform. This embodiment can execute different cleaning strategies according to different scenarios and set different timeout cleaning times by configuring the order status. For example, through automation tools, abnormal orders that have timed out and have no impact on the business are automatically cleaned up. Before cleaning, staff can be reminded through pop-up windows and other methods, and staff can manually stop the current cleaning operation according to corresponding needs.
[0056] The embodiment of the present application, by introducing prometheus technology, adding order retry and cleaning automation tools, greatly reduces the time-consuming operation of staff and reduces labor costs through automation. At the same time, the alarm function can detect order failures in time, improving the perception of the system by front-line staff in the business hall.
[0057] like Figure 3 As shown, it is a schematic diagram of an order processing device provided in an embodiment of the present application. Figure 3As shown, the order processing device may include: a first acquisition module 301, a determination module 302, a classification module 303 and a processing module 304.
[0058] Among them, the first acquisition module 301 is used to obtain the order information of the order generated in the business process, and the order information includes order data; the determination module 302 is used to determine the order status of the order according to the order data, and the order status includes normal and abnormal; the classification module 303 is used to classify the abnormal orders according to the order data when the order is an abnormal order; the processing module 304 is used to perform different retry processing on the abnormal orders according to the category of the abnormal orders, and the retry processing is used to make the order status of at least some abnormal orders become normal.
[0059] In the embodiment of the present application, first, the first acquisition module 301 acquires the order information of the order generated in the business process, and the order information includes order data. Then, the determination module 302 determines the order status of the order according to the order data, and the order status includes normal and abnormal. When the order is an abnormal order, the classification module 303 classifies the abnormal order according to the order data. Finally, the processing module 304 performs different retry processes on the abnormal order according to the category of the abnormal order. The retry process is used to make the order status of at least some abnormal orders become normal. In the embodiment of the present application, when an order abnormality is monitored, different retry strategies are formulated according to the type of order to make at least some abnormal orders become normal orders. The operation time of the staff is greatly reduced through automation, and the efficiency is improved.
[0060] In a possible implementation of the present application, the determination module 302 is used to: determine multiple fields to be compared based on historical data in the order data; when the fields to be compared in the current data in the order data exceed the field threshold, determine that the order status of the order is abnormal.
[0061] In a possible implementation manner of the present application, the order processing device further includes a second acquisition module and an alarm module.
[0062] Among them, the second acquisition module is used to obtain the number of abnormal orders within a preset time period and the average number of abnormal orders in the same historical time period; the alarm module is used to perform alarm processing based on the number of abnormal orders and the average data of abnormal orders.
[0063] In a possible implementation of the present application, the alarm module is used to: determine the growth amount of the abnormal number based on the number of abnormal orders and the average data of the abnormal orders; perform alarm processing when the growth amount exceeds a first threshold; determine the growth ratio of the abnormal number when the growth amount does not exceed the first threshold; perform alarm processing when the growth ratio exceeds a second threshold; determine the growth amount of abnormal time consumption when the growth ratio does not exceed the first threshold; perform alarm processing when the growth amount of abnormal time consumption exceeds a third threshold; determine the growth ratio of abnormal time consumption when the growth amount of abnormal time consumption does not exceed the third threshold; and perform alarm processing when the growth ratio of abnormal time consumption exceeds a fourth threshold.
[0064] In a possible implementation of the present application, the processing module 304 is used to: when the abnormal order is caused by a system abnormality, retry the abnormal order a first preset number of times within a first time period; when the abnormal order is caused by business rule restrictions, retry the abnormal order a second preset number of times within a second time period, wherein the duration of the second time period is greater than the duration of the first time period, and the second preset number is greater than the first preset number.
[0065] In a possible implementation of the present application, the order processing device also includes a cleaning module.
[0066] Among them, the cleaning module is used to clean up abnormal orders at different preset periods according to the types of abnormal orders, and the preset period corresponds to the type of abnormal orders.
[0067] The function of the order processing device of this application has been Figure 1-Figure 2 The method embodiment shown is described in detail, so for any details not provided in the description of this embodiment, please refer to the relevant descriptions in the aforementioned embodiments, which will not be repeated here.
[0068] Optionally, an embodiment of the present application also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned order processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0069] Optionally, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned order processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0070] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0072] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for processing an order, characterized in that: include: Obtaining order information of an order generated within a business process, wherein the order information includes order data; Determine the order status of the order according to the order data, where the order status includes normal and abnormal; In the case where the order is an abnormal order, classifying the abnormal order according to the order data; According to the category of the abnormal order, different retry processes are performed on the abnormal order, and the retry process is used to make the order status of at least part of the abnormal orders become normal.
2. The method according to claim 1, characterized in that Determining the order status of the order according to the order data includes: Determine multiple fields to be compared based on historical data in the order data; When the to-be-compared field in the current data in the order data exceeds the field threshold, it is determined that the order status of the order is abnormal.
3. The method according to claim 1, characterized in that The method further comprises: Get the number of abnormal orders within a preset time period and the average number of abnormal orders in the same historical time period; Alarm processing is performed based on the number of abnormal orders and the average data of the abnormal orders.
4. The method according to claim 3, characterized in that The performing alarm processing according to the number of the abnormal orders and the average data of the abnormal orders includes: Determine the growth amount of the abnormal quantity according to the quantity of the abnormal orders and the average data of the abnormal orders; When the growth amount exceeds a first threshold, an alarm is issued; In a case where the growth amount does not exceed the first threshold, determining a growth ratio of the abnormal quantity; When the growth rate exceeds a second threshold, an alarm is issued; When the growth ratio does not exceed the first threshold, determining the abnormal time consumption growth amount; When the abnormal time consumption increases by more than a third threshold, an alarm is issued; When the abnormal time consumption increase amount does not exceed the third threshold, determining the abnormal time consumption increase ratio; When the abnormal time consumption growth ratio exceeds the fourth threshold, an alarm process is performed.
5. The method according to claim 1, characterized in that The performing different retry processes on the abnormal order according to the category of the abnormal order includes: In the case where the abnormal order is caused by a system abnormality, performing a first preset number of retries on the abnormal order within a first time period; In the case that the abnormal order is caused by business rule restrictions, the abnormal order is retried a second preset number of times within a second time period, wherein the duration of the second time period is greater than the duration of the first time period, and the second preset number is greater than the first preset number.
6. The method according to claim 1, characterized in that The method further comprises: According to the type of the abnormal order, the abnormal order is cleaned up at different preset periods, and the preset period corresponds to the type of the abnormal order.
7. An order processing device, characterized in that: include: A first acquisition module is used to acquire order information of an order generated in a business process, wherein the order information includes order data; A determination module, used to determine the order status of the order according to the order data, wherein the order status includes normal and abnormal; A classification module, used for classifying the abnormal order according to the order data when the order is an abnormal order; A processing module is used to perform different retry processes on the abnormal orders according to the categories of the abnormal orders, and the retry processes are used to make the order status of at least some of the abnormal orders become normal.
8. The device according to claim 7, characterized in that The determining module is used to: Determine multiple fields to be compared based on historical data in the order data; When the to-be-compared field in the current data in the order data exceeds the field threshold, it is determined that the order status of the order is abnormal.
9. The device according to claim 7, characterized in that The device also includes: The second acquisition module is used to obtain the number of abnormal orders within a preset time period and the average number of abnormal orders in the same historical time period; The alarm module is used to perform alarm processing according to the number of the abnormal orders and the average data of the abnormal orders.
10. The device according to claim 7, characterized in that The processing module is used to: In the case where the abnormal order is caused by a system abnormality, performing a first preset number of retries on the abnormal order within a first time period; In the case that the abnormal order is caused by business rule restrictions, the abnormal order is retried a second preset number of times within a second time period, wherein the duration of the second time period is greater than the duration of the first time period, and the second preset number is greater than the first preset number.
