CN108416656A - High Availabitity inventory management method, server and High Availabitity inventory management system - Google Patents

High Availabitity inventory management method, server and High Availabitity inventory management system Download PDF

Info

Publication number
CN108416656A
CN108416656A CN201810202413.6A CN201810202413A CN108416656A CN 108416656 A CN108416656 A CN 108416656A CN 201810202413 A CN201810202413 A CN 201810202413A CN 108416656 A CN108416656 A CN 108416656A
Authority
CN
China
Prior art keywords
inventory
server
high availabitity
management method
operations
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810202413.6A
Other languages
Chinese (zh)
Other versions
CN108416656B (en
Inventor
朱杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201810202413.6A priority Critical patent/CN108416656B/en
Publication of CN108416656A publication Critical patent/CN108416656A/en
Application granted granted Critical
Publication of CN108416656B publication Critical patent/CN108416656B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials

Landscapes

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

Abstract

The present invention provides a kind of High Availabitity inventory management method, servers, that is, High Availabitity inventory management system.High Availabitity inventory management method includes the following steps:Receive the inventory operations request of a commodity;Judge types of inventory corresponding with inventory operations request;It is asked according to the inventory operations, updates the quantity in stock of the types of inventory;Record the inventory operations.Using High Availabitity inventory management method provided by the invention, it can be based on the inventory operations request that user or businessman send out to server, automatically update the quantity in stock of commodity correlation types of inventory, it can effectively avoid the problem that oversold or sell less occur, the consistency of inventory data is ensured simultaneously, to provide a kind of better shopping experience to the user, a kind of highly efficient inventory management method is provided for businessman.

Description

High Availabitity inventory management method, server and High Availabitity inventory management system
Technical field
It can the present invention relates to a kind of Internet technical field more particularly to High Availabitity inventory management method, server and height Use inventory management system.
Background technology
As internet climax is arrived, shopping at network already becomes instantly the most popular novel shopping way.Pass through Shopping at network, user stay indoors, it is only necessary to click the mouse slightly or intelligent terminal screen, commodity all over the world can immediately become capsule In object.Shopping at network brings easily shopping experience, abundant range of goods and preferential purchasing price to us, is This, net purchase already becomes the selection of more and more users.However, with the expansion and development of electric business platform, net purchase experience at To weigh the good and bad major criterion of a household appliances manufacturer.However, during net purchase, in addition to merchant service, commercial quality and Other than logistics service, the stock control of the electric business platform also influences whether the net purchase experience of user.
Currently, the types of inventory that the inventory management system of electric business platform is related to is more single, management mode is mainly businessman Inventory is sold by commodity details page displaying commodity, user is made to learn whether current commodity can be bought and currently can purchase Maximum quantity.For this purpose, the inventory management system can usually cause some problems, such as:1) second kills under high concurrent scene, due to It places an order and subtracts inventory not in an affairs, commodity " oversold " " sell " problem less;2) multi-service scene operation inventory data differs The problem of cause, for example, warehouse physical holding of stock and user browse inventory data inconsistence problems.Based on the above issues, often shadow The buying experience of user is rung, while being also unfavorable for management of the businessman to commodity stocks.
For this reason, it may be necessary to provide a kind of High Availabitity inventory management method more optimized, server and High Availabitity stock control System.Commodity stocks is finely divided, the different operation type sent out to server by user terminal based on user and/or businessman Inventory operations request, adjustment and the quantity in stock of the associated types of inventory of the action type.Moreover it is possible to effectively avoid commodity The problem of " oversold ", " selling less " phenomenon and a plurality of clients carry out inventory operations request to server simultaneously, to solve storehouse The inconsistent problem of the inventory data of library physical holding of stock and user's browsing.
Invention content
To solve above-mentioned technological deficiency, the present invention provides a kind of High Availabitity inventory management method more optimized, services Device and High Availabitity inventory management system.Commodity stocks is finely divided, based on user and/or businessman by user terminal to server The inventory operations of the different operation type sent out are asked, the quantity in stock of adjustment and the associated types of inventory of the action type.In addition, High Availabitity inventory management method, server and High Availabitity inventory management system provided by the invention are further combined with Pessimistic Locking and only The setting of one joint index field effectively avoids the problem that commodity " oversold ", " selling less " occur, while can also effectively avoid multiple User terminal carries out inventory operations request to server simultaneously, to solve the inventory data of warehouse physical holding of stock and user's browsing not Consistent problem.It is providing a kind of net purchase experience more optimized to the user, while also providing for businessman a kind of highly efficient Stock control is experienced.
The present invention provides a kind of High Availabitity inventory management methods, include the following steps:
Receive the inventory operations request of a commodity;
Judge types of inventory corresponding with inventory operations request;
It is asked according to the inventory operations, updates the quantity in stock of the types of inventory;
Record the inventory operations.
Preferably, in the step of inventory operations request for receiving a commodity, further comprise:
Obtain total inventory of the commodity;
Database Pessimistic Locking is called, total inventory is locked;
By receiving the interface of the inventory operations request, removal includes the repetitive requests content of same index field;
The index field includes:Action type, operation amount, order number, article number, the type of merchandise.
Preferably, in the step of judging to ask corresponding types of inventory with the inventory operations, further comprise:
According to the action type in the request content, identification and the associated types of inventory of the action type;
Wherein, the types of inventory includes:Inventory can be sold, freeze inventory, outbound inventory, entity inventory.
Preferably, it in the step of being asked according to the inventory operations, updating the quantity in stock of the types of inventory, further wraps It includes:
Extract the operation amount in the inventory operations request;
According to the operation amount quantity in stock of the types of inventory is updated in conjunction with the types of inventory.
Preferably, the High Availabitity inventory management method further comprises:
That reads the commodity sells inventory;
It can sell whether inventory is more than a default inventory described in judgement;
When it is described sell inventory and be less than or equal to default inventory when, send out a warning information.
Preferably, in the step of recording the inventory operations, further comprise:
Record the operation types of inventory of the inventory operations, operating time, operation amount, order number, article number, commodity class It is one or more in type.
The present invention provides a kind of High Availabitity inventory management method, the High Availabitity inventory management method is applied to server Between user terminal, the server executes High Availabitity inventory management method as described above with user terminal.
The present invention is supplied to a kind of server, including processor and storage device, and the storage device is stored with calculating Machine program, the processor call and realize High Availabitity inventory management method as described above when executing the computer program.
The present invention provides a kind of High Availabitity inventory management system, the High Availabitity inventory management system include server with User terminal, the server execute High Availabitity inventory management method as described above with user terminal.
After using above-mentioned technical proposal, compared with prior art, have the advantages that:
1. a pair commodity stocks is finely divided, the different behaviour sent out to server by user terminal based on user and/or businessman Make the inventory operations request of type, the quantity in stock of adjustment and the associated types of inventory of the action type;
2. further combined with the setting of Pessimistic Locking and unique joint index field, commodity " oversold ", " selling less " are effectively avoided The problem of occur;
3. a plurality of clients same time can effectively be avoided to carry out inventory operations request to server;
4. user or businessman can effectively be avoided to repeat to send out inventory operations request;
5. providing a kind of net purchase experience more optimized to the user, while also providing a kind of highly efficient library for businessman Deposit management experience.
Description of the drawings
Fig. 1 is a kind of flow chart for the High Availabitity inventory management method for meeting the embodiment of the present invention;
Fig. 2 is a kind of flow chart for the High Availabitity inventory management method for meeting the embodiment of the present invention.
Specific implementation mode
The advantages of the present invention is further explained below in conjunction with attached drawing and specific embodiment.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is the purpose only merely for description specific embodiment in the term that the disclosure uses, is not intended to be limiting the disclosure. The "an" of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
Specific embodiment will be discussed in detail below to the application of the present invention.
Embodiment one
Refering to fig. 1, for meet the embodiment of the present invention a kind of High Availabitity inventory management method flow chart.As shown, A kind of High Availabitity inventory management method provided in the present embodiment can be asked based on the inventory operations sent out with user orientation server, The quantity in stock of commodity correlation types of inventory is automatically updated, while can effectively avoid the problem that oversold or sell less occur, is electric business Businessman provides a kind of highly efficient inventory management method.Specifically, include the following steps:
When user is during the purchase commodity of an electric business platform, user terminal may carry out the server of electric business platform Operation include:It submits order, branch to pay earnest money, complete to pay, cancel payment etc..No matter it is above-mentioned which kind of operation, all may be right The inventory of electric business platform businessman has an impact.After user sends out aforesaid operations by user terminal to server to be instructed, server The inventory operations request for receiving a pair of of commodity can be converted into according to operational order.
In a preferred embodiment, it after server receives the inventory operations request that user terminal is sent out, further services Device can transfer total inventory of the commodity automatically.Wherein, total inventory is the summation that can be sold inventory, freeze inventory and outbound inventory.It obtains After getting total inventory, server can call database Pessimistic Locking, to lock total inventory, be based under the lock-out state, server When receiving the inventory operations request that any other user sends out, will not it make a response, until server is completed to this library After the response for depositing operation requests, total inventories of the commodity can just unlock state.With this, high concurrent can be effectively avoided Under, same time multiple users ask the total inventory for operating this commodity cause the loss of data to update, dirty reading, so as to cause library Deposit information inconsistence problems.In addition, the interface for receiving inventory operations request in server can be according to preset joint unique index Field, removal include the repetitive requests content of same index field.Wherein, index field includes:Action type, operation amount, The parameters such as order number, article number, the type of merchandise.With this, server can effectively ensure that interface idempotence, prevent user terminal to clothes Business device sends out multiplicating request based on single order, and commodity stocks is repeatedly reduced so as to cause server, causes inventory chaotic.
Based in above-mentioned steps, the reading for the action type that server asks the inventory operations that user sends out, judging should Inventory operations ask associated types of inventory.Wherein, action type is that server is practical to service by user terminal according to user The operation content that device executes judges.For example, user submits the order of 10 commodity A of purchase by user terminal to server, It is the action type of inventory operations request then to submit order.In another example completing one with user orientation server buys 10 The payment operation of commodity A then completes the action type that payment operation is inventory operations request.Server is based on receiving Inventory operations ask the action type being related to, you can judge and the associated types of inventory of the action type.Wherein, in the present embodiment The types of inventory may include:Total inventory can sell inventory, freeze inventory, outbound inventory and entity inventory.Inventory's tool can be sold Body is the inventory that can be sold.It is the library before paying the bill to completion after user submits order by user terminal to server to freeze inventory Storage.For example, the order that user has submitted 10 commodity A of a purchase for an electric business commodity A is then completed this in user and is ordered Before single payment, 10 commodity A are that commodity A freezes inventory.Entity inventory is then the currently practical quantity in stock in warehouse, should Entity inventory includes certified products commodity and report damage commodity.Therefore, server based on user submit order action type, can determine whether with The associated types of inventory of the action type is that can sell inventory and freeze inventory;Server completes the operation of payment operation based on user Type can determine whether with the associated types of inventory of the action type to be to freeze inventory and outbound inventory.With this, server can be according to library Deposit the action type that the request content in operation requests is included, the associated library of action type of identification and inventory operations request Deposit type.
In addition, operation amount included in the inventory operations request that server is sent out based on user terminal, further combined with Server judges the types of inventory of gained, response inventory operations request, to update the quantity in stock of the types of inventory.
Specifically, in a preferred embodiment, if the inventory operations request that user is sent out by user terminal to server is The order of 10 commodity A of purchase is submitted, then, which judges types of inventory associated with the submission order as that can sell inventory With freeze inventory, if server read the inventory operations request involved in operation amount be 10, server can exist automatically The quantity in stock for reducing by 10 commodity in inventory can be sold, while increasing the quantity in stock of 10 commodity in freezing inventory, to complete to be somebody's turn to do Inventory can be sold and freeze the update of inventory's quantity in stock, and total quantity in stock of commodity A is constant.
In a preferred embodiment, if the inventory operations request that user is sent out by user terminal to server pays for completion The order of 10 commodity A, then, the server judge types of inventory associated with payment completion to freeze inventory and going out Kuku It deposits, and the operation amount read involved in inventory operations request is 10, then, server can be reduced in freezing inventory automatically The quantity in stock of 10 commodity, at the same in outbound inventory increase by 10 commodity quantity in stock, freeze inventory and outbound to complete this The update of inventory's quantity in stock, and total quantity in stock of commodity A is constant.
In a preferred embodiment, if the inventory operations request that user is sent out by user terminal to server is default one The payment of 10 commodity A is not completed in period and order when cancelling automatically, then, which judges not pay completion with this The associated types of inventory of action type is that can sell inventory and outbound inventory, and server is read involved in inventory operations request Operation amount be 10, then, server can reduce the quantity in stock of 10 commodity in outbound inventory automatically, while can sell library The middle quantity in stock for increasing by 10 commodity is deposited, the update of inventory and outbound inventory's quantity in stock, and total library of commodity A can be sold to complete this Storage is constant.
Preferably, inventory management method provided in this embodiment further comprises the inventory that sells for reading commodity in real time, and The inventory that sells for reading gained is compared with a default inventory.When server judges that this can sell inventory in advance less than or equal to one If when inventory, then server judges it is possible that oversold situation, then, server understand the submission order that refusal respond user sends out Inventory operations request, while the automatic warning information that sends out is to user and electric business businessman, to effectively avoid the super of commodity Sell problem.
When server is asked according to user by the inventory operations that user terminal is sent out, completion asks inventory operations corresponding Types of inventory the automatically updating of quantity in stock after, it is to respond inventory operations request to execute that server further records it automatically Inventory operations.Inventory operations record is further consulted for ease of electric business businessman, the complete of inventory's operation requests can be recorded in the record Portion's information, so that its inventory change situation and reason is well understood in electric business businessman.Specifically, the inventory behaviour which may include Make one or more in the operation types of inventory asked, operating time, operation amount, order number, article number, the type of merchandise. It is understood that the content and project described in operation note can make further increase and decrease according to electric business businessman's actual demand.
Embodiment two
Refering to the flow chart that Fig. 2 is a kind of High Availabitity inventory management method for meeting the embodiment of the present invention.As shown, this A kind of High Availabitity inventory management method provided in embodiment, the inventory operations that can be sent out to server based on electric business businessman are asked It asks, automatically updates the quantity in stock of commodity correlation types of inventory, a kind of highly efficient inventory management method is provided for electric business businessman. Specifically, include the following steps:
When electric business businessman is during it sells goods, the server of electric business platform may be carried out by user terminal Operation includes:Storage, storage of returning goods are purchased, is confirmed and is delivered, cancels delivery, loss on disposal outbound, inventory profit storage etc..No matter it is above-mentioned which kind of Operation, can all have an impact the inventory that businessman sells goods.Refer to when businessman sends out aforesaid operations by user terminal to server After order, server can be converted into the inventory operations request of a pair of of commodity according to operational order.
In a preferred embodiment, it is asked by the above-mentioned inventory operations that user terminal is sent out when server receives electric business businessman After asking, further server can transfer total inventory of the commodity automatically.Wherein, total inventory is that can sell inventory, freeze inventory and go out The stored summation in Kuku.After getting total inventory, server can call database Pessimistic Locking, to lock total inventory, be based on Under the lock-out state, when server receives the inventory operations request that any other user sends out, will not it make a response, until After server completes the response of the inventory operations request sent out to this businessman, total inventory of the commodity can just unlock State.With this, can effectively avoid businessman and user ask simultaneously the total inventory for operating the commodity cause the loss of data to update, Dirty reading, so as to cause inventory information inconsistence problems.Inventory operations request is received after the total inventory for locking the commodity, in server Interface can remove according to preset joint unique index field and include the repetitive requests content of same index field.Wherein, rope Drawing field includes:The parameters such as action type, operation amount, order number, article number, the type of merchandise.With this, server can be effective Ensure interface idempotence, prevents electric business businessman to be based on sending out multiplicating request to server by user terminal, so as to cause clothes Business device repeatedly adjusts commodity stocks, causes inventory chaotic.
Based on above-mentioned steps, further, the reading for the action type that server asks the inventory operations that businessman sends out is sentenced The inventory operations of breaking ask corresponding types of inventory.Wherein, action type be server according to user by user terminal it is practical to The operation content that server executes judges.For example, businessman sends out a confirmation by user terminal to server sends out 10 commodity A Shipment operation, then confirm delivery be the operation requests action type.In another example businessman eliminates a hair to server The shipment operation for going out 10 commodity A, then cancel the action type that delivery is the operation requests.Further, in this embodiment Types of inventory include:Total inventory can sell inventory, freeze inventory, outbound inventory and entity inventory.Wherein, can to sell inventory specific For the inventory that can be sold.It is the inventory before paying the bill to completion after user submits order by user terminal to server to freeze inventory Amount.For example, businessman sends out the shipment operation that a confirmation sends out 10 commodity A by user terminal to server, confirmation delivery Inventory operations request can influence the currently practical quantity in stock in warehouse, then server identification and confirmation delivery action type are associated Types of inventory is physical holding of stock.With this, server can be asked according to inventory operations in the request content operation class that is included Type identifies types of inventory corresponding with request operation.
After server identifies types of inventory corresponding with stock request operation, based on the operation for including in inventory operations request Quantity, server can respond businessman and be asked by the inventory operations that user terminal is sent out, and update the quantity in stock of corresponding types of inventory.
In a preferred embodiment, businessman sends out the inventory operations that a confirmation is delivered to server by user terminal and asks Afterwards, server identifies based on the action type for confirming delivery and confirms that associated types of inventory of delivering is entity inventory, further In conjunction with inventory operations request involved in operation amount, for example, 10 commodity A, then server automated to respond to the library that businessman sends out Operation requests are deposited, the quantity in stock of 10 commodity in entity inventory is reduced, to complete the update of commodity A quantitys in stock.
In a preferred embodiment, businessman sends out the inventory operations that a cancellation is delivered to server by user terminal and asks Afterwards, based on the action type for cancelling delivery, identification is entity inventory and can sell server with associated types of inventory of delivering is cancelled Inventory, further combined with inventory operations request involved in operation amount, for example, 10 commodity A, then server automated to respond to The inventory operations request that businessman sends out, while increasing the quantity in stock that can sell 10 commodity in inventory and entity inventory, to complete quotient The update of product A quantitys in stock.
In a preferred embodiment, businessman sends out the inventory operations request of a loss on disposal outbound by user terminal to server Afterwards, action type of the server based on loss on disposal outbound, identification are that can sell inventory, entity library with the associated types of inventory of loss on disposal outbound Deposit with outbound inventory, further combined with the operation amount involved in inventory operations request, for example, 10 commodity A, then server The inventory operations request that businessman sends out is automated toed respond to, reduction can sell 10 quantitys in stock of inventory, reduce entity 10 quantitys in stock of inventory, The quantity in stock for increasing by 10 commodity in outbound inventory simultaneously, to complete the update of commodity A quantitys in stock.
In a preferred embodiment, businessman sends out the inventory operations that a buying is put in storage to server by user terminal and asks Afterwards, action type of the server based on buying storage, it is that can sell inventory and entity that identification is put in storage associated types of inventory with buying Inventory, further combined with inventory operations request involved in operation amount, for example, 10 commodity A, then server automated to respond to The inventory operations request that businessman sends out, while increasing by 10 quantitys in stock that can be sold in inventory and entity inventory, to complete the libraries commodity A The update of storage.Further, when server responds inventory operations request, it can also further judge the inventory of buying storage The type of merchandise that operation requests are related to, the type of merchandise may particularly include certified products and defect ware.When server judges that the type of merchandise is When certified products, then increase by 10 quantitys in stock that can be sold in inventory and entity inventory simultaneously.When server judges the type of merchandise for certified products When with defect ware, then certified products quantity in stock in inventory and entity inventory can be sold by only increasing simultaneously.
In a preferred embodiment, businessman sends out the inventory operations that a return of goods are put in storage to server by user terminal and asks Afterwards, action type of the server based on storage of returning goods, identification are put in storage associated types of inventory with the return of goods and are outbound inventory, can sell library Deposit with entity inventory, further combined with the operation amount involved in inventory operations request, for example, 10 commodity A, then server Automated to respond to the inventory operations request that businessman sends out, reduce 10 quantitys in stock in outbound inventory, at the same increase can sell inventory and 10 quantitys in stock in entity inventory, to complete the update of commodity A quantitys in stock.Further, inventory behaviour is responded in server When asking, it can also further judge that the inventory operations of return of goods storage ask the type of merchandise being related to, the type of merchandise that can specifically wrap Include certified products and defect ware.When server judges the type of merchandise for certified products, then increasing simultaneously can sell in inventory and entity inventory 10 quantitys in stock.When server judges the type of merchandise for certified products and defect ware, then inventory and entity library can be sold by only increasing simultaneously Deposit middle certified products quantity in stock.
In a preferred embodiment, businessman sends out the inventory operations that an inventory profit is put in storage to server by user terminal and asks Afterwards, server enters the action type of Kuku based on inventory profit, and it is that can sell inventory and reality that identification is put in storage associated types of inventory with inventory profit Body inventory, further combined with the operation amount involved in inventory operations request, for example, 10 commodity A, then server is from the sound of something astir The inventory operations request that businessman sends out is answered, while increasing by 10 quantitys in stock that can be sold in inventory and entity inventory, to complete commodity A The update of quantity in stock.Further, when server responds inventory operations request, it can also further judge the library being put in storage of returning goods The type of merchandise that operation requests are related to is deposited, the type of merchandise may particularly include certified products and defect ware.When server judges the type of merchandise For certified products when, then 10 quantitys in stock in inventory and entity inventory can be sold by increasing simultaneously.When server judges the type of merchandise for just When product and defect ware, then certified products quantity in stock in inventory and entity inventory can be sold by only increasing simultaneously.
When server is asked according to businessman by the inventory operations that user terminal is sent out, completion asks inventory operations corresponding Types of inventory the automatically updating of quantity in stock after, it is to respond inventory operations request to execute that server further records it automatically Inventory operations.Inventory operations record is further consulted for ease of electric business businessman, the complete of inventory's operation requests can be recorded in the record Portion's information, so that its inventory change situation and reason is well understood in electric business businessman.Specifically, the inventory behaviour which may include Make one or more in the operation types of inventory asked, operating time, operation amount, order number, article number, the type of merchandise. It is understood that the content and project described in operation note can make further increase and decrease according to electric business businessman's actual demand.
To sum up, using a kind of High Availabitity inventory management method provided by the invention, server and High Availabitity stock control system When system is to commodity inventory control, the subdivision of types of inventory can be carried out to commodity stocks.Pass through user terminal based on user and/or businessman The inventory operations of the different operation type sent out to server are asked, the inventory of adjustment and the associated types of inventory of the action type Amount.In addition, can also effectively avoiding commodity " oversold " further combined with the setting of Pessimistic Locking and unique joint index field, " lacking Sell " the problem of occur, while can also effectively avoid a plurality of clients simultaneously to server carry out inventory operations request, to solve The inconsistent problem of the inventory data of warehouse physical holding of stock and user's browsing.Therefore, High Availabitity stock control provided by the invention Method, server and High Availabitity inventory management system are providing a kind of net purchase experience more optimized to the user, while being also quotient Family provides a kind of highly efficient stock control experience.
It should be noted that the embodiment of the present invention has preferable implementation, and not the present invention is made any type of Limitation, any one skilled in the art change or are modified to possibly also with the technology contents of the disclosure above equivalent effective Embodiment, as long as without departing from the content of technical solution of the present invention, according to the technical essence of the invention to made by above example Any modification or equivalent variations and modification, in the range of still falling within technical solution of the present invention.

Claims (9)

1. a kind of High Availabitity inventory management method, which is characterized in that include the following steps:
Receive the inventory operations request of a commodity;
Judge types of inventory corresponding with inventory operations request;
It is asked according to the inventory operations, updates the quantity in stock of the types of inventory;
Record the inventory operations.
2. High Availabitity inventory management method as described in claim 1, which is characterized in that
In the step of inventory operations request for receiving a commodity, further comprise:
Obtain total inventory of the commodity;
Database Pessimistic Locking is called, total inventory is locked;
By receiving the interface of the inventory operations request, removal includes the repetitive requests content of same index field;
The index field includes:Action type, operation amount, order number, article number, the type of merchandise.
3. High Availabitity inventory management method as claimed in claim 2, which is characterized in that
In the step of judging to ask corresponding types of inventory with the inventory operations, further comprise:
According to the action type in the request content, identification and the associated types of inventory of the action type;
Wherein, the types of inventory includes:Inventory can be sold, freeze inventory, outbound inventory, entity inventory.
4. High Availabitity inventory management method as claimed in claim 3, which is characterized in that
In the step of being asked according to the inventory operations, updating the quantity in stock of the types of inventory, further comprise:
Extract the operation amount in the inventory operations request;
According to the operation amount quantity in stock of the types of inventory is updated in conjunction with the types of inventory.
5. High Availabitity inventory management method as described in claim 1, which is characterized in that
The High Availabitity inventory management method further comprises:
That reads the commodity sells inventory;
It can sell whether inventory is more than a default inventory described in judgement;
When it is described sell inventory and be less than or equal to default inventory when, send out a warning information.
6. High Availabitity inventory management method as described in claim 1, which is characterized in that
In the step of recording the inventory operations, further comprise:
It records in the operation types of inventory of the inventory operations, operating time, operation amount, order number, article number, the type of merchandise It is one or more.
7. a kind of High Availabitity inventory management method, which is characterized in that the High Availabitity inventory management method be applied to server with Between user terminal, the server executes High Availabitity inventory management method as claimed in any one of claims 1 to 6 with user terminal.
8. a kind of server, including processor and storage device, the storage device are stored with computer program, feature exists In the processor calls and realizes High Availabitity library as claimed in any one of claims 1 to 6 when executing the computer program Deposit management method.
9. a kind of High Availabitity inventory management system, which is characterized in that the High Availabitity inventory management system includes server and use Family end, the server execute High Availabitity inventory management method as claimed in any one of claims 1 to 6 with user terminal.
CN201810202413.6A 2018-03-12 2018-03-12 High-availability inventory management method, server and high-availability inventory management system Active CN108416656B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810202413.6A CN108416656B (en) 2018-03-12 2018-03-12 High-availability inventory management method, server and high-availability inventory management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810202413.6A CN108416656B (en) 2018-03-12 2018-03-12 High-availability inventory management method, server and high-availability inventory management system

Publications (2)

Publication Number Publication Date
CN108416656A true CN108416656A (en) 2018-08-17
CN108416656B CN108416656B (en) 2021-07-13

Family

ID=63131277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810202413.6A Active CN108416656B (en) 2018-03-12 2018-03-12 High-availability inventory management method, server and high-availability inventory management system

Country Status (1)

Country Link
CN (1) CN108416656B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738340A (en) * 2019-09-06 2020-01-31 口碑(上海)信息技术有限公司 Reserved product inventory management method and device
WO2021036681A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data verification method and apparatus, computer device and storage medium
CN112785214A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Method, device and storage medium for optimizing inventory
CN113610417A (en) * 2021-08-13 2021-11-05 北京沃东天骏信息技术有限公司 Data processing method, device, computer system and storage medium
CN113762865A (en) * 2021-01-06 2021-12-07 北京京东乾石科技有限公司 Inventory information processing method and device
CN114331667A (en) * 2021-12-02 2022-04-12 上海金仕达软件科技有限公司 Method and system for preventing precious metal of bank from being over-bought and over-sold
CN117333104A (en) * 2023-09-27 2024-01-02 上海百胜软件股份有限公司 Inventory synchronization method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455334A (en) * 2013-09-10 2013-12-18 天津点点科技发展有限公司 Invoicing system based on PHP-MySQL technology
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN106203894A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 The processing method of the inventory information of merchandise items and system
CN106599018A (en) * 2016-10-20 2017-04-26 乐视控股(北京)有限公司 Inventory operation method and system
CN107767104A (en) * 2017-11-10 2018-03-06 小草数语(北京)科技有限公司 Commodity inventory control information system, method and e-commerce platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455334A (en) * 2013-09-10 2013-12-18 天津点点科技发展有限公司 Invoicing system based on PHP-MySQL technology
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN106203894A (en) * 2015-04-30 2016-12-07 阿里巴巴集团控股有限公司 The processing method of the inventory information of merchandise items and system
CN106599018A (en) * 2016-10-20 2017-04-26 乐视控股(北京)有限公司 Inventory operation method and system
CN107767104A (en) * 2017-11-10 2018-03-06 小草数语(北京)科技有限公司 Commodity inventory control information system, method and e-commerce platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙俏编著: "《Visual Basic程序设计》", 31 May 2009 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021036681A1 (en) * 2019-08-30 2021-03-04 深圳壹账通智能科技有限公司 Data verification method and apparatus, computer device and storage medium
CN110738340A (en) * 2019-09-06 2020-01-31 口碑(上海)信息技术有限公司 Reserved product inventory management method and device
CN112785214A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Method, device and storage medium for optimizing inventory
CN113762865A (en) * 2021-01-06 2021-12-07 北京京东乾石科技有限公司 Inventory information processing method and device
WO2022148237A1 (en) * 2021-01-06 2022-07-14 北京京东乾石科技有限公司 Inventory information processing method and device
CN113610417A (en) * 2021-08-13 2021-11-05 北京沃东天骏信息技术有限公司 Data processing method, device, computer system and storage medium
CN114331667A (en) * 2021-12-02 2022-04-12 上海金仕达软件科技有限公司 Method and system for preventing precious metal of bank from being over-bought and over-sold
CN117333104A (en) * 2023-09-27 2024-01-02 上海百胜软件股份有限公司 Inventory synchronization method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108416656B (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN108416656A (en) High Availabitity inventory management method, server and High Availabitity inventory management system
JP3887854B2 (en) Electronic trading support method
Li et al. Coordinating a supply chain when facing strategic consumers
JP4018903B2 (en) Book recycling promotion equipment
CN107123020A (en) Method and apparatus for the order processing of supply chain
US20020178076A1 (en) Local returns of remotely purchased merchandise with return code validation
CN106815752B (en) Commodity object logistics information processing method and device
CN108399260A (en) Commodity information management method, server and commodity information management system
CN109509292A (en) A kind of intelligent vending machine, System and method for based on bluetooth
CN106682850A (en) Method used for providing service object and providing storage information, apparatus and system thereof
CN101017559A (en) Method for establishing business trading web platform and trade term decided by buyer
CN105474249B (en) Product cross-sell system and product cross-selling method based on it
US8533068B2 (en) Distributing products from suppliers to consumers in a network environment
JP2001283070A5 (en)
JP2009193558A (en) Sales system using non-contact prepaid card
JP2006330905A (en) Commodity management system
WO2001035286A1 (en) Auctioning system, auctioning apparatus, auctioning method, and information processing system and method
EP1854058A2 (en) Inventory equalization system
JP2002063407A (en) Network transaction mediation method, network transaction system and network transaction center
Bucklin et al. Are you tough enough to manage your channels?
KR20020001640A (en) Method and apparatus for pawnbrokeraging using internet
JP2001261122A (en) Store business support method in electronic intermediation system
JP2003281421A (en) Method and program for selling goods
KR20010084100A (en) Ventilation system of packing goods and operating method of internet shopping mall
US8135625B2 (en) Electronic data processing system for internet auctions

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