CN111898937A - Inventory management method, device, equipment and system - Google Patents

Inventory management method, device, equipment and system Download PDF

Info

Publication number
CN111898937A
CN111898937A CN202010633332.9A CN202010633332A CN111898937A CN 111898937 A CN111898937 A CN 111898937A CN 202010633332 A CN202010633332 A CN 202010633332A CN 111898937 A CN111898937 A CN 111898937A
Authority
CN
China
Prior art keywords
inventory
pool
current
pools
stock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010633332.9A
Other languages
Chinese (zh)
Other versions
CN111898937B (en
Inventor
孙成
汪洋
周霄成
李辉健
张涵
汪磊
程坤
王培虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN202010633332.9A priority Critical patent/CN111898937B/en
Publication of CN111898937A publication Critical patent/CN111898937A/en
Application granted granted Critical
Publication of CN111898937B publication Critical patent/CN111898937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses an inventory management method, which comprises the following steps: acquiring an inventory deduction request for deducting the inventory of the commodity; determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time; deducting the amount of the consumed goods from the validation inventory pool. By adopting the method, the problems of delayed reset and system risk existing in the prior art when the stock is reset are solved.

Description

Inventory management method, device, equipment and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to an inventory management method, an inventory management device, an electronic apparatus, and a computer-readable storage medium. The application also relates to an inventory management system.
Background
In daily life, in order to attract the participation of users, merchants provide sales promotion activities of a certain number of commodities each day in a certain period of time after a period of time, and the sales promotion activities are periodic inventory scenes. For example, during the period of sales promotion, a certain amount of stock is set for the sales promotion products every day, the stock of the sales promotion products is reset the next day no matter how much stock is consumed on the first day, the consumers can purchase the sales promotion products with the reset stock amount every day, and the sales promotion products are not continuously sold on the day after selling. The method is beneficial to attracting users to participate as much as possible on the premise of ensuring the cost of the merchant.
In the prior art, a timing task is usually used to actively reset the inventory during the low-service period (generally about 0 o' clock every day) so as to achieve the purpose of resetting the inventory.
The prior art method has the following disadvantages: 1. resetting inventory relies on the trigger event of a timing task, the task execution needs time, delay exists, the resetting of all the inventories cannot be completed immediately, and the user feels unfriendly. 2. If the data volume is large, the processing time is long, peak pressure is applied to the system, and the risk of the system is increased.
In summary, the prior art has the problems of delayed reset and system risk when resetting the inventory.
Disclosure of Invention
The embodiment of the application provides a method to solve the problems of delayed reset and system risk existing in the prior art when stock is reset.
In a first aspect, an embodiment of the present application provides an inventory management method, including:
acquiring an inventory deduction request for deducting the inventory of the commodity;
determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time;
deducting the amount of the consumed goods from the validation inventory pool.
As one embodiment, the determining a current active inventory pool from at least two inventory pools for the item based on the inventory deduction request and the current time includes:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
As an embodiment, the identifying a current active inventory pool from at least two inventory pools for the item according to the base time, the current time, and the cycle increment step includes:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
In one embodiment, the inventory pools for the items include a first inventory pool and a second inventory pool;
the determining, from the at least two inventory pools for the item, a current active inventory pool according to the first result includes:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
As an implementation manner, the embodiment of the present invention further includes:
the current inventory to be validated in the at least two inventory pools for the goods is reset.
As an embodiment, the resetting the current inventory to be validated in the at least two inventory pools for the goods includes:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
As an embodiment, the determining, according to the triggering of the timing task, a current inventory pool to be validated from at least two inventory pools for the goods includes:
according to the triggering of the timing task, inquiring a target inventory pool with the current time larger than the next reset time;
and determining the current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step.
As an embodiment, the determining a current inventory pool to be validated from the target inventory pool according to the base time, the current time, and the cycle increment step includes:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
1 subtracting the first result to obtain a second result;
and determining the current inventory pool to be validated according to the second result.
As an embodiment, the determining the current inventory pool to be validated according to the second result includes:
if the second result is 0, determining that the first stock pool is the current stock pool to be validated;
and if the second result is 1, determining that the second stock pool is the current stock pool to be validated.
In a second aspect, an embodiment of the present invention provides an inventory management apparatus, including:
the inventory deduction request confirming unit is used for acquiring an inventory deduction request for deducting the inventory of the commodity;
an effective stock pool determining unit, configured to determine, according to the stock deduction request and the current time, a current effective stock pool from at least two stock pools for the commodity;
and the inventory deduction unit is used for deducting the consumed quantity of the commodities from the effective inventory pool.
As an embodiment, the validation inventory pool determining unit is specifically configured to:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
As an embodiment, the validation inventory pool determining unit is specifically configured to:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
In one embodiment, the inventory pools for the items include a first inventory pool and a second inventory pool;
the validation inventory pool determining unit is specifically configured to:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
As an embodiment, the apparatus further comprises:
and the to-be-validated inventory resetting processing unit is used for resetting the current to-be-validated inventory in the at least two inventory pools for the commodities.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
according to the triggering of the timing task, inquiring a target inventory pool with the current time larger than the next reset time;
and determining the current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
1 subtracting the first result to obtain a second result;
and determining the current inventory pool to be validated according to the second result.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
if the second result is 0, determining that the first stock pool is the current stock pool to be validated;
and if the second result is 1, determining that the second stock pool is the current stock pool to be validated.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory and a processor; wherein the content of the first and second substances,
the memory is used for storing one or more computer instructions, wherein the one or more computer instructions are read and executed by the processor to implement the method according to the embodiment of the invention in the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon one or more computer instructions which are executed by a processor to implement a method according to embodiments of the present invention in the first aspect.
In a fifth aspect, an embodiment of the present invention provides an inventory management system, including: a server side and a client side;
the server is used for acquiring an inventory deduction request for deducting the inventory of the commodity; determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time; deducting the amount of consumed goods from the validation inventory pool;
and the client is used for sending an inventory deduction request for deducting the inventory of the commodity to the server.
In one embodiment, the client is further configured to display the deducted inventory information.
As an implementation manner, the client is further configured to display the out-of-stock prompt information of the commodity.
Compared with the prior art, the method has the following advantages:
the embodiment of the application provides an inventory management method, which comprises the following steps: acquiring an inventory deduction request for deducting the inventory of the commodity; determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time; deducting the amount of the consumed goods from the validation inventory pool. According to the method and the system, at least two stock pools are adopted for the commodities in sales promotion, one stock pool is the current taking-in-effect stock pool, the taking-in-effect stock pool on the current date is determined according to the date, the other stock pool is the stock pool to be taken effect, and stock resetting can be carried out on the stock pool to be taken effect in advance. Since the inventory resetting is performed on the inventory pool to be generated in advance, when the switching time point of the inventory resetting is reached, the smooth inventory resetting can be realized.
Drawings
Fig. 1 is a flowchart of an inventory management method according to a first embodiment of the present application.
Fig. 2 is a schematic diagram of an inventory management device according to a second embodiment of the present application.
Fig. 3 is a timing chart of an operation of an inventory management system according to a fifth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, but rather construed as limited to the embodiments set forth herein.
A first embodiment of the present application provides an inventory management method, in which an execution subject is a server. The following description is made with reference to fig. 1.
As shown in fig. 1, in step S101, an inventory deduction request for deducting the inventory of a product is acquired.
In this embodiment, the commodity may be a sales promotion commodity or a commodity for other purposes. In this embodiment, a sales promotion product is described as an example, and other products are similar. When a merchant promotes an item on an e-commerce platform, a fixed number of the promoted items are typically offered for purchase by the customer at regular intervals (e.g., 1 day). When a customer client clicks the sales promotion commodities on the purchase page to purchase the sales promotion commodities, the customer client sends an inventory deduction request for deducting the inventory of the sales promotion commodities to the server, and the server acquires the inventory deduction request for deducting the inventory of the sales promotion commodities.
As shown in fig. 1, in step S102, a current active inventory pool is determined from at least two inventory pools for the item according to the inventory deduction request and the current time.
The at least two stock pools include a current validation stock pool and at least one stock pool to be validated. The advantages of using at least two stock pools are: when the inventory of the current effective inventory pool is consumed, the maintenance of the inventory pool to be effective can be carried out, the inventory pool to be effective is reset in advance when being switched into the effective inventory pool, and the smooth switching of the inventory pool can be realized.
Determining a current active inventory pool from the at least two inventory pools for the item based on the inventory deduction request and the current time, comprising:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
The identifying a current active inventory pool from the at least two inventory pools for the item according to the base time, the current time, and the cycle increment step, comprising:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
The inventory pools for the goods comprise a first inventory pool and a second inventory pool;
the determining, from the at least two inventory pools for the item, a current active inventory pool according to the first result includes:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
As a scenario embodiment, the process of determining the current active inventory pool is as follows.
1. Two stock pools, stock pool 0 (first stock pool) and stock pool 1 (second stock pool), are set up for the promotional items.
2. The current in-force inventory is calculated using the following formula:
f(x)=((x-a)/b) (mod2)
wherein x is the current time, a is the base time, and b is the cycle increment step.
For example, if the sales promotion product is subjected to stock resetting once a day (b is 1), the time to start the sales promotion is 2 months and 29 days (base time), if the current date is 3 months and 1 day (current time), the difference in the number of days between the base time and the current time is calculated to be 1, f (x) is 1(mod2) and the current validation stock pool is stock pool 1, and if the current date is 3 months and 2 days, f (x) is 0 and the current validation stock pool is stock pool 0. If a customer purchases sales promotion commodities in 3 months and 1 day, the inventory in the inventory pool 1 is consumed, the inventory pool to be validated (inventory pool 0) can be maintained, the inventory pool to be validated can be reset in advance, when the inventory pool to be validated and the inventory pool to be validated need to be switched, seamless switching can be achieved, delay cannot occur, and the shopping experience of the user is prevented from being influenced.
As another scenario embodiment, the process of determining the current active inventory pool is as follows.
1. Three stock pools, stock pool 0 (first stock pool), stock pool 1 (second stock pool), and stock pool 2 (third stock pool), are provided for the promotional items.
2. The current in-force inventory is calculated using the following formula:
f(x)=((x-a)/b) (mod3)
wherein x is the current time, a is the base time, and b is the cycle increment step.
For example, if the sales promotion item is subjected to stock reset once a day (b is 1), the time to start the sales promotion is 2 months and 29 days (base time), if the current date is 3 months and 1 day (current time), the difference in days between the base time and the current time is calculated to be 1, and f (x) is 1(mod3) is 1, the current effective stock pool is stock pool 1; if the current date is 3 months and 2 days (current time), the difference value of the number of days between the calculation base time and the current time is 2, and f (x) is 2(mod3) is 2, the current effective stock pool is the stock pool 2; if the current date is 3 months and 3 days, f (x) is 0, then the current active inventory pool is inventory pool 0. If a customer purchases sales promotion commodities in 3 months and 1 day, the inventory in the inventory pool 1 is consumed, the inventory pool to be validated (the inventory pool 0 and the inventory pool 2) can be maintained, the inventory pool to be validated can be reset in advance, when the inventory pool to be validated and the inventory pool to be validated need to be switched, seamless switching can be achieved, delay cannot occur, and the shopping experience of the user is prevented from being influenced.
As an implementation manner, the first embodiment of the present application further includes:
the current inventory to be validated in the at least two inventory pools for the goods is reset.
The resetting the current inventory to be validated in the at least two inventory pools for the goods comprises:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
The determining a current inventory pool to be validated from the at least two inventory pools for the goods based on the triggering of the timed task includes:
according to the triggering of the timing task, inquiring a target inventory pool with the current time larger than the next reset time;
and determining the current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step.
Determining a current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step size, including:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
1 subtracting the first result to obtain a second result;
and determining the current inventory pool to be validated according to the second result.
Determining the current inventory pool to be validated according to the second result, including:
if the second result is 0, determining that the first stock pool is the current stock pool to be validated;
and if the second result is 1, determining that the second stock pool is the current stock pool to be validated.
As a scenario embodiment, the process of determining the current pool of inventory to be validated is as follows.
1. Two stock pools, stock pool 0 and stock pool 1, are provided for the promotional items.
2. Calculating the current inventory to be validated using the following formula:
f(x)=1-((x-a)/b) (mod2)
wherein x is the current time, a is the base time, and b is the cycle increment step.
For example, if the sales promotion product is subjected to stock reset once a day (b is 1), the time to start the sales promotion is 2 months and 29 days (base time), if the current date is 3 months and 1 day (current time), the difference in the number of days between the base time and the current time is 1, f (x) is 1-1(mod2) is 0, the current stock pool to be validated is stock pool 0, and if the current date is 3 months and 2 days, f (x) is 1, the current stock pool to be validated is stock pool 1. If a customer purchases sales promotion commodities in 3 months and 1 day, the inventory in the inventory pool 1 is consumed, the inventory pool to be validated (inventory pool 0) can be maintained, the inventory pool to be validated can be reset in advance, when the inventory pool to be validated and the inventory pool to be validated need to be switched, seamless switching can be achieved, delay cannot occur, and the shopping experience of the user is prevented from being influenced.
In one embodiment, the number of inventory pools for an item is determined based on the number of days that the promotion period for the item encompasses.
The determining the number of inventory pools for the item based on the number of days involved in the promotion period for the item includes:
obtaining a number of days encompassed by a promotion period for the item;
the number of days included in the promotion period is taken as the number of inventory pools for the item.
The determining the number of inventory pools for the item based on the number of days involved in the promotion period for the item includes:
obtaining a number of days encompassed by a promotion period for the item;
if the promotion period of the commodity contains days which are less than a preset first day threshold value, taking the days contained in the promotion period as the number of the inventory pool for the commodity;
and if the promotion period of the commodity comprises days which are more than a preset first day threshold value, taking the days of the first day threshold value as the number of the stock pool for the commodity.
As shown in fig. 1, in step S103, the amount of consumed goods is deducted from the validation inventory pool.
A second embodiment of the present application provides an inventory management device corresponding to the inventory management method provided in the first embodiment of the present application.
As shown in fig. 2, the inventory management device includes:
an inventory deduction request confirmation unit 201, configured to obtain an inventory deduction request for deducting inventory of a commodity;
an effective inventory pool determining unit 202, configured to determine, according to the inventory deduction request and the current time, a current effective inventory pool from at least two inventory pools for the commodity;
and an inventory deduction unit 203 for deducting the amount of consumed goods from the active inventory pool.
As an embodiment, the validation inventory pool determining unit is specifically configured to:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
As an embodiment, the validation inventory pool determining unit is specifically configured to:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
In one embodiment, the inventory pools for the items include a first inventory pool and a second inventory pool;
the validation inventory pool determining unit is specifically configured to:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
As an embodiment, the apparatus further comprises:
and the to-be-validated inventory resetting processing unit is used for resetting the current to-be-validated inventory in the at least two inventory pools for the commodities.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
according to the triggering of the timing task, inquiring a target inventory pool with the current time larger than the next reset time;
and determining the current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
1 subtracting the first result to obtain a second result;
and determining the current inventory pool to be validated according to the second result.
As an embodiment, the to-be-validated inventory resetting processing unit is specifically configured to:
if the second result is 0, determining that the first stock pool is the current stock pool to be validated;
and if the second result is 1, determining that the second stock pool is the current stock pool to be validated.
It should be noted that, for the detailed description of the inventory management device provided in the second embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
In correspondence with an inventory management method provided in the first embodiment of the present application, a third embodiment of the present application provides an electronic device including a memory and a processor; wherein the content of the first and second substances,
the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when read by the processor, perform the method according to the first embodiment of the present application.
It should be noted that, for the detailed description of the electronic device provided in the third embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not repeated here.
In accordance with a method for inventory management as provided in the first embodiment of the present application, a fourth embodiment of the present application provides a computer-readable storage medium having stored thereon one or more computer instructions, wherein the instructions are executed by a processor to perform the method as described in the first embodiment of the present application.
A fifth embodiment of the present application provides an inventory management system, please refer to fig. 3, which is a timing chart of the operation of the inventory management system. The inventory management system, comprising: a server side and a client side;
the server is used for acquiring an inventory deduction request for deducting the inventory of the commodity; determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time; deducting the amount of consumed goods from the validation inventory pool;
and the client is used for sending an inventory deduction request for deducting the inventory of the commodity to the server.
The client is also used for displaying the deducted inventory information.
The client is also used for displaying the out-of-stock prompt information of the commodity. Determining a current active inventory pool from the at least two inventory pools for the item based on the inventory deduction request and the current time, comprising:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
The identifying a current active inventory pool from the at least two inventory pools for the item according to the base time, the current time, and the cycle increment step, comprising:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
The inventory pools for the goods comprise a first inventory pool and a second inventory pool;
the determining, from the at least two inventory pools for the item, a current active inventory pool according to the first result includes:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
The server is further configured to:
the current inventory to be validated in the at least two inventory pools for the goods is reset.
The resetting the current inventory to be validated in the at least two inventory pools for the goods comprises:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
The determining a current inventory pool to be validated from the at least two inventory pools for the goods based on the triggering of the timed task includes:
according to the triggering of the timing task, inquiring a target inventory pool with the current time larger than the next reset time;
and determining the current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step.
Determining a current inventory pool to be validated from the target inventory pool according to the base time, the current time and the cycle increment step size, including:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
1 subtracting the first result to obtain a second result;
and determining the current inventory pool to be validated according to the second result.
Determining the current inventory pool to be validated according to the second result, including:
if the second result is 0, determining that the first stock pool is the current stock pool to be validated;
and if the second result is 1, determining that the second stock pool is the current stock pool to be validated.
It should be noted that, for the detailed description of the inventory management system provided in the fifth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, and details are not described here again.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (10)

1. An inventory management method, comprising:
acquiring an inventory deduction request for deducting the inventory of the commodity;
determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time;
deducting the amount of the consumed goods from the validation inventory pool.
2. The method of claim 1, wherein determining a current active inventory pool from at least two inventory pools for the item based on the inventory deduction request and the current time comprises:
obtaining identification information of the commodity from the inventory deduction request;
obtaining at least two stock pools aiming at the commodities according to the identification information of the commodities;
confirming a current effective stock pool from at least two stock pools aiming at the commodities according to the base time, the current time and the cycle increment step length; the base time refers to the starting date for the promotion of the item.
3. The method of claim 2, wherein said identifying a current active inventory pool from at least two inventory pools for the item based on the base time, the current time, and the cycle increment step size comprises:
calculating a number of days difference between the base time and the current time;
calculating the quotient of the number of days difference and the cycle increment step length;
taking a modulus of the number of the inventory pools for the commodities according to the quotient of the number of days difference and the cycle increment step length to obtain a first result;
determining a current active inventory pool from the at least two inventory pools for the item based on the first result.
4. The method of claim 3, wherein the inventory pools for goods comprise a first inventory pool and a second inventory pool;
the determining, from the at least two inventory pools for the item, a current active inventory pool according to the first result includes:
if the first result is 0, determining that the first stock pool is the current effective stock pool;
if the first result is 1, then the second inventory pool is determined to be the current active inventory pool.
5. The method of claim 4, further comprising:
the current inventory to be validated in the at least two inventory pools for the goods is reset.
6. The method of claim 5, wherein said resetting current inventory to be validated in at least two pools of inventory for goods comprises:
acquiring triggering of a timing task;
determining a current stock pool to be validated from at least two stock pools for the goods according to the triggering of the timing task;
and resetting the current inventory pool to be validated.
7. An inventory management device, comprising:
the inventory deduction request confirming unit is used for acquiring an inventory deduction request for deducting the inventory of the commodity;
an effective stock pool determining unit, configured to determine, according to the stock deduction request and the current time, a current effective stock pool from at least two stock pools for the commodity;
and the inventory deduction unit is used for deducting the consumed quantity of the commodities from the effective inventory pool.
8. An electronic device, comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, which when read and executed by the processor, perform the method of claims 1-10.
9. A computer-readable storage medium having stored thereon one or more computer instructions for execution by a processor to perform the method of claims 1-10.
10. An inventory management system, comprising: a server side and a client side;
the server is used for acquiring an inventory deduction request for deducting the inventory of the commodity; determining a current active inventory pool from the at least two inventory pools for the goods according to the inventory deduction request and the current time; deducting the amount of consumed goods from the validation inventory pool;
and the client is used for sending an inventory deduction request for deducting the inventory of the commodity to the server.
CN202010633332.9A 2020-07-02 2020-07-02 Inventory management method, device, equipment and system Active CN111898937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010633332.9A CN111898937B (en) 2020-07-02 2020-07-02 Inventory management method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010633332.9A CN111898937B (en) 2020-07-02 2020-07-02 Inventory management method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN111898937A true CN111898937A (en) 2020-11-06
CN111898937B CN111898937B (en) 2024-03-01

Family

ID=73191478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010633332.9A Active CN111898937B (en) 2020-07-02 2020-07-02 Inventory management method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN111898937B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596930A (en) * 2020-12-29 2021-04-02 四川汇安融信息技术服务有限公司 Method for dynamically filling independent cache pool inventory
CN113590690A (en) * 2021-08-02 2021-11-02 上海寻梦信息技术有限公司 Object information processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976377A (en) * 2002-01-23 2011-02-16 传感电子有限责任公司 Inventory management system
CN107767092A (en) * 2016-08-23 2018-03-06 菜鸟智能物流控股有限公司 Processing method, display method and device of commodity object information
CN108182617A (en) * 2017-11-29 2018-06-19 商派软件有限公司 A kind of small-sized high concurrent reduces single order method under inventory
CN108596541A (en) * 2018-04-25 2018-09-28 广东奥园奥买家电子商务有限公司 A kind of method that on-line off-line data fusion is got through
CN110097203A (en) * 2018-01-29 2019-08-06 北京京东尚科信息技术有限公司 Inventory's dispatching method, inventory's dispatching device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101976377A (en) * 2002-01-23 2011-02-16 传感电子有限责任公司 Inventory management system
CN107767092A (en) * 2016-08-23 2018-03-06 菜鸟智能物流控股有限公司 Processing method, display method and device of commodity object information
CN108182617A (en) * 2017-11-29 2018-06-19 商派软件有限公司 A kind of small-sized high concurrent reduces single order method under inventory
CN110097203A (en) * 2018-01-29 2019-08-06 北京京东尚科信息技术有限公司 Inventory's dispatching method, inventory's dispatching device and computer readable storage medium
CN108596541A (en) * 2018-04-25 2018-09-28 广东奥园奥买家电子商务有限公司 A kind of method that on-line off-line data fusion is got through

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112596930A (en) * 2020-12-29 2021-04-02 四川汇安融信息技术服务有限公司 Method for dynamically filling independent cache pool inventory
CN112596930B (en) * 2020-12-29 2024-03-01 四川汇安融信息技术股份有限公司 Method for dynamically filling independent cache pool stock
CN113590690A (en) * 2021-08-02 2021-11-02 上海寻梦信息技术有限公司 Object information processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111898937B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
US8447665B1 (en) Removal of expiring items from inventory
CN105488688A (en) Commodity information pushing method, device and system
JP2017514219A (en) Method and system for processing merchandise object information
CN106447248B (en) Method and device for providing service object distribution aging information
CN111898937B (en) Inventory management method, device, equipment and system
CN110333951B (en) Commodity purchase request distribution method
CN107451918B (en) Asset data management method and device
CN108229766B (en) Goods picking task processing method, device and system
CN112101860A (en) Method and equipment for synchronizing inventory calculation
CN113159675A (en) Inventory management method and equipment based on sales
CN111582968A (en) Commodity transaction method, commodity transaction device, server and medium for live broadcast platform
CN110175880B (en) Commodity purchasing method, commodity purchasing device, commodity purchasing equipment and storage medium
CN112070505A (en) Resource verification and cancellation method and device
CN111737344A (en) Data synchronization method and device for label type weighing equipment
CN116090934A (en) Method, device, equipment and storage medium for rapidly delivering pre-sold articles
CN111435484A (en) Task cooperative processing method, device, equipment and system
CN110956478A (en) Method and device for determining goods input quantity
US10402819B2 (en) Systems and methods for use in inhibiting theft of payment cards
CN111861502B (en) Information processing method, system, electronic device and storage medium
CN111429056B (en) Express item material sales method, device, equipment and storage medium
CN112837076A (en) Method, system and equipment for automatically generating commodity order
US11087349B1 (en) System for generating replacement digital promotions based upon initial promotion expiration and related methods
CN111144891A (en) Public welfare transaction method and system based on block chain
CN112416314A (en) Dynamic inventory management method and system
KR101709594B1 (en) Method for managing online shopping mall through server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant