An order allocation method and computing device
By obtaining order field values and using computing devices to determine group identifiers and matching rules, the problem of low order allocation accuracy was solved, achieving efficient and accurate production location allocation and order delivery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HENAN QINWEI DIGITAL TECHNOLOGY CO LTD
- Filing Date
- 2026-02-14
- Publication Date
- 2026-06-26
AI Technical Summary
The existing technology suffers from low accuracy in the order allocation process, resulting in low efficiency in order allocation.
By obtaining the field values of multiple fields of the target order, the computing device determines the group identifier based on the field value of the first type of field, and based on the group identifier and the field value of the second type of field, the target rule matching the target order is determined from the pre-configured rule set, and then the production location is allocated according to the target rule.
This improves the efficiency and accuracy of determining the production location, thereby increasing order delivery efficiency and ensuring the accuracy and efficiency of order allocation.
Smart Images

Figure CN122288178A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computing device technology, and in particular to an order allocation method and computing device. Background Technology
[0002] As a company's business continues to grow, it will set up multiple production sites (with production, warehousing, and transportation capabilities) based on factors such as logistics costs and customer delivery time requirements. Once an order is placed, a production site needs to be assigned to that order.
[0003] In related technologies, during the order allocation process, users can manually specify the production location for each order based on their personal experience and the actual situation of the order. This results in a low accuracy rate in order allocation. Summary of the Invention
[0004] This application provides an order allocation method and computing device that can improve the efficiency and accuracy of determining the production location corresponding to an order, thereby improving the order delivery efficiency.
[0005] In a first aspect, embodiments of this application provide an order allocation method, including:
[0006] Retrieve the field values of multiple fields in the target order; the multiple fields include at least one type I field and at least one type II field;
[0007] Based on the field value of the first type of field, determine at least one group identifier corresponding to the first type of field;
[0008] Based on at least one group identifier and at least one second-type field value, a target rule matching the target order is determined from a set of candidate rules included in a pre-configured rule set, wherein the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second-type field and the place of production;
[0009] The target orders are allocated and processed according to the production location indicated by the target rules.
[0010] In this scheme, the computing device can obtain the field values of multiple fields of the target order; these fields include at least one first-type field and at least one second-type field. The computing device can determine at least one group identifier corresponding to the first-type field based on its field value. Based on the at least one group identifier and the field value of the at least one second-type field, the computing device can determine a target rule matching the target order from multiple candidate rules included in a pre-configured rule set. The candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second-type field and the production location. The computing device can then allocate the target order according to the production location indicated by the target rule. Through this method, based on the field values of multiple fields of the target order, a target rule matching the target order can be determined from multiple candidate rules, and the target order can be allocated according to the production location indicated by the target rule. This improves the efficiency and accuracy of determining the production location, thereby improving the allocation efficiency and accuracy of the target order, and ultimately improving the delivery efficiency of the target order.
[0011] In one implementation, based on at least one group identifier and the field value of at least one second-type field, a target rule matching the target order is determined from a set of candidate rules included in a pre-configured rule set, including:
[0012] For any candidate rule, obtain at least one calculation rule from the candidate rules;
[0013] If the calculation rule includes the target group identifier corresponding to the first type of field, the matching result between the calculation rule and the target order is determined based on at least one group identifier and the target group identifier; or, if the calculation rule includes the target field value of the second type of field, the matching result between the calculation rule and the target order is determined based on the field value of the second type of field and the target field value of the second type of field.
[0014] If at least one calculation rule and the target order both indicate a successful match, the candidate rule will be determined as the matching rule.
[0015] Determine the target rule based on at least one matching rule.
[0016] In this scheme, for any candidate rule, the computing device can determine at least one calculation rule among the candidate rules. The calculation rule includes a target field value for a second type of field, or it includes a target group corresponding to a first type of field. If the calculation rule includes a target group identifier corresponding to a first type of field, the computing device can determine the matching result between the calculation rule and the target order based on at least one group identifier and the target group identifier; or, if the calculation rule includes a target field value for a second type of field, it can determine the matching result between the calculation rule and the target order based on the field value of the second type of field and the target field value of the second type of field. If the matching result of at least one calculation rule with the target order indicates a successful match, the computing device can determine the candidate rule as the matching rule. The computing device can determine the target rule based on at least one matching rule. By matching each calculation rule among the candidate rules one by one, the efficiency and accuracy of filtering out the target rule from multiple candidate rules are improved.
[0017] In one implementation, the target rule is determined based on at least one matching rule, including:
[0018] Determine if the number of matching rules is greater than 1;
[0019] If the number of matching rules is greater than 1, obtain the priority of each matching rule;
[0020] Determine the number of calculation rules corresponding to each matching rule; the number of calculation rules is the number of calculation rules that match the order among at least one calculation rule included in the matching rule.
[0021] The target rule is determined from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule.
[0022] In this scheme, when the number of matching rules is greater than one, the computing device can obtain the priority of each matching rule and the number of calculation rules corresponding to each matching rule (the number of calculation rules that match the target order among at least one calculation rule included in the matching rule). The computing device can then determine the target rule from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule. When multiple candidate rules match the target order, by utilizing the number of calculation rules and their priorities for a double-filtering approach, the determined target rule matches the actual situation of the target order, improving the efficiency and accuracy of determining the target rule from multiple matched candidate rules.
[0023] In one implementation, the target rule is determined from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule, including:
[0024] Based on the number of calculation rules corresponding to each matching rule, at least one target matching rule is determined from multiple matching rules; among them, the target matching rule has the largest number of calculation rules.
[0025] Determine if the number of target matching rules is 1;
[0026] If it is determined that the number of target matching rules is not 1, the target rule is determined from the multiple target matching rules according to their priority; or,
[0027] If the number of target matching rules is determined to be 1, then the target matching rule is determined as the target rule.
[0028] In this scheme, the computing device can determine the target rule through a two-layer filtering method: first, the target matching rule is determined based on the "number of calculation rules," and if there are multiple target matching rules, they are then filtered according to priority, ultimately outputting a unique target rule. By using the number of calculation rules and their priority for dual filtering, the determined target rule is matched with the actual situation of the target order (the business objectives of the target order, such as reducing cross-regional logistics costs and ensuring timely delivery of key customer orders), thus improving the efficiency and accuracy of determining the target rule from multiple matched candidate rules.
[0029] In one implementation, obtaining at least one computational rule from the candidate rules includes:
[0030] Get the enabled status of the candidate rules;
[0031] If the candidate rule is enabled, obtain at least one calculation rule from the candidate rules.
[0032] In this scheme, the computing device, when the candidate rules are in an enabled state, acquires at least one computational rule from among the candidate rules to initiate the process of determining the target rule from multiple candidate rules. This method allows the filtering process to target the candidate rules that are already enabled, thereby reducing the filtering scope, reducing computational load, and improving the efficiency and accuracy of determining the target rule from multiple candidate rules. It also avoids situations where the production location indicated by the determined target rule is unusable.
[0033] In one implementation, based on the field value of the first type of field, at least one group identifier corresponding to the first type of field is determined, including:
[0034] For any candidate group identifier among at least one candidate group identifier, obtain at least one field value corresponding to the candidate group identifier;
[0035] Determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier;
[0036] If the field value of the first type of field is determined to be at least one field value corresponding to the candidate group identifier, the candidate group identifier is determined as the group identifier corresponding to the first type of field.
[0037] In this scheme, the computing device can obtain at least one field value corresponding to at least one candidate group identifier. If it determines that the field value of a first-type field belongs to at least one field value corresponding to a candidate group identifier, the candidate group identifier is then identified as the group identifier corresponding to the first-type field. This method enables the computing device to determine the group identifier corresponding to the first-type field even in complex business scenarios (such as the same first-type field (salesperson) corresponding to a field value that belongs to multiple group identifiers based on region and industry), improving the efficiency and accuracy of determining at least one group identifier corresponding to the first-type field.
[0038] In one implementation, before obtaining at least one field value corresponding to the candidate group identifier, the method further includes:
[0039] Determine the grouping type corresponding to the first type of field;
[0040] Determine at least one candidate group identifier corresponding to the group type.
[0041] In this scheme, the computing device can determine the grouping type corresponding to the first type of field. The computing device can also determine at least one candidate grouping identifier corresponding to each grouping type. Through this method, multiple first-type fields (such as salesperson, product model, customer, etc.) affecting the allocation of production location in a target order can be divided into different grouping types according to business attributes, and then multiple candidate grouping identifiers can be configured for different grouping types. This method reduces the filtering range for determining at least one grouping identifier corresponding to a first-type field, improving the efficiency and accuracy of determining this identifier.
[0042] In one implementation, multiple fields include contract fields; the target order is allocated based on the production location indicated by the target rules, including:
[0043] Based on the field values of the contract fields, multiple selected orders are identified; wherein the field values of the contract fields of each selected order are consistent with the field values of the contract fields of the target order; the multiple selected orders include the target order;
[0044] Determine whether the production locations indicated by the target rules matching multiple selected orders are the same.
[0045] If the production locations indicated by the target rules for multiple selected orders are not the same, a reminder message will be generated.
[0046] Send reminder messages to terminal devices;
[0047] Obtain confirmation information sent by the terminal device; wherein, the confirmation information indicates the target production location corresponding to each target order; the confirmation information is entered by the user based on the reminder information displayed on the terminal device;
[0048] Based on the confirmed information, the orders are allocated and processed.
[0049] In this solution, when multiple selected orders under the same contract correspond to different production locations, the computing device can generate a reminder message and send it to the terminal device. This allows the user to input confirmation information (indicating the target production location for each selected order) based on the reminder message displayed on the terminal device. The computing device can then allocate and process the target orders according to the confirmation information. This dual mechanism of "automatic production location verification + manual confirmation" avoids the problem of dispersed production locations caused by contract splitting and multi-order collaborative production, ensuring the continuity of production under the same contract (e.g., reducing cross-production location material allocation costs) and improving the matching degree between order allocation and actual order conditions.
[0050] In one implementation, the method further includes:
[0051] If multiple selected orders are found to have the same production location indicated by the target rules, the target orders are allocated and processed according to the production location indicated by the target rules.
[0052] In this solution, the computing device can allocate and process target orders based on the production location indicated by the target rules matching multiple selected orders, provided that the production locations are the same. This avoids production location conflicts among multiple selected orders under the same contract, thereby reducing order delivery costs.
[0053] Secondly, embodiments of this application provide an order allocation device, comprising:
[0054] The acquisition module is used to acquire the field values of multiple fields of the target order; the multiple fields include at least one first-type field and at least one second-type field;
[0055] The processing module is used to determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field;
[0056] The processing module is also used to determine a target rule that matches the target order from a plurality of candidate rules included in a pre-configured rule set based on at least one group identifier and at least one field value of a second type field, wherein the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type field and the place of production;
[0057] The allocation module is used to allocate target orders according to the production location indicated by the target rules.
[0058] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0059] In one implementation, the processing module is specifically used for:
[0060] For any candidate rule, obtain at least one calculation rule from the candidate rules;
[0061] If the calculation rule includes the target group identifier corresponding to the first type of field, the matching result between the calculation rule and the target order is determined based on at least one group identifier and the target group identifier; or, if the calculation rule includes the target field value of the second type of field, the matching result between the calculation rule and the target order is determined based on the field value of the second type of field and the target field value of the second type of field.
[0062] If at least one calculation rule and the target order both indicate a successful match, the candidate rule will be determined as the matching rule.
[0063] Determine the target rule based on at least one matching rule.
[0064] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0065] In one implementation, the processing module is specifically used for:
[0066] Determine if the number of matching rules is greater than 1;
[0067] If the number of matching rules is greater than 1, obtain the priority of each matching rule;
[0068] Determine the number of calculation rules corresponding to each matching rule; the number of calculation rules is the number of calculation rules that match the order among at least one calculation rule included in the matching rule.
[0069] The target rule is determined from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule.
[0070] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0071] In one implementation, the processing module is specifically used for:
[0072] Based on the number of calculation rules corresponding to each matching rule, at least one target matching rule is determined from multiple matching rules; among them, the target matching rule has the largest number of calculation rules.
[0073] Determine if the number of target matching rules is 1;
[0074] If it is determined that the number of target matching rules is not 1, the target rule is determined from the multiple target matching rules according to their priority; or,
[0075] If the number of target matching rules is determined to be 1, then the target matching rule is determined as the target rule.
[0076] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0077] In one implementation, the processing module is specifically used for:
[0078] Get the enabled status of the candidate rules;
[0079] If the candidate rule is enabled, obtain at least one calculation rule from the candidate rules.
[0080] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0081] In one implementation, the processing module is specifically used for:
[0082] For any candidate group identifier among at least one candidate group identifier, obtain at least one field value corresponding to the candidate group identifier;
[0083] Determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier;
[0084] If the field value of the first type of field is determined to be at least one field value corresponding to the candidate group identifier, the candidate group identifier is determined as the group identifier corresponding to the first type of field.
[0085] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0086] In one implementation, the processing module is also used for:
[0087] Determine the grouping type corresponding to the first type of field;
[0088] Determine at least one candidate group identifier corresponding to the group type.
[0089] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0090] In one implementation, multiple fields include contract fields; the allocation module is specifically used for:
[0091] Based on the field values of the contract fields, multiple selected orders are identified; wherein the field values of the contract fields of each selected order are consistent with the field values of the contract fields of the target order; the multiple selected orders include the target order;
[0092] Determine whether the production locations indicated by the target rules matching multiple selected orders are the same.
[0093] If the production locations indicated by the target rules for multiple selected orders are not the same, a reminder message will be generated.
[0094] Send reminder messages to terminal devices;
[0095] Obtain confirmation information sent by the terminal device; wherein, the confirmation information indicates the target production location corresponding to each target order; the confirmation information is entered by the user based on the reminder information displayed on the terminal device;
[0096] Based on the confirmed information, the orders are allocated and processed.
[0097] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0098] In one implementation, the allocation module is also used for:
[0099] If multiple selected orders are found to have the same production location indicated by the target rules, the target orders are allocated and processed according to the production location indicated by the target rules.
[0100] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0101] Thirdly, embodiments of this application provide a computing device, including:
[0102] The processor, and the memory that is in communication with the processor;
[0103] Memory is used to store instructions that the computer executes;
[0104] The processor is used to execute computer execution instructions stored in memory to implement the method of the first aspect.
[0105] The computing device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be repeated here.
[0106] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the method of the first aspect.
[0107] When the computer-executable instructions in the computer-readable storage medium provided in this application are executed by a processor, the technical solutions shown in the above method embodiments can be implemented. The implementation principle and beneficial effects are similar, and will not be repeated here.
[0108] Fifthly, embodiments of this application provide a computer program product, including a computer program, which, when executed by a processor, is used to implement the method of the first aspect.
[0109] When the computer program in the computer program product provided in this application is executed by a processor, it can implement the technical solution shown in the above method embodiments. The implementation principle and beneficial effects are similar, and will not be repeated here. Attached Figure Description
[0110] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0111] Figure 1a A schematic diagram illustrating a scenario of an order allocation method provided in an embodiment of this application;
[0112] Figure 1b A diagram illustrating the display of reminder information on a terminal device;
[0113] Figure 1c A diagram illustrating how a terminal device obtains confirmation information.
[0114] Figure 2 A flowchart illustrating an embodiment of an order allocation method provided in this application;
[0115] Figure 3a A flowchart illustrating a second embodiment of an order allocation method provided in this application;
[0116] Figure 3b A schematic diagram of an order allocation process provided for an embodiment of this application;
[0117] Figure 4 A flowchart illustrating a third embodiment of an order allocation method provided in this application;
[0118] Figure 5 This is a schematic diagram of the structure of an order allocation device provided in an embodiment of this application;
[0119] Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Detailed Implementation
[0120] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments made by those skilled in the art under the guidance of these embodiments are within the scope of protection of this application.
[0121] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0122] This application provides an order allocation method. A computing device can obtain the field values of multiple fields of a target order; the multiple fields include at least one first-type field and at least one second-type field. The computing device can determine at least one group identifier corresponding to the first-type field based on the field value of the first-type field. Based on the at least one group identifier and the field value of the at least one second-type field, the computing device can determine a target rule matching the target order from multiple candidate rules included in a pre-configured rule set; wherein, the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second-type field and the production location. The computing device can allocate the target order according to the production location indicated by the target rule.
[0123] The above methods improve the efficiency and accuracy of determining the production location corresponding to the target order (the production location indicated by the target rule that matches the target order), thereby improving the order delivery efficiency.
[0124] The order allocation method of this application embodiment will be described in detail below.
[0125] Below, to facilitate understanding of the order allocation method provided in the embodiments of this application, in conjunction with... Figure 1a , Figure 1b as well as Figure 1c The application scenarios involved in the embodiments of this application will be introduced.
[0126] Figure 1a This is a schematic diagram illustrating a scenario of an order allocation method provided in an embodiment of this application. For example... Figure 1a As shown, the scenario includes a computing device 10 and a terminal device 20.
[0127] The computing device 10 can be a server or a server cluster. When the computing device 10 is a server, from an architectural point of view, the server can be a rack server, a high-density server, a tower server or a full rack server; from a functional point of view, the server can be a general-purpose server or an artificial intelligence server (AI server), for example, an artificial intelligence server can be an image processing server (GPU server).
[0128] Terminal device 20 may be, but is not limited to, various personal computers, laptops, smartphones, and tablets.
[0129] In this scenario:
[0130] The computing device 10 can obtain the field values of multiple fields of a target order; these fields include at least one first-type field and at least one second-type field. In one implementation, the computing device 10 can obtain order information of a target order sent by the terminal device 20. The computing device can obtain the field values of multiple fields in the order information.
[0131] The computing device 10 can determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field.
[0132] The computing device 10 can determine a target rule that matches the target order from a set of candidate rules included in a pre-configured rule set, based on at least one group identifier and the field value of at least one second type field. The candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type field and the production location.
[0133] The computing device 10 can allocate and process target orders according to the production location indicated by the target rules.
[0134] In another implementation, the computing device 10 can determine multiple selected orders based on the field values of the contract fields. The field values of the contract fields for each selected order are consistent with the field values of the contract fields for the target order; the multiple selected orders include the target order.
[0135] The computing device 10 can determine whether the production location indicated by the target rule matching multiple selected orders is the same production location.
[0136] If the computing device 10 determines that the production locations indicated by the target rules matching multiple selected orders are not the same, it can generate a reminder message and send the reminder message to the terminal device 20.
[0137] The computing device 10 can obtain confirmation information sent by the terminal device. This confirmation information indicates the target production location for each selected order. The confirmation information is entered by the user based on the reminder information displayed on the terminal device 20. For example, Figure 1b A diagram illustrating the display of reminder information on terminal devices. Figure 1c A diagram illustrating how a terminal device obtains confirmation information.
[0138] The computing device 10 can allocate and process target orders based on the confirmation information.
[0139] It should be noted that, Figure 1a This is a schematic diagram of a scenario provided in an embodiment of this application. This embodiment of the application does not necessarily represent... Figure 1a The document does not limit the actual form of the various devices included, nor does it specify the form of the devices. Figure 1a The interaction methods between devices are limited, and can be set according to actual needs when applying the solution.
[0140] The technical solution of this application will now be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0141] Figure 2 This is a flowchart illustrating an embodiment of an order allocation method provided in this application. See also... Figure 2 The method specifically includes the following steps:
[0142] S201: Retrieve the field values of multiple fields in the target order.
[0143] In this embodiment, the computing device can obtain the field values of multiple fields of the target order.
[0144] It should be noted that multiple fields may include at least one type I field and at least one type II field.
[0145] It should also be noted that the first type of field refers to the field used to determine the target rule from multiple candidate rules based on its corresponding group identifier. For example, at least one first type of field may include the contracting company, country, province, product code, trade terms, salesperson, customer code, end customer code, individual parts, and product model.
[0146] The second type of field refers to fields used to directly determine the target rule from multiple candidate rules based on their field values. For example, at least one second type of field may include contract type, business type, test-to-sales identifier, and material type.
[0147] In addition, multiple fields can also include a contract field and an order number field.
[0148] In one implementation, the computing device can obtain a processing request sent by the terminal device. The processing request may include order information for the target order. The order information may include an order header and an order line. The computing device can extract values from the order header and order line to obtain the values of multiple fields.
[0149] For example, Table 1 shows the field values corresponding to multiple fields.
[0150] Table 1. Field values corresponding to multiple fields
[0151]
[0152] As shown in Table 1, the computing device can extract and process order headers and order lines to obtain field values for multiple fields. At least one of the multiple fields, belonging to the first category, may include the contracting company, country, province, product code, trade terms, salesperson, customer code, end-customer code, individual parts, and product model. At least one of the multiple fields, belonging to the second category, may include contract type, business type, test-to-sales identifier, and material type. The field values may also include the values of the contract field and the order number field.
[0153] S202: Determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field.
[0154] In this embodiment, the computing device can determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field.
[0155] In one implementation:
[0156] For any candidate group identifier among at least one candidate group identifier, the computing device can obtain at least one field value corresponding to that candidate group identifier.
[0157] In one implementation, the computing device can determine the grouping type corresponding to the first type of field. The computing device can determine at least one candidate group identifier corresponding to the grouping type. The computing device can obtain at least one field value corresponding to the candidate group identifier.
[0158] In one implementation, the computing device can store the correspondence between a first type of field and at least one candidate group identifier. For example, regarding the first type of field—"Contracting Company"—the computing device can store the correspondence between "Contracting Company" and at least one candidate group identifier ("Group 1", "Group 2", and "Group 3"). The computing device can query the correspondence between the first type of field and at least one candidate group identifier based on the first type of field to determine at least one candidate group identifier. The computing device can then obtain the value of at least one field corresponding to that candidate group identifier.
[0159] The computing device can determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier.
[0160] The computing device can determine the candidate group identifier as the group identifier corresponding to the first type of field if it finds that the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier.
[0161] S203: Based on at least one group identifier and at least one field value of a second type field, determine the target rule that matches the target order from a set of candidate rules included in a pre-configured rule set.
[0162] In this embodiment, the computing device can determine the target rule that matches the target order from a set of candidate rules included in a pre-configured rule set, based on at least one group identifier and the field value of at least one second type field.
[0163] It should be noted that the candidate rules indicate the mapping relationship between the group identifier (the group identifier corresponding to the first type of field) and / or the field value of the second type of field and the place of production.
[0164] The following describes the process by which a computing device determines a target rule that matches a target order from a set of candidate rules included in a pre-configured rule set, based on at least one group identifier and at least one second-class field value.
[0165] In one implementation:
[0166] For any candidate rule, the computing device can determine at least one computing rule among the candidate rules.
[0167] The calculation rules may include the target field value of the second type of field, or the calculation rules may include the target group identifier corresponding to the first type of field.
[0168] The computing device can determine the matching result between the calculation rule and the target order based on at least one group identifier and the target group identifier, provided that the calculation rule includes a target field identifier corresponding to a first type of field. Alternatively, the computing device can determine the matching result between the calculation rule and the target order based on the field value of the second type of field and the target field value of the second type of field, provided that the calculation rule includes a target field value of a second type of field.
[0169] The matching result indicates either a successful match or a failed match.
[0170] The computing device can determine the candidate rule as the matching rule if the matching results of at least one calculation rule and the target order both indicate that the match is successful.
[0171] The computing device can determine the target rule based on at least one matching rule.
[0172] S204: Assign target orders according to the production location indicated by the target rules.
[0173] In this embodiment, the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type of field and the production location. That is, the candidate rule can indicate the production location (the production location corresponding to the candidate rule). It should be noted that in one implementation, the production locations indicated by each candidate rule are different. In one implementation, among multiple candidate rules, there may be candidate rules indicating the same production location.
[0174] The computing device can determine the target rule from multiple candidate rules and then allocate the target order based on the production location indicated by the target rule. In one implementation, the field values of multiple fields of the target order may include the field value of the order number field. The computing device can construct a correspondence between the field value of the order number field and the production location (production location identifier, such as ZZA) indicated by the target rule. The computing device can then allocate the target order based on this correspondence. For example, the field value of the order number field could be 111122222.
[0175] In one implementation:
[0176] The field values of multiple fields can include the field values of contract fields.
[0177] The computing device can determine multiple selected orders based on the field values of the contract fields.
[0178] In this case, the field values of the contract fields for multiple selected orders are all identical to the field values of the contract fields for the target order. In other words, the field values of the contract fields for multiple selected orders are the same. Conversely, the multiple selected orders belong to the same contract.
[0179] It should be noted that multiple selected orders include the target order.
[0180] The computing device can determine whether the production locations indicated by the target rules matching multiple selected orders are the same. In other words, the computing device can determine whether the production locations corresponding to multiple selected orders are the same.
[0181] The computing device can allocate and process target orders based on the production location indicated by the target rules that match multiple selected orders, provided that the production location is the same.
[0182] or,
[0183] The computing device can generate a reminder message if the production locations indicated by the target rules matching multiple selected orders are not the same.
[0184] The computing device can send reminder messages to the terminal device. It should be noted that the terminal device can display these reminder messages.
[0185] The computing device can obtain the confirmation information sent by the terminal device.
[0186] It should be noted that the confirmation information is entered by the user (also known as the maintenance personnel) based on the reminder information displayed on the terminal device.
[0187] It should also be noted that the confirmation information indicates the target production location for each selected order.
[0188] In one implementation, the confirmation information can indicate that the target production location corresponding to the selected order is the same as the production location corresponding to the selected order (the production location indicated by the target rule matching the selected order).
[0189] In one implementation, the confirmation message can indicate that multiple selected orders correspond to the same target production location. In another implementation, the target production location can be the production location that appears most frequently among the production locations corresponding to the multiple selected orders. That is, the user can determine the production location that appears most frequently from among the production locations corresponding to the multiple selected orders based on the reminder information displayed on the terminal device, and then designate this production location as the target production location for each selected order. Based on this target production location, the user can enter confirmation information (indicating the target production location for each selected order) on the terminal device.
[0190] The computing device can allocate and process target orders based on the confirmation information. Alternatively, in one implementation, the computing device can also record the confirmation information to a log file.
[0191] The beneficial effects of this embodiment are as follows: In this embodiment, the computing device can obtain the field values of multiple fields of the target order; the multiple fields include at least one first type field and at least one second type field. The computing device can determine at least one group identifier corresponding to the first type field based on the field value of the first type field. Based on the at least one group identifier and the field value of the at least one second type field, the computing device can determine the target rule matching the target order from multiple candidate rules included in the pre-configured rule set, wherein the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type field and the place of production. The computing device can perform allocation processing on the target order according to the place of production indicated by the target rule. Through the above method, without manual intervention, the place of production corresponding to the target order can be determined based on the field values of multiple fields of the target order and the multiple candidate rules included in the pre-configured rule set, which lowers the threshold for determining the place of production, improves the efficiency and accuracy of determining the place of production corresponding to the target order, and thus improves the delivery efficiency of the target order.
[0192] Figure 3a This is a flowchart illustrating a second embodiment of an order allocation method provided in this application. See also... Figure 3a The method specifically includes the following steps:
[0193] S301: Retrieve the field values of multiple fields in the target order.
[0194] In this embodiment, the computing device can obtain the field values of multiple fields of the target order. These multiple fields include at least one first-type field and at least one second-type field.
[0195] The specific implementation process is the same as that of S201, and will not be described in detail here.
[0196] S302: Determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field.
[0197] In this embodiment, the computing device can determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field.
[0198] The specific implementation process is the same as that of S202, and will not be described in detail here.
[0199] S303: For any candidate rule, determine at least one calculation rule among the candidate rules.
[0200] In this embodiment, the computing device can store multiple candidate rules. The candidate rules may include at least one calculation rule.
[0201] For any candidate rule, the computing device can determine at least one computing rule among the candidate rules.
[0202] In one implementation, the candidate rules include their activation status. It should be noted that the activation status is either enabled or disabled. The computing device can obtain the activation status of the candidate rules. If the activation status of a candidate rule is enabled, the computing device can obtain at least one computational rule from the candidate rules.
[0203] It should be noted that the calculation rules may include the target field value of the second type of field, or the calculation rules may include the target group identifier corresponding to the first type of field.
[0204] Figure 3b This is a schematic diagram of an order allocation process provided in an embodiment of this application.
[0205] like Figure 3b As shown, a candidate rule (candidate rule 1) can include four calculation rules. The four calculation rules can include calculation rule 1, calculation rule 2, calculation rule 3, and calculation rule 4. Calculation rule 1 can include the domestic 1 (target group identifier) corresponding to the contracting company (first type field), calculation rule 2 can include the Central China salesperson-Internet (target group identifier) corresponding to the salesperson (first type field), calculation rule 3 can include the designated customer-Internet (Central China) corresponding to the customer (first type field), and calculation rule 4 can include the model group 1 (target group identifier) corresponding to the product model (first type field).
[0206] like Figure 3b As shown, another candidate rule (candidate rule 2) may include four calculation rules. These four calculation rules may include calculation rule 5, calculation rule 6, calculation rule 7, and calculation rule 8. Calculation rule 5 may include standard sales (field value) for contract type (second type field); calculation rule 6 may include domestic 1 (target group identifier) corresponding to the contracting company (first type field); calculation rule 7 may include South China salesperson (target group identifier) corresponding to the salesperson (first type field); and calculation rule 8 may include model group 2 (target group identifier) corresponding to the product model (first type field).
[0207] S304: If the calculation rule includes the target group identifier corresponding to the first type field, determine the matching result between the calculation rule and the target order based on at least one group identifier and the target group identifier.
[0208] In this embodiment, when the calculation rule includes the target group identifier corresponding to the first type of field, the computing device can determine the matching result between the calculation rule and the target order based on at least one group identifier and the target group identifier.
[0209] The following describes the process by which the computing device determines the matching result between the calculation rules and the target order based on at least one group identifier and the target group identifier.
[0210] In one implementation:
[0211] The computing device can determine whether there exists a group identifier that matches the target group identifier (the target group identifier corresponding to the first type of field) among at least one group identifier corresponding to the first type of field.
[0212] The computing device can determine that the matching result of the calculation rule and the target order is successful if it finds that at least one group identifier corresponding to the first type of field contains a group identifier that matches the target group identifier (the target group identifier corresponding to the first type of field). Alternatively,
[0213] If the computing device determines that there is no matching group identifier (the target group identifier corresponding to the first type of field) among at least one group identifier corresponding to the first type of field, the matching result of the calculation rule and the target order indicates that the match is not successful.
[0214] It should be noted that the computing device can execute S306 after executing S304.
[0215] S305: When the calculation rule includes the target field value of the second type of field, determine the matching result between the calculation rule and the target order based on the field value of the second type of field and the target field value of the second type of field.
[0216] In this embodiment, when the calculation rule includes the target field value of the second type of field, the calculation device can determine the matching result between the calculation rule and the target order based on the field value of the second type of field and the target field value of the second type of field.
[0217] The following section explains the process by which the computing device determines the matching result between the calculation rules and the target order based on the field values of the second type of field and the target field values of the second type of field.
[0218] In one implementation:
[0219] The computing device can determine whether the field value of the second type of field is consistent with the target field value of the second type of field.
[0220] The computing device can determine that the matching result of the calculation rule and the target order is successful if the field value of the second type of field is consistent with the target field value of the second type of field.
[0221] or,
[0222] The computing device can determine that the matching result of the calculation rule and the target order does not match if the field value of the second type of field is inconsistent with the target field value of the second type of field.
[0223] It should be noted that the computing device can execute S306 after executing S305.
[0224] S306: If at least one calculation rule and the target order both indicate a successful match, the candidate rule shall be determined as the matching rule.
[0225] In this embodiment, the computing device can determine whether the matching result of at least one calculation rule and the target order indicates that the match is successful.
[0226] The computing device can determine the candidate rule as the matching rule if at least one calculation rule and the matching result of the target order both indicate that the match is successful.
[0227] For example, such as Figure 3b As shown, based on the fact that the matching results of the five calculation rules in candidate rule 1 with the target order all indicate a successful match, the computing device can determine candidate rule 1 as the matching rule. Similarly, based on the fact that the matching results of the four calculation rules in candidate rule 2 with the target order all indicate a successful match, the computing device can determine candidate rule 2 as the matching rule.
[0228] For another example, Table 2 shows the matching rules. As shown in Table 2, the computing device can determine 5 matching rules.
[0229] Table 2 Matching Rules
[0230]
[0231] S307: Determine the target rule based on at least one matching rule.
[0232] In this embodiment, the computing device can determine the target rule based on at least one matching rule.
[0233] The process by which a computing device determines a target rule based on at least one matching rule will be described below.
[0234] In one implementation:
[0235] The computing device can determine whether the number of matching rules is greater than one. In other words, the computing device can determine whether multiple matching rules exist.
[0236] The computing device can determine the priority of each matching rule if the number of matching rules is greater than one. It should be noted that in one implementation, each matching rule may include its corresponding priority. For example, as shown in Table 2, the priority of the matching rule with the identifier "0353" can be 0, the priority of the matching rule with the identifier "0355" can be 10, the priority of the matching rule with the identifier "0350" can be 20, the priority of the matching rule with the identifier "0347" can be 20, and the priority of the matching rule with the identifier "0339" can be 30.
[0237] The computing device can determine the number of calculation rules corresponding to each matching rule. It should be noted that the number of calculation rules is the number of calculation rules that match the target order among at least one calculation rule included in the matching rule. It should also be noted that, in one implementation, if the computing device indicates a successful match based on the matching results of each calculation rule with the target order, and determines the candidate rule as the matching rule, the number of calculation rules can be the number of calculation rules included in the matching rule.
[0238] The computing device can determine the target rule from multiple matching rules based on the priority of each matching rule and the number of computing rules corresponding to each matching rule.
[0239] The following section explains the process by which the computing device determines the target rule from multiple matching rules based on the priority of each matching rule and the number of computing rules corresponding to each matching rule.
[0240] In one implementation:
[0241] The computing device can determine at least one target matching rule from multiple matching rules based on the number of calculation rules corresponding to each matching rule. The target matching rule has the largest number of calculation rules. In one implementation, the computing device can sort the multiple matching rules in descending order of the number of calculation rules corresponding to each matching rule to obtain a sorting number for each matching rule. It should be noted that matching rules with the same number of corresponding calculation rules have the same sorting number. The computing device can determine the matching rule with the smallest sorting number as the target matching rule.
[0242] The computing device can determine whether the number of target matching rules is 1.
[0243] The computing device can determine a target rule from at least one target matching rule based on the priority of each target matching rule, provided that the number of target matching rules is not one. In one implementation, the computing device can sort multiple target matching rules in ascending order of priority to obtain a sorting number for each target matching rule. The computing device can then determine the target matching rule with the smallest sorting number as the target rule.
[0244] or,
[0245] The computing device can determine the target matching rule as the target rule if it finds that the number of target matching rules is 1. For example, as shown in Table 2, the matching rule with the rule identifier "0353" has the largest number of calculated rules, so the computing device can determine the matching rule with the rule identifier "0353" as the target matching rule. The computing device can determine the matching rule with the rule identifier "0353" as the target rule based on the fact that the number of target matching rules is 1.
[0246] S308: Allocate target orders according to the production location indicated by the target rules.
[0247] In this embodiment, the computing device can allocate and process target orders according to the production location indicated by the target rules.
[0248] The specific implementation process is the same as that of S204, and will not be described in detail here.
[0249] The beneficial effects of this embodiment are as follows: In this embodiment, for any candidate rule, the computing device can determine at least one calculation rule among the candidate rules. When the calculation rule includes a target group identifier corresponding to a first type of field, the computing device can determine the matching result between the calculation rule and the target order based on at least one group identifier and the target group identifier; or, when the calculation rule includes a target field value of a second type of field, the computing device can determine the matching result between the calculation rule and the target order based on the field value of the second type of field and the target field value of the second type of field. When the matching results of at least one calculation rule and the target order both indicate a successful match, the computing device can determine the candidate rule as a matching rule. The computing device can determine the target rule based on at least one matching rule. By matching each calculation rule among the candidate rules one by one based on at least one group corresponding to a first type of field and the field value of a second type of field, the efficiency and accuracy of filtering out the target rule from multiple candidate rules are improved.
[0250] Figure 4 This is a flowchart illustrating a third embodiment of an order allocation method provided in this application. See also... Figure 4 The method specifically includes the following steps:
[0251] S401: Retrieve the field values of multiple fields in the target order.
[0252] In this embodiment, the computing device can obtain the field values of multiple fields of the target order. These multiple fields include at least one first-type field and at least one second-type field.
[0253] The specific implementation process is the same as that of S201, and will not be described in detail here.
[0254] S402: Determine the grouping type corresponding to the first type of field.
[0255] In this embodiment, the computing device can obtain configuration information sent by the terminal device. It should be noted that the terminal device can display a configuration interface. The terminal device can respond to user actions on the configuration interface, generate configuration information, and send the configuration information to the computing device.
[0256] The configuration information includes group configuration information (also known as basic configuration information) and a rule set. The rule set includes multiple candidate rules (also known as production location calculation rules).
[0257] The group configuration information includes the correspondence between the first type of fields and the group type. The group configuration information may also include the correspondence between the group type and the candidate group identifiers. Additionally, the group configuration information may include at least one field value corresponding to a candidate group identifier. It should be noted that a field value of one first type of field can correspond to one candidate group identifier or multiple candidate group identifiers; this embodiment does not impose such limitations. For example, Table 3 shows the group configuration information. As shown in Table 3, "1111" corresponding to "Contracting Company" can correspond to three candidate group identifiers (Contracting Company Group 1, Contracting Company Group 2, and Contracting Company Group 3).
[0258] The candidate rules include at least one calculation rule. The calculation rule includes either the target field value of the second type of field or the target group identifier corresponding to the first type of field. The candidate rules may also indicate the production location and the priority of the candidate rule.
[0259] Table 3 Group Configuration Information
[0260]
[0261] The computing device can store and process group configuration information and rule sets (including multiple candidate rules).
[0262] In this embodiment, when the field values of multiple fields of the target order are obtained, the computing device can determine the grouping type corresponding to the first type of field.
[0263] For example, a computing device can determine the corresponding grouping type as "Contracting Company Grouping Type" based on the first type field being "Contracting Company".
[0264] For another example, a computing device can determine the corresponding grouping type as "salesperson grouping type" based on the first type field being "salesperson".
[0265] S403: Determine multiple candidate group identifiers corresponding to the group type.
[0266] In this embodiment, the group configuration information stored in the computing device may include the correspondence between group types and candidate group identifiers.
[0267] The computing device can determine multiple candidate group identifiers corresponding to a group type based on the group type identifier.
[0268] S404: For any one of the multiple candidate group identifiers, obtain at least one field value corresponding to the candidate group identifier.
[0269] In this embodiment, the group configuration information stored by the computing device may include at least one field value corresponding to the candidate group identifier.
[0270] For any one of a plurality of candidate group identifiers, the computing device can obtain at least one field value corresponding to the candidate group identifier.
[0271] For example, at least one field value corresponding to Salesperson Group 1 (candidate group identifier) includes Salesperson A and Salesperson B.
[0272] S405: Determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier.
[0273] In this embodiment, the computing device can determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier.
[0274] The computing device may execute S406 if it determines that the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier.
[0275] or,
[0276] The computing device can determine that the candidate group identifier is not the group identifier corresponding to the first type of field if it determines that the field value of the first type of field does not belong to at least one field value corresponding to the candidate group identifier.
[0277] S406: Determine the candidate group identifier as the group identifier corresponding to the first type of field.
[0278] In this embodiment, if the computing device determines that the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier, it can determine the candidate group identifier as the group identifier corresponding to the first type of field.
[0279] For example, Table 4 shows the grouping identifiers corresponding to each of the first category fields.
[0280] Table 4 Grouping identifiers for each Category 1 field
[0281]
[0282] S407: Based on at least one group identifier and at least one field value of a second type field, determine the target rule that matches the target order from a set of candidate rules included in a pre-configured rule set.
[0283] In this embodiment, the computing device can determine the target rule that matches the target order from a set of candidate rules included in a pre-configured rule set, based on at least one group identifier and the field value of at least one second type field.
[0284] Among them, the candidate rules indicate the mapping relationship between the group identifier and / or the field value of the second type of field and the place of production.
[0285] The specific implementation process is the same as that of S203, and will not be described in detail here.
[0286] S408: Assign target orders according to the production location indicated by the target rules.
[0287] In this embodiment, the computing device can allocate and process target orders according to the production location indicated by the target rules.
[0288] The specific implementation process is the same as that of S204, and will not be described in detail here.
[0289] The beneficial effects of this embodiment are as follows: The computing device can determine the grouping type corresponding to the first type of field. The computing device can determine multiple candidate grouping identifiers corresponding to the grouping type. For any candidate grouping identifier among at least one candidate grouping identifier, the computing device can determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate grouping identifier. If the computing device determines that the field value of the first type of field belongs to at least one field value corresponding to the candidate grouping identifier, it can determine the candidate grouping identifier as the grouping identifier corresponding to the first type of field. By pre-configuring the grouping type corresponding to the first type of field, the multiple candidate grouping identifiers corresponding to the grouping type, and the at least one field value corresponding to the candidate grouping identifier, the computing device can directly determine the grouping identifier corresponding to the first type of field based on the above configuration information in complex business scenarios (such as the field value of the same first type of field (salesperson) being divided according to region and industry, corresponding to multiple grouping identifiers (that is, multiple groups under the same grouping type)), thereby improving the efficiency and accuracy of determining at least one grouping identifier corresponding to the first type of field.
[0290] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0291] Figure 5 This is a schematic diagram of an order allocation device provided in an embodiment of this application. Figure 5 As shown, the order allocation device 50 includes an acquisition module 51, a processing module 52, and an allocation module 53.
[0292] The acquisition module 51 is used to acquire the field values of multiple fields of the target order; the multiple fields include at least one first type field and at least one second type field;
[0293] Processing module 52 is used to determine at least one group identifier corresponding to the first type of field based on the field value of the first type of field;
[0294] Processing module 52 is further configured to determine a target rule that matches the target order from a plurality of candidate rules included in a pre-configured rule set based on at least one group identifier and at least one field value of a second type field, wherein the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type field and the place of production;
[0295] The allocation module 53 is used to allocate target orders according to the production location indicated by the target rules.
[0296] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0297] In one implementation, the processing module 52 is specifically used for:
[0298] For any candidate rule, obtain at least one calculation rule from the candidate rules;
[0299] If the calculation rule includes the target group identifier corresponding to the first type of field, the matching result between the calculation rule and the target order is determined based on at least one group identifier and the target group identifier; or, if the calculation rule includes the target field value of the second type of field, the matching result between the calculation rule and the target order is determined based on the field value of the second type of field and the target field value of the second type of field.
[0300] If at least one calculation rule and the target order both indicate a successful match, the candidate rule will be determined as the matching rule.
[0301] Determine the target rule based on at least one matching rule.
[0302] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0303] In one implementation, the processing module 52 is specifically used for:
[0304] Determine if the number of matching rules is greater than 1;
[0305] If the number of matching rules is greater than 1, obtain the priority of each matching rule;
[0306] Determine the number of calculation rules corresponding to each matching rule; the number of calculation rules is the number of calculation rules that match the order among at least one calculation rule included in the matching rule.
[0307] The target rule is determined from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule.
[0308] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0309] In one implementation, the processing module 52 is specifically used for:
[0310] Based on the number of calculation rules corresponding to each matching rule, at least one target matching rule is determined from multiple matching rules; among them, the target matching rule has the largest number of calculation rules.
[0311] Determine if the number of target matching rules is 1;
[0312] If it is determined that the number of target matching rules is not 1, the target rule is determined from the multiple target matching rules according to their priority; or,
[0313] If the number of target matching rules is determined to be 1, then the target matching rule is determined as the target rule.
[0314] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0315] In one implementation, the processing module 52 is specifically used for:
[0316] Get the enabled status of the candidate rules;
[0317] If the candidate rule is enabled, obtain at least one calculation rule from the candidate rules.
[0318] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0319] In one implementation, the processing module 52 is specifically used for:
[0320] For any candidate group identifier among at least one candidate group identifier, obtain at least one field value corresponding to the candidate group identifier;
[0321] Determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier;
[0322] If the field value of the first type of field is determined to be at least one field value corresponding to the candidate group identifier, the candidate group identifier is determined as the group identifier corresponding to the first type of field.
[0323] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0324] In one implementation, the processing module 52 is further configured to:
[0325] Determine the grouping type corresponding to the first type of field;
[0326] Determine at least one candidate group identifier corresponding to the group type.
[0327] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0328] In one implementation, multiple fields include contract fields; the allocation module 53 is specifically used for:
[0329] Based on the field values of the contract fields, multiple selected orders are identified; wherein the field values of the contract fields of each selected order are consistent with the field values of the contract fields of the target order; the multiple selected orders include the target order;
[0330] Determine whether the production locations indicated by the target rules matching multiple selected orders are the same.
[0331] If the production locations indicated by the target rules for multiple selected orders are not the same, a reminder message will be generated.
[0332] Send reminder messages to terminal devices;
[0333] Obtain confirmation information sent by the terminal device; wherein, the confirmation information indicates the target production location corresponding to each target order; the confirmation information is entered by the user based on the reminder information displayed on the terminal device;
[0334] Based on the confirmed information, the orders are allocated and processed.
[0335] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0336] In one implementation, the allocation module 53 is also used for:
[0337] If multiple selected orders are found to have the same production location indicated by the target rules, the target orders are allocated and processed according to the production location indicated by the target rules.
[0338] The order allocation device provided in this application embodiment can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar, and will not be described again here.
[0339] Figure 6 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application. Figure 6 As shown, the computing device 60 includes a processor 61 and a memory 62; wherein the processor 61 is coupled to the memory 62, and the memory 62 is used to store computer instructions; the processor 61 is used to execute the computer instructions to cause the computing device 60 to perform the technical solutions in the aforementioned method embodiments.
[0340] Optionally, the memory 62 can be either standalone or integrated with the processor 61. Optionally, when the memory 62 is a device independent of the processor 61, the computing device 60 may further include a bus 63 for connecting the aforementioned devices.
[0341] The processor is used to execute the technical solutions in the aforementioned method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0342] This application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the technical solutions provided in the aforementioned method embodiments.
[0343] This application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the technical solutions provided in the aforementioned method embodiments.
[0344] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as volatile memory and non-volatile memory.
[0345] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An order allocation method, characterized in that, include: Obtain the field values of multiple fields of the target order; the multiple fields include at least one first type field and at least one second type field; Based on the field values of the first type of field, determine at least one group identifier corresponding to the first type of field; Based on the values of at least one group identifier and at least one second type field, a target rule matching the target order is determined from a set of candidate rules included in a pre-configured rule set; wherein the candidate rule indicates the mapping relationship between the group identifier and / or the field value of the second type field and the place of production; The target orders are allocated based on the production location indicated by the target rules.
2. The method according to claim 1, characterized in that, The step of determining a target rule matching the target order from a set of candidate rules included in a pre-configured rule set, based on the field values of at least one group identifier and at least one second-type field, includes: For any candidate rule, obtain at least one calculation rule from the candidate rules; When the calculation rule includes a target group identifier corresponding to a first type of field, the matching result between the calculation rule and the target order is determined based on at least one group identifier and the target group identifier; or, when the calculation rule includes a target field value of a second type of field, the matching result between the calculation rule and the target order is determined based on the field value of the second type of field and the target field value of the second type of field. If at least one calculation rule and the target order both indicate a successful match, the candidate rule is determined as the matching rule. The target rule is determined based on at least one matching rule.
3. The method according to claim 2, characterized in that, Determining the target rule based on at least one matching rule includes: Determine whether the number of matching rules is greater than 1; If the number of matching rules is greater than 1, obtain the priority of each matching rule; Determine the number of calculation rules corresponding to each matching rule; the number of calculation rules is the number of calculation rules that match the target order among at least one calculation rule included in the matching rule; The target rule is determined from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule.
4. The method according to claim 3, characterized in that, The step of determining the target rule from multiple matching rules based on the priority of each matching rule and the number of calculation rules corresponding to each matching rule includes: Based on the number of calculation rules corresponding to each matching rule, at least one target matching rule is determined from multiple matching rules; among them, the target matching rule has the largest number of calculation rules. Determine if the number of target matching rules is 1; If it is determined that the number of target matching rules is not 1, the target rule is determined from the multiple target matching rules according to the priority of each target matching rule; or, If the number of target matching rules is determined to be 1, then the target matching rule is determined as the target rule.
5. The method according to any one of claims 2-4, characterized in that, The step of obtaining at least one calculation rule from the candidate rules includes: Obtain the activation status of the candidate rules; If the candidate rule is enabled, at least one of the calculation rules is obtained from the candidate rules.
6. The method according to any one of claims 1-5, characterized in that, The step of determining at least one group identifier corresponding to the first type of field based on the field value of the first type of field includes: For any candidate group identifier among at least one candidate group identifier, obtain at least one field value corresponding to the candidate group identifier; Determine whether the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier; If it is determined that the field value of the first type of field belongs to at least one field value corresponding to the candidate group identifier, the candidate group identifier is determined as the group identifier corresponding to the first type of field.
7. The method according to claim 6, characterized in that, Before obtaining at least one field value corresponding to the candidate group identifier, the method further includes: Determine the grouping type corresponding to the first type of field; Determine at least one candidate group identifier corresponding to the group type.
8. The method according to any one of claims 1-7, characterized in that, The plurality of fields includes contract fields; the allocation process for the target order based on the production location indicated by the target rule includes: Based on the field values of the contract fields, multiple selected orders are determined; wherein the field value of the contract field of each selected order is consistent with the field value of the contract field of the target order; the multiple selected orders include the target order; Determine whether the production locations indicated by the target rules matching multiple selected orders are the same. If the production locations indicated by the target rules for multiple selected orders are not the same, a reminder message will be generated. Send the reminder information to the terminal device; Obtain confirmation information sent by the terminal device; wherein, the confirmation information indicates the target production location corresponding to each target order; the confirmation information is input by the user based on the reminder information displayed on the terminal device; The order is assigned based on the confirmation information.
9. The method according to claim 8, characterized in that, The method further includes: If multiple selected orders are found to have the same production location indicated by the target rules, the target orders are allocated according to the production location indicated by the target rules.
10. A computing device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory is used to store computer-executed instructions; The processor is configured to execute computer execution instructions stored in the memory to implement the method according to any one of claims 1-9.