CN109739865A - A kind of processing method and processing device of commodity data - Google Patents

A kind of processing method and processing device of commodity data Download PDF

Info

Publication number
CN109739865A
CN109739865A CN201811418359.5A CN201811418359A CN109739865A CN 109739865 A CN109739865 A CN 109739865A CN 201811418359 A CN201811418359 A CN 201811418359A CN 109739865 A CN109739865 A CN 109739865A
Authority
CN
China
Prior art keywords
inventory
commodity
commodity data
time
data
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
CN201811418359.5A
Other languages
Chinese (zh)
Other versions
CN109739865B (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.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201811418359.5A priority Critical patent/CN109739865B/en
Publication of CN109739865A publication Critical patent/CN109739865A/en
Application granted granted Critical
Publication of CN109739865B publication Critical patent/CN109739865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of processing method and processing devices of commodity data, are related to technical field of data processing, it is possible to reduce the redundancy of commodity data in inventory reduces the storage pressure of inventory.The described method includes: obtaining the storage time granularity of commodity data;As unit of the storage time granularity of the commodity data, generate commodity data can time shaft in scheduled duration, record has inventory status mark of the commodity data in storage time granularity on the time shaft;It is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft;When receiving processing request, the inventory status mark of commodity data in inventory on a timeline is updated according to default inventory's rule.

Description

A kind of processing method and processing device of commodity data
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of processing method and processing device of commodity data.
Background technique
By internet platform, businessman can be purchased in the commodity of Web realease oneself, user by internet platform Required commodity are bought, realize the transaction of commodity, commodity here can be physical commodity, be also possible to service class commodity.
When user's purchase needs date predetermined class commodity, for example, predetermined air ticket, predetermined private room, intended site etc., in addition to It needs outside selected commodity, while also needing to select commodity corresponding target date, place, participation number etc..Therefore, in storage day It needs to store the attribute informations such as corresponding commodity, target date when the commodity data of phase predetermined class, it specifically can be according to commodity purchasing Time granularity the commodity data on each date is stored according to specific format into inventory, once receive merchandise query or It is convenient that commodity data in inventory is handled when goods orders.
However, the prior art can ignore the thickness of time granularity during storing date predetermined class commodity data, Each time interval can create the commodity data of corresponding time interval so that in inventory every commodity data can be distributed in it is multiple On time interval, as time goes by, inventory, which will appear, many scheduled or quotient in expired time interval Product data increase the storage pressure of inventory so that commodity data redundancy is excessive in inventory.
Summary of the invention
In view of this, main purpose is to solve existing the present invention provides a kind of processing method and processing device of commodity data The redundancy issue of middle commodity data in stock.
According to the present invention on one side, a kind of processing method of commodity data is provided, this method comprises:
Obtain the storage time granularity of commodity data;
As unit of the storage time granularity of the commodity data, commodity data is generated can time in scheduled duration Axis, record has inventory status mark of the commodity data in storage time granularity on the time shaft;
It is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft, every commodity Data respectively correspond to a time shaft;
Inventory's shape when receiving processing request, according to default inventory's rule to commodity data in inventory on a timeline State mark is updated.
Further, when processing request is predetermined request, default inventory's rule includes predetermined policy, described When receive processing request when, according to default inventory's rule to the inventory status of commodity data in inventory on a timeline identify into Row updates
The predetermined request for carrying commodity sign and predetermined time section is received, the commodity sign is searched from inventory Corresponding commodity data;
The corresponding commodity data of commodity sign described in inventory is updated in predetermined time section according to the predetermined policy Inventory status mark.
Further, described to update the corresponding commodity data of commodity sign described in inventory pre- according to the predetermined policy The inventory status in section of fixing time, which identifies, includes:
If inventory status of the corresponding commodity data of commodity sign described in inventory in predetermined time section is identified as Idle state conducts the locking operations to the corresponding commodity data of the commodity sign, and inventory status mark is updated to Occupied state.
Further, when processing request is inquiry request, default inventory's rule includes query strategy, described When receive processing request when, according to default inventory's rule to the inventory status of commodity data in inventory on a timeline identify into Row updates
The inquiry request for carrying commodity sign is received, the corresponding quotient of the commodity sign is searched from the commodity data Product data;
The time shaft of the corresponding commodity data of commodity sign described in inventory is updated according to the query strategy.
Further, it is described according to the query strategy update inventory described in the corresponding commodity data of commodity sign when Between axis include:
The current time recorded using in the inquiry request be as time shaft initial time, can scheduled duration as when Between axis time interval, update the time shaft of the corresponding commodity data of the commodity sign.
Further, the current time recorded using in the inquiry request is the initial time as time shaft, can Time interval of the scheduled duration as time shaft, the time shaft for updating the corresponding commodity data of the commodity sign include:
By inventory shape of the corresponding commodity data of the commodity sign recorded on time shaft before the initial time State mark empties;
By the corresponding commodity data of the commodity sign recorded on time shaft it is described can inventory's shape in scheduled duration State identifies polishing.
According to the present invention on the other hand, a kind of processing unit of commodity data is provided, which includes:
Acquiring unit, for obtaining the storage time granularity of commodity data;
Generation unit can make a reservation for for as unit of the storage time granularity of the commodity data, generating commodity data Time shaft in duration, record has inventory status mark of the commodity data in storage time granularity on the time shaft;
Storage unit is stored the commodity data in the form of time shaft to library for being identified according to the inventory status In depositing, every commodity data respectively corresponds to a time shaft;
Updating unit, for when receive processing request when, according to default inventory's rule to commodity data in inventory when Between inventory status mark on axis be updated.
Further, when processing request is predetermined request, default inventory's rule includes predetermined policy, described Updating unit includes:
First receiving module, for receiving the predetermined request for carrying commodity sign and predetermined time section, from inventory It is middle to search the corresponding commodity data of the commodity sign;
First update module, for updating the corresponding commodity data of commodity sign described in inventory according to the predetermined policy Inventory status mark in predetermined time section.
Further, first update module, if being specifically used for the corresponding commodity number of commodity sign described in inventory It is identified as idle state according to the inventory status in predetermined time section, the corresponding commodity data of the commodity sign is locked Fixed operation, and inventory status mark is updated to occupied state.
Further, when processing request is inquiry request, default inventory's rule includes query strategy, described Updating unit further include:
Second receiving module searches institute for receiving the inquiry request for carrying commodity sign from the commodity data State the corresponding commodity data of commodity sign;
Second update module, for updating the corresponding commodity data of commodity sign described in inventory according to the query strategy Time shaft.
Further, second update module, specifically for being to make with the current time recorded in the inquiry request For the initial time of time shaft, can time interval of the scheduled duration as time shaft, update the corresponding commodity of the commodity sign The time shaft of data.
Further, second update module includes:
Submodule is emptied, the corresponding commodity data of the commodity sign for will record on time shaft is in the starting Between before inventory status mark empty;
Polishing submodule, the corresponding commodity data of the commodity sign for will record on time shaft make a reservation for described Inventory status in duration identifies polishing.
Another aspect according to the present invention provides a kind of storage equipment, is stored thereon with computer program, described program The processing method of above-mentioned commodity data is realized when being executed by processor.
Another aspect according to the present invention provides a kind of processing unit of commodity data, including storage equipment, processor And the computer program that can be run on a storage device and on a processor is stored, the processor is realized when executing described program The processing method of above-mentioned commodity data.
By above-mentioned technical proposal, a kind of processing method of commodity data, device and computer storage provided by the invention Medium, compared with the mode being at present directly distributed in every commodity data in multiple time interval storages in inventory, the present invention Can as unit of the storage time granularity of commodity data, generate commodity data can time shaft in scheduled duration, the time On axis record have commodity data in storage time granularity inventory status mark, according to inventory status mark by commodity data with The form of time shaft is stored into inventory, and every commodity data respectively corresponds to a time shaft, the time shaft energy in inventory here Enough summarize multiple time intervals, without creating corresponding commodity data for each time interval, the storage pressure of inventory can be reduced Power, and the corresponding time interval of the time shaft is that can subscribe duration range, will not store expired or not scheduled commodity number According to, the redundancy of commodity data in inventory is reduced, and then in commodity data operating process, it only need to be to the commodity on corresponding time shaft Data are updated, and reduce the inventory operations time.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of processing method flow diagram of commodity data provided in an embodiment of the present invention;
Fig. 2 shows the processing method flow diagrams of another commodity data provided in an embodiment of the present invention;
Fig. 3 shows the processing method flow diagram of another commodity data provided in an embodiment of the present invention;
Fig. 4 shows a kind of structural schematic diagram of the processing unit of commodity data provided in an embodiment of the present invention;
Fig. 5 shows the apparatus structure schematic diagram of the processing of another commodity data provided in an embodiment of the present invention;
Fig. 6 shows the apparatus structure schematic diagram of the processing of another commodity data provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of processing method of commodity data, the storage pressure for reducing inventory may be implemented Purpose, as shown in Figure 1, this method comprises:
101, the storage time granularity of commodity data is obtained.
Wherein, commodity data can be the predetermined class commodity data traded by internet, such as product name, volume Number, the data such as target date, predetermined class commodity here can be air ticket, karaoke chamber, shuttlecock place, hotel accommodations etc., by In user when buying predetermined class commodity, need while selecting predetermined class commodity, it is also necessary to select the scheduled date Or the time, such as 8 points of predetermined August 15 days 15 minutes flies to the air ticket in Shanghai from Beijing, predetermined September hotel accommodations on the 10th etc., so Predetermined class commodity data is stored according to date or time sequence.
For the embodiment of the present invention, commodity data can form a large amount of tables of data, and the data in these tables of data are with assorted Granularity stores, and has an impact to the various aspects of data, it is generally the case that the storage time granularity of commodity data can be It, when, minute, second etc., and commodity data here has particularity on on-sale date, needs when generating goods orders Subsidiary commodity preordering time, the commodity preordering time are typically referenced to the storage time granularity of commodity data, can for day, when, point, Second etc., here without limiting
102, as unit of the storage time granularity of the commodity data, generate commodity data can in scheduled duration when Between axis.
Wherein, the time interval of time shaft be can the predetermined time, this can be equivalent to businessman the predetermined time when selling goods Publication can predetermined commodity time interval, can be several days, one week or two weeks etc., the unit of time shaft is commodity data Storage time granularity, such as the storage granularity of commodity data is day, can be one week the predetermined time, then there is 7 days record on time shaft Commodity data, each unit is 1 day commodity data.
For the embodiment of the present invention, each commodity are corresponding with respective commodity sign information, such as commodity label, product name Etc. information, for different commodity signs, generate different commodity sign corresponding goods data during storing commodity data Time shaft, record has inventory status mark of the commodity data in storage time granularity, the state of commodity data on the time shaft Mark be mainly used to show predetermined state of the commodity data on the time granularity, for example, karaoke chamber A in time shaft can be pre- Periodically a length of August 1 day to August 7th, storage time granularity is hour, if receiving August 3 points to 6 points of reservation order on the 4th, Then inventory status is identified as predetermined state to karaoke chamber A in August 3 points to 6 storage time granularities on the 4th on a timeline, remaining Inventory status in storage time granularity is non-predetermined state, it is of course possible to increase predetermined state as needed, such as predetermined middle shape State, or predetermined state is solved, here without limiting.
103, it is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft, every Commodity data respectively corresponds to a time shaft.
For the embodiment of the present invention, can be accompanied with when businessman is in publishing commodity information commodity can the predetermined time, and Inventory status mark of the commodity data in storage time granularity be usually can predetermined state, and then stored according to commodity data Inventory status mark on time granularity stores commodity data in the form of time shaft into inventory, so that each commodity are corresponding There is a time shaft, the commodity data of multiple time subregions, which is all converged on a time shaft, to be indicated, is reduced and is stored in inventory Data volume can also migrate therewith on time shaft at predetermined time at corresponding time point as time go on, and expired commodity data loses Effect reduces the redundant data in inventory.
For example, current time is July 20, it can be one week the predetermined time, then the corresponding time interval of time shaft is July 20 to July 26, if current time is updated to July 23, the corresponding time interval of the time shaft of commodity data It can be updated to July 23 therewith to July 29.
104, the library when receiving processing request, according to default inventory's rule to commodity data in inventory on a timeline Status indicator is deposited to be updated.
Wherein, processing request can be with inquiry request or predetermined request, in order to further facilitate to commodity data in inventory It is handled, which is provided with default inventory's rule, such as the predetermined policy of commodity preordering, the inquiry for merchandise query Strategy carries out logical operation to commodity data in inventory according to default inventory's rule, may be implemented to carry out commodity data different The processing of function.
The processing method of commodity data provided in an embodiment of the present invention is more at present directly every commodity data is distributed in Mode in a time interval storage in inventory is compared, and the present invention can be raw as unit of the storage time granularity of commodity data At commodity data can time shaft in scheduled duration, record has library of the commodity data in storage time granularity on the time shaft Status indicator is deposited, is identified according to inventory status and stores commodity data into inventory in the form of time shaft, it is every in inventory here Commodity data respectively corresponds to a time shaft, which can summarize multiple time intervals, without being each time interval Corresponding commodity data is created, the storage pressure of inventory can be reduced, and the corresponding time interval of the time shaft is when can subscribe Long range will not store expired or not scheduled commodity data, reduce the redundancy of commodity data in inventory, and then in commodity In process operation data, the commodity data on corresponding time shaft need to be only updated, reduce the inventory operations time.
The embodiment of the invention provides the processing method of another commodity data, when may be implemented to reduce inventory's predetermined operation Between purpose, as shown in Fig. 2, this method comprises:
201, the storage time granularity of commodity data is obtained.
For the embodiment of the present invention, since predetermined class commodity are sold according to specific time granularity, in storage commodity During data, specifically can storage according to time granularity based on during commercial articles vending to obtain commodity data when Between granularity, such as karaoke chamber is usually to sell according to hour, so the storage time grain of karaoke chamber corresponding goods data Degree is hour, and hotel accommodations are usually to sell according to day, so the storage time of the corresponding commodity data of hotel accommodations Granularity is day.
202, as unit of the storage time granularity of the commodity data, generate commodity data can in scheduled duration when Between axis.
For the embodiment of the present invention, it is corresponding with a time shaft for each commodity data, record has quotient on the time shaft Inventory status mark of the product data in storage time granularity, inventory status mark may include 0,1 two states, and 1 indicates Commodity in storage time granularity can make a reservation for, and the commodity in 0 expression storage time granularity can not make a reservation for, certain inventory status mark Knowledge is not limited to 0,1 two states, can also be the other forms such as A, B, can also include more states, when such as indicating storage Between commodity preordering fair state in granularity.
203, it is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft.
For the embodiment of the present invention, during storing commodity data in the form of time shaft to inventory, for side Just commodity data being understood from various dimensions, the attribute information of commodity data can accordingly being added in inventory, such as goods number enters Library price, place inventory locations, entry time etc..
204, the predetermined request for carrying commodity sign and predetermined time section is received, the commodity are searched from inventory Identify corresponding commodity data.
Wherein, predetermined request is predetermined operation of the request to commodity data in inventory, such as predetermined karaoke chamber, is used Family assigned aircraft ticket, the predetermined request carry commodity sign, such as product name, goods number, when user selects predetermined class quotient When product, other than selecting commodity sign, the time of predetermined commodity can be also selected, so record has the predetermined time in the predetermined request Section, for example, user may predetermined 18:00 to 24:00 shuttlecock place.
For the embodiment of the present invention, the commodity data of different commodity signs is stored in inventory, it can be with by commodity sign Corresponding commodity data is found out from inventory, it, can also be in storage commodity data if commodity sign is excessive in inventory certainly During commodity data is divided according to commodity sign corresponding merchandise classification, in order to the commodity of identical merchandise classification The lookup of data.
205, the corresponding commodity data of commodity sign described in inventory is updated in predetermined time area according to the predetermined policy Interior inventory status mark.
For the embodiment of the present invention, predetermined policy is for carrying out corresponding commodity data in inventory in the predetermined commodity of user The logical operation of update, since the corresponding commodity data of commodity sign is stored in the form of time shaft in inventory, this when Between on axis record have inventory status mark of the commodity data in storage time granularity, according to inventory status mark it will be seen that Commodity data each storage time granularity inventory status, if thus in commodity preordering the commodity according to inventory It identifies inventory status of the corresponding commodity data in predetermined time section and is identified as idle state, the inventory status is identified It conducts the locking operations, and inventory status mark is updated to occupied state, corresponding commodity data are updated.
If inventory status of the corresponding commodity data of commodity sign in predetermined time section is identified as the free time in inventory State illustrates that the commodity are not scheduled in predetermined time section, further locks to the corresponding commodity data of commodity sign Fixed operation is updated so that other predetermined requests can not identify inventory status of the commodity data in predetermined time section Operation, and inventory status mark of the commodity data in predetermined time section is updated to occupied state.
It should be noted that if inventory shape of the corresponding commodity data of commodity sign in predetermined time section in inventory State is identified as occupied state, illustrates that the commodity have been scheduled in predetermined time section, then the predetermined request can not be to the quotient Inventory status mark of the product data in predetermined time section is updated operation.
The processing method of commodity data provided in an embodiment of the present invention is more at present directly every commodity data is distributed in Mode in a time interval storage in inventory is compared, and the present invention can be raw as unit of the storage time granularity of commodity data At commodity data can time shaft in scheduled duration, record has library of the commodity data in storage time granularity on the time shaft Status indicator is deposited, is identified according to inventory status and stores commodity data into inventory in the form of time shaft, it is every in inventory here Commodity data respectively corresponds to a time shaft, which can summarize multiple time intervals, without being each time interval Corresponding commodity data is created, the storage pressure of inventory can be reduced, and the corresponding time interval of the time shaft is when can subscribe Long range will not store expired or not scheduled commodity data, reduce the redundancy of commodity data in inventory, and then in commodity In process operation data, the commodity data on corresponding time shaft need to be only updated, reduce the inventory operations time.
The embodiment of the invention provides the processing method of another commodity data, may be implemented to reduce commodity data in inventory The purpose of redundancy, as shown in figure 3, this method comprises:
301, the storage time granularity of commodity data is obtained.
For the embodiment of the present invention, the realization process of the specific storage time granularity for obtaining commodity data is referred to step 101, content described in step 201, herein without repeating.
302, as unit of the storage time granularity of the commodity data, generate commodity data can in scheduled duration when Between axis.
For the embodiment of the present invention, specifically as unit of the storage time granularity of commodity data, commodity data is generated can The realization process of time shaft in scheduled duration is referred to content described in step 102, step 202, herein without superfluous It states.
For example, commodity are 2 hotel rooms, corresponding number in each room is bg001, bg002, and storage time granularity is It, can scheduled duration be 7 days, each room can the inventory status mark in scheduled duration can be indicated by 0 and 1,0 table Show that the room of this day is scheduled, the room of 1 this day of expression is not scheduled, if room bg001 can not exist in scheduled duration User is predetermined, then the form room bg001 data of time shaft can be expressed as 1111111, if room bg002 can make a reservation for Third day in duration and that there are users in the 4th day is predetermined, then the form room bg002 data of time shaft can be expressed as 1100111。
303, it is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft.
For the embodiment of the present invention, is identified with specific reference to inventory status and store commodity data to library in the form of time shaft The realization process deposited is referred to content described in step 103, step 203, herein without repeating.
304, the inquiry request for carrying commodity sign is received, it is corresponding that the commodity sign is searched from the commodity data Commodity data.
Wherein, inquiry request is request to the inquiry operation of commodity data in inventory, naturally it is also possible to predetermined operation it After trigger inquiry operation, such as whether inquiry karaoke chamber is scheduled in sometime section, and same inquiry request carries quotient Product mark, can find out corresponding commodity data by commodity sign from inventory.
305, the time shaft of the corresponding commodity data of commodity sign described in inventory is updated according to the query strategy.
For the embodiment of the present invention, query strategy is for carrying out corresponding commodity data in inventory in user query commodity The logical operation of update, since a period of time section can be returned to when the corresponding commodity data of commodity sign in inquiry inventory every time Interior inventory, with the continuous movement of time, the time interval recorded on time shaft can also be constantly updated therewith, further pass through The current time recorded using in inquiry request as time shaft initial time, can scheduled duration be time shaft time interval, Update the time shaft of the corresponding commodity data of commodity sign.
Specifically during updating the time shaft of the corresponding commodity data of commodity sign, it can will be recorded on time shaft Inventory status mark of the corresponding commodity data of commodity sign before initial time empties, the quotient that then will be recorded on time shaft Product identify corresponding commodity data can the inventory status in scheduled duration identify polishing.
For example, storage time granularity is day, the initial time of time shaft is August 1st, and the end time is August 7th, can be pre- Periodically a length of 7 days, the inventory status mark that record has commodity data daily on time shaft, when the current time of incoming inquiry is 8 Timing node was used as by August 4th on the time shaft in inventory by the moon 4, the inventory status of commodity data before August 4th is identified Empty, and using August 4 days as time shaft at the beginning of, according to can scheduled duration to calculate the end time of time shaft be August 10 Day, since the inventory status between August 7 days to August 10th and there is no commodity data identifies, by commodity data on time shaft Inventory status identifies polishing, since the inventory status on time shaft in the time interval of polishing is identified as newly-increased commodity data, The inventory status of polishing is identified as idle state.
For the embodiment of the present invention, user specifically can wrap the logical operation of private room corresponding in inventory in predetermined private room It includes but is not limited to following implementations: receiving the predetermined request that private room 001 predetermined time section is 10:00 to 14:00 first, By searching the time shaft of 001 data of private room in inquiry inventory, judge the time shafts of 001 data of private room in inventory 10:00 extremely Inventory status on 14:00 identifies whether as idle state, if it is idle state, illustrate the data of private room 001 10:00 extremely It is not scheduled in 14:00, data upper inventory status mark progress in 10:00 to 14:00 in time shaft to private room 001 Locking, and it is updated to occupied state, private room predetermined operation, which is completed, if not idle state then illustrates that the data of private room 001 exist It is upper scheduled in 10:00 to 14:00, predetermined operation, private room predetermined operation failure can not be carried out.
It should be noted that needing to be updated the commodity data in inventory, such as during executing predetermined request It is current time that the time shaft of commodity data, which corresponds to initial time not being, in fruit inventory, but initial time long ago, meeting Lead to commodity data failure in inquiry or update, under normal conditions for the ease of the logical operation of commodity data, Ke Yishe The commodity data in prefixed time interval inquiry inventory is set, when guaranteeing that the time interval on commodity data time shaft is in current Between in range, the time shaft for updating commodity data according to current time while predetermined commodity data, this hair also can be set Bright embodiment is without limiting.
The processing method of commodity data provided in an embodiment of the present invention is more at present directly every commodity data is distributed in Mode in a time interval storage in inventory is compared, and the present invention can be raw as unit of the storage time granularity of commodity data At commodity data can time shaft in scheduled duration, record has library of the commodity data in storage time granularity on the time shaft Status indicator is deposited, is identified according to inventory status and stores commodity data into inventory in the form of time shaft, it is every in inventory here Commodity data respectively corresponds to a time shaft, which can summarize multiple time intervals, without being each time interval Corresponding commodity data is created, the storage pressure of inventory can be reduced, and the corresponding time interval of the time shaft is when can subscribe Long range will not store expired or not scheduled commodity data, reduce the redundancy of commodity data in inventory, and then in commodity In process operation data, the commodity data on corresponding time shaft need to be only updated, reduce the inventory operations time.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of places of commodity data Device is managed, as shown in figure 4, described device includes: acquiring unit 41, generation unit 42, storage unit 43, updating unit 44.
Acquiring unit 41 can be used for obtaining the storage time granularity of commodity data;
Generation unit 42 can be used for as unit of the storage time granularity of the commodity data, generates commodity data and exists Can time shaft in scheduled duration, record has inventory status mark of the commodity data in storage time granularity on the time shaft Know;
Storage unit 43 can be used for being identified according to the inventory status and be deposited the commodity data in the form of time shaft Storage is into inventory;
Updating unit 44 can be used for when receiving processing request, according to default inventory's rule to commodity number in inventory It is updated according to inventory status mark on a timeline.
The processing unit of commodity data provided in an embodiment of the present invention is more at present directly every commodity data is distributed in Mode in a time interval storage in inventory is compared, and the present invention can be raw as unit of the storage time granularity of commodity data At commodity data can time shaft in scheduled duration, record has library of the commodity data in storage time granularity on the time shaft Status indicator is deposited, is identified according to inventory status and stores commodity data into inventory in the form of time shaft, it is every in inventory here Commodity data respectively corresponds to a time shaft, which can summarize multiple time intervals, without being each time interval Corresponding commodity data is created, the storage pressure of inventory can be reduced, and the corresponding time interval of the time shaft is when can subscribe Long range will not store expired or not scheduled commodity data, reduce the redundancy of commodity data in inventory, and then in commodity In process operation data, the commodity data on corresponding time shaft need to be only updated, reduce the inventory operations time.
In specific application scenarios, as shown in figure 5, when processing request is predetermined request, the default inventory Rule includes predetermined policy, and the updating unit 44 includes:
First receiving module 441 can be used for receiving the predetermined request for carrying commodity sign and predetermined time section, The corresponding commodity data of the commodity sign is searched from inventory;
First update module 442 can be used for updating commodity sign described in inventory according to the predetermined policy corresponding Inventory status mark of the commodity data in predetermined time section.
Further, first update module 441, if it is corresponding specifically to can be used for commodity sign described in inventory Inventory status of the commodity data in predetermined time section is identified as idle state, commodity data corresponding to the commodity sign It conducts the locking operations, and inventory status mark is updated to occupied state.
In specific application scenarios, as shown in fig. 6, when processing request is inquiry request, the default inventory Rule includes query strategy, the updating unit 44 further include:
Second receiving module 443 can be used for receiving the inquiry request for carrying commodity sign, from the commodity data Search the corresponding commodity data of the commodity sign;
Second update module 444 can be used for updating commodity sign described in inventory according to the query strategy corresponding The time shaft of commodity data.
Further, second update module 444, specifically can be used for recorded in the inquiry request it is current when Between for initial time as time shaft, can time interval of the scheduled duration as time shaft, update the commodity sign correspondence Commodity data time shaft.
Further, second update module 444 includes:
Submodule 4441 is emptied, the corresponding commodity data of the commodity sign that can be used for record on time shaft is in institute Inventory status mark before stating initial time empties;
Polishing submodule 4442, the corresponding commodity data of the commodity sign that can be used for record on time shaft is in institute Stating can inventory status mark polishing in scheduled duration.
It should be noted that its of each functional unit involved by a kind of processing unit of commodity data provided in this embodiment He accordingly describes, can be with reference to the corresponding description in Fig. 1 and Fig. 2, and details are not described herein.
Based on above-mentioned method as shown in Figure 1, Figure 2 and Figure 3, correspondingly, the present embodiment additionally provides a kind of storage medium, On be stored with computer program, which realizes above-mentioned commodity data as shown in Figure 1, Figure 2 and Figure 3 when being executed by processor Processing method.
Based on this understanding, the technical solution of the application can be embodied in the form of Software Commodities, the software business man Product can store in a non-volatile memory medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions With so that computer equipment (can be personal computer, server or the network equipment an etc.) execution the application is each Method described in implement scene.
Based on above-mentioned method and Fig. 4, Fig. 5 as shown in Figure 1, Figure 2, Figure 3 shows, virtual bench embodiment shown in fig. 6, To achieve the goals above, the embodiment of the present application also provides a kind of computer equipments, are specifically as follows personal computer, service Device, network equipment etc., the entity device include storage medium and processor;Storage medium, for storing computer program;Processing Device realizes the processing method of above-mentioned commodity data as shown in Figure 1, Figure 2 and Figure 3 for executing computer program.
Optionally, which can also include user interface, network interface, camera, radio frequency (Radio Frequency, RF) circuit, sensor, voicefrequency circuit, WI-FI module etc..User interface may include display screen (Display), input unit such as keyboard (Keyboard) etc., optional user interface can also connect including USB interface, card reader Mouthful etc..Network interface optionally may include standard wireline interface and wireless interface (such as blue tooth interface, WI-FI interface).
It will be understood by those skilled in the art that the entity device structure of the processing of commodity data provided in this embodiment is not The restriction to the entity device is constituted, may include more or fewer components, perhaps combines certain components or different portions Part arrangement.
It can also include operating system, network communication module in storage medium.Operating system is that the above-mentioned computer of management is set The program of standby hardware and software resource, supports the operation of message handling program and other softwares and/or program.Network communication mould Block leads to for realizing the communication between each component in storage medium inside, and between other hardware and softwares in the entity device Letter.
Through the above description of the embodiments, those skilled in the art can be understood that the application can borrow It helps software that the mode of necessary general hardware platform is added to realize, hardware realization can also be passed through.Pass through the skill of application the application Art scheme by as unit of the storage time granularity of commodity data, generates commodity data can compared with currently available technology Time shaft in scheduled duration, record has inventory status mark of the commodity data in storage time granularity, root on the time shaft It is identified according to inventory status and stores commodity data into inventory in the form of time shaft, every commodity data is respectively in inventory here A corresponding time shaft, the time shaft can summarize multiple time intervals, without creating corresponding commodity for each time interval Data can reduce the storage pressure of inventory, and the corresponding time interval of the time shaft is that can subscribe duration range, will not be stored Expired or not scheduled commodity data reduces the redundancy of commodity data in inventory, and then in commodity data operating process, The commodity data on corresponding time shaft need to be only updated, reduce the inventory operations time.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or Process is not necessarily implemented necessary to the application.It will be appreciated by those skilled in the art that the mould in device in implement scene Block can according to implement scene describe be distributed in the device of implement scene, can also carry out corresponding change be located at be different from In one or more devices of this implement scene.The module of above-mentioned implement scene can be merged into a module, can also be into one Step splits into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.Disclosed above is only the application Several specific implementation scenes, still, the application is not limited to this, and the changes that any person skilled in the art can think of is all The protection scope of the application should be fallen into.

Claims (10)

1. a kind of processing method of commodity data characterized by comprising
Obtain the storage time granularity of commodity data;
As unit of the storage time granularity of the commodity data, generate commodity data can time shaft in scheduled duration, institute State the inventory status mark that record has commodity data in storage time granularity on time shaft;
It is identified according to the inventory status and stores the commodity data into inventory in the form of time shaft, every commodity data A respectively corresponding time shaft;
Inventory status mark when receiving processing request, according to default inventory's rule to commodity data in inventory on a timeline Knowledge is updated.
2. described default the method according to claim 1, wherein when processing request is predetermined request Inventory's rule includes predetermined policy, described when receiving processing request, according to default inventory's rule to commodity data in inventory Inventory status mark on a timeline, which is updated, includes:
The predetermined request for carrying commodity sign and predetermined time section is received, it is corresponding that the commodity sign is searched from inventory Commodity data;
Library of the corresponding commodity data of commodity sign in predetermined time section described in inventory is updated according to the predetermined policy Deposit status indicator.
3. according to the method described in claim 2, it is characterized in that, described update quotient described in inventory according to the predetermined policy Product identify inventory status mark of the corresponding commodity data in predetermined time section
If inventory status of the corresponding commodity data of commodity sign described in inventory in predetermined time section is identified as the free time State conducts the locking operations to the corresponding commodity data of the commodity sign, and inventory status mark is updated to occupy State.
4. described default the method according to claim 1, wherein when processing request is inquiry request Inventory's rule includes query strategy, described when receiving processing request, according to default inventory's rule to commodity data in inventory Inventory status mark on a timeline, which is updated, includes:
The inquiry request for carrying commodity sign is received, the corresponding commodity number of the commodity sign is searched from the commodity data According to;
The time shaft of the corresponding commodity data of commodity sign described in inventory is updated according to the query strategy.
5. according to the method described in claim 4, it is characterized in that, described update quotient described in inventory according to the query strategy The time shaft that product identify corresponding commodity data includes:
The current time recorded using in the inquiry request be as time shaft initial time, can scheduled duration as time shaft Time interval, update the time shaft of the corresponding commodity data of the commodity sign.
6. according to the method described in claim 5, it is characterized in that, described be with the current time recorded in the inquiry request As the initial time of time shaft, can time interval of the scheduled duration as time shaft, update the corresponding quotient of the commodity sign The time shaft of product data includes:
By inventory status mark of the corresponding commodity data of the commodity sign recorded on time shaft before the initial time Knowledge empties;
By the corresponding commodity data of the commodity sign recorded on time shaft it is described can inventory status mark in scheduled duration Know polishing.
7. a kind of processing unit of commodity data characterized by comprising
Acquiring unit, for obtaining the storage time granularity of commodity data;
Generation unit generates commodity data can scheduled duration for as unit of the storage time granularity of the commodity data Interior time shaft, record has inventory status mark of the commodity data in storage time granularity on the time shaft;
Storage unit is stored the commodity data in the form of time shaft to inventory for being identified according to the inventory status In, every commodity data respectively corresponds to a time shaft;
Updating unit, for when receive processing request when, according to default inventory's rule to commodity data in inventory in time shaft On inventory status mark be updated.
8. device according to claim 7, which is characterized in that described default when processing request is predetermined request Inventory's rule includes predetermined policy, and the updating unit includes:
First receiving module is looked into from inventory for receiving the predetermined request for carrying commodity sign and predetermined time section Look for the corresponding commodity data of the commodity sign;
First update module, for updating the corresponding commodity data of commodity sign described in inventory pre- according to the predetermined policy The inventory status mark fixed time in section.
9. a kind of computer equipment, including memory and processor, it is stored with computer program in the memory, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer storage medium, is stored thereon with computer program, which is characterized in that the computer program is located The step of reason device realizes method described in any one of claims 1 to 6 when executing.
CN201811418359.5A 2018-11-26 2018-11-26 Commodity data processing method and device Active CN109739865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811418359.5A CN109739865B (en) 2018-11-26 2018-11-26 Commodity data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811418359.5A CN109739865B (en) 2018-11-26 2018-11-26 Commodity data processing method and device

Publications (2)

Publication Number Publication Date
CN109739865A true CN109739865A (en) 2019-05-10
CN109739865B CN109739865B (en) 2020-12-11

Family

ID=66359047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811418359.5A Active CN109739865B (en) 2018-11-26 2018-11-26 Commodity data processing method and device

Country Status (1)

Country Link
CN (1) CN109739865B (en)

Cited By (1)

* 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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160125321A1 (en) * 2014-11-03 2016-05-05 Amadeus S.A.S. Segmented availability cache
CN106022490A (en) * 2015-11-06 2016-10-12 刘翔英 Commodity and service online ordering and management Internet platform
CN108363772A (en) * 2018-02-08 2018-08-03 竞技世界(北京)网络技术有限公司 A kind of register date storage method and device based on caching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160125321A1 (en) * 2014-11-03 2016-05-05 Amadeus S.A.S. Segmented availability cache
CN106022490A (en) * 2015-11-06 2016-10-12 刘翔英 Commodity and service online ordering and management Internet platform
CN108363772A (en) * 2018-02-08 2018-08-03 竞技世界(北京)网络技术有限公司 A kind of register date storage method and device based on caching

Cited By (1)

* 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

Also Published As

Publication number Publication date
CN109739865B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
US10127285B2 (en) Customizable ranking of search engine results in multi-tenant architecture
JP3620208B2 (en) Online shopping service method and system
CN109739890A (en) Data processing method, device and equipment
CN112036984A (en) E-commerce operation big data management system
CN110598934A (en) Method for recommending shopping routes and related device
Xue et al. Managing retail shelf and backroom inventories when demand depends on the shelf‐stock level
CN110471904A (en) A kind of store commodity data management method, device and storage medium
US20150073947A1 (en) Planogram attribute resolution
JP5941366B2 (en) Unit price setting device, unit price setting method, and unit price setting program
Cattani et al. Shelf loathing: Cross docking at an online retailer
CN109739865A (en) A kind of processing method and processing device of commodity data
Bai et al. Asymptotic optimality of semi-open-loop policies in markov decision processes with large lead times
CN108846093A (en) Support the method for processing business and system of multi-user operation
CN106156971B (en) Logistics resource collaborative relationship information processing method and device
WO2021164707A1 (en) Article replacement information generation method and apparatus, article arrangement method and apparatus, and electronic device
US20230186375A1 (en) Dynamic virtual reality shopping shelf interface
US20090204516A1 (en) Accounting data retrieval method and system
JP7463480B2 (en) Information processing device, information processing method, and computer program
JP3444111B2 (en) Product information display method and system
CN109447293A (en) A kind of processing method and processing device of product data
JP7414454B2 (en) Information processing device, information processing method, and information processing program
JP2002007853A (en) Method of displaying advertisement information
Filho et al. Asynchronous teams for joint lot-sizing and scheduling problem in flow shops
KR102313015B1 (en) Method and apparatus for omni-channel management
CN110738806B (en) Payment mode determination method, device and system and electronic equipment

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