Order data processing method and device, electronic equipment and computer readable medium
By obtaining the product data and grouping relationships identified by the supplier and seller, constructing items and logistics data objects, generating consignment item relationships and splitting details, the problem of splitting the number of main products and gifts in the logistics order system is solved, and the gift is later than the main product. Pinduodu control.
Patent Information
- Application Number
- CN202410903382.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-11
AI Technical Summary
The logistics order system cannot correctly split the quantities of main products and gifts after receiving the order, resulting in the inability to control the delivery of the gifts later than the main products. Especially when there are ordinary SKUs and consignment SKUs in the same order, the quantities cannot be split and Issued.
By receiving the order information issued by the upstream system, we obtain the product data and group relationship data corresponding to the supplier and seller identification, construct the item data object and logistics data object, generate the consignment item relationship, and split it into several product details to ensure Gift details and main product details are issued independently.
It achieves accurate mapping and splitting of the quantity of main products and gifts, ensuring that the gifts are delivered later than the main products, solving the problem that the quantity of downstream goods cannot be split, and meeting the needs of logistics side warehouse production.
Smart Images

Figure CN118761695A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of warehousing logistics technology, and in particular to a method, device, electronic device and computer-readable medium for processing order data. Background Art
[0002] Currently, retail has a consignment sales model business, which literally means "selling on behalf of others". The consignment sales model business allows a type of POP merchants (Point-Of-Purchase merchants, also known as face-to-face purchase merchants) to be consignors. These consignors can publish products like normal POP merchants, but in fact they do not have real products, and actually "sell on behalf of" suppliers' products.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] After receiving an order, the logistics order system needs to merge the quantities of the same product codes and then send them to the shipping order system for production. When sending them, it needs to query the main and gift relationship of the goods according to the order identification, split the [main product SKU, quantity], [gift SKU, quantity], and [ordinary SKU, quantity] and send them to the shipping order system respectively, so that the distribution terminal can control the gift to be delivered later than the main product. However, if there are ordinary SKUs and consignment SKUs in the same order, not only will the quantity be unable to be split, but the quantity of the main product and gift cannot be correctly sent to the shipping order system, which will cause the distribution terminal to be unable to control the gift to be delivered later than the main product. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method, device, electronic device and computer-readable medium for processing order data to solve the technical problem of being unable to control the delivery of gifts later than the main products.
[0006] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing order data is provided, comprising:
[0007] Receiving order information sent by an upstream system, wherein the order information includes item data;
[0008] Acquire the product data and set relationship data corresponding to the supplier identification, thereby constructing an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification, wherein the set relationship data includes the item code having a set relationship;
[0009] Generate a consignment item relationship according to the item data object and the logistics data object;
[0010] The consignment item relationship is split into a number of product details, and the product details and their corresponding gift details are sent to the downstream system.
[0011] Optionally, constructing an item data object and a logistics data object according to the order information, the product data corresponding to the supplier identifier, and the set relationship data includes:
[0012] For each item data in the order information, determine the product data corresponding to the supplier item identification, thereby determining the set relationship data corresponding to the item code; wherein the item data includes the consignor item identification, the consignor identification, the purchase quantity, the supplier item identification, and the supplier identification, and the product data includes the item code, the supplier item identification, the product code, and the set mark;
[0013] Constructing an item data object according to the item data, the commodity data and the set relationship data, wherein the item data object defines an item code, an item identifier of a supplier, a purchase quantity, an item type, an item-commodity association code and an item identifier of a consignor;
[0014] A logistics data object is constructed according to the product data corresponding to the supplier's product identification and the product data object, and the logistics data object defines the product code, product quantity and product association code.
[0015] Optionally, generating a consignment item relationship according to the item data object and the logistics data object includes:
[0016] For each product code, determine the product association code and the consignor product identifier corresponding to the product code, thereby determining the quantity of the product corresponding to the product association code;
[0017] A consignment sale item relationship is generated according to the consignment sale party item identifier, the product code, the product quantity and the consignment sale identifier indicating whether consignment sale is performed.
[0018] Optionally, generating a consignment item relationship according to the item data object and the logistics data object further includes:
[0019] If the consignee item identifier is empty, the consignee identifier is set to no;
[0020] If the consignment item identifier is not empty, the consignment identifier is set to yes.
[0021] Optionally, the consignment item relationship is split into several item details, including:
[0022] The consignment item relationship is split into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail, and different consignment item marks are in different product details.
[0023] Optionally, sending the product details and the corresponding gift details to a downstream system includes:
[0024] Obtaining an order identifier from the order information;
[0025] For each product detail, query whether the sales agent item identifier has a corresponding gift detail according to the order identifier and the sales agent item identifier;
[0026] If yes, the product details and the corresponding gift details are sent to the downstream system;
[0027] If not, the product details will be sent to the downstream system.
[0028] In addition, according to another aspect of an embodiment of the present invention, there is provided a device for processing order data, comprising:
[0029] A receiving module, used to receive order information sent by an upstream system, wherein the order information includes item data;
[0030] A construction module, used to obtain the product data and set relationship data corresponding to the supplier identification, so as to construct an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification, wherein the set relationship data includes the item code having a set relationship;
[0031] A generating module, used for generating a consignment item relationship according to the item data object and the logistics data object;
[0032] The sending module is used to split the consignment item relationship into a plurality of product details, so as to send the product details and their corresponding gift details to the downstream system.
[0033] Optionally, the construction module is further used for:
[0034] For each item data in the order information, determine the product data corresponding to the supplier item identification, thereby determining the set relationship data corresponding to the item code; wherein the item data includes the consignor item identification, the consignor identification, the purchase quantity, the supplier item identification, and the supplier identification, and the product data includes the item code, the supplier item identification, the product code, and the set mark;
[0035] Constructing an item data object according to the item data, the commodity data and the set relationship data, wherein the item data object defines an item code, an item identifier of a supplier, a purchase quantity, an item type, an item-commodity association code and an item identifier of a consignor;
[0036] A logistics data object is constructed according to the product data corresponding to the supplier's product identification and the product data object, and the logistics data object defines the product code, product quantity and product association code.
[0037] Optionally, the generating module is further used for:
[0038] For each product code, determine the product association code and the consignor product identifier corresponding to the product code, thereby determining the quantity of the product corresponding to the product association code;
[0039] A consignment sale item relationship is generated according to the consignment sale party item identifier, the product code, the product quantity and the consignment sale identifier indicating whether consignment sale is performed.
[0040] Optionally, the generating module is further used for:
[0041] If the consignee item identifier is empty, the consignee identifier is set to no;
[0042] If the consignment item identifier is not empty, the consignment identifier is set to yes.
[0043] Optionally, the sending module is further used to:
[0044] The consignment item relationship is split into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail, and different consignment item marks are in different product details.
[0045] Optionally, the sending module is further used to:
[0046] Obtaining an order identifier from the order information;
[0047] For each product detail, query whether the sales agent item identifier has a corresponding gift detail according to the order identifier and the sales agent item identifier;
[0048] If yes, the product details and the corresponding gift details are sent to the downstream system;
[0049] If not, the product details will be sent to the downstream system.
[0050] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including:
[0051] one or more processors;
[0052] a storage device for storing one or more programs,
[0053] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of the above embodiments.
[0054] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0055] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0056] One embodiment of the above invention has the following advantages or beneficial effects: because the product data and set relationship data corresponding to the supplier identification are obtained, the item data object and logistics data object are constructed according to the order information, the product data and set relationship data corresponding to the supplier identification, and then the consignment item relationship is generated according to the item data object and the logistics data object, and finally the consignment item relationship is split into several product details, so that the product details and their corresponding gift details are sent to the downstream system. The technical problem that the prior art cannot control the gift to be delivered later than the main product is overcome. The embodiment of the present invention is aimed at complex scenarios where POP consignment, set, and main gift orders are satisfied at the same time. Through a new data storage structure, it solves the problem that the quantity of downstream goods cannot be split, accurately maps the quantity relationship between the goods in the business flow and the goods in the logistics, and satisfies the production of the logistics side warehouse. The distribution link can accurately restore the quantity of the main product and the gift, so that the gift can be controlled to be delivered later than the main product.
[0057] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0059] Figure 1 is a flowchart of a method for processing order data according to an embodiment of the present invention;
[0060] Figure 2is a flowchart of a method for processing order data according to a reference embodiment of the present invention;
[0061] Figure 3 is a flowchart of a method for processing order data according to another reference embodiment of the present invention;
[0062] Figure 4 is a schematic diagram of an apparatus for processing order data according to an embodiment of the present invention;
[0063] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0064] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0066] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved in the technical solution of this disclosure are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security.
[0067] Figure 1 is a flow chart of a method for processing order data according to an embodiment of the present invention. As an embodiment of the present invention, Figure 1 As shown, the method for processing order data may include:
[0068] Step 101, receiving order information sent by an upstream system, wherein the order information includes item data.
[0069] The logistics order system receives order information issued by the upstream system (such as the retail system), and the order information includes the order identification, recipient information, and at least one item data, wherein each item data includes the agent item identification (such as SKUA), the agent identification (such as A0001), the purchase quantity, the supplier item identification (such as SKUB), and the supplier identification (such as B0001).
[0070] It should be noted that the item data may also not contain the consignor item identification and the consignor identification, indicating that the item ordered by the user is an ordinary item, not a consignment item.
[0071] For example, as shown in Table 1, in scenarios 1 and 2, the user purchased both the consignment SKU and the ordinary SKU. Then the item data sent by the upstream system includes both the item data of the consignment SKU, such as SKUA and SKUD, and the item data of the ordinary SKU, such as SKUC.
[0072] Table 1 Item data
[0073]
[0074] Step 102, obtaining the product data and set relationship data corresponding to the supplier identification, thereby constructing an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification.
[0075] After receiving the order information sent by the upstream system, the logistics order system can obtain the logistics store code (such as ESP001) corresponding to the supplier identification (such as B0001) from the logistics master data system, and then obtain the product data and set relationship data corresponding to the logistics store code. The product data includes the item code (such as ESG001), the supplier item identification (such as SKUB), the item code (such as EMG002) and the set mark, as shown in Table 2, and the set relationship data includes the item code with set relationship (such as ESG001), as shown in Table 3.
[0076] Table 2 Product data
[0077] Item Code Logistics store code Supplier and seller item identification Product Code Set Mark ESG001 ESP001 SKUB Set ESG002 ESP001 SKUC EMG002 raw material ESG003 ESP001 SKUD EMG003 raw material ESG004 ESP001 SKUE Set ESG005 ESP001 SKUF EMG005 raw material
[0078] Table 3 Group relationship data
[0079] Finished Product Set relationship ESG001 (ESG002*1)+(ESG003*1) ESG004 (ESG002*1)+(ESG005*1) ESG006 ESG002*2 ESG007 (ESG002*2)+(ESG003*1)
[0080] It should be noted that in the product data, if the set is marked as "set", the product code is empty. SKU refers to the smallest inventory unit, a unique code defined by the sales platform for products. Item: a channel item defined by logistics. Each platform has a different SKU for the same physical item. The relationship between SKU and goods is established through item coding. Goods refer to physical items circulating in logistics and the basis for production operations in the warehouse.
[0081] Among them, the item data object (Goods object) defines the item code, the supplier's item ID, the purchase quantity, the item type, the item-goods association code and the consignor's item ID, as shown in Table 4; the logistics data object (cargo object) defines the goods code, the goods quantity and the item-goods association code, as shown in Table 5.
[0082] Table 4 Item data object
[0083]
[0084] Table 5 Logistics data objects
[0085] Product Code Quantity of goods Item product association code EMG002 1 XXXXX1 EMG003 1 XXXXX2 EMG002 2 XXXXX3
[0086] Optionally, constructing an item data object and a logistics data object according to the order information, the product data corresponding to the supplier identification, and the set relationship data, includes: for each item data in the order information, determining the product data corresponding to the supplier item identification, thereby determining the set relationship data corresponding to the item code; constructing an item data object according to the item data, the product data, and the set relationship data; constructing a logistics data object according to the product data and the item data object. For example, for the first item data in Table 1, first determine the product data corresponding to the supplier item identification SKUB based on Table 2, then determine the set relationship data corresponding to the item code ESG001 based on Table 3, then construct the item data object corresponding to SKUB according to the item data corresponding to SKUB, the product data, and the set relationship data corresponding to the item code ESG001, and finally, construct the logistics data object corresponding to SKUB according to the product data and the item data object corresponding to SKUB. Similarly, for the second item data in Table 1, first determine the product data corresponding to the supplier's item identification SKUC based on Table 2. Since the set mark of item code ESG002 is "raw materials", it means that item code ESG002 has no corresponding set relationship data. Then, construct the item data object corresponding to SKUC based on the item data and product data corresponding to SKUC. Finally, construct the logistics data object corresponding to SKUC based on the product data and item data object corresponding to SKUC.
[0087] It should be noted that the item data object and the logistics data object are associated through the item commodity association code. When constructing the item data object, the item commodity association code is assigned to the item code with the set mark as "raw material", and each data is assigned a different item commodity association code. In the item data object, if the item code has a corresponding set relationship data, the consignor item identifier corresponding to each item code in the set relationship data is set to the corresponding consignor item identifier. For example, in Table 4, the consignor item identifiers corresponding to the item codes ESG001, ESG002, and ESG003 are all set to SKUA, and the other ESG002 is an ordinary SKU, so the consignor item identifiers corresponding to them are all set to empty. Among them, the quantity of goods in the logistics data object is calculated based on the purchase quantity of the item and the set relationship data.
[0088] Step 103: Generate a consignment item relationship based on the item data object and the logistics data object.
[0089] In this step, a consignment item relationship is generated based on the item data object and logistics data object constructed in step 102, and each product code has its corresponding consignment item relationship.
[0090] Optionally, step 103 may include: for each product code, determining the item product association code and the consignor item identifier corresponding to the product code, thereby determining the quantity of goods corresponding to the item product association code; generating a consignment item relationship according to the consignor item identifier, the product code, the quantity of goods and the consignment identifier indicating whether consignment sales are conducted. As shown in Tables 4 and 5, taking the product code EMG002 as an example, it is determined that the product association codes corresponding to the product code EMG002 are XXXXX1 and XXXXX3, and the consignee item identifiers corresponding to the product code EMG002 are SKUA and empty. Then, it is determined that the product quantities corresponding to the product code EMG002 are 1 and 2 respectively. Finally, according to the consignee item identifiers SKUA and empty, the product code EMG002, the product quantities 1 and 2, and the consignment identifier representing whether consignment sales are conducted, the consignment item relationship corresponding to the product code EMG002 is generated, that is, the product quantity of EMG002 is 3, of which the number of consignment SKUAs is 1 and the number of ordinary SKUs is 2.
[0091] Optionally, step 103 may further include: if the consignee item identifier is empty, setting the consignee identifier to no; if the consignee item identifier is not empty, setting the consignee identifier to yes. For example, the consignee item relationship corresponding to the product code EMG002 is: [{consignee item identifier: SKUA consignee item quantity: 0, [{product code: EMG002 product quantity: 1, consignee identifier: yes}, {product code: EMG002 product quantity: 2, consignee identifier: no}]}].
[0092] Similarly, the quantity of EMG003 is 1, and the quantity of the consignment SKUA is 1. The consignment item relationship corresponding to the product code EMG003 can be generated as: [{consignment item identifier: SKUA consignment item quantity: 0, [{product code: EMG003 product quantity: 1, consignment identifier: yes}]}].
[0093] Step 104, split the consignment item relationship into a plurality of product details, and then send the product details and their corresponding gift details to the downstream system.
[0094] Optionally, the consignment item relationship is split into several product details, including: splitting the consignment item relationship into several product details, so that the product details with the consignment identification of "no" and the product details with the consignment identification of "yes" are not in the same product detail, and different consignment item identifications are in different product details. Taking the product code EMG002 as an example, its corresponding consignment item relationship [{consignment item identification: SKUA consignment item quantity: 0, [{product code: EMG002 product quantity: 1, consignment identification: yes}, {product code: EMG002 product quantity: 2, consignment identification: no}]}] is split into two product details, namely, consignment item identification: SKUA product code: EMG002 product quantity: 1 and consignment item identification: empty product code: EMG002 product quantity: 2. Taking the product code EMG003 as an example, its corresponding consignment item relationship [{consignment item identifier: SKUA consignment item quantity: 0, [{product code: EMG003 product quantity: 1, consignment identifier: yes}]}] is split into one product detail, namely, consignment item identifier: SKUA product code: EMG003 product quantity: 1.
[0095] Optionally, sending the product details and their corresponding gift details to the downstream system includes: obtaining an order identifier from the order information; for each product detail, querying whether the agent item identifier has corresponding gift details according to the order identifier and the agent item identifier; if so, sending the product details and their corresponding gift details to the downstream system; if not, sending the product details to the downstream system. After splitting the agent item relationship into a plurality of product details, for each product detail, querying the gift details (such as gift SKU, product code and product quantity details) corresponding to the agent item identifier from the retail system according to the order identifier and the agent item identifier (such as SKUA), and then sending this product detail and its corresponding gift details to the downstream system (such as the waybill system); if the gift details corresponding to the agent item identifier are not queried according to the order identifier and the agent item identifier, sending this product detail to the downstream system (such as the waybill system).
[0096] It should be noted that for the same order, if the consignor item identifiers in two product details are the same, you only need to check whether one of the product details has a corresponding gift, and there is no need to query repeatedly.
[0097] According to the various embodiments described above, it can be seen that the embodiments of the present invention obtain the product data and set relationship data corresponding to the supplier identification, thereby constructing the item data object and the logistics data object according to the order information, the product data and the set relationship data corresponding to the supplier identification, and then generating the consignment item relationship according to the item data object and the logistics data object, and finally splitting the consignment item relationship into several product details, thereby sending the product details and their corresponding gift details to the downstream system. The technical means solves the technical problem in the prior art that the gift cannot be controlled to be delivered later than the main product. The embodiments of the present invention aim at the complex scenario where POP consignment, set, and main gift orders are satisfied at the same time, and solves the problem that the quantity of downstream goods cannot be split through a new data storage structure, accurately maps the quantity relationship between the goods in the business flow and the goods in the logistics, and satisfies the production of the logistics side warehouse while the distribution link can accurately restore the quantity of the main product and the gift, so that the gift can be controlled to be delivered later than the main product.
[0098] Figure 2 1 is a flowchart of a method for processing order data according to a reference embodiment of the present invention. As another embodiment of the present invention, Figure 2 As shown, the method for processing order data may include:
[0099] Step 201, receiving order information sent by an upstream system, wherein the order information includes item data, and the item data includes an item ID of an agent, an ID of an agent, a purchase quantity, an item ID of a supplier, and an ID of a supplier.
[0100] The logistics order system receives order information issued by the upstream system (such as the retail system), and the order information includes an order identifier, recipient information, and at least one item data. Optionally, each item data includes an item identifier of the consignor (such as SKUA), an item identifier of the consignor (such as A0001), a purchase quantity, an item identifier of the supplier (such as SKUB), and an item identifier of the supplier (such as B0001), indicating that the item ordered by the user is an item sold on consignment. Optionally, each item data includes a purchase quantity, an item identifier of the supplier (such as SKUC), and an item identifier of the supplier (such as B0001), indicating that the item ordered by the user is an ordinary item, not an item sold on consignment.
[0101] Step 202, obtaining the product data and set relationship data corresponding to the supplier identification.
[0102] After the logistics order system receives the order information sent by the upstream system, it can obtain the logistics store code (such as ESP001) corresponding to the supplier identification (such as B0001) from the logistics master data system, and then obtain the product data and set relationship data corresponding to the logistics store code.
[0103] Step 203, for each item data in the order information, determine the product data corresponding to the supplier's item identification, thereby determining the set relationship data corresponding to the item code. The product data includes the item code, the supplier's item identification, the product code and the set mark, and the set relationship data includes the item code with a set relationship.
[0104] Step 204: construct an item data object according to the item data, the product data and the set relationship data, wherein the item data object defines the item code, the supplier item ID, the purchase quantity, the item type, the item product association code and the consignor item ID.
[0105] Step 205: construct a logistics data object according to the product data and the item data object, wherein the logistics data object defines the product code, the product quantity and the item-product association code.
[0106] Taking scenario 2 as an example, the user places an order for three SKUs, A and D are consignment SKUs, and C is a common SKU. For the third item data in Table 1, first determine the product data corresponding to the supplier's item identifier SKUB based on Table 2, then determine the set relationship data corresponding to the item code ESG001 based on Table 3, then construct the item data object corresponding to SKUB based on the item data, product data and set relationship data corresponding to the item code ESG001 corresponding to SKUB, and finally, construct the logistics data object corresponding to SKUB based on the product data and item data object corresponding to SKUB, as shown in Tables 6 and 7. Similarly, for the fourth item data in Table 1, first determine the product data corresponding to the supplier's item identifier SKUC based on Table 2. Since the set mark of the item code ESG002 is "raw materials", it means that the item code ESG002 has no corresponding set relationship data, then construct the item data object corresponding to SKUC based on the item data and product data corresponding to SKUC, and finally, construct the logistics data object corresponding to SKUC based on the product data and item data object corresponding to SKUC. Similarly, for the fifth item data in Table 1, first determine the product data corresponding to the supplier's item identification SKUE based on Table 2, then determine the set relationship data corresponding to the item code ESG004 based on Table 3, and then construct the item data object corresponding to SKUB based on the item data corresponding to SKUE, the product data and the set relationship data corresponding to the item code ESG004. Finally, construct the logistics data object corresponding to SKUE based on the product data and item data object corresponding to SKUB.
[0107] Table 6 Item data object
[0108]
[0109] Table 7 Logistics data objects
[0110] Product Code Quantity of goods Item product association code EMG002 1 XXXXX1 EMG003 1 XXXXX2 EMG002 2 XXXXX3 EMG002 1 XXXXX4 EMG005 1 XXXXX5
[0111] Step 206: for each product code, determine the product association code and the consignor product identifier corresponding to the product code, thereby determining the product quantity corresponding to the product association code.
[0112] Step 207, generating a consignment item relationship according to the consignment item identifier, the product code, the product quantity and the consignment identifier indicating whether to conduct consignment sales. If the consignment item identifier is empty, the consignment identifier is set to no; if the consignment item identifier is not empty, the consignment identifier is set to yes.
[0113] As shown in Tables 6 and 7, taking the product code EMG002 as an example, it is determined that the product association codes corresponding to the product code EMG002 are XXXXX1, XXXXX3, and XXXXX3, and the consignee item identifiers corresponding to the product code EMG002 are SKUA, empty, and SKUD. Then, it is determined that the product quantities corresponding to the product code EMG002 are 1, 2, and 1 respectively. Finally, according to the consignee item identifiers SKUA, empty, and SKUD, the product code EMG002, the product quantities 1, 2, and 1, and the consignment identifier representing whether consignment sales are conducted, the consignment item relationship corresponding to the product code EMG002 is generated, that is, the product quantity of EMG002 is 4, of which the number of consignment SKUAs is 1, the number of consignment SKUDs is 1, and the number of ordinary SKUs is 2.
[0114] For example, the consignment item relationship corresponding to the product code EMG002 is: [{consignment item identification: SKUA consignment item quantity: 0, [{product code: EMG002 product quantity: 1, consignment identification: yes}, {product code: EMG002 product quantity: 2, consignment identification: no}]}, {consignment item identification: SKUD consignment item quantity: 0, [{product code: EMG002 product quantity: 1, consignment identification: yes}]}].
[0115] Similarly, the quantity of EMG003 is 1, and the quantity of the consignment SKUA is 1. The consignment item relationship corresponding to the product code EMG003 can be generated as: [{consignment item identifier: SKUA consignment item quantity: 0, [{product code: EMG003 product quantity: 1, consignment identifier: yes}]}].
[0116] Similarly, the quantity of EMG005 is 1, and the quantity of consignment SKUD is 1. The consignment item relationship corresponding to the product code EMG005 can be generated as: [{consignment item identification: SKUD consignment item quantity: 0, [{product code: EMG005 product quantity: 1, consignment identification: yes}]}].
[0117] Step 208: split the consignment item relationship into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail.
[0118] Taking the product code EMG002 as an example, its corresponding consignment item relationship [{consignment item identification: SKUA consignment product quantity: 0, [{product code: EMG002 product quantity: 1, consignment identification: yes}, {product code: EMG002 product quantity: 2, consignment identification: no}]}, {consignment item identification: SKUD consignment product quantity: 0, [{product code: EMG002 product quantity: 1, consignment identification: yes}]}] is split into three product details, namely, consignment item identification: SKUA product code: EMG002 product quantity: 1, consignment item identification: empty product code: EMG002 product quantity: 2, consignment item identification: SKUD product code: EMG002 product quantity: 1. Taking the product code EMG003 as an example, its corresponding consignment item relationship [{consignment item identifier: SKUA consignment item quantity: 0, [{product code: EMG003 product quantity: 1, consignment identifier: yes}]}] is split into one product detail, namely, consignment item identifier: SKUA product code: EMG003 product quantity: 1.
[0119] Taking the product code EMG005 as an example, its corresponding consignment item relationship [{consignment item identifier: SKUD consignment item quantity: 0, [{product code: EMG005 product quantity: 1, consignment identifier: yes}]}] is split into one product detail, namely, consignment item identifier: SKUD product code: EMG005 product quantity: 1.
[0120] Step 209, sending the product details and the corresponding gift details to the downstream system, the product details including the consignor's item identification, product code and product quantity.
[0121] In addition, the specific implementation content of the method for processing order data in a reference embodiment of the present invention has been described in detail in the method for processing order data described above, so the repeated content will not be described here.
[0122] Figure 3 is a flow chart of a method for processing order data according to another reference embodiment of the present invention. As another embodiment of the present invention, Figure 3 As shown, the method for processing order data may include:
[0123] Step 301, receiving order information sent by an upstream system, wherein the order information includes item data, and the item data includes the item ID of the agent, the agent ID, the purchase quantity, the item ID of the supplier, and the supplier ID.
[0124] Step 302, obtaining the product data and set relationship data corresponding to the supplier identification, wherein the product data includes the item code, the supplier item identification, the product code and the set mark, and the set relationship data includes the item code with set relationship.
[0125] Step 303, construct an item data object and a logistics data object according to the order information, the product data corresponding to the supplier identification, and the set relationship data. The item data object defines the item code, the supplier item identification, the purchase quantity, the item type, the item-item association code, and the consignor item identification, and the logistics data object defines the item code, the item quantity, and the item-item association code.
[0126] Step 304: Generate a consignment item relationship based on the item data object and the logistics data object.
[0127] Step 305, split the consignment item relationship into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail, and the product details include the consignment item mark, product code and product quantity.
[0128] Step 306: Obtain an order identifier from the order information.
[0129] Step 307, for each product detail, query whether the agent's item ID has corresponding gift details according to the order ID and the agent's item ID; if so, execute step 308; if not, execute step 309.
[0130] Step 308: Send the product details and their corresponding gift details to the downstream system.
[0131] Step 309: Send the product details to the downstream system.
[0132] In addition, the specific implementation content of the method for processing order data in another reference embodiment of the present invention has been described in detail in the method for processing order data described above, so the repeated content will not be described here.
[0133] Figure 4 Schematic diagram of an apparatus for processing order data according to an embodiment of the present invention. Figure 5As shown, the device 400 for processing order data includes a receiving module 401, a construction module 402, a generation module 403 and a sending module 404; wherein the receiving module 401 is used to receive order information sent by an upstream system, and the order information includes item data; the construction module 402 is used to obtain the product data and set relationship data corresponding to the supplier identification, so as to construct an item data object and a logistics data object according to the order information, the product data and the set relationship data corresponding to the supplier identification, and the set relationship data includes an item code with a set relationship; the generation module 403 is used to generate a consignment item relationship according to the item data object and the logistics data object; the sending module 404 is used to split the consignment item relationship into a plurality of product details, so as to send the product details and their corresponding gift details to the downstream system.
[0134] Optionally, the construction module 402 is further used for:
[0135] For each item data in the order information, determine the product data corresponding to the supplier item identification, thereby determining the set relationship data corresponding to the item code; wherein the item data includes the consignor item identification, the consignor identification, the purchase quantity, the supplier item identification, and the supplier identification, and the product data includes the item code, the supplier item identification, the product code, and the set mark;
[0136] Constructing an item data object according to the item data, the commodity data and the set relationship data, wherein the item data object defines an item code, an item identifier of a supplier, a purchase quantity, an item type, an item-commodity association code and an item identifier of a consignor;
[0137] A logistics data object is constructed according to the product data corresponding to the supplier's product identification and the product data object, and the logistics data object defines the product code, product quantity and product association code.
[0138] Optionally, the generating module 403 is further used for:
[0139] For each product code, determine the product association code and the consignor product identifier corresponding to the product code, thereby determining the quantity of the product corresponding to the product association code;
[0140] A consignment sale item relationship is generated according to the consignment sale party item identifier, the product code, the product quantity and the consignment sale identifier indicating whether consignment sale is performed.
[0141] Optionally, the generating module 403 is further used for:
[0142] If the consignee item identifier is empty, the consignee identifier is set to no;
[0143] If the consignment item identifier is not empty, the consignment identifier is set to yes.
[0144] Optionally, the sending module 404 is further used for:
[0145] The consignment item relationship is split into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail, and different consignment item marks are in different product details.
[0146] Optionally, the sending module 404 is further used for:
[0147] Obtaining an order identifier from the order information;
[0148] For each product detail, query whether the sales agent item identifier has a corresponding gift detail according to the order identifier and the sales agent item identifier;
[0149] If yes, the product details and the corresponding gift details are sent to the downstream system;
[0150] If not, the product details will be sent to the downstream system.
[0151] It should be noted that the specific implementation content of the device for processing order data in the present invention has been described in detail in the method for processing order data described above, so the repeated content will not be described again here.
[0152] Figure 5 An exemplary system architecture 500 is shown to which the method for processing order data or the apparatus for processing order data according to the embodiments of the present invention can be applied.
[0153] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0154] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0155] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0156] Server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as item information query requests, and feed back the processing results to the terminal device.
[0157] It should be noted that the method for processing order data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing order data is generally set in the server 505 .
[0158] It should be understood that Figure 5 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.
[0159] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0160] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0161] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0162] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program, 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 the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0163] It should be noted that the computer-readable medium shown in the present invention 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 present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0164] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program according to various embodiments of the present invention. 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 above-mentioned module, program segment, or a part of a 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 or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0165] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as follows: a processor includes a receiving module, a construction module, a generation module and a delivery module, wherein the names of these modules do not constitute limitations on the modules themselves in some cases.
[0166] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device implements the following method: receiving order information issued by an upstream system, the order information includes item data; obtaining the product data and set relationship data corresponding to the supplier identification, thereby constructing an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification, and the set relationship data includes an item code with a set relationship; generating a consignment item relationship according to the item data object and the logistics data object; splitting the consignment item relationship into a plurality of item details, thereby sending the item details and their corresponding gift details to the downstream system.
[0167] As another aspect, an embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in any of the above embodiments is implemented.
[0168] According to the technical solution of the embodiment of the present invention, because the product data and set relationship data corresponding to the supplier identification are obtained, the item data object and logistics data object are constructed according to the order information and the product data and set relationship data corresponding to the supplier identification, and then the consignment item relationship is generated according to the item data object and the logistics data object, and finally the consignment item relationship is split into several product details, so that the product details and their corresponding gift details are sent to the downstream system. The technical problem that the prior art cannot control the gift to be delivered later than the main product is overcome. The embodiment of the present invention aims at the complex scenario where POP consignment, set, and main gift orders are satisfied at the same time. Through a new data storage structure, it solves the problem that the quantity of downstream goods cannot be split, accurately maps the quantity relationship between the goods in the business flow and the goods in the logistics, and satisfies the production of the logistics side warehouse. At the same time, the distribution link can accurately restore the quantity of the main product and the gift, so that the gift can be controlled to be delivered later than the main product.
[0169] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for processing order data, It is characterized in that include: Receiving order information sent by an upstream system, wherein the order information includes item data; Acquire the product data and set relationship data corresponding to the supplier identification, thereby constructing an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification, wherein the set relationship data includes the item code having a set relationship; Generate a consignment item relationship according to the item data object and the logistics data object; The consignment item relationship is split into a number of product details, and the product details and their corresponding gift details are sent to the downstream system.
2. The method according to claim 1, It is characterized in that According to the order information, the product data corresponding to the supplier identification and the set relationship data, an item data object and a logistics data object are constructed, including: For each item data in the order information, determine the product data corresponding to the supplier item identification, thereby determining the set relationship data corresponding to the item code; wherein the item data includes the consignor item identification, the consignor identification, the purchase quantity, the supplier item identification, and the supplier identification, and the product data includes the item code, the supplier item identification, the product code, and the set mark; Constructing an item data object according to the item data, the commodity data and the set relationship data, wherein the item data object defines an item code, an item identifier of a supplier, a purchase quantity, an item type, an item-commodity association code and an item identifier of a consignor; A logistics data object is constructed according to the product data corresponding to the supplier's product identification and the product data object, and the logistics data object defines the product code, product quantity and product association code.
3. The method according to claim 1, It is characterized in that Generating a consignment item relationship according to the item data object and the logistics data object includes: For each product code, determine the product association code and the consignor product identifier corresponding to the product code, thereby determining the quantity of the product corresponding to the product association code; A consignment sale item relationship is generated according to the consignment sale party item identifier, the product code, the product quantity and the consignment sale identifier indicating whether consignment sale is performed.
4. The method according to claim 3, It is characterized in that Generating a consignment item relationship according to the item data object and the logistics data object also includes: If the consignee item identifier is empty, the consignee identifier is set to no; If the consignment item identifier is not empty, the consignment identifier is set to yes.
5. The method according to claim 1, It is characterized in that Split the consignment item relationship into several item details, including: The consignment item relationship is split into several product details, so that the product details with the consignment mark of "no" and the product details with the consignment mark of "yes" are not in the same product detail, and different consignment item marks are in different product details.
6. The method according to claim 1, It is characterized in that Send the product details and their corresponding gift details to the downstream system, including: Obtaining an order identifier from the order information; For each product detail, query whether the sales agent item identifier has a corresponding gift detail according to the order identifier and the sales agent item identifier; If yes, the product details and the corresponding gift details are sent to the downstream system; If not, the product details will be sent to the downstream system.
7. A device for processing order data, It is characterized in that include: A receiving module, used to receive order information sent by an upstream system, wherein the order information includes item data; A construction module, used to obtain the product data and set relationship data corresponding to the supplier identification, so as to construct an item data object and a logistics data object according to the order information, the product data and set relationship data corresponding to the supplier identification, wherein the set relationship data includes the item code having a set relationship; A generating module, used for generating a consignment item relationship according to the item data object and the logistics data object; The sending module is used to split the consignment item relationship into a plurality of product details, so as to send the product details and their corresponding gift details to the downstream system.
8. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, 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 6.
9. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
