CN109447293B - Product data processing method and device - Google Patents

Product data processing method and device Download PDF

Info

Publication number
CN109447293B
CN109447293B CN201811106680.XA CN201811106680A CN109447293B CN 109447293 B CN109447293 B CN 109447293B CN 201811106680 A CN201811106680 A CN 201811106680A CN 109447293 B CN109447293 B CN 109447293B
Authority
CN
China
Prior art keywords
inventory
product data
unit
value
unit time
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.)
Active
Application number
CN201811106680.XA
Other languages
Chinese (zh)
Other versions
CN109447293A (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 CN201811106680.XA priority Critical patent/CN109447293B/en
Publication of CN109447293A publication Critical patent/CN109447293A/en
Application granted granted Critical
Publication of CN109447293B publication Critical patent/CN109447293B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0605Supply or demand aggregation

Abstract

The invention discloses a method and a device for processing product data, computer equipment and a computer storage medium, relates to the technical field of data processing, and can reduce the redundancy of product data in inventory and reduce the storage pressure of the inventory. The method comprises the following steps: adding inventory information of the product data on unit time granularity in preset time into an inventory rule table according to an inventory rule set for the product data by a first client; when a processing request of a second client to the product data is received, analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request to obtain a current inventory value of the product data; and sending the current inventory value of the product data to the second client.

Description

Product data processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing product data, a computer device, and a computer storage medium.
Background
Through the Internet platform, a merchant can publish own products on the Internet, and a user can purchase required products through the Internet platform to realize product transaction, wherein the products can be entity products and also can be service products.
When a user purchases products of a predetermined type with required dates, such as a predetermined air ticket, a predetermined box room, a predetermined place and the like, besides the products, the user also needs to select the predetermined dates, the places, the number of persons participating and the like corresponding to the products. Therefore, when storing product data of a date reservation class, it is necessary to store attribute information of a corresponding product, a reservation date, and the like.
In the inventory structure in the prior art, in the process of storing date reservation type product data, a merchant may create an inventory unit of corresponding product data in advance in each time interval within a predetermined time in an inventory unit layer by configuring a timing task, and when a product query or a product order is received, the inventory unit of the corresponding product data is directly processed. However, with the lapse of time, the hot spots in the product dimension and the time dimension are not uniformly distributed, so that many products are not purchased by users for a long time, or the purchase quantity of the weekdays is significantly lower than that of the weekends, so that many stock units with the product data which is not scheduled or is out of date exist in the stock unit layer, the product data in the stock is redundant, and the storage pressure of the stock is increased.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for processing product data, a computer device and a computer storage medium, and mainly aims to solve the problem of redundancy of product data in existing inventory.
According to an aspect of the present invention, there is provided a method for processing product data, the method including:
adding inventory information of the product data on unit time granularity in preset time into an inventory rule table according to an inventory rule set for the product data by a first client;
when a processing request of a second client to the product data is received, analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request to obtain a current inventory value of the product data;
and sending the current inventory value of the product data to the second client.
Further, when the processing request is a predetermined request, the analyzing the inventory rule table according to a pre-configured processing policy corresponding to the processing request to obtain the current inventory value of the product data includes:
searching an inventory unit of the product data, and if the inventory unit of the product data on unit time granularity exists, extracting an inventory value of the product data on the unit time granularity from the inventory unit;
if the stock unit of the product data on the unit time granularity does not exist, the stock unit of the product data is created by analyzing the stock rule table, and the stock value of the product data on the unit time granularity is extracted from the stock unit;
and performing preset operation on the inventory value of the product data in the inventory unit on unit time granularity to obtain the current inventory value of the product data.
Further, the reservation request carries a product identifier and a reservation time, and the inventory unit for searching product data includes:
acquiring product data corresponding to the product identification from the inventory rule table;
and searching the stock unit of the unit time granularity of the product data in the preset time.
Further, when the processing request is an inquiry request, the analyzing the inventory rule table according to a pre-configured processing policy corresponding to the processing request to obtain the current inventory value of the product data includes:
searching an inventory unit of the product data, and if the inventory unit of the product data on unit time granularity exists, extracting an inventory value of the product data on the unit time granularity from the inventory unit;
and taking the stock value of the product data on unit time granularity as the current stock value of the product data.
Further, before the taking the inventory value of the product data at the granularity of unit time as the current inventory value of the product data, the method further comprises:
and if the stock unit of the product data in unit time granularity does not exist, extracting the stock value of the product data from the stock rule table by analyzing the stock rule table.
According to another aspect of the present invention, there is provided an apparatus for processing product data, the apparatus comprising:
the adding unit is used for adding the inventory information of the product data on unit time granularity in a preset time into an inventory rule table according to the inventory rule set for the product data by the first client;
the analysis unit is used for analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request when a processing request of a second client for the product data is received, so as to obtain the current inventory value of the product data;
and the sending unit is used for sending the current inventory value of the product data to the second client.
Further, when the processing request is a predetermined request, the parsing unit includes:
the first extraction module is used for searching an inventory unit of the product data, and extracting an inventory value of the product data on unit time granularity from the inventory unit if the inventory unit of the product data on unit time granularity exists;
and the creating module is used for creating the inventory unit of the product data by analyzing the inventory rule table if the inventory unit of the product data on the unit time granularity does not exist, and extracting the inventory value of the product data on the unit time granularity from the inventory unit.
And the reservation module is used for performing reservation operation on the stock value of the product data on unit time granularity to obtain the current stock value of the product data.
Further, the predetermined request carries the product identification and the predetermined time,
the first extraction module is specifically configured to obtain product data corresponding to the product identifier from the inventory rule table;
the first extraction module is specifically further configured to search for an inventory unit of the product data in unit time granularity within the predetermined time.
Further, when the processing request is a query request, the parsing unit includes:
the second extraction module is used for searching an inventory unit of the product data, and extracting an inventory value of the product data on unit time granularity from the inventory unit if the inventory unit of the product data on unit time granularity exists;
and the query module is used for taking the stock value of the product data on unit time granularity as the current stock value of the product data.
Further, the parsing unit further includes:
and the analysis module is used for extracting the inventory value of the product data from the inventory rule table by analyzing the inventory rule table if an inventory unit of the product data on the unit time granularity does not exist before the inventory value of the product data on the unit time granularity is taken as the current inventory value of the product data.
According to yet another aspect of the present invention, there is provided a storage device having stored thereon a computer program which, when executed by a processor, implements the above-described method of processing product data.
According to still another aspect of the present invention, there is provided a product data processing apparatus, including a storage device, a processor, and a computer program stored on the storage device and executable on the processor, wherein the processor implements the above product data processing method when executing the program.
By the technical scheme, compared with the mode of directly creating the inventory unit of the corresponding product data in each time interval in the inventory unit layer at present, the method, the device and the computer storage medium for processing the product data provided by the invention can add the inventory value of the product data on unit time granularity within the preset time into the inventory rule table according to the inventory rule of the product data of the first client, when the processing request of the second client to the product data is received, the inventory rule table is analyzed through the processing strategy which is configured in advance and corresponds to the processing request to obtain the current inventory value of the product data, so that the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, and does not need to create the inventory unit of the product data in advance for each time interval, the redundancy of product data in the inventory is reduced, and the storage pressure of the inventory is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for processing product data according to an embodiment of the present invention;
FIG. 2 is a flow chart of another product data processing method provided by the embodiment of the invention;
fig. 3 is a schematic diagram illustrating a process of setting an inventory rule for product data by a first client according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a process for requesting predetermined product data by a second client according to an embodiment of the present invention;
FIG. 5 is a flow chart of another product data processing method provided by the embodiment of the invention;
FIG. 6 is a diagram illustrating a process of requesting query for product data by a second client according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a product data processing apparatus according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an apparatus for processing product data according to another embodiment of the present invention;
fig. 9 is a schematic structural diagram of another apparatus for processing product data according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a method for processing product data, which can achieve the purpose of reducing storage pressure of an inventory, and as shown in fig. 1, the method includes:
101. and adding the inventory information of the product data on unit time granularity in a preset time into an inventory rule table according to the inventory rule set for the product data by the first client.
The product data may be reservation type product data transacted through the internet, such as product name, serial number, reservation date, and the like, where the reservation type product may be an air ticket, a KTV ward, a badminton court, a hotel accommodation, and the like, and since a user needs to select a reservation type product and a reservation date or time when purchasing the reservation type product, for example, a reservation of an air ticket flying from beijing to shanghai at 8: 15: 8, and a reservation of a hotel accommodation at 9: 10, the reservation type product data is usually stored according to a date or time sequence.
For the embodiment of the present invention, the first client, which is generally directed to the B-side, represents an enterprise user merchant, and before the merchant sells a predetermined product, the merchant may set an inventory rule of the product data, where the inventory rule is inventory information of the product data at a unit time granularity within a predetermined time, and add the inventory information of the product data to the inventory rule table by analyzing the inventory information of the product data at the unit time granularity within the predetermined time.
For example, if the product data is a KTV box, the predetermined time is 1 day, 10 packets per day, the predetermined time is one week in the future, 20 packets on monday to friday, and 10 packets on saturday, the number of packets can be set specifically for a holiday in a special festival, and further, the inventory information created for the KTV box is recorded in the inventory rule table in a structured form.
102. When a processing request of a second client to the product data is received, analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request to obtain the current inventory value of the product data.
Wherein, the processing request can be an inquiry request or a predetermined request, in order to further facilitate the processing of the product data in the stock, the stock is preset with a processing strategy corresponding to the processing request, such as a predetermined strategy corresponding to the product predetermined request, an inquiry strategy corresponding to the product inquiry request,
for the embodiment of the present invention, the second client generally refers to the C-terminal and represents a consumer individual user, and when the user processes the product data, the user analyzes the product data in the inventory rule table through the processing policy corresponding to the processing request, so as to implement processing of different functions on the product data, for example, the query policy needs to query the product data in the inventory rule table to obtain the current inventory value of the product data, and the reservation policy needs to perform a reservation operation on the product data in the inventory rule table to obtain the current inventory value of the product data.
103. And sending the current inventory value of the product data to the second client.
In the embodiment of the invention, when the merchant performs inventory management, only the inventory rule of the product data needs to be set, the inventory unit of the product data is not created, and when a processing request of the product data is received, the inventory information of the product data is analyzed from the inventory rule table, so that the redundancy of the product data in the inventory is saved.
Compared with the mode of directly creating the inventory unit of the corresponding product data in each time interval in the inventory unit layer at present, the method for processing the product data can add the inventory value of the product data on unit time granularity in the preset time into the inventory rule table according to the inventory rule of the product data of the first client, when receiving the processing request of the second client for the product data, the inventory rule table is analyzed through the processing strategy which is configured in advance and corresponds to the processing request to obtain the current inventory value of the product data, so that the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, does not need to create the inventory unit of the product data in each time interval in advance, and reduces the redundancy of the product data in the inventory, reducing the storage pressure of the inventory.
An embodiment of the present invention provides another method for processing product data, which can reduce the storage pressure of product data in inventory, as shown in fig. 2, and the method includes:
201. and adding the inventory information of the product data on unit time granularity in a preset time into an inventory rule table according to the inventory rule set for the product data by the first client.
For the embodiment of the present invention, the product data may form a large number of data tables, and the data in these data tables are stored with what granularity, which affects multiple aspects of the data, and in general, the storage time granularity of the product data may be day, hour, minute, second, and so on, and in the process of selling the product data, the predetermined type of products are sold at special time and have different unit time granularities, for example, a KTV box is usually sold according to hours, so the unit time granularity of the product data corresponding to the KTV box is hours, and hotel accommodations are usually sold according to days, so the unit time granularity of the product data corresponding to the hotel accommodations is days.
Specifically, the process of the first client setting the inventory rule for the product data may be as shown in fig. 3, where the B-end user in fig. 3 sets the inventory rule for the product data in the inventory by using the B-end user as the first client, so that the inventory information of the product data in the inventory rule is added to the inventory rule table, and a success is returned after completion.
202. When a predetermined request for product data by a second client is received, an inventory unit of the product data is searched.
In the prior art, while setting the inventory rule of the product data, a merchant may create an inventory unit corresponding to the inventory rule, where the inventory rule and the inventory unit are in a one-to-many relationship, and the inventory unit is inventory information of the product data on a unit time granularity, for example, inventory information of products per day, inventory information of products per hour, and the like.
For the embodiment of the invention, when the inventory of the merchant is managed, the inventory unit of the product data is not created, but when a reservation request of the second client to the product data is received, the inventory unit of the product data is searched, if the inventory unit of the product data exists, the reservation operation is carried out on the inventory information of the product data according to the inventory unit, if the inventory unit of the product data does not exist, the inventory unit of the product data is created, and the reservation operation is further carried out on the inventory information of the product data according to the inventory unit.
The reservation request is a request for reservation operation of product data in inventory, for example, reservation for a KTV box, reservation for an airline ticket by a user, the reservation request carries a product identifier, such as a product name and a product number, and when the user selects a reservation type product, the user selects a time for reserving the product in addition to the product identifier, so that a predetermined time interval is recorded in the reservation request, for example, the user may reserve 18: a badminton court from 00 to 24: 00.
For the embodiment of the invention, the product data of different product identifiers are stored in the stock, the product data corresponding to the product identifiers can be obtained from the stock rule table through the product identifiers, and the stock units of unit time granularity of the product data in the preset time are further searched. Of course, if the product identifiers in the inventory rule table are too many, the product data can be divided according to the product categories corresponding to the product identifiers in the process of storing the product data, so that the product data of the same product category can be searched conveniently.
203a, if the stock unit of the product data in the unit time granularity exists, extracting the stock value of the product data in the unit time granularity from the stock unit.
For the embodiment of the invention, the stock unit is usually created by the stock information of the product data on the granularity of unit time, if the stock unit of the product data on the granularity of unit time exists, the product data is indicated to have been reserved before, and because the stock information of the product data is stored in the stock unit, the stock value of the product data on the granularity of unit time is directly extracted from the stock unit.
And step 203b corresponding to step 203a, if there is no inventory unit of the product data in unit time granularity, creating an inventory unit of the product data by analyzing the inventory rule table, and extracting an inventory value of the product data in unit time granularity from the inventory unit.
For the embodiment of the invention, if the stock unit of the product data in the granularity per unit time does not exist, the product data is not reserved before, the stock unit of the product data is created by analyzing the stock information of the product data in the granularity per unit time in the stock rule table, so that the stock information of the product data in the granularity per unit time is recorded in the stock unit, and the stock value of the product data in the granularity per unit time is further extracted from the stock unit.
204. And performing preset operation on the inventory value of the product data in the inventory unit on unit time granularity to obtain the current inventory value of the product data.
For the embodiment of the invention, when a user reserves a product, the user may carry a preset product quantity in addition to a product identifier and preset time, for the preset product with the product data being a field type, such as a KTV ward, a badminton court and the like, the inventory value of the product data corresponding to the product identifier on the unit time granularity is unique, the preset request does not carry the preset product quantity, for the preset product with the quantity type, such as an air ticket, clothing and the like, the inventory value of the product data corresponding to the product identifier on the unit time granularity is not unique, the preset request carries the preset product quantity, and the preset operation is further carried out on the inventory value of the product data in the inventory unit on the unit time granularity to obtain the current inventory value of the product data.
For example, the number of 6-month-5-day airline tickets set by a merchant in the inventory rule table is 100, after a request for reserving airline tickets by a user is received, the request for reserving airline tickets carries 5 airline tickets, and if an inventory unit corresponding to the 6-month-5-day airline tickets exists, 5 airline tickets are deducted from the number of airline tickets in the inventory unit corresponding to the 6-month-5-day airline tickets, so that an inventory value corresponding to the 6-month-5-day airline tickets is 95.
205. And sending the current inventory value of the product data to the second client.
For the embodiment of the invention, the current inventory value of the product data is triggered to change after the product data is subjected to the predetermined operation, namely the creation of the inventory unit corresponding to the product data is triggered only through the predetermined request of the second client to the product data.
Specifically, the process of requesting the predetermined product data by the second client may be as shown in fig. 4, where a C-end user in fig. 4 is the second client, when receiving a product itemID001 with a predetermined date of 20180701 of the C-end user, if the stock unit of the product data per unit time granularity is not found, the original ini q of the product database stock is analyzed from the stock rule table, and a stock unit is created, the stock value of the product data is subtracted based on the stock unit, and the current stock value is returned to the C-end after the subtraction is successful, and if the stock unit of the product data per unit time granularity is found, the stock value of the product data is subtracted based on the stock unit, and the current stock value is returned to the C-end after the subtraction is successful.
Compared with the mode of directly creating the inventory unit of the corresponding product data in each time interval in the inventory unit layer at present, the method for processing the product data can add the inventory value of the product data on unit time granularity in the preset time into the inventory rule table according to the inventory rule of the product data of the first client, when receiving the processing request of the second client for the product data, the inventory rule table is analyzed through the processing strategy which is configured in advance and corresponds to the processing request to obtain the current inventory value of the product data, so that the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, does not need to create the inventory unit of the product data in each time interval in advance, and reduces the redundancy of the product data in the inventory, reducing the storage pressure of the inventory.
An embodiment of the present invention provides another method for processing product data, which can achieve the purpose of reducing redundancy of product data in inventory, and as shown in fig. 5, the method includes:
301. and adding the inventory information of the product data on unit time granularity in a preset time into an inventory rule table according to the inventory rule set for the product data by the first client.
For the embodiment of the present invention, the content described in step 101 and step 201 may be referred to in the implementation process of adding the inventory information of the product data in the unit time granularity in the predetermined time to the inventory rule table according to the inventory rule set for the product data by the first client, which is not described herein again.
It should be noted that the format of the product data corresponding to the inventory rule may be a product name, a product predetermined time, a product unit time granularity, and a product inventory value, and of course, the format of the product data may also add other attributes of the product data according to actual needs, which is not limited herein.
302. And when a query request of the second client for the product data is received, searching the stock unit of the product data.
The query request is a request for performing a query operation on the stock value of the product data, and of course, the query operation may also be triggered after a predetermined operation, where the query request carries a product identifier, such as a product name and a product number, and the product data corresponding to the product identifier is obtained from the stock rule table, and when a user selects a predetermined product, the user also selects a time for querying the product in addition to selecting the product identifier, so the query request also carries a query time, for example, the user queries 18: and (3) stock conditions of badminton court from 00 to 24:00, wherein a user inquires the stock conditions of the KTV bungalow in a certain time interval and further searches stock units of unit time granularity of product data in inquiry time.
303a, if the stock unit of the product data in the granularity of unit time exists, extracting the stock value of the product data in the granularity of unit time from the stock unit.
For the embodiment of the invention, the stock unit is usually created by the stock information of the product data on the granularity of unit time, if the stock unit of the product data on the granularity of unit time exists, the product data is indicated to have been reserved before, and because the stock information of the product data is stored in the stock unit, the stock value of the product data on the granularity of unit time is directly extracted from the stock unit.
Corresponding to step 303a, if there is no inventory unit of the product data per unit time granularity in step 303b, the inventory value of the product data is extracted from the inventory rule table by analyzing the inventory rule table.
For the embodiment of the invention, if the stock unit of the product data in the granularity of unit time does not exist, the product data is not reserved before, and the stock value of the product data is acquired from the stock information by analyzing the stock information of the product data in the granularity of unit time in the stock rule table.
304. And taking the stock value of the product data on unit time granularity as the current stock value of the product data.
For the embodiment of the invention, the query request does not trigger the change of the product inventory value, so the inventory value of the product number extracted from the inventory rule table is the current inventory value of the product data.
305. And sending the current inventory value of the product data to the second client.
Specifically, the process of requesting to query the product data by the second client may be as shown in fig. 6, where a C-end user in fig. 6 is the second client, when receiving a product itemID001 with a scheduled date of 20180701 of the C-end user, if an inventory unit of the product data per unit time granularity is not found, analyzing an original INIQ of the product database from an inventory rule table, returning the original INIQ of the product database as a current inventory value to the C-end, and if an inventory unit of the product data per unit time granularity is found, returning the current inventory value of the product recorded in the inventory unit to the C-end.
Compared with the mode of directly creating the inventory unit of the corresponding product data in each time interval in the inventory unit layer at present, the method for processing the product data can add the inventory value of the product data on unit time granularity in the preset time into the inventory rule table according to the inventory rule of the product data of the first client, when receiving the processing request of the second client for the product data, the inventory rule table is analyzed through the processing strategy which is configured in advance and corresponds to the processing request to obtain the current inventory value of the product data, so that the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, does not need to create the inventory unit of the product data in each time interval in advance, and reduces the redundancy of the product data in the inventory, reducing the storage pressure of the inventory.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present invention provides a device for processing product data, where as shown in fig. 7, the device includes: adding section 41, analyzing section 42, and transmitting section 43.
An adding unit 41, configured to add inventory information of the product data on unit time granularity within a predetermined time to an inventory rule table according to an inventory rule set for the product data by the first client;
the analyzing unit 42 may be configured to, when a processing request of the second client for the product data is received, analyze the inventory rule table according to a processing policy configured in advance and corresponding to the processing request, so as to obtain a current inventory value of the product data;
a sending unit 43, which may be configured to send the current inventory value of the product data to the second client.
Compared with the mode of directly creating the inventory unit of the corresponding product data in each time interval in the inventory unit layer at present, the product data processing device provided by the embodiment of the invention can add the inventory value of the product data on the unit time granularity within the preset time into the inventory rule table according to the inventory rule of the product data of the first client, when receiving the processing request of the second client to the product data, the inventory rule table is analyzed through the pre-configured processing strategy corresponding to the processing request to obtain the current inventory value of the product data, so that the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, does not need to create the inventory unit of the product data in each time interval in advance, and reduces the redundancy of the product data in the inventory, reducing the storage pressure of the inventory.
It should be noted that other corresponding descriptions of the functional units related to the apparatus for processing product data provided in this embodiment may refer to the corresponding descriptions in fig. 1, and are not repeated herein.
In a specific application scenario, as shown in fig. 8, when the processing request is a predetermined request, the parsing unit 42 includes:
the first extracting module 421 may be configured to search an inventory unit of the product data, and if there is an inventory unit of the product data in a unit time granularity, extract an inventory value of the product data in the unit time granularity from the inventory unit;
the creating module 422 may be configured to create an inventory unit of the product data by parsing the inventory rule table if there is no inventory unit of the product data in the granularity per unit time, and extract an inventory value of the product data in the granularity per unit time from the inventory unit.
The reservation module 423 may be configured to perform a reservation operation on the inventory value of the product data at a granularity per unit time, so as to obtain a current inventory value of the product data.
Further, the predetermined request carries the product identification and the predetermined time,
the first extracting module 421 may be specifically configured to obtain product data corresponding to the product identifier from the inventory rule table;
the first extracting module 421 may be further configured to find an inventory unit of the product data in unit time granularity within the predetermined time.
It should be noted that other corresponding descriptions of the functional units related to the apparatus for processing product data provided in this embodiment may refer to the corresponding descriptions in fig. 2, and are not repeated herein.
In a specific application scenario, as shown in fig. 9, when the processing request is an inquiry request, the parsing unit 42 includes:
the second extracting module 424 may be configured to search an inventory unit of the product data, and if there is an inventory unit of the product data in a unit time granularity, extract an inventory value of the product data in the unit time granularity from the inventory unit;
the query module 425 may be configured to use the inventory value of the product data at the granularity per unit time as the current inventory value of the product data.
Further, the parsing unit 42 further includes:
the parsing module 426 may be configured to, before the inventory value of the product data at the granularity per unit time is used as the current inventory value of the product data, extract the inventory value of the product data from the inventory rule table by parsing the inventory rule table if there is no inventory unit of the product data at the granularity per unit time.
Further, the second extracting module 424 may be specifically configured to obtain product data corresponding to the product identifier from the inventory rule table;
the second extracting module 424 may be further configured to find an inventory unit of the product data in unit time granularity within the query time.
It should be noted that other corresponding descriptions of the functional units related to the apparatus for processing product data provided in this embodiment may refer to the corresponding description in fig. 5, and are not repeated herein.
Based on the methods shown in fig. 1, fig. 2 and fig. 5, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method for processing the product data shown in fig. 1, fig. 2 and fig. 5.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present application.
Based on the methods shown in fig. 1, fig. 2, and fig. 5 and the virtual device embodiments shown in fig. 7, fig. 8, and fig. 9, to achieve the above object, an embodiment of the present application further provides a computer device, which may be specifically a personal computer, a server, a network device, and the like, where the entity device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the above-described processing method of the product data as shown in fig. 1, 2 and 5.
Optionally, the computer device may also include a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
Those skilled in the art will appreciate that the physical device structure of the processing of the product data provided in the present embodiment does not constitute a limitation to the physical device, and may include more or less components, or combine some components, or arrange different components.
The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the computer device described above, supporting the operation of information handling programs and other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. By applying the technical scheme of the application, compared with the prior art, the inventory value of the product data in unit time granularity within preset time can be added to the inventory rule table according to the inventory rule of the product data by the first client, when the processing request of the second client to the product data is received, the inventory rule table is analyzed through the pre-configured processing strategy corresponding to the processing request, the current inventory value of the product data is obtained, the inventory rule and the inventory unit form a double-layer decoupling structure, when the processing request of the second client is not triggered, the first client only needs to set the inventory rule for the product data, the inventory unit of the product data does not need to be created in advance for each time interval, the redundancy of the product data in inventory is reduced, and the storage pressure of the inventory is reduced.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (12)

1. A method for processing product data, comprising:
according to an inventory rule set for the product data by the first client, adding inventory information of the product data on unit time granularity in preset time into an inventory rule table;
when a processing request of a second client to the product data is received, analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request to obtain a current inventory value of the product data;
sending the current inventory value of the product data to the second client;
when the processing request is a predetermined request, the analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request to obtain the current inventory value of the product data comprises:
searching an inventory unit of the product data, if the inventory unit of the product data on unit time granularity does not exist, creating the inventory unit of the product data by analyzing the inventory rule table, and extracting an inventory value of the product data on the unit time granularity from the inventory unit; and performing reservation operation on the inventory value of the product data in the inventory unit on unit time granularity to obtain the current inventory value of the product data.
2. The method of claim 1, wherein when the processing request is a predetermined request, the parsing the inventory rule table through a pre-configured processing policy corresponding to the processing request to obtain a current inventory value of product data comprises:
and searching an inventory unit of the product data, and if the inventory unit of the product data on the unit time granularity exists, extracting an inventory value of the product data on the unit time granularity from the inventory unit.
3. The method of claim 2, wherein the reservation request carries a product identifier and a reservation time, and wherein the inventory unit for finding product data comprises:
acquiring product data corresponding to the product identification from the inventory rule table;
and searching the stock unit of the unit time granularity of the product data in the preset time.
4. The method of claim 1, wherein when the processing request is a query request, the parsing the inventory rule table through a pre-configured processing policy corresponding to the processing request to obtain a current inventory value of product data comprises:
searching an inventory unit of the product data, and if the inventory unit of the product data on unit time granularity exists, extracting an inventory value of the product data on the unit time granularity from the inventory unit;
and taking the stock value of the product data on unit time granularity as the current stock value of the product data.
5. The method of claim 4, wherein prior to said taking the inventory value of the product data at a granularity of unit time as the current inventory value of the product data, the method further comprises:
and if the stock unit of the product data in unit time granularity does not exist, extracting the stock value of the product data from the stock rule table by analyzing the stock rule table.
6. An apparatus for processing product data, comprising:
the adding unit is used for adding the inventory information of the product data on unit time granularity in a preset time into an inventory rule table according to the inventory rule set for the product data by the first client;
the analysis unit is used for analyzing the inventory rule table through a pre-configured processing strategy corresponding to the processing request when a processing request of a second client for the product data is received, so as to obtain the current inventory value of the product data;
the sending unit is used for sending the current inventory value of the product data to the second client;
when the processing request is a predetermined request, the parsing unit includes:
and the creating module is used for creating the inventory unit of the product data by analyzing the inventory rule table if the inventory unit of the product data on the unit time granularity does not exist, and extracting the inventory value of the product data on the unit time granularity from the inventory unit.
7. The apparatus according to claim 6, wherein when the processing request is a predetermined request, the parsing unit comprises:
the first extraction module is used for searching an inventory unit of the product data, and extracting an inventory value of the product data on unit time granularity from the inventory unit if the inventory unit of the product data on unit time granularity exists;
and the reservation module is used for performing reservation operation on the stock value of the product data on unit time granularity to obtain the current stock value of the product data.
8. The apparatus of claim 7, wherein the reservation request carries a product identification and a reservation time,
the first extraction module is specifically configured to obtain product data corresponding to the product identifier from the inventory rule table;
the first extraction module is specifically further configured to search for an inventory unit of the product data in unit time granularity within the predetermined time.
9. The apparatus according to claim 6, wherein when the processing request is a query request, the parsing unit comprises:
the second extraction module is used for searching an inventory unit of the product data, and extracting an inventory value of the product data on unit time granularity from the inventory unit if the inventory unit of the product data on unit time granularity exists;
and the query module is used for taking the stock value of the product data on unit time granularity as the current stock value of the product data.
10. The apparatus of claim 9, wherein the parsing unit further comprises:
and the analysis module is used for extracting the inventory value of the product data from the inventory rule table by analyzing the inventory rule table if an inventory unit of the product data on the unit time granularity does not exist before the inventory value of the product data on the unit time granularity is taken as the current inventory value of the product data.
11. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 5.
12. A computer storage medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201811106680.XA 2018-09-21 2018-09-21 Product data processing method and device Active CN109447293B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811106680.XA CN109447293B (en) 2018-09-21 2018-09-21 Product data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811106680.XA CN109447293B (en) 2018-09-21 2018-09-21 Product data processing method and device

Publications (2)

Publication Number Publication Date
CN109447293A CN109447293A (en) 2019-03-08
CN109447293B true CN109447293B (en) 2021-05-04

Family

ID=65530658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811106680.XA Active CN109447293B (en) 2018-09-21 2018-09-21 Product data processing method and device

Country Status (1)

Country Link
CN (1) CN109447293B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738340B (en) * 2019-09-06 2022-04-19 口碑(上海)信息技术有限公司 Reserved product inventory management method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285573B1 (en) * 2008-01-15 2012-10-09 SciQuest Inc. Prioritizing orders/receipt of items between users
CN104516895A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Stock information processing method and system for commodity object
CN107808265A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 Data processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447736B (en) * 2014-08-19 2022-02-11 菜鸟智能物流控股有限公司 Transaction processing and logistics solution method and device in commodity transaction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285573B1 (en) * 2008-01-15 2012-10-09 SciQuest Inc. Prioritizing orders/receipt of items between users
CN104516895A (en) * 2013-09-27 2015-04-15 阿里巴巴集团控股有限公司 Stock information processing method and system for commodity object
CN107808265A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 Data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
产品和产品规格(产品变量)自动生成SKU的需求解决思路;shanzhizi;《CSDN博客 https://blog.csdn.net/shanzhizi/article/details/51190865?%3E》;20160419;第1页 *

Also Published As

Publication number Publication date
CN109447293A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
JP6667931B2 (en) Method and device for recognizing time information from audio information
CN106844372B (en) Logistics information query method and device
JP6806762B2 (en) Methods and devices for pushing information
JP3620208B2 (en) Online shopping service method and system
JP2009128498A (en) Electronic advertising system
CN106326243B (en) Data processing method and device
CN111459624B (en) Resource data distribution method, device and equipment
CN111324786A (en) Method and device for processing consultation problem information
JPWO2015181909A1 (en) Information processing system, terminal, server, information processing method, recording medium, and program
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
JP5044035B1 (en) Information providing apparatus, information providing method, information providing program, and computer-readable recording medium storing the program
CN111625580A (en) Data processing method, device and equipment
CN109447293B (en) Product data processing method and device
CN113949889A (en) Object processing method and device, electronic equipment and storage medium
KR20130126012A (en) Method and apparatusfor providing report of business intelligence
CN109739865B (en) Commodity data processing method and device
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN110515946B (en) Data extraction method, device, equipment and computer readable storage medium
CN110162386B (en) Task issuing method and device
CN113609423A (en) Task configuration method and device, storage medium and computer equipment
CN107608690B (en) Configuration management method and device
US10496941B2 (en) Medium storing control program for sharing service, and apparatus and method therefor
CN114547184A (en) Personnel information synchronization method, terminal device and storage medium
CN113344600B (en) Thread data processing method, thread data processing device, storage medium and thread middle station
CN111695936B (en) Information binding method, device and 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