CN110019330A - Information output method and device - Google Patents
Information output method and device Download PDFInfo
- Publication number
- CN110019330A CN110019330A CN201710801348.4A CN201710801348A CN110019330A CN 110019330 A CN110019330 A CN 110019330A CN 201710801348 A CN201710801348 A CN 201710801348A CN 110019330 A CN110019330 A CN 110019330A
- Authority
- CN
- China
- Prior art keywords
- order
- inventory
- article
- stored
- caching
- 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
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/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
- G06F16/24534—Query rewriting; Transformation
- G06F16/24539—Query rewriting; Transformation using cached or materialised query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/087—Inventory or stock management, e.g. order filling, procurement or balancing against orders
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0639—Item locations
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Economics (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Tourism & Hospitality (AREA)
- Quality & Reliability (AREA)
- Operations Research (AREA)
- Entrepreneurship & Innovation (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
This application discloses information output methods and device.One specific embodiment of this method includes: the order set to be processed for obtaining and being stored in advance in the buffer;Inventory information set is read into caching from for the stored inventory database of repository;For each order in order set, according to each inventory information stored in caching determine with the matched article storage location of the order and with the matched article inventory amount of the order;For each order in order set, if the article inventory amount corresponding with the matched article storage location of the order stored in inventory database is not less than and the matched article inventory amount of the order, then according to the matched article storage location of the order and with the inventory information in the order matched article inventory amount modification inventory database, and export with the matched article storage location of the order and with the matched article inventory amount of the order.This embodiment, reduces the numbers for reading inventory database, improve location efficiency.
Description
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly to information output method
And device.
Background technique
With the extensive and deep development of internet industry, shopping online is adopted by more and more crowds.User exists
After online shopping mall places an order, order information can descend into the warehousing system platform in electric business logistics system, which can assist in storehouse
Library operating personnel determines specific location of the commodity in warehouse in order, and is finally completed the dispatching of commodity, searches quotient in warehouse
This process of product position is referred to as positioning.Being located in warehouse production link is an important step, plays to hold and open
Under effect, after the completion of positioning, commodity are distributed to client by common carrier.
After warehouse operation personnel operate positioning, warehousing system in the database, then uses order record to be allocated
Asynchronous system is randomly assigned.Concurrent fashion is used when asynchronous tracking, in different orders, when comprising identical commodity, to same
The inventory of commodity generates competition and needs repeatedly to run after competition failure, could complete positioning.It results in the need for repeated multiple times
Reading database, to reduce the efficiency of positioning.
Summary of the invention
The purpose of the embodiment of the present application is to propose a kind of information output method and device, to solve background above technology department
Divide the technical issues of mentioning.
In a first aspect, the embodiment of the present application provides a kind of information output method, it is stored in advance in this method comprises: obtaining
Order set to be processed in caching, wherein each order includes Item Title and article demand in order set;From with
Inventory information set is read into caching in the stored inventory database of repository, wherein every library in inventory information set
Depositing information includes article storage location, Item Title and the corresponding article inventory amount of article storage location;For in order set
Each order executes following allocation step: being determined and the matched article of the order according to each inventory information stored in caching
Storage location and with the matched article inventory amount of the order;If what is stored in inventory database stores with the matched article of the order
The corresponding article inventory amount in position be not less than with the matched article inventory amount of the order, then according to being deposited with the matched article of the order
Storage space sets and modifies the inventory information in inventory database with the matched article inventory amount of the order, and exports and match with the order
Article storage location and with the matched article inventory amount of the order.
In some embodiments, before obtaining the order set to be processed being stored in advance in the buffer, this method is also
Include: in response to receiving order, by indent queue in received order deposit caching tail of the queue.
In some embodiments, order includes distribution time;And in the buffer to be processed is stored in advance obtaining
Before order set, this method further include: in response to receiving order, by indent queue in received order deposit caching
So that the order in indent queue is sorted according to distribution time by the sequence after arriving first.
In some embodiments, it determines to store with the matched article of the order according to each inventory information stored in caching
Position and with the matched article inventory amount of the order, comprising: according to the article demand of each order generate aggregate demand scale,
In, aggregate demand scale is used to characterize the corresponding relationship of Item Title and the corresponding article demand summation of Item Title;According to slow
The article inventory amount of every inventory information generates total inventory's scale in the inventory information set of storage, wherein total quantity in stock
Table is used to characterize the corresponding relationship of Item Title and the corresponding article inventory amount summation of Item Title;For every in aggregate demand scale
A Item Title, if the corresponding article inventory amount summation of the Item Title is total not less than the corresponding article demand of the Item Title
With, it is determined that the corresponding article storage location of the Item Title and article inventory amount;For each order in order set, if should
Each Item Title of order has had confirmed corresponding article storage location and article inventory amount, then updates and store in caching
Inventory information set in article storage location corresponding with each Item Title of the order and article in every inventory information
Quantity in stock.
In some embodiments, this method further include: if what is stored in inventory database deposits with the matched article of the order
Storage space set corresponding article inventory amount be less than with the matched article inventory amount of the order, then again from inventory database read inventory
Information aggregate is into caching and repeats above-mentioned allocation step.
In some embodiments, this method further include: in response to detecting that the journal file of inventory database changes,
The inventory information set of variation is read into caching from inventory database according to journal file.
Second aspect, the embodiment of the present application provide a kind of information output apparatus, which includes: acquiring unit, are used for
Obtain and order set to be processed in the buffer be stored in advance, wherein in order set each order include Item Title and
Article demand;Reading unit, for reading inventory information set to caching from for the stored inventory database of repository
In, wherein every inventory information includes that article storage location, Item Title and article storage location are corresponding in inventory information set
Article inventory amount;Positioning unit, for executing following allocation step: according in caching for each order in order set
Storage each inventory information determine with the matched article storage location of the order and with the matched article inventory amount of the order;If
The article inventory amount corresponding with the matched article storage location of the order stored in inventory database is not less than and the order
The article inventory amount matched then is modified according to the matched article storage location of the order and with the matched article inventory amount of the order
Inventory information in inventory database, and export with the matched article storage location of the order and with the matched article library of the order
Storage.
In some embodiments, which further includes the first storage unit, is used for: being stored in advance in the buffer obtaining
Before order set to be processed, in response to receiving order, by indent queue in received order deposit caching team
Tail.
In some embodiments, order includes distribution time;And device further includes the second storage unit, is used for: being obtained
Before taking the order set to be processed being stored in advance in the buffer, in response to receiving order, the received order of institute is stored in
Indent queue in caching makes the order in indent queue be sorted according to distribution time by the sequence after arriving first.
In some embodiments, positioning unit is further used for: generating aggregate demand according to the article demand of each order
Table, wherein aggregate demand scale is used to characterize the corresponding relationship of Item Title and the corresponding article demand summation of Item Title;Root
Total inventory's scale is generated according to the article inventory amount of every inventory information in the inventory information set stored in caching, wherein total library
Storage table is used to characterize the corresponding relationship of Item Title and the corresponding article inventory amount summation of Item Title;For aggregate demand scale
In each Item Title, if the corresponding article inventory amount summation of the Item Title be not less than the corresponding article demand of the Item Title
Measure summation, it is determined that the corresponding article storage location of the Item Title and article inventory amount;For each order in order set,
If each Item Title of the order has had confirmed corresponding article storage location and article inventory amount, update in caching
In the inventory information set of storage in every inventory information article storage location corresponding with each Item Title of the order and
Article inventory amount.
In some embodiments, reading unit is further used for: if what is stored in inventory database is matched with the order
The corresponding article inventory amount of article storage location be less than with the matched article inventory amount of the order, then again from inventory database read
Take inventory information set into caching;And positioning unit is further used for repeating above-mentioned allocation step.
In some embodiments, which further includes inventory's updating unit, is used for: in response to detecting inventory database
Journal file changes, and reads the inventory information set of variation into caching from inventory database according to journal file.
The third aspect, the embodiment of the present application provide a kind of server, comprising: one or more processors;Storage device,
For storing one or more programs, when one or more programs are executed by one or more processors, so that one or more
Processor is realized such as method any in first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey
Sequence is realized when the program is executed by processor such as method any in first aspect.
Information output method and device provided by the embodiments of the present application, by reading the inventory information of inventory database
In caching, according to the inventory information stored in caching to order needed for article position, to avoid in position fixing process
Inventory database is read repeatedly, therefore improves the efficiency of positioning.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the information output method of the application;
Fig. 3 a, 3b, 3c, 3d are the schematic diagrames according to an application scenarios of the information output method of the application;
Fig. 4 is the flow chart according to another embodiment of the information output method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the information output apparatus of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the exemplary system of the embodiment of the information output method or information output apparatus of the application
System framework 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out
Send message etc..Various telecommunication customer end applications, such as dispatching application, webpage can be installed on terminal device 101,102,103
Browser application, shopping class application, searching class application, instant messaging tools, mailbox client, social platform software etc..
Terminal device 101,102,103 can be with display screen and support the various electronic equipments of information browse, packet
Include but be not limited to smart phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts
Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture
Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) it is player, on knee portable
Computer and desktop computer etc..
Server 105 can be to provide the server of various services, such as to showing on terminal device 101,102,103
Storage location, the storage quantity information of article needed for order provide the backstage location-server supported.Backstage location-server can
Analyze etc. processing to the data such as article Location Request needed for the order received, and by processing result (such as order institute
Need storage location, the storage quantity information of article) feed back to terminal device.
It should be noted that information output method provided by the embodiment of the present application is generally executed by server 105, accordingly
Ground, information output apparatus are generally positioned in server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 of one embodiment of the information output method according to the application is shown.The letter
Cease output method, comprising the following steps:
Step 201, the order set to be processed being stored in advance in the buffer is obtained.
In the present embodiment, the electronic equipment (such as server shown in FIG. 1) of information output method operation thereon can
To obtain order using the terminal of its operation that place an order from user by wired connection mode or radio connection, and
In the buffer by order storage.Each order has order number in order set, and each order includes Item Title and object
Product demand may include the demand information of at least one article in each order.For example, including H board pencil 5, B in order
2 pieces of board rubber.The caching can be Redis caching (one open source use standard C language write, supports network, can be based in
Depositing also can the log type of persistence, key value database).The single thread characteristic cached using Redis guarantees inventory information in memory
Consistency.It is spaced at predetermined time intervals, such as (untreated to order every the untreated queue in 10 seconds scanning Redis cachings
Singly it is stored in untreated queue), by the Item Title to be allocated for the order for needing to distribute in the order in untreated queue
It takes out and pre-processes with article demand, be stored in queue to be processed.
It, can be by the received order of institute in response to receiving order in some optional implementations of the present embodiment
The tail of the queue of indent queue in deposit caching, each untreated order form untreated queue.For example, by Redis caching
List data structure, when having new data to enter, using RPUSH, (all specified values of insertion, are being stored in list
Key tail portion) order the order for guaranteeing data processing.It is that will be ordered according to the time for receiving order by the sequence after arriving first at this time
Singly it is put into indent queue.The data structure of each of List (list) node uses String (character string) type: value
For order number order major key.
In some optional implementations of the present embodiment, order includes distribution time, for receiving for designated user
Time.The method of storage order include: in response to receiving order, by institute's received order deposit cache in indent queue make
The order obtained in indent queue is sorted according to distribution time by the sequence after arriving first, and each untreated order forms untreated team
Column.It is that order is put into indent queue by the sequence after arriving first according to the distribution time received in order at this time.For example, ordering
There are two order, order A distribution time is No. 99 points in single queue Central Plains, and order B distribution time is No. 9 16 points, and order A, which comes, to be ordered
Before single B, when receiving the order C that distribution time is 8 points No. 16, order C is come before order A and order B.
That is, new received order can jump the queue, dispatching timeliness thereby may be ensured that.If there is order specify distribution time, have
Order does not specify distribution time, then the order of not specified distribution time is stored in the end of indent queue.
Step 202, inventory information set is read into caching from for the stored inventory database of repository.
In the present embodiment, inventory database can be such as MySQL database (general relevant database).Inventory
Every inventory information includes article storage location, Item Title and the corresponding article inventory of article storage location in information aggregate
Amount, for example, storage space 1, H board pencil, inventory 20;Storage space 2, M board pencil, inventory 200;Storage space 3, H board rubber, inventory 20
Block.In this application, the inventory information in inventory database can regard physical holding of stock as, and the inventory information in caching can see it is valid
Real-time inventory.It is to be allocated by quasi real time inventory, and do not have to synchronize in real time and read inventory database when positioning order
Inventory information.It after inventory information reads caching, can be handled, the corresponding inventory information of identical article is stored in same
In chained list.For example, for the inventory information of H board pencil, it can be as shown in Figure 3c, same article can store in different positions,
The stockpile number of each position can also be different.
Step 203, each order in order set is determined to order with this according to each inventory information stored in caching
Single matched article storage location and with the matched article inventory amount of the order.
It in the present embodiment, can be according to each inventory information stored in caching rather than according to being stored in inventory database
Each inventory information is deposited according to the storage location that the sequence of queue to be processed in caching successively positions article listed by order with this
Storage space sets the quantity that should be taken out.For example, the storage information that stores includes: storage space 1 in caching, and H board pencil, inventory 20;Storage
Position 2, M board pencil, inventory 200;Storage space 3, H board rubber, 20 pieces of inventory;Storage space 4, H board pencil, inventory 200.Order packet
Include: H board pencil needs 100.100 H board pencils in storage space 4 can then be oriented.20 H boards in storage space 1 can also be oriented
80 H board pencils in pencil and storage space 4.The algorithm specifically positioned is determined according to the different demands of user.Storage can preferentially be emptied
The quantity in stock of position, or saving landed cost and as far as possible in a storage space picking.
In some optional implementations of the present embodiment, determines and be somebody's turn to do according to each inventory information stored in caching
The matched article storage location of order and with the matched article inventory amount of the order, comprising: according to the article demand of each order
Generate aggregate demand scale, wherein aggregate demand scale is for characterizing Item Title and the corresponding article demand summation of Item Title
Corresponding relationship;Total quantity in stock is generated according to the article inventory amount of every inventory information in the inventory information set stored in caching
Table, wherein total inventory's scale is used to characterize the corresponding relationship of Item Title and the corresponding article inventory amount summation of Item Title;It is right
Each Item Title in aggregate demand scale, if the corresponding article inventory amount summation of the Item Title is not less than the Item Title pair
The article demand summation answered, it is determined that the corresponding article storage location of the Item Title and article inventory amount;For order collection
Each order in conjunction, if each Item Title of the order has had confirmed corresponding article storage location and article inventory
Amount then updates corresponding with each Item Title of the order in every inventory information in the inventory information set stored in caching
Article storage location and article inventory amount.
Inventory information is subjected to polymerization processing, total inventory's scale is newly established by article, (is reflected using the Map that Redis is cached
Penetrate) data structure, data structure definition is as follows:
Article: { article inventory amount, data link table address }
Wherein, the opportunity of total inventory's scale maintenance is after inventory information is read caching, by the inventory of identical items
Information fusion together, updates article inventory amount and pointer in total inventory's scale in Redis caching.Number after finally arranging
It can be for example shown in Fig. 3 c according to structure.
Colliding when positioning in order to prevent to different orders causes positioning to fail, can be raw according to the article demand of each order
At aggregate demand scale.Then the storage location for meeting the article of each order is successively determined according to every kind of article of aggregate demand scale.That is,
It is unified to the order in currently pending queue to position, it avoids the occurrence of and the quantity in stock of certain article in the predetermined time is unsatisfactory for
All orders, and the case where quantity in stock is only distributed to some order, is not assigned to other orders.To each in queue to be processed
After each article positioning in order is completed, the distribution status indicator of order can be modified, positioning is successfully updated the distribution state
It is identified as success, when the shortage of stock, then it is failed for updating the distribution status indicator.As long as there is an article inventory in the order
Deficiency, even if other article inventories are sufficient, will the order distribution status indicator be it is failed, stop position the order, to
After inventory is enough, reposition.
Step 204, for each order in order set, determine stored in inventory database with the matched object of the order
Whether the corresponding article inventory amount of product storage location is less than and the matched article inventory amount of the order.
In the present embodiment, since the inventory information stored in caching is not that in real time, the inventory in caching believes
The actual inventory information that breath may be stored with inventory database is inconsistent.Only it can satisfy order in actual quantity in stock
The quantity in stock is distributed to order by Shi Caineng, otherwise the reallocation until actual quantity in stock, which increases to, can satisfy order.
Step 205, if the article inventory corresponding with the matched article storage location of the order stored in inventory database
Amount not less than with the matched article inventory amount of the order, then according to the matched article storage location of the order and with the order
Match article inventory amount modification inventory database in inventory information, and export with the matched article storage location of the order and with
The matched article inventory amount of the order.
In the present embodiment, it if actual inventory can satisfy order, just positions successfully, and is modified according to positioning result
The corresponding quantity in stock of the storage location having had good positioning is subtracted amount required for order by actual inventory information.For example, slow
The storage information for depositing middle storage includes: storage space 1, H board pencil, and inventory 20.Order includes: H board pencil, needs 10.Then may be used
It orients in storage space 1 after 10 H board pencils, the inventory information in inventory database is revised as storage space 1, H board pencil, inventory 10
Branch.
With continued reference to Fig. 3 a-3d, Fig. 3 a-3d is shown according to one of the application scenarios of the information output method of the present embodiment
It is intended to.In the application scenarios of Fig. 3 a-3c, after above-mentioned electronic equipment receives the order that user is sent by terminal, order is put
In the untreated queue (not shown) for entering Redis caching 300.Then 10 seconds orders read in untreated queue at a predetermined interval
Item Title and article demand into queue 301 to be processed.As shown in Figure 3b, according to inventory database journal file 3021
Inventory information set 303 is read into Redis caching 300 from for the stored inventory database 302 of repository.Such as Fig. 3 c institute
Show, inventory information set is with the storage of chain sheet form, and inventory information has been organized and has generated data structure as shown in Figure 3d.
Inventory to be offered is needed according to the position He the position that inventory information set 303 is determined to each article in queue 301 to be processed
Amount.When the quantity in stock of article meets order demand amount, the inventory information in inventory database 302, and output and order are modified
The location information 304 of matched each article, wherein location information include article storage location and with the matched article inventory of order
Amount.
The method provided by the above embodiment of the application passes through using the inventory information read in caching to needed for order
Article positioned, reduce the number interacted with inventory database, mitigate database access pressure, improve positioning effect
Rate.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of information output method.Information output
The process 400 of method, comprising the following steps:
Step 401, the order set to be processed being stored in advance in the buffer is obtained.
Step 402, inventory information set is read into caching from for the stored inventory database of repository.
Step 403, each order in order set is determined to order with this according to each inventory information stored in caching
Single matched article storage location and with the matched article inventory amount of the order.
Step 404, for each order in order set, determine stored in inventory database with the matched object of the order
Whether the corresponding article inventory amount of product storage location is less than and the matched article inventory amount of the order.
Step 401-404 and step 201-204 are essentially identical, therefore repeat no more.
Step 405, if the article corresponding with the matched article storage location of the order stored in the inventory database
Quantity in stock be less than with the matched article inventory amount of the order, then read inventory information set to described slow from inventory database again
In depositing and repeat above-mentioned allocation step.
In the present embodiment, since the inventory information stored in the inventory information and inventory database that store in caching may
It is inconsistent, it is therefore desirable to reload the inventory information stored in inventory database into caching.Above-mentioned steps 204- is executed again
205, until positioning successfully.
In some optional implementations of the present embodiment, in response to detecting that the journal file of inventory database occurs
Variation reads the inventory information set of variation into caching from inventory database according to journal file.It can not directly look into this way
Asking database may know that inventory information changes, and the inventory information synchronized update of variation can be reduced into caching
The inquiry pressure of inventory database.
Figure 4, it is seen that compared with the corresponding embodiment of Fig. 2, the process of the information output method in the present embodiment
400 highlight the inventory stored in the inventory information and inventory database when positioning failure to order, stored in synchronization caching
The step of information.To improve position success rate.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of outputs of information to fill
The one embodiment set, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to respectively
In kind electronic equipment.
As shown in figure 5, the information output apparatus 500 of the present embodiment includes: acquiring unit 501, reading unit 502 and positioning
Unit 503.Wherein, acquiring unit 501 is for obtaining the order set to be processed being stored in advance in the buffer, wherein order
Each order includes Item Title and article demand in set;Reading unit 502 is used for from for the stored library of repository
Inventory information set is read into caching in deposit data library, wherein every inventory information includes article storage in inventory information set
Position, Item Title and the corresponding article inventory amount of article storage location;Positioning unit 503 is used for for each in order set
Order executes following allocation step: determining to store with the matched article of the order according to each inventory information stored in caching
Position and with the matched article inventory amount of the order;If stored in inventory database with the matched article storage location of the order
Corresponding article inventory amount be not less than with the matched article inventory amount of the order, then according to and the matched article of the order store position
It sets and modifies the inventory information in inventory database with the matched article inventory amount of the order, and export and the matched object of the order
Product storage location and with the matched article inventory amount of the order.
In the present embodiment, the specific processing of the acquiring unit 501, reading unit 502 of information output apparatus 500 can be joined
Examine the step 201 and step 202 in Fig. 2 corresponding embodiment.The specific processing of positioning unit 503 can be with reference to the corresponding implementation of Fig. 2
Step 203, step 204 and step 205 in example.
In some optional implementations of the present embodiment, device 500 further includes the first storage unit (not shown), is used
In: before obtaining order set to be processed in the buffer being stored in advance, in response to receiving order, order institute is received
The tail of the queue of indent queue in single deposit caching.
In some optional implementations of the present embodiment, order includes distribution time;And device 500 further includes
Two storage unit (not shown), are used for: before obtaining the order set to be processed being stored in advance in the buffer, in response to connecing
Receive order, by indent queue in received order deposit caching make the order in indent queue according to distribution time by
Sequence sequence after arriving first.
In some optional implementations of the present embodiment, positioning unit 503 is further used for: according to the object of each order
Product demand generates aggregate demand scale, wherein aggregate demand scale is needed for characterizing Item Title and the corresponding article of Item Title
The corresponding relationship of the amount of asking summation;It is generated according to the article inventory amount of every inventory information in the inventory information set stored in caching
Total inventory's scale, wherein total inventory's scale is used to characterize pair of Item Title and the corresponding article inventory amount summation of Item Title
It should be related to;For each Item Title in aggregate demand scale, it is somebody's turn to do if the corresponding article inventory amount summation of the Item Title is not less than
The corresponding article demand summation of Item Title, it is determined that the corresponding article storage location of the Item Title and article inventory amount;
For each order in order set, if each Item Title of the order had confirmed corresponding article storage location and
Article inventory amount then updates each item name in the inventory information set stored in caching in every inventory information with the order
Claim corresponding article storage location and article inventory amount.
In some optional implementations of the present embodiment, reading unit 502 is further used for: if in inventory database
Storage article inventory amount corresponding with the matched article storage location of the order be less than with the matched article inventory amount of the order,
Then inventory information set is read into caching from inventory database again;And positioning unit 502 is further used for repeating
Above-mentioned allocation step.
In some optional implementations of the present embodiment, device 500 further includes inventory's updating unit (not shown), is used
In: in response to detecting that the journal file of inventory database changes, is read and changed from inventory database according to journal file
Inventory information set into caching.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the server for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Server shown in Fig. 6 is only an example, should not function and use scope band to the embodiment of the present application
Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include acquiring unit, reading unit and positioning unit.Wherein, the title of these units is not constituted under certain conditions to the unit
The restriction of itself, for example, acquiring unit is also described as, " order set to be processed in the buffer is stored in advance in acquisition
Unit ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: the order set to be processed being stored in advance in the buffer is obtained, wherein each order includes item name in order set
Claim and article demand;Inventory information set is read into caching from for the stored inventory database of repository, wherein library
Depositing every inventory information in information aggregate includes article storage location, Item Title and the corresponding article inventory of article storage location
Amount;For each order in order set, execute following allocation step: according to each inventory information stored in caching determine with
The matched article storage location of the order and with the matched article inventory amount of the order;If what is stored in inventory database orders with this
The corresponding article inventory amount of single matched article storage location be not less than with the matched article inventory amount of the order, then according to and this
The matched article storage location of order and with the inventory information in the order matched article inventory amount modification inventory database, and
Output with the matched article storage location of the order and with the matched article inventory amount of the order.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of information output method, which is characterized in that the described method includes:
Obtain the order set to be processed being stored in advance in the buffer, wherein each order includes object in the order set
The name of an article claims and article demand;
Inventory information set is read into the caching from for the stored inventory database of repository, wherein the inventory
Every inventory information includes article storage location, Item Title and the corresponding article inventory of article storage location in information aggregate
Amount;
For each order in the order set, following allocation step is executed:
According to each inventory information stored in the caching determine with the matched article storage location of the order and with the order
Matched article inventory amount;
If the article inventory amount corresponding with the matched article storage location of the order stored in the inventory database is not less than
With the matched article inventory amount of the order, then according to the matched article storage location of the order and with the matched article of the order
Quantity in stock modifies the inventory information in the inventory database, and exports with the matched article storage location of the order and order with this
Single matched article inventory amount.
2. the method according to claim 1, wherein in the buffer to be processed is stored in advance in the acquisition
Before order set, the method also includes:
In response to receiving order, by indent queue in received order deposit caching tail of the queue.
3. the method according to claim 1, wherein the order includes distribution time;And
Before order set to be processed in the buffer is stored in advance in the acquisition, the method also includes:
In response to receiving order, by the indent queue that is stored in the caching of received order make in the indent queue
Order according to distribution time by after arriving first sequence sort.
4. method described in one of -3 according to claim 1, which is characterized in that described according to each inventory stored in the caching
Information determine with the matched article storage location of the order and with the matched article inventory amount of the order, comprising:
Aggregate demand scale is generated according to the article demand of each order, wherein the aggregate demand scale is for characterizing Item Title
The corresponding relationship of article demand summation corresponding with Item Title;
Total inventory's scale is generated according to the article inventory amount of every inventory information in the inventory information set stored in the caching,
Wherein, total inventory's scale is used to characterize the corresponding relationship of Item Title and the corresponding article inventory amount summation of Item Title;
For each Item Title in the aggregate demand scale, it is somebody's turn to do if the corresponding article inventory amount summation of the Item Title is not less than
The corresponding article demand summation of Item Title, it is determined that the corresponding article storage location of the Item Title and article inventory amount;
For each order in the order set, if each Item Title of the order has had confirmed that corresponding article is deposited
Storage space set with article inventory amount, then update in the inventory information set stored in the caching in every inventory information with the order
The corresponding article storage location of each Item Title and article inventory amount.
5. method described in one of -3 according to claim 1, which is characterized in that the method also includes:
If the article inventory amount corresponding with the matched article storage location of the order stored in the inventory database be less than with
The matched article inventory amount of the order then reads inventory information set into the caching from inventory database again and repeats to hold
The above-mentioned allocation step of row.
6. method described in one of -3 according to claim 1, which is characterized in that the method also includes:
In response to detecting that the journal file of the inventory database changes, according to the journal file from inventory database
The inventory information set of variation is read into the caching.
7. a kind of information output apparatus, which is characterized in that described device includes:
Acquiring unit, for obtaining the order set to be processed being stored in advance in the buffer, wherein every in the order set
A order includes Item Title and article demand;
Reading unit, for reading inventory information set into the caching from for the stored inventory database of repository,
Wherein, every inventory information includes article storage location, Item Title and article storage location pair in the inventory information set
The article inventory amount answered;
Positioning unit, for executing following allocation step for each order in the order set:
According to each inventory information stored in the caching determine with the matched article storage location of the order and with the order
Matched article inventory amount;
If the article inventory amount corresponding with the matched article storage location of the order stored in the inventory database is not less than
With the matched article inventory amount of the order, then according to the matched article storage location of the order and with the matched article of the order
Quantity in stock modifies the inventory information in the inventory database, and exports with the matched article storage location of the order and order with this
Single matched article inventory amount.
8. device according to claim 7, which is characterized in that described device further includes the first storage unit, is used for:
Before order set to be processed in the buffer is stored in advance in the acquisition, in response to receiving order, it will be connect
The tail of the queue of indent queue in the order deposit caching of receipts.
9. device according to claim 7, which is characterized in that the order includes distribution time;And described device is also
Including the second storage unit, it is used for:
Before order set to be processed in the buffer is stored in advance in the acquisition, in response to receiving order, it will be connect
The indent queue that the order of receipts is stored in the caching make the order in the indent queue according to distribution time by arriving first after
Sequence sequence.
10. the device according to one of claim 7-9, which is characterized in that the positioning unit is further used for:
Aggregate demand scale is generated according to the article demand of each order, wherein the aggregate demand scale is for characterizing Item Title
The corresponding relationship of article demand summation corresponding with Item Title;
Total inventory's scale is generated according to the article inventory amount of every inventory information in the inventory information set stored in the caching,
Wherein, total inventory's scale is used to characterize the corresponding relationship of Item Title and the corresponding article inventory amount summation of Item Title;
For each Item Title in the aggregate demand scale, it is somebody's turn to do if the corresponding article inventory amount summation of the Item Title is not less than
The corresponding article demand summation of Item Title, it is determined that the corresponding article storage location of the Item Title and article inventory amount;
For each order in the order set, if each Item Title of the order has had confirmed that corresponding article is deposited
Storage space set with article inventory amount, then update in the inventory information set stored in the caching in every inventory information with the order
The corresponding article storage location of each Item Title and article inventory amount.
11. the device according to one of claim 7-9, which is characterized in that the reading unit is further used for:
If the article inventory amount corresponding with the matched article storage location of the order stored in the inventory database be less than with
The matched article inventory amount of the order then reads inventory information set into the caching from inventory database again;And
The positioning unit is further used for repeating above-mentioned allocation step.
12. the device according to one of claim 7-9, which is characterized in that described device further includes inventory's updating unit, is used
In:
In response to detecting that the journal file of the inventory database changes, according to the journal file from inventory database
The inventory information set of variation is read into the caching.
13. a kind of server, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as method as claimed in any one of claims 1 to 6 is realized when execution.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710801348.4A CN110019330B (en) | 2017-09-07 | 2017-09-07 | Information output method and device |
PCT/CN2018/081956 WO2019047516A1 (en) | 2017-09-07 | 2018-04-04 | Method and device for information output |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710801348.4A CN110019330B (en) | 2017-09-07 | 2017-09-07 | Information output method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110019330A true CN110019330A (en) | 2019-07-16 |
CN110019330B CN110019330B (en) | 2021-07-06 |
Family
ID=65634548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710801348.4A Active CN110019330B (en) | 2017-09-07 | 2017-09-07 | Information output method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110019330B (en) |
WO (1) | WO2019047516A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111785346A (en) * | 2020-05-29 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Prescription order distribution method, system, device and storage medium |
CN112765277A (en) * | 2021-01-28 | 2021-05-07 | 树根互联股份有限公司 | Data synchronization method, device and system |
CN113052536A (en) * | 2021-04-06 | 2021-06-29 | 北京京东振世信息技术有限公司 | Order processing method, device and system |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113537852A (en) * | 2020-04-14 | 2021-10-22 | 成都鼎桥通信技术有限公司 | Second killing processing method and system |
CN113689155A (en) * | 2020-05-18 | 2021-11-23 | 北京京东乾石科技有限公司 | Warehouse-out method and warehouse-out device |
CN113807760A (en) * | 2021-01-07 | 2021-12-17 | 北京沃东天骏信息技术有限公司 | Inventory information processing method and device, readable storage medium and electronic equipment |
CN113780924B (en) * | 2021-01-29 | 2024-04-16 | 北京京东振世信息技术有限公司 | Method and device for generating information |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515391A (en) * | 2009-03-20 | 2009-08-26 | 北京理工大学 | Automatic book management system based on closed stacks |
CN104978639A (en) * | 2014-04-09 | 2015-10-14 | 阿里巴巴集团控股有限公司 | Method and device for showing inventory |
CN105096065A (en) * | 2014-04-16 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Inventory deduction method and inventory deduction device |
US20170048319A1 (en) * | 2015-08-11 | 2017-02-16 | Oracle International Corporation | Asynchronous pre-caching of synchronously loaded resources |
CN106875262A (en) * | 2017-02-28 | 2017-06-20 | 网易无尾熊(杭州)科技有限公司 | Method, device and computer-readable recording medium for order processing |
CN106886938A (en) * | 2017-02-21 | 2017-06-23 | 驼队重卡(北京)物流信息技术有限责任公司 | A kind of staple commodities shipping is handled up the update method and device of information |
CN106997546A (en) * | 2016-01-26 | 2017-08-01 | ***通信集团安徽有限公司 | A kind of order processing method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103426072B (en) * | 2013-07-16 | 2016-02-17 | 无限极(中国)有限公司 | The order processing system of a kind of high concurrent competition stock and disposal route thereof |
CN104021481A (en) * | 2014-07-01 | 2014-09-03 | 浪潮软件股份有限公司 | High-efficiency order batch-processing method of tobacco industry orders |
CN106803158A (en) * | 2015-11-26 | 2017-06-06 | 阿里巴巴集团控股有限公司 | The processing method of storage data, device and system in products storage circulation system |
CN106709071A (en) * | 2017-02-03 | 2017-05-24 | 北京小米移动软件有限公司 | Network transaction processing method and apparatus |
CN107038629A (en) * | 2017-06-13 | 2017-08-11 | 舒达家居用品(深圳)有限公司 | Order processing method, device and server in a kind of commodity transaction |
-
2017
- 2017-09-07 CN CN201710801348.4A patent/CN110019330B/en active Active
-
2018
- 2018-04-04 WO PCT/CN2018/081956 patent/WO2019047516A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101515391A (en) * | 2009-03-20 | 2009-08-26 | 北京理工大学 | Automatic book management system based on closed stacks |
CN104978639A (en) * | 2014-04-09 | 2015-10-14 | 阿里巴巴集团控股有限公司 | Method and device for showing inventory |
CN105096065A (en) * | 2014-04-16 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Inventory deduction method and inventory deduction device |
US20170048319A1 (en) * | 2015-08-11 | 2017-02-16 | Oracle International Corporation | Asynchronous pre-caching of synchronously loaded resources |
CN106997546A (en) * | 2016-01-26 | 2017-08-01 | ***通信集团安徽有限公司 | A kind of order processing method and device |
CN106886938A (en) * | 2017-02-21 | 2017-06-23 | 驼队重卡(北京)物流信息技术有限责任公司 | A kind of staple commodities shipping is handled up the update method and device of information |
CN106875262A (en) * | 2017-02-28 | 2017-06-20 | 网易无尾熊(杭州)科技有限公司 | Method, device and computer-readable recording medium for order processing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111785346A (en) * | 2020-05-29 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Prescription order distribution method, system, device and storage medium |
CN112765277A (en) * | 2021-01-28 | 2021-05-07 | 树根互联股份有限公司 | Data synchronization method, device and system |
CN113052536A (en) * | 2021-04-06 | 2021-06-29 | 北京京东振世信息技术有限公司 | Order processing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
WO2019047516A1 (en) | 2019-03-14 |
CN110019330B (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110019330A (en) | Information output method and device | |
CN110472207A (en) | List generation method and device | |
CN107845011B (en) | Method and apparatus for handling order | |
CN109903112A (en) | Information output method and device | |
CN110033337A (en) | The method and apparatus of order production | |
CN110209677A (en) | The method and apparatus of more new data | |
CN110019258A (en) | The method and apparatus for handling order data | |
CN108694535A (en) | information generating method and device | |
CN109544076A (en) | Method and apparatus for generating information | |
CN110443531A (en) | The method and apparatus for determining the bit information of article in order | |
CN108985784A (en) | Method and apparatus for storing information | |
CN109447635A (en) | Information storage means and device for block chain | |
CN110363604A (en) | Page generation method and device | |
CN109214730A (en) | Information-pushing method and device | |
CN108776692A (en) | Method and apparatus for handling information | |
CN110473036A (en) | A kind of method and apparatus generating order number | |
CN109961306A (en) | A kind of inventory allocation method and apparatus of article | |
CN109783197A (en) | Dispatching method and device for program runtime environment | |
CN109359281A (en) | Dynamic list generation method and device | |
CN111444077A (en) | Method and device for generating flow node test data | |
CN109960212A (en) | Task sending method and device | |
CN113379177A (en) | Task scheduling system and method | |
CN110472900A (en) | Method and apparatus for determining article storage location | |
CN110956417A (en) | Store commodity processing method and device | |
CN109426998A (en) | Information-pushing method and device |
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 |