Configuration method of combination rule, electronic device, storage medium, program product
Patent Information
- Application Number
- CN202210299361.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2042-03-25
AI Technical Summary
[0005]本公开实施例提供一种合单规则的配置方法、电子设备、存储介质、程序产品,用以解决现有技术中需要在服务器中修改相关的合单规则,不便于扩展,通用性较差且维护成本高的问题
[0018]本公开提供的合单规则的配置方法、电子设备、存储介质、程序产品,包括:获取用户在预设配置信息中所选择的子规则、以及与子规则对应的属性,并接收多个模拟订单的订单信息,其中,预设配置信息中包括多个规则和多个属性,规则表征订单信息满足合单的条件;若根据用户所选择的子规则、以及与子规则对应的属性,确定多个模拟订单的订单信息满足预设合单条件,则将用户所选择的子规则、以及与子规则对应的属性存储为合单规则。本公开提供的方案中,用户可以根据需求配置合单规则,且还可以对合单规则是否符合用户的真时需求进行校验,因此,更便于更新系统中的合单规则。
Smart Images

Figure CN116882904B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to order processing technology, and more particularly to a method for configuring order consolidation rules, electronic devices, storage media, and program products. Background Technology
[0002] In some warehousing systems, users can merge orders to facilitate warehouse management. For example, multiple goods receiving orders can be combined into a single receiving slip.
[0003] To avoid incorrect order merging, order merging rules are usually set up, and these rules are used to verify the orders to be merged during the merging operation to determine whether they meet the merging rules.
[0004] However, these order merging rules are deployed on the warehouse system's servers. When it is necessary to change the order merging rules, the relevant order merging rules need to be modified on the server, which is not easy to expand, has poor universality, and has high maintenance costs. Summary of the Invention
[0005] This disclosure provides a method for configuring order merging rules, an electronic device, a storage medium, and a program product to solve the problems in the prior art where related order merging rules need to be modified in the server, which is not easy to expand, has poor versatility, and has high maintenance costs.
[0006] On one hand, embodiments of this disclosure provide a method for configuring consolidated order rules, including:
[0007] The system obtains the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and receives order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for order merging.
[0008] If, based on the sub-rule selected by the user and the attribute corresponding to the sub-rule, it is determined that the order information of multiple simulated orders meets the preset order merging conditions, then the sub-rule selected by the user and the attribute corresponding to the sub-rule are stored as order merging rules.
[0009] On the other hand, embodiments of this disclosure provide a configuration apparatus for order consolidation rules, including:
[0010] The acquisition unit is used to acquire the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and to receive order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for merging orders.
[0011] The storage unit is used to store the user-selected sub-rule and the attribute corresponding to the sub-rule as a merging rule if the order information of multiple simulated orders meets the preset merging conditions based on the sub-rule selected by the user and the attribute corresponding to the sub-rule.
[0012] In another aspect, embodiments of this disclosure provide a computer device, including: a memory and a processor;
[0013] Processor; and
[0014] Computer programs;
[0015] The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in the first aspect.
[0016] In another aspect, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement the method as described in the first aspect.
[0017] In another aspect, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the method as described in the first aspect.
[0018] The configuration method, electronic device, storage medium, and program product for order merging rules disclosed herein include: obtaining sub-rules selected by the user in preset configuration information and the attributes corresponding to the sub-rules, and receiving order information from multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, where each rule represents an order information condition for merging. If, based on the sub-rules selected by the user and the attributes corresponding to the sub-rules, the order information from multiple simulated orders is determined to meet the preset merging conditions, then the sub-rules selected by the user and the attributes corresponding to the sub-rules are stored as merging rules. In the solution provided herein, users can configure merging rules according to their needs and can also verify whether the merging rules meet the user's real-time requirements, thus facilitating the updating of merging rules in the system. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0020] Figure 1 This is a flowchart illustrating a method for configuring order rules in an exemplary embodiment of this disclosure;
[0021] Figure 2 This is a schematic diagram of an interface for adding a contract rule, as shown in an exemplary embodiment of this disclosure.
[0022] Figure 3 This is a flowchart illustrating a method for configuring consolidated order rules, as shown in another exemplary embodiment of this disclosure.
[0023] Figure 4 This is a schematic diagram illustrating the structure of a configuration device for order rules, as shown in an exemplary embodiment of this disclosure.
[0024] Figure 5 This is a schematic diagram illustrating the structure of a configuration device for a single-order rule, as shown in another exemplary embodiment of this disclosure.
[0025] Figure 6 This is a block diagram illustrating a computer device according to an exemplary embodiment.
[0026] The accompanying drawings have illustrated specific embodiments of this disclosure, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this disclosure to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0027] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0028] In some application scenarios, a large number of orders need to be processed. To facilitate management, users can combine orders according to their needs, thereby reducing the number of orders and making it easier to process them.
[0029] To avoid erroneous order merging operations, order merging rules are usually set. During the order merging operation, the set order merging rules are used to verify the orders to be merged. Only if the order merging rules are met can the orders be merged.
[0030] In typical business systems, order validation rules are written into the business logic of the code according to fixed conditions based on business requirements to meet those requirements. However, this approach has very poor scalability and cannot quickly implement user needs, especially for complex, large-scale enterprise systems where validation rules are diverse and updating the system's validation rules is inconvenient.
[0031] Furthermore, in some business systems, there are a large number of tenants who can use the functions of the business system. In this application scenario, different tenants have different rule verification methods for the same attributes. User needs are changing in real time, and different business scenarios also have different needs. Such a frequency of change will bring a lot of repetitive work pressure to system developers. Moreover, the hard-coding method also brings a lot of maintenance costs, which is not conducive to the development of the middle platform.
[0032] Therefore, writing order merging rules in the code logic presents problems with scalability and maintainability. To solve the above technical problems, the solution provided in this disclosure supports dynamic and configurable rule validation. Users can configure the rules used for order merging validation according to their needs. This approach is flexible and infinitely scalable, requires no development work, and therefore facilitates updating the order merging rules in the system.
[0033] Figure 1 This is a flowchart illustrating a method for configuring order rules in an exemplary embodiment of this disclosure.
[0034] like Figure 1 As shown, the configuration method for the order consolidation rule provided in this disclosure includes:
[0035] Step 101: Obtain the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and receive order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for order merging.
[0036] This allows for pre-setting configuration information, which includes multiple rules and attributes. For example, users can add the rules and attributes they need to the system according to their requirements.
[0037] Specifically, the system can have multiple tenants, who can use one or more functions provided by the system. Each tenant can add their own configuration information as needed, and the system can store the configuration information of each tenant. For example, the system can store the preset configuration information for user A, and it can also store the preset configuration information for user B.
[0038] Furthermore, users can log in to the system and configure order merging rules. Users can click the button to add order merging rules in the system and then use the function to configure order merging rules.
[0039] In practical applications, the system can obtain the preset configuration information corresponding to the user and feed it back to the user's terminal device, so that the user can select sub-rules according to their needs and also select attributes for the sub-rules.
[0040] Figure 2This is a schematic diagram of an interface for adding a contract rule, which is an exemplary embodiment of this disclosure.
[0041] like Figure 2 As shown, users can select rules in component 21 and select attributes for the rules in component 21 in component 22.
[0042] The order merging rules can include rules from multiple preset configuration information, and a rule selected by the user can have multiple attributes. When the orders to be merged meet the various rules in the order merging rules, these orders can be merged.
[0043] For example, when configuring order merging rules, users can select the first rule from the preset configuration information and then select attributes A and B for the first rule; alternatively, they can select the second rule from the preset configuration information and then select attributes A and C for the second rule. Order merging rules configured in this way include two sub-rules, each with two attributes. The conditions of the order merging rule are only met if the order satisfies the conditions of the first rule (attribute A), the first rule (attribute B), the second rule (attribute A), and the second rule (attribute C).
[0044] In this way, users can configure the order merging rules they need according to their requirements.
[0045] Specifically, to prevent users from selecting the wrong sub-rules or attributes in the preset configuration information, users can also enter the order information of multiple simulated orders in the system. If the order information of the multiple simulated orders entered matches the order merging rule currently configured by the user, it can be determined that the order merging rule meets the user's actual needs; otherwise, it can be assumed that the user has selected the wrong rule or attribute.
[0046] Furthermore, the order information for simulated orders can include various types, such as the owner's number, priority, and the group information to which the order belongs.
[0047] In practical applications, users can input simulated order information in their user terminals and select sub-rules and their attributes. The user terminals can then send this information to the server.
[0048] Step 102: If, based on the sub-rule selected by the user and the attribute corresponding to the sub-rule, it is determined that the order information of multiple simulated orders meets the preset order merging conditions, then the sub-rule selected by the user and the attribute corresponding to the sub-rule are stored as order merging rules.
[0049] The server can determine whether the sub-rule and its attributes match multiple simulated orders. If they match, it can determine that the user's selection of the sub-rule and its attributes is correct and can store it as a combined order rule.
[0050] Specifically, the server can be configured with a module that uses rules to verify whether multiple orders meet the conditions for merging orders. After the server obtains the sub-rules selected by the user and their corresponding attributes, and receives the order information of multiple simulated orders, it can call this module to determine whether the multiple simulated orders meet the multiple sub-rules currently set by the user.
[0051] Furthermore, if multiple simulated orders meet the requirements of the various sub-rules and their attributes selected by the user, it can be determined that these simulated orders match the rules set by the user. The sub-rules selected by the user and the attributes corresponding to the sub-rules can be stored, specifically as a single order merging rule.
[0052] In practical applications, if users need to delete the already set order merging rules, they can also perform the deletion operation in the system.
[0053] This implementation allows users to combine various sub-rules to create order merging rules through selection. The server can also validate these rules using simulated orders, preventing users from selecting incorrect sub-rules or their attributes. This approach not only allows users to set order merging rules according to their needs but also enables them to validate and store the correct rules. This method is flexible, infinitely scalable, and requires no development work, making it easy to modify or add order merging rules within the system.
[0054] The method for configuring order merging rules disclosed herein includes: obtaining sub-rules selected by the user in preset configuration information and the attributes corresponding to the sub-rules; and receiving order information from multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, where each rule represents an order information condition for merging. If, based on the sub-rules selected by the user and the attributes corresponding to the sub-rules, the order information from multiple simulated orders is determined to meet the preset merging conditions, then the sub-rules selected by the user and the attributes corresponding to the sub-rules are stored as merging rules. In this method, users can configure merging rules according to their needs and can also verify whether the merging rules meet the user's real-time requirements, thus facilitating the updating of merging rules in the system.
[0055] Figure 3 This is a flowchart illustrating a method for configuring a consolidated order rule, which is another exemplary embodiment of this disclosure.
[0056] like Figure 3 As shown, the configuration method for the order consolidation rule provided in this disclosure includes:
[0057] Step 301: Obtain the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and receive order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for merging orders.
[0058] The implementation method and principle of step 301 are similar to those of step 101, and will not be repeated here.
[0059] Step 302: Group the sub-rules selected by the user, wherein the sub-rules included in each group have the same conditions for being satisfied.
[0060] Users can select multiple sub-rules on their terminal devices and send the information of each sub-rule selected by the user to the server through the terminal devices. After receiving the user's selection instructions, the server can group these sub-rules.
[0061] Specifically, each sub-rule has a set of conditions, such as being the same, different, or partially the same. If the conditions of the sub-rules are the same, they are grouped into the same group. For example, if sub-rule 1 indicates that shipments can be combined if the shippers are the same, and sub-rule 2 indicates that shipments can be combined if the types of goods are the same, then these two sub-rules can be grouped into the same group.
[0062] Step 303: Based on the information of multiple simulated orders and the attributes of each sub-rule, determine whether the multiple simulated orders satisfy the sub-rules in each group.
[0063] Furthermore, it can be traversed group by group to determine whether the received multiple simulated orders satisfy each sub-rule within each group.
[0064] In practical applications, each sub-rule can have at least one attribute. For example, a sub-rule can allow orders to be combined if the goods have the same attributes. Users can choose the attribute of this sub-rule as the location of the goods, or they can also choose attributes such as the type of goods. When a user meets multiple attribute conditions of a sub-rule, multiple simulated orders can be considered to conform to that sub-rule.
[0065] Each group contains multiple sub-rules. If multiple simulated orders meet every sub-rule in each group, then the multiple simulated orders are considered to meet the preset order merging conditions. If multiple simulated orders do not meet any sub-rule in any group, then the multiple simulated orders are considered to not meet the preset order merging conditions.
[0066] Specifically, by grouping sub-rules, simulated orders can be validated one by one within each group. If a sub-rule is encountered that does not meet the requirements, validation can proceed without using other sub-rules, thus improving validation speed. Furthermore, this step-by-step validation method ensures that multiple simulated orders only meet the preset order merging conditions when all sub-rules are satisfied, preventing erroneous determinations of order merging conditions when there are many and complex sub-rules.
[0067] Furthermore, when determining whether multiple simulated orders conform to the sub-rules within a group, a mapping set corresponding to each simulated order can be generated based on the information of each simulated order. The mapping set includes the correspondence between keys and values. For example, if the information of the input simulated order includes the shipper's information, the type of goods, the quantity of goods, the priority of goods, etc., then a key-value correspondence can be generated for each piece of information, and a mapping set for each simulated order can be generated.
[0068] The key is used to represent the attribute identifier, and the value is used to represent the attribute value corresponding to the attribute identifier.
[0069] In practical applications, it is possible to determine whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within each group.
[0070] For example, if a sub-rule in a group involves the quantity of goods, then the quantity of goods for each simulated order can be obtained from the mapping set of multiple simulated orders. Based on the obtained values, it can be determined whether the multiple simulated orders meet the sub-rule. For instance, if the sub-rule indicates that an attribute value not exceeding 100 allows for order merging, and if the obtained quantities of goods are all less than 100, then it is determined that the multiple simulated orders meet the rule that an attribute value not exceeding 100 allows for order merging.
[0071] In practical applications, the conditions for satisfying sub-rules can include multiple factors, such as identical attributes. That is, the sub-rule is satisfied when the attributes are the same.
[0072] In this case, multiple sub-rules that meet the same conditions can be grouped into the same group, and the conditions of the groups are the same. In this case, for the attributes of each sub-rule in the group that meets the same conditions, the attribute values corresponding to the attributes can be obtained from the mapping set of each simulated order.
[0073] If all attribute values corresponding to the attributes of the sub-rules in the group are the same, then multiple simulated orders are determined to satisfy the sub-rules.
[0074] For example, if there exists a sub-rule 1 among groups that meet the same conditions, and this sub-rule 1 has attribute A, then the attribute value 'a' corresponding to attribute A can be obtained from the mapping set of each simulated order. For instance, if there are simulated orders 1 and 2, then the attribute value 'a1' for simulated order 1 and the attribute value 'a2' for simulated order 2 can be obtained. If the attribute values corresponding to the same attribute are all the same, then it is determined that multiple simulated orders satisfy the sub-rule. Therefore, if a1 = a2, then it is determined that simulated orders 1 and 2 conform to sub-rule 1.
[0075] Furthermore, the conditions for satisfying a sub-rule can include multiple factors, such as having the same associated attributes. That is, the sub-rule is satisfied when the associated attributes are the same.
[0076] In this case, multiple sub-rules that meet the condition of having the same associated attribute can be grouped into the same group, and the condition of the group is that the associated attribute is the same. In this case, for each sub-rule in the group that meets the condition of having the same associated attribute, the attribute values corresponding to the at least two attributes are obtained from the mapping set of each simulated order.
[0077] If all attribute values corresponding to the same attribute in a sub-rule within a group are identical, then multiple simulated orders are determined to satisfy the sub-rule.
[0078] For example, if there exists a sub-rule 2 among groups that meet the condition of having the same associated attribute, and this sub-rule 2 has two attributes B and C, then the attribute values b and c corresponding to attributes B and C can be obtained from the mapping set of each simulated order. For example, if there are simulated orders 1 and 2, then the attribute values b1 and c1 of simulated order 1, and the attribute values b2 and c2 of simulated order 2, can be obtained. If the attribute values corresponding to the associated attributes are all the same, then it is determined that multiple simulated orders satisfy this sub-rule. Therefore, if b1 = b2 and c1 = c2, then it is determined that simulated orders 1 and 2 conform to sub-rule 2.
[0079] In practical applications, the conditions for satisfying a sub-rule can include multiple factors, such as meeting preset attribute conditions. That is, the sub-rule is satisfied when the attribute meets the preset conditions.
[0080] In this case, multiple sub-rules that meet the conditions of satisfying preset attribute conditions can be grouped into the same group, and the conditions of satisfying the group are satisfied by satisfying preset attribute conditions. In this case, for the attributes and attribute values corresponding to each sub-rule in the group that meet the conditions of satisfying preset attribute conditions, the order attribute value corresponding to the attribute is obtained from the mapping set of each simulated order.
[0081] If the order attribute value corresponding to each simulated order and the attribute value corresponding to the sub-rule are the same, then multiple simulated orders are determined to satisfy the sub-rule.
[0082] For example, if there is a sub-rule 3 in a group that meets the preset attribute conditions, and this sub-rule 3 has an attribute value d corresponding to attribute D, then the attribute value corresponding to attribute D can be obtained from the mapping set of each simulated order. For example, if there are simulated orders 1 and 2, then the attribute value d1 of simulated order 1 and the attribute value d2 of simulated order 2 can be obtained. If the obtained attribute values are all the same as the attribute values corresponding to the preset attribute conditions, then it is determined that multiple simulated orders meet the sub-rule. Therefore, if d1 = d and d2 = d, then it is determined that simulated orders 1 and 2 meet sub-rule 3.
[0083] Specifically, the conditions for a sub-rule to be satisfied can include multiple factors, such as not meeting preset attribute conditions. That is, the sub-rule is satisfied when the attribute does not meet the preset conditions.
[0084] In this case, multiple sub-rules that meet the condition of not meeting the preset attribute condition can be grouped into the same group, and the condition of the group is not meeting the preset attribute condition. In this case, for the sub-rules in the group where the condition of the combined order meets the preset attribute condition, the corresponding attribute and attribute value are obtained from the mapping set of each simulated order.
[0085] If the order attribute value corresponding to each simulated order and the attribute value corresponding to the sub-rule are different, then multiple simulated orders are determined to satisfy the sub-rule.
[0086] For example, if there exists a sub-rule 4 in the group that meets the preset attribute conditions, and this sub-rule 4 has an attribute value e corresponding to attribute E, then the attribute value corresponding to attribute E can be obtained from the mapping set of each simulated order. For example, if there are simulated orders 1 and 2, then the attribute value e1 of simulated order 1 and the attribute value e2 of simulated order 2 can be obtained. If the obtained attribute values are all different from the attribute values corresponding to the preset attribute conditions, then it is determined that multiple simulated orders meet the sub-rule. Therefore, if e1≠e and e2≠e, then it is determined that simulated orders 1 and 2 meet sub-rule 4.
[0087] The conditions for satisfying a sub-rule can be multiple, such as conforming to a preset order group. That is, the sub-rule is satisfied when the simulated order conforms to a preset order group.
[0088] Specifically, multiple sub-rules that meet the condition of conforming to a preset order group can be grouped into the same group, resulting in a group whose condition of conforming to the preset order group. In this case, for the group information corresponding to each sub-rule in the group whose condition of conforming to the preset order group, the order group information corresponding to the group information can be obtained from the mapping set of each simulated order.
[0089] If the order group information of each simulated order belongs to the grouping information corresponding to the sub-rule, then multiple simulated orders are determined to satisfy the sub-rule.
[0090] For example, if there is a sub-rule 5 in a group that meets the condition of conforming to a preset order group, and this sub-rule 5 has grouping information f, then the data corresponding to the grouping information can be obtained from the mapping set of each simulated order. For example, if there are simulated orders 1 and 2, then the grouping data f1 of simulated order 1 and the grouping data f2 of simulated order 2 can be obtained. If the obtained grouping data are all the same as the attribute values corresponding to the preset attribute conditions, then it is determined that multiple simulated orders meet the sub-rule. Therefore, if f1 = f and f2 = f, then it is determined that simulated orders 1 and 2 meet sub-rule 5.
[0091] Step 304: If yes, then determine that the simulated order meets the preset order merging conditions.
[0092] Furthermore, if multiple simulated orders satisfy each sub-rule in each group, it can be determined that the simulated orders meet the preset order merging conditions, that is, it can be determined that the sub-rules selected by the user and their attributes match the multiple simulated orders input.
[0093] Step 305: Store the sub-rules selected by the user and the attributes corresponding to the sub-rules as a merge rule.
[0094] Step 305 is the same as the corresponding content in step 102, and will not be repeated here.
[0095] Step 306: If it is determined that the simulated order does not meet the preset order merging conditions, then send order merging rule modification information. The order merging rule modification information is used to indicate the modification of sub-rules and the attributes corresponding to the sub-rules.
[0096] If it is determined that multiple simulated orders fail to meet each sub-condition, then the simulated orders do not meet the preset order merging conditions. In this case, the electronic device can send order merging rule modification information to the user terminal.
[0097] Specifically, after receiving this information, the user terminal can display an interface for modifying the rules of the consolidated order, where the user can modify the selected sub-rules and their attributes.
[0098] Step 307: Receive order information for multiple orders to be merged, and determine the target merging rule corresponding to the multiple orders based on the order information of the orders to be merged and the pre-stored business information of the merging rules.
[0099] Furthermore, after storing the order merging rules, users can select the configured order merging rules and operate the user terminal to send the order information of the orders to be merged to the electronic device. This allows the electronic device to use the configured order merging rules to verify whether these orders meet the merging conditions. If they do, the electronic device can perform the order merging operation.
[0100] In practical applications, order information can include multiple pieces of information, such as the shipper and the warehouse location. Electronic devices can determine matching order consolidation rules based on this information.
[0101] In this optional implementation, different order merging rules correspond to different application scenarios. The matching order merging rules can be determined based on the order information, and then the target order merging rule corresponding to the current order to be merged can be automatically matched among the pre-configured multiple order merging rules.
[0102] Step 308: Determine whether the multiple orders to be merged meet the target order merging rules.
[0103] The specific method for determining whether multiple orders to be merged meet the target merging rules is similar to that in steps 302-304. The sub-rules in the target merging rules can be grouped, with each group including at least one sub-rule. Based on the information of the multiple orders to be merged and the attributes of each sub-rule, it is determined whether the multiple orders to be merged meet the sub-rules in each group. If so, it is determined that the orders to be merged meet the target merging rules; otherwise, it is determined that the orders to be merged do not meet the target merging rules.
[0104] Step 309: If the conditions are met, generate the merged order based on the information of the multiple orders to be merged.
[0105] If the target order merging rules are met, multiple orders to be merged are combined to generate a merged order. For example, merging the quantities of the same goods in multiple orders to be merged.
[0106] If the target order merging conditions are not met, the electronic device can also send an order merging failure message to the user terminal, allowing the user to understand the details of the order merging failure.
[0107] Figure 4 This is a schematic diagram illustrating the structure of a configuration device for order rules, which is an exemplary embodiment of this disclosure.
[0108] like Figure 4 As shown, the configuration device 400 for consolidated order rules provided in this disclosure includes:
[0109] The receiving unit 410 is used to obtain the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and to receive the order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for merging orders.
[0110] Storage unit 420 is used to store the user-selected sub-rule and the attribute corresponding to the sub-rule as a merging rule if the order information of multiple simulated orders meets the preset merging conditions based on the sub-rule selected by the user and the attribute corresponding to the sub-rule.
[0111] The configuration device for order merging rules provided in this disclosure allows users to configure order merging rules according to their needs, and also allows verification of whether the order merging rules meet the user's real-time requirements. Therefore, it is easier to update the order merging rules in the system.
[0112] Figure 5 This is a schematic diagram of the configuration device for a single-order rule, as shown in another exemplary embodiment of this disclosure.
[0113] like Figure 5 As shown, the configuration device 500 for order consolidation rules provided in this disclosure, based on the above embodiments, includes a verification module 421 in the storage unit 420, used for:
[0114] The sub-rules selected by the user are grouped, wherein the sub-rules included in each group have the same conditions for being satisfied;
[0115] Based on the information of multiple simulated orders and the attributes of each sub-rule, determine whether the multiple simulated orders satisfy the sub-rules in each group;
[0116] If so, then the simulated order is determined to meet the preset order merging conditions.
[0117] Optionally, the verification module 421 is specifically used for:
[0118] Based on the information of each simulated order, a mapping set corresponding to each simulated order is generated, the mapping set including the correspondence between keys and values;
[0119] Based on the mapping set of each simulated order and the attributes of the sub-rules within the group, determine whether the multiple simulated orders satisfy each sub-rule within each group.
[0120] Optionally, the verification module 421 is specifically used for:
[0121] For the attributes of each sub-rule in a group that meets the same conditions, obtain the attribute values corresponding to the attributes from the mapping set of each simulated order;
[0122] If all attribute values corresponding to the attributes of the sub-rules in the group are the same, then it is determined that multiple simulated orders satisfy the sub-rules.
[0123] Optionally, the verification module 421 is specifically used for:
[0124] For each sub-rule in a group that satisfies the condition of having the same associated attribute, for each of the at least two attributes, obtain the attribute values corresponding to the at least two attributes respectively in the mapping set of each simulated order;
[0125] If all attribute values corresponding to the same attribute in the sub-rule of the group are the same, then it is determined that multiple simulated orders satisfy the sub-rule.
[0126] Optionally, the verification module 421 is specifically used for:
[0127] For each sub-rule in a group that meets the preset attribute conditions, and its corresponding attribute and attribute value, the order attribute value corresponding to the attribute is obtained from the mapping set of each simulated order;
[0128] If the order attribute value corresponding to each simulated order is the same as the attribute value corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
[0129] Optionally, the verification module 421 is specifically used for:
[0130] For each sub-rule in a group that meets the condition of a merged order, and its corresponding attribute and attribute value, the order attribute value corresponding to the attribute is obtained from the mapping set of each simulated order.
[0131] If the order attribute value corresponding to each simulated order is different from the attribute value corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
[0132] Optionally, the verification module 421 is specifically used for:
[0133] For each sub-rule in a group that meets the condition of conforming to a preset order group, the order group information corresponding to the group information is obtained from the mapping set of each simulated order;
[0134] If the order group information of each simulated order belongs to the grouping information corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
[0135] Optionally, the device further includes a transmitting unit 430, used for:
[0136] If it is determined that the simulated order does not meet the preset order merging conditions, an order merging rule modification message is sent. The order merging rule modification message is used to indicate the modification of the sub-rule and the attribute corresponding to the sub-rule.
[0137] Optionally, the stored order consolidation rules contain business information; the receiving unit 410 is further configured to:
[0138] Receive order information for multiple orders to be merged, and determine the target merging rule corresponding to the multiple orders based on the order information of the orders to be merged and the pre-stored business information of the merging rules;
[0139] The device further includes:
[0140] Verification unit 440 is used to determine whether the multiple orders to be merged meet the target order merging rule;
[0141] The merging unit 450 is used to generate a merged order based on the information of the multiple orders to be merged if the conditions are met.
[0142] Optionally, the verification unit 440 is specifically used for:
[0143] The sub-rules in the target merging rule are grouped, wherein each group includes at least one sub-rule;
[0144] Based on the information of multiple orders to be merged and the attributes of each sub-rule, determine whether the multiple orders to be merged satisfy the sub-rules in each group;
[0145] If so, then the orders to be merged are determined to meet the target order merging rules;
[0146] Otherwise, it is determined that the order to be merged does not meet the target order merging rules.
[0147] Figure 6 This is a block diagram illustrating a computer device according to an exemplary embodiment, the device being a computer.
[0148] like Figure 6 As shown, the computer device provided in this embodiment includes:
[0149] Memory 61;
[0150] Processor 62; and
[0151] Computer programs;
[0152] The computer program is stored in the memory 61 and configured to be executed by the processor 62 to implement any of the order rule configuration methods described above.
[0153] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of the device to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0154] A non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of a terminal device, the terminal device is able to execute the aforementioned screen splitting method.
[0155] A computer program product includes a computer program that, when executed by a processor, implements the method according to any of the above embodiments.
[0156] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
[0157] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.
Claims
1. A method for configuring order consolidation rules, characterized in that, include: The system obtains the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and receives order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for order merging. If, based on the sub-rule selected by the user and the attribute corresponding to the sub-rule, it is determined that the order information of multiple simulated orders meets the preset order merging conditions, then the sub-rule selected by the user and the attribute corresponding to the sub-rule are stored as an order merging rule. If it is determined that the simulated order does not meet the preset order merging conditions, order merging rule modification information is sent. The order merging rule modification information is used to indicate the modification of the sub-rule and the attribute corresponding to the sub-rule. The step of determining whether the order information of multiple simulated orders meets the preset order merging conditions based on the sub-rules selected by the user and the attributes corresponding to the sub-rules includes: The sub-rules selected by the user are grouped, wherein the sub-rules included in each group have the same conditions for being satisfied; Based on the information of each simulated order, a mapping set corresponding to each simulated order is generated. The mapping set includes a key-value correspondence, where the key is used to represent an attribute identifier and the value is used to represent the attribute value corresponding to the attribute identifier. Based on the mapping set of each simulated order and the attributes of the sub-rules within the group, determine whether the multiple simulated orders satisfy each sub-rule within each group; If so, then the simulated order is determined to meet the preset order merging conditions.
2. The method according to claim 1, characterized in that, If the grouping condition is that the order attributes are the same, then determining whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within the group includes: For the attributes of each sub-rule in a group that meets the same conditions, obtain the attribute values corresponding to the attributes from the mapping set of each simulated order; If all attribute values corresponding to the attributes of the sub-rules in the group are the same, then it is determined that multiple simulated orders satisfy the sub-rules.
3. The method according to claim 1, characterized in that, If the grouping condition is that the association attributes are the same, then determining whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within the group includes: For each sub-rule in a group that satisfies the condition of having the same associated attribute, for each of the at least two attributes, obtain the attribute values corresponding to the at least two attributes respectively in the mapping set of each simulated order; If all attribute values corresponding to the same attribute in the sub-rule of the group are the same, then it is determined that multiple simulated orders satisfy the sub-rule.
4. The method according to claim 1, characterized in that, If the grouping condition is a preset attribute condition, then determining whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within the group includes: For each sub-rule in a group that meets the preset attribute conditions, and its corresponding attribute and attribute value, the order attribute value corresponding to the attribute is obtained from the mapping set of each simulated order; If the order attribute value corresponding to each simulated order is the same as the attribute value corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
5. The method according to claim 1, characterized in that, If the grouping condition does not meet the preset attribute condition, then determining whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within the group includes: For the attributes and their values corresponding to each sub-rule in the group where the condition for order merging does not meet the preset attribute conditions, the order attribute value corresponding to the attribute is obtained from the mapping set of each simulated order; If the order attribute value corresponding to each simulated order is different from the attribute value corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
6. The method according to claim 1, characterized in that, If the condition for merging orders in the group is that it conforms to a preset order group, then determining whether multiple simulated orders satisfy each sub-rule within each group based on the mapping set of each simulated order and the attributes of the sub-rules within the group includes: For each sub-rule in a group that meets the condition of conforming to a preset order group, the order group information corresponding to the group information is obtained from the mapping set of each simulated order; If the order group information of each simulated order belongs to the grouping information corresponding to the sub-rule, then it is determined that multiple simulated orders satisfy the sub-rule.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: If it is determined that the simulated order does not meet the preset order merging conditions, an order merging rule modification message is sent. The order merging rule modification message is used to indicate the modification of the sub-rule and the attribute corresponding to the sub-rule.
8. The method according to any one of claims 1-6, characterized in that, The stored order consolidation rules contain business information; the method further includes: Receive order information for multiple orders to be merged, and determine the target merging rule corresponding to the multiple orders based on the order information of the orders to be merged and the pre-stored business information of the merging rules; Determine whether the multiple orders to be merged meet the target order merging rule; If the conditions are met, a merged order is generated based on the information of the multiple orders to be merged.
9. The method according to claim 8, characterized in that, Determining whether the multiple orders to be merged meet the target order merging rule includes: The sub-rules in the target merging rule are grouped, wherein each group includes at least one sub-rule; Based on the information of multiple orders to be merged and the attributes of each sub-rule, determine whether the multiple orders to be merged satisfy the sub-rules in each group; If so, then the orders to be merged are determined to meet the target order merging rules; Otherwise, it is determined that the order to be merged does not meet the target order merging rules.
10. A configuration device for order combination rules, characterized in that, include: The acquisition unit is used to acquire the sub-rules selected by the user in the preset configuration information and the attributes corresponding to the sub-rules, and to receive order information of multiple simulated orders. The preset configuration information includes multiple rules and multiple attributes, and the rules represent that the order information meets the conditions for merging orders. A storage unit is configured to store the user-selected sub-rule and the corresponding attribute as a merging rule if, based on the user-selected sub-rule and the attribute corresponding to the sub-rule, the order information of multiple simulated orders meets a preset merging condition. The process of determining that the order information of multiple simulated orders meets the preset merging condition based on the user-selected sub-rule and the attribute corresponding to the sub-rule includes: grouping the user-selected sub-rules, wherein the sub-rules included in each group have the same condition; generating a mapping set corresponding to each simulated order based on the information of each simulated order, the mapping set including a key-value correspondence, the key representing an attribute identifier, and the value representing an attribute value corresponding to the attribute identifier; determining whether multiple simulated orders meet each sub-rule in each group based on the mapping set of each simulated order and the attributes of the sub-rules within each group; if so, determining that the simulated order meets the preset merging condition. The sending unit is used to send order merging rule modification information if it is determined that the simulated order does not meet the preset order merging conditions. The order merging rule modification information is used to indicate the modification of the sub-rule and the attribute corresponding to the sub-rule.
11. A computer device, comprising: Memory, processor; processor; as well as Computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, It contains computer programs. The computer program is executed by a processor to implement the method as described in any one of claims 1-9.
13. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-9.
Citation Information
Patent Citations
Rule management method and device
CN110309142A
Business process simulation method and device, storage medium and electronic equipment
CN111445139A
Method and device for merging target orders
CN111612388A