Data processing method, device and system and computer readable storage medium
Through the matching and processing of order control strategies, multiple order control pools are used to store sub-strategies, the problem of warehouse order backlog is solved, efficient order control is achieved, and computing costs are reduced and computing efficiency is improved.
Patent Information
- Application Number
- CN202311480651.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-08
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2043-11-08
AI Technical Summary
It is difficult for the warehouse to complete the batch outbound operation of all orders on the same day during the peak order period or when there is insufficient manpower, resulting in a backlog of orders and affecting operation efficiency.
Through the matching and processing of order control policies, multiple order control pools are used to store sub-policies, match the target attribute values and sub-policies in order control information, and determine the intersection to determine whether to allow orders to be placed or create a new policy.
The process of unrelated data matching is reduced, the computing cost is reduced, the computing efficiency is improved, and the user requests can be responded to faster, the order control efficiency is improved, and the warehouse order backlog problem is solved.
Smart Images

Figure CN119963278A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method. Background Art
[0002] At present, the number of e-commerce business orders is increasing day by day, and customer orders will be sent to the warehouse in batches and processed by warehouse operators. In the case of a surge in order volume during the peak order period or insufficient warehouse operators, it is difficult to complete the batch outbound operation of all orders on the same day, which will cause a backlog of orders to be outbound in the warehouse, seriously affecting the warehouse's operating efficiency. Summary of the invention
[0003] The inventors have found that using an order control strategy to determine whether a user's order falls within the order control strategy, thereby controlling the order, can help solve the above-mentioned problem.
[0004] A technical problem to be solved by the present disclosure is: how to efficiently solve the problem of warehouse order backlog.
[0005] According to a first aspect of some embodiments of the present disclosure, a data processing method is provided, comprising: obtaining one or more target attributes and their target attribute values in order control information; obtaining sub-policies from multiple order control pools, wherein each of the order control pools corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, and the sub-policies corresponding to the attributes include the attribute value and the policy identifier of the order control policy to which the sub-policy belongs; for each of the target attributes in the order control information, matching the target attribute value of the target attribute with each sub-policy in the order control pool corresponding to the target attribute, and generating a matching set corresponding to the target attribute according to the matched sub-policies; determining the intersection of the policy identifiers of the sub-policies in each of the matching sets; and processing the order control information according to the intersection.
[0006] In some embodiments, matching the target attribute value of the target attribute with each sub-strategy in the order control pool corresponding to the target attribute includes:
[0007] In a case where the target attribute value of the target attribute is the same as the attribute value in the sub-policy, it is determined that the attribute value of the target attribute matches the sub-policy.
[0008] In some embodiments, the order control information is an order control policy requested to be created.
[0009] In some embodiments, processing the order control information according to the intersection includes:
[0010] When the intersection is an empty set, storing the order control policy created by the request into the order control pool; or,
[0011] When the intersection is not an empty set, the order control policy requested to be created is not stored in the order control pool.
[0012] In some embodiments, storing the order control policy requested to be created into the order control pool includes:
[0013] Assigning a policy identifier to the order control policy requested to be created, wherein the assigned policy identifier is different from the policy identifier of the sub-policy in the order control pool;
[0014] Each attribute value in the order control policy requested to be created and the assigned policy identifier are taken as sub-policies and stored in the order control pool corresponding to the attribute value.
[0015] In some embodiments, the data processing method further includes: creating an empty order control pool for the target attribute that has no corresponding order control pool in the order control policy.
[0016] In some embodiments, the order control information is extracted from the order to be placed.
[0017] In some embodiments, processing the order control information according to the intersection includes:
[0018] If the intersection is not an empty set, reject the order; or,
[0019] In the case where the intersection is an empty set, the order is allowed to be placed.
[0020] In some embodiments, for each of the target attributes in the order control information, when the target attribute value corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes all sub-policies in the order control pool corresponding to the target attribute.
[0021] In some embodiments, for each of the target attributes in the order control information, when the attribute value in the sub-policy in the order control pool corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes the sub-policy whose attribute value is a wildcard.
[0022] In some embodiments, the data processing method further includes: when there is an attribute that does not appear in the order control information among the multiple attributes corresponding to the multiple order control pools, adding the non-appearing attribute as a target attribute to the order control information, and the attribute value of the added target attribute is a wildcard.
[0023] In some embodiments, the attributes include at least one of country, customer, and warehouse.
[0024] According to a second aspect of some embodiments of the present disclosure, a data processing device is provided, comprising: a data acquisition module, configured to: acquire one or more target attributes and their target attribute values in order control information; acquire sub-policies from multiple order control pools, wherein each of the order control pools corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, and the sub-policies corresponding to the attributes include the attribute value and the policy identifier of the order control policy to which the sub-policy belongs; a data matching module, configured to: for each of the target attributes in the order control information, match the target attribute value of the target attribute with each sub-policy in the order control pool corresponding to the target attribute, and generate a matching set corresponding to the target attribute according to the matched sub-policies; and a data processing module, configured to: process the order control information according to the intersection.
[0025] According to a third aspect of some embodiments of the present disclosure, there is provided a data processing device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the data processing method as described above based on instructions stored in the memory.
[0026] According to a fourth aspect of some embodiments of the present disclosure, there is provided a data processing system, comprising: a data processing device as described above; and a data storage device, comprising a plurality of data storage areas, each data storage area being used to store an order control pool.
[0027] In some embodiments, the data processing system further includes: a warehouse management system for executing the shipment of orders.
[0028] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method as described above is implemented.
[0029] Some embodiments of the above invention have the following advantages or beneficial effects. The above embodiments divide the order control strategy into sub-strategies according to the attributes, and store them in the order pool corresponding to the attributes of the sub-strategies. Therefore, when judging whether the order control information matches the existing order control strategy, it is only necessary to match the target attribute value in the order control information with the sub-strategy in the corresponding order control pool, and finally confirm whether the matched sub-strategies belong to the same order control strategy according to the intersection of each matching set, so as to determine whether there is an order control strategy corresponding to the order control information. Therefore, the above embodiments reduce the process of matching irrelevant data, and have low computing cost and high computing efficiency. Therefore, it is possible to respond to user requests more quickly and improve the efficiency of order control. Therefore, the present disclosure can efficiently solve the problem of warehouse order squeeze, and is simple and convenient, with low computing and maintenance costs.
[0030] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 A schematic diagram showing the structure of an order control pool according to some embodiments of the present disclosure.
[0033] Figure 2 A flowchart diagram showing a data processing method according to some embodiments of the present disclosure is provided.
[0034] Figure 3 A schematic diagram showing the structure of the order control pool according to other embodiments of the present disclosure.
[0035] Figure 4 A flowchart schematically illustrates a data processing method according to other embodiments of the present disclosure.
[0036] Figure 5 A flowchart diagram showing a data processing method according to some further embodiments of the present disclosure is provided.
[0037] Figure 6 A schematic diagram showing the structure of a data processing device according to some embodiments of the present disclosure.
[0038] Figure 7 A schematic diagram showing the structure of a data processing device according to other embodiments of the present disclosure.
[0039] Figure 8 A schematic diagram showing the structure of a data processing system according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0041] To solve the problem of order backlog in the warehouse caused by too many orders or insufficient staff, you can create an order control strategy to control the orders. When creating an order control strategy, you need to check whether the order control strategy already exists; when determining whether to allow the user's order to be placed, you need to check whether the order matches the existing order control strategy. In order to ensure that the existing order control strategy can be matched by traversal or by specifying the priority.
[0042] The traversal method is to use a pointer to each attribute in the order control policy to be created or the order to be placed, first filter out the order control policy that matches the attribute value of the first attribute, then filter out the order control policy that matches the attribute value of the second attribute in the filtered order control policies, and so on, to determine whether there is an order control policy that matches all attributes. However, as the attributes in the order control policy continue to accumulate, the traversal loop nesting will become more and more complicated, the computational cost is high, and the warehouse processing time is affected. And when only one attribute is created when creating an order control policy, or when there is only one attribute in the user's order information, it will lead to failure to traverse.
[0043] The priority method refers to the order control policy to be created or each attribute in the order to be placed. First, check whether there is an order control rule that covers the attribute values of all attributes. If not, check whether there is an order control rule that covers the attribute values of all attributes except a certain attribute with the lowest priority. If no order control rule is found, query the attributes in turn according to the priority exclusion. However, this method cannot achieve refined order control management. With the increase of order control policies, it is difficult to specify priorities. In addition, the matching logic is complex and requires multiple interactions to judge. When adding attributes of the order control policy, it is also necessary to make complex changes to the overall order control policy, which has high maintenance costs.
[0044] Therefore, based on the above problems, the inventor has designed a data processing method to control orders. In the data processing method, multiple order control pools are used to store order control strategies and determine whether to allow an order to be placed.
[0045] Figure 1 A schematic diagram showing the structure of an order control pool according to some embodiments of the present disclosure. Figure 1 The order control pools 110 to 130 with different attributes are included in the order control pool with each attribute. Different sub-strategies are stored in the order control pool with each attribute. The sub-strategies include the attribute value and the strategy identifier corresponding to the attribute of the order control pool. The sub-strategies including the same strategy identifier in the order control pools with all attributes constitute a complete order control strategy. For example, Figure 1 The sub-policies 112, 122 and 132 including "ID 1" constitute a complete order control policy: "Country 1-Customer 1-Warehouse 1", which means that the order of goods from Customer 1 in Country 1 shipped from Warehouse 1 is controlled. For example, when the information of an order matches a certain order control policy, the order placement operation of the order is rejected.
[0046] In some embodiments, the order control pool may be stored in the form of a key-value pair, where the key is an identifier of the order control pool, such as an attribute name or a sequence number, and the value is a sub-strategy in the order control pool.
[0047] In some embodiments, the order control pool may also be implemented as a storage area, and different order control pools correspond to different storage areas. For example, each order control pool may correspond to a data table, and each record in the data table is a sub-strategy.
[0048] Storing order control strategies in the form of an order control pool has simpler logic, lower operating costs, and is convenient for maintenance at any time as needed, compared to selecting order control strategies by traversal or specifying priorities.
[0049] The following is combined with Figures 1 to 5 The data processing method of the present disclosure is described.
[0050] Figure 2 The flowchart of the data processing method of some embodiments of the present disclosure is shown. The data processing method of this embodiment can be executed by a server, of course, it can also be other types of electronic devices, which will not be repeated here. Figure 2 As shown, the method of this embodiment includes steps S202 to S210.
[0051] In step S202, one or more target attributes and their target attribute values in the order control information are obtained.
[0052] For example, the order control information may include multiple key-value pairs, where the key represents the target attribute and the value represents the target attribute value; or, the order control information includes a vector consisting of multiple target attribute values, and the position of each element in the vector corresponds to a target attribute. The order control information may be information directly received from the user terminal side, or may be information obtained by processing the information received from the user terminal side.
[0053] In some embodiments, the order control information is an order control policy requested to be created, and the order control information is stored in the order control pool as a new order control policy for subsequent control of orders matching the order control policy. The order control information can be customized by the user according to the target attribute and target attribute value.
[0054] In some embodiments, the order control information is extracted from the order to be placed and is used to characterize the key information of the order. By judging whether the order control information matches the order control policy stored in the order control pool, it can be determined whether the order is allowed to be placed.
[0055] In some embodiments, the target attribute includes country, customer, warehouse, etc. The target attribute value refers to the specific value corresponding to the target attribute in the order control information. For example, in the order control information "Goods from customer 1 in country 1 are shipped from warehouse 1", the target attribute value of the target attribute of country is country 1, the target attribute value of the target attribute of customer is customer 1, and the target attribute value of the target attribute of warehouse is warehouse 1.
[0056] In step S204, sub-policies are obtained from multiple order control pools, wherein each order control pool corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, and the sub-policy corresponding to the attribute includes the attribute value and the policy identifier of the order control policy to which the sub-policy belongs.
[0057] In some embodiments, Figure 1 As shown in the figure, the order control pools include three attributes, namely, country pool 110, customer pool 120 and warehouse pool 130. There are multiple sub-strategies in the order control pool of each attribute, and each sub-strategy includes an attribute value corresponding to the attribute of the order control pool and a strategy identifier of the order control strategy to which the sub-strategy belongs. For example, Figure 1 The order control strategy "country 1-customer 1-warehouse 1" is included, and the strategy identifier of the order control strategy is "identity 1". The order control strategy "country 1-customer 1-warehouse 1" is stored in the order control pool of three attributes in the form of three sub-strategies.
[0058] In step S206, for each target attribute in the order control information, the target attribute value of the target attribute is matched with each sub-policy in the order control pool corresponding to the target attribute, and a matching set corresponding to the target attribute is generated according to the matched sub-policies.
[0059] In some embodiments, matching the target attribute value of the target attribute with each sub-policy in the order control pool corresponding to the target attribute includes: when the target attribute value of the target attribute is the same as the attribute value in the sub-policy, determining that the attribute value of the target attribute matches the sub-policy.
[0060] For example, in the order control information "Goods from customer 1 in country 1 shipped from warehouse 1", the target attribute value of the target attribute country is country 1, the target attribute value of the target attribute customer is customer 1, and the target attribute value of the target attribute warehouse is warehouse 1. Figure 1 The order control pool matches the target attribute value country 1 with the sub-policy in the country pool 110, matches the target attribute value customer 1 with the sub-policy in the customer pool 120, and matches the target attribute value warehouse 1 with the sub-policy in the warehouse pool 130. Since the target attribute value country 1 is the same as the attribute value country 1 included in the sub-policy 112 "country 1-identification 1" in the country pool, it is determined that the target attribute value country 1 matches the sub-policy 112 "country 1-identification 1". The matching process of the target attribute value customer 1 and the target attribute value warehouse 1 is similar to the matching process of the target attribute value country 1.
[0061] In some embodiments, for each target attribute in the order control information, when the target attribute value corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes all sub-policies in the order control pool corresponding to the target attribute. Figure 1 When the target attribute value of the target attribute country is a wildcard, the matching set corresponding to the target attribute country includes all sub-policies in the country pool 110. The wildcard can be represented by "*", or it can be set to other symbols as needed.
[0062] In some embodiments, for each target attribute in the order control information, if the attribute value in the sub-policy in the order control pool corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes the sub-policy whose attribute value is the wildcard. Figure 3 When the target attribute value of the target attribute customer, Customer 1, is matched with the sub-policies in the customer pool 320, the resulting matching set includes not only the sub-policy 322 “Customer 1 - Identifier 1”, but also the sub-policy 326 “Wildcard - Identifier 3”.
[0063] In some embodiments, when there is an attribute that does not appear in the order control information among the multiple attributes corresponding to the multiple order control pools, the non-appearing attribute is added to the order control information as a target attribute, and the attribute value of the added target attribute is a wildcard.
[0064] Supplementing the missing attributes in the order control information and setting their attribute values to wildcards can prevent the order control information from failing to match the order control policies in the order control pool. Figure 1 , when the order control information includes the target attributes country and customer, the target attribute value of the target attribute country is country 1, and the target attribute value of the target attribute customer is customer 1, the order control information does not include Figure 1 The warehouse attribute in , then add the target attribute warehouse to the order control information, and the target attribute value of the target attribute warehouse is a wildcard. Then the order control information includes the target attributes country, customer and warehouse, the target attribute value of the target attribute country is country 1, the target attribute value of the target attribute customer is customer 1, and the target attribute value of the target attribute warehouse is a wildcard, and then follow the above matching process with Figure 1 The sub-strategies in the order control pool are matched.
[0065] In step S208, the intersection of the policy identifiers of the sub-policies in each matching set is determined.
[0066] In some embodiments, reference Figure 1 For example, for the order control information "Goods from customer 1 in country 1 shipped from warehouse 1", the matching set corresponding to the target attribute country includes sub-policy 112 "country 1-identifier 1", the matching set corresponding to the target attribute customer includes sub-policy 122 "customer 1-identifier 1", and the matching set corresponding to the target attribute warehouse includes sub-policy 132 "warehouse 1-identifier 1". Then, the intersection of the policy identifiers of sub-policies 112, 122 and 132 in the three matching sets includes identifier 1.
[0067] In some embodiments, reference Figure 3 For example, for the order control information "Goods from customer 1 in country 2 shipped from warehouse 1", the matching set corresponding to the target attribute country includes sub-policy 312 "country 2-identifier 2", the matching set corresponding to the target attribute customer includes sub-policy 322 "customer 1-identifier 1" and sub-policy 326 "wildcard-identifier 3", and the matching set corresponding to the target attribute warehouse includes sub-policy 332 "warehouse 1-identifier 1". Then, the intersection of the policy identifiers of sub-policies 312, 322, 326 and 332 in the three matching sets is an empty set.
[0068] In step S210, the order control information is processed according to the intersection, for example, whether to create a new order control policy or whether to allow the order to be placed. This will be further described below according to specific application scenarios.
[0069] The above embodiment divides the order control strategy into sub-strategies according to the attributes, and stores them in the order pool corresponding to the attributes of the sub-strategies. Therefore, when judging whether the order control information matches the existing order control strategy, it is only necessary to match the target attribute value in the order control information with the sub-strategy in the corresponding order control pool, and finally confirm whether the matched sub-strategies belong to the same order control strategy based on the intersection of each matching set, so as to determine whether there is an order control strategy corresponding to the order control information. Therefore, the above embodiment reduces the process of matching irrelevant data. Moreover, the matching logic corresponding to each order control pool can be reused. Therefore, the above embodiment has low computing cost and deployment cost, high computing efficiency, can respond to user requests more quickly, and improves the efficiency of order control.
[0070] Reference below Figure 4 An embodiment of creating a new order control strategy according to the above data processing method is described.
[0071] Figure 4 Schematic diagram of the data processing method of some other embodiments of the present disclosure. In this embodiment, the order control information is the order control policy requested to be created. Figure 4 As shown, processing the order control information according to the intersection includes steps S401 to S407.
[0072] In step S401, after the user sends a request to create an order control policy, one or more target attributes and their target attribute values in the order control policy requested to be created are obtained.
[0073] For example, data submitted by a user through a web page or client in a terminal is received, the data including attributes and attribute values involved in the order control policy that the user wants to create. The user submits data through a GET (get) or POST (post) request, for example.
[0074] In some embodiments, when the order control policy includes an attribute that does not appear in the order control pool, an empty order control pool is created for the target attribute that does not have a corresponding order control pool in the order control policy. Figure 1, when the order control information includes the target attributes country, customer, warehouse and service provider, the figure does not include the order control pool with the attribute of service provider, then create an order control pool with the attribute of service provider, and the order control pool with the attribute of service provider does not contain any sub-policy. After creating the order control pool with the attribute of service provider, match according to the subsequent matching process. For example, since the order control pool with the attribute of service provider does not contain any sub-policy, the matching set corresponding to the target attribute service provider is an empty set. Of course, in the case where the order control policy requested to be created includes attributes that do not appear in the order control pool, it also means that the order control policy must be different from all existing order control policies. At this time, after creating the order control pool corresponding to the attribute that does not appear, multiple sub-policies can also be directly generated according to the order control policy requested to be created and the policy identifier assigned to it, and stored in multiple order pools. Therefore, in the case of adding new attributes, it can be completed by creating a new order control pool. Since the matching logic of each order control pool is the same, the added attributes do not affect the overall processing flow, reducing the complexity of system processing.
[0075] In step S402, sub-strategies are obtained from multiple order control pools.
[0076] In step S403, for each target attribute in the order control policy requested to be created, the target attribute value of the target attribute is matched with each sub-policy in the order control pool corresponding to the target attribute, and a matching set corresponding to the target attribute is generated according to the matched sub-policies.
[0077] In step S404, the intersection of the policy identifiers of the sub-policies in each matching set is determined.
[0078] In step S405, it is determined whether the intersection is an empty set. If so, step S406 is executed, and if not, step S407 is executed.
[0079] In step S406, the order control policy created by the request is stored in the order control pool.
[0080] In some embodiments, for example, when creating an order control policy, it is necessary to determine whether the order control information "goods from customer 1 in country 2 are shipped from warehouse 1" needs to be created as an order control policy. Figure 3 The order control pool is matched to determine that the intersection of the policy identifiers of the sub-policies in each matching set corresponding to each target attribute is an empty set, which means that there is no order control policy corresponding to the order control information in the order control pool, so the order control information is stored in the order control pool as the order control policy.
[0081] In some embodiments, storing the order control policy requested to be created into the order control pool includes: assigning a policy identifier to the order control policy requested to be created, wherein the assigned policy identifier is different from the policy identifier of the sub-policy in the order control pool; and storing each attribute value in the order control policy requested to be created and the assigned policy identifier as a sub-policy in the order control pool corresponding to the attribute value.
[0082] refer to Figure 3 For example, storing the order control information "goods from customer 1 in country 2 are shipped from warehouse 1" into the order control pool includes assigning a policy identifier "identifier 4" to the order control information, where identifier 4 only needs to be different from the existing policy identifiers "identifier 1", "identifier 2" and "identifier 3" in the order control pool. Whether the identifiers need to have a sequence relationship consistent with the creation order can be determined as needed. Then, country 2-identifier 4 is stored as a sub-policy in the country pool, customer 1-identifier 4 is stored as a sub-policy in the customer pool, and warehouse 1-identifier 4 is stored in the warehouse pool.
[0083] In step S407, the order control policy requested to be created is not stored in the order control pool. For example, a response rejecting the creation may be returned to the user's terminal.
[0084] In some embodiments, when creating an order control policy, it is necessary to determine whether the order control information needs to be created as an order control policy. If the intersection of the policy identifiers of the sub-policies in each matching set corresponding to each target attribute is not an empty set, it means that there is already an order control policy corresponding to the order control information in the order control pool, so the order control information is not stored in the order control pool as an order control policy.
[0085] The above embodiment divides the created order control policy into sub-policies according to the attributes, and stores them in the order pool corresponding to the attributes of the sub-policies. Therefore, when judging whether the order control policy requested to be created already exists, it is only necessary to match the target attribute value in the order control information with the sub-policy in the corresponding order control pool, and finally confirm whether the matched sub-policies belong to the same order control policy according to the intersection of each matching set, so as to determine whether the order control policy has been created. Therefore, in the process of judging whether to create an order control policy, the above embodiment reduces the process of matching irrelevant data. Moreover, the matching logic corresponding to each order control pool can be reused. Therefore, the above embodiment has low computing cost and deployment cost, high computing efficiency, can respond to user requests faster, and improves the efficiency of order control. Moreover, there is no need to modify the matching logic, so it has strong scalability.
[0086] Reference below Figure 5 An embodiment of determining whether to allow an order to be placed is described.
[0087] Figure 5 Schematic diagram of a data processing method of some other embodiments of the present disclosure. In this embodiment, order control information is extracted from the order to be placed. Figure 5 As shown, processing the order control information according to the intersection includes steps S501 to S507.
[0088] In step S501, one or more target attributes and their target attribute values in the order control information of the order to be placed are obtained.
[0089] For example, the field corresponding to the target attribute can be searched from the order to be placed, and the value of the field can be extracted as the target attribute value corresponding to the target attribute. If the order is stored in the form of a record in a data table, a database query statement can be generated according to the order identifier and the name of the target attribute, and the database query statement can be executed in the database, and the return result obtained includes the target attribute value corresponding to each target attribute. The return result or the data generated based on the return result can be used as order control information.
[0090] In step S502, sub-policies are obtained from multiple order control pools, where each order control pool corresponds to an attribute and is used to store a sub-policy corresponding to the attribute in the order control policy, and the sub-policy corresponding to the attribute includes an attribute value and a policy identifier of the order control policy to which the sub-policy belongs.
[0091] In step S503, for each target attribute in the order control information, the target attribute value of the target attribute is matched with each sub-strategy in the order control pool corresponding to the target attribute, and a matching set corresponding to the target attribute is generated according to the matched sub-strategies.
[0092] In step S504, the intersection of the policy identifiers of the sub-policies in each matching set is determined.
[0093] In step S505, it is determined whether the intersection is an empty set. If so, step S506 is executed, and if not, step S507 is executed.
[0094] In step S506, the order is allowed to be placed.
[0095] In some embodiments, it is determined based on the order control information that the intersection of the policy identifiers of the sub-policies in each matching set corresponding to each target attribute is an empty set, indicating that there is no order control policy for the order in the order control pool, and the order can be processed normally, so the order is allowed to be placed.
[0096] In step S507, the order is rejected.
[0097] In some embodiments, for example, the order control information "goods from customer 1 in country 1 are shipped from warehouse 1" is extracted from the order to be placed. Figure 1 The order control pool determines that the intersection of the policy identifiers of the sub-policies in each matching set corresponding to each target attribute is not an empty set, indicating that there is an order control policy for the order in the order control pool. The order cannot be processed normally, so the order is rejected.
[0098] After determining the matching set of order control information and each order control pool, the intersection of the policy identifiers of the sub-policies in the matching set is used to determine whether there is an order control policy matching the order in the order control pool, thereby determining whether to allow the order to be placed. This method has simple logic and low operating costs, can quickly determine whether to allow an order to be placed, can meet the processing time of the warehouse, and helps solve the problem of warehouse order backlogs. The embodiments of the present disclosure can also be used in overseas order control scenarios. The following is an exemplary description of a processing process.
[0099] First, after receiving the customer's order information, the user issues an outbound order to the international supply chain service platform. If the outbound order is a warehouse-distribution integrated order, that is, the user not only needs to complete the outbound operation of the goods, but also needs to deliver the goods to the customer through the third-party service provider management system, then the outbound order will also be issued to the third-party service provider management system. After receiving the outbound order, the third-party service provider management system will return the delivery information to the national supply chain service platform.
[0100] The international supply chain service platform reserves inventory for goods based on the delivery order so that subsequent delivery operations can be carried out smoothly.
[0101] Then, the international supply chain service platform determines whether the order matches the order control policy in the order control pool. If so, the outbound order is returned to the user and the user's order is rejected; if not, the outbound order is sent to the warehouse, and the warehouse performs the outbound operation of the goods according to the outbound order, and the third-party service provider management system delivers the goods to the customer.
[0102] Combine the following Figure 6 A data processing apparatus is described according to some embodiments of the present disclosure.
[0103] Figure 6 FIG. 6 is a schematic diagram showing the structure of a data processing device 60 in some embodiments of the present disclosure. Figure 6 As shown, the data processing device 60 in this embodiment includes:
[0104] The data acquisition module 610 is configured to: acquire one or more target attributes and their target attribute values in the order control information; acquire sub-policies from multiple order control pools, wherein each of the order control pools corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, wherein the sub-policy corresponding to the attribute includes the attribute value and the policy identifier of the order control policy to which the sub-policy belongs;
[0105] The data matching module 620 is configured to: for each of the target attributes in the order control information, match the target attribute value of the target attribute with each sub-strategy in the order control pool corresponding to the target attribute, and generate a matching set corresponding to the target attribute according to the matched sub-strategies; and
[0106] The data processing module 630 is configured to process the order control information according to the intersection.
[0107] The data processing device divides the order control strategy into sub-strategies according to the attributes, and stores them in the order pool corresponding to the attributes of the sub-strategies. Therefore, when judging whether the order control information matches the existing order control strategy, it is only necessary to match the target attribute value in the order control information with the sub-strategy in the corresponding order control pool, and finally confirm whether the matched sub-strategies belong to the same order control strategy based on the intersection of each matching set, so as to determine whether there is an order control strategy corresponding to the order control information. Therefore, the above embodiment reduces the process of matching irrelevant data. Moreover, the matching logic corresponding to each order control pool can be reused. Therefore, the above embodiment has low computing cost and deployment cost, high computing efficiency, can respond to user requests more quickly, and improves the efficiency of order control.
[0108] In some embodiments, the data matching module 620 is further configured to: determine that the attribute value of the target attribute matches the sub-policy when the target attribute value of the target attribute is the same as the attribute value in the sub-policy.
[0109] In some embodiments, the order control information is an order control policy requested to be created. The order control information is stored in the order control pool as a new order control policy to control orders matching the order control policy.
[0110] In some embodiments, the data processing module 630 is further configured to: when the intersection is an empty set, store the order control policy created by the request into the order control pool; or, when the intersection is not an empty set, not store the order control policy created by the request into the order control pool.
[0111] In some embodiments, the data processing module 630 is further configured to: assign a policy identifier to the order control policy requested to be created, wherein the assigned policy identifier is different from the policy identifier of the sub-policy in the order control pool; and store each attribute value in the order control policy requested to be created and the assigned policy identifier as a sub-policy in the order control pool corresponding to the attribute value.
[0112] In some embodiments, the data processing device further includes a data creation module 640 configured to: create an empty order control pool for a target attribute that has no corresponding order control pool in the order control policy.
[0113] In some embodiments, order control information is extracted from an order to be placed, and it is necessary to determine whether the order control information matches the order control policy stored in the order control pool to determine whether the order is allowed to be placed.
[0114] In some embodiments, the data processing module 630 is further configured to: if the intersection is not an empty set, reject the order placement; or, if the intersection is an empty set, allow the order placement.
[0115] In some embodiments, the data matching module 620 is further configured to: for each target attribute in the order control information, when the target attribute value corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes all sub-strategies in the order control pool corresponding to the target attribute.
[0116] In some embodiments, the data matching module 620 is further configured to: for each target attribute in the order control information, when the attribute value in the sub-policy in the order control pool corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes the sub-policy whose attribute value is a wildcard.
[0117] In some embodiments, the data acquisition module 610 is further configured to: when there is an attribute that does not appear in the order control information among the multiple attributes corresponding to the multiple order control pools, add the non-appearing attribute as a target attribute to the order control information, and the attribute value of the added target attribute is a wildcard.
[0118] Combine the following Figure 7 Some embodiments of the data processing apparatus of the present disclosure are described.
[0119] Figure 7 Schematic diagram of the structure of the data processing device 70 of other embodiments of the present disclosure is shown. Figure 7As shown, the data processing device 70 in this embodiment includes: a memory 710; and a processor 720 coupled to the memory 710, and the processor 720 is configured to execute the data processing method in any of some embodiments of the present disclosure based on the instructions stored in the memory 710.
[0120] The memory 710 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.
[0121] The data processing device 70 may also include an input / output interface 730, a network interface 740, a storage interface 750, etc. These interfaces 730, 740, 750, the memory 710, and the processor 720 may be connected, for example, via a bus 760. The input / output interface 730 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networked devices, for example, it can be connected to a database server or a cloud storage server, etc. The storage interface 750 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0122] like Figure 8 As shown, the present disclosure also includes a data processing system 80, including a data processing device 810 and a data storage device 820, the data storage device 820 includes a plurality of data storage areas, each data storage area is used to store an order control pool. The data storage device 820 can adopt a remote dictionary service (redis), a database table, etc. When the efficiency requirement is high, the order control pool can be maintained based on the redis cache; when the efficiency requirement is not high, the order control pool can be maintained based on the database table. The data storage device 820 is regularly maintained as needed, so that the data storage device 820 can be used to determine whether to allow the order that the customer wants to place. In some embodiments, when the order control policy stored in the order control pool can meet the need to determine whether to allow the order, the use of the data storage device 820 can speed up the judgment process and improve efficiency.
[0123] In some embodiments, the data processing system further includes a warehouse management system 830 for executing the outbound delivery of orders.
[0124] The present disclosure also includes a computer-readable storage medium on which computer instructions are stored. When the instructions are executed by a processor, the data processing method in any of the aforementioned embodiments is implemented.
[0125] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0126] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure should be included in the protection scope of the present disclosure.
Claims
1. A data processing method, comprising: Obtain one or more target attributes and their target attribute values in the order control information; Obtaining sub-policies from a plurality of order control pools, wherein each of the order control pools corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, wherein the sub-policies corresponding to the attribute include an attribute value and a policy identifier of the order control policy to which the sub-policy belongs; For each of the target attributes in the order control information, matching the target attribute value of the target attribute with each sub-strategy in the order control pool corresponding to the target attribute, and generating a matching set corresponding to the target attribute according to the matched sub-strategies; Determine the intersection of the policy identifiers of the sub-policies in each of the matching sets; The order control information is processed according to the intersection.
2. The data processing method according to claim 1, wherein: Matching the target attribute value of the target attribute with each sub-strategy in the order control pool corresponding to the target attribute includes: In a case where the target attribute value of the target attribute is the same as the attribute value in the sub-policy, it is determined that the attribute value of the target attribute matches the sub-policy. 3 . The data processing method according to claim 1 , wherein the order control information is an order control policy requested to be created.
4. The data processing method according to claim 3, wherein: The processing of the order control information according to the intersection includes: When the intersection is an empty set, storing the order control policy created by the request into the order control pool; or, When the intersection is not an empty set, the order control policy requested to be created is not stored in the order control pool.
5. The data processing method according to claim 4, wherein: The storing the order control policy created by the request into the order control pool comprises: Assigning a policy identifier to the order control policy requested to be created, wherein the assigned policy identifier is different from the policy identifier of the sub-policy in the order control pool; Each attribute value in the order control policy requested to be created and the assigned policy identifier are taken as sub-policies and stored in the order control pool corresponding to the attribute value.
6. The data processing method according to claim 3, further comprising: An empty order control pool is created for the target attribute that has no corresponding order control pool in the order control policy.
7. The data processing method according to claim 1, wherein the order control information is extracted from the order to be placed.
8. The data processing method according to claim 7, wherein: The processing of the order control information according to the intersection includes: If the intersection is not an empty set, reject the order; or, In the case where the intersection is an empty set, the order is allowed to be placed.
9. According to the data processing method of claim 1, for each of the target attributes in the order control information, when the target attribute value corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes all sub-strategies in the order control pool corresponding to the target attribute.
10. According to the data processing method of claim 1, for each of the target attributes in the order control information, when the attribute value in the sub-policy in the order control pool corresponding to the target attribute is a wildcard, the matching set corresponding to the target attribute includes the sub-policy whose attribute value is a wildcard.
11. The data processing method according to claim 1, further comprising: In the case that there is an attribute that does not appear in the order control information among the multiple attributes corresponding to the multiple order control pools, the non-appearing attribute is added to the order control information as a target attribute, and the attribute value of the added target attribute is a wildcard.
12. The data processing method according to claim 1, wherein: The attributes include at least one of country, customer, and warehouse.
13. A data processing device, comprising: The data acquisition module is configured to: acquire one or more target attributes and their target attribute values in the order control information; Obtaining sub-policies from a plurality of order control pools, wherein each of the order control pools corresponds to an attribute and is used to store sub-policies corresponding to the attribute in the order control policy, wherein the sub-policies corresponding to the attribute include an attribute value and a policy identifier of the order control policy to which the sub-policy belongs; a data matching module configured to: for each of the target attributes in the order control information, match the target attribute value of the target attribute with each sub-strategy in the order control pool corresponding to the target attribute, and generate a matching set corresponding to the target attribute according to the matched sub-strategies; and The data processing module is configured to process the order control information according to the intersection.
14. A data processing device, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the data processing method according to any one of claims 1 to 12 based on instructions stored in the memory.
15. A data processing system comprising: The data processing device according to claim 13 or 14; as well as The data storage device includes a plurality of data storage areas, each of which is used to store an order control pool.
16. The data processing system according to claim 15, further comprising: Warehouse management system, used to execute the outbound delivery of orders.
17. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the data processing method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Order processing method and device, equipment and computer readable medium
CN113537893A
Data monitoring method and system and non-instantaneous computer readable storage medium
CN113821398A
Order delivery method and device
CN114118888A
Order processing method and device, electronic equipment and storage medium
CN115577815A
Order processing method and device, electronic equipment and computer readable medium
CN116883093A