CN105956120A - Product inventory update method and device - Google Patents

Product inventory update method and device Download PDF

Info

Publication number
CN105956120A
CN105956120A CN201610294891.5A CN201610294891A CN105956120A CN 105956120 A CN105956120 A CN 105956120A CN 201610294891 A CN201610294891 A CN 201610294891A CN 105956120 A CN105956120 A CN 105956120A
Authority
CN
China
Prior art keywords
product
described product
identifier
classification
belongs
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.)
Pending
Application number
CN201610294891.5A
Other languages
Chinese (zh)
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.)
Beijing Ticket Technology Co Ltd
Original Assignee
Beijing Ticket 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 Beijing Ticket Technology Co Ltd filed Critical Beijing Ticket Technology Co Ltd
Priority to CN201610294891.5A priority Critical patent/CN105956120A/en
Publication of CN105956120A publication Critical patent/CN105956120A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity
    • 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/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The embodiment of the invention provides a product inventory update method and device. The method comprises the steps of obtaining quantity modification information of products, wherein the quantity modification information comprises identifiers of the products and modification action information of the products, and the modification action information of the products comprises product booking information and product booking cancellation information; judging whether the products belong to cross latitudes or not according to the identifiers of the products, wherein the cross latitudes indicate that the products belong to at least two categories; updating the inventory data corresponding to each category to which the products belong according to the quantity modification information of the products when the products belong to the cross latitudes. Through adoption of the product inventory update method and device provided by the embodiment of the invention, for the products belonging to the cross latitudes, the product inventory can be updated accurately after a user starts a product quantity modification action,.

Description

Product inventory update method and device
Technical field
The present invention relates to Stock Managment Domain, in particular to a kind of product inventory update method and Device.
Background technology
At present, after user subscribes product by the way of on line or under line, product vendor needs Predetermined number according to user updates stock, to ensure the accuracy of follow-up sales.
As a example by hotel room (hereinafter referred to as guest room), current existing stock's update method is: really Determine the room class that user selects, such as big bed room, the quantity in such room is deducted the number that user subscribes Amount, the result after subtracting each other is as the residue stock in such room.
Inventor finds under study for action, and at present for same guest room, its category division exists intersection feelings Condition, such as same room, both may belong to big bed room and can also belong to Sea View Room, in the most above-mentioned example, Use existing stock's update method, be merely able to update the quantity in big bed room, the number of corresponding Sea View Room Amount does not has synchronized update, causes the room stock after updating inaccurate.
Similar situation also occurs in stock's renewal of performance bill.As, the bill in arenas can It is divided into adult ticket and student concession ticket, but in arenas, some seat both can be sold also as adult ticket Can sell as student concession ticket, this results in the total amount of adult ticket and student concession ticket more than the seat in arenas Sum.When user have subscribed to certain performance bill by the way of adult ticket, if the bill that user subscribes It is simultaneously belonging to student concession ticket, is then merely able to update the quantity of adult ticket by existing stock's update method, The quantity of student concession ticket cannot be updated, cause performing ticket stock inside and update inaccurate.
When similar situation also occurs at lease vehicle on line in stock's renewal.As, rent on line Rent the vehicles time, the type of the vehicles can be divided into electric motor car and fuel vehicle according to energy source type, Bicycle, car, minibus and golden cup car etc. can also be divided into according to vehicle size, additionally it is possible to It is divided into multiple according to vehicle brand such as Audi, Bentley, Great Wall.When user is carried out according to vehicle brand Selecting, when have subscribed to certain Great Wall Automobile, this Great Wall Automobile also belongs to minibus and fuel vehicle, passes through Existing stock's update method, is merely able to the automobile quantity that more new brand Great Wall is corresponding, it is impossible to update face The quantity of hired car and the quantity of fuel vehicle, cause vehicle stock to update inaccurate.
In like manner, when quitting the subscription of guest room, performance bill or the vehicles on subscribers feeder, based on above-mentioned former Cause, there is also stock and updates inaccurate problem.
Visible, when certain product belongs simultaneously at least two classification category, (hereinafter referred to as this product belongs to In intersecting latitude), after user initiates product quantity change action (as subscribed and quitting the subscription of), by existing It is merely able to when having technology innovation product inventory update the stockpile number under certain kind, it is impossible to update this product Stockpile number under other classifications of product, causes stock to update inaccurate.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of product inventory update method and dress Put, for belonging to the product of intersection latitude, after user initiates product quantity change action, it is possible to accurate Really upgrading products stock.
First aspect, embodiments provides a kind of product inventory update method, described method bag Include: obtaining the quantity modification information of product, described quantity modification information includes the identifier of described product With the change action message of described product, the change action message of described product includes product subscription information Information is quit the subscription of with product;Identifier according to described product judges whether described product belongs to intersection latitude; Wherein, described intersection latitude refers to that described product belongs simultaneously at least two classification category;When described product When product belong to intersection latitude, update described product respectively according to the quantity modification information of described product and belong to Inventory data corresponding to each classification category.
In conjunction with first aspect, embodiments provide the first possible embodiment of first aspect, Wherein, judge whether described product belongs to intersection latitude according to the identifier of described product, including: root In the synopsis prestored, the classification that described product is corresponding is searched according to the identifier of described product, when When finding categorical measure corresponding to described product more than 1, determine that described product belongs to intersection latitude; And/or, read the categorical measure entrained by the identifier of described product, when the described classification number read When amount is more than 1, determine that described product belongs to intersection latitude.
In conjunction with first aspect, embodiments provide the embodiment that first aspect the second is possible, Wherein, update, according to the quantity modification information of described product, each classification model that described product belongs to respectively The inventory data that farmland is corresponding, including: when described change action message is product subscription information, by institute The inventory data stating each classification category that product belongs to corresponding is individually subtracted described product predetermined number, Obtain the current inventory data that each classification category that described product belongs to is corresponding;When described change action Information is product when quitting the subscription of information, the inventory data that each classification category of being belonged to by described product is corresponding Quit the subscription of quantity plus described product respectively, obtain corresponding the working as of each classification category that described product belongs to Front inventory data;Wherein, described current inventory data includes each distribution platform that described product is corresponding Current inventory data and the current inventory data of supplier of described product.
In conjunction with first aspect, embodiments provide the third possible embodiment of first aspect, Wherein, before obtaining the quantity modification information of product, described method also includes: divided by described product For multiple classifications, each classification category belonged to according to described product arranges the identifier of described product.
In conjunction with the third possible embodiment of first aspect, embodiments provide first aspect 4th kind of possible embodiment, wherein, is divided into multiple classification by described product, according to described product Each classification category belonged to arranges the identifier of described product, including: when described product is guest room, Described guest room is divided into multiple classification according to guest room kind, holding time or distribution platform, according to often Classification corresponding to individual guest room generates corresponding coding, using described coding as the mark in described each guest room Symbol;When described product is for performance bill, by described performance bill according to bill kind, performance play Or distribution platform is divided into multiple classification, generate corresponding coding according to the classification that each bill is corresponding, Using described coding as the identifier of described each bill;When described product is the vehicles, by institute State the vehicles and be divided into multiple classification according to tool kind, holding time or distribution platform, according to often The classification that the individual vehicles are corresponding generates corresponding coding, using described coding as described each traffic work The identifier of tool.
Second aspect, embodiments provides a kind of product inventory updating device, described device bag Include: data obtaining module, for obtaining the quantity modification information of product, described quantity modification information bag Include the identifier of described product and the change action message of described product, the change action letter of described product Breath includes that product subscription information and product quit the subscription of information;Intersection latitude judge module, for according to described The identifier of product judges whether described product belongs to intersection latitude;Wherein, described intersection latitude refers to institute State product to belong simultaneously at least two classification category;Stock's more new module, for belonging to when described product In intersect latitude time, according to the quantity modification information of described product update that described product belongs to respectively each The inventory data that individual classification category is corresponding.
In conjunction with second aspect, embodiments provide the first possible embodiment of second aspect, Wherein, described intersection latitude judge module includes: the first judging unit, for according to described product Identifier searches the classification that described product is corresponding in the synopsis prestored, when finding described product When the categorical measure that product are corresponding is more than 1, determine that described product belongs to intersection latitude;And/or, second sentences Disconnected unit, for reading the categorical measure entrained by identifier of described product, described in reading When categorical measure is more than 1, determine that described product belongs to intersection latitude.
In conjunction with second aspect, embodiments provide the embodiment that second aspect the second is possible, Wherein, described stock more new module includes: subscribe stock's updating block, for when described change action When information is product subscription information, the inventory data that each classification category of being belonged to by described product is corresponding It is individually subtracted described product predetermined number, obtains corresponding the working as of each classification category that described product belongs to Front inventory data;Quit the subscription of stock's updating block, be used for when described change action message is that product quits the subscription of letter During breath, inventory data corresponding to each classification category of being belonged to by described product is respectively plus described product Quit the subscription of quantity, obtain the current inventory data that each classification category that described product belongs to is corresponding;Wherein, Described current inventory data includes current inventory data and the institute of each distribution platform that described product is corresponding State the current inventory data of the supplier of product.
In conjunction with second aspect, embodiments provide the third possible embodiment of second aspect, Wherein, described device also includes: identifier arranges module, for described product is divided into multiple classification, Each classification category belonged to according to described product arranges the identifier of described product.
In conjunction with the third possible embodiment of second aspect, embodiments provide second aspect 4th kind of possible embodiment, wherein, described identifier arranges module and includes: guest room identifier sets Put unit, for when described product is guest room, by described guest room according to guest room kind, holding time Or distribution platform is divided into multiple classification, generate corresponding coding according to the classification that each guest room is corresponding, Using described coding as the identifier in described each guest room;Ticket identifier arranges unit, for working as institute When stating product for performance bill, described performance bill is flat according to bill kind, performance play or distribution Platform is divided into multiple classification, generates corresponding coding, by described volume according to the classification that each bill is corresponding Code is as the identifier of described each bill;Traffic mark symbol arranges unit, for when described product being During the vehicles, the described vehicles are divided into according to tool kind, holding time or distribution platform Multiple classifications, generate corresponding coding according to the classification that each vehicles are corresponding, are made by described coding Identifier for described each vehicles.
By the product inventory update method in the present embodiment and device, for belonging to the product of intersection latitude Product, after user initiates product quantity change action, it is contemplated that each class that this product belongs to Other category, and have updated the inventory data that each classification category that this product belongs to is corresponding, therefore with existing Technology is had to compare, it is possible to accurately upgrading products stock, it is ensured that follow-up reservation or the stock quit the subscription of are accurate Property.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, preferable reality cited below particularly Execute example, and coordinate appended accompanying drawing, be described in detail below.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to required in embodiment Accompanying drawing to be used is briefly described, it will be appreciated that the following drawings illustrate only some of the present invention Embodiment, is therefore not construed as the restriction to scope, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other relevant accompanying drawings according to these accompanying drawings.
Fig. 1 shows the product inventory update method and the application ring of device that the embodiment of the present invention provided Border schematic diagram;
Fig. 2 shows the structure chart of the user terminal that the embodiment of the present invention provided;
Fig. 3 shows the structured flowchart of the server that the embodiment of the present invention provided;
Fig. 4 shows a kind of flow process signal of the product inventory update method that the embodiment of the present invention provided Figure;
Fig. 5 shows that the another kind of flow process of the product inventory update method that the embodiment of the present invention provided is shown It is intended to;
Fig. 6 shows a kind of structured flowchart of the product inventory updating device that the embodiment of the present invention provided;
Fig. 7 shows the another kind of structural frames of the product inventory updating device that the embodiment of the present invention provided Figure.
Detailed description of the invention
Product inventory update method and device that the embodiment of the present invention is provided can be applicable to as shown in Figure 1 Applied environment in.As it is shown in figure 1, user terminal 100, server 200 are positioned at wireless network or have In gauze network 300, by this wireless network or cable network 300, user terminal 100 and server 200 carry out data interaction.
In the embodiment of the present invention, user terminal 100 is preferably mobile terminal device, such as, can wrap Include smart mobile phone, panel computer, pocket computer on knee, vehicle-mounted computer, Wearable mobile terminal Etc..
Fig. 2 shows the structured flowchart of a kind of user terminal that can be applicable in the embodiment of the present invention.As Shown in Fig. 2, user terminal 100 includes memorizer 102, storage control 104, one or more (figures In only illustrate one) processor 106, Peripheral Interface 108, radio-frequency module 110, audio-frequency module 112, Touch Screen 114 etc..These assemblies pass through the mutual communication of one or more communication bus/holding wire 116.
Memorizer 102 can be used for storing software program and module, as subscribed on subscribers feeder or quitting the subscription of visitor Programmed instruction/module that room, show ticket according to this and are rented on line or the vehicles of throwing a lease are corresponding, processor 106 are stored in the software program in memorizer 102 and module by operation, thus perform various function Application and data process, and according to this as subscribed or quit the subscription of guest room, show ticket on line and rent on line or move back Rent the detailed process of the vehicles.
Memorizer 102 can include high speed random access memory, may also include nonvolatile memory, such as one Individual or multiple magnetic storage device, flash memory or other non-volatile solid state memories.Processor 106 and other possible assemblies can be under the control of storage control 104 to the access of memorizer 102 Carry out.
Various input/output devices are coupled to processor 106 and memorizer 102 by Peripheral Interface 108. In certain embodiments, Peripheral Interface 108, processor 106 and storage control 104 can be at lists Individual chip realizes.In some other example, they can be realized by independent chip respectively.
Radio-frequency module 110 is used for receiving and sending electromagnetic wave, it is achieved electromagnetic wave is mutual with the signal of telecommunication Conversion, thus carry out communication with communication network or other equipment.
Audio-frequency module 112 provides a user with audio interface, its can include one or more mike, one Individual or multiple speaker and voicefrequency circuit.
Touch Screen 114 provides an output and input circle between user terminal 100 and user simultaneously Face.Specifically, Touch Screen 114 displays to the user that the interactive interface that product is subscribed or quit the subscription of, wherein Product includes guest room, show ticket according to this and the vehicles, and interactive interface includes word, figure and dynamic The interaction contents such as picture.
Being appreciated that the structure shown in Fig. 2 is only signal, user terminal 100 may also include and compares Fig. 2 Shown in more or less assembly, or there is the configuration different from shown in Fig. 2.Institute in Fig. 2 The each assembly shown can use hardware, software or a combination thereof to realize.
In the embodiment of the present invention, being provided with client in user terminal 100, this client can be Browser can also be third-party application software, corresponding with server (Server), provides the user Product is subscribed or is subscribed or quit the subscription of guest room, show ticket in unsubscribe from services, such as line and according to this and rents on line Or the vehicles etc. of throwing a lease.
Fig. 3 shows the structured flowchart of a kind of server that can be applicable in the embodiment of the present invention.Such as Fig. 3 Shown in, server 200 includes: memorizer 201, processor 202 and mixed-media network modules mixed-media 203.
Memorizer 201 can be used for storing software program and module, such as the product in the embodiment of the present invention Stock's update method and programmed instruction/module corresponding to device, processor 202 is stored in by operation Software program in reservoir 201 and module, thus perform the application of various function and data process, I.e. realize the product inventory update method in the embodiment of the present invention.Memorizer 201 can include the most random Memorizer, may also include nonvolatile memory, as one or more magnetic storage device, flash memory, Or other non-volatile solid state memories.
Further, above-mentioned software program and module may also include that operating system 221 and service Module 222.Wherein operating system 221, such as, can be LINUX, UNIX, WINDOWS, and it can include Various for managing system task (such as memory management, storage device control, power management etc.) Component software and/or driving, and can communication mutual with various hardware or component software, thus provide other The running environment of component software.
On the basis of service module 222 operates in operating system 221, and by operating system 221 Network service monitors the request of automatic network, completes corresponding data according to request and processes, and at return Reason result is to client.It is to say, service module 222 is for providing network service to client.
Mixed-media network modules mixed-media 203 is used for receiving and sending network signal.Above-mentioned network signal can include wireless Signal or wire signal.
Being appreciated that the structure shown in Fig. 3 is only signal, server 200 may also include ratio in Fig. 3 Shown more or less assembly, or there is the configuration different from shown in Fig. 3.Shown in Fig. 3 Each assembly hardware, software or a combination thereof can be used to realize.It addition, the clothes in the embodiment of the present invention Business device can also include the server of multiple concrete difference in functionality.
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, Rather than whole embodiments.Generally herein described in accompanying drawing and the group of the embodiment of the present invention that illustrates Part can be arranged with various different configurations and design.Therefore, below to the basis provided in the accompanying drawings The detailed description of inventive embodiment is not intended to limit the scope of claimed invention, but only Only represent the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not having There is on the premise of making creative work the every other embodiment obtained, broadly fall into present invention protection Scope.
In view of when certain product belongs simultaneously at least two classification category, (hereinafter referred to as this product belongs to In intersecting latitude), after user initiates product quantity change action (as subscribed and quitting the subscription of), by existing It is merely able to when having technology innovation product inventory update the stockpile number under certain kind, it is impossible to update this product Stockpile number under other classifications of product, causes stock to update inaccurate, embodiments provides one Product inventory update method and device, be described in detail below by embodiment.
Fig. 4 shows the schematic flow sheet of the product inventory update method that the embodiment of the present invention provides, should Method can be performed by above-mentioned server 200.As shown in Figure 4, the method comprises the following steps.
Step S402, obtains the quantity modification information of product, and this quantity modification information includes the mark of product Knowing the change action message of symbol and product, the change action message of product includes product subscription information and product Product quit the subscription of information.
Wherein, product subscription information carries identifier corresponding to reservation action and product predetermined number, Product is quit the subscription of information and is carried and quit the subscription of identifier corresponding to action and product quits the subscription of quantity.
In the present embodiment, when user is by subscribing on user terminal line or quitting the subscription of product, as guest room, When performance bill or the vehicles, user terminal will send the quantity change letter of product to server Breath.Specifically, when subscribing product on user is by user terminal line, user terminal is sent out to server The quantity modification information of the product sent includes that the identifier of product that user subscribes, reservation action are corresponding Identifier and product predetermined number, such as " 002-1-2 ", wherein " 002 " is the identifier of product, " 1 " is the identifier that reservation action is corresponding, " 2 " product predetermined number.In like manner, pass through as user When quitting the subscription of product on user terminal line, the quantity modification information of the product that user terminal sends to server The identifier of the product quit the subscription of including user, quit the subscription of identifier corresponding to action and product quits the subscription of quantity, Such as " 002-0-2 ", wherein " 002 " is the identifier of product, and " 0 " is for quit the subscription of the mark that action is corresponding Knowing symbol, " 2 " product quits the subscription of quantity.Server obtains the quantity change letter of the product of user terminal uploads Breath.
According to the identifier of the said goods, step S404, judges whether the said goods belongs to intersection latitude; Wherein, the latitude that intersects refers to that product belongs simultaneously at least two classification category.
The synopsis between identifier and the affiliated classification of each product it is previously stored with in server. This synopsis can be as shown in table 1.
Table 1
Listing the identifier of each product and the classification category of this product in table 1, each product can To belong in 1 or multiple classification category, when product belongs in multiple classification category, this product Classification have multiple accordingly.In a kind of preferred embodiment, table 1 can also include each product The name of product of product, such as " guest room " in table 1, " performance bill ", " vehicles " etc..Wherein, Kf, yc and jt are also names of product.
For the situation shown in table 1, in this step, can judge whether product belongs in the following manner In intersecting latitude: search, according to the identifier of product, the class that product is corresponding in the synopsis prestored Not, when finding categorical measure corresponding to product more than 1, determine that this product belongs to intersection latitude.
Such as, in table 1, identifier be 002,121,321 product belong to intersect latitude, mark Knowing the product that symbol is 122 is 1 due to corresponding categorical measure, is therefore not belonging to intersection latitude.
In the embodiment of the present invention, it is contemplated that need to judge whether this product belongs to according to the identifier of product Intersecting latitude, the categorical measure the most preferably belonged to according to product arranges the identifier of product, thus directly Connect and judge whether this product belongs to intersection latitude according to the categorical measure entrained by identifier.
Such as, the identifier of product can be " name of product+blank character+categorical measure ".With in table 1 As a example by identifier is the product of 002, the identifier of this product can also be expressed as " kf003 ", wherein Kf represents name of product, and 00 is blank character, and 3 is categorical measure.
By this kind of identifier code rule, judge whether product belongs to intersection according to the identifier of product Latitude, including: read the categorical measure entrained by the identifier of product, when the categorical measure read During more than 1, determine that this product belongs to intersection latitude.
When server memory has stored up synopsis as shown in table 1, by the way of tabling look-up, judge product Whether belong to intersection latitude.When server does not store synopsis as shown in table 1, and the mark of product When knowledge symbol carries categorical measure, sentence by the way of categorical measure entrained by the identifier reading product Whether pregnancy ceased product belong to intersection latitude.When both having stored above-mentioned synopsis, the mark of product in server When symbol also carries categorical measure, preferably two kinds judgment modes are carried out simultaneously, thus ensure the standard judged Really property, when product belongs to intersection latitude when there being a kind of mode to determine, i.e. confirms that product belongs to intersection latitude.
Step S406, when the said goods belongs to intersection latitude, divides according to the quantity modification information of product The inventory data that each classification category that other upgrading products belong to is corresponding.
This step can be divided into product to subscribe and product is quit the subscription of two kinds of situations and realized.
A (), when this change action message is product subscription information, carries according to product subscription information The inventory data that each classification category that the upgrading products respectively of product predetermined number belong to is corresponding.As, will The inventory data that each classification category that product belongs to is corresponding is individually subtracted product predetermined number, is produced The current inventory data that each classification category that product belong to is corresponding.
(b) when this change action message be product quit the subscription of information time, quit the subscription of what information was carried according to product Product quits the subscription of the inventory data that each classification category that quantity upgrading products respectively belong to is corresponding.As, will The inventory data that each classification category that product belongs to is corresponding quits the subscription of quantity plus product respectively, is produced The current inventory data that each classification category that product belong to is corresponding.
In order to ensure inventory data that the Sales Channel of each product is corresponding can synchronized update, above-mentioned In situation (a) and (b), current inventory data includes the current of each distribution platform that product is corresponding The current inventory data of the supplier of inventory data and product.
As a example by table 1, when the product that user's subscription identifier is 002, predetermined number are 2, then The quantity of big bed room, Sea View Room and double room is all subtracted 2, when user quits the subscription of the product that identifier is 321 Product, quit the subscription of quantity when being 3, then Great Wall Automobile, minibus, fuel vehicle, the quantity of 7 people's cars are all added 3。
By the product inventory update method in the present embodiment, for belonging to the product of intersection latitude, After user initiates product quantity change action, it is contemplated that each classification category that this product belongs to, And have updated the inventory data that each classification category that this product belongs to is corresponding, therefore with prior art phase Ratio, it is possible to accurately upgrading products stock, it is ensured that follow-up reservation or the stock's accuracy quit the subscription of.
In order to the identifier of the product in clear and definite the present embodiment determines mode, it is simple to by the mark of product Product inventory is managed by symbol, in the present embodiment, as it is shown in figure 5, obtain product in step S402 Quantity modification information before, also include:
Step S502, is divided into multiple classification by product, arranges according to each classification category that product belongs to The identifier of product.
As a example by guest room, when product is guest room, guest room according to guest room kind, holding time or is divided Pin platform is divided into multiple classification, generates corresponding coding according to the classification that each guest room is corresponding, should Encode the identifier as each guest room.
Wherein, guest room kind refers between big bed room, mark, Sea View Room etc., and holding time refers to this The time period that guest room is subscribed, distribution platform includes taking journey, where goes, with e-commerce websites such as journeys. The classification in guest room is not limited to above-mentioned several, it is possible to the mode that never guest room is made a distinction by ipsilateral It is construed as product classification.
Corresponding coding is generated, using this coding as each guest room according to the classification that each guest room is corresponding Identifier may is that the identifier setting guest room is digital coding as 8, and wherein front three represents guest room Kind, concrete first represents big bed room, and second represents Sea View Room, and the 3rd represents between mark.In Between two represent holding times, concrete first represent daytime subscribe, second represents that evening is the most pre- Order.Last three represent distribution platform, and journey is taken in concrete first expression, and where second represents, 3rd represents same journey.Judge whether the content that everybody coding is corresponding meets the practical situation in guest room one by one, When certain coding meets the practical situation in guest room, then this coding is put 1, otherwise this coding is put 0.That certain daytime is subscribed, belong simultaneously to big bed room and Sea View Room and only online lower subscribe Guest room, the identifier in this guest room can be 11010000.
By this guest room identifier set-up mode, the guest room that taxonomic category is identical will have identical mark Know symbol, by the number of 1 in identifier, it is possible to directly judge whether this guest room belongs to intersection latitude, It is easy to by the identifier in guest room, guest room stock is managed.
By performance bill as a example by, when product for performance bill time, will performance bill according to bill kind, Performance play or distribution platform are divided into multiple classification, generate correspondence according to the classification that each bill is corresponding Coding, using this coding as the identifier of each bill.
Wherein, bill kind refers to adult ticket, student concession ticket etc., and performance play refers to the performance time Or the play mark of performance, such as first, second etc., distribution platform include taking journey, where go, With e-commerce websites such as journeys.The classification of performance bill is not limited to above-mentioned several, it is possible to from difference The mode that performance bill is made a distinction by side is construed as product classification.
Corresponding coding is generated, using this coding as each bill according to the classification that each bill is corresponding Identifier may is that the identifier setting performance bill is digital coding as 7, and wherein the first two position represents Performance bill kind, concrete first represents adult ticket, and second represents student concession ticket.Middle two tables Showing performance play, concrete first represents field on daytime, and second represents field in evening.Last three expressions Distribution platform, concrete first expression take journey, and where second represents, the 3rd represents same journey. Judge whether the content that everybody coding is corresponding meets the practical situation of performance bill one by one, when certain position encodes When meeting the practical situation of performance bill, then this coding is put 1, otherwise this coding is set to 0.Right In certain on daytime field, belong simultaneously to adult ticket and student concession ticket, and the only online lower show ticket subscribed According to, the identifier of this performance bill can be 1110000.
By this performance ticket identifier set-up mode, the performance bill that taxonomic category is identical will have Identical identifier, by the number of 1 in identifier, it is possible to directly judge whether this performance bill belongs to In intersecting latitude, it is simple to by the identifier of performance bill, the stock of performance bill is managed.
As a example by the vehicles, when product is the vehicles, by the vehicles according to tool kind, Holding time or distribution platform are divided into multiple classification, generate according to the classification that each vehicles are corresponding Corresponding coding, using this coding as the identifier of each vehicles.
Wherein, tool kind includes that fuel vehicle, electric motor car etc., holding time refer to this vehicles The time period being subscribed, distribution platform includes taking journey, where goes, with e-commerce websites such as journeys.Hand over The classification of logical instrument is not limited to above-mentioned several, it is possible to never the vehicles are made a distinction by ipsilateral Mode be construed as product classification.
Corresponding coding is generated, using this coding as each friendship according to the classification that each vehicles are corresponding The identifier of logical instrument may is that the identifier setting the vehicles is digital coding, Qi Zhongqian as 8 Three representational tool kinds, concrete first represents electric motor car, and second represents fuel vehicle, the 3rd Represent rickshaw.Middle two represent that holding time, concrete first expression are subscribed daytime, second Position represents to be subscribed evening.Last three represent distribution platform, and journey is taken in concrete first expression, second Position represents where go, and the 3rd represents same journey.Judge whether the content that everybody coding is corresponding meets one by one The practical situation of the vehicles, when certain coding meets the practical situation of the vehicles, then by this position Coding puts 1, is otherwise set to 0 by this coding.Certain daytime is subscribed and only online lower reservation Bicycle, the identifier of this bicycle can be 00110000.
According with set-up mode by this vehicle identity, the vehicles that taxonomic category is identical will have Identical identifier, by the number of 1 in identifier, it is possible to directly judge whether these vehicles belong to In intersecting latitude, it is simple to by the identifier of the vehicles, the stock of the vehicles is managed.
It should be noted that the identifier of above-mentioned guest room, performance bill and the vehicles determines that method is only Being to illustrate, the mode of the identifier that each classification category belonged to according to product arranges product all exists In the protection domain of the application.
By the said goods identifier set-up mode, the product that taxonomic category is identical will have identical mark Know symbol, by the number of 1 in identifier, it is possible to directly judge whether this product belongs to intersection latitude, It is easy to the identifier by product product inventory is managed.
It addition, product involved in the present embodiment, be not limited to above-mentioned guest room, show ticket according to this and The vehicles, are belonged simultaneously to the product of at least two classification category, all can be carried out by said method Stock updates.
Corresponding with the said goods stock's update method, the embodiment of the present invention additionally provides a kind of product library Depositing updating device, as shown in Figure 6, this device 6 includes:
Data obtaining module 61, for obtaining the quantity modification information of product, this quantity modification information bag Including the identifier of product and the change action message of product, the change action message of product includes that product is pre- Order information and product quits the subscription of information;
According to the identifier of product, intersection latitude judge module 62, for judging whether product belongs to intersection Latitude;Wherein, the latitude that intersects refers to that product belongs simultaneously at least two classification category;
Stock's more new module 63, for when product belongs to intersection latitude, changing according to the quantity of product The inventory data that each classification category that information upgrading products respectively belong to is corresponding.
Wherein, the latitude judge module 62 that intersects includes: the first judging unit, for the mark according to product Know symbol and in the synopsis prestored, search the classification that product is corresponding, when finding the class that product is corresponding When other quantity is more than 1, determine that product belongs to intersection latitude;And/or, the second judging unit, it is used for reading Take the categorical measure entrained by the identifier of product, when the categorical measure read is more than 1, determine Product belongs to intersection latitude.
Wherein, stock's more new module 63 includes: subscribe stock's updating block, for believing when change action When breath is for product subscription information, the inventory data that each classification category of being belonged to by product is corresponding subtracts respectively Go product predetermined number, obtain the current inventory data that each classification category that product belongs to is corresponding;Move back Order stock's updating block, for when change action message be product quit the subscription of information time, product is belonged to Inventory data corresponding to each classification category quits the subscription of quantity plus product respectively, and obtain that product belongs to is each The current inventory data that individual classification category is corresponding;Wherein, current inventory data includes corresponding each of product The current inventory data of individual distribution platform and the current inventory data of the supplier of product.
By the product inventory updating device in the present embodiment, for belonging to the product of intersection latitude, After user initiates product quantity change action, it is contemplated that each classification category that this product belongs to, And have updated the inventory data that each classification category that this product belongs to is corresponding, therefore with prior art phase Ratio, it is possible to accurately upgrading products stock, it is ensured that follow-up reservation or the stock's accuracy quit the subscription of.
In order to the identifier of the product in clear and definite the present embodiment determines mode, it is simple to by the mark of product Product inventory is managed, in the present embodiment, as it is shown in fig. 7, also include by symbol:
Identifier arranges module 71, for product being divided into multiple classification, belong to according to product each Classification category arranges the identifier of product.
Specifically, identifier arranges module 71 and includes: guest room identifier arranges unit, for working as product During for guest room, guest room is divided into multiple classification according to guest room kind, holding time or distribution platform, Corresponding coding is generated, using this coding as the mark in each guest room according to classification corresponding to each guest room Symbol;Ticket identifier arranges unit, for when product is for performance bill, performing bill according to ticket It is divided into multiple classification, according to the classification that each bill is corresponding according to kind, performance play or distribution platform Generate corresponding coding, using this coding as the identifier of each bill;Traffic mark symbol arranges unit, For when product is the vehicles, the vehicles are flat according to tool kind, holding time or distribution Platform is divided into multiple classification, generates corresponding coding according to the classification that each vehicles are corresponding, should Encode the identifier as each vehicles.
By this product identifiers set-up mode, the product that taxonomic category is identical will have identical mark Know symbol, by the number of 1 in identifier, it is possible to directly judge whether this product belongs to intersection latitude, It is easy to the identifier by product product inventory is managed.
The product inventory updating device that the embodiment of the present invention is provided can be the specific hardware on equipment or Software that person is installed on equipment or firmware etc..The device that the embodiment of the present invention is provided, it realizes former Reason and the technique effect produced are identical with preceding method embodiment, for briefly describing, and device embodiment portion Divide not mentioned part, refer to corresponding contents in preceding method embodiment.Those skilled in the art It can be understood that arrive, for convenience and simplicity of description, system, device and unit described above Specific works process, be all referred to the corresponding process in said method embodiment, the most superfluous at this State.
In embodiment provided by the present invention, it should be understood that disclosed apparatus and method, permissible Realize by another way.Device embodiment described above is only schematically, such as, The division of described unit, is only a kind of logic function and divides, and actual can have other drawing when realizing Point mode, the most such as, multiple unit or assembly can in conjunction with or be desirably integrated into another system, Or some features can ignore, or do not perform.Another point, shown or discussed coupling each other Conjunction or direct-coupling or communication connection can be the indirect couplings by some communication interfaces, device or unit Close or communication connection, can be electrical, machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, The parts shown as unit can be or may not be physical location, i.e. may be located at a ground Side, or can also be distributed on multiple NE.Can select therein according to the actual needs Some or all of unit realizes the purpose of the present embodiment scheme.
Process single it addition, each functional unit in the embodiment that the present invention provides can be integrated in one In unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated In a unit.
If described function realizes using the form of SFU software functional unit and as independent production marketing or make Used time, can be stored in a computer read/write memory medium.Based on such understanding, this Part that prior art is contributed by bright technical scheme the most in other words or this technical scheme Part can embody with the form of software product, and this computer software product is stored in a storage In medium, including some instructions with so that a computer equipment (can be personal computer, take Business device, or the network equipment etc.) perform completely or partially walking of method described in each embodiment of the present invention Suddenly.And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. the various media that can store program code.
It should also be noted that similar label and letter represent similar terms, therefore, one in following accompanying drawing A certain Xiang Yi the accompanying drawing of denier is defined, then need not it is carried out further in accompanying drawing subsequently Definition and explanation, describe additionally, term " first ", " second ", " the 3rd " etc. are only used for distinguishing, And it is not intended that indicate or hint relative importance.
Last it is noted that the detailed description of the invention of embodiment described above, the only present invention, use So that technical scheme to be described, being not intended to limit, protection scope of the present invention is not limited to This, is although the present invention being described in detail with reference to previous embodiment, the ordinary skill of this area Personnel are it is understood that any those familiar with the art is at the technical scope that the invention discloses In, the technical scheme described in previous embodiment still can be modified by it maybe can readily occur in change Change, or wherein portion of techniques feature is carried out equivalent;And these are revised, change or replace, The essence not making appropriate technical solution departs from the spirit and scope of embodiment of the present invention technical scheme.All Should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be described with right The protection domain required is as the criterion.

Claims (10)

1. a product inventory update method, it is characterised in that described method includes:
Obtaining the quantity modification information of product, described quantity modification information includes the identifier of described product With the change action message of described product, the change action message of described product includes product subscription information Information is quit the subscription of with product;
Identifier according to described product judges whether described product belongs to intersection latitude;Wherein, described The latitude that intersects refers to that described product belongs simultaneously at least two classification category;
When described product belongs to intersection latitude, update respectively according to the quantity modification information of described product The inventory data that each classification category that described product belongs to is corresponding.
Method the most according to claim 1, it is characterised in that according to the identifier of described product Judge whether described product belongs to intersection latitude, including:
Identifier according to described product searches the class that described product is corresponding in the synopsis prestored Not, when finding categorical measure corresponding to described product more than 1, determine that described product belongs to intersection Latitude;And/or,
Read the categorical measure entrained by the identifier of described product, when the described categorical measure read During more than 1, determine that described product belongs to intersection latitude.
Method the most according to claim 1, it is characterised in that become according to the quantity of described product More information updates the inventory data that each classification category that described product belongs to is corresponding respectively, including:
When described change action message is product subscription information, each classification that described product is belonged to The inventory data that category is corresponding is individually subtracted described product predetermined number, and obtain that described product belongs to is each The current inventory data that individual classification category is corresponding;
When described change action message be product quit the subscription of information time, each classification that described product is belonged to Inventory data corresponding to category quits the subscription of quantity plus described product respectively, and obtain that described product belongs to is each The current inventory data that individual classification category is corresponding;
Wherein, described current inventory data includes the current storehouse of each distribution platform that described product is corresponding The current inventory data of the supplier of deposit data and described product.
Method the most according to claim 1, it is characterised in that obtaining the quantity change of product Before information, described method also includes:
Described product is divided into multiple classification, institute is set according to each classification category that described product belongs to State the identifier of product.
5. want the method described in 4 according to right, it is characterised in that described product is divided into multiple classification, Each classification category belonged to according to described product arranges the identifier of described product, including:
When described product is guest room, described guest room is flat according to guest room kind, holding time or distribution Platform is divided into multiple classification, generates corresponding coding, by described volume according to the classification that each guest room is corresponding Code is as the identifier in described each guest room;
When described product is for performance bill, by described performance bill according to bill kind, performance play Or distribution platform is divided into multiple classification, generate corresponding coding according to the classification that each bill is corresponding, Using described coding as the identifier of described each bill;
When described product is the vehicles, by the described vehicles according to tool kind, holding time Or distribution platform is divided into multiple classification, generate corresponding volume according to the classification that each vehicles are corresponding Code, using described coding as the identifier of described each vehicles.
6. a product inventory updating device, it is characterised in that described device includes:
Data obtaining module, for obtaining the quantity modification information of product, described quantity modification information bag Include the identifier of described product and the change action message of described product, the change action letter of described product Breath includes that product subscription information and product quit the subscription of information;
According to the identifier of described product, intersection latitude judge module, for judging whether described product belongs to In intersecting latitude;Wherein, described intersection latitude refers to that described product belongs simultaneously at least two classification category In;
Stock's more new module, for when described product belongs to intersection latitude, according to the number of described product Amount modification information updates the inventory data that each classification category that described product belongs to is corresponding respectively.
Device the most according to claim 6, it is characterised in that described intersection latitude judge module Including:
First judging unit, for looking in the synopsis prestored according to the identifier of described product Look for the classification that described product is corresponding, when finding categorical measure corresponding to described product more than 1, really Fixed described product belongs to intersection latitude;And/or,
Second judging unit, for reading the categorical measure entrained by identifier of described product, works as reading When the described categorical measure got is more than 1, determine that described product belongs to intersection latitude.
Device the most according to claim 6, it is characterised in that described stock more new module includes:
Subscribe stock's updating block, be used for when described change action message is product subscription information, will The inventory data that each classification category that described product belongs to is corresponding is individually subtracted described product and subscribes number Amount, obtains the current inventory data that each classification category that described product belongs to is corresponding;
Quit the subscription of stock's updating block, for when described change action message be product quit the subscription of information time, will The inventory data that each classification category that described product belongs to is corresponding quits the subscription of number plus described product respectively Amount, obtains the current inventory data that each classification category that described product belongs to is corresponding;
Wherein, described current inventory data includes the current storehouse of each distribution platform that described product is corresponding The current inventory data of the supplier of deposit data and described product.
Device the most according to claim 6, it is characterised in that described device also includes:
Identifier arranges module, for described product is divided into multiple classification, belongs to according to described product Each classification category the identifier of described product is set.
10. want the device described in 9 according to right, it is characterised in that described identifier arranges module bag Include:
Guest room identifier arranges unit, for when described product is guest room, by described guest room according to visitor Room kind, holding time or distribution platform are divided into multiple classification, according to the classification that each guest room is corresponding Generate corresponding coding, using described coding as the identifier in described each guest room;
Ticket identifier arranges unit, for when described product is for performance bill, by described show ticket It is divided into multiple classification, according to each bill pair according to according to bill kind, performance play or distribution platform The classification answered generates corresponding coding, using described coding as the identifier of described each bill;
Traffic mark symbol arranges unit, for when described product is the vehicles, by described traffic work Tool is divided into multiple classification according to tool kind, holding time or distribution platform, according to each traffic work The classification that tool is corresponding generates corresponding coding, using described coding as the mark of described each vehicles Symbol.
CN201610294891.5A 2016-05-05 2016-05-05 Product inventory update method and device Pending CN105956120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610294891.5A CN105956120A (en) 2016-05-05 2016-05-05 Product inventory update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610294891.5A CN105956120A (en) 2016-05-05 2016-05-05 Product inventory update method and device

Publications (1)

Publication Number Publication Date
CN105956120A true CN105956120A (en) 2016-09-21

Family

ID=56914772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610294891.5A Pending CN105956120A (en) 2016-05-05 2016-05-05 Product inventory update method and device

Country Status (1)

Country Link
CN (1) CN105956120A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188139A (en) * 2019-05-05 2019-08-30 苏宁易购集团股份有限公司 Inventory's number synchronous method, device, computer equipment and storage medium
CN113011939A (en) * 2021-01-20 2021-06-22 云南腾云信息产业有限公司 Rental vehicle inventory management method, device, terminal and readable storage medium
CN113643037A (en) * 2021-07-24 2021-11-12 广州美亚尚途国际旅行社有限公司 Business travel unsubscription management system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719244A (en) * 2009-12-29 2010-06-02 金蝶软件(中国)有限公司 Method for processing inventory documents, application server and enterprise network system
CN103348363A (en) * 2011-03-10 2013-10-09 亚马逊技术股份有限公司 Inventory pooling for multiple merchants
CN103699694A (en) * 2014-01-13 2014-04-02 联想(北京)有限公司 Data processing method and device
CN104516895A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Stock information processing method and system for commodity object

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719244A (en) * 2009-12-29 2010-06-02 金蝶软件(中国)有限公司 Method for processing inventory documents, application server and enterprise network system
CN103348363A (en) * 2011-03-10 2013-10-09 亚马逊技术股份有限公司 Inventory pooling for multiple merchants
CN104516895A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Stock information processing method and system for commodity object
CN103699694A (en) * 2014-01-13 2014-04-02 联想(北京)有限公司 Data processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110188139A (en) * 2019-05-05 2019-08-30 苏宁易购集团股份有限公司 Inventory's number synchronous method, device, computer equipment and storage medium
CN110188139B (en) * 2019-05-05 2021-10-22 苏宁易购集团股份有限公司 Stock number synchronization method and device, computer equipment and storage medium
CN113011939A (en) * 2021-01-20 2021-06-22 云南腾云信息产业有限公司 Rental vehicle inventory management method, device, terminal and readable storage medium
CN113011939B (en) * 2021-01-20 2024-03-12 云南腾云信息产业有限公司 Inventory management method, device, terminal and readable storage medium for leased vehicle
CN113643037A (en) * 2021-07-24 2021-11-12 广州美亚尚途国际旅行社有限公司 Business travel unsubscription management system

Similar Documents

Publication Publication Date Title
CN104737161A (en) Person-based information aggregation
CN107491825A (en) A kind of about car processing method and system
CN109272385A (en) It is a kind of based on block chain copyright issue agency deposit card method and system
CN107145992A (en) A kind of order allocation method and device
CN104756073A (en) Device and method for providing multimedia data in motor vehicle
CN103596066A (en) Method and device for data processing
CN104951456A (en) Method, device and equipment used for obtaining answer information
CN104809601A (en) Express delivery mutual aid system based on electronic map
CN110136431B (en) Vehicle sharing method and device
CN109767129B (en) Credit limit control method and device
CN105956120A (en) Product inventory update method and device
DE102013201597A1 (en) PROCEDURE FOR SOCIAL INFORMATION EXCHANGE IN A VEHICLE
CN106302759A (en) A kind of Intelligent vehicle-mounted multimedia system and method
CN105791093A (en) Virtual goods presenting method and device
CN106708620A (en) Data processing method and system
CN104965829A (en) Method, server and system for classifying terminal applications
JP7176218B2 (en) Information retrieval server, information retrieval system and information retrieval method
CN105207881A (en) Message sending method and equipment
CN109583616A (en) A kind of information recommendation method and device and storage medium
CN113516332B (en) Information processing apparatus, non-transitory storage medium, and evaluation method
CN109684033A (en) Cloud platform bare machine management method, storage medium, electronic equipment and system
CN103379022B (en) A kind of instant communication method based on Internet map search and system
CN104615709A (en) Information display method and device
CN104318433A (en) Automatic recharging method and system of citizen card
CN109274725B (en) Internet transaction positioning method and device and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160921