Inventory processing method, device, electronic device and storage medium

By obtaining user order information and supplier business district inventory tables on the e-commerce platform, we can determine and update the inventory, solving the oversold problem caused by suppliers supplying goods across business districts, achieving timely updates of inventory and improving user experience. promote.

CN112308681BActive Publication Date: 2024-09-20HANGZHOU PINPIANYI NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011279615.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2024-09-20
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

In e-commerce platforms, when suppliers supply products across business districts, other business districts cannot update their inventory in time after users place orders, resulting in overselling, causing negative brand effects to the platform and increasing after-sales compensation losses.

Method used

By obtaining the business district ID and product ID in the user's order, it is judged according to the supplier's business district inventory table whether the inventory meets the order quantity. If it is satisfied, the inventory is updated. If not, the available business district is determined and its inventory is updated. Ensure timely updates of inventory levels to avoid oversold.

Benefits of technology

It achieves timely updates of inventory in each business district, avoids oversold behavior, reduces additional compensation costs on the platform, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112308681B
    Figure CN112308681B
Patent Text Reader

Abstract

The present application discloses an inventory processing method, including: obtaining the business district ID and product ID in the user order information; judging whether the inventory corresponding to the product ID in the business district ID satisfies the order quantity of the product ID according to the supplier business district inventory table; if satisfied, updating the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity; if not satisfied, determining the available business district according to the order quantity of the product ID, and determining the occupied inventory of the available business district; updating the inventory of the available business district according to the occupied inventory, and the inventory of the product ID of the supplier corresponding to the available business district in other business districts. This method can ensure that when a supplier supplies goods across business districts, when a user places an order, the inventory of each business district can be updated in time, and overselling will not occur. The present application also provides an inventory processing device, an electronic device and a storage medium, which have the above-mentioned beneficial effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of warehouse management, and in particular to an inventory processing method, device, electronic device and storage medium. Background Art

[0002] As the traditional fast-moving consumer goods industry has developed to the present, the sales channels of dealers have been affected by e-commerce, and it is becoming increasingly difficult to expand new customers and maintain relationships with old customers. At present, in order to solve the problem of supply and sales discontinuity, a B2B platform to connect stores and suppliers (dealers, individual wholesale departments, brand owners, etc.) is more popular. Many e-commerce platforms adopt the model of suppliers entering and opening stores, allowing suppliers to directly publish products to the platform, allowing users to select products and place orders, and then the suppliers ship to the stores, and the platform charges a transaction commission.

[0003] Since different areas in a city have different suppliers and each supplier has a different supply range, the platform generally divides a city into multiple sales areas, with different supply ranges corresponding to the supplier's supply capacity, and users correspond to the corresponding area according to the location of the store registration. However, since suppliers supply goods across business districts, when a user places an order, other business districts cannot know that the inventory of the goods corresponding to the business district where the ordering user is located has been deducted, and they still sell according to the supplier's total inventory of goods, resulting in out-of-stock and overselling, causing a negative brand effect for the platform and increasing after-sales compensation losses. Summary of the invention

[0004] The purpose of this application is to provide an inventory processing method that can ensure that when a supplier supplies goods across business districts, when a user places an order, the inventory of each business district can be updated in time to avoid overselling. The specific plan is as follows:

[0005] In a first aspect, the present application discloses an inventory processing method, comprising:

[0006] Get the business district ID and product ID in the user's order information;

[0007] According to the supplier's business district inventory table, determine whether the inventory quantity corresponding to the product ID in the business district ID meets the order quantity of the product ID;

[0008] If satisfied, then update the inventory of the product ID and the inventory of the product ID in other business districts of the supplier corresponding to the business district ID according to the order quantity;

[0009] If not, determine the available business district according to the order quantity of the product ID, and determine the occupied inventory quantity of the available business district;

[0010] According to the occupied inventory, the inventory of the available business district and the inventory of the product ID of the supplier corresponding to the available business district in other business districts are updated.

[0011] Optionally, when the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, determining the available business district according to the order quantity of the product ID includes:

[0012] When the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, judging whether the inventory quantity of the product ID in each business district ID meets the order quantity according to the supplier business district inventory table;

[0013] Determine a first target business district set that satisfies the order quantity, and use each business district in the first target business district set as an available business district;

[0014] If not, determine a second target business district set that meets the order quantity, and use the second target business district set as the available business district; the total inventory of the product ID in all business districts in the second target business district set is greater than the order quantity.

[0015] Optionally, determining the available business district according to the order quantity of the product ID, and determining the occupied inventory quantity of the available business district includes:

[0016] comparing the inventory quantities of the product IDs in each business district in the first target business district set;

[0017] Determine the business district ID corresponding to the maximum inventory quantity, and determine the occupied inventory quantity of the business district ID according to the order quantity.

[0018] Optionally, determining the available business district according to the order quantity of the product ID, and determining the occupied inventory quantity of the available business district includes:

[0019] Obtaining address information from the user's order information;

[0020] According to the address information, a business district set that meets the order quantity is selected from the second target business district set, and the occupied inventory quantity of the business district set is determined.

[0021] Optionally, also include:

[0022] When order cancellation information is received, the inventory quantity of the product ID in the corresponding business district is updated according to the inventory occupancy table.

[0023] Optionally, also include:

[0024] The updated current inventory quantity of the product ID in the available business circle is displayed.

[0025] In a second aspect, the present application discloses an inventory processing method, comprising:

[0026] The acquisition module is used to obtain the business district ID and product ID in the user's order information;

[0027] A judgment module, used to judge whether the inventory quantity corresponding to the product ID in the business district ID meets the order quantity of the product ID according to the supplier business district inventory table;

[0028] A first updating module is used to update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity if the conditions are met;

[0029] A determination module, for determining the available business district according to the order quantity of the commodity ID if the demand is not met, and determining the occupied inventory quantity of the available business district;

[0030] The second updating module is used to update the inventory of the available business district and the inventory of the product ID of the supplier corresponding to the available business district in other business districts according to the occupied inventory.

[0031] Optionally, also include:

[0032] The third updating module is used to update the inventory of the product ID in the corresponding business district according to the inventory occupancy table when receiving order cancellation information.

[0033] In a third aspect, the present application discloses an electronic device, comprising:

[0034] Memory for storing computer programs;

[0035] A processor is used to implement the steps of the above-mentioned inventory processing method when executing the computer program.

[0036] In a fourth aspect, the present application discloses a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned inventory processing method are implemented.

[0037] The present application provides an inventory processing method, including: obtaining a business district ID and a product ID in user order information; judging, based on a supplier business district inventory table, whether the inventory quantity corresponding to the product ID in the business district ID satisfies the order quantity of the product ID; if so, updating the inventory quantity of the product ID and the inventory quantity of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity; if not, determining the available business district according to the order quantity of the product ID, and determining the occupied inventory quantity of the available business district; updating the inventory quantity of the available business district and the inventory quantity of the product ID of the supplier corresponding to the available business district in other business districts according to the occupied inventory quantity.

[0038] It can be seen that this application can ensure that when suppliers supply goods across business districts, when a user places an order, the inventory of each business district can be updated in time by updating the inventory of goods in the business district ID or the business district ID in the optional business district, and the inventory of goods in the product ID of each corresponding supplier in other business districts, so that overselling will not occur. This avoids the defect in the related technology that the inventory of the business district where the ordering user is located has been deducted because other business districts are unaware that the inventory of the business district has been deducted, and the goods are still displayed and sold according to the original inventory, resulting in overselling and additional compensation. This reduces the platform's additional compensation costs and improves user experience. This application also provides an inventory processing device, an electronic device, and a computer-readable storage medium, which have the above-mentioned beneficial effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0040] Figure 1 A flowchart of an inventory processing method provided in an embodiment of the present application;

[0041] Figure 2 A flowchart of another inventory processing method provided in an embodiment of the present application;

[0042] Figure 3 A specific structural diagram of inventory processing based on cross-business district shared inventory provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the structure of an inventory processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0045] In the common inventory processing method of cross-business district shared inventory, a supplier supplies goods to multiple business districts. However, in the related technology, when a user places an order, the supplier's inventory in other business districts cannot be synchronized with the commodity inventory in the business district where the ordering user is located. Other business districts display and sell according to the original supply quantity, resulting in out-of-stock and overselling behavior, causing a negative brand effect on the platform and increasing after-sales compensation losses. Based on the above technical problems, this embodiment provides an inventory processing method that can solve the problem of suppliers supplying goods across business districts, and the inventory of each business district can accurately avoid overselling behavior to avoid out-of-stock. For details, please refer to Figure 1 , Figure 1 A flowchart of a method provided in an embodiment of the present application specifically includes:

[0046] S101. Obtain the business district ID and product ID in the user order information.

[0047] The execution subject of this embodiment is an e-commerce platform. This embodiment does not limit the specific content of the user order information, which may include a business district ID and a product ID, and may also include basic information of the user, such as the user's address information, user order number, and mobile phone number, etc., which may be set according to actual conditions. It is understandable that the business district ID and product ID in the user order information are unique, that is, different business districts correspond to unique business district IDs, and different types of products correspond to unique product IDs.

[0048] S102. According to the supplier's business district inventory table, determine whether the inventory quantity corresponding to the product ID in the business district ID meets the order quantity of the product ID.

[0049] This embodiment does not limit the specific content of the supplier's business district inventory table, for example, it may include supplier ID, product ID, warehouse ID and inventory. That is, the business district ID corresponding to the supplier's business district inventory table is queried according to the business district ID in the user's order information, and then the inventory of the corresponding product ID in the business district ID is queried according to the product ID. When the inventory is greater than or equal to the order quantity of the product ID, the order quantity of the product is met; when the inventory is less than the order quantity of the product ID, the order quantity of the product is not met.

[0050] S103. If satisfied, update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity.

[0051] When the inventory of a product ID in a business district ID is greater than or equal to the order quantity of the product ID, the inventory of the product ID in the business district is updated, that is, the order quantity is deducted from the original inventory to obtain the updated inventory. It should be noted that when updating the inventory of the corresponding product ID in the business district ID, it is also necessary to update the inventory of the product ID of the supplier of the business district ID in other business districts, that is, timely update the inventory of the product ID of the supplier in all supply business districts to avoid overselling.

[0052] S104. If not satisfied, determine the available business district according to the order quantity of the product ID, and determine the occupied inventory quantity of the available business district.

[0053] When the inventory of the product ID in the business district ID is less than the order quantity of the product ID, the available business district is determined so that the inventory of the available business district meets the order quantity of the product ID. This embodiment does not limit the number of available business districts, which can be one or more, depending on the specific situation. This embodiment does not limit the specific method of determining the available business district, as long as the order quantity of the business district ID can be met.

[0054] In a specific embodiment, when the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, determining the available business district according to the order quantity of the product ID may include:

[0055] When the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, determine whether the inventory quantity of the product ID in each business district ID meets the order quantity according to the supplier business district inventory table;

[0056] Determine a first target business district set that meets the order quantity, and use each business district in the first target business district set as an available business district;

[0057] If not, determine a second target business district set that meets the order quantity, and use the second target business district set as the available business district; the total inventory of the product IDs of all business districts in the second target business district set is greater than the order quantity.

[0058] That is, when the inventory corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, the inventory of the product ID in each business district ID is determined to meet the order quantity according to the supplier business district inventory table. In this embodiment, each business district that can meet the order quantity of the product ID is taken as the first target business district set. The business district set in which the sum of the inventory of the product ID in all business districts is greater than the order quantity of the product ID is taken as the second target business district set. This embodiment does not limit the setting method of the second target business district set, as long as the sum of the inventory of the product ID is greater than the order quantity, all business districts on the platform can be taken as the second target business district set, or the second target business district set can include multiple subsets, and the sum of the inventory of the product ID in each subset is greater than the order quantity of the product ID.

[0059] Furthermore, this embodiment does not limit how to determine the occupied inventory of the available business district, as long as it can meet the order volume of the business district ID. In a specific embodiment, in order to improve the user experience and provide goods to more users, the available business district is determined according to the order volume of the product ID, and the occupied inventory of the available business district is determined, which may include:

[0060] Compare the inventory quantities according to the inventory quantities of the product IDs of each business district in the first target business district set;

[0061] Determine the business district ID corresponding to the maximum inventory quantity, and determine the occupied inventory quantity of the business district ID based on the order quantity.

[0062] That is, the business district with the largest inventory of the product ID in the first target business district set is selected, and the business district ID corresponding to the business district is determined, and the order quantity of the product ID is deducted from the inventory of the business district ID, so the order quantity of the product ID is the occupied inventory of the business district. It can be understood that the product is provided to the ordering user from the business district with the largest inventory of the product ID, and the product will be reserved in other business districts, that is, the inventory of the product in other business districts of different suppliers remains unchanged, and there will be no shortage of goods due to supplying all to the user, and the product can be provided to more users.

[0063] In a specific embodiment, in order to save transportation costs, determining the available business district according to the order quantity of the product ID and determining the occupied inventory quantity of the available business district may include:

[0064] Get the address information in the user's order information;

[0065] According to the address information, a business district set that meets the order quantity is selected from the second target business district set, and the occupied inventory quantity of the business district set is determined.

[0066] This embodiment does not limit the selection method of selecting a business district set that meets the order quantity from the second target business district set, as long as the order quantity can be met. It can be understood that, based on the address information in the user order information, this embodiment does not limit the specific content of the address information, as long as the user address can be determined based on the address information. According to the address information, multiple business districts that are close to the user address, that is, a business district set, are selected from the second target business district set, that is, the selected business district set can meet the order quantity of the product ID, and each business district in the business district set is relatively close to the user address, which can save logistics costs. Correspondingly, this embodiment does not limit the specific method of determining the occupied inventory of the business district set, as long as the order quantity of the product ID can be met. For example, it can be based on the inventory of the product ID in the business district set, the inventory is compared, and it is deducted from large to small until the order quantity is met.

[0067] S105. Update the inventory available for the business district and the inventory of the product ID of the supplier corresponding to the business district in other business districts according to the occupied inventory.

[0068] After determining the occupied inventory of each business district in the available business district, the occupied inventory is deducted from the system, that is, the inventory is updated. It should be noted that after updating the inventory of the available business district, it is also necessary to update the inventory of the product ID of the supplier corresponding to the available business district in other business districts. It is understandable that the supplier supplies goods across business districts, that is, the total inventory of the supplier's product library displayed and sold in each business district is the total inventory. Therefore, after selling in the available business district, while updating the inventory in a timely manner, it is also necessary to update the supplier's inventory of the product in other business districts to prevent other business districts from selling according to the original inventory and causing overselling, which in turn leads to additional compensation from the platform.

[0069] Based on the above technical solution, this embodiment updates the inventory of goods in the business district ID or the business district ID in the optional business district, as well as the inventory of goods in the corresponding supplier's product ID in other business districts. This can ensure that when suppliers supply goods across business districts, when a user places an order, the inventory of each business district can be updated in time, and overselling will not occur, thereby reducing the platform's additional compensation costs and improving user experience.

[0070] Based on the above embodiment, in order to be able to reflect the inventory of each business district in real time, this embodiment provides an inventory processing method. For details, please refer to Figure 2 , Figure 2 A flowchart of another inventory processing method provided in an embodiment of the present application includes:

[0071] S201. Obtain the business district ID and product ID in the user order information.

[0072] S202. According to the supplier's business district inventory table, determine whether the inventory quantity corresponding to the product ID in the business district ID meets the order quantity of the product ID.

[0073] S203: If satisfied, update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity.

[0074] S204: If not satisfied, determine the available business district according to the order quantity of the product ID, and determine the occupied inventory quantity of the available business district.

[0075] S205. Update the inventory available for the business district and the inventory of the product ID of the supplier corresponding to the business district in other business districts according to the occupied inventory.

[0076] The specific contents of step S201 to step S205 can be referred to the above embodiment, and will not be described in detail in this embodiment.

[0077] S206: When order cancellation information is received, the inventory quantity of the product ID in the corresponding business district is updated according to the inventory occupancy table.

[0078] That is, when order cancellation information is received, the inventory of the business district ID and the product ID of the supplier corresponding to the business district ID in other business districts is restored according to the inventory occupation table, or the inventory of the available business district and the product ID of the supplier corresponding to the available business district in other business districts is restored. This embodiment does not limit the specific content of the inventory occupation table, as long as the original inventory of the corresponding business district can be restored, it can be set according to actual conditions, for example, it can include order ID, supplier ID, warehouse ID, business district ID, product ID, quantity and status (occupancy successful or occupation cancelled).

[0079] In a specific embodiment, in order to improve the transaction rate of goods and prevent overselling, it can also include: displaying the current inventory of the updated product ID in the available business circle. That is, the updated current inventory of the product ID available in the business circle is displayed on the e-commerce platform, and the product inventory information can be provided to users in real time, so that users can make purchases based on the information, thereby improving the transaction rate of goods.

[0080] This embodiment provides a specific embodiment of inventory processing based on cross-business district shared inventory, such as Figure 3 As shown, specifically including:

[0081] (1) Inventory display in the mall app: used to accurately display the total inventory of each business district to users, so that users can know how much is available for sale and can make purchases;

[0082] (2) Inventory occupancy logic scheduling:

[0083] A. When a user places an order, the supplier's business district inventory is occupied according to certain rules. If the supplier is across business districts, the inventory of each business district available to this supplier is updated, and then this data is synchronized to the business district inventory for display to the user;

[0084] B. When a user cancels an order, the inventory of the supplier's business district is increased accordingly based on the record of inventory occupied by the order. If the supplier is across business districts, the inventory of each business district available to the supplier is updated, and then the data is synchronized to the business district inventory for display to the user;

[0085] In order to more clearly explain the method for handling the inventory of suppliers across business districts, this embodiment also provides a specific order placement process. It can be realized that when a user places an order, in the case of a supplier across business districts, the inventory of the supplier in the current business district needs to be occupied, and the inventory of the supplier in other business districts also needs to be occupied to avoid overselling; when a user cancels an order, in the case of a supplier across business districts, the inventory of the supplier in the current business district needs to be released, and the occupied inventory of the supplier in other business districts also needs to be released.

[0086] (1) When a user creates an order, the platform system verifies whether the purchased quantity is less than or equal to the store inventory. If it is greater than the store inventory, the user is prompted that the stock is insufficient and the order cannot be placed. If the stock is sufficient, the order can be submitted normally.

[0087] (2) Based on the supplier's business district inventory table, determine the supply business district and update the supplier's cross-business district inventory process: According to the business district ID and product ID in the user's order information, query the supplier's business district inventory table, and check whether there is a quantity that meets the purchase, that is, the order quantity, according to the inventory of the product ID in each business district. If it meets the requirement, the updated inventory = inventory - order quantity (order quantity); if it does not meet the requirement, compare the next data, poll all the data and find that none of the remaining inventory meets the requirement, then lock the inventory from large to small: if there is a business district that meets the order quantity, then the corresponding supplier of the business district will subtract the corresponding inventory in other business districts. In other words, find out whether there is a single supplier in a business district whose inventory meets the order quantity. If it does not meet the requirement, it means that this order requires the inventory of multiple suppliers to meet the requirement. For example, supplier S1 supplies goods to business districts T1 and T2 across business districts, with an inventory of 10 pieces. Supplier S2 supplies goods to business districts T1 and T3 across business districts, with an inventory of 20 pieces. When user A places an order for 25 items in business district T1, the inventory of the goods of supplier S1 and supplier S2 in business district T1 cannot meet the order quantity. Therefore, 20 pieces of the goods ordered by supplier S2 in business district T1 can be deducted first, and 20 pieces of the goods ordered by this supplier in other business districts, namely business district T3, can be deducted at the same time. Since this supplier has not yet fully met the order demand, 5 pieces of the goods of supplier S1 in business district T1 can be deducted, and 5 pieces of the goods of supplier S1 in other business districts, namely business district T2, can be deducted at the same time.

[0088] (3) After the inventory is successfully deducted, the inventory of the business district involved, that is, the other business districts of the supplier, is updated according to the warehouse ID and product ID of the deduction (the updated inventory quantity = the inventory quantity - the deducted inventory quantity).

[0089] When receiving order cancellation information, the order cancellation process can be:

[0090] (1) Check the inventory occupancy table and update the status value of the table to cancel the occupancy;

[0091] (2) Restore the business district ID or the inventory available for the business district based on the supplier ID, warehouse ID, business district ID, product ID, and quantity in the inventory occupancy table;

[0092] (3) Restore the inventory of cross-business district suppliers in other business districts;

[0093] (4) Calculate the total inventory of the product that can be sold based on the business district ID and product ID, and synchronize the business district inventory table. The business district inventory table may include the business district ID, product ID, and inventory.

[0094] Based on the above technical solution, when this embodiment receives order cancellation information, it promptly restores the inventory of the product ID of the corresponding business district and displays the updated current inventory available for the business district, which can prevent overselling, increase the product transaction rate, and improve customer experience.

[0095] The following is an introduction to an inventory processing device provided in an embodiment of the present application. The inventory processing device described below and the inventory processing method described above can be referred to each other, and the relevant modules are all set in, and reference is made to Figure 4 , Figure 4 A schematic diagram of the structure of an inventory processing device provided in an embodiment of the present application includes:

[0096] In some specific embodiments, it specifically includes:

[0097] The acquisition module 401 is used to acquire the business district ID and product ID in the user order information;

[0098] The judgment module 402 is used to judge whether the inventory quantity corresponding to the product ID in the business district ID meets the order quantity of the product ID according to the supplier business district inventory table;

[0099] The first updating module 403 is used to update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity if the conditions are met;

[0100] Determination module 404, for determining the available business district according to the order quantity of the product ID and determining the occupied inventory quantity of the available business district if the conditions are not met;

[0101] The second updating module 405 is used to update the inventory available for the business district and the inventory of the product ID of the supplier corresponding to the business district in other business districts according to the occupied inventory.

[0102] In some specific embodiments, the determination module 404 includes:

[0103] A judgment unit, configured to judge whether the inventory of the product ID in each business district ID meets the order quantity according to the supplier business district inventory table when the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID;

[0104] A first determining unit is used to determine a first target business district set that meets the order quantity, and use each business district in the first target business district set as an available business district;

[0105] The second determination unit is used to determine a second target business district set that meets the order quantity if it is not satisfied, and use the second target business district set as the available business district; the total inventory of the product IDs of all business districts in the second target business district set is greater than the order quantity.

[0106] In some specific embodiments, the determination module 404 includes:

[0107] A comparison unit, configured to compare the inventory quantities according to the inventory quantities of the commodity IDs of each business district in the first target business district set;

[0108] The maximum inventory determination unit is used to determine the business district ID corresponding to the maximum inventory, and determine the occupied inventory of the business district ID according to the order quantity.

[0109] In some specific embodiments, the determination module 404 includes:

[0110] An acquisition unit, used to acquire address information from user order information;

[0111] The selection unit is used to select a business district set that meets the order quantity from the second target business district set according to the address information, and determine the occupied inventory of the business district set.

[0112] In some specific embodiments, it also includes:

[0113] The third updating module is used to update the inventory of the product ID in the corresponding business district according to the inventory occupancy table when order cancellation information is received.

[0114] In some specific embodiments, it also includes:

[0115] The display module is used to display the updated current inventory of the product ID available in the business circle.

[0116] Since the embodiments of the inventory processing device part correspond to the embodiments of the inventory processing method part, the embodiments of the inventory processing device part refer to the description of the embodiments of the inventory processing method part, which will not be repeated here.

[0117] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the inventory processing method described above can be referenced to each other.

[0118] The present application also provides an electronic device, comprising:

[0119] Memory for storing computer programs;

[0120] A processor is used to implement the steps of the above-mentioned inventory processing method when executing a computer program.

[0121] Since the embodiments of the electronic equipment part correspond to the embodiments of the inventory handling method part, please refer to the description of the embodiments of the inventory handling method part for the embodiments of the electronic equipment part, which will not be repeated here.

[0122] The present application provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned inventory processing method are implemented. Since the embodiments of the storage medium part correspond to the embodiments of the inventory processing method part, the embodiments of the storage medium part refer to the description of the embodiments of the inventory processing method part, and will not be repeated here.

[0123] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0124] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0125] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0126] The above is a detailed introduction to an inventory processing method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for inventory processing, characterized in that: include: Get the business district ID and product ID in the user's order information; Query the business district ID corresponding to the supplier's business district inventory table according to the business district ID in the user's order information, and then query the inventory of the corresponding product ID in the business district ID according to the product ID, and determine whether the inventory corresponding to the product ID in the business district ID meets the order quantity of the product ID. The supplier's business district inventory table includes the supplier ID, product ID, warehouse ID and inventory; If satisfied, then update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity, including: if one business district meets the order quantity, then the corresponding supplier of the business district will deduct the corresponding inventory in other business districts. Among them, a supplier supplies goods to multiple business districts, and the total inventory of the supplier's goods displayed and sold in each business district is the total inventory. In the case of a cross-business district supplier, it is necessary to occupy the inventory of the business district, and also occupy the inventory of this supplier in other business districts to avoid overselling; If not, determine the available business district according to the order quantity of the product ID, and determine the occupied inventory quantity of the available business district; According to the occupied inventory, update the inventory of the available business district, and the inventory of the product ID of the supplier corresponding to the available business district in other business districts; When the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, determining the available business district according to the order quantity of the product ID includes: When the inventory quantity corresponding to the product ID in the business district ID does not meet the order quantity of the product ID, judging whether the inventory quantity of the product ID in each business district ID meets the order quantity according to the supplier business district inventory table; Determine a first target business district set that meets the order quantity, and use each business district in the first target business district set as an available business district, that is, find out whether there is a single supplier whose inventory in a certain business district meets the order quantity; If not satisfied, determine a second target business district set that meets the order quantity, and use the second target business district set as the available business district; the sum of the inventory quantities of the product IDs in the second target business district set is greater than the order quantity, wherein the second target business district set includes multiple sub-sets, and the sum of the inventory quantities of the product IDs in each sub-set is greater than the order quantity of the product ID. If not satisfied, it means that the order requires inventory from multiple suppliers to be satisfied; Determining the available business district according to the order quantity of the product ID, and determining the occupied inventory quantity of the available business district, including: comparing the inventory quantities of the product IDs in each business district in the first target business district set; Determine the business district ID corresponding to the maximum inventory quantity, and determine the occupied inventory quantity of the business district ID according to the order quantity; Obtaining address information from the user's order information; According to the address information, a business district set that is closer to the user address and meets the order quantity is selected from the second target business district set, and the occupied inventory of the business district set is determined, including: comparing the inventory of the product ID in the business district set with the inventory of the product ID, and deducting the inventory in descending order until the order quantity is met; Also includes: When order cancellation information is received, the inventory quantity of the product ID in the corresponding business district is updated according to the inventory occupancy table, including: checking the inventory occupancy table and updating the status value of this table record to occupancy cancellation; restoring the business district ID or the inventory available for the business district according to the supplier ID, warehouse ID, business district ID, product ID and quantity in the inventory occupancy table; restoring the inventory of cross-business district suppliers in other business districts; calculating the sum of the inventory that can be sold for the product according to the business district ID and product ID, and synchronizing the business district inventory table, which includes the business district ID, product ID and inventory quantity.

2. The inventory processing method according to claim 1, characterized in that: Also includes: The updated current inventory quantity of the product ID in the available business circle is displayed.

3. An inventory processing device, characterized in that: include: The acquisition module is used to obtain the business district ID and product ID in the user's order information; A judgment module is used to query the business district ID corresponding to the supplier business district inventory table according to the business district ID in the user order information, and then query the inventory of the corresponding product ID in the business district ID according to the product ID, and judge whether the inventory corresponding to the product ID in the business district ID meets the order quantity of the product ID. The supplier business district inventory table includes the supplier ID, product ID, warehouse ID and inventory; The first updating module is used to update the inventory of the product ID and the inventory of the product ID of the supplier corresponding to the business district ID in other business districts according to the order quantity if the order quantity is met, including: if one business district meets the order quantity, the supplier corresponding to the business district will deduct the corresponding inventory in other business districts, wherein a supplier supplies goods to multiple business districts, and the total inventory of the supplier's goods displayed and sold in each business district is the total inventory. In the case of a cross-business district supplier, it is necessary to occupy the inventory of the business district and the inventory of this supplier in other business districts to avoid overselling; A determination module, for determining the available business district according to the order quantity of the commodity ID if the demand is not met, and determining the occupied inventory quantity of the available business district; A second updating module is used to update the inventory of the available business district and the inventory of the product ID of the supplier corresponding to the available business district in other business districts according to the occupied inventory; Wherein, the determination module includes: a judgment unit, configured to judge, according to the supplier business district inventory table, whether the inventory of the product ID in each business district ID meets the order quantity when the inventory corresponding to the product ID in the business district ID does not meet the order quantity of the product ID; A first determining unit is used to determine a first target business district set that meets the order quantity, and use each business district in the first target business district set as an available business district, that is, to find out whether the inventory of a certain business district of a single supplier meets the order quantity; A second determining unit is configured to determine a second target business district set that satisfies the order quantity if the condition is not satisfied, and use the second target business district set as an available business district; the sum of the inventory quantities of the product IDs in the second target business district set is greater than the order quantity, wherein the second target business district set includes a plurality of sub-sets, and the sum of the inventory quantities of the product IDs in each sub-set is greater than the order quantity of the product ID. If the condition is not satisfied, it means that the order requires inventory from multiple suppliers to be satisfied; The determining module comprises: A comparison unit, configured to compare the inventory quantities according to the inventory quantities of the commodity IDs of each business district in the first target business district set; A maximum inventory determination unit, used to determine the business district ID corresponding to the maximum inventory, and determine the occupied inventory of the business district ID according to the order quantity; The determination module comprises An acquisition unit, used to acquire address information from user order information; Also includes: A selection unit is used to select a business district set that is closer to the user address and meets the order quantity from the second target business district set according to the address information, and determine the occupied inventory of the business district set, including: comparing the inventory of the product ID in the business district set according to the inventory, and deducting it in order from large to small until the order quantity is met; Also includes: The third update module is used to update the inventory of the product ID in the corresponding business district according to the inventory occupancy table when receiving order cancellation information, including: checking the inventory occupancy table and updating the status value of the table record to occupancy cancellation; restoring the business district ID or the inventory available for the business district according to the supplier ID, warehouse ID, business district ID, product ID and quantity in the inventory occupancy table; restoring the inventory of cross-business district suppliers in other business districts; calculating the sum of the inventory that can be sold for the product according to the business district ID and product ID, and synchronizing the business district inventory table, which includes the business district ID, product ID and inventory.

4. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the inventory processing method according to any one of claims 1 to 2 when executing the computer program.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the inventory processing method according to any one of claims 1 to 2 are implemented.