CN111222821A - Goods supplementing method and device, computer equipment and storage medium - Google Patents

Goods supplementing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111222821A
CN111222821A CN201911419483.8A CN201911419483A CN111222821A CN 111222821 A CN111222821 A CN 111222821A CN 201911419483 A CN201911419483 A CN 201911419483A CN 111222821 A CN111222821 A CN 111222821A
Authority
CN
China
Prior art keywords
goods
inventory
stock
variation
preset value
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
CN201911419483.8A
Other languages
Chinese (zh)
Other versions
CN111222821B (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.)
Guangzhou Kulyu Travel Agency Co ltd
Original Assignee
Guangzhou Kulyu Travel Agency 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 Guangzhou Kulyu Travel Agency Co ltd filed Critical Guangzhou Kulyu Travel Agency Co ltd
Priority to CN201911419483.8A priority Critical patent/CN111222821B/en
Publication of CN111222821A publication Critical patent/CN111222821A/en
Application granted granted Critical
Publication of CN111222821B publication Critical patent/CN111222821B/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
    • 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Abstract

The application relates to a goods replenishing method, a goods replenishing device, computer equipment and a storage medium. The method comprises the following steps: acquiring inventory variation of goods according to inventory of the goods and the required quantity of the goods; determining the inventory processing priority of the goods according to the inventory variation of the goods; and correspondingly replenishing the goods according to the stock processing priority of the goods. Through the stock according to the goods and the demand quantity of goods acquires the stock variation of goods, and then the stock processing priority of definite goods, the stock of hierarchical processing goods has reduced the pressure when the database is high concurrent to and the timely replenishment of goods stock, guaranteed the stability in shopping mall.

Description

Goods supplementing method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of e-commerce, in particular to a goods replenishing method, a goods replenishing device, computer equipment and a storage medium.
Background
With the development of e-commerce technology, online shopping becomes a consumption mode, and more people start using online shopping, so that a situation that a plurality of goods are simultaneously replenished to inventory occurs.
However, the architecture design of the existing goods replenishment inventory is too unidirectional, and when a plurality of goods replenishment inventory requests occur simultaneously, the replenishment inventory is omitted or delayed, so that the database pressure is high, and the database is locked.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a computer device and a storage medium capable of reducing database pressure.
A method of replenishing goods, the method comprising:
acquiring inventory variation of goods according to inventory of the goods and the required quantity of the goods;
determining the inventory processing priority of the goods according to the inventory variation of the goods;
and correspondingly replenishing the goods according to the stock processing priority of the goods.
In one embodiment, determining the inventory variation according to the inventory of the goods and the request magnitude corresponding to the goods comprises:
acquiring the required quantity of goods in a preset time period;
and acquiring a difference value between the stock of the goods and the required quantity of the goods, and taking the difference value as the stock variation of the goods.
In one embodiment, determining the inventory processing priority for the item based on the inventory delta for the item includes:
if the inventory variation of the goods is larger than or equal to a first preset value, the inventory processing level of the goods is a first processing priority;
if the inventory variation of the goods is smaller than a first preset value and is larger than or equal to a second preset value, the inventory processing level of the goods is a second processing priority; wherein the second preset value is greater than the first preset value;
and if the inventory variation of the goods is smaller than a second preset value, the inventory processing level of the goods is a third processing priority.
In one embodiment, the method further comprises:
acquiring the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory of the goods;
and deleting the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory replenishment time of the goods in sequence.
In one embodiment, the method further comprises:
acquiring a goods request sent by a user, and performing authority verification on the goods request;
and if the goods request passes the verification, adding the goods request into a request queue in a corresponding time period.
In one embodiment, after adding the item request to the request queue in the corresponding time period, the method further comprises:
and sequentially returning goods data to the terminal equipment of the user according to the goods requests in the request queue.
In one embodiment, the method further comprises:
if the stock processing priority of the goods is determined to be failed, storing the stock of the goods into a failure queue;
processing priorities of the inventory of items are redetermined in the order in the failure queue.
In one embodiment, the method further comprises, after re-prioritizing the handling of the inventory of items in the order in the failure queue:
and if the processing priority of the stock of the goods fails to be determined for three times again, sending failure early warning information.
A pushing device of goods, the device comprising:
an acquisition module: the inventory quantity variation of the goods is acquired according to the inventory of the goods and the required quantity of the goods;
a determination module: the inventory processing priority of the goods is determined according to the inventory variation of the goods;
a supplement module: and the system is used for correspondingly replenishing the goods according to the stock processing priority of the goods.
In one embodiment, the obtaining module includes: a first acquisition unit and a second acquisition unit;
the first acquisition unit is used for acquiring the required quantity of goods in a preset time period;
the second obtaining unit is configured to obtain a difference between an inventory of the goods and the required quantity of the goods, and use the difference as the inventory variation of the goods.
In one embodiment, the determining module comprises:
the first priority unit is used for determining the stock processing level of the goods as a first processing priority if the stock variation of the goods is smaller than or equal to a first preset value;
the second priority unit is used for determining the stock processing level of the goods as a second processing priority if the stock variation of the goods is greater than or equal to a first preset value and less than or equal to a second preset value; wherein the second preset value is greater than the first preset value;
and the third priority unit is used for determining the stock processing level of the goods as a third processing priority if the stock variation of the goods is larger than a second preset value.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 8 when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
According to the goods supplementing method, the goods supplementing device, the computer equipment and the storage medium, the inventory variable quantity of the goods is obtained according to the inventory of the goods and the required quantity of the goods, the inventory processing priority of the goods is further determined, the inventory of the goods is processed in a grading mode, the pressure of the database during high concurrency is reduced, the goods inventory is supplemented in time, and the stability of a mall is guaranteed.
Drawings
FIG. 1 is a diagram of an application environment of an article replenishment method in one embodiment;
FIG. 2 is a schematic flow chart diagram of a method of replenishing items in one embodiment;
FIG. 3 is a flow diagram illustrating the steps for determining inventory variance for a good in one embodiment;
FIG. 4 is a flow diagram illustrating the steps of determining an inventory handling priority for handling items in one embodiment;
FIG. 5 is a schematic diagram illustrating a process of a duplication checking step of the item replenishment method in one embodiment;
FIG. 6 is a flowchart illustrating the steps of item demand verification in the item replenishment method in one embodiment;
FIG. 7 is a flowchart illustrating a failure handling step in the item replenishment method according to one embodiment;
FIG. 8 is a block diagram showing the construction of an article replenishing apparatus according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The goods replenishing method provided by the application can be applied to the application environment shown in figure 1. Wherein the item supply server 102 communicates with the item inventory replenishment server 104 via a network. The goods supply server 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in FIG. 2, there is provided an item replenishment method, which is illustrated by way of example as applied to the item inventory replenishment server 104 in FIG. 1, including the steps of:
and step 10, acquiring the inventory variation of the goods according to the inventory of the goods and the required quantity of the goods.
The required quantity of the goods is the maximum required quantity controlled within a preset time period according to the goods request rate sent by the user through the terminal.
Specifically, the goods inventory supplementing server 104 obtains the required quantity corresponding to the goods through the obtained inventory of the goods, wherein the goods inventory supplementing server 104 controls the inventory of the goods and the required quantity corresponding to the goods by using a token bucket algorithm, and obtains the inventory variation corresponding to the goods according to the inventory of the goods and the required quantity corresponding to the goods (i.e. the goods request sent by the user through the terminal) controlled by the goods inventory supplementing server 104.
Step 20, determining the inventory processing priority of the goods according to the inventory variation of the goods.
Specifically, the inventory variation of the goods is analyzed, the variation trend of the inventory along with time at the moment is determined according to the inventory variation of the goods, and the processing priority for acquiring the inventory of the goods is further determined. Wherein the processing priorities sequentially include: a first priority, a second priority, and a third priority.
And step 30, correspondingly replenishing the goods according to the inventory processing priority of the goods.
Specifically, the stock of the goods is classified according to the determined goods priority, the stock of the goods is added into the processing queue according to the processing priority, and the corresponding goods supplement is carried out according to the stock of the goods in the queue.
According to the goods supplementing method, the inventory variable quantity of the goods is obtained according to the inventory of the goods and the required quantity of the goods, so that the inventory processing priority of the goods is determined, the inventory of the goods is processed in a grading mode, the pressure of the database during high concurrency is reduced, timely supplement of the inventory of the goods is achieved, and the stability of a mall is guaranteed.
In one embodiment, the item inventory replenishment server 104 controls the inventory of the items and the required quantity corresponding to the items by using a "Token bucket algorithm", specifically, the item inventory replenishment server 104 replenishes the inventory of the items at a fixed rate, for example, the item inventory replenishment server 102 replenishes the inventory of the items one Token (Token information security term, meaning of Token (temporary) in computer identity authentication, meaning of mark in lexical analysis, and generally uses as an invitation and login system) at a time at a fixed rate of 10 ms. If the stock of the goods in the goods stock replenishing server 104 has reached the maximum stock containable value, the goods stock is not replenished, when the goods demand sent by the user is received, one Token is taken away for each goods demand, and if the goods stock replenishing server 104 does not have the Token, the goods demand sent by the user is refused to be received; if the goods demand sent by the user is not received in a period of time, the system can accumulate some Token, and as long as the Token is enough, the system can process the sudden goods demand at one time.
Alternatively, for example, in an activity, the request rate from the user is not fixed, assuming that 10 item requests per second, Token replenishes the item inventory at a rate of 5 items per second, and a maximum of 20 tokens are stored in the item inventory replenishment server 104, then the item inventory replenishment server 104 will only allow 5 item requests per second to be processed continuously, or process 20 item requests at a time after 20 tokens in the item inventory replenishment server 104 are filled up every 4 seconds.
According to the goods supplementing method, the demand quantity in the time interval is controlled, so that the follow-up goods requests exceeding the maximum value of the demand quantity can be intercepted, the demand quantity of the goods in the current time period is limited, and the stability of the system is guaranteed.
In one embodiment, as shown in FIG. 3, step 10 comprises:
step 101: and acquiring the required quantity of the goods in a preset time period.
Step 102: and acquiring a difference value between the stock of the goods and the required quantity of the goods, and taking the difference value as the stock variation of the goods.
Specifically, the goods inventory replenishment server 104 acquires the maximum required quantity of the goods demand within a preset time period according to the goods demand sent by the user, and calculates the inventory variation of the goods according to the maximum required quantity of the goods and the inventory of the goods when the goods supply server 102 sends the inventory of the goods.
In the above-described goods replenishment method, the stock variation of a certain goods may be calculated individually, or the stock variation of each goods may be calculated in batches, so that the data processing efficiency is improved, and the low consumption of the goods stock replenishment server 104 and the timeliness of data processing are improved.
In one embodiment, as shown in FIG. 4, step 20 comprises:
if the inventory variation of the goods is larger than or equal to a first preset value, the inventory processing level of the goods is a first processing priority;
if the inventory variation of the goods is smaller than a first preset value and is larger than or equal to a second preset value, the inventory processing level of the goods is a second processing priority; wherein the second preset value is greater than the first preset value;
and if the inventory variation of the goods is smaller than a second preset value, the inventory processing level of the goods is a third processing priority.
Specifically, the stock supplement server 104 analyzes the stock variation of the goods, determines a preset interval to which the variation of the stock of the goods belongs, and further determines the stock supplement processing priority of the goods. Optionally, the preset values include a first preset value and a second preset value, where the first preset value may be set to be 90, the second preset value may be 80, the goods inventory processing levels are classified according to the preset values, and the processing priorities of the goods are determined, where the processing priorities sequentially include from top to bottom: a first processing level, a second processing level, and a third processing level.
Specifically, if the stock variation of the goods is greater than or equal to a first preset value, the stock handling level of the goods is a first handling priority, and it should be understood that the first handling priority is: the inventory of the goods cannot meet the demand of the user within a certain period of time, that is, the inventory variation of the goods is greater than or equal to the first preset value, the goods inventory replenishment server 104 first replenishes the inventory of the goods with the first processing priority, so that the timely replenishment of the inventory of the goods is ensured, and the loss of the goods caused by the untimely replenishment is prevented.
If the stock variation of the goods is smaller than the first preset value and greater than or equal to the second preset value, the stock handling level of the goods is a second handling priority, and it should be understood that the second handling priority is: and in a certain time period, the inventory of the goods can meet the quantity required by the user, but the demand of the user in the next time period cannot be met, and then the inventory supplement of the goods with the second processing priority is processed after the first processing priority is processed.
If the stock variation of the goods is smaller than the second preset value, the stock handling level of the goods is a third handling priority, and it should be understood that the third handling priority is: in a certain period of time, the stock of the goods is far larger than the goods request quantity of the user, and the operation of the business is not influenced by the delayed processing, so that the goods stock supplement with the priority can be processed after the first processing priority and the second processing priority.
In the above goods replenishing method, the goods stock replenishing server 104 replenishes the stocks of the goods in batches, thereby preventing the goods stock replenishing server 104 from overloading the service due to the concurrence of a large amount of data.
In one embodiment, as shown in fig. 5, the method further includes:
step 40: and acquiring the inventory of the goods without change and the inventory of the repeated goods according to the inventory of the goods.
Step 50: and deleting the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory replenishment time of the goods in sequence.
Specifically, the item inventory replenishment server 104 adds a redis cache check-tag filter, that is, when the item supply server 102 replenishes the inventory of the item to the item inventory replenishment server 104, a redis check-tag is added to the authorization information of each Token, and when the item inventory replenishment server 104 enters, the redis check-tag is verified, optionally, when the redis check-tag passes the verification of the item inventory replenishment server 104, the corresponding Token is added to the item inventory replenishment server 104; if the redis check label does not pass the verification of the item inventory replenishment server 104, the corresponding Token is deleted.
In the above-described goods replenishment method, the data of no change in stock of the goods or the repeated data is deleted, so that the high efficiency of the interface of the goods stock replenishment server 104 and the high availability of resources are ensured.
In one embodiment, as shown in fig. 6, the method further includes:
step 60: acquiring a goods request sent by a user, and performing authority verification on the goods request;
step 70: and if the goods request passes the verification, adding the goods request into a request queue in a corresponding time period.
Specifically, the goods inventory replenishment server 104 performs authority verification on the goods request sent from each user terminal, and if the goods request sent from the user terminal passes the verification, the goods request is added to the request queue in the corresponding time period.
In one embodiment, after adding the item request to the request queue in the corresponding time period, the method further comprises:
and sequentially returning goods data to the terminal equipment of the user according to the goods requests in the request queue.
According to the goods supplementing method, the rights verification is carried out on the goods request sent by the user terminal, so that malicious goods request behaviors are intercepted in a limited way.
In one embodiment, as shown in fig. 7, the method further includes:
and if the stock processing priority of the goods fails, storing the stock of the goods into a failure queue.
Processing priorities of the inventory of items are redetermined in the order in the failure queue.
Specifically, if the item inventory replenishment server 104 fails to determine the processing priority for the item inventory, the item inventory that fails to determine the processing priority is rolled back, that is, the item inventory that fails to determine the processing priority is added to an error.
The goods inventory replenishment server 104 determines the stock processing priorities of the goods that have failed in the error. handle processing queue in sequence again after the goods inventory is replenished according to the stock processing priorities of the goods, and replenishes the stock of the goods according to the determined stock processing priorities of the goods if the stock processing priorities of the goods are successfully determined.
In one embodiment, the method further comprises, after re-prioritizing the handling of the inventory of items in the order in the failure queue:
and if the processing priority of the stock of the goods fails to be determined for three times again, sending failure early warning information.
Specifically, if it is determined that the inventory processing priority of the goods still fails and the number of failures reaches three times, the resource link is closed and early warning information of the failure is sent out.
According to the goods supplementing method, the early warning information of failure sending out of failure of determining the inventory processing priority of the goods effectively helps developers to capture system errors in time, the problem is solved in a targeted manner, and therefore the problem that inventory data change is not timely caused is avoided.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided an article replenishing device including:
an acquisition module: the inventory quantity variation of the goods is acquired according to the inventory of the goods and the required quantity of the goods;
a determination module: the inventory processing priority of the goods is determined according to the inventory variation of the goods;
a supplement module: and the system is used for correspondingly replenishing the goods according to the stock processing priority of the goods.
In one embodiment, the obtaining module includes: a first acquisition unit and a second acquisition unit;
the first acquisition unit is used for acquiring the required quantity of goods in a preset time period;
the second obtaining unit is configured to obtain a difference between an inventory of the goods and the required quantity of the goods, and use the difference as the inventory variation of the goods.
In one embodiment, the determining module comprises:
the first priority unit is used for determining the stock processing level of the goods as a first processing priority if the stock variation of the goods is smaller than or equal to a first preset value;
the second priority unit is used for determining the stock processing level of the goods as a second processing priority if the stock variation of the goods is greater than or equal to a first preset value and less than or equal to a second preset value; wherein the second preset value is greater than the first preset value;
and the third priority unit is used for determining the stock processing level of the goods as a third processing priority if the stock variation of the goods is larger than a second preset value.
In one embodiment, the apparatus further comprises:
a weight checking module: the inventory acquisition module is used for acquiring the inventory of the goods without change and the inventory of the repeated goods according to the inventory of the goods;
a deletion module: and the stock deletion device is used for deleting the stock of the goods without change and the stock of the repeated goods according to the stock replenishment time of the goods.
In one embodiment, the apparatus further comprises:
a verification module: the system comprises a server and a server, wherein the server is used for acquiring a goods request sent by a user and carrying out authority verification on the goods request;
adding a module: and the goods queue management module is used for adding the goods request into a request queue in a corresponding time period if the goods request passes the verification.
In one embodiment, after adding the item request to the request queue in the corresponding time period, the method further comprises:
a return module: and the terminal equipment is used for sequentially returning the goods data to the user according to the goods requests in the request queue.
In one embodiment, the apparatus further comprises:
a failure module: and the inventory processing system is used for storing the inventory of the goods into a failure queue if the inventory processing priority determination of the goods fails.
In one embodiment, the failure module further comprises:
a determining unit for re-determining a processing priority of the stock of the item in the order in the failure queue;
and the early warning unit is used for sending failure early warning information if the processing priority of the stock of the goods fails to be determined for three times.
For the specific definition of the article replenishing device, reference may be made to the above definition of the article replenishing method, which is not described herein again. The modules in the goods replenishment device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing inventory data of goods. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an item replenishment method.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring inventory variation of goods according to inventory of the goods and the required quantity of the goods;
determining the inventory processing priority of the goods according to the inventory variation of the goods;
and correspondingly replenishing the goods according to the stock processing priority of the goods.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the required quantity of goods in a preset time period;
and acquiring a difference value between the stock of the goods and the required quantity of the goods, and taking the difference value as the stock variation of the goods.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the inventory variation of the goods is larger than or equal to a first preset value, the inventory processing level of the goods is a first processing priority;
if the inventory variation of the goods is smaller than a first preset value and is larger than or equal to a second preset value, the inventory processing level of the goods is a second processing priority; wherein the second preset value is greater than the first preset value;
and if the inventory variation of the goods is smaller than a second preset value, the inventory processing level of the goods is a third processing priority.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory of the goods;
and deleting the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory replenishment time of the goods in sequence.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring a goods request sent by a user, and performing authority verification on the goods request;
and if the goods request passes the verification, adding the goods request into a request queue in a corresponding time period.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and sequentially returning goods data to the terminal equipment of the user according to the goods requests in the request queue.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the stock processing priority of the goods fails, storing the stock of the goods into a failure queue.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
re-determining the processing priority of the inventory of the item in the order in the failure queue;
and if the processing priority of the stock of the goods fails to be determined for three times again, sending failure early warning information.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring inventory variation of goods according to inventory of the goods and the required quantity of the goods;
determining the inventory processing priority of the goods according to the inventory variation of the goods;
and correspondingly replenishing the goods according to the stock processing priority of the goods.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the required quantity of goods in a preset time period;
and acquiring a difference value between the stock of the goods and the required quantity of the goods, and taking the difference value as the stock variation of the goods.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the inventory variation of the goods is larger than or equal to a first preset value, the inventory processing level of the goods is a first processing priority;
if the inventory variation of the goods is smaller than a first preset value and is larger than or equal to a second preset value, the inventory processing level of the goods is a second processing priority; wherein the second preset value is greater than the first preset value;
and if the inventory variation of the goods is smaller than a second preset value, the inventory processing level of the goods is a third processing priority.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory of the goods;
and deleting the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory replenishment time of the goods in sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a goods request sent by a user, and performing authority verification on the goods request;
and if the goods request passes the verification, adding the goods request into a request queue in a corresponding time period.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and sequentially returning goods data to the terminal equipment of the user according to the goods requests in the request queue.
In one embodiment, the method further comprises:
and if the stock processing priority of the goods fails, storing the stock of the goods into a failure queue.
In one embodiment, the computer program when executed by the processor further performs the steps of:
re-determining the processing priority of the inventory of the item in the order in the failure queue;
and if the processing priority of the stock of the goods fails to be determined for three times again, sending failure early warning information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (13)

1. A method of replenishing goods, the method comprising:
acquiring inventory variation of goods according to inventory of the goods and the required quantity of the goods;
determining the inventory processing priority of the goods according to the inventory variation of the goods;
and correspondingly replenishing the goods according to the stock processing priority of the goods.
2. The method of claim 1, wherein determining an inventory change based on an inventory of items and corresponding requested levels of the items comprises:
acquiring the required quantity of goods in a preset time period;
and acquiring a difference value between the stock of the goods and the required quantity of the goods, and taking the difference value as the stock variation of the goods.
3. The method of claim 2, wherein determining the inventory processing priority for the item based on the inventory delta for the item comprises:
if the inventory variation of the goods is larger than or equal to a first preset value, the inventory processing level of the goods is a first processing priority;
if the inventory variation of the goods is smaller than a first preset value and is larger than or equal to a second preset value, the inventory processing level of the goods is a second processing priority; wherein the second preset value is greater than the first preset value;
and if the inventory variation of the goods is smaller than a second preset value, the inventory processing level of the goods is a third processing priority.
4. The method of claim 1, further comprising:
acquiring the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory of the goods;
and deleting the inventory of the unchanged goods and the inventory of the repeated goods according to the inventory replenishment time of the goods in sequence.
5. The method of claim 1, further comprising:
acquiring a goods request sent by a user, and performing authority verification on the goods request;
and if the goods request passes the verification, adding the goods request into a request queue in a corresponding time period.
6. The method of claim 5, wherein adding the item request to the request queue for the corresponding time period further comprises:
and sequentially returning goods data to the terminal equipment of the user according to the goods requests in the request queue.
7. The method of claim 1, further comprising:
if the stock processing priority of the goods is determined to be failed, adding the stock of the goods into a failure queue;
processing priorities of the inventory of items are redetermined in the order in the failure queue.
8. The method of claim 7, further comprising, after re-prioritizing the processing of the inventory of items in the order in the failure queue:
and if the processing priority of the stock of the goods fails to be determined for three times again, sending failure early warning information.
9. A pushing device for goods, characterized in that the device comprises:
an acquisition module: the inventory quantity variation of the goods is acquired according to the inventory of the goods and the required quantity of the goods;
a determination module: the inventory processing priority of the goods is determined according to the inventory variation of the goods;
a supplement module: and the system is used for correspondingly replenishing the goods according to the stock processing priority of the goods.
10. The apparatus of claim 9, wherein the obtaining module comprises: a first acquisition unit and a second acquisition unit;
the first acquisition unit is used for acquiring the required quantity of goods in a preset time period;
the second obtaining unit is configured to obtain a difference between an inventory of the goods and the required quantity of the goods, and use the difference as the inventory variation of the goods.
11. The apparatus of claim 9, wherein the determining module comprises:
the first priority unit is used for determining the stock processing level of the goods as a first processing priority if the stock variation of the goods is smaller than or equal to a first preset value;
the second priority unit is used for determining the stock processing level of the goods as a second processing priority if the stock variation of the goods is greater than or equal to a first preset value and less than or equal to a second preset value; wherein the second preset value is greater than the first preset value;
and the third priority unit is used for determining the stock processing level of the goods as a third processing priority if the stock variation of the goods is larger than a second preset value.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 8 are implemented when the computer program is executed by the processor.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN201911419483.8A 2019-12-31 2019-12-31 Goods supplementing method and device, computer equipment and storage medium Active CN111222821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419483.8A CN111222821B (en) 2019-12-31 2019-12-31 Goods supplementing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419483.8A CN111222821B (en) 2019-12-31 2019-12-31 Goods supplementing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111222821A true CN111222821A (en) 2020-06-02
CN111222821B CN111222821B (en) 2023-11-07

Family

ID=70829250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419483.8A Active CN111222821B (en) 2019-12-31 2019-12-31 Goods supplementing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111222821B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111882764A (en) * 2020-07-24 2020-11-03 广东智源机器人科技有限公司 Food replenishment control method and device, steam box and storage medium
CN112017015A (en) * 2020-10-30 2020-12-01 腾讯科技(深圳)有限公司 Commodity information recommendation method, related device, equipment and storage medium
CN114162621A (en) * 2021-11-02 2022-03-11 中国烟草总公司北京市公司物流中心 Replenishment method, device and system for sorting spare goods area
CN117217466A (en) * 2023-09-12 2023-12-12 北京阿帕科蓝科技有限公司 Vehicle scheduling method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143486A1 (en) * 2002-10-25 2004-07-22 Yeow Sonseng System and method for inventory replenishment
WO2016205629A1 (en) * 2015-06-17 2016-12-22 Panasonic Intellectual Property Management Co., Ltd. Stock management apparatus, method and system
CN108596540A (en) * 2018-04-23 2018-09-28 北京京东尚科信息技术有限公司 Replenishing method and device, computer readable storage medium, electronic equipment
CN109636278A (en) * 2018-12-03 2019-04-16 Oppo(重庆)智能科技有限公司 Material replenishing method, material goods compensator and terminal device
CN110288167A (en) * 2019-07-02 2019-09-27 湖南艾瓦特网络科技有限公司 Kinds of goods Allocation plan method, apparatus, electronic equipment and readable storage medium storing program for executing
CN110363456A (en) * 2018-04-10 2019-10-22 北京京东振世信息技术有限公司 A kind of method and apparatus of article restocking
CN110516990A (en) * 2019-07-18 2019-11-29 浙江子不语电子商务有限公司 A kind of inventory occupies in advance and management system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040143486A1 (en) * 2002-10-25 2004-07-22 Yeow Sonseng System and method for inventory replenishment
WO2016205629A1 (en) * 2015-06-17 2016-12-22 Panasonic Intellectual Property Management Co., Ltd. Stock management apparatus, method and system
CN110363456A (en) * 2018-04-10 2019-10-22 北京京东振世信息技术有限公司 A kind of method and apparatus of article restocking
CN108596540A (en) * 2018-04-23 2018-09-28 北京京东尚科信息技术有限公司 Replenishing method and device, computer readable storage medium, electronic equipment
CN109636278A (en) * 2018-12-03 2019-04-16 Oppo(重庆)智能科技有限公司 Material replenishing method, material goods compensator and terminal device
CN110288167A (en) * 2019-07-02 2019-09-27 湖南艾瓦特网络科技有限公司 Kinds of goods Allocation plan method, apparatus, electronic equipment and readable storage medium storing program for executing
CN110516990A (en) * 2019-07-18 2019-11-29 浙江子不语电子商务有限公司 A kind of inventory occupies in advance and management system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111882764A (en) * 2020-07-24 2020-11-03 广东智源机器人科技有限公司 Food replenishment control method and device, steam box and storage medium
CN112017015A (en) * 2020-10-30 2020-12-01 腾讯科技(深圳)有限公司 Commodity information recommendation method, related device, equipment and storage medium
CN114162621A (en) * 2021-11-02 2022-03-11 中国烟草总公司北京市公司物流中心 Replenishment method, device and system for sorting spare goods area
CN114162621B (en) * 2021-11-02 2022-06-07 中国烟草总公司北京市公司物流中心 Replenishment method, device and system for sorting spare goods area
CN117217466A (en) * 2023-09-12 2023-12-12 北京阿帕科蓝科技有限公司 Vehicle scheduling method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111222821B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN111222821B (en) Goods supplementing method and device, computer equipment and storage medium
US11442790B2 (en) Resource scheduling system, method and server for ensuring high availability of services
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN110928653B (en) Cross-cluster task execution method and device, computer equipment and storage medium
CN110598380B (en) User right management method, device, computer equipment and storage medium
CN109039751B (en) Method, device, computer equipment and storage medium for configuring route
CN111651285A (en) Batch business data processing method and device, computer equipment and storage medium
CN104954478A (en) System and method for realizing automatic longitudinal scaling of server in cloud computing platform
CN111667334B (en) Audit failure order processing method and device, computer equipment and storage medium
CN108446172B (en) Data calling method and device, computer equipment and storage medium
CN110620812A (en) Interactive information pushing method and device, computer equipment and storage medium
US11509693B2 (en) Event-restricted credentials for resource allocation
CN106713388B (en) Burst service processing method and device
CN108492005A (en) Project data processing method, device, computer equipment and storage medium
CN109492856B (en) Service request processing method, device, computer equipment and storage medium
CN111752822A (en) Containerization pressure measurement scheduling method, computer equipment and readable storage medium
CN110267060B (en) Video file storage injection method and device, computer equipment and storage medium
EP3279795B1 (en) Method and apparatus for deleting cloud host in cloud computing environment, server and storage medium
US11023863B2 (en) Machine learning risk assessment utilizing calendar data
CN111382012B (en) Backup method and device for MySQL cloud database, computer equipment and storage medium
CN111309571B (en) Service data control method, device, computer equipment and storage medium
CN114006815A (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN114331446B (en) Method, device, equipment and medium for realizing out-of-chain service of block chain
CN111047187B (en) Information matching processing method, device, computer equipment and storage medium
CN109840402B (en) Privatization service authorization management method and device, computer equipment and storage medium

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