Commodity mixed placement method and device, electronic equipment and computer readable medium
By obtaining the mixed-placement attribute set and attribute category rule set configured by the user, generating the mixed-placement rule set and grouping order products, the problems of inability to reuse and poor scalability of commodity mixed-placement verification restrictions in the prior art are solved, and the flexibility and rapid business delivery of commodity mixed-placement are achieved.
Patent Information
- Application Number
- CN202311088392.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-03-07
AI Technical Summary
In existing software systems, the commodity mixed-release verification restrictions cannot be reused, the scalability is poor, and it cannot be delivered to business quickly. Especially in complex warehousing systems, the same attributes and different mixed-release verification rules exist between tenants and warehouses, resulting in system R&D personnel facing repeated work and high maintenance costs.
By obtaining the mixed-distribution attribute set and the attribute category rule set configured by the user, a mixed-distribution rule set is generated, and grouping order products based on these rules, the flexible mixed-distribution of products is achieved.
It supports the dynamic configurability of the mixed-placement attributes of the commodity, and customizes the mixed-placement rule set according to different warehouses or tenants, which improves the flexibility and scalability of mixed-placement of the commodity, and does not require development work, and can quickly realize business delivery and reduce R&D investment.
Smart Images

Figure CN119579067A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method and device for mixing commodities, an electronic device, and a computer-readable medium. Background Art
[0002] In existing software systems, commodity mixing and verification restriction conditions are all based on business needs. Business logic codes are written according to fixed business scenarios to meet business needs. They cannot be reused, have very poor scalability, and cannot be quickly delivered for business use. Especially for warehousing systems with complex businesses, there are various restrictions on commodity mixing. Different tenants and warehouses have the same attributes but different mixing and verification rules. User needs are changing in real time, and different business scenarios also have different needs. Such a frequency of changes will bring great pressure of repetitive work to system developers, and the hard-coded method also brings a lot of maintenance costs, which cannot be quickly delivered for business use. Summary of the invention
[0003] The embodiments of the present disclosure provide a commodity mixing method and device, an electronic device, and a computer-readable medium.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for mixing goods, the method comprising: obtaining a mixed attribute set and an attribute category rule set configured by a user, the attribute category rule set being a set of rules for setting rules for the category to which the attribute belongs; generating a mixed rule set based on the mixed attribute set and the attribute category rule set; obtaining an attribute value set of order goods including at least two goods, the attribute values in the attribute value set being the values of each mixed attribute in the mixed attribute set; and grouping the order goods based on the mixed rule set and the attribute value set to obtain a mixed grouping result.
[0005] In some embodiments, the above-mentioned generation of a mixed rule set based on a mixed attribute set and an attribute category rule set includes: for each mixed attribute in the mixed attribute set, selecting an attribute category rule related to the mixed attribute from the attribute category rule set to obtain a selection rule; based on the mixed attribute and the selection rule, obtaining a mixed rule corresponding to the mixed attribute; and collecting the mixed rules of all mixed attributes in the mixed attribute set to obtain a mixed rule set.
[0006] In some embodiments, before the mixing rules of all mixed attributes in the mixed attribute set are collected to obtain the mixed rule set, the above-mentioned generation of the mixed rule set based on the mixed attribute set and the attribute category rule set also includes: verifying the mixing rules of all mixed attributes; in response to the mixed rules of all mixed attributes being verified, collecting the mixing rules of all mixed attributes in the mixed attribute set.
[0007] In some embodiments, the above-mentioned obtaining of the mixed attribute set and attribute category rule set configured by the user includes: obtaining the mixed attributes and attribute category rule set configured by the user; detecting whether the mixed attributes meet the preset attribute requirements; and in response to the mixed attributes meeting the attribute requirements, putting the mixed attributes into the mixed attribute set.
[0008] In some embodiments, the obtaining of the user-configured mixed attribute set and attribute category rule set further includes: in response to the mixed attribute not satisfying the attribute requirement, prompting the user to reconfigure the mixed attribute.
[0009] In some embodiments, the above-mentioned mixed grouping of order products based on the mixed rule set and the attribute value set to obtain the mixed grouping results includes: classifying the mixing rules in the mixed rule set to obtain different types of mixing rules; corresponding each attribute value in the attribute value set to the corresponding type of mixing rule one by one to obtain a reflection relationship group; based on the reflection relationship group, configuring respective common product areas for the products in the order products that meet the respective mixing rules in the mixed rule set, and configuring respective independent product areas for the products that do not meet the mixing rules in the mixed rule set.
[0010] In some embodiments, the above-mentioned mixed grouping of order items based on the mixed rule set and the attribute value set to obtain the mixed grouping result also includes: in response to the mixed attribute being an attribute with order requirements, sorting the reflection relationship group according to the order indicated by the attribute value of the mixed attribute.
[0011] In a second aspect, an embodiment of the present disclosure provides a commodity mixing device, the device comprising: a rule acquisition unit, configured to acquire a mixed attribute set and an attribute category rule set configured by a user, the attribute category rule set being a set of rules for setting rules for the category to which the attribute belongs; a generation unit, configured to generate a mixed rule set based on the mixed attribute set and the attribute category rule set; an attribute acquisition unit, configured to acquire an attribute value set of an order commodity including at least two commodities, the attribute values in the attribute value set being the values of each mixed attribute in the mixed attribute set; a grouping unit, configured to perform mixed grouping of the order commodities based on the mixed rule set and the attribute value set to obtain a mixed grouping result.
[0012] In some embodiments, the generation unit is further configured to: for each mixed attribute in the mixed attribute set, select a major attribute category rule related to the mixed attribute from the major attribute category rule set to obtain a selection rule; based on the mixed attribute and the selection rule, obtain a mixed rule corresponding to the mixed attribute; and collect the mixed rules of all mixed attributes in the mixed attribute set to obtain a mixed rule set.
[0013] In some embodiments, the generating unit is further configured to: verify the mixing rules of all mixing attributes; in response to the mixing rules of all mixing attributes being verified, collect the mixing rules of all mixing attributes in the mixing attribute set.
[0014] In some embodiments, the rule acquisition unit is further configured to: acquire the mixed attributes and attribute category rule sets configured by the user; detect whether the mixed attributes meet the preset attribute requirements; and in response to the mixed attributes meeting the attribute requirements, put the mixed attributes into the mixed attribute set.
[0015] In some embodiments, the rule acquisition unit is further configured to: in response to the mixing attribute not satisfying the attribute requirement, prompt the user to reconfigure the mixing attribute.
[0016] In some embodiments, the grouping unit is further configured to: classify the mixing rules in the mixing rule set to obtain different types of mixing rules; correspond each attribute value in the attribute value set to the corresponding type of mixing rule one by one to obtain a reflection relationship group; based on the reflection relationship group, configure respective common product areas for the products in the order that meet the respective mixing rules in the mixing rule set, and configure respective independent product areas for the products that do not meet the mixing rules in the mixing rule set.
[0017] In some embodiments, the grouping unit is further configured to: in response to the mixing attribute being an attribute with an order requirement, sort the reflective relationship group according to the order indicated by the attribute value of the mixing attribute.
[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any embodiment of the first aspect.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any embodiment of the first aspect.
[0020] The commodity mixing method and device provided by the embodiments of the present disclosure first obtain the mixed attribute set and attribute category rule set configured by the user, the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs; secondly, based on the mixed attribute set and the attribute category rule set, a mixed rule set is generated; thirdly, an attribute value set of order commodities including at least two commodities is obtained, the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set; finally, based on the mixed rule set and the attribute value set, the order commodities are mixed and grouped to obtain the mixed grouping result. Therefore, the present disclosure supports dynamic configuration of the mixed attributes of commodities, and the attribute category rule set and the mixed attribute set are used to implement customized mixed rule sets for different warehouses or tenants. The commodity mixing is flexible and can be infinitely expanded without any development workload; by identifying the configuration of the mixed rule set of the rule center, business delivery can be quickly realized, and the flexibility of commodity mixing is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0022] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;
[0023] Figure 2 is a flow chart of an embodiment of a commodity mixing method according to the present disclosure;
[0024] Figure 3 It is a flow chart of an embodiment of a method for a user to configure a mixed attribute set and an attribute category rule set of the present disclosure;
[0025] Figure 4 is a structural schematic diagram of an embodiment of a commodity mixing device according to the present disclosure;
[0026] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION
[0027] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0029] Figure 1An exemplary system architecture 100 is shown to which the commodity mixing method of the present disclosure can be applied.
[0030] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, and may generally include wireless communication links and the like.
[0031] The terminal devices 101, 102, 103 interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications, such as instant messaging tools, email clients, etc., may be installed on the terminal devices 101, 102, 103.
[0032] The terminal devices 101, 102, 103 may be hardware or software; when the terminal devices 101, 102, 103 are hardware, they may be user devices with communication and control functions, and the user devices may communicate with the server 105. When the terminal devices 101, 102, 103 are software, they may be installed in the user devices; the terminal devices 101, 102, 103 may be implemented as multiple software or software modules (for example, software or software modules for providing distributed services), or may be implemented as a single software or software module. No specific limitation is made here.
[0033] The terminal devices 101 , 102 , and 103 monitor the mixed playback attributes configured by the user in real time, obtain a mixed playback attribute set, and report the mixed playback attribute set to the server 105 .
[0034] The server 105 may be a server that provides various services, such as a background server that generates a mixed placement rule set for the mixed placement attribute set on the terminal devices 101, 102, and 103. The background server may receive the mixed placement attribute set sent by the terminal devices 101, 102, and 103, match the mixed placement rule set based on the mixed placement attribute set, perform mixed placement grouping on the items in the order items, obtain a mixed placement grouping processing result, and feed the mixed placement grouping processing result back to the terminal devices 101, 102, and 103.
[0035] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0036] It should be noted that a commodity mixing method provided in an embodiment of the present disclosure is generally executed by the server 105 ; a commodity mixing device provided in an embodiment of the present disclosure is generally disposed in the server 105 .
[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0038] Aiming at the defect of poor flexibility in the traditional technology of programming mixed commodity placement based on business needs, the present disclosure provides a commodity mixing method, which can flexibly match the mixing rules and mix the commodities according to the mixing rules, thereby reducing the manpower operation and maintenance costs and improving the flexibility of commodity mixing placement. Figure 2 , shows a process 200 of an embodiment of a commodity mixing method according to the present disclosure, the commodity mixing method comprising the following steps:
[0039] Step 201: Obtain the mixed attribute set and attribute category rule set configured by the user.
[0040] In this embodiment, the mixed attribute set is a set composed of at least one mixed attribute configured by the user, and the mixed attribute set includes at least one mixed attribute, each mixed attribute is an attribute of a product in the order product, and after the order product is generated, each attribute has a corresponding attribute value, and the attribute value is used to characterize the attribute number, level, priority, generation time, end time, etc. When configuring the mixed attribute set, the user determines the attributes that need to be mixed according to business needs, and sends the attributes that need to be mixed as mixed attributes to the execution subject on which the product mixing method runs through the configuration method.
[0041] In this embodiment, the mixed attribute is the attribute of the product, and the mixed attribute set is a set of attributes of the product configured by the user. After obtaining the mixed attribute set, the execution subject on which the product mixing method runs can determine the attributes of the product that need to be analyzed in detail by parsing the mixed attributes in the mixed attribute set.
[0042] In this embodiment, the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs. The attribute category rule set includes at least one attribute category rule, and each attribute category rule is used to set rules for the category to which the attribute belongs. For example, the attribute category rule is: goods with different essential attributes cannot be mixed, or the attribute category rule is: goods with different order documents cannot be mixed, wherein the essential attribute of the goods is the category of mixed attributes, and the mixed attributes configured by the user can be refrigeration and freezing, that is, refrigeration and freezing are subcategories of the essential attributes, and the essential attributes are the category of refrigeration and freezing; the attributes of the order document are the category of the order, and the order name and number configured by the user are the order document.
[0043] In this embodiment, the attribute category rule set is a collection of preset settings. The attribute category rules in the attribute category rule set are a collection that basically covers all categories to which the attributes of the goods belong. The attribute category rules corresponding to each mixed attribute can be determined from the attribute category rule set.
[0044] In this embodiment, the user may be a program operator who writes programs, a warehouse manager who maintains the goods in the warehouse, or a dispatcher who processes orders.
[0045] Step 202: Generate a mixed rule set based on the mixed attribute set and the attribute category rule set.
[0046] In this embodiment, the mixing rule set includes at least one mixing rule, each mixing rule corresponds to a mixing attribute in the mixing attribute set, and the mixing rule set is a rule corresponding to each mixing attribute in the mixing attribute set.
[0047] In this embodiment, the attribute category rule set is a set of rules for the categories to which the mixed attributes in the mixed attribute set belong. To this end, it is necessary to first pass through the attribute category rules of each mixed attribute in the mixed attribute set. Since the attribute category rules are the rules of the attribute categories, the mixed attributes are replaced with the attribute categories to obtain the mixed rules of the mixed attributes. For example, the attribute category rule set is: commodities with different essential attributes cannot be mixed and the attributes of order documents are different and cannot be mixed. The mixed attributes configured by the user are refrigeration and freezing, then the mixed rule of the mixed attributes is: commodities with refrigeration attributes can be mixed.
[0048] Optionally, the above step 202 includes: detecting whether the mixed attribute set corresponds to the categories of each attribute category rule in the attribute category rule set through a preset attribute and category data pool; in response to the one-to-one correspondence between the mixed attribute set and the categories of each attribute category rule in the attribute category rule set, generating a mixed rule set based on the mixed attribute set and the attribute category rule set.
[0049] The preset data pool of attributes and categories is a set of data tables corresponding to the attributes and categories. The categories to which all attributes belong can be queried through the preset data pool of attributes and categories.
[0050] Optionally, in response to at least one mixed attribute in the mixed attribute set not corresponding to a category of all attribute category rules in the attribute category rule set, a category corresponding to the at least one mixed attribute is queried from a data pool of preset attributes and categories, and based on the queried category, an attribute category rule is generated, and the generated attribute category rule is added to the attribute category rule set.
[0051] In this embodiment, a mixed attribute set configured by the user is used to match the corresponding attribute category rule set in the attribute category rule set, and the mixed attribute is used to replace the matched attribute category rule set to obtain a mixed rule set. This allows users to dynamically set the corresponding mixed attribute set based on their respective business needs and generate a dynamic mixed rule set, so that order items can be verified through the mixed rule set, providing reliable support for the grouping of order items.
[0052] Step 203: Acquire a set of attribute values of an order item including at least two items.
[0053] In this embodiment, the attribute values in the attribute value set are values of each mixed attribute in the mixed attribute set.
[0054] In this embodiment, the order item is an item in an order, and the order item includes at least two items. Based on the mixing attributes set by the user, it can be determined whether and how to mix the at least two items in the order item.
[0055] In this embodiment, each product in the order product has an attribute. When an order is generated, the attributes of the products in the order product are set with fixed attribute values. For example, the code corresponding to refrigeration is 001, and the code corresponding to freezing is 002. The mixed attribute is an attribute set by the user to determine whether to mix. Since the attributes of each product in the order product have corresponding attribute values, the mixed attribute also has corresponding attribute values.
[0056] The above step 203 includes: obtaining an order and determining the order items; and determining the attribute value of the mixed attribute of each item in the order item based on the mixed attribute set by the user.
[0057] Optionally, the above step 203 may also include: obtaining an order, parsing the items in the order, and obtaining the order items; obtaining the attributes of all items in the order items and the attribute value of each attribute; and screening the mixed attributes and the attribute values of the mixed attributes in all items.
[0058] Step 204 , based on the mixing rule set and the attribute value set, the order products are mixed and grouped to obtain a mixed grouping result.
[0059] In this embodiment, the mixing rule set includes at least one mixing rule, each mixing rule is a rule for whether to mix mixed attributes; the order product determines the attribute through the attribute value, and the mixing rule is executed on the attribute value of the mixing attribute of each product in the order product to determine the products that need to be mixed and the products that do not need to be mixed.
[0060] The above step 204 includes: determining the attribute value of each item in the order, based on the attribute value and the mixing rule, detecting whether the mixed attributes of the order items are the same or different, and based on the result that the mixed attributes are the same or different, determining whether the items in the order items can be mixed or not.
[0061] In a specific example, the mixing rule is: goods with different refrigeration characteristics cannot be mixed, and the order goods include: Goods 1, Goods 2, and Goods 3, among which Goods 1 is a refrigerated product, coded as 001; Goods 2 is a frozen product, coded as 002; Goods 3 is a chilled product, coded as 001; based on the attribute values of the order goods and the fact that goods with different refrigeration characteristics cannot be mixed, it is determined that Goods 1 and Goods 3 in the order goods can be mixed, while the goods need to be placed separately.
[0062] The core architecture of the disclosed implementation includes: dictionary items, configuration center, rule parser, reflector, sorter, mixing rule checker, and exception listener.
[0063] Dictionary item: responsible for maintaining source data. The mixed attributes in the drop-down items in the configuration center are derived from this.
[0064] Configuration Center: Mainly used to add attribute category rules for commodities in the attribute category rule set, and configure document and commodity-related attribute category rules according to business scenarios. The configuration here is also the key part of subsequent unlimited expansion. The expansion of mixed attributes can be achieved through configuration, which is more flexible and easy to use.
[0065] Rule parser: obtains the mixing rules according to the business identity, classifies the business scenarios according to the mixing rule set, and implements different business process controls.
[0066] Reflector: Use the reflector to complete data parsing and encapsulation according to the data source object input parameters, and finally return a set of reflection relationship groups for subsequent use in executing mixing rules.
[0067] Sorter: It is responsible for sorting multiple attribute values of a product and processing them into key+value character data. It can also process multiple attribute values of a product into one value for comparison.
[0068] Rule validator: responsible for looping and executing the mixing rules based on the obtained attribute value set.
[0069] Exception listener: responsible for monitoring the execution results of the mix-and-place rule set. If one mix-and-place rule fails to execute, all will be terminated and the custom error message configured in the rule will be returned to the caller to prompt the user the reason for the failure of product mix-and-place.
[0070] Optionally, the architecture may further include: a log receiver, wherein the log receiver is responsible for recording the received stack information into the log receiver.
[0071] The commodity mixing method provided in this embodiment supports dynamic configuration of commodity mixing rules in the container, can implement customized mixing rules according to different warehouses or tenants, is flexible and infinitely expandable, and does not require any development workload. By identifying the mixing rule set of the rule center, business delivery can be quickly achieved and the delivery speed can be improved. Since the frequent changes of the core logic can be reduced to ensure the stability of the system; the workload of repeated development can be reduced to achieve rapid delivery of requirements; the reusability of the program can be improved, and the commodity attribute category rule set in the container does not need secondary development. The operator can customize the mixing rules according to the business scenario, and can also derive a variety of ways to infinitely expand the business scenario; infinitely adapt to various business scenarios, high expansion (verification rules can be dynamically configured, and customized scenarios can be used in combination according to user needs), high performance (targeted expansion, will not add useless content, and bring overhead to the system); improve code readability, the code will not increase complexity with changes in demand, use a unified processing logic, dynamically adapt parameter conditions, and facilitate maintenance.
[0072] The commodity mixing method provided by the embodiment of the present disclosure first obtains the mixed attribute set and attribute category rule set configured by the user, the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs; secondly, based on the mixed attribute set and the attribute category rule set, a mixed rule set is generated; thirdly, an attribute value set of order commodities including at least two commodities is obtained, the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set; finally, based on the mixed rule set and the attribute value set, the order commodities are mixed and grouped to obtain the mixed grouping result. Therefore, the present disclosure supports dynamic configuration of the mixed attributes of commodities, and the attribute category rule set and the mixed attribute set are used to implement customized mixed rule sets for different warehouses or tenants. The commodity mixing is flexible and can be infinitely expanded without any development workload; by identifying the configuration of the mixed rule set of the rule center, business delivery can be quickly realized, and the flexibility of commodity mixing is improved.
[0073] In some optional implementations disclosed above, the generation of the mixed rule set based on the mixed attribute set and the attribute category rule set includes: for each mixed attribute in the mixed attribute set, selecting the attribute category rule related to the mixed attribute from the attribute category rule set to obtain the selection rule; based on the mixed attribute and the selection rule, obtaining the mixed rule corresponding to the mixed attribute; and collecting the mixed rules of all mixed attributes in the mixed attribute set to obtain the mixed rule set.
[0074] In this optional implementation, the selection rule is the attribute category rule related to the mixed attributes in the attribute category rule set. Since the attribute category rule in the attribute category rule set is a rule for setting the category to which the attribute belongs, the rule setting is used to set whether mixing is required.
[0075] In this optional implementation, the attribute category rules in the attribute category rule set are multiple rules set based on the attribute categories, for example, the attribute category rule is that goods with different category names cannot be mixed; the selection rule includes one or more attribute category rules, and the above-mentioned mixing rule corresponding to the mixed attribute based on the mixed attribute and the selection rule includes: inputting the mixed attribute into the selection rule to obtain the mixing rule corresponding to the mixed attribute; wherein, inputting the mixed attribute into the selection rule can make the mixed attribute replace the category name of its corresponding attribute category, so that the obtained mixing rule is no longer only related to the attribute category, but is a rule for the mixed attribute under the attribute category, which is used to restrict the goods under the mixed attribute. After the mixed attribute is input, the attribute category rule in the above example obtains the mixing rule as follows: goods with different mixed attributes cannot be mixed.
[0076] In this optional implementation, each mixed attribute has a corresponding attribute category, and each attribute category rule in the attribute category rule set has a corresponding category type. For example, an attribute category rule is: different document attributes cannot be mixed, where the document attributes belong to a certain attribute category. The mixed attributes configured by the user can be: document owner, document name, document number, etc.
[0077] The method for generating a mixed rule set provided by the present embodiment first selects attribute category rules related to mixed attributes from the attribute category rule set to obtain selection rules; obtains mixed rules based on the mixed attributes and the selection rules; and obtains a mixed rule set by gathering the mixed rules of all mixed attributes in the mixed attribute set. Thus, after obtaining the mixed attribute set configured by the user, a corresponding mixed rule set can be flexibly configured for the mixed attribute set, thereby improving the flexibility of obtaining the mixed rule set.
[0078] Optionally, the generation of the mixed rule set based on the mixed attribute set and the attribute category rule set may also include: matching the mixed attribute set with the attribute category rules in the attribute category rule set based on the preset attribute and category data pool, and replacing the attribute categories in the respective attribute category rules with the mixed attributes in the mixed attribute set based on the attribute category rules matched by the mixed attribute set, to obtain a mixed rule set corresponding to each mixed attribute in the mixed attribute set. In this optional implementation, the attribute category rules are rules for configuring mixed strategies for attribute categories, and replacing the attribute categories in the respective attribute category rules with the mixed attributes can ensure that the mixed rules in the mixed rule set are rules corresponding to the mixed attributes.
[0079] In some optional implementations disclosed, before the mixing rules of all mixed attributes in the mixed attribute set are collected to obtain the mixed rule set, the above-mentioned generation of the mixed rule set based on the mixed attribute set and the attribute category rule set also includes: verifying the mixing rules of all mixed attributes; in response to the mixed rules of all mixed attributes being verified, collecting the mixing rules of all mixed attributes in the mixed attribute set.
[0080] In this embodiment, generating a mixed rule set based on a mixed attribute set and an attribute category rule set includes: for each mixed attribute in the mixed attribute set, selecting an attribute category rule related to the mixed attribute from the attribute category rule set to obtain a selection rule; based on the mixed attribute and the selection rule, obtaining a mixed rule corresponding to the mixed attribute; verifying the mixed rules of all mixed attributes; in response to the mixed rules of all mixed attributes being verified, collecting the mixed rules of all mixed attributes in the mixed attribute set to obtain a mixed rule set.
[0081] In this embodiment, the verification of the mixing rules of all mixing attributes may be performed by manual verification. For example, after generating the mixing rules of all mixing attributes, the generated mixing rules are displayed on an interactive interface for interacting with the user. After obtaining confirmation information from the user on each mixing rule, it is determined that the mixing rule verification has passed.
[0082] Optionally, the verification of the mixing rules of all mixing attributes may also be performed by machine verification, for example, various preset mixing rules are programmed in a scripting language, and the program is used to verify whether the mixing rules are correct. If the verification passes, it is determined that the mixing rules are verified.
[0083] The method for generating a mixing rule set provided by this optional implementation manner verifies the mixing rules of all mixing attributes after obtaining the mixing rules corresponding to the mixing attribute set, thereby ensuring the correctness of the obtained mixing rule set.
[0084] In some optional implementations of the present disclosure, the above-mentioned obtaining the mixed attribute set and attribute category rule set configured by the user includes: obtaining the mixed attributes and attribute category rule set configured by the user; detecting whether the mixed attributes meet the preset attribute requirements; in response to the mixed attributes meeting the attribute requirements, putting the mixed attributes into the mixed attribute set.
[0085] In this embodiment, the attribute requirement is a specification set for the mixed attribute, which can come from a data pool of attributes and major categories. The data pool of attributes and major categories is a data pool set up to configure the mixed attribute. After the user configures the mixed attribute, it is detected whether the mixed attribute configured by the user is an attribute in the data pool. In response to the attribute being in the data pool, it is determined that the mixed attribute meets the attribute requirement, and the mixed attribute is placed in the mixed attribute set.
[0086] In this embodiment, the mixed attribute set includes at least one mixed attribute, each mixed attribute is obtained by user configuration, and the user configuration mixed attribute process includes: obtaining the attribute from the data pool of attributes and major categories in advance, displaying the attribute on the interactive interface for interacting with the user, and the user selecting an attribute in the attribute to obtain the user-configured mixed attribute.
[0087] Further, it is checked whether the mixed attribute configured by each user meets the attribute requirement. If so, the mixed attribute configured by the user is put into the mixed attribute set to obtain the mixed attribute set finally configured by the user.
[0088] This optional implementation method provides for obtaining the mixed attribute set and attribute category rules configured by the user. After obtaining the mixed attributes configured by the user, it detects whether the mixed attributes configured by the user meet the preset attribute requirements, and puts the mixed attributes configured by the user that meet the attribute requirements into the mixed attribute set, thereby improving the reliability of obtaining the mixed attributes in the mixed attribute set.
[0089] Optionally, the above-mentioned obtaining of the mixed attribute set and attribute category rule set configured by the user includes: obtaining the mixed attributes and attribute category rule set directly input by the user; detecting whether the mixed attributes input by the user meet preset attribute requirements; in response to the mixed attributes meeting the attribute requirements, putting the mixed attributes into the mixed attribute set.
[0090] Optionally, obtaining the mixed attribute set and attribute category rule set configured by the user also includes: obtaining the mixed attributes and attribute category rule set configured by the user; detecting whether the mixed attributes meet preset attribute requirements; in response to the mixed attributes meeting the attribute requirements, placing the mixed attributes into the mixed attribute set; detecting whether each mixed attribute in the mixed attribute set has a corresponding attribute category rule in the attribute category rule set, and in response to each mixed attribute having a corresponding attribute category rule, determining that the mixed attribute set and attribute category rule set are correct.
[0091] Optionally, obtaining the mixed attribute set and attribute category rule set configured by the user also includes: obtaining the mixed attributes and attribute category rule set configured by the user; detecting whether the mixed attributes meet the preset attribute requirements; in response to the mixed attributes meeting the attribute requirements, placing the mixed attributes into the mixed attribute set; detecting whether each mixed attribute in the mixed attribute set has a corresponding attribute category rule in the attribute category rule set, and in response to mixed attributes having no corresponding attribute category rule, determining the category of the mixed attributes without corresponding attribute category rule based on the data pool of attributes and categories, displaying the category, and receiving the attribute category rule input by the user from the interactive interface for interacting with the user (the user adds the attribute rule set based on the displayed category), and determining the mixed attribute set and the attribute category rule set.
[0092] In the above optional implementation, the above-mentioned obtaining the user-configured mixed attribute set and attribute category rule set further includes: in response to the mixed attribute not meeting the attribute requirement, prompting the user to reconfigure the mixed attribute.
[0093] In this optional implementation, when the mixing attributes do not meet the attribute requirements, it is determined that the mixing attributes configured by the user are incorrect, and the user is prompted to reconfigure the mixing attributes, further improving the reliability of obtaining the mixing attributes.
[0094] In some optional implementations of the present embodiment, order products are mixed and grouped based on a mixing rule set and an attribute value set, and the mixed grouping results include: classifying the mixing rules in the mixing rule set to obtain different types of mixing rules; corresponding each attribute value in the attribute value set to the corresponding type of mixing rule one by one to obtain a reflection relationship group; based on the reflection relationship group, configuring respective common product areas for the products in the order products that meet the respective mixing rules in the mixing rule set, and configuring respective independent product areas for the products that do not meet the mixing rules in the mixing rule set.
[0095] In this optional implementation, the attribute value of each item in each order item is a fixed value obtained after the order is generated. The attribute values of items with the same attributes in the order are the same, and the attribute values of items with different attributes in the order are different.
[0096] In this optional implementation, the goods in the order goods have a mixed attribute, and classifying the mixed rules in the mixed rule set means classifying the mixed rules in the mixed rule set according to the major category of the attribute. For example, the mixed rule set includes: the same SKU (Stock Keeping Unit, minimum inventory unit) goods with different production attributes cannot be mixed, different order document attributes cannot be mixed, and different goods storage attributes cannot be mixed. Then the mixed rule set based on the major category of the attribute is divided into three categories: SAME, DIFFERENT, and GROUP.
[0097] Among them, SAME means that the same SKU with different attributes cannot be mixed (for example, the same SKU but different batches cannot be mixed to prevent the wrong batch from being picked when picking goods).
[0098] DIFFERENT means that documents with different attributes cannot be mixed (for example, documents with different owners cannot be mixed. This is to ensure that when a product is running low, we can know which owner’s supply is missing, so as to facilitate tracking and positioning).
[0099] GROUP means that products with different attributes cannot be mixed (for example, products with different storage environments, such as refrigeration and freezing, cannot be mixed because the storage environment requirements of products are different).
[0100] In this optional implementation, the reflection relationship group is the correspondence between the attribute values of each mixing attribute in the mixing rule, and the product mixing attributes, attribute values and mixing rules of the order products can be matched through the reflection relationship. Optionally, the reflection relationship can be the correspondence between the mixing rule type, mixing attributes, mixing rules and attribute values.
[0101] In this optional implementation, each item in the order has a corresponding reflection relationship group. When the reflection relationship groups of any two items are the same, it is determined that the two items satisfy the mixed placement rule set, and the items in the order that have the same reflection relationship group are configured in the same item area; and independent item areas are configured for items in the order that do not satisfy the mixed placement rules in the mixed placement rule set, so that each item has an independent item area.
[0102] The method for obtaining the mixed grouping result provided in this embodiment classifies the mixed rule set and determines the type of each mixed rule in the rule set; each attribute value in the attribute value set is set correspondingly with the mixing rule of the corresponding type to obtain a reflection relationship group, thereby digitizing the mixed attributes of all commodities, facilitating the digitized representation of the attributes of all commodities in the order commodities, and improving the efficiency of commodity mixing.
[0103] Optionally, the above-mentioned mixed grouping of order items based on the mixed rule set and the attribute value set to obtain the mixed grouping result includes: for mixed items in the order items with multiple mixed attributes and in multiple quantities, selecting the current mixed rule in the mixed rule set corresponding to the multiple mixed attributes; based on the attribute value set, detecting whether the attribute value corresponding to the current mixed rule satisfies the current mixed rule, and in response to not satisfying the current mixed rule; selecting the next mixed rule in the mixed rule set; based on the attribute value set, detecting whether the attribute value corresponding to the next mixed rule satisfies the next mixed rule, and in response to satisfying the next mixed rule, grouping the mixed items according to the next mixed rule to obtain the mixed grouping result.
[0104] In this optional implementation, for multiple mixed products in an order product having multiple mixed attributes, one mixing rule from a mixing rule set corresponding to the multiple mixing attributes of the multiple mixed products is randomly selected as the current mixing rule; if the attribute value corresponding to the current mixing rule satisfies the current mixing rule, other mixing attributes of the multiple mixing attributes are no longer considered.
[0105] With respect to the above optional implementations, in some other optional implementations of the present embodiment, the above-mentioned mixed grouping of order items based on the mixed rule set and the attribute value set to obtain the mixed grouping result also includes: in response to the mixed attribute being an attribute with order requirements, sorting the reflection relationship group according to the order indicated by the attribute value of the mixed attribute.
[0106] In this optional implementation, the attribute with order requirements can be an attribute with priority or time order. For example, if the mixed attribute is a batch attribute, then different batches of goods have different time orders. By sorting the attribute values in the reflective relationship group so that the reflective relationship group has a corresponding order relationship, it is convenient to compare the goods of the same batch.
[0107] The method for obtaining the mixed grouping result provided by this optional implementation method, when the mixed attributes have order requirements, sorts the attribute values in the reflection relationship according to the order indicated by the attribute values of the mixed attributes, which can facilitate the effective grouping of the goods in the order goods and improve the efficiency of mixing the goods.
[0108] In the receiving link of the warehouse management system, in order to improve the efficiency of shelving and prevent mixed products in storage locations, it is necessary to control the mixed placement of goods in containers according to different business scenarios on site. Due to the uncertainty of the business, it is often necessary to continuously add verification rules to meet business needs. If the verification rules are frequently changed, the stability of the core logic cannot be guaranteed, and a large amount of repetitive development work is not easy to expand and develop the business in the long term. Therefore, the mixed placement method of goods disclosed in the present invention is used to solve such problems, which can quickly meet business needs and reduce the cost of R&D investment. The implementation personnel / tenant administrator can complete the control of the mixed placement restrictions of goods in the receiving container according to their own business needs.
[0109] In an embodiment of the present disclosure, users can mix and distribute goods in order goods in the tenant dimension and warehouse dimension. Figure 3 , shows a flowchart of an embodiment of a method for a user to configure a mixed attribute set and an attribute category rule set according to the present disclosure.
[0110] exist Figure 3 In the process, a user logs in to the management end of a WMS (warehouse management system) and maintains an initial attribute set including at least one attribute in a dictionary item configuration item of basic data. Specifically, the maintenance process is to add a mixed attribute.
[0111] On the configuration page of attribute category rules, select the attribute category rule set. The attribute category rule set can include one or more of the document attribute dimension, document product dimension, and product attribute dimension. If you want to control the attributes in the mixed rules of the container, you can select the content maintained in the dictionary item, that is, select the mixed attribute set from the initial attribute set.
[0112] The configured mixed attribute sets and attribute category rule sets can be previewed, and the mixed rule sets can be generated through the server. The business scenario simulation is performed on the mixed rule sets. The user verifies whether the mixed rule configuration is correct. If the verification fails, the user returns to the configuration of the mixed attribute set to make modifications. If the verification passes, the configuration parameters are guaranteed to the database. The mixed rule verification can be done in the tenant dimension or the warehouse dimension, which is convenient and easy to use.
[0113] The user logs in to WMS, and on the receiving page, selects the incoming order and goods to be inspected (the order goods and their attribute values can be obtained at this time). After clicking Submit, the parameters are passed to the server. The server first obtains the corresponding attribute category rule set based on the business identity, and then parses the returned attribute category rule set into SAME, DIFFERENT, and GROUP through the rule parser. The attribute values of multiple items of the order goods that need to be verified are parsed into a map set. The product attributes are parsed into a string through the sorter to convert the multiple product attribute values into one attribute, and then the rule verifier related to the mixed rule set is called.
[0114] The rule verifier is responsible for executing the mixed rules parsed by the rule parser. If the verification passes, it will continue to execute the next rule in the mixed rule set until all the mixed rules in the mixed rule set are executed and the process ends.
[0115] If the verification fails, the operation is terminated, and the exception listener is responsible for obtaining the error message of the mixed rule, returning it to the user, prompting the user with the corresponding prompt, and reporting the error log record to the log receiver.
[0116] Further references Figure 4 As an implementation of the commodity mixing method shown in the above figures, the present disclosure provides an embodiment of a commodity mixing device. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0117] like Figure 4As shown, an embodiment of the present disclosure provides a commodity mixing device 400, and the device 400 includes: a rule acquisition unit 401, a generation unit 402, an attribute acquisition unit 403, and a grouping unit 404. Among them, the above-mentioned rule acquisition unit 401 can be configured to obtain a mixed attribute set and an attribute category rule set configured by a user, and the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs. The above-mentioned generation unit 402 can be configured to generate a mixed rule set based on the mixed attribute set and the attribute category rule set. The above-mentioned attribute acquisition unit 403 can be configured to obtain an attribute value set of an order commodity including at least two commodities, and the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set. The above-mentioned grouping unit 404 can be configured to perform mixed grouping of the order commodities based on the mixed rule set and the attribute value set to obtain a mixed grouping result.
[0118] In this embodiment, in the commodity mixing device 400, the specific processing of the rule acquisition unit 401, the generation unit 402, the attribute acquisition unit 403, and the grouping unit 404 and the technical effects thereof can be referred to respectively. Figure 2 Corresponding to step 201, step 202, step 203, and step 204 in the embodiment.
[0119] In some embodiments, the generation unit 402 is further configured to: for each mixed attribute in the mixed attribute set, select a major attribute category rule related to the mixed attribute from the major attribute category rule set to obtain a selection rule; based on the mixed attribute and the selection rule, obtain a mixed rule corresponding to the mixed attribute; and collect the mixed rules of all mixed attributes in the mixed attribute set to obtain a mixed rule set.
[0120] In some embodiments, the generating unit 402 is further configured to: verify the mixing rules of all mixing attributes; and in response to the mixing rules of all mixing attributes being verified, collect the mixing rules of all mixing attributes in the mixing attribute set.
[0121] In some embodiments, the rule acquisition unit 401 is further configured to: acquire the mixed attributes and attribute category rule set configured by the user; detect whether the mixed attributes meet the preset attribute requirements; and in response to the mixed attributes meeting the attribute requirements, put the mixed attributes into the mixed attribute set.
[0122] In some embodiments, the rule acquisition unit 401 is further configured to: in response to the mixing attribute not meeting the attribute requirement, prompt the user to reconfigure the mixing attribute.
[0123] In some embodiments, the grouping unit 404 is further configured to: classify the mixing rules in the mixing rule set to obtain different types of mixing rules; correspond each attribute value in the attribute value set to the corresponding type of mixing rule one by one to obtain a reflection relationship group; based on the reflection relationship group, configure respective common product areas for the products in the order that meet the respective mixing rules in the mixing rule set, and configure respective independent product areas for the products that do not meet the mixing rules in the mixing rule set.
[0124] In some embodiments, the grouping unit 404 is further configured to: in response to the mixing attribute being an attribute with an order requirement, sort the reflective relationship groups according to the order indicated by the attribute value of the mixing attribute.
[0125] The commodity mixing device provided by the embodiment of the present disclosure, first, the rule acquisition unit 401 obtains the mixed attribute set and the attribute category rule set configured by the user, the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs; secondly, the generation unit 402 generates the mixed rule set based on the mixed attribute set and the attribute category rule set; thirdly, the attribute acquisition unit 403 obtains the attribute value set of the order commodity including at least two commodities, the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set; finally, the grouping unit 404 performs mixed grouping on the order commodity based on the mixed rule set and the attribute value set to obtain the mixed grouping result. Therefore, the present disclosure supports the dynamic configuration of the mixed attributes of commodities, and the attribute category rule set and the mixed attribute set are used to implement the customized mixed rule set for different warehouses or tenants, so that the commodity mixing is flexible and can be infinitely expanded without any development workload; by identifying the configuration of the mixed rule set of the rule center, the business delivery can be realized quickly, and the flexibility of commodity mixing is improved.
[0126] Reference below Figure 5 , which shows a structural schematic diagram of an electronic device 500 suitable for implementing an embodiment of the present disclosure.
[0127] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0128] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0129] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0130] It should be noted that the computer-readable medium of the embodiment of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiment of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the embodiment of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0131] The computer-readable medium may be included in the server; or it may exist independently without being installed in the server. The computer-readable medium carries one or more programs. When the one or more programs are executed by the server, the server: obtains the mixed attribute set and attribute category rule set configured by the user, the attribute category rule set is a set of rules for setting rules for the category to which the attribute belongs; generates a mixed rule set based on the mixed attribute set and the attribute category rule set; obtains an attribute value set of order items including at least two items, the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set; and performs mixed grouping of the order items based on the mixed rule set and the attribute value set to obtain a mixed grouping result.
[0132] Computer program code for performing the operations of embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as a separate software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0134] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, for example, may be described as: a processor comprising a rule acquisition unit, a generation unit, an attribute acquisition unit, and a grouping unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the rule acquisition unit may also be described as a unit "configured to obtain a user-configured mixed attribute set and attribute category rule set".
[0135] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) to form a technical solution.
Claims
1. A method for mixing commodities, the method comprising: Obtaining a user-configured mixed attribute set and attribute category rule set, wherein the attribute category rule set is a rule set for setting rules for the category to which the attribute belongs; Generate a mixed rule set based on the mixed attribute set and the attribute category rule set; Acquire an attribute value set of order items including at least two items, wherein the attribute values in the attribute value set are the values of each mixed attribute in the mixed attribute set; The order commodities are mixed and grouped based on the mixed and placed rule set and a mixed and placed grouping result is obtained.
2. The method according to claim 1, wherein: The generating of the mixed placement rule set based on the mixed placement attribute set and the attribute category rule set comprises: For each mixed attribute in the mixed attribute set, selecting an attribute category rule related to the mixed attribute from the attribute category rule set to obtain a selection rule; Based on the mixing attribute and the selection rule, obtaining a mixing rule corresponding to the mixing attribute; The mixing rules of all the mixing attributes in the mixing attribute set are collected to obtain a mixing rule set.
3. The method according to claim 2, wherein: Before the mixing rules of all the mixed attributes in the mixed attribute set are assembled to obtain the mixed rule set, the generating of the mixed rule set based on the mixed attribute set and the attribute category rule set further includes: Verify the mixing rules of all mixing attributes; In response to the mixing rules of all the mixing attributes being verified to be successful, the mixing rules of all the mixing attributes in the mixing attribute set are collected.
4. The method according to claim 1, wherein: The method of obtaining the user-configured mixed attribute set and attribute category rule set includes: Get the user-configured mix and play attributes and attribute category rule sets; Detecting whether the mixing attribute meets the preset attribute requirements; In response to the mixing attribute satisfying the attribute requirement, the mixing attribute is added to a mixing attribute set.
5. The method according to claim 4, wherein: The method of obtaining the mixed attribute set and attribute category rule set configured by the user further includes: In response to the mixing and placing attribute not satisfying the attribute requirement, prompting the user to reconfigure the mixing and placing attribute.
6. The method according to claim 1, wherein: The mixing and grouping of the order commodities based on the mixing and grouping rule set and the attribute value set to obtain the mixing and grouping result includes: Classifying the mixing rules in the mixing rule set to obtain different types of mixing rules; Matching each attribute value in the attribute value set with a corresponding type of mixing rule one by one to obtain a reflection relationship group; Based on the reflective relationship group, respective common commodity areas are configured for commodities in the order commodities that meet the respective mixing rules of the mixing rule set, and respective independent commodity areas are configured for commodities that do not meet the mixing rules in the mixing rule set.
7. The method according to claim 6, wherein: The mixing and grouping the order commodities based on the mixing rule set and the attribute value set to obtain the mixing and grouping result further comprises: In response to the mix-and-place attribute being an attribute with an order requirement, the reflective relationship group is sorted according to an order indicated by an attribute value of the mix-and-place attribute.
8. A commodity mixing device, comprising: A rule acquisition unit is configured to acquire a mixed attribute set and an attribute category rule set configured by a user, wherein the attribute category rule set is a rule set for setting rules for the category to which the attribute belongs; A generating unit, configured to generate a mixed placement rule set based on the mixed placement attribute set and the attribute category rule set; An attribute acquisition unit is configured to acquire an attribute value set of an order product including at least two products, wherein the attribute values in the attribute value set are values of each mixed attribute in the mixed attribute set; The grouping unit is configured to perform mixed grouping on the order commodities based on the mixed rule set and the attribute value set to obtain a mixed grouping result.
9. According to the device of claim 8, the generating unit is further configured to: for each mixed attribute in the mixed attribute set, select the attribute category rule related to the mixed attribute from the attribute category rule set to obtain the selection rule; based on the mixed attribute and the selection rule, obtain the mixed rule corresponding to the mixed attribute; and collect the mixed rules of all mixed attributes in the mixed attribute set to obtain the mixed rule set.
10. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.