Inventory management method and system
Through virtual inventory management methods, prevent inventory oversold in high concurrency scenarios, solve the problem of oversold in the existing technology, improve the throughput and user experience of inventory management, and ensure the accuracy of inventory information.
Patent Information
- Application Number
- CN202411132425.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-06
AI Technical Summary
Existing inventory management methods can easily lead to overselling problems in high concurrency scenarios, affecting user experience and merchant credibility, and conventional locking methods will reduce inventory throughput and extend response time.
The virtual inventory management method is adopted to deduct transaction quantity by querying the virtual inventory volume, avoid locking the real inventory, ensure the accuracy and real-timeness of inventory information, and prevent overselling.
It effectively prevents inventory oversold, improves concurrency capabilities and throughput of inventory management, reduces management complexity, improves user experience, and avoids unnecessary interference to real inventory.
Smart Images

Figure CN119090398A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data management, and in particular to an inventory management method and system. Background Art
[0002] Inventory of items may have various problems that affect the business. For example, inventory may be oversold due to improper system processing of concurrent requests, delayed inventory data updates, or management errors. Oversold inventory means that the number of items actually sold exceeds the available inventory, that is, the number of items sold is more than the actual inventory.
[0003] Inventory oversold is common in e-commerce and payment, especially in high-concurrency sales scenarios such as flash sales and promotions. When multiple users place orders for the same product almost at the same time, and the system fails to effectively control concurrent access, it may mistakenly allow orders that exceed the actual inventory quantity to be generated. As a result, merchants may face the situation of being unable to fulfill all orders, needing to cancel some orders or delaying shipments, which not only affects the customer experience, but may also damage the merchant's reputation, causing economic losses and negative brand impact.
[0004] Therefore, there is a need to provide an inventory management method to prevent items from being oversold.
[0005] The content of the background technology section is only the information known to the inventor personally, and does not mean that the above information has entered the public domain before the application date of this disclosure, nor does it mean that it can become the prior art of the present disclosure. Summary of the invention
[0006] The inventory management method and system provided in this specification can prevent overselling of items.
[0007] In a first aspect, the present specification provides an inventory management method, comprising: receiving a target request from a target user for a target item, the target request carrying a transaction quantity; querying the virtual inventory of the target item in the virtual inventory, the virtual inventory being used to offset the transaction quantity, the amount of the virtual inventory being the actual inventory; and sending inventory information to the target user, the inventory information indicating whether the virtual inventory satisfies the transaction quantity.
[0008] In some embodiments, it also includes: if it is determined that the virtual inventory is greater than the transaction quantity, deducting the transaction quantity from the virtual inventory.
[0009] In some embodiments, it also includes: in the case of determining that the virtual inventory is less than the transaction quantity, updating the virtual inventory with the actual inventory.
[0010] In some embodiments, updating the virtual inventory with the actual inventory includes: obtaining an update preparation time, the update preparation time including the time when the virtual inventory does not meet the transaction quantity for the first time after the last update; and determining that the duration between the current time and the update preparation time reaches a preset duration, and updating the virtual inventory with the actual inventory.
[0011] In some embodiments, updating the virtual inventory with the actual inventory further includes: updating the update preparation time to a default value.
[0012] In some embodiments, updating the virtual inventory with the actual inventory includes: determining that the actual inventory does not meet a preset condition, obtaining an update preparation time, the update preparation time including the time when the virtual inventory does not meet the transaction quantity for the first time after the last update; and determining that the duration between the current time and the update preparation time reaches a preset duration, and updating the virtual inventory with the actual inventory.
[0013] In some embodiments, the preset conditions include at least one of the following: the ratio between the actual inventory and the transaction quantity is greater than a first threshold; the ratio between the actual inventory and the maximum amount of the actual inventory is greater than a second threshold; or the actual inventory is greater than a third threshold.
[0014] In some embodiments, updating the virtual inventory with the actual inventory includes: determining that the actual inventory meets a preset condition, and then updating the virtual inventory with the actual inventory.
[0015] In some embodiments, the preset conditions include at least one of the following: the ratio between the actual inventory and the transaction quantity is greater than a first threshold; the ratio between the actual inventory and the maximum amount of the actual inventory is greater than a second threshold; or the actual inventory is greater than a third threshold.
[0016] In some embodiments, sending inventory information to the target user includes: determining that the virtual inventory amount is greater than the transaction quantity, and sending information that there is inventory to the target user; or determining that the virtual inventory amount is less than the transaction quantity, and sending information that there is insufficient inventory to the target user.
[0017] In some embodiments, it also includes: receiving a payment result of the target user, wherein the payment result includes payment information for the target item of the transaction quantity; and deducting the transaction quantity from the actual inventory.
[0018] In a second aspect, the present specification also provides an inventory management system, comprising at least one storage medium storing at least one set of instruction sets for implementing inventory management; and at least one processor communicatively connected to the at least one storage medium, wherein when the inventory management system is running, the at least one processor reads the at least one instruction set and implements any one of the inventory management methods described in the first aspect.
[0019] It can be seen from the above technical solutions that in the inventory management method and system provided in this specification, the system can receive a target request from a target user for a target item, which carries a transaction quantity, and then query the virtual inventory of the target item in the virtual inventory, and return inventory information to the target user indicating whether the virtual inventory meets the transaction quantity. The virtual inventory can be used to offset the transaction quantity in the target request. Since the amount of the virtual inventory is the actual inventory, that is, the virtual inventory is less than or equal to the actual inventory, and the inventory information sent to the target user is a representation of whether the virtual inventory meets the transaction quantity, therefore, when the virtual inventory meets the transaction quantity, the actual inventory will also meet the transaction quantity, so that the target user completes the item transaction based on the inventory information, and there will be no problem of overselling items. Moreover, the system queries the virtual inventory, rather than the real inventory whose inventory is the actual inventory, which avoids disturbing the real inventory and reduces the complexity of inventory management.
[0020] Other functions of the inventory management method and system provided by this specification will be partially listed in the following description. Based on the description, the contents introduced by the following figures and examples will be obvious to those of ordinary skill in the art. The creative aspects of the inventory management method and system provided by this specification can be fully explained by practicing or using the methods, devices and combinations described in the following detailed examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 A schematic diagram of an inventory management scenario provided according to some embodiments of this specification is shown;
[0023] Figure 2 A hardware structure diagram of a computing device provided according to some embodiments of this specification is shown;
[0024] Figure 3A flowchart of an inventory management method provided according to some embodiments of this specification is shown;
[0025] Figure 4 A schematic diagram showing actual inventory and virtual inventory provided according to some embodiments of this specification is shown;
[0026] Figure 5 A schematic diagram of a back-brushing method provided according to some embodiments of the present specification is shown;
[0027] Figure 6 A schematic diagram showing an overselling method provided according to some embodiments of the present specification; and
[0028] Figure 7 A schematic diagram of a safe re-brush provided according to some embodiments of the present specification is shown. DETAILED DESCRIPTION
[0029] The following description provides specific application scenarios and requirements of this specification, with the purpose of enabling those skilled in the art to make and use the contents of this specification. Various local modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of this specification. Therefore, this specification is not limited to the embodiments shown, but to the widest scope consistent with the claims.
[0030] The terms used herein are only used for the purpose of describing specific example embodiments and are not restrictive. For example, unless the context clearly indicates otherwise, as used herein, the singular forms "a", "an" and "the" may also include plural forms. When used in this specification, the terms "include", "comprise" and / or "contain" mean that the associated integers, steps, operations, elements and / or components exist, but do not exclude the existence of one or more other features, integers, steps, operations, elements, components and / or groups or that other features, integers, steps, operations, elements, components and / or groups may be added in the system / method.
[0031] In view of the following description, these and other features of the present specification, as well as the operation and function of the related elements of the structure, and the economy of the combination and manufacture of the parts can be significantly improved. Reference is made to the accompanying drawings, all of which form a part of this specification. However, it should be clearly understood that the drawings are for illustration and description purposes only and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.
[0032] The flowcharts used in this specification illustrate the operations implemented by the system according to some embodiments in this specification. It should be clearly understood that the operations of the flowcharts may not be implemented in sequence. On the contrary, the operations may be implemented in reverse order or simultaneously. In addition, one or more other operations may be added to the flowchart. One or more operations may be removed from the flowchart.
[0033] In this specification, "X includes at least one of A, B or C" means that X includes at least A, or X includes at least B, or X includes at least C. That is, X may include only any one of A, B, and C, or may include any combination of A, B, and C and other possible contents / elements at the same time. The any combination of A, B, and C may be A, B, C, AB, AC, BC, or ABC.
[0034] In this specification, unless explicitly stated otherwise, the association relationship between structures can be a direct association relationship or an indirect association relationship. For example, when describing "A is connected to B", unless it is explicitly stated that A is directly connected to B, it should be understood that A can be directly connected to B or indirectly connected to B; for another example, when describing "A is above B", unless it is explicitly stated that A is directly above B (AB is adjacent and A is above B), it should be understood that A can be directly above B or indirectly above B (AB is separated by other elements and A is above B). And so on.
[0035] For the convenience of description, this manual explains the terms that will appear in the following descriptions:
[0036] Inventory: The actual goods stored in the warehouse. The inventory level will change as the goods are sold.
[0037] Oversold: refers to the situation where there is a certain amount of inventory, but in reality, due to concurrency and other reasons, the actual transaction quantity exceeds the actual inventory quantity.
[0038] Concurrency: refers to a situation where a large number of requests occur in a short period of time, such as within one second.
[0039] Withholding: refers to occupying virtual inventory by occupying it, but not consuming real inventory.
[0040] Refresh: Update the actual inventory to the virtual inventory.
[0041] Threshold: Inventory safety level.
[0042] Before describing the specific embodiments of this specification, the scheme of this specification is first introduced as a whole:
[0043] In the inventory management method in the related art, after receiving a user request, the inventory is queried to determine whether the inventory is sufficient. When the user completes the purchase or places an order, the corresponding transaction quantity is deducted from the inventory to update the inventory. However, there is usually a certain time interval between the user's request to query the inventory and the user's completion of the purchase or order. During this period, other users may request to query the inventory. For example, the system queries the inventory after receiving a request from user 1. After user 1 requests to query the inventory and before user 1 completes the purchase, user 2 requests to query the inventory. At this time, since user 1 has not completed the purchase, the inventory has not changed, and the inventory queried by user 2 meets the transaction needs of user 2. Before user 2 places an order, user 1 completes the order. At this time, the inventory will change, and the changed inventory may not meet the purchase needs of user 2. But user 2 cannot perceive the inventory changes. Therefore, user 2 can also continue to purchase. This will lead to a situation where the inventory is actually insufficient but user 2 is still allowed to purchase, that is, an oversold situation.
[0044] In conventional inventory management methods, a lock is usually added when a user requests to query inventory, and the lock is released after the actual inventory is deducted. After the lock is released, other users are allowed to query inventory in response to the other user's request. Although this method ensures concurrency safety and avoids overselling, it will greatly affect inventory throughput. At the same time, this method will prolong the time to respond to user requests, causing users to wait too long, affecting user experience and reducing sales.
[0045] The inventory management method provided in this specification, the inventory management system adds virtual inventory, queries the virtual inventory that is not greater than the actual inventory, and sends inventory information to the target user to indicate whether the virtual inventory meets the transaction quantity, so as to solve the problem of overselling, without locking the actual inventory, and does not affect the throughput of the actual inventory. Moreover, the system queries the virtual inventory of the virtual inventory, not the actual inventory of the real inventory, that is, when deducting the transaction quantity, it is deducted in the virtual inventory, not in the actual inventory, so it will not affect the real inventory. If the actual inventory is deducted when querying, then when the user does not pay, the transaction quantity deducted in advance needs to be returned to the actual inventory, so that the real inventory is deducted first and then returned, which further affects the real inventory. For example, if the return fails, the actual inventory of the real inventory is inaccurate. However, the inventory management method provided in this specification is deducted in the virtual inventory when querying, so it avoids disturbing the real inventory and avoids a series of problems caused by disturbing the real inventory.
[0046] The inventory management method provided in this specification can be applied to the scenario of managing coupon inventory. The target user can submit an order when shopping online, and the client can display the electronic cashier page after submitting the order. The electronic cashier can include multiple payment methods, such as payment methods using different bank cards, payment methods using different payment platforms, etc. In order to improve user usage, different payment methods can attract target users through marketing strategies. For example, when the target user uses bank card A for electronic payment, a 1 yuan instant discount coupon is issued to the target user. In order to effectively manage the inventory of coupons and avoid overselling of coupons, the inventory management system of the coupons can use the inventory management method provided in this specification to manage the inventory of coupons. Among them, the coupons can be different types of coupons such as instant discount coupons, full discount coupons, experience coupons, gift coupons, discount coupons, etc.
[0047] The inventory management method provided in this specification can be applied in e-commerce scenarios. When the target user is shopping online, he or she can choose the purchase quantity of the product. When the product is in sufficient stock, the client can allow the target user to continue with subsequent operations, such as displaying a triggerable "Pay Now" option for the target user to trigger. When the item is in insufficient stock, the client may not allow the target user to perform subsequent operations, such as displaying the "Pay Now" option but the option is in an untriggerable state, or displaying a prompt message of "Insufficient Stock". In order to effectively manage the inventory of the product and avoid overselling of the product, the inventory management system of the product can use the inventory management method provided in this specification to manage the inventory of the product.
[0048] It should be noted that the above scenarios are only a few of the multiple usage scenarios provided in this specification, and the inventory management method provided in this specification can be applied not only to the above scenarios, but also to other scenarios. Those skilled in the art should understand that the application of the inventory management described in this specification to other usage scenarios is also within the scope of protection of this specification.
[0049] Figure 1 FIG. 1 is a schematic diagram of an inventory management scenario 001 provided according to some embodiments of this specification. Figure 1 As shown, the scenario 001 may include a target user 100, a client 200, a server 300, a network 400, and an inventory management system 500. The inventory management system 500 may be a terminal or a server or a combination of a terminal and a server.
[0050] The target user 100 can operate the client 200. In some embodiments, the client 210 can display various pages for the target user 100 to view and trigger, thereby realizing human-computer interaction. The trigger can be a click trigger, a voice trigger, an image trigger, etc. It should be noted that the user data obtained in this specification is authorized by the user and does not involve user privacy.
[0051] The target user 100 may trigger a target request for a target item on the client 200. The inventory management system 500 may receive the target request from the client 200. Further, the inventory management system 500 may query the virtual inventory quantity of the target item in the virtual inventory, and send the inventory information to the client 200, and the target user 100 may view the inventory information displayed on the client 200.
[0052] The inventory management method can be executed on the inventory management system 500. The inventory management system 500 can store data or instructions for executing the inventory management method described in this specification, and can execute or be used to execute the data or instructions. In some embodiments, the client may include a hardware device with data information processing functions and the necessary programs required to drive the hardware device to work. In some embodiments, the inventory management system 500 and the client 200 can be the same device, that is, the client 200 can execute the inventory management method. In some embodiments, the inventory management system 500 and the client 200 can also be different devices, that is, the client 200 can generate a target request and send it to the inventory management system 500, and the inventory management system 500 executes the inventory management method.
[0053] In some embodiments, the client 200 may include a mobile device, a tablet computer, a laptop computer, a built-in device of a motor vehicle or the like, a vending machine, a vending cabinet, or any combination thereof. In some embodiments, the mobile device may include a smart home device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home device may include a smart TV, a desktop computer, etc., or any combination thereof. In some embodiments, the smart mobile device may include a smart phone, a personal digital assistant, a gaming device, a navigation device, etc., or any combination thereof. In some embodiments, the virtual reality device or the augmented reality device may include a virtual reality helmet, virtual reality glasses, a virtual reality patch, an augmented reality helmet, augmented reality glasses, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device or the augmented reality device may include Google Glass, a head-mounted display, VR, etc. In some embodiments, the built-in device in the motor vehicle may include an onboard computer, an onboard TV, etc.
[0054] In some embodiments, the client 200 may be installed with one or more application programs (APPs). The APP can provide the target user 100 with the ability and interface to interact with the outside world through the network 400. The APP includes but is not limited to: web browser APP programs, search APP programs, chat APP programs, shopping APP programs, video APP programs, financial management APP programs, instant messaging tools, email clients, social platform software, etc. In some embodiments, a target APP may be installed on the client 200. The target user 100 can trigger a target request for a target item on the target APP. In some embodiments, the target APP can send the target request to the inventory management system 500, and the inventory management system 500 executes the inventory management method.
[0055] Server 300 may be a server that provides various services. In some embodiments, inventory management system 500 and server 300 may be the same device, that is, server 300 may execute the inventory management method. In some embodiments, inventory management system 500 and server 300 may also be different devices, that is, server 300 may be a server that only provides background services for client 200. For example, server 300 may be a background server that provides support for the page displayed by the target APP on client 200. Figure 1 As shown, the client 200 can be communicatively connected with the server 300. In some embodiments, the server 300 can be communicatively connected with multiple clients 200. In some embodiments, the client 200 can interact with the server 300 through the network 400 to receive or send messages, etc.
[0056] The network 400 is used to provide a medium for communication connection between the client 200 and the server 300. The network 400 can facilitate the exchange of information or data. Figure 1As shown, the client 200 and the server 300 can be connected to the network 400 and transmit information or data to each other through the network 400. In some embodiments, the network 400 can be any type of wired or wireless network, or a combination thereof. For example, the network 400 can include a cable network, a wired network, an optical fiber network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, a near field communication (NFC) network or a similar network. In some embodiments, the network 400 can include one or more network access points. For example, the network 400 can include a wired or wireless network access point, such as a base station or an Internet exchange point, through which one or more components of the client 200 and the server 300 can be connected to the network 400 to exchange data or information.
[0057] It should be understood that Figure 1 The number of the client 200, server 300 and network 400 in the embodiment is only for illustration. According to the implementation requirements, there may be any number of the client 200, server 300 and network 400.
[0058] Figure 2 The hardware structure diagram of a computing device 600 provided according to some embodiments of the present specification is shown. The computing device 600 can execute the inventory management method described in the present specification. The inventory management method is introduced in other parts of the present specification. The computing device 600 can be a device of the inventory management system 500, such as a terminal and / or a server. The computing device 600 can be a client 200 or a server 300.
[0059] like Figure 2 As shown, the computing device 600 may include at least one storage medium 630 and at least one processor 620. In some embodiments, the computing device 600 may further include a communication port 650 and an internal communication bus 610. Meanwhile, the computing device 600 may further include an I / O component 660.
[0060] The internal communication bus 610 may connect various system components, including the storage medium 630 , the processor 620 , and the communication port 650 .
[0061] I / O components 660 support input / output between computing device 600 and other components.
[0062] The communication port 650 is used for data communication between the computing device 600 and the outside world. For example, the communication port 650 can be used for data communication between the computing device 600 and the network 400. The communication port 650 can be a wired communication port or a wireless communication port.
[0063] The storage medium 630 may include a data storage device. The data storage device may be a non-temporary storage medium or a temporary storage medium. For example, the data storage device may include one or more of a disk 632, a read-only storage medium (ROM) 634, or a random access storage medium (RAM) 636. The storage medium 630 may store at least one set of instruction sets for implementing inventory management. The instruction is a computer program code, and the computer program code may include a program, a routine, an object, a component, a data structure, a process, a module, etc. for executing the inventory management method provided in this specification. The storage medium 630 may also store an inventory management model for implementing the inventory management method. At this time, the model may be one or more instruction sets for executing corresponding instructions stored in the storage medium 630, and executed by the processor 620 in the computing device 600. Of course, the model may also be a part of a circuit, a hardware device, or a module in the computing device 600. At this time, the processor 620 may store at least one set of instruction sets for controlling one or more instruction sets of the model.
[0064] At least one processor 620 can be connected to at least one storage medium 630 and a communication port 650 through an internal communication bus 610. At least one processor 620 is used to execute the above-mentioned at least one instruction set. When the computing device 600 is running, at least one processor 620 can read the at least one instruction set and execute the inventory management method provided in this specification according to the instructions of the at least one instruction set. The processor 620 can execute all the steps included in the inventory management method. The processor 620 can be in the form of one or more processors. In some embodiments, the processor 620 can include one or more hardware processors, such as a microcontroller, a microprocessor, a reduced instruction set computer (RISC), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a central processing unit (CPU), a graphics processing unit (GPU), a physical processing unit (PPU), a microcontroller unit, a digital signal processor (DSP), a field programmable gate array (FPGA), an advanced RISC machine (ARM), a programmable logic device (PLD), any circuit or processor capable of performing one or more functions, etc., or any combination thereof. For illustration purposes only, only one processor 620 is described in the computing device 600 in this specification. However, it should be noted that the computing device 600 in this specification may also include multiple processors, and therefore, the operations and / or method steps disclosed in this specification may be performed by one processor as described in this specification, or may be performed jointly by multiple processors. For example, if the processor 620 of the computing device 600 in this specification performs step A and step B, it should be understood that step A and step B may also be performed jointly or separately by two different processors 620 (for example, the first processor performs step A, the second processor performs step B, or the first and second processors perform steps A and B together).
[0065] Figure 3 1 shows a flow chart of an inventory management method P100 provided according to some embodiments of this specification. As mentioned above, the inventory management system 500 (hereinafter referred to as the system 500) can execute the inventory management method P100 described in this specification. Figure 3 As shown, the method P100 may include:
[0066] S120: Receive a target request from a target user for a target item, where the target request carries a transaction amount.
[0067] The target item may be any item whose inventory needs to be managed, such as coupons, commodities, etc. Commodities may be physical commodities (such as clothes, shoes, furniture, etc.) or virtual commodities (such as financial products, recharge products, etc.). The client 200 may generate a target request based on the operation of the target user 100. The target request may be a transaction request, such as an order request, a purchase request, etc. The target request may carry a transaction quantity. The transaction quantity may be the purchase quantity of the target item in the transaction request. The target request may also carry an inventory query request. The inventory query request may be used to request the system 500 to query and manage the inventory of the target item. For example, after the target user 100 selects the commodity to be purchased and its quantity, the client 200 may generate a target request for the commodity by the target user 100 to request the system 500 to query and manage the inventory of the commodity. For another example, when the target user 100 submits an order, the client 200 can detect whether there is any coupon issuance activity in the payment method in the electronic checkout counter. If so, the client 200 can generate a target request for the coupon from the target user 100 to request the system 500 to manage the inventory of the coupon.
[0068] The transaction quantity may be the transaction quantity of the target user 100 for the target item. The transaction quantity may be selected by the target user 100 himself. For example, when the target user 100 purchases the commodity, the purchase quantity selected by the target user 100 is the transaction quantity. The transaction quantity may also be allocated to the target user 100 by the system 500. For example, the system 500 may be pre-set to the number of coupons allocated to each user request, such as allocating 1 coupon to each user request, and the amount of 1 coupon is, for example, 1 yuan. The client 200 may store the number of coupons allocated by the system 500 to each user request. Then, the number of coupons carried in the target request generated by the client 200 is the transaction quantity.
[0069] The client 200 may send a target request to the system 500 , so that the system 500 may receive the target request.
[0070] S140: querying the virtual inventory of the target item in the virtual inventory, wherein the virtual inventory is used to deduct the transaction quantity, and the amount of the virtual inventory is the actual inventory.
[0071] The virtual inventory may be proposed in this specification to protect the real inventory and avoid overselling / overdraft of the real inventory. The real inventory may be the target item actually stored, and the actual inventory quantity refers to the inventory quantity of the target item actually stored. The actual storage quantity in the real inventory can be changed based on the order information. When the payment of the commodity order is completed, the actual inventory quantity in the real inventory will be deducted from the corresponding actual transaction quantity after the payment of the commodity order is completed. That is, the actual inventory quantity will be changed based on the actual transaction quantity in the commodity order that has completed the payment. In other words, the actual inventory quantity in the real inventory is changed based on the completion of the commodity order payment and is not affected by the target request. When there is only a target request but no actual payment is made, the actual inventory quantity in the real inventory will not change.
[0072] The virtual inventory is an inventory management system established based on the real inventory. The virtual inventory and the real inventory are two independent inventory systems. The virtual inventory does not represent the target items that are actually stored, and the virtual inventory volume refers to the inventory quantity of the target items in the virtual inventory. The virtual inventory is used to query the inventory volume when a target request from the target user 100 is received. The virtual inventory volume is used to deduct the transaction quantity. In other words, the virtual inventory volume in the virtual inventory is used to query whether the virtual inventory volume meets the transaction quantity when the target user 100 issues a target request, and to deduct the transaction quantity if the transaction quantity is met. The virtual inventory is only used for inventory volume query and deduction when a target request is issued, and is not affected by the payment of the commodity order. When the system 500 receives a target request, regardless of whether the target request ultimately completes the actual payment, the virtual inventory volume in the virtual inventory will be changed based on the transaction quantity in the target request.
[0073] The virtual inventory can be connected to the real inventory for communication to obtain the actual inventory in the real inventory. The amount (or maximum amount) of the virtual inventory is the actual inventory, that is, the virtual inventory is less than or equal to the actual inventory. Take the maximum amount of the virtual inventory as the actual inventory as an example. Before receiving the target request, the virtual inventory is consistent with the actual inventory. When the system 500 receives the target request, a deduction is made in the virtual inventory, and the order corresponding to the target request is also paid, a deduction is also made in the actual inventory, and the change of the virtual inventory is consistent with the actual inventory. When the system 500 receives the target request, a deduction is made in the virtual inventory, but the order corresponding to the target request is not paid, and no deduction is made in the actual inventory at this time, then the virtual inventory is less than the actual inventory. Figure 4 FIG. 1 shows a schematic diagram of actual inventory and virtual inventory provided according to some embodiments of this specification. Figure 4As shown, in the inventory with inventory ID 001, the actual inventory quantity of its real inventory is 100, and the virtual inventory quantity of the virtual inventory is 80, which is less than the actual inventory quantity.
[0074] The method P100 may further include: in a case where it is determined that the virtual inventory is greater than the transaction quantity, the transaction quantity may be deducted from the virtual inventory.
[0075] The virtual inventory is greater than the transaction quantity, which means that the virtual inventory can meet the transaction quantity. As mentioned above, since the virtual inventory is less than or equal to the actual inventory. Therefore, when the virtual inventory is greater than the transaction quantity, the actual inventory is also greater than the transaction quantity. At this time, it means that the actual inventory can meet the transaction quantity in the target request, and the target user 100 can trade for the target item. In order to enable the user after the target request to perceive the change in inventory brought about by the target request of the target user 100, the system 500 can deduct the transaction quantity from the virtual inventory. The system 500 binds the query and deduction of the virtual inventory, and deducts it immediately once the query result is satisfied. The system 500 receives the target request, queries the virtual inventory, and deducts the virtual inventory in a very short time, which is almost synchronous or real-time. Among them, this very short time is, for example, 0.01s, 0.05s, 0.1s, 1s, or even shorter, such as microseconds, etc.
[0076] In the embodiment of the present specification, the system 500 queries the virtual inventory, and deducts the transaction quantity from the virtual inventory when the virtual inventory meets the transaction quantity. Then, when the system 500 receives the next user request after the target request and before the target user 100 pays, it can perceive the change of the virtual inventory caused by the target request of the target user 100, that is, it can query the virtual inventory for the next user request based on the virtual inventory changed by the target request. Therefore, when the virtual inventory changed by the target request is not enough to support the transaction quantity of the next user request, the system 500 will not sell the target item for the next user request, thereby avoiding the overselling of the real inventory. At the same time, since the system 500 has deducted the transaction quantity in the target request from the virtual inventory in advance when the target user 100 initiates the target request, it is equivalent to that the system 500 has locked the target item of the transaction quantity for the target user 100 from the virtual inventory in advance when the target user 100 initiates the target request. Since the actual inventory is equal to or greater than the virtual inventory, it is equivalent to that the system 500 has locked the target item of the transaction quantity for the target user 100 from the actual inventory in advance. That is, the system 500 achieves the purpose of locking the target item transaction quantity for the target user 100 in the actual inventory by withholding the transaction quantity from the virtual inventory. Therefore, even if the time between the target user 100 initiating the target request and completing the payment is long, if other users initiate requests and complete payments during this period, it will not affect the final payment of the target user 100, thereby avoiding the situation of overselling of the real inventory.
[0077] In summary, the system 500 adds virtual inventory and uses the virtual inventory to offset the transaction quantity when the target request is initiated, thereby achieving the purpose of locking the actual inventory for the target user 100 by offsetting the transaction quantity from the virtual inventory, thereby avoiding overselling. In this process, it is only necessary to establish a connection between the virtual inventory and the actual inventory so that the maximum amount of the virtual inventory is the actual inventory, without disturbing the actual inventory or locking the actual inventory, thereby ensuring the throughput and accuracy of the actual inventory.
[0078] The method P100 may further include: in a case where it is determined that the virtual inventory is less than the transaction quantity, updating the virtual inventory with the actual inventory.
[0079] If the virtual inventory is less than the transaction quantity, it means that the virtual inventory is insufficient. At this time, the system 500 may not allow the target user 100 to trade the target item, such as not showing the coupon to the target user 100, or controlling the transaction options of the target item (such as the option of immediate payment) to be in a state that the target user 100 cannot trigger, or prompting the target user 100 that the inventory is insufficient.
[0080] The virtual inventory may not be equal to the actual inventory. For example, the system 500 deducted the transaction amount from the virtual inventory, but because the target user 100 did not pay in the end, the system 500 did not deduct the transaction amount from the actual inventory, resulting in the virtual inventory being less than the actual inventory. Then, when the virtual inventory is not enough to support the transaction amount, but the actual inventory is enough to support the transaction amount, if the user is not allowed to trade, it will be a loss for both the user and the merchant. Therefore, this specification proposes a refresh logic, that is, updating the virtual inventory with the actual inventory to ensure the accuracy of the virtual inventory. In this way, when the virtual inventory becomes sufficient after the refresh, the user can be allowed to trade, for example, the target user 100 can be allowed to trade, and the next user request after the target request can also be allowed to trade.
[0081] Figure 5 FIG. 2 shows a schematic diagram of a back-brushing method provided according to some embodiments of the present specification. Figure 5 As shown, when the system 500 queries the virtual inventory for the target request, it can be converted into determining whether to deduct the transaction quantity of the target item from the virtual inventory. The deduction in the virtual inventory can be called pre-withholding. When the virtual inventory is less than the transaction quantity, the system 500 can determine that the virtual inventory is insufficient. At this time, no deduction is made, but the virtual inventory is refreshed with the actual inventory. The actual inventory can be the actual inventory after the system 500 deducts the transaction quantity from the actual inventory after the inventory information that the virtual inventory meets the transaction quantity is exposed last time (that is, the client 200 displays the inventory information).
[0082] In some embodiments, flushing the virtual inventory with the actual inventory may be an instant flush, that is, flushing is performed immediately when it is determined that the virtual inventory does not meet the transaction quantity.
[0083] Figure 6 FIG. 2 shows a schematic diagram of an oversold circuit according to some embodiments of the present specification. Figure 6As shown, the horizontal axis represents time, and the vertical axis represents time in the user request (or request) dimension. The initial states of the virtual inventory and the actual inventory are both 9. For the sake of distinction, the deduction of the transaction quantity in the virtual inventory is called pre-deduction, and the deduction of the transaction quantity in the actual inventory is called actual deduction. When the system 500 receives request 1, 5 is pre-deducted from the virtual inventory 9, and the remaining virtual inventory is 4, and the actual inventory is still 9. After the pre-deduction of request 1, the system 500 receives request 2, and when it pre-deducts 5 based on the virtual inventory 4, it is found that the virtual inventory 4 is less than the transaction quantity 5, and the back flush is triggered, that is, the virtual inventory 4 is updated with the actual inventory 9. The virtual inventory after the back flush is 9, and the actual inventory is also 9. After the back flush of request 2, the system 500 receives request 3. At this time, the virtual inventory and the actual inventory are both 9. The system 500 pre-deducts 5 on this basis, and the remaining virtual inventory is 4, and the actual inventory is 9. After the pre-deduction of request 3, the system 500 needs to make a real deduction of 5 for request 1 (for example, the payment result has been received, so the real deduction is required at this time). At this time, the real deduction is made based on the actual inventory of 9 after the pre-deduction of request 3. After the real deduction of 5, the remaining actual inventory is 4, and the virtual inventory is also 4. After the real deduction of request 1, the system 500 makes a real deduction of 5 for request 3. At this time, the real deduction is made based on the actual inventory of 4 after the real deduction of request 1. After the real deduction of 5, the remaining actual inventory is -1, and the remaining virtual inventory is still 4. It can be seen that Figure 6 In this case, since the actual deduction of request 1 has not been implemented (i.e., it has not been determined whether it is actually deducted) before the back-flush is performed, the actual inventory and virtual inventory are inaccurate, which affects the pre-deduction and actual deduction after the back-flush, and ultimately leads to the actual inventory being -1, resulting in an overdraft exposure, i.e., an oversold situation. Therefore, in order to further reduce the oversold situation, this manual proposes a safe back-flush method.
[0084] In some embodiments, the flush may include a security flush. The system 500 may obtain an update preparation time, wherein the update preparation time includes the time when the virtual inventory does not meet the transaction quantity for the first time after the last update. The system 500 may update the virtual inventory with the actual inventory when it is determined that the time between the current time and the update preparation time reaches a preset time.
[0085] Wherein, the update preparation time may have a default value, such as 0. When the update preparation time is the default value, it may indicate that the current moment is not in the process of safe back flushing. When the update preparation time is not the default value, it may indicate that the current moment is in the process of safe back flushing. When the system 500 determines that the virtual inventory does not meet the transaction quantity (i.e., the virtual inventory is insufficient), if the obtained update preparation time is the default value, it is determined that this non-satisfaction is the first time that the virtual inventory does not meet the transaction quantity after the last update. At this time, the system 500 can record the current moment as the update preparation time. In this way, for the virtual inventory that does not meet the transaction quantity after the first virtual inventory does not meet the transaction quantity, the system 500 can calculate the time between the recorded update preparation time, and when the time reaches the preset time, the virtual inventory is updated with the actual inventory. That is, the update preparation time recorded by the system 500 when the transaction quantity is not met for the first time is to provide a judgment benchmark for the subsequent non-satisfaction of the transaction quantity, and to judge whether to start preparing for the update.
[0086] When the system 500 determines that the virtual inventory does not meet the transaction quantity, if the obtained update preparation time is not the default value, it is determined that the non-satisfaction this time is not the first time that the virtual inventory does not meet the transaction quantity after the last update. At this time, the system 500 can obtain the time when the virtual inventory does not meet the transaction quantity for the first time after the last update, that is, the update preparation time recorded when the virtual inventory does not meet the transaction quantity for the first time, and calculate the time between the current time and the update preparation time. If the time reaches the preset time, the virtual inventory is updated with the actual inventory. If the time does not reach the preset time, the virtual inventory is not updated with the actual inventory. Among them, the preset time can be flexibly set according to the specific scenario, for example, it can be set to the average time taken by the user from triggering the request to completing the payment. For example, the user generally completes the payment from submitting the order within 1 minute, so the preset time can be set to 1 minute. The preset time can also be 2 minutes, 5 minutes, 10 minutes, 15 minutes, 30 minutes, etc., and the embodiments of this specification do not limit the preset time.
[0087] In the embodiments of this specification, the safe flushing means that the system 500 reserves a safe time for flushing, and reserves a preset time between the first determination of insufficient virtual inventory and flushing to process in-transit transactions (transactions that have been pre-deducted but not actually deducted), that is, starting from the first determination of insufficient virtual inventory, waiting for the preset time to process in-transit transactions and waiting for the results of whether the in-transit transactions are actually deducted. In this way, when the preset trial time is reached, flushing is performed again. Since all in-transit transactions have been completed and the results of whether they are actually deducted are available, the flushing is performed on the basis of the virtual inventory and actual inventory determined based on the results of whether the in-transit transactions are actually deducted, thereby ensuring the accuracy of the inventory after flushing and avoiding the overselling problem caused by flushing. As mentioned above, Figure 6 The oversold is because the re-flush was performed before the actual deduction of request 1 was implemented (that is, it has not been determined whether it is actually deducted). Then, through the safe re-flush of the embodiment of this specification, the system 500 can wait for a preset period of time (such as 1 minute) when the virtual inventory does not meet the transaction quantity for the first time, and then re-flush to wait for the actual deduction of request 1. In this way, when the actual deduction of request 1 occurs before the re-flush of request 2, the re-flush is performed on the basis of the virtual inventory 4 and the actual inventory 4 determined by the actual deduction of request 1. Then, the result of the re-flush is that the virtual inventory is 4 and the actual inventory is 4. Furthermore, the pre-deduction 5 of request 3 is performed on the basis of the virtual inventory 4 and the actual inventory 4. Since the virtual inventory 4 is less than the pre-deduction 5 of request 3 at this time, no pre-deduction will be performed for request 3, and naturally no actual deduction will be made for request 3, so there will be no occurrence of Figure 6 The actual inventory is -1 in the oversold situation. It can be seen that the safety backwash solves the problem. Figure 6 Oversold problem.
[0088] In some embodiments, the system 500 may update the update preparation time to a default value after updating the virtual inventory with the actual inventory. In the embodiments of this specification, after the security backflush is completed, the system 500 may update the update preparation time to a default value to ensure the normal progress of the next security backflush.
[0089] Figure 7 FIG. 2 shows a schematic diagram of a safe re-brush provided according to some embodiments of this specification. Figure 7 As shown, when the virtual inventory is insufficient (or the virtual inventory does not meet the transaction quantity), the system 500 can determine whether the update preparation time is the default value of 0. If it is 0, it indicates that the current moment is not in the process of safe back-flush. The shortage this time is the first time that the virtual inventory does not meet the transaction quantity after the last update. At this time, the system 500 can record the current moment as the update preparation time. If the update preparation time is not 0, it indicates that the current moment is in the process of safe back-flush. The dissatisfaction this time is not the first time that the virtual inventory does not meet the transaction quantity after the last update. At this time, the system 500 can determine whether the time between the current moment and the update preparation time is greater than 1 minute. If it is greater than 1 minute, back-flush, that is, the virtual inventory is updated with the actual inventory, and the update preparation time is updated to the default value of 0.
[0090] As mentioned above, the update preparation time being the default value indicates that the current deficiency is that the virtual inventory does not meet the transaction quantity for the first time after the last update. At this time, after the system 500 records the update preparation time, if the preset time has arrived, but the information that the next virtual inventory does not meet the transaction quantity has not been received, then, in some embodiments, the system 500 can perform a refresh to ensure the accuracy of the virtual inventory as soon as possible.
[0091] In some embodiments, the system 500 can perform a safe re-flush when it is determined that the actual inventory does not meet the preset conditions. That is, when it is determined that the actual inventory does not meet the preset conditions, the update preparation time is obtained, and the update preparation time includes the time when the virtual inventory does not meet the transaction quantity for the first time after the last update. When it is determined that the time between the current moment and the update preparation time reaches the preset time, the virtual inventory is updated with the actual inventory. In the embodiments of this specification, conditions are set for safe re-flush, that is, safe re-flush is performed when it is determined that the actual inventory does not meet the preset conditions. Not all re-flushes use safe re-flush, which improves the flexibility of re-flush.
[0092] In some embodiments, the system 500 can perform an instant re-flush when it is determined that the actual inventory quantity meets the preset conditions. The instant re-flush can be an immediate re-flush when it is determined that the virtual inventory quantity is less than the transaction quantity, without waiting for a preset time. That is, when it is determined that the actual inventory quantity meets the preset conditions, the virtual inventory quantity is updated with the actual inventory quantity. In the embodiments of this specification, conditions are set for instant re-flush, that is, instant re-flush is performed when it is determined that the actual inventory quantity meets the preset conditions. Not all re-flush adopts instant re-flush, which improves the flexibility of re-flush.
[0093] In some embodiments, the preset conditions may include at least one of the following: the ratio between the actual inventory and the transaction quantity is greater than a first threshold, the ratio between the actual inventory and the maximum amount of the actual inventory is greater than a second threshold, or the actual inventory is greater than a third threshold.
[0094] When the ratio between the actual inventory and the number of transactions is large, it indicates that the actual inventory is relatively sufficient, and the actual deduction has little impact on the actual inventory. When the ratio between the actual inventory and the maximum amount of the actual inventory is large, it indicates that there is still a lot of actual inventory left and it is also relatively sufficient. When the actual inventory itself is large, it indicates that it is relatively sufficient. Among them, the preset conditions may also include others, for example, the ratio between the actual inventory and the number of transactions is greater than the first threshold, and the ratio between the actual inventory and the virtual inventory is greater than the fourth threshold. When the actual inventory is much larger than the number of transactions, even if the actual deduction is completed, it will not affect the adequacy of the actual inventory. At this time, if the actual inventory is much larger than the virtual inventory, the virtual inventory after the back flush will become very sufficient.
[0095] Since safe re-swiping requires waiting for a preset time, there may be a problem of poor user experience. For example, when the virtual inventory does not meet the transaction quantity, the actual inventory is obviously sufficient, but for the user requests received during the preset time period, the system 500 will determine that the virtual inventory does not meet the transaction quantity, so that the user cannot trade the target item, affecting the user experience. Therefore, if it can be determined that the virtual inventory will become sufficient after re-swiping, that is, it meets the transaction quantity, then there is no need to wait for the preset time, and the re-swiping can be performed immediately, so that most users can trade the target items normally, thereby improving the user experience. If it can be determined that the virtual inventory is still insufficient after re-swiping, that is, it does not meet the transaction quantity, then in order to avoid the overselling problem and ensure the financial security of the manufacturer of the target item, the system 500 can re-swipe safely.
[0096] The above preset conditions can indicate that the actual inventory is relatively sufficient, so the virtual inventory will also become sufficient after the sufficient actual inventory is flushed. Therefore, when the above preset conditions are met, the system 500 can choose to flush immediately, and when the above preset conditions are not met, the system 500 can choose to flush safely. In the embodiment of this specification, by adding a preset condition including a protection threshold, a dual choice of instant flushing and safe flushing is provided, so that the system 500 can achieve a better balance between user experience and fund security.
[0097] S160: Sending inventory information to the target user, where the inventory information indicates whether the virtual inventory quantity meets the transaction quantity.
[0098] In some embodiments, when it is determined that the virtual inventory is greater than the transaction quantity, the system 500 may send a message indicating that there is stock to the target user 100. When it is determined that the virtual inventory is less than the transaction quantity, the system 500 may send a message indicating that there is insufficient stock to the target user 100.
[0099] For example, when the system 500 manages the inventory of goods, if it is determined that the virtual inventory is greater than the transaction quantity, the system 500 sends information that there is inventory to the client 200 of the target user 100. The specific content of the information that there is inventory is, for example, controlling the "pay now" option to be in a triggerable state. When the client 200 receives the information that there is inventory, it can control the "pay now" option to be in a triggerable state so that the target user 100 can trigger it and further purchase goods. If it is determined that the virtual inventory is less than the transaction quantity, the system 500 sends information that there is insufficient inventory to the client 200 of the target user 100. The specific content of the information that there is insufficient inventory is, for example, controlling the "pay now" option to be in a non-triggerable state. After receiving the information that there is insufficient inventory, the client 200 controls the "pay now" option to be in a non-triggerable state. The target user 100 cannot trigger the option and cannot further purchase goods.
[0100] For another example, when the system 500 manages the inventory of coupons, if it is determined that the virtual inventory is greater than the transaction quantity, the system 500 sends information that there is inventory to the client 200 of the target user 100, and the specific content of the information that there is inventory is, for example, "display coupons". After receiving the information that there is inventory, the client 200 can display the coupons on the page of the electronic cashier, for example, the coupons can be displayed near the payment method for issuing the coupons, to indicate that the coupons can only be used when the target user 100 pays using the payment method. If it is determined that the virtual inventory is less than the transaction quantity, the system 500 sends information that there is insufficient inventory to the client 200 of the target user 100, and the specific content of the information that there is insufficient inventory is, for example, "do not display coupons". After receiving the information that there is insufficient inventory, the client 200 can not display the coupons on the page of the electronic cashier, and the target user 100 cannot use the coupons.
[0101] The target user 100 may complete the payment of the target item of the transaction quantity, or may not complete the payment of the target item of the transaction quantity. When the target user 100 completes the payment of the target item of the transaction quantity, the system 500 may receive the payment result of the target user 100, and the payment result may include the payment information of the target item of the transaction quantity, such as using 1 coupon and purchasing two commodities. Then, the system 500 may deduct the transaction quantity from the actual inventory, such as deducting 1 coupon from the actual inventory of coupons and deducting two commodities from the actual inventory of commodities.
[0102] The target user 100 fails to complete the payment of the target item of the transaction quantity, for example: the payment cannot be completed because the "pay now" option cannot be triggered, the "pay now" option can be triggered but the payment is canceled, the client 200 displays the coupon but the target user 100 cancels the payment, the client 200 does not display the coupon and therefore cannot use the coupon for payment, etc. At this time, the system 500 does not deduct the transaction quantity from the actual inventory.
[0103] In summary, the inventory management method P100 and system 500 provided in this specification can receive a target request from a target user 100 for a target item, which carries a transaction quantity, and then query the virtual inventory of the target item in the virtual inventory, and return inventory information representing whether the virtual inventory meets the transaction quantity to the target user 100. The virtual inventory can be used to offset the transaction quantity in the target request. Since the amount of the virtual inventory is the actual inventory, that is, the virtual inventory is less than or equal to the actual inventory, and the inventory information sent to the target user 100 is a representation of whether the virtual inventory meets the transaction quantity, therefore, when the virtual inventory meets the transaction quantity, the actual inventory will also meet the transaction quantity, so that the target user 100 completes the item transaction based on the inventory information, and there will be no problem of overselling items. Moreover, the system 500 queries the virtual inventory, not the real inventory whose inventory is the actual inventory, which avoids disturbing the real inventory and reduces the complexity of inventory management. Moreover, the inventory management method P100 and system 500 provided in this specification have greatly improved the concurrency capability as a whole, ensure that overselling will not occur, and are simple in design.
[0104] On the other hand, the present specification provides a non-transitory storage medium storing at least one set of executable instructions for inventory management. When the executable instructions are executed by the processor, the executable instructions instruct the processor to implement the steps of the inventory management method P100 described in the present specification. In some possible implementations, various aspects of the present specification can also be implemented in the form of a program product, which includes a program code. When the program product is run on the inventory management system 500, the program code is used to enable the inventory management system to perform the steps of the inventory management method P100 described in the present specification. The program product for implementing the above method can use a portable compact disk read-only memory (CD-ROM) to include program code and can be run on the inventory management system 500. However, the program product of the present specification is not limited to this. In the present specification, the readable storage medium can be any tangible medium containing or storing a program, which can be used by the instruction execution system or used in combination with it. The program product can use any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can 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 readable storage media include: an electrical connection with one or more conductors, a portable 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. The computer-readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. Program code for performing the operations of the present specification may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the inventory management system, partially on the inventory management system, as a stand-alone software package, partially on the inventory management system and partially on a remote computing device, or entirely on a remote computing device.
[0105] The above is a description of a specific embodiment of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require a specific order or a continuous order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0106] In summary, after reading this detailed disclosure, those skilled in the art will appreciate that the foregoing detailed disclosure may be presented only by way of example and may not be limiting. Although not explicitly stated herein, those skilled in the art will appreciate that this specification requires various reasonable changes, improvements and modifications to the embodiments. These changes, improvements and modifications are intended to be proposed by this specification and are within the spirit and scope of the exemplary embodiments of this specification.
[0107] In addition, certain terms in this specification have been used to describe embodiments of this specification. For example, "one embodiment", "an embodiment" and / or "some embodiments" mean that a particular feature, structure or characteristic described in conjunction with the embodiment may be included in at least one embodiment of this specification. Therefore, it can be emphasized and should be understood that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various parts of this specification do not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics may be appropriately combined in one or more embodiments of this specification.
[0108] It should be understood that in the foregoing description of the embodiments of this specification, in order to help understand a feature and for the purpose of simplifying this specification, this specification combines various features in a single embodiment, figure or its description. However, this does not mean that the combination of these features is necessary. When reading this specification, it is entirely possible for a person skilled in the art to mark out some of the devices as separate embodiments. In other words, the embodiments in this specification can also be understood as the integration of multiple secondary embodiments. This is also true when the content of each secondary embodiment is less than all the features of a single aforementioned disclosed embodiment.
[0109] Each patent, patent application, patent application publication, and other material, such as articles, books, specifications, publications, documents, articles, etc., cited herein, except any historical prosecution documents to which it is relevant, any identical historical prosecution documents that may be inconsistent or conflicting with this document, or any identical historical prosecution documents that may have a limiting effect on the broadest scope of the claims, may be incorporated herein by reference and used for all purposes now or hereafter associated with this document. In addition, in the event of any inconsistency or conflict between the descriptions, definitions, and / or use of terms associated with any of the incorporated materials and the terminology, descriptions, definitions, and / or use associated with this document, the terminology in this document shall control.
[0110] Finally, it should be understood that the embodiments of the application disclosed herein are explanations of the principles of the embodiments of this specification. Other modified embodiments are also within the scope of this specification. Therefore, the embodiments disclosed in this specification are only used as examples and not as limitations. Those skilled in the art can adopt alternative configurations according to the embodiments in this specification to implement the applications in this specification. Therefore, the embodiments of this specification are not limited to the embodiments accurately described in the application.
Claims
1. An inventory management method, comprising: receiving a target request from a target user for a target item, wherein the target request carries a transaction amount; Query the virtual inventory of the target item in the virtual inventory, the virtual inventory is used to deduct the transaction quantity, and the amount of the virtual inventory is the actual inventory; as well as The inventory information is sent to the target user, where the inventory information indicates whether the virtual inventory quantity satisfies the transaction quantity.
2. The method of claim 1, wherein: Also includes: In the case where it is determined that the virtual inventory amount is greater than the transaction amount, the transaction amount is deducted from the virtual inventory amount.
3. The method of claim 1, wherein: Also includes: In the case where it is determined that the virtual inventory amount is less than the transaction quantity, the virtual inventory amount is updated with the actual inventory amount.
4. The method of claim 3, wherein: The updating of the virtual inventory quantity with the actual inventory quantity comprises: Acquire an update preparation time, the update preparation time comprising a time when the virtual inventory quantity does not satisfy the transaction quantity for the first time after the last update; and It is determined that the time length between the current moment and the update preparation moment reaches a preset time length, and the virtual inventory quantity is updated with the actual inventory quantity.
5. The method of claim 4, wherein: The updating of the virtual inventory quantity with the actual inventory quantity further comprises: The update preparation time is updated to a default value.
6. The method of claim 3, wherein: The updating of the virtual inventory quantity with the actual inventory quantity comprises: If it is determined that the actual inventory quantity does not meet the preset condition, an update preparation time is obtained, where the update preparation time includes the time when the virtual inventory quantity does not meet the transaction quantity for the first time after the last update; and It is determined that the time length between the current moment and the update preparation moment reaches a preset time length, and the virtual inventory quantity is updated with the actual inventory quantity.
7. The method of claim 6, wherein: The preset condition includes at least one of the following: The ratio between the actual inventory and the transaction quantity is greater than a first threshold; The ratio between the actual inventory and the maximum amount of the actual inventory is greater than a second threshold; or The actual inventory quantity is greater than a third threshold.
8. The method of claim 3, wherein: The updating of the virtual inventory quantity with the actual inventory quantity comprises: If it is determined that the actual inventory quantity meets a preset condition, the virtual inventory quantity is updated with the actual inventory quantity.
9. The method of claim 8, wherein: The preset condition includes at least one of the following: The ratio between the actual inventory and the transaction quantity is greater than a first threshold; The ratio between the actual inventory and the maximum amount of the actual inventory is greater than a second threshold; or The actual inventory quantity is greater than a third threshold.
10. The method of claim 1, wherein: The sending the inventory information to the target user includes: Determining that the virtual inventory quantity is greater than the transaction quantity, sending information that there is inventory to the target user; or It is determined that the virtual inventory quantity is less than the transaction quantity, and insufficient inventory information is sent to the target user.
11. The method of claim 1, wherein: Also includes: receiving a payment result of the target user, wherein the payment result includes payment information for the target item of the transaction quantity; as well as The transaction quantity is deducted from the actual inventory quantity.
12. A system for inventory management, comprising: at least one storage medium storing at least one set of instructions for implementing inventory management; as well as at least one processor, in communication with the at least one storage medium, When the inventory management system is running, the at least one processor reads the at least one instruction set and implements the inventory management method according to any one of claims 1-11.
