CN110188139A - Inventory's number synchronous method, device, computer equipment and storage medium - Google Patents
Inventory's number synchronous method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110188139A CN110188139A CN201910367774.0A CN201910367774A CN110188139A CN 110188139 A CN110188139 A CN 110188139A CN 201910367774 A CN201910367774 A CN 201910367774A CN 110188139 A CN110188139 A CN 110188139A
- Authority
- CN
- China
- Prior art keywords
- inventory
- total
- server
- target object
- change amount
- 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
Links
- 230000001360 synchronised effect Effects 0.000 title claims abstract description 103
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000008859 change Effects 0.000 claims abstract description 228
- 230000001965 increasing effect Effects 0.000 claims abstract description 74
- 230000003247 decreasing effect Effects 0.000 claims abstract description 73
- 238000004590 computer program Methods 0.000 claims description 38
- 238000012545 processing Methods 0.000 claims description 11
- 230000009467 reduction Effects 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 claims description 3
- 238000000151 deposition Methods 0.000 claims description 2
- 241000406668 Loxodonta cyclotis Species 0.000 claims 1
- 230000008569 process Effects 0.000 description 8
- 230000007423 decrease Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 238000007726 management method Methods 0.000 description 7
- 238000011161 development Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 238000007781 pre-processing Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 229910052500 inorganic mineral Inorganic materials 0.000 description 2
- 239000011707 mineral Substances 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 101100008049 Caenorhabditis elegans cut-5 gene Proteins 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of inventory's number synchronous method, device, computer equipment and storage mediums.The described method includes: obtaining first inventory change amount of each first server of target object in objective time interval, objective time interval is that last time inventory number is synchronized to this inventory's number synchronous period;According to first total inventory's number and each first inventory change amount, determine that second total inventory's number, first total inventory's number are total inventory's number after last time inventory number synchronizes, second total inventory's number is total inventory's number when this inventory's number is synchronous;According to first total inventory's number, second total inventory's number and each first inventory change amount, the inventory of each first server number to be increased and decreased is determined respectively;Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.Applicability is able to ascend using this method, can be reduced in Added Business scene and realize difficulty and workload.
Description
Technical field
The present invention relates to Internet technical fields, set more particularly to a kind of inventory's number synchronous method, device, computer
Standby and storage medium.
Background technique
With the development of internet technology, e-commerce is more and more common.In e-commerce scene, there is a quotient
The scene that the source of goods of family is sold simultaneously in multiple electric business platforms.For in the management of inventory's number, current solution is will be total
Stockpile number divides the stockpile number of good respective point of stock model according to multiple platforms in advance, but this operation needs shift to an earlier date
Divide inventory, is unfavorable for inventory's turnover.
To guarantee source of goods sales maximization, inventory's sharing mode is generally used.Therefore, total stock model and divide stock model
Each of inventory data change and will inform all platforms, guarantee the accurate of source of goods quantity.
Since many scenes can all cause the variation of inventory, the merchandise sales of external electric business platform, internal merchant system
Goods warehousing or breakage.For the accuracy of inventory, each single item scene requires notice to the increase and decrease of stockpile number bring and arrives
Each sales platform.However, the management industry in the quick horizontal extension for facing Merchant sales platform, with internal constantly refinement multi-panel
Business, done for each single item business scenario customize processing change it is larger, the business scenario newly increased is also required to consider this in time
Kind interaction scenarios realize that difficulty and workload are all larger.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of inventory's number synchronous method, device, computer and set
Standby and storage medium can promote applicability, can reduce in Added Business scene and realize difficulty and workload.
A kind of inventory's number synchronous method, this method comprises:
First inventory change amount of each first server of target object in objective time interval is obtained, objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total inventory are determined
Mesh is total inventory's number after last time inventory number synchronizes, and second total inventory's number is total inventory when this inventory's number is synchronous
Number;
According to first total inventory's number, second total inventory's number and each first inventory change amount, each first clothes are determined respectively
Inventory's number to be increased and decreased of business device;
Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
A kind of inventory's number synchronous method, this method comprises:
The inventory change business datum of target object is sent to the second server or terminal of target object;
Inventory's number to be increased and decreased of second server or terminal return is received, inventory's number to be increased and decreased is according to target object
First total inventory's number and target object each first server inventory change business datum determine, first total inventory's number
Total inventory's number after being synchronized for last time inventory's number;
It is synchronous that this inventory's number is carried out according to inventory's number to be increased and decreased.
A kind of inventory's number synchronizing device, the device include:
Module is obtained, for obtaining first inventory change amount of each first server of target object in objective time interval,
Objective time interval is that last time inventory number is synchronized to this inventory's number synchronous period;
First processing module, for determining second total inventory according to first total inventory's number and each first inventory change amount
Number, first total inventory's number are total inventory's number after last time inventory number synchronizes, and second total inventory's number is this inventory
Total inventory's number when number is synchronous;
Second processing module is used for according to first total inventory's number, second total inventory's number and each first inventory change amount,
The inventory of each first server number to be increased and decreased is determined respectively;
First sending module carries out this for each inventory number to be increased and decreased to be sent respectively to corresponding first server
Inventory's number is synchronous.
A kind of inventory's number synchronizing device, the device include:
Second sending module is sent to the second service of target object for the inventory change business datum by target object
Device or terminal;
Receiving module, for receiving inventory's number to be increased and decreased of second server or terminal return, inventory waits for fluctuation number
Mesh is determining according to the inventory change business datum of first total inventory's number of target object and each first server of target object,
First total inventory's number is total inventory's number after last time inventory number synchronizes;
Synchronization module, it is synchronous for carrying out this inventory's number according to inventory's number to be increased and decreased.
The second inventory that above-mentioned inventory number to be increased and decreased is obtained also according to second server in one of the embodiments,
Variation determines that the second inventory change amount is inventory change amount caused by stock control.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
Computer program, processor perform the steps of when executing computer program
First inventory change amount of each first server of target object in objective time interval is obtained, objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total inventory are determined
Mesh is total inventory's number after last time inventory number synchronizes, and second total inventory's number is total inventory when this inventory's number is synchronous
Number;
According to first total inventory's number, second total inventory's number and each first inventory change amount, each first clothes are determined respectively
Inventory's number to be increased and decreased of business device;
Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
Computer program, processor perform the steps of when executing computer program
The inventory change business datum of target object is sent to the second server of target object;
Receive inventory's number increase and decrease that second server returns, inventory's number to be increased and decreased according to the first of target object always
The inventory change business datum of inventory's number and each first server of target object determines that first total inventory's number is last time library
Deposit total inventory's number after number synchronizes;
It is synchronous that this inventory's number is carried out according to inventory's number to be increased and decreased.
A kind of computer readable storage medium is stored thereon with computer program, when computer program is executed by processor
It performs the steps of
First inventory change amount of each first server of target object in objective time interval is obtained, objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total inventory are determined
Mesh is total inventory's number after last time inventory number synchronizes, and second total inventory's number is total inventory when this inventory's number is synchronous
Number;
According to first total inventory's number, second total inventory's number and each first inventory change amount, each first clothes are determined respectively
Inventory's number to be increased and decreased of business device;
Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
A kind of computer readable storage medium is stored thereon with computer program, when computer program is executed by processor
It performs the steps of
The inventory change business datum of target object is sent to the second server of target object;
Receive inventory's number increase and decrease that second server returns, inventory's number to be increased and decreased according to the first of target object always
The inventory change business datum of inventory's number and each first server of target object determines that first total inventory's number is last time library
Deposit total inventory's number after number synchronizes;
It is synchronous that this inventory's number is carried out according to inventory's number to be increased and decreased.
Above-mentioned inventory's number synchronous method, device, computer equipment and storage medium are that second server or terminal obtain
First inventory change amount of each first server of target object in objective time interval is taken, which is last time inventory number
The period for being synchronized to the synchronization of this inventory's number determines second according to first total inventory's number and each first inventory change amount
Total inventory's number, first total inventory's number are total inventory's number after last time inventory number synchronizes, second total inventory's number
Total inventory's number when being synchronized for this inventory's number, according to first total inventory's number, second total inventory's number and each first
Inventory change amount determines the inventory of each first server number to be increased and decreased respectively, and each inventory number to be increased and decreased is sent respectively to
Corresponding first server, it is same that each first server carries out this inventory's number according to the inventory's number to be increased and decreased received respectively
Step can universally realize that the inventory under different scenes is synchronous using the program, have for operation expanding and variation better
Applicability can reduce in Added Business scene and realize difficulty and workload.
Detailed description of the invention
Fig. 1 is the applied environment figure of inventory's number synchronous method in one embodiment;
Fig. 2 is the applied environment figure of inventory's number synchronous method in another embodiment;
Fig. 3 is the flow diagram of inventory's number synchronous method in one embodiment;
Fig. 4 is the flow diagram of the first inventory change amount obtaining step in one embodiment;
Fig. 5 is the flow diagram of inventory's number synchronous method in another embodiment;
Fig. 6, which records scratch list and inventory for the sales order in one embodiment, can sell the record process of quantity table to be updated
Schematic diagram;
Fig. 7 is that multi-platform inventory in one embodiment illustrates with the calculating of step number with the more new technological process that can sell quantitative value
Figure;
Fig. 8 is the structural block diagram of inventory's number synchronizing device in one embodiment;
Fig. 9 is the structural block diagram of inventory's number synchronizing device in another embodiment;
Figure 10 is the internal structure chart of computer equipment in one embodiment;
Figure 11 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not
For limiting the present invention.
Inventory's number synchronous method provided by the invention, can be applied in application environment as shown in Figure 1.Wherein, respectively
First server 102 is communicated by network with second server 104.Wherein, each first server 102 and second server
104 can be realized with the server cluster of the either multiple server compositions of independent server respectively.
Inventory's number synchronous method provided by the invention, also can be applied in application environment as shown in Figure 2.Wherein,
Each first server 202 is communicated by network with terminal 204.Wherein, terminal 102 can be, but not limited to be various personal meters
Calculation machine, laptop, smart phone, tablet computer and portable wearable device, each first server 202 can be used respectively
The server cluster of independent server either multiple servers composition is realized.
Inventory's number synchronous method provided by the invention can be used for a businessman to multiple gondola sales platform sync vaults
Deposit number.
In one embodiment, as shown in figure 3, providing a kind of inventory's number synchronous method, it is applied to Fig. 1 in this way
In second server or Fig. 2 in terminal for be illustrated, comprising the following steps:
Step 302, first inventory change amount of each first server of target object in objective time interval is obtained, when target
Section is that last time inventory number is synchronized to this inventory's number synchronous period;
Here, target object can refer to cargo on sale, and the type of merchandize on sale is unrestricted.
Here, first server refers generally to sales platform or electric business platform, and sales platform may be generally understood to here
Sales platform server, electric business platform may be generally understood to electric business Platform Server.Each first server of target object is
The platform of the target object is sold, the quantity of first server is not less than 2.
Here, the first inventory change amount includes usually sales volume, i.e. the inventory change amount of selling operation generation, but
It may include the inventory change amount that other types of service of first server generate, for example, return transaction.First inventory change amount
It can be determined according to the inventory change business datum of corresponding first server, here, the general stylus pin of inventory change business datum
Order is sold, but is also not necessarily limited to sales order.
Specifically, second server can receive the inventory change business number for the target object that each first server is sent
According to determining first inventory change amount of each first server in objective time interval respectively according to the inventory change business datum.Or
Person's second server sends the first inventory change amount acquisition request of target object to preprocessing server, receives pre-processing service
First inventory change amount of each first server for the target object that device returns in objective time interval, wherein each first server
The first inventory change amount in objective time interval is become by preprocessing server according to the inventory of the target object of each first server
Dynamic business datum determines.
Step 304, according to first total inventory's number and each first inventory change amount, second total inventory's number is determined, first
Total inventory's number is total inventory's number after last time inventory number synchronizes, when second total inventory's number is that this inventory's number is synchronous
Total inventory's number;
Here, first total inventory's number is total inventory's number after last time inventory number synchronizes, i.e. last time inventory number is same
The total inventory's number being calculated when step;Second total inventory's number refers to total inventory that this inventory's number synchronometer obtains
Mesh.
Specifically, second server can determine second total inventory's number according to following formula (1);
Wherein, QtytIndicate second total inventory's number, QtylIndicate first total inventory's number, AciIndicate the of target object
First inventory change amount of the i first server in objective time interval, when the first inventory change amount is inventory's reduction amount, example
Such as, sales volume, AciFor positive number, when the first inventory change amount is inventory's incrementss, AciFor negative, i=1,2 ..., n, n
Indicate the total number of the first server of target object.
Step 306, it according to first total inventory's number, second total inventory's number and each first inventory change amount, determines respectively
The inventory of each first server number to be increased and decreased;
Here, inventory's number to be increased and decreased refers to that this inventory's number is synchronous, needs on the basis of first total inventory purpose
Inventory's number of increase and decrease, each first server is corresponding with inventory's number to be increased and decreased, if the first inventory of different server
Variation is variant, then the inventory of different server number to be increased and decreased is also variant.
Specifically, second server can determine the library of the target object of each first server according to following formula (2)
Deposit number to be increased and decreased;
Diffi=Qtyt-Qtyl+Aci (2)
Wherein, DiffiIndicate inventory's number to be increased and decreased of i-th of first server of target object.
Step 308, each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out this inventory's number
It is synchronous.
Wherein, each first server is receiving corresponding inventory when increasing and decreasing number, can be respectively according to receiving
It is synchronous that inventory's number to be increased and decreased carries out this inventory's number.
Specifically, the inventory of i-th of first server number to be increased and decreased is sent to i-th of first service by second server
Device, each first server can determine respectively according to respective current inventory's number and the inventory's number to be increased and decreased received
This inventory's number synchronize after total inventory's number, current inventory's number is only to consider itself (not considering other first servers)
The obtained inventory's number of inventory change business datum.For example, current inventory's number of i-th of first server is total according to first
The inventory change business datum of the target object in objective time interval of inventory's number and i-th of first server obtains, can
When generating inventory change business datum every time, current inventory's number is updated, can also be synchronous in this inventory's number, according to the
First inventory change amount of one total inventory's number and i-th of first server determines.
In addition, synchronizing completing this inventory's number, first total inventory purpose value is also generally updated to second total library
The value of number is deposited, with synchronous for next inventory's number.
It should be noted that being the executing subject using second server as each step, but according to need in the foregoing description
It wants, terminal can also be used as the executing subject of each step.
It is each first server that second server or terminal obtain target object in above-mentioned inventory's number synchronous method
The first inventory change amount in objective time interval, the objective time interval are that last time inventory number is synchronized to what this inventory's number synchronized
Period determines second total inventory's number according to first total inventory's number and each first inventory change amount, first total inventory
Mesh is total inventory's number after last time inventory number synchronizes, which is total library when this inventory's number is synchronous
Number is deposited, according to first total inventory's number, second total inventory's number and each first inventory change amount, determines each first clothes respectively
Inventory's number to be increased and decreased of business device, is sent respectively to corresponding first server, each first service for each inventory number to be increased and decreased
Device carries out the synchronization of this inventory's number according to inventory's number increase and decrease for receiving respectively, can be with using the scheme of the present embodiment
The inventory universally solved under different scenes is synchronous, has better applicability for operation expanding and variation, can be newly-increased
It is reduced when business scenario and realizes difficulty and workload, the Quick Extended and variation for business have better adaptability, allow IT
The development of the better supporting business of system energy.
Inventory's number synchronous method in one of the embodiments, can be comprising steps of obtain target object in mesh
The second inventory change amount in the period is marked, the second inventory change amount is inventory change amount caused by stock control;
Here, inventory change amount can be inventory caused by the inventory shrinkages such as the expired business of cargo damage business, cargo and subtract
On a small quantity, it is also possible to businessman to get in stocks inventory's incrementss of generation.
It is above-mentioned according to first total inventory's number and each first inventory change amount, determine second total inventory's number, comprising: root
According to each first inventory change amount and the second inventory change amount, total inventory change amount is determined, it is total according to total inventory change amount and first
Inventory's number determines second total inventory's number.
Specifically, second total inventory's number can be determined according to following formula (3);
Wherein, Au indicates the second inventory change amount, and when the second inventory change amount is inventory's reduction amount, Au is positive number,
When second inventory change amount is inventory's incrementss, Au is negative.
In the present embodiment, the inventory not only allowed in external business scene increases and decreases scene, it is also contemplated that industry inside businessman
Inventory in scene of being engaged in increases and decreases scene, further improves the applicability of scheme.
In view of the inventory change business datum that sales platform generates notifies businessman often to there is certain delay, at it
Inventory's number synchronous method in middle one embodiment, can be comprising steps of be lower than preset peace in second total inventory's number
When National Federation of Trade Unions's inventory's number, generates and mend inventory's prompt information.
Here, the total inventory purpose value of safety is generally higher than 1.Here, inventory's prompt information is mended for prompting businessman timely
Augment the inventory of target object.
Specifically, the total inventory purpose quantity of safety can be 1, and the total library of multiple safety of different sizes can also be arranged
Number is deposited, according to second total inventory's number and this multiple total inventory's number of safety, determines and mends inventory's cue scale, different benefits
Inventory's cue scale corresponds to different alerting patterns, in this way, differentiated the prompting that replenishes can be carried out.Different alerting patterns can
Be mail reminder, short message is reminded and phone alerts, is also possible to remind the difference of the frequency, can be with for example, be all that short message is reminded
Be reminded in one day it is primary, remind in one day it is three inferior.
In the scheme of the present embodiment, certain safety inventory is reserved, the source of goods is insufficient, mentioning of needing to replenish in advance as reminding
It wakes up, it is possible to reduce probability out of stock is caused because concurrently selling goods between platform.
In one of the embodiments, as shown in figure 4, each first server of above-mentioned acquisition target object is in target
The first inventory change amount in section, may include steps of:
Step 402, the inventory change business datum of each first server is received, the library in inventory change business datum is extracted
Deposit the identification information for changing object;
Here, inventory change business datum can refer to sales order.Here, inventory change object refers generally to that inventory's change occurs
Dynamic cargo.
Step 404, by the storage of inventory change business datum into preset inventory change business datum scratch list;
Specifically, inventory change service order identification information in inventory change business datum, inventory change can be extracted
The identification information of object, the identification information of first server and sales volume, storage are temporary to preset inventory change business datum
It deposits in table.
Step 406, by the identification information of inventory change object, inventory's number table to be updated is arrived in storage;
Specifically, the library can be detected before the identification information storage to inventory's number table to be updated of inventory change object
The identification information that the inventory change object whether is stored in number table to be updated is deposited, if not stored have the inventory change object
Identification information, then by the identification information of the inventory change object, inventory's number table to be updated is arrived in storage, conversely, not storing then.?
It can be handled without the duplicate checking, directly by the identification information of inventory change object, inventory's number table to be updated is arrived in storage.
Step 408, when determining that carrying out inventory's number to target object synchronizes according to inventory's number table to be updated, from inventory
It changes the base stock obtained in objective time interval in business datum scratch list and changes business datum, base stock changes business datum
For the inventory change business datum of target object;
Specifically, can be in the corresponding setting time of target object, whether detect in inventory's number table to be updated has target
The identification information of object synchronizes if so, then determining and carrying out inventory's number to target object, from inventory change business datum scratch list
Base stock in middle acquisition objective time interval changes business datum.Wherein, setting time can be according to the inventory of target object
Mesh synchronizing cycle determines.The identification information that an object can also be chosen from inventory's number table to be updated, if selecting target object
Identification information, it is determined that it is synchronous that inventory's number carried out to target object, obtains mesh from inventory change business datum scratch list
The base stock marked in the period changes business datum.
Step 410, business datum is changed according to base stock, determines each first server of target object in objective time interval
The first interior inventory change amount.
In addition, determining that each first server completes after this inventory's number synchronizes, also deletion inventory change business datum
Base stock in scratch list changes business datum, and deletes the identification information of the target object in inventory's number table to be updated.
In the present embodiment, it is provided with inventory change business datum scratch list and inventory's number table to be updated, by inventory change
Business datum is stored into preset inventory change business datum scratch list, and by the identification information of inventory change object, storage is arrived
Inventory's number table to be updated, in this way, multiple sales orders occur for single sales platform in counting period (for example, objective time interval)
It is also suitable, further improves the applicability of scheme.
In one of the embodiments, each first server of above-mentioned acquisition target object in objective time interval first
Inventory change amount, can be comprising steps of record at the first time, be synchronous in last time inventory's number of target object at the first time
Afterwards, the time of the first inventory change business datum of the target object received;According to first time determine the second time, second
Time is at the beginning of this inventory's number of target object is synchronous.
Wherein, the second time can be the time of the setting duration after first time.It specifically, can be at second
Between, business datum is changed from the base stock obtained in objective time interval in inventory change business datum scratch list, base stock becomes
Dynamic business datum is the inventory change business datum of target object, changes business datum according to base stock, determines target object
First inventory change amount of each first server in objective time interval.
It, can be to avoid useless caused by due to target object not in stock changes business datum using the scheme in the present embodiment
Inventory's number it is synchronous, can be with energy saving.
It is above-mentioned in one of the embodiments, that the second time was determined according to first time, it may include step: according to the
One time, the corresponding inventory's reduction amount of first inventory change business datum, this inventory's number synchronization time and first of last time
The quantity of server determined for the second time.
Specifically, the second time can be determined according to following formula (4) and formula (5);
t2=t1+kΔt (4)
K=ω1(t3-t1)+ω2n+ω3m (5)
Wherein, t1、t2And t3Respectively indicate at the first time, the second time and last time this inventory number synchronization time, when k
Between regulation coefficient, Δ t be preset duration, size can be determine according to actual needs.N and m respectively indicates the number of first server
Measure inventory's reduction amount corresponding with the first inventory change business datum of target object, ω1、ω2And ω3For preset weighted value,
The size of the weighted value can be determines according to actual conditions.
Scheme in the present embodiment, the second time consider first time, the corresponding inventory of first inventory change business datum
The influence of the Multiple factors such as the quantity of reduction amount, this inventory's number synchronization time of last time and first server, can be promoted
The synchronous validity of inventory's number.
In one embodiment, as shown in figure 5, providing a kind of inventory's number synchronous method, it is applied to Fig. 1 in this way
Or it is illustrated for any one first server in Fig. 2, comprising the following steps:
Step 502, the inventory change business datum of target object is sent to second server or the end of target object
End;
Here, second server is business server, and terminal is merchant terminal, the business server or the merchant terminal
Including inventory's number synchronizing device of the invention.Inventory's number synchronizing device can be businessman ERP (Enterprise
Resource Planning System, enterprise management system) in a business module.
Specifically, the inventory change business datum of target object is sent to the second of target object by current first server
Server or terminal.Wherein, current first server is any one in each first server of target object.
Step 504, inventory's number to be increased and decreased of second server or terminal return, inventory number root to be increased and decreased are received
It is determined according to the inventory change business datum of each first server of first total inventory's number and target object of target object, first
Total inventory's number is total inventory's number after last time inventory number synchronizes;
Wherein, inventory's number to be increased and decreased is referred to the acquisition of the calculation in above-described embodiment, and it will not be described here.
Step 506, this inventory's number is carried out according to inventory's number to be increased and decreased to synchronize.
Specifically, current first server receives inventory that second server or terminal return when increasing and decreasing number,
Inventory number to be increased and decreased is subtracted from current inventory's number of current first server, is obtained after this inventory's number synchronizes
Total inventory's number.Wherein, current inventory's number is referring to the description in above-described embodiment.
Although the inventory that each first server receives number to be increased and decreased may be different, each first server
When completing the synchronization of this inventory's number, total inventory's number is identical.
Using the scheme of the present embodiment, it is synchronous universally to solve inventory under different scenes, for operation expanding with
Variation has better applicability, can reduce in Added Business scene and realize difficulty and workload, for the quick of business
Extension with variation have better adaptability, allow IT system can preferably supporting business development.
In one embodiment, the second inventory change that above-mentioned inventory number to be increased and decreased is obtained also according to second server
Amount determines that the second inventory change amount is inventory change amount caused by stock control.
Using the scheme of the present embodiment, can further lifting scheme applicability.
Scheme to facilitate the understanding of the present invention is illustrated below by way of a specific example, in the specific example,
Be using by sales volume as the first above-mentioned inventory change amount, for order is made as above-mentioned inventory change business datum
It is illustrated, and is so that inventory's number synchronous method in above-described embodiment is applied to businessman ERP (Enterprise
Resource Planning System, enterprise management system) for be illustrated, but these are not constituted to the present invention program
Restriction.
In one SKU of data-base recording (unit that inventory passes in and out metering), inventory can sell quantity table to be updated, such as
SKU.id=1069 represents mineral water, and one shares 100 bottles, in the case where any sale does not occur, businessman ERP
(Enterprise Resource Planning System, enterprise management system) had pushed 100 to 3 sales platforms
A inventory, businessman ERP here are applied in above-mentioned second server or terminal, and 3 sales platforms are as above-mentioned three
First server, the mineral water of SKU.id=1069 represent above-mentioned target object;When sales platform 1 sells 1 goods, the order
After dropping back into businessman ERP again, then the inventory sale Service Processing Module in businessman ERP handles the order, while by the order phase
The SKU.id of pass, which is put into inventory, can sell quantity table to be updated (being equivalent to above-mentioned inventory's number table to be updated);Due to quotient to be recorded
Family ERP's sells quantitative value, and will also be in two values of data-base recording: the quantity of selling of commodity last time (be equivalent to above-mentioned
First total inventory's number), quantity (being equivalent to the total inventory's number of above-mentioned second) is sold in this calculating of the commodity;It can when calculating
The program for selling quantity reads the table there are when this SKU, can sell quantity to the inventory of the SKU and recalculate.Final quotient
Family ERP show that the quantity of selling of the commodity becomes 99 from 100.
Table 1SKU inventory can sell quantity table to be updated
SKU.id |
1069 |
…… |
1901 |
In this scenario, since the variation that can sell quantity is triggered by the sale of platform 1, the inventory that sells of platform 1 (is put down
Current inventory's number of platform 1) 99 are had been changed to, the inventory change of businessman ERP no longer needs to notification platform 1, but the inventory of platform 2 and 3
Still it is 100, needs that inventory is notified to reduce.The inventory change of sales platform bring is removed, as businessman ERP because stock-taking is found
Breaking damage of goods, can sell quantity from 100 becomes 99, then the sale that the inventory change in this scene needs to notify other all is flat
Platform.
It informs it can be seen that the inventory change of businessman ERP wants indiscriminate to all platforms, and the inventory of sales order becomes
It is dynamic, it informs to when corresponding to platform, to reduce the corresponding sales volume of the platform.Finally, propose that each platform updates inventory's
Computation model is as follows:
Diffpti=Qtythis-time-erp-Qtylast-time-erp+SaleOrderperiod-pti (6)
Wherein, DiffptiIndicate that corresponding sales platform i needs the difference value updated (to be equivalent to above-mentioned inventory and wait for fluctuation number
Mesh), Qtythis-time-erpIndicate that this quantitative value of selling for calculating the commodity of businessman ERP (is equivalent to the total inventory of above-mentioned second
Number), Qty in this scenethis-time-erp=99, Qtylast-time-erpIndicate the businessman ERP last computation commodity and record can
It sells quantitative value (being equivalent to the total inventory's number of above-mentioned first), Qty in this scenelast-time-erp=100;
SaleOrderperiod-ptiThe SKU is indicated in from last computation to this calculating, the sales order number that sales platform i is generated is (i.e.
Sales volume is equivalent to the first above-mentioned inventory change amount), it finally obtains:
Diffpt1=0
Diffpt2=-1
Diffpt3=-1
After calculating, Qty is updatedlast-time-erp=99.
Since multiple platforms may all be sold, in the interval of calculating, multiple sale, which can also occur, for single platform is ordered
Single generation, therefore increase a table: sales order record scratch list (it is temporary to be equivalent to above-mentioned inventory change business datum
Table), table structure is as shown in table 2:
2 sales order of table records scratch list
Sales order number id | SKU.id | Sales platform id | Sales volume |
A001 | 1069 | Platform 1 | 3 |
B003 | 1069 | Platform 2 | 8 |
B004 | 1069 | Platform 2 | 10 |
It is known that Qtylast-time-erp=99;
Since selling operation has occurred, 1069 this SKU.id, which enter inventory, can sell quantity table to be updated.
3 inventory of table can sell quantity table to be updated
SKU.id |
1072 |
..... |
1069 |
1090 |
During this SKU progress can sell quantity and calculate next time, by the sale of the businessman ERP each platform received
For order record into sales order record scratch list, these three orders are A001, B003, B004 respectively, while wherein also being occurred
Stock-taking finds breaking damage of goods, and to need to cut 5 can sell quantity.
After the update of stockpile number is calculated to this SKU of id=1069, the variation of quantity can be sold by calculating this, be had been calculated
Other 1069 records in this update table are deleted after finishing;It is brought since this scene has merged multiple platforms with businessman ERP
The scene of inventory change, according to inventory's update method set forth above, i.e. Diffpti=Qtythis-time-erp-Qtylast-time-erp+
SaleOrderperiod-pti, it is as follows to finally obtain stockpile number synchronous needed for each sales platform:
Businessman ERP | Platform 1 | Platform 2 | Platform 3 | |
Qtylast-time-erp | 99 | 99 | 99 | 99 |
SaleOrderperiod-pti | ————— | 3 | 18 | 0 |
Qtythis-time-erp | 73 | 73 | 73 | 73 |
Diffpti | ————— | -23 | -8 | -26 |
After this inventory change updates, by Qtylast-time-erp=73.
Sales order record scratch list is emptied, management business or selling operation next time is waited to trigger new inventory more
Newly.The synchronous process flow signal of inventory is as shown in FIG. 6 and 7.Specifically, as shown in fig. 6, sales order record scratch list and
Inventory can sell the record process of quantity table to be updated, may include steps of:
Step 602, businessman EPR, which is detected, occurs inventory change business;
Here, inventory change business can be inventory management business or inventory sale business.
Step 604, whether detection inventory change business is inventory sale business, if so, 606 are entered step, if it is not, then
Enter step 608;
Step 606, the relevant information of order is charged into sales order record scratch list;
Step 608, SKU.id being charged to inventory can sell quantity table to be updated.
As shown in fig. 7, multi-platform inventory with step number calculating and can to sell the more new technological process of quantitative value may include as follows
Step:
Step 702, detection inventory can sell whether quantity table to be updated has data, if so, S704 is entered step, if it is not,
Then terminate this process;
Step 704, a SKU is chosen to be handled;
Specifically, the identification information that quantity table to be updated chooses a cargo can be sold from inventory.
Step 706, quantity can be sold by calculating this;
Here, this can sell quantity and be equivalent to the total inventory's number of above-mentioned second;
Step 708, the SKU in quantity table to be updated can be sold by deleting inventory;
Step 710, the sales order and sales volume under the SKU are grabbed in sales order record scratch list;
Step 712, the quantity that each platform should synchronize is calculated according to above-mentioned formula (6);
Here, it should which synchronous quantity is equivalent to above-mentioned inventory number to be increased and decreased;
Step 714, the quantity of selling of each platform is synchronized, the record of the SKU in sales order record scratch list is deleted, and
This can be sold to quantity and be assigned to last time can sell quantity.
According to the deduction of this compound scene, which can be according to different business scenarios, and being calculated for difference is multiple
The quantity of the corresponding different inventory changes of platform, and without doing specially treated to single platform, the ability with general procedure.
When businessman ERP also needs Rapid Expansion others platform, which is still applicable in.
Simultaneously as there are certain delays to businessman ERP for the order notification of sales platform generation, it can be in businessman ERP
Total stock model reserves certain safety inventory, replenishes and reduce in advance between platform as reminding business source of goods deficiency because concurrent
It sells goods and causes situation out of stock.
It should be understood that although each step in the flow chart of Fig. 3-7 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 3-7
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 8, providing a kind of inventory's number synchronizing device, comprising: acquisition module 802,
First processing module 804, Second processing module 806 and the first sending module 808, in which:
Module 802 is obtained, for obtaining first inventory change of each first server of target object in objective time interval
Amount, the objective time interval are that last time inventory number is synchronized to this inventory's number synchronous period;
First processing module 804, for determining second according to first total inventory's number and each first inventory change amount
Total inventory's number, first total inventory's number are total inventory's number after last time inventory number synchronizes, second total inventory
Number is total inventory's number when this inventory's number is synchronous;
Second processing module 806, for according to described first total inventory's number, second total inventory's number and each described
First inventory change amount determines inventory's number to be increased and decreased of each first server respectively;
First sending module 808, for each inventory's number to be increased and decreased to be sent respectively to corresponding first server
It is synchronous to carry out this inventory's number.
Module 802 is obtained in one of the embodiments, is also used to obtain second library of the target object in objective time interval
Variation is deposited, the second inventory change amount is inventory change amount caused by stock control;First processing module 804 is according to each first
Inventory change amount and the second inventory change amount, determine total inventory change amount, according to total inventory change amount and first total inventory's number,
Determine second total inventory's number.
Above-mentioned inventory's number synchronizing device further includes reminding module in one of the embodiments, which uses
In in second total inventory's number inventory's number total lower than preset safety, generates and mend inventory's prompt information.
Obtaining module 802 in one of the embodiments, can receive the inventory change business datum of each first server,
The identification information for extracting the inventory change object in inventory change business datum stores inventory change business datum to preset
In inventory change business datum scratch list, by the identification information of inventory change object, inventory's number table to be updated is arrived in storage, in root
When determining that carrying out inventory's number to target object synchronizes according to inventory's number table to be updated, from inventory change business datum scratch list
It obtains the base stock in objective time interval and changes business datum, base stock changes the inventory change that business datum is target object
Business datum changes business datum according to base stock, determines the of each first server of target object in objective time interval
One inventory change amount.
Obtaining module 802 in one of the embodiments, can also record at the first time, at the first time in target object
Last time inventory's number synchronize after, the time of the first inventory change business datum of the target object received, when according to first
Between determine that the second time, the second time are at the beginning of this inventory's number of target object is synchronous.
Above-mentioned acquisition module 802 can be according to first time, first inventory change business in one of the embodiments,
The quantity of the corresponding inventory's reduction amount of data, this inventory's number synchronization time of last time and first server, when determining second
Between.
In one embodiment, as shown in figure 9, providing a kind of inventory's number synchronizing device, comprising: the second sending module
902, receiving module 904 and synchronization module 906, in which:
Second sending module 902, for the inventory change business datum of target object to be sent to the second of target object
Server or terminal;
Receiving module 904, for receiving inventory's number to be increased and decreased of second server or terminal return, inventory waits increasing and decreasing
Number is true according to the inventory change business datum of first total inventory's number of target object and each first server of target object
Fixed, first total inventory's number is total inventory's number after last time inventory number synchronizes;
Synchronization module 906, it is synchronous for carrying out this inventory's number according to inventory's number to be increased and decreased.
Specific about inventory's number synchronizing device limits the limit that may refer to above for inventory's number synchronous method
Fixed, details are not described herein.Modules in above-mentioned inventory's number synchronizing device can fully or partially through software, hardware and its
Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with
It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding
Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is used to store the related data of inventory change business.The network interface of the computer equipment is used for and outside
Terminal by network connection communication.To realize a kind of inventory's number synchronous method when the computer program is executed by processor.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in figure 11.The computer equipment includes the processor connected by system bus, memory, network interface, shows
Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment
Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer
Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter
The network interface for calculating machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor
To realize a kind of inventory's number synchronous method.The display screen of the computer equipment can be liquid crystal display or electric ink is aobvious
Display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment shell
Key, trace ball or the Trackpad of upper setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 10 and Figure 11, only related to the present invention program
Part-structure block diagram, do not constitute the restriction for the computer equipment being applied thereon to the present invention program, it is specific to count
Calculating machine equipment may include perhaps combining certain components or with different portions than more or fewer components as shown in the figure
Part arrangement.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor perform the steps of when executing computer program
First inventory change amount of each first server of target object in objective time interval is obtained, objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total inventory are determined
Mesh is total inventory's number after last time inventory number synchronizes, and second total inventory's number is total inventory when this inventory's number is synchronous
Number;
According to first total inventory's number, second total inventory's number and each first inventory change amount, each first clothes are determined respectively
Inventory's number to be increased and decreased of business device;
Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
Acquisition target object is also performed the steps of when processor executes computer program in one of the embodiments,
The second inventory change amount in objective time interval, the second inventory change amount are inventory change amount caused by stock control;
Processor execute computer program realize it is above-mentioned according to first total inventory's number and each first inventory change amount,
When determining second total inventory purpose step, following steps are implemented: being become according to each first inventory change amount and the second inventory
Momentum determines total inventory change amount, according to total inventory change amount and first total inventory's number, determines second total inventory's number.
It also performs the steps of when processor executes computer program in one of the embodiments, in second total inventory
When number is lower than preset safety total inventory's number, generates and mend inventory's prompt information.
Processor is in execute that computer program realizes above-mentioned acquisition target object each the in one of the embodiments,
When the step of first inventory change amount of one server in objective time interval, implements following steps: receiving each first service
The inventory change business datum of device extracts the identification information of the inventory change object in inventory change business datum;Inventory is become
Dynamic business datum storage is into preset inventory change business datum scratch list;By the identification information of inventory change object, storage
To inventory's number table to be updated;When determining that carrying out inventory's number to target object synchronizes according to inventory's number table to be updated, from
The base stock in objective time interval is obtained in inventory change business datum scratch list and changes business datum, and base stock changes business
Data are the inventory change business datum of target object;Business datum is changed according to base stock, determines each the of target object
First inventory change amount of one server in objective time interval.
Processor is in execute that computer program realizes above-mentioned acquisition target object each the in one of the embodiments,
When the step of first inventory change amount of one server in objective time interval, record is specifically also performed the steps of at the first time,
It is at the first time the first inventory change business number of the target object received after last time inventory's number of target object synchronizes
According to time;Determine that the second time, the second time are the synchronous beginning of this inventory's number of target object according to first time
Time.
Processor above-mentioned determines the according to first time executing computer program and realize in one of the embodiments,
When the step of two times, following steps are implemented: being subtracted according to first time, the corresponding inventory of first inventory change business datum
On a small quantity, the quantity of this inventory's number synchronization time of last time and first server, determined for the second time.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor perform the steps of when executing computer program
The inventory change business datum of target object is sent to the second server or terminal of target object;
Inventory's number to be increased and decreased of second server or terminal return is received, inventory's number to be increased and decreased is according to target object
First total inventory's number and target object each first server inventory change business datum determine, first total inventory's number
Total inventory's number after being synchronized for last time inventory's number;
It is synchronous that this inventory's number is carried out according to inventory's number to be increased and decreased.
The second inventory that above-mentioned inventory number to be increased and decreased is obtained also according to second server in one of the embodiments,
Variation determines that the second inventory change amount is inventory change amount caused by stock control.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
First inventory change amount of each first server of target object in objective time interval is obtained, objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total inventory are determined
Mesh is total inventory's number after last time inventory number synchronizes, and second total inventory's number is total inventory when this inventory's number is synchronous
Number;
According to first total inventory's number, second total inventory's number and each first inventory change amount, each first clothes are determined respectively
Inventory's number to be increased and decreased of business device;
Each inventory number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
Processor computer program, which is performed also to perform the steps of, in one of the embodiments, obtains target pair
As the second inventory change amount in objective time interval, the second inventory change amount is inventory change amount caused by stock control;
Processor computer program be performed realize it is above-mentioned according to first total inventory's number and each first inventory change
Amount when determining second total inventory purpose step, implements following steps: according to each first inventory change amount and the second inventory
Variation determines total inventory change amount, according to total inventory change amount and first total inventory's number, determines second total inventory's number.
Processor computer program, which is performed, in one of the embodiments, also performs the steps of in second total library
When depositing number lower than the total inventory's number of preset safety, generates and mend inventory's prompt information.
Processor is performed in computer program and realizes each of above-mentioned acquisition target object in one of the embodiments,
When the step of first inventory change amount of the first server in objective time interval, following steps are implemented: receiving each first clothes
The inventory change business datum of business device, extracts the identification information of the inventory change object in inventory change business datum;By inventory
Business datum storage is changed into preset inventory change business datum scratch list;By the identification information of inventory change object, deposit
Store up inventory's number table to be updated;When determining that carrying out inventory's number to target object synchronizes according to inventory's number table to be updated,
Business datum is changed from the base stock obtained in objective time interval in inventory change business datum scratch list, base stock changes industry
Data of being engaged in are the inventory change business datum of target object;Business datum is changed according to base stock, determines each of target object
First inventory change amount of the first server in objective time interval.
Processor is performed in computer program and realizes each of above-mentioned acquisition target object in one of the embodiments,
When the step of first inventory change amount of the first server in objective time interval, when specifically also performing the steps of record first
Between, after being synchronized at the first time for last time inventory's number in target object, the first inventory change industry of the target object received
The time for data of being engaged in;Determine that the second time, the second time are that this inventory's number of target object is synchronous according to first time
Time started.
In one of the embodiments, processor computer program be performed realize it is above-mentioned according to first time determine
When the step of the second time, following steps are implemented: according to first time, the corresponding inventory of first inventory change business datum
The quantity of reduction amount, this inventory's number synchronization time of last time and first server, determined for the second time.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
The inventory change business datum of target object is sent to the second server or terminal of target object;
Inventory's number to be increased and decreased of second server or terminal return is received, inventory's number to be increased and decreased is according to target object
First total inventory's number and target object each first server inventory change business datum determine, first total inventory's number
Total inventory's number after being synchronized for last time inventory's number;
It is synchronous that this inventory's number is carried out according to inventory's number to be increased and decreased.
The second inventory that above-mentioned inventory number to be increased and decreased is obtained also according to second server in one of the embodiments,
Variation determines that the second inventory change amount is inventory change amount caused by stock control.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided by the present invention,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), even numbers mesh rate SDRAM (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (12)
1. a kind of inventory's number synchronous method, which is characterized in that the described method includes:
First inventory change amount of each first server of target object in objective time interval is obtained, the objective time interval is last time
Inventory's number is synchronized to this inventory's number synchronous period;
According to first total inventory's number and each first inventory change amount, second total inventory's number, first total library are determined
Depositing number is total inventory's number after last time inventory number synchronizes, when second total inventory's number is that this inventory's number is synchronous
Total inventory's number;
According to described first total inventory's number, second total inventory's number and each first inventory change amount, determine respectively
Inventory's number to be increased and decreased of each first server;
Each inventory's number to be increased and decreased is sent respectively to corresponding first server and carries out the synchronization of this inventory's number.
2. the method according to claim 1, wherein the method also includes obtaining the target object in institute
The second inventory change amount in objective time interval is stated, the second inventory change amount is inventory change amount caused by stock control;
It is described according to first total inventory's number and each first inventory change amount, determine second total inventory's number, comprising: according to
Each first inventory change amount and the second inventory change amount, determine total inventory change amount, according to total inventory change
Amount and described first total inventory's number, determine second total inventory's number.
3. the method according to claim 1, wherein the method also includes in described second total inventory's number
When inventory's number total lower than preset safety, generates and mend inventory's prompt information.
4. the method according to claim 1, wherein each first server for obtaining target object is in target
The first inventory change amount in period, comprising:
The inventory change business datum for receiving each first server extracts the inventory change pair in the inventory change business datum
The identification information of elephant;
By inventory change business datum storage into preset inventory change business datum scratch list;
By the identification information of the inventory change object, inventory's number table to be updated is arrived in storage;
When determining that carrying out inventory's number to the target object synchronizes according to inventory's number table to be updated, from the inventory
It changes the base stock obtained in the objective time interval in business datum scratch list and changes business datum, the base stock changes
Business datum is the inventory change business datum of the target object;
Business datum is changed according to the base stock, determines each first server of the target object in objective time interval
First inventory change amount.
5. according to the method described in claim 4, it is characterized in that, each first server for obtaining target object is in target
The first inventory change amount in period, further includes:
At the first time, the first time is the institute that receives after last time inventory's number of the target object synchronizes to record
State the time of the first inventory change business datum of target object;
Determine that the second time, second time are that this inventory's number of the target object is synchronous according to the first time
At the beginning of.
6. according to the method described in claim 5, it is characterized in that, described determined for the second time according to the first time, packet
It includes:
According to the first time, the corresponding inventory's reduction amount of the first inventory change business datum, this inventory of last time
The quantity of mesh synchronization time and the first server determines second time.
7. a kind of inventory's number synchronous method, which is characterized in that the described method includes:
The inventory change business datum of target object is sent to the second server or terminal of the target object;
Receive inventory's number to be increased and decreased that the second server or the terminal return, inventory's number to be increased and decreased according to
The inventory change business datum of the total inventory's number of the first of the target object and each first server of the target object is true
Fixed, first total inventory's number is total inventory's number after last time inventory number synchronizes;
It is synchronous that this inventory's number is carried out according to inventory number to be increased and decreased.
8. inventory's number synchronous method according to claim 7, which is characterized in that inventory's number to be increased and decreased also according to
The second inventory change amount that the second server obtains determines that the second inventory change amount is library caused by stock control
Deposit variation.
9. a kind of inventory's number synchronizing device, which is characterized in that described device includes:
Module is obtained, it is described for obtaining first inventory change amount of each first server of target object in objective time interval
Objective time interval is that last time inventory number is synchronized to this inventory's number synchronous period;
First processing module, for determining second total inventory according to first total inventory's number and each first inventory change amount
Number, first total inventory's number are total inventory's number after last time inventory number synchronizes, and second total inventory's number is
Total inventory's number when this inventory's number is synchronous;
Second processing module, for according to described first total inventory's number, second total inventory's number and each first library
Variation is deposited, determines inventory's number to be increased and decreased of each first server respectively;
First sending module carries out this for each inventory's number to be increased and decreased to be sent respectively to corresponding first server
Inventory's number is synchronous.
10. a kind of inventory's number synchronizing device, which is characterized in that described device includes:
Second sending module is sent to the second service of the target object for the inventory change business datum by target object
Device or terminal;
Receiving module, for receiving inventory's number to be increased and decreased of the second server or terminal return, the inventory
Number to be increased and decreased is according to the inventory of first total inventory's number of the target object and each first server of the target object
It changes business datum to determine, first total inventory's number is total inventory's number after last time inventory number synchronizes;
Synchronization module, it is synchronous for carrying out this inventory's number according to inventory number to be increased and decreased.
11. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 8 institute when executing the computer program
The step of stating method.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any item of the claim 1 to 8 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910367774.0A CN110188139B (en) | 2019-05-05 | 2019-05-05 | Stock number synchronization method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910367774.0A CN110188139B (en) | 2019-05-05 | 2019-05-05 | Stock number synchronization method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110188139A true CN110188139A (en) | 2019-08-30 |
CN110188139B CN110188139B (en) | 2021-10-22 |
Family
ID=67715621
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910367774.0A Active CN110188139B (en) | 2019-05-05 | 2019-05-05 | Stock number synchronization method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110188139B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113327073A (en) * | 2019-12-30 | 2021-08-31 | 上海尊溢商务信息咨询有限公司 | Efficient configurable e-commerce full-quantity inventory synchronization method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636933A (en) * | 2015-02-11 | 2015-05-20 | 广州唯品会信息科技有限公司 | Method and device for positioning oversell reasons of e-commerce website |
CN104699712A (en) * | 2013-12-09 | 2015-06-10 | 阿里巴巴集团控股有限公司 | Method and device for updating stock record information in database |
CN104881767A (en) * | 2015-05-14 | 2015-09-02 | 努比亚技术有限公司 | Method and system for inventory management based on multi-inventory system |
CN104967650A (en) * | 2015-02-06 | 2015-10-07 | 北京海涛国际旅行社有限公司 | Third-party e-commerce platform unified releasing method |
CN105956120A (en) * | 2016-05-05 | 2016-09-21 | 北京票之家科技有限公司 | Product inventory update method and device |
CN106557482A (en) * | 2015-09-25 | 2017-04-05 | 阿里巴巴集团控股有限公司 | A kind of inventory system data-updating method and device |
CN107730191A (en) * | 2017-11-27 | 2018-02-23 | 中山路得斯空调有限公司 | A kind of safe shared interconnection type inventory management system |
-
2019
- 2019-05-05 CN CN201910367774.0A patent/CN110188139B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104699712A (en) * | 2013-12-09 | 2015-06-10 | 阿里巴巴集团控股有限公司 | Method and device for updating stock record information in database |
CN104967650A (en) * | 2015-02-06 | 2015-10-07 | 北京海涛国际旅行社有限公司 | Third-party e-commerce platform unified releasing method |
CN104636933A (en) * | 2015-02-11 | 2015-05-20 | 广州唯品会信息科技有限公司 | Method and device for positioning oversell reasons of e-commerce website |
CN104881767A (en) * | 2015-05-14 | 2015-09-02 | 努比亚技术有限公司 | Method and system for inventory management based on multi-inventory system |
CN106557482A (en) * | 2015-09-25 | 2017-04-05 | 阿里巴巴集团控股有限公司 | A kind of inventory system data-updating method and device |
CN105956120A (en) * | 2016-05-05 | 2016-09-21 | 北京票之家科技有限公司 | Product inventory update method and device |
CN107730191A (en) * | 2017-11-27 | 2018-02-23 | 中山路得斯空调有限公司 | A kind of safe shared interconnection type inventory management system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113327073A (en) * | 2019-12-30 | 2021-08-31 | 上海尊溢商务信息咨询有限公司 | Efficient configurable e-commerce full-quantity inventory synchronization method and system |
CN113327073B (en) * | 2019-12-30 | 2024-04-26 | 上海尊溢商务信息咨询有限公司 | High-efficiency configurable e-commerce full inventory synchronization method and system |
Also Published As
Publication number | Publication date |
---|---|
CN110188139B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110363454B (en) | Method and device for determining commodity replenishment quantity | |
CN109840734A (en) | Information output method and device | |
US8126784B1 (en) | Automatically initiating product replenishment | |
CN110276571A (en) | Cargo dispatching method and device and computer readable storage medium | |
CN109300003A (en) | Enterprise's recommended method, device, computer equipment and storage medium | |
CN107798057B (en) | Transaction data processing method, device, storage medium and computer equipment | |
Özdemir et al. | Multi-location transshipment problem with capacitated production | |
CN111915238A (en) | Method and device for processing orders | |
CN107451918B (en) | Asset data management method and device | |
CN109409865B (en) | Payment quota synchronous adjustment method, device, computer equipment and storage medium | |
US20160148226A1 (en) | System and method for forecasting and managing returned merchanidse in retail | |
CN108921654A (en) | Order data processing method, device and computer readable storage medium | |
US8069086B2 (en) | Systems and methods for time-dependent protection of available quantities | |
CN115689451A (en) | Method, device, terminal and medium for determining replenishment quantity of off-line retail store | |
CN111985862A (en) | Method and apparatus for locating inventory items | |
CN113627847A (en) | Method and device for generating replenishment list | |
CN107679783A (en) | Inventory management method, device and equipment | |
CN110188139A (en) | Inventory's number synchronous method, device, computer equipment and storage medium | |
Das et al. | Order fulfillment under pick failure in omnichannel ship-from-store programs | |
Krever et al. | Inventory control based on advanced probability theory, an application | |
CN109102223A (en) | A kind of method of the quick outbound of services package | |
CN110321242A (en) | Data processing method and device | |
CN114219247A (en) | Processing method and device of equipment consumables, computer equipment and storage medium | |
US20160140585A1 (en) | System and method for managing extra calendar periods in retail | |
CN115687350A (en) | Index construction 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 |