Order processing method and device, computer equipment and storage medium
By determining the target order from the on-the-go order and determining the processing rules based on its parameter information, the insurance order is processed, and the problem of inefficient order processing in the prior art is solved, and efficient order processing is achieved.
Patent Information
- Application Number
- CN202311594050.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2025-05-27
AI Technical Summary
The prior art is inefficient when handling uninsured, unsigned or uneffected insurance orders, and requires batch processing of multiple order cancellation rules, resulting in reduced processing efficiency.
The target order is processed by determining the target order from the on-the-go order, obtaining its parameter information, and determining the corresponding target processing rules from the processing rules based on this information. This method requires only one batch processing of processing rules to complete order processing.
Improves the efficiency of order processing, reduces processing time, and reduces system complexity and cost.
Smart Images

Figure CN120047208A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular, to an order processing method, apparatus, computer device, and storage medium. Background Art
[0002] During the insurance purchase process of customers, in-transit valid insurance orders for various business process nodes are generated. These orders are not underwritten / not signed / not effective for various reasons. Due to insurance business rules or operation rules, these valid in-transit policy orders will affect the customer's cumulative insured amount and premium, or the number of the customer's valid policies, etc., which will affect the customer's re-purchase or sales business expansion, etc., or occupy order resources at nodes such as the underwriting pool of the insurance company, affecting operation operations, etc.; the insurance company needs to cancel / revoke these valid in-transit orders according to the actual business scenario or rules.
[0003] During the process of customers purchasing products, various orders for various business process nodes are generated. Due to the business rules or operation rules of purchasing products, if these orders are not processed in a timely manner, it may affect operation operations, affect the customer's re-purchase or sales business expansion, etc.
[0004] For example, based on different requirements for the valid duration of orders to be retained in various business scenarios, different order cancellation rules need to be designed for orders in different business scenarios. During the order processing process, each order cancellation rule requires a batch process. Suppose there are 2 order cancellation rules. First, the orders that meet the second order cancellation rule need to be excluded through the batch process of the first order cancellation rule, and then the orders that meet the second order cancellation rule are processed in the batch process of the second order cancellation rule. This results in a reduction in the efficiency of order processing. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide an order processing method, apparatus, computer device, and storage medium that can improve the efficiency of order processing.
[0006] On the one hand, an order processing method is provided, and the method includes:
[0007] Determine a target in-transit order to be processed from in-transit orders;
[0008] Obtain parameter information of the target in-transit order;
[0009] Determine a target processing rule corresponding to the target in-transit order from processing rules according to the parameter information;
[0010] Process the target in-transit order according to the target processing rule.
[0011] On the other hand, an order processing apparatus is provided, including:
[0012] An order determination module, configured to determine a target in-transit order to be processed from in-transit orders;
[0013] A parameter acquisition module, configured to acquire parameter information of the target in-transit order;
[0014] A rule determination module, configured to determine a target processing rule corresponding to the target in-transit order from processing rules according to the parameter information;
[0015] A processing module, configured to process the target in-transit order according to the target processing rule.
[0016] In one embodiment, the apparatus further includes:
[0017] A rule formulation module, configured to formulate processing rules according to business scenarios and / or business rules;
[0018] A sorting module, configured to sort the processing rules to obtain sorted processing rules;
[0019] The rule determination module includes:
[0020] A rule determination sub-module, configured to determine the target processing rule corresponding to the target in-transit order from the sorted processing rules according to the parameter information.
[0021] In one embodiment, the apparatus further includes:
[0022] An update detection module, configured to detect whether the processing rules are updated;
[0023] A re-sorting module, configured to, in response to detecting that the processing rules are updated, re-sort the changed processing rules to obtain new sorted processing rules.
[0024] In one embodiment, the rule determination module further includes:
[0025] A condition acquisition sub-module, configured to sequentially set the sorted processing rules as rules to be matched and acquire operating conditions of the rules to be matched;
[0026] A condition determination sub-module, configured to determine whether the parameter information of the target in-transit order satisfies the operating conditions;
[0027] A first target setting sub-module, configured to, in response to the parameter information of the target in-transit order satisfying the operating conditions, set the rule to be matched as the target processing rule;
[0028] The first return sub-module is configured to return the step of sequentially setting the sorted processing rules as the rules to be matched in response to the parameter information of the target in-transit order not satisfying the operating conditions.
[0029] In one embodiment, the rule determination module further includes:
[0030] The first final determination sub-module is configured to determine whether the rule to be matched is the last processing rule in response to the parameter information of the target in-transit order not satisfying the operating conditions;
[0031] The second return sub-module is configured to return the step of sequentially setting the sorted processing rules as the rules to be matched in response to the rule to be matched not being the last processing rule;
[0032] The first non-processing sub-module is configured to set the target processing rule as a rule that does not process the order in response to the rule to be matched being the last processing rule.
[0033] In one embodiment, the rule determination module further includes:
[0034] The duration determination sub-module is configured to determine whether the target in-transit order meets a preset cancellation order duration in response to the parameter information of the target in-transit order satisfying the operating conditions;
[0035] The second target setting sub-module is configured to set the cancellation order rule as the target processing rule in response to the target in-transit order meeting the preset cancellation order duration;
[0036] The second final determination sub-module is configured to determine whether the rule to be matched is the last processing rule in response to the target in-transit order not meeting the preset cancellation order duration;
[0037] The third return sub-module is configured to return the step of sequentially setting the sorted processing rules as the rules to be matched in response to the rule to be matched not being the last processing rule;
[0038] The second non-processing sub-module is configured to set the target processing rule as a rule that does not process the order in response to the rule to be matched being the last processing rule.
[0039] In one embodiment, the order determination module includes:
[0040] The order determination sub-module is configured to determine all in-transit orders at preset time intervals;
[0041] The polling sub-module is configured to poll all the in-transit orders and sequentially set each in-transit order as the in-transit order to be processed.
[0042] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above steps are implemented:
[0043] In yet another aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above steps are implemented.
[0044] The above order processing method, device, computer device, and storage medium determine a target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information of the target in-transit order, and then process the target in-transit order through the target processing rule. In this process, only one batch processing of the processing rule is required to process the order, thereby improving the efficiency of order processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is an application environment diagram of the order processing method provided by an embodiment of the present invention;
[0046] Figure 2 It is a flowchart of the order processing method provided by an embodiment of the present invention;
[0047] Figure 3 It is another flowchart of the order processing method provided by an embodiment of the present invention;
[0048] Figure 4 It is yet another flowchart of the order processing method provided by an embodiment of the present invention;
[0049] Figure 5 It is a structural block diagram of the order processing device provided by an embodiment of the present invention;
[0050] Figure 6 It is an internal structure diagram of the computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] In order to make the objectives, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The order processing method provided by the present application can be applied, for example, as Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The user generates an in-transit order by operating the terminal 102. The server 104 collects the in-transit order through the terminal 102, then determines the target in-transit order to be processed from the in-transit order, then obtains the parameter information of the target in-transit order, and then determines the target processing rule corresponding to the target in-transit order from the processing rules, and finally processes the target in-transit order according to the target processing rule.
[0053] Among them, the terminal 102 can be but is not limited to various personal computers, laptop computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.
[0054] In one embodiment, as Figure 2 shown, an order processing method is provided. Taking the server in Figure 1 as an example for illustration, the method includes the following steps:
[0055] Step S101, determine the target in-transit order to be processed from the in-transit order;
[0056] An in-transit order refers to an order that the customer has placed but has not been fully executed. Among them, according to different business requirements and industry classifications, the in-transit order can be an in-transit commodity order, an in-transit service order, an in-transit subscription order, an in-transit group purchase order, an in-transit customization order, an in-transit rental order, etc. The type of in-transit order is not specifically limited here. In one embodiment, the order can be an insurance order. At this time, the in-transit order is an in-transit insurance policy, which is an insurance policy that the customer has placed but has not been underwritten, not signed, and / or not taken effect.
[0057] In one embodiment, all in-transit orders can be determined every preset time period first; then all in-transit orders are polled, and each in-transit order is set as the in-transit order to be processed in turn.
[0058] Among them, the preset time period is 3 hours, 5 hours or one day, etc., which can be set according to the data volume of the in-transit order. The value of the preset time period is not specifically limited here. After all in-transit orders are taken out, a set of in-transit orders conductOrderInfos can be set: {conductOrderInfo1, conductOrderInfo2,..., conductOrderInfoN}, where conductOrderInfoN is the Nth in-transit order and N is a positive integer. Then each in-transit order is processed in turn.
[0059] Step S102, obtain the parameter information of the target in-transit order;
[0060] The parameter information can be determined through the detailed information of the target in-transit order. In one embodiment, the parameter information of the in-transit order includes at least one of the following parameters: order identification recOrderNo, branch company manageCom to which the order belongs, activity identification activityId to which the order belongs, channel identification Channelid to which the order belongs, insured area to which the order belongs, insured time applyTime to which the order belongs, sales channel bussType to which the order belongs, product code productCode to which the order belongs, payment method paymode to which the order belongs, underwriting conclusion flag uwConclusionFlag to which the order belongs, and customer information. Among them, the customer information includes at least one of the following unique customer information: the name of the applicant, gender, document type, document number, date of birth, etc. Please refer to Table 1 below. Table 1 provides the parameter information of a target in-transit order.
[0061] Table 1
[0062] Order identification recOrderNo 10000001 Branch company to which the order belongs manageCom Beijing Branch Channel identification Channelid to which the order belongs 02 Insurance application time applyTime to which the order belongs 2022-2-25 Product code productCode to which the order belongs 13
[0063] Step S103, determine the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information;
[0064] In advance, the processing rules can be formulated according to the business scenario and / or business rules first; then the processing rules are sorted to obtain a sorting table. Among them, the business scenarios include: different activities, different branch companies, different ordering areas, different payment methods, different products, and different channel access parties, etc. The business rules include that the retention durations required for orders in different activities are different, the retention durations required for orders in different branch companies are different, the retention durations required for orders in different ordering areas are different, the retention durations required for orders of different products are different, the retention durations required for orders of different payment methods are different, and the retention durations required for orders of different channel access parties are different, etc.
[0065] The processing rules can be sorted according to the priority order to generate a processing rule configuration table. In one embodiment, the processing rule configuration table includes at least one of the following configuration information: technical serial number serinalNo, description information discription, priority prioritylevel, running condition condition, rule name regularName, rule details regular, creation time makeTime, update time modityTime, rule validity flag validFlag, and rule type regularType. Please refer to Table 2 below. Table 2 shows a processing rule configuration table.
[0066] Table 2
[0067]
[0068] Multiple processing rules conductOrderRegularInfo1, conductOrderRegularInfo2, ……, conductOrderRegularInfoN can be formulated in ways such as functions, expressions, SQL, etc., where conductOrderRegularInfoN is the Nth processing rule. According to the business scenario and / or business rules, formulating processing rules can make the business code logic clear and can flexibly configure the processing rules. When adding or deleting a processing rule, only the update of the processing rule needs to be performed in the database, and the priority order of the processing rules is re-determined. Thus, there is no need to develop business code for different processing rules, nor to maintain business code with high complexity and high coupling degree. Furthermore, by decoupling the business code, the system complexity is reduced, the cost is reduced, and the efficiency of business response is improved.
[0069] Furthermore, since when new business scenarios and / or new business rules appear, new processing rules can be formulated according to the new business scenarios and / or new business rules. When the business scenarios and / or new business rules are cancelled, the processing rules can be deleted. Therefore, the updated processing rules can be sorted regularly to obtain the new sorted processing rules.
[0070] After the step of sorting the processing rules, it is also possible to: detect whether the processing rules are updated; in response to detecting that the processing rules are updated, re-sort the changed processing rules to obtain the new sorted processing rules.
[0071] In one embodiment, it is possible to detect whether the number of processing rules has changed; in response to detecting that the number of processing rules has changed, determine that the processing rules are updated. Assume that the initial number of processing rules is 10. When the current number of processing rules is less than 10, it means that the number of processing rules has decreased, so it can be determined that the processing rules are updated. At this time, the processing rules in the sorting table can be deleted, and the processing rules behind the deleted processing rules can be migrated forward. When the current number of processing rules is greater than 10, it means that the number of processing rules has increased, and it can also be determined that the processing rules are updated. At this time, the newly added processing rules can be compared one by one with the processing rules in the sorting table from front to back in terms of priority to determine the position of the newly added processing rules in the sorting table, and then the newly added processing rules are inserted into this position, and the processing rules corresponding to this position and after this position are migrated backward.
[0072] In one embodiment, the creation time of the processing rule can also be obtained; when it is determined that the creation time is later than the preset time, it is determined that the processing rule is updated. The preset time can be set according to the actual situation. For example, it can be the time after the completion of the previous order processing. Assume that the preset time is the time after the completion of the previous order processing: November 1, 2023. When it is detected that the creation time of at least one processing rule is later than November 1, 2023, it indicates that a new processing rule has been added after this preset time. Therefore, it is determined that the processing rule is updated. At this time, the newly added processing rule can be compared with the processing rules in the sorting table one by one in order of priority from front to back to determine the position of the newly added processing rule in the sorting table, and then the newly added processing rule is inserted into this position, and the corresponding processing rules at and after this position are migrated backward.
[0073] In one embodiment, as Figure 3 shown, according to the parameter information, determining the target processing rule step corresponding to the target in-transit order from the processing rules includes:
[0074] Step S311, sequentially set the sorted processing rules as the rules to be matched, and obtain the running conditions of the rules to be matched;
[0075] Step S312, determine whether the parameter information of the target in-transit order meets the running conditions;
[0076] Step S313, in response to the parameter information of the target in-transit order meeting the running conditions, set the rule to be matched as the target processing rule;
[0077] Step S314, in response to the parameter information of the target in-transit order not meeting the running conditions, determine whether the rule to be matched is the last processing rule;
[0078] Step S315, in response to the rule to be matched being the last processing rule, set the target processing rule as the rule that does not process the order;
[0079] In response to the rule to be matched not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the rules to be matched.
[0080] Among them, the last processing rule is the one with the last position in the ranking. Suppose the target in-transit order is 10000001, and the sorted processing rules include the processing rules with serial numbers from 1 to 8. Among them, the last processing rule is the one with serial number 8. As shown in Table 1, the processing rule with serial number 1 can be first set as the rule to be matched, and its operating condition is obtained as: Channelid == "01". Since the channel identifier Channelid of the order to which the target in-transit order belongs is "02", the parameter information of the target in-transit order does not meet the above operating condition. In response to not meeting the operating condition and in response to the processing rule with serial number 1 not being the last processing rule, the processing rule with serial number 2 is then set as the rule to be matched, and its operating condition is obtained as: Channelid == "02". At this time, the channel identifier Channelid of the order to which the target in-transit order belongs is consistent with the operating condition of the processing rule with serial number 2, that is, the parameter information of the target in-transit order meets the above operating condition. In response to meeting the operating condition, the rule to be matched is set as the target processing rule.
[0081] In one embodiment, when the matching rule is a cancellation rule, as Figure 4 shown, the steps of determining the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information include:
[0082] Step S321, sequentially set the sorted processing rules as the rules to be matched, and obtain the operating conditions of the rules to be matched;
[0083] Step S322, determine whether the parameter information of the target in-transit order meets the operating conditions;
[0084] Step S323, in response to the parameter information of the target in-transit order meeting the operating conditions, determine whether the target in-transit order meets the preset cancellation duration;
[0085] Step S324, in response to the target in-transit order meeting the preset cancellation duration, set the cancellation rule as the target processing rule;
[0086] Step S325, in response to the target in-transit order not meeting the preset cancellation duration, or in response to the parameter information of the target in-transit order not meeting the operating conditions, determine whether the rule to be matched is the last processing rule;
[0087] Step S326, in response to the rule to be matched being the last processing rule, set the target processing rule as the rule that does not process the order;
[0088] In response to the rule to be matched not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the rules to be matched.
[0089] In one embodiment, the insurance time and the system time of the target in-transit order can be obtained to determine the creation duration of the target in-transit order, and then whether the target in-transit order meets the preset cancellation duration can be determined according to whether the creation duration exceeds the preset cancellation duration. When the creation duration is greater than or equal to the preset cancellation duration, it is determined that the target in-transit order meets the preset cancellation duration. When the creation duration is less than the preset cancellation duration, it is determined that the target in-transit order does not meet the preset cancellation duration.
[0090] Combined with the previous example, assume that the preset cancellation duration is 1 year and the system time is 2022-11-19. When the channel identifier Channelid to which the target in-transit order belongs is consistent with the operating condition of the processing rule with the sequence number 2, that is, when the parameter information of the target in-transit order meets the above operating condition, the insurance time of the target in-transit order can be obtained as 2022-2-25 and the system time as 2022-11-19. Since the creation duration is greater than the preset cancellation duration, it can be determined that the target in-transit order meets the preset cancellation duration. Thus, the cancellation rule is set as the target processing rule.
[0091] The above process filters the processing rules through in-transit orders, rather than filtering in-transit orders according to the current processing rules. Since the data volume of in-transit orders is often much larger than that of processing rules, the processing time of orders can be reduced by reducing the data processing volume. Further, in the processing of each order, only one batch processing service of a processing rule needs to be started. While maintaining each in-transit order according to the processing rules requires starting multiple batch processing services.
[0092] Step S104, process the target in-transit order according to the target processing rule.
[0093] The target processing rule can be a prompt rule, a cancellation rule, a statistical rule, etc., which can be set according to actual needs and will not be specifically limited here. For example, when the target processing rule is a prompt rule, a prompt message can be sent to the user who generates the target in-transit order, such as: prompting the user that the order has been placed but not paid, whether to continue paying for the order. When the target processing rule is a cancellation rule, the target in-transit order can be cancelled. When the target processing rule is a statistical rule, the information of the target in-transit order is statistically analyzed.
[0094] The above order processing method determines the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information of the target in-transit order, and then processes the target in-transit order through the target processing rule. In this process, only one batch processing of a processing rule is required to process the order, thereby improving the order processing efficiency.
[0095] It should be understood that although Figures 2 - 4The steps in the flowchart are shown in sequence according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 - 4 At least some of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least some of the sub-steps or stages of other steps or other steps.
[0096] In one embodiment, as Figure 5 shown, an order processing apparatus 50 is provided, including: an order determination module 501, a parameter acquisition module 502, a rule determination module 503, and a processing module 504. Among them, the order determination module 501 is used to determine a target in-transit order to be processed from in-transit orders; the parameter acquisition module 502 is used to acquire parameter information of the target in-transit order; the rule determination module 503 is used to determine a target processing rule corresponding to the target in-transit order from processing rules according to the parameter information; the processing module 504 is used to process the target in-transit order according to the target processing rule.
[0097] In one embodiment, the apparatus 50 further includes: a rule formulation module and a sorting module. Among them, the rule formulation module is used to formulate processing rules according to business scenarios and / or business rules; the sorting module is used to sort the processing rules to obtain sorted processing rules;
[0098] The rule determination module 503 includes: a rule determination sub-module, which is used to determine the target processing rule corresponding to the target in-transit order from the sorted processing rules according to the parameter information.
[0099] In one embodiment, the apparatus 50 further includes: an update detection module and a re-sorting module. Among them, the update detection module is used to detect whether the processing rules are updated; the re-sorting module is used to re-sort the changed processing rules in response to detecting that the processing rules are updated to obtain new sorted processing rules.
[0100] In one embodiment, the rule determination module 503 further includes: a condition acquisition sub-module, a condition determination sub-module, a first target setting sub-module, and a first return sub-module. Among them, the condition acquisition sub-module is configured to sequentially set the sorted processing rules as the rules to be matched, and acquire the operating conditions of the rules to be matched; the condition determination sub-module is configured to determine whether the parameter information of the target in-transit order meets the operating conditions; the first target setting sub-module is configured to, in response to the parameter information of the target in-transit order meeting the operating conditions, set the rule to be matched as the target processing rule; the first return sub-module is configured to, in response to the parameter information of the target in-transit order not meeting the operating conditions, return to the step of sequentially setting the sorted processing rules as the rules to be matched.
[0101] In one embodiment, the rule determination module 503 further includes: a first final determination sub-module, a second return sub-module, and a first non-processing sub-module. Among them, the first final determination sub-module is configured to, in response to the parameter information of the target in-transit order not meeting the operating conditions, determine whether the rule to be matched is the last processing rule; the second return sub-module is configured to, in response to the rule to be matched not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the rules to be matched; the first non-processing sub-module is configured to, in response to the rule to be matched being the last processing rule, set the target processing rule as a rule that does not process the order.
[0102] In one embodiment, the rule determination module 503 further includes: a duration determination sub-module, a second target setting sub-module, a second final determination sub-module, a third return sub-module, and a second non-processing sub-module. Among them, the duration determination sub-module is configured to, in response to the parameter information of the target in-transit order meeting the operating conditions, determine whether the target in-transit order meets a preset cancellation order duration; the second target setting sub-module is configured to, in response to the target in-transit order meeting the preset cancellation order duration, set the cancellation order rule as the target processing rule; the second final determination sub-module is configured to, in response to the target in-transit order not meeting the preset cancellation order duration, determine whether the rule to be matched is the last processing rule; the third return sub-module is configured to, in response to the rule to be matched not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the rules to be matched; the second non-processing sub-module is configured to, in response to the rule to be matched being the last processing rule, set the target processing rule as a rule that does not process the order.
[0103] In one embodiment, the order determination module includes: an order determination sub-module and a polling sub-module. Among them, the order determination sub-module is configured to determine all in-transit orders at preset time intervals; the polling sub-module is configured to poll all the in-transit orders and sequentially set each in-transit order as the in-transit order to be processed.
[0104] The above-mentioned order processing device determines a target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information of the target in-transit order, and then processes the target in-transit order through the target processing rule. In this process, only one batch processing of the processing rule is required to process the order, thereby improving the order processing efficiency.
[0105] For the specific limitations of the order processing device, reference can be made to the limitations on the order processing method in the above text, which will not be elaborated here. Each module in the above-mentioned order processing device can be implemented in whole or in part by software, hardware, and their combinations. The above-mentioned modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0106] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 6 shown. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the parameter information and processing rules of the order. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements an order processing method.
[0107] Those skilled in the art can understand that Figure 6 the structure shown in
[0108] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0109] Determine a target in-transit order to be processed from in-transit orders;
[0110] Obtain the parameter information of the target in-transit order;
[0111] Determine a target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information;
[0112] Process the target in-transit order according to the target processing rule.
[0113] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0114] Formulate processing rules according to the business scenario and / or business rules;
[0115] Sort the processing rules to obtain the sorted processing rules;
[0116] The step of determining a target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information includes:
[0117] Determine the target processing rule corresponding to the target in-transit order from the sorted processing rules according to the parameter information.
[0118] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0119] Detect whether the processing rules are updated;
[0120] In response to detecting that the processing rules are updated, re-sort the changed processing rules to obtain the new sorted processing rules.
[0121] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0122] Successively set the sorted processing rules as the rules to be matched, and obtain the running conditions of the rules to be matched;
[0123] Determine whether the parameter information of the target in-transit order meets the running conditions;
[0124] In response to the parameter information of the target in-transit order meeting the running conditions, set the rule to be matched as the target processing rule;
[0125] In response to the parameter information of the target in-transit order not meeting the running conditions, return to the step of successively setting the sorted processing rules as the rules to be matched.
[0126] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0127] In response to the parameter information of the target in-transit order not meeting the running conditions, determine whether the rule to be matched is the last processing rule;
[0128] In response to the to-be-matched rule not being the last processing rule, return the step of sequentially setting the sorted processing rules as the to-be-matched rule;
[0129] In response to the to-be-matched rule being the last processing rule, set the target processing rule to a rule that does not process the order.
[0130] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0131] In response to the parameter information of the target in-transit order satisfying the operating condition, determine whether the target in-transit order meets the preset cancellation duration;
[0132] In response to the target in-transit order meeting the preset cancellation duration, set the cancellation rule as the target processing rule;
[0133] In response to the target in-transit order not meeting the preset cancellation duration, determine whether the to-be-matched rule is the last processing rule;
[0134] In response to the to-be-matched rule not being the last processing rule, return the step of sequentially setting the sorted processing rules as the to-be-matched rule;
[0135] In response to the to-be-matched rule being the last processing rule, set the target processing rule to a rule that does not process the order.
[0136] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0137] Determine all in-transit orders at preset time intervals;
[0138] Poll all the in-transit orders and sequentially set each in-transit order as the to-be-processed in-transit order.
[0139] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0140] Determine a target in-transit order to be processed from the in-transit orders;
[0141] Obtain the parameter information of the target in-transit order;
[0142] According to the parameter information, determine a target processing rule corresponding to the target in-transit order from the processing rules;
[0143] Process the target in-transit order according to the target processing rule.
[0144] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0145] Formulate processing rules according to business scenarios and / or business rules;
[0146] Sort the processing rules to obtain the sorted processing rules;
[0147] The step of determining the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information includes:
[0148] Determine the target processing rule corresponding to the target in-transit order from the sorted processing rules according to the parameter information.
[0149] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0150] Detect whether the processing rules are updated;
[0151] In response to detecting that the processing rules are updated, re-sort the changed processing rules to obtain the new sorted processing rules.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0153] Successively set the sorted processing rules as the rules to be matched, and obtain the running conditions of the rules to be matched;
[0154] Determine whether the parameter information of the target in-transit order meets the running conditions;
[0155] In response to the parameter information of the target in-transit order meeting the running conditions, set the rule to be matched as the target processing rule;
[0156] In response to the parameter information of the target in-transit order not meeting the running conditions, return to the step of successively setting the sorted processing rules as the rules to be matched.
[0157] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0158] In response to the parameter information of the target in-transit order not meeting the running conditions, determine whether the rule to be matched is the last processing rule;
[0159] In response to the rule to be matched not being the last processing rule, return to the step of successively setting the sorted processing rules as the rules to be matched;
[0160] In response to the to-be-matched rule being the last processing rule, set the target processing rule to a rule that does not process the order.
[0161] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0162] In response to the parameter information of the target in-transit order satisfying the operating condition, determine whether the target in-transit order meets a preset cancellation duration;
[0163] In response to the target in-transit order meeting the preset cancellation duration, set the cancellation rule as the target processing rule;
[0164] In response to the target in-transit order not meeting the preset cancellation duration, determine whether the to-be-matched rule is the last processing rule;
[0165] In response to the to-be-matched rule not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the to-be-matched rule;
[0166] In response to the to-be-matched rule being the last processing rule, set the target processing rule to a rule that does not process the order.
[0167] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0168] Determine all in-transit orders at preset time intervals;
[0169] Poll all the in-transit orders and sequentially set each in-transit order as the to-be-processed in-transit order.
[0170] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and Rambus dynamic RAM (RDRAM), etc.
[0171] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0172] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. An order processing method, characterized in that, it includes: Determine the target in-transit order to be processed from the in-transit orders; Obtain the parameter information of the target in-transit order; According to the parameter information, determine the target processing rule corresponding to the target in-transit order from the processing rules; Process the target in-transit order according to the target processing rule.
2. The order processing method according to claim 1, characterized in that, Before the step of determining the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information, it further includes: Formulate processing rules according to the business scenario and / or business rules; Sort the processing rules to obtain the sorted processing rules; The step of determining the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information includes: According to the parameter information, determine the target processing rule corresponding to the target in-transit order from the sorted processing rules.
3. The order processing method according to claim 2, characterized in that, After the step of sorting the processing rules to obtain the sorted processing rules, it further includes: Detect whether the processing rules are updated; In response to detecting that the processing rules are updated, re-sort the changed processing rules to obtain the new sorted processing rules.
4. The order processing method according to any one of claims 1-3, characterized in that, The step of determining the target processing rule corresponding to the target in-transit order from the processing rules according to the parameter information includes: Successively set the sorted processing rules as the rules to be matched, and obtain the operating conditions of the rules to be matched; Determine whether the parameter information of the target in-transit order meets the operating conditions; In response to the parameter information of the target in-transit order meeting the operating conditions, set the rule to be matched as the target processing rule; In response to the parameter information of the target in-transit order not meeting the operating conditions, return to the step of successively setting the sorted processing rules as the rules to be matched.
5. The order processing method according to claim 4, characterized in that, The step of returning to the step of successively setting the sorted processing rules as the rules to be matched in response to the parameter information of the target in-transit order not meeting the operating conditions includes: In response to the parameter information of the target in-transit order not meeting the operating conditions, determine whether the rule to be matched is the last processing rule; In response to the rule to be matched not being the last processing rule, return to the step of successively setting the sorted processing rules as the rules to be matched; In response to the rule to be matched being the last processing rule, set the target processing rule as the rule that does not process the order.
6. The order processing method according to claim 4, characterized in that, When the rule to be matched is the order cancellation rule, after the step of determining whether the parameter information of the in-transit order meets the operating conditions, it further includes: In response to the parameter information of the target in-transit order meeting the operating conditions, determine whether the target in-transit order meets the preset order cancellation duration; In response to the target in-transit order satisfying the preset order cancellation duration, set the order cancellation rule to the target processing rule; In response to the target in-transit order not satisfying the preset order cancellation duration, determine whether the rule to be matched is the last processing rule; In response to the rule to be matched not being the last processing rule, return to the step of sequentially setting the sorted processing rules as the rule to be matched; In response to the rule to be matched being the last processing rule, set the target processing rule to a rule that does not process the order.
7. The order processing method according to claim 1, wherein, the step of determining a target in-transit order to be processed from in-transit orders includes: Determine all in-transit orders at preset time intervals; Poll all the in-transit orders and sequentially set each in-transit order as the in-transit order to be processed.
8. An order processing device, wherein, the device includes: An order determination module for determining a target in-transit order to be processed from in-transit orders; A parameter acquisition module for acquiring parameter information of the target in-transit order; A rule determination module for determining a target processing rule corresponding to the target in-transit order from processing rules according to the parameter information; A processing module for processing the target in-transit order according to the target processing rule.
9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, when the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. 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 method according to any one of claims 1 to 7 are implemented.