Method, apparatus, server, and storage medium for updating classification status

By introducing a reference commodity mechanism, the classification status is updated only under specific conditions, which solves the problem of low classification status update efficiency in the prior art and realizes a more efficient state update process.

CN114511034BActive Publication Date: 2025-06-27BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210141690.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2025-06-27
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

The prior art is less efficient when updating the classification status, and it is necessary to judge the status of all the products contained in the classification one by one to decide whether to update the classification status.

Method used

By introducing a reference product mechanism, when the product status changes, the classification status is only updated under specific conditions, for example, when the product is a reference product of a classified and there is no reference product of a listed state in the category.

Benefits of technology

It improves the efficiency of classification status updates, avoids the need to judge all product statuses every time the product status changes, thereby reducing the complexity of calculation and judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114511034B_ABST
    Figure CN114511034B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, server, and storage medium for updating classification status, belonging to the field of the Internet. The method includes: determining that the status of a product corresponding to a classification has changed; in the case where the status of the product changes from being on the shelf to being off the shelf, if the product is not the reference product corresponding to the classification, then the status of the classification is not updated; if the product is the reference product corresponding to the classification and there is no corresponding reference product on the shelf for the classification, then the status of the classification is updated according to the status of each product corresponding to the classification; if the product is the reference product corresponding to the classification and there is a corresponding reference product on the shelf for the classification, then the status of the classification is not updated; in the case where the status of the product changes from being off the shelf to being on the shelf, if there is no corresponding reference product on the shelf for the classification, then the status of the classification is updated, and if there is a corresponding reference product on the shelf for the classification, then the status of the classification is not updated. By adopting the present application, the classification update efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technologies, and particularly to a method, apparatus, server, and storage medium for updating classification status. Background Art

[0002] Online shopping has gradually become an indispensable shopping method in people's daily lives. Users can purchase various required goods in online stores through shopping applications. To enable users to find the required goods faster in online stores, shopping applications usually display the classifications of goods in each online store's display page. In addition, for classifications where all included goods are in the off-shelf state, the classification may no longer be displayed in the display interface. In this case, for each classification in the online store, it is necessary to update the classification status in a timely manner according to the status of the goods included in the classification.

[0003] Currently, the method for updating the classification status is as follows: When the status of any one of the goods included in a certain classification changes (from the on-shelf state to the off-shelf state, or from the off-shelf state to the on-shelf state), judge the status of all the goods included in this classification one by one to count the number of goods in the on-shelf state. Furthermore, update the classification status according to the number of goods in the on-shelf state.

[0004] In the above method, for a classification, whenever the status of any one of the goods included in this classification changes, it is necessary to judge the status of all the goods included in this classification one by one and then decide whether to update the classification status, resulting in low efficiency. Summary of the Invention

[0005] Embodiments of the present application provide a method, apparatus, server, and storage medium for updating classification status, which can solve the problem of low efficiency in updating classification status in related technologies. The technical solutions are as follows:

[0006] In a first aspect, a method for updating classification status is provided. The method includes:

[0007] When the status of a good changes from the on-shelf state to the off-shelf state, if the good is not the reference good corresponding to the classification to which it belongs, the status of the classification is not updated;

[0008] If the good is the reference good corresponding to the classification, and the classification has no corresponding reference good in the on-shelf state, update the status of the classification according to the status of each good corresponding to the classification;

[0009] If the good is the reference good corresponding to the classification, and the classification has a corresponding reference good in the on-shelf state, the status of the classification is not updated;

[0010] When the status of the commodity changes from the off-shelf status to the on-shelf status, if there is no corresponding reference commodity in the on-shelf status for the classification, update the status of the classification; if there is a corresponding reference commodity in the on-shelf status for the classification, do not update the status of the classification.

[0011] In a possible implementation, if the commodity is a reference commodity corresponding to the classification and there is no corresponding reference commodity in the on-shelf status for the classification, then update the status of the classification according to the status of each commodity corresponding to the classification, including:

[0012] If the commodity is a reference commodity corresponding to the classification and the set of reference commodities corresponding to the classification is empty, then update the status of the classification according to the status of each commodity corresponding to the classification;

[0013] The case where if the commodity is a reference commodity corresponding to the classification and there is a corresponding reference commodity in the on-shelf status for the classification, then do not update the status of the classification, includes:

[0014] If the commodity is a reference commodity corresponding to the classification and the set of reference commodities corresponding to the classification is not empty, then do not update the status of the classification;

[0015] The case where if there is no corresponding reference commodity in the on-shelf status for the classification, then update the status of the classification; if there is a corresponding reference commodity in the on-shelf status for the classification, then do not update the status of the classification, includes:

[0016] If the set of reference commodities corresponding to the classification is empty, then update the status of the classification; if the set of reference commodities corresponding to the classification is not empty, then do not update the status of the classification.

[0017] In a possible implementation, when the status of the commodity changes from the on-shelf status to the off-shelf status, if the commodity is a reference commodity corresponding to the classification and the set of reference commodities corresponding to the classification is not empty, the method further includes:

[0018] Delete the commodity from the set of reference commodities.

[0019] In a possible implementation, after updating the status of the classification according to the status of each commodity corresponding to the classification when the commodity is a reference commodity corresponding to the classification and the set of reference commodities corresponding to the classification is empty, the method further includes:

[0020] If there are products in the listed state corresponding to the classification, then among the products in the listed state corresponding to the classification, select a preset number of reference products and add them to the reference product set.

[0021] In a possible implementation, the step of selecting a preset number of reference products from the products in the listed state corresponding to the classification and adding them to the reference product set includes:

[0022] Calculate the reference value score of each product in the listed state corresponding to the classification;

[0023] Among the products in the listed state corresponding to the classification, select the preset number of products with the highest reference value scores as the reference products corresponding to the classification and add them to the reference product set.

[0024] In a possible implementation, the step of calculating the reference value score of each product in the listed state corresponding to the classification includes:

[0025] According to the sales volume, inventory quantity, product listing duration, product delisting duration, the time of the last update of product information of each product in the listed state corresponding to the classification, and the total sales volume of products in the store to which the classification belongs, calculate the reference value score of each product in the listed state corresponding to the classification.

[0026] In a possible implementation, after updating the status of the classification if the reference product set corresponding to the classification is empty, it further includes:

[0027] Use the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0028] In a possible implementation, after not updating the status of the classification if the reference product set corresponding to the classification is not empty, it further includes:

[0029] If the number of reference products included in the reference product set is less than the preset number, use the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0030] In a possible implementation, after not updating the status of the classification if the reference product set corresponding to the classification is not empty, it further includes:

[0031] If the number of reference products included in the reference product set is equal to the preset number, obtain the reference value scores of each reference product in the reference product set, and determine the minimum reference value score among the reference value scores of each reference product.

[0032] Obtain the reference value score of the commodity;

[0033] If the reference value score of the commodity is greater than the minimum reference value score, delete the reference commodity corresponding to the minimum reference value score from the reference commodity set, and use the commodity as the reference commodity corresponding to the classification and add it to the reference commodity set corresponding to the classification.

[0034] In a second aspect, a device for updating the classification status is provided. The device includes:

[0035] A judgment module, configured to, when the status of a commodity changes from the on-shelf status to the off-shelf status, if the commodity is not the reference commodity corresponding to the classification to which it belongs, do not update the status of the classification;

[0036] An update module, configured to, if the commodity is the reference commodity corresponding to the classification and there is no reference commodity in the classification corresponding to the on-shelf status, update the status of the classification according to the status of each commodity corresponding to the classification; if the commodity is the reference commodity corresponding to the classification and there is a reference commodity in the classification corresponding to the on-shelf status, do not update the status of the classification; when the status of the commodity changes from the off-shelf status to the on-shelf status, if there is no reference commodity in the classification corresponding to the on-shelf status, update the status of the classification, and if there is a reference commodity in the classification corresponding to the on-shelf status, do not update the status of the classification.

[0037] In a possible implementation manner, the update module is configured to:

[0038] If the commodity is the reference commodity corresponding to the classification and the reference commodity set corresponding to the classification is empty, update the status of the classification according to the status of each commodity corresponding to the classification;

[0039] If the commodity is the reference commodity corresponding to the classification and the reference commodity set corresponding to the classification is not empty, do not update the status of the classification;

[0040] If the reference commodity set corresponding to the classification is empty, update the status of the classification, and if the reference commodity set corresponding to the classification is not empty, do not update the status of the classification.

[0041] In a possible implementation manner, when the status of the commodity changes from the on-shelf status to the off-shelf status, if the commodity is the reference commodity corresponding to the classification and the reference commodity set corresponding to the classification is not empty, the update module is further configured to:

[0042] Delete the commodity from the reference commodity set.

[0043] In a possible case, the update module is further configured to:

[0044] If there are products in the shelved state corresponding to the classification, select a preset number of reference products from the products in the shelved state corresponding to the classification and add them to the reference product set.

[0045] In a possible case, the update module is configured to:

[0046] Calculate the reference value score of each product in the shelved state corresponding to the classification;

[0047] Select a preset number of products with the highest reference value scores from the products in the shelved state corresponding to the classification as the reference products corresponding to the classification and add them to the reference product set.

[0048] In a possible case, the update module is configured to:

[0049] Calculate the reference value score of each product in the shelved state corresponding to the classification according to the sales volume, inventory quantity, product shelving duration, product unshelving duration, the time of the last update of the product information, and the total sales volume of the products in the store to which the classification belongs.

[0050] In a possible case, the update module is further configured to:

[0051] Use the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0052] In a possible case, the update module is further configured to:

[0053] If the number of reference products included in the reference product set is less than the preset number, use the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0054] In a possible case, the update module is further configured to:

[0055] If the number of reference products included in the reference product set is equal to the preset number, obtain the reference value scores of the reference products in the reference product set and determine the minimum reference value score among the reference value scores of the reference products;

[0056] Obtain the reference value score of the product;

[0057] If the reference value score of the commodity is greater than the minimum reference value score, delete the reference commodity corresponding to the minimum reference value score from the set of reference commodities, and use the commodity as the reference commodity corresponding to the classification and add it to the set of reference commodities corresponding to the classification.

[0058] In a third aspect, a server is provided. The server includes a processor and a memory. At least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method for updating the classification status as described in the first aspect above.

[0059] In a fourth aspect, a computer-readable storage medium is provided. At least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method for updating the classification status as described in the first aspect above.

[0060] In a fifth aspect, a computer program product is provided. The computer program product includes at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for updating the classification status as described in the first aspect above.

[0061] The technical solutions provided in the embodiments of the present application can at least bring the following beneficial effects:

[0062] The present application proposes reference commodities. When the status of a commodity changes, if the status of the commodity changes from the on-shelf status to the off-shelf status, there is no need to judge the classification status based on the status of all commodities under the classification. Instead, if the commodity that has changed to the off-shelf status is not the reference commodity corresponding to the classification to which it belongs, the status of the classification is not updated. If the commodity is the reference commodity corresponding to the classification to which it belongs, and there are reference commodities in the on-shelf status corresponding to the classification to which it belongs, the status of the classification to which it belongs does not need to be updated either. In addition, if the status of the commodity changes from the off-shelf status to the on-shelf status, if there are reference commodities in the on-shelf status corresponding to the classification to which it belongs, the status of the classification to which it belongs does not need to be updated either. It can be seen that in the present application, there is no need to judge the classification status based on the status of all commodities every time the status of a commodity changes. Compared with the prior art, the efficiency is higher when judging whether the classification status is updated. Description of the Drawings

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0064] Figure 1 is a flowchart of a method for updating the classification status provided by the embodiments of the present application;

[0065] Figure 2 is a flowchart of a method for updating classification status provided by an embodiment of the present application;

[0066] Figure 3 is a schematic structural diagram of a device for updating classification status provided by an embodiment of the present application;

[0067] Figure 4 is a schematic structural diagram of a server provided by an embodiment of the present application. Detailed implementation manners

[0068] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0069] An embodiment of the present application provides a method for status update, which can be implemented by a server. Among them, the server can be the background server of a shopping application. Various types of stores can be displayed in the shopping application, and users can purchase the required goods in the stores through the shopping application. When the status of a certain commodity in a certain store changes (from the on-shelf status to the off-shelf status or from the off-shelf status to the on-shelf status), the server can update the status of the classification to which the commodity belongs through the method for updating classification status provided by the embodiment of the present application.

[0070] Such as Figure 1 shown, the processing flow of a method for updating classification status provided by an embodiment of the present application may include the following steps:

[0071] Step 101, determine the status change of the target commodity corresponding to the classification.

[0072] Among them, for different store classifications, they may be different, and the commodities corresponding to the classifications may also be different. For example, if the store is a spicy hot pot takeout store, correspondingly, the classifications may include vegetables, meats, staple foods, and so on.

[0073] The target commodity is any commodity under the classification. The status of the target commodity includes the on-shelf status and the off-shelf status. The on-shelf status is also the sellable status, and the off-shelf status is also the unsellable status. The status change of the target commodity includes changing from the on-shelf status to the off-shelf status and changing from the off-shelf status to the on-shelf status.

[0074] In implementation, the user purchases the target commodity through the shopping application. Correspondingly, the inventory of the target commodity will decrease by the corresponding quantity. Among them, the corresponding quantity is the quantity of the target commodity purchased by the user.

[0075] A merchant can replenish the target product, and correspondingly, the inventory of the target product will increase by the corresponding quantity. Herein, the corresponding quantity is the quantity of the target product replenished by the merchant.

[0076] If the inventory of the target product changes from non-zero to zero, it is determined that the status of the target product changes from the on-shelf status to the off-shelf status. If the inventory of the target product changes from zero to non-zero, it is determined that the status of the target product changes from the off-shelf status to the on-shelf status.

[0077] It should be noted that the change in the inventory of a product may be caused by a user's purchase behavior, a merchant's replenishment behavior, or a merchant's sales strategy. In the embodiments of the present application, the reasons for the change in the inventory of a product are not limited.

[0078] Step 102, in the case where the status of the target product changes from the on-shelf status to the off-shelf status, if the target product is not the reference product corresponding to the category to which it belongs, the status of the category is not updated.

[0079] In implementation, a corresponding reference product set is set for each category in each store, and this reference product set can also be referred to as a reference product pool. The reference products included in the reference product set are used to make decisions on updating the corresponding category.

[0080] When the store is just launched and no transactions have been made yet, the reference product sets corresponding to each category under the store are all empty. As the status of the product changes, the number of reference products included in the reference product set may change.

[0081] After the target product changes from the on-shelf status to the off-shelf status, it is determined whether the target product is the reference product corresponding to the category to which it belongs. If it is determined that the target product is not the reference product corresponding to the category to which it belongs, the status of the category to which the target product belongs is not updated.

[0082] The method for determining whether a product is the reference product corresponding to the category to which it belongs can be as follows:

[0083] The identification of the reference product corresponding to each category is recorded in the reference product set corresponding to the category. If the identification of the product is recorded in the reference product set corresponding to the category to which it belongs, it is determined that the product is the reference product corresponding to the category to which it belongs. If the identification of the product is not recorded in the reference product set corresponding to the category to which it belongs, it is determined that the product is not the reference product corresponding to the category to which it belongs.

[0084] Step 103, if the target product is the reference product corresponding to the category to which it belongs, and there is no corresponding reference product in the on-shelf status for the category to which it belongs, the status of the category to which it belongs is updated according to the status of each product corresponding to the category to which it belongs.

[0085] In implementation, after the target product changes from the shelved state to the off-shelved state, if the identifier of the target product is recorded in the reference product set corresponding to the category to which it belongs, and the identifiers of products other than the target product are not recorded in the reference product set corresponding to the category to which it belongs, it indicates that the target product is the reference product corresponding to the category to which it belongs, and there is no corresponding reference product in the category to which it belongs that is in the shelved state. In this case, obtain the status of each product corresponding to the category to which it belongs, and update the status of the category to which it belongs according to the obtained status of each product. In addition, after the target product changes from the shelved state to the off-shelved state, if it is determined that the target product is the reference product corresponding to the category to which it belongs, the identifier of the target product should be deleted from the reference product set corresponding to the category to which it belongs.

[0086] The method of updating the status of the category to which it belongs according to the obtained status of each product can be as follows:

[0087] If the status of each product corresponding to the category is the off-shelved state, update the status of the category to the off-shelved state. If there are products in the shelved state among the products corresponding to the category, do not update the status of the category.

[0088] In a possible implementation manner, when the target product is the reference product corresponding to the category to which it belongs, and there is no corresponding reference product in the category to which it belongs that is in the shelved state, it can be further determined whether there are products in the shelved state corresponding to the category to which it belongs. If there are products in the shelved state corresponding to the category to which it belongs, select a preset number of products from the products in the shelved state corresponding to the category to which it belongs as the reference products corresponding to the category to which it belongs, and add the identifiers of the selected reference products to the reference product set corresponding to the category to which it belongs. Among them, the preset number is preset by technical personnel according to the store type and experience, etc.

[0089] In implementation, the method of selecting the reference product corresponding to the category to which it belongs can be as follows:

[0090] Method 1:

[0091] Randomly select a preset number of products from the products in the shelved state corresponding to the category to which it belongs as the reference products corresponding to the category to which it belongs.

[0092] Method 2:

[0093] Select the preset number of products with the highest reference value scores from the products in the shelved state corresponding to the category to which it belongs as the reference products corresponding to the category to which it belongs. The method of calculating the reference value score of a product can be as follows:

[0094] Calculate the reference value score of a product based on the product's inventory quantity, sales volume, online duration, offline duration, the time of the last update of the product information, the type of the store to which it belongs, and the total sales volume of all products in the store to which it belongs. The calculation formula is as follows:

[0095]

[0096] Among them, W1, W2, W3, and W4 are preset weight coefficients, utime is the time of the last update of the product information, now is the current time when the calculation is triggered, spu_sale_count is the sales volume of the product, poi_sale_count is the total sales volume of the products in the store, stock is the inventory quantity of the product, online_time is the online duration of the product (the duration when the product is in the online state), offline_time is the offline duration of the product (the duration when the product is in the offline state), and const_value is a preset adjustment parameter. W1, W2, W3, W4, and const_value are all preset by technicians according to the store type. The store types include takeaway, supermarket, etc.

[0097] Step 104, if the target product is the reference product corresponding to the category to which it belongs, and there are reference products in the category to which it belongs that are in the online state, then do not update the status of the category.

[0098] In implementation, after the target product changes from the online state to the offline state, if the identifier of the target product is recorded in the set of reference products corresponding to the category to which it belongs, and the set of reference products corresponding to the category to which it belongs also records the identifiers of products other than the target product, it means that the target product is the reference product corresponding to the category to which it belongs, and there are reference products in the category to which it belongs that are in the online state. In this case, there is no need to update the status corresponding to the category to which it belongs. That is, because there are products in the online state corresponding to the category to which it belongs, the status of the category to which it belongs remains the online state.

[0099] Step 105, in the case where the status of the target product changes from the offline state to the online state, if there is no corresponding reference product in the category to which it belongs that is in the online state, then update the status of the category to which it belongs; if there is a reference product in the category to which it belongs that is in the online state, then do not update the status of the category to which it belongs.

[0100] In implementation, the situation where the status of a product changes from the offline state to the online state can be as follows.

[0101] Situation 1: The product is in the offline state after being sold out, and then after the merchant restocks, the product changes from the offline state to the online state.

[0102] Case 2: The store accesses the shopping application for the first time. In this case, all categories under the store need to be initially established. When adding corresponding products to each initially established category, it is equivalent to changing the status of the product from off-shelf to on-shelf.

[0103] When the status of the target product changes from off-shelf to on-shelf, if the reference product set corresponding to the category to which it belongs is empty, then update the status of the category to which it belongs to on-shelf. Optionally, in this case, the target product can also be used as the reference product corresponding to the category to which it belongs, and the identifier of the target product is added to the reference product set corresponding to the category to which it belongs.

[0104] When the status of the target product changes from off-shelf to on-shelf, if the reference product set corresponding to the category to which it belongs is not empty, then there is no need to update the status of the category to which it belongs.

[0105] In a possible implementation, when the status of the target product changes from off-shelf to on-shelf, if the reference product set corresponding to the category to which it belongs is not empty, the reference product set corresponding to the category can also be updated.

[0106] In implementation, when the status of the target product changes from off-shelf to on-shelf, if the reference product set corresponding to the category to which it belongs is not empty, first determine whether the number of identifiers of the reference products recorded in the reference product set corresponding to the category to which it belongs is less than the preset number.

[0107] If it is less than the preset number, then use the target product as the reference product corresponding to the category to which it belongs, and add the identifier of the target product to the reference product set corresponding to the category to which it belongs.

[0108] If it is not less than the preset number, then obtain the reference value score of the target product, and obtain the reference value scores of each reference product in the reference product set corresponding to the category to which it belongs. If the reference value score of the target product is greater than the minimum reference value score in the reference product set corresponding to the category to which it belongs, then delete the identifier of the reference product corresponding to the minimum reference value score in the reference product set corresponding to the category to which it belongs, and use the target product as the reference product corresponding to the category to which it belongs, and add the identifier of the target product to the reference product set corresponding to the category to which it belongs.

[0109] It should be noted here that the reference value scores of each product can be calculated temporarily during use or can be pre-stored.

[0110] This application proposes a reference product. When the status of the product changes, if the status of the product changes from the on-shelf status to the off-shelf status, there is no need to determine the classification status based on the status of all products under the classification. Instead, if the product that has changed to the off-shelf status is not the reference product corresponding to the classification to which it belongs, the status of the classification is not updated. If the product is the reference product corresponding to the classification to which it belongs, and there is a reference product in the on-shelf status corresponding to the classification, the status of the classification to which it belongs does not need to be updated either. In addition, if the status of the product changes from the off-shelf status to the on-shelf status, if there is a reference product in the on-shelf status corresponding to the classification, the status of the classification to which it belongs does not need to be updated either. It can be seen that in this application, there is no need to determine the classification status based on the status of all products every time the product status changes. Compared with the prior art, the efficiency is higher when determining whether the classification status is updated.

[0111] As Figure 2 shown, the embodiment of this application also provides a processing flow of a method for updating the classification status, which may include the following steps:

[0112] Step 201, determine the status change of the target product corresponding to the classification, and determine whether the change type is from the on-shelf status to the off-shelf status or from the off-shelf status to the on-shelf status.

[0113] Step 202, if the status of the target product changes from the on-shelf status to the off-shelf status, determine whether the target product is the reference product corresponding to the classification to which it belongs.

[0114] Step 203, if the target product is not the reference product corresponding to the classification to which it belongs, do not update the status of this classification.

[0115] Step 204, if the target product is the reference product corresponding to the classification to which it belongs, determine whether there is a reference product in the on-shelf status corresponding to the classification.

[0116] Step 205, if there is no corresponding reference product in the on-shelf status for the classification, update the status of the classification according to the status of each product corresponding to the classification, and select a preset number of products from the products in the on-shelf status corresponding to the classification as the reference products corresponding to the classification.

[0117] Step 206, if there is a reference product in the on-shelf status corresponding to the classification, do not update the status of the classification.

[0118] Step 207, if the status of the target product changes from the off-shelf status to the on-shelf status, determine whether there is a reference product in the on-shelf status corresponding to the classification.

[0119] Step 208, if there is a reference product in the on-shelf status corresponding to the classification, do not update the status of the classification to which it belongs.

[0120] Step 209: Determine whether the number of reference products in the corresponding classification that are in the listed state is less than a preset number.

[0121] Step 210: If the number of reference products in the corresponding classification that are in the listed state is less than the preset number, then use the target product as the reference product corresponding to the classification.

[0122] Step 211: If there is no corresponding reference product in the listed state for the classification, then update the state of the classification and use the target product as the reference product corresponding to the classification.

[0123] It should be noted that Figure 2 the specific processing of step 201 in Figure 1 is the same as or similar to the specific processing of step 101 in Figure 2 the specific processing of steps 202 and 203 in Figure 1 is the same as or similar to the specific processing of step 102 in Figure 2 the specific processing of steps 204 and 205 in Figure 1 is the same as or similar to the specific processing of step 103 in Figure 2 the specific processing of step 206 in Figure 1 is the same as or similar to the specific processing of step 104 in Figure 2 the specific processing of steps 207 to 211 in Figure 1 is the same as or similar to the specific processing of step 105 in , and will not be elaborated here.

[0124] This application proposes reference products. When the state of a product changes, if the state of the product changes from the listed state to the off - shelf state, there is no need to judge the classification state based on the states of all products under the classification. Instead, if it is determined that the product that has changed to the off - shelf state is not the reference product corresponding to the classification, then the state of the classification is not updated. If the product is the reference product corresponding to the classification and there are reference products in the listed state corresponding to the classification, then the state of the corresponding classification does not need to be updated either. In addition, if the state of the product changes from the off - shelf state to the listed state, if there are reference products in the listed state corresponding to the classification, then the state of the corresponding classification does not need to be updated either. It can be seen that in this application, there is no need to judge the classification state according to the states of all products every time the product state changes. Compared with the prior art, the efficiency is higher when judging whether the classification state is updated.

[0125] Based on the same technical concept, the embodiment of this application also provides a device for updating the classification state. This device can be the server in the above - mentioned embodiment, as Figure 3 shown, the device includes a judgment module 310 and an update module 320:

[0126] A judgment module 310, configured to, when the status of a commodity changes from the on-shelf status to the off-shelf status, if the commodity is not the reference commodity corresponding to the category to which it belongs, then the status of the category is not updated;

[0127] An update module 320, configured to, if the commodity is the reference commodity corresponding to the category, and there is no corresponding reference commodity in the on-shelf status for the category, then update the status of the category according to the statuses of the commodities corresponding to the category; if the commodity is the reference commodity corresponding to the category, and there is a corresponding reference commodity in the on-shelf status for the category, then the status of the category is not updated; when the status of the commodity changes from the off-shelf status to the on-shelf status, if there is no corresponding reference commodity in the on-shelf status for the category, then update the status of the category, if there is a corresponding reference commodity in the on-shelf status for the category, then the status of the category is not updated.

[0128] In a possible implementation manner, the update module 320 is configured to:

[0129] If the commodity is the reference commodity corresponding to the category, and the set of reference commodities corresponding to the category is empty, then update the status of the category according to the statuses of the commodities corresponding to the category;

[0130] If the commodity is the reference commodity corresponding to the category, and the set of reference commodities corresponding to the category is not empty, then the status of the category is not updated;

[0131] If the set of reference commodities corresponding to the category is empty, then update the status of the category, if the set of reference commodities corresponding to the category is not empty, then the status of the category is not updated.

[0132] In a possible implementation manner, when the status of the commodity changes from the on-shelf status to the off-shelf status, if the commodity is the reference commodity corresponding to the category, and the set of reference commodities corresponding to the category is not empty, the update module is further configured to:

[0133] Delete the commodity from the set of reference commodities.

[0134] In a possible case, the update module 320 is further configured to:

[0135] If there is a commodity in the on-shelf status corresponding to the category, then select a preset number of reference commodities from the commodities in the on-shelf status corresponding to the category and add them to the set of reference commodities.

[0136] In a possible case, the update module 320 is configured to:

[0137] Calculate the reference value score for each product in the listed state corresponding to the classification;

[0138] Among the products in the listed state corresponding to the classification, select a preset number of products with the highest reference value scores as the reference products corresponding to the classification and add them to the reference product set.

[0139] In a possible case, the update module 320 is used for:

[0140] Calculate the reference value score for each product in the listed state corresponding to the classification according to the sales volume, inventory quantity, product listing duration, product delisting duration, the time of the last update of the product information, and the total sales volume of the products in the store to which the classification belongs.

[0141] In a possible case, the update module 320 is further used for:

[0142] Take the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0143] In a possible case, the update module 320 is further used for:

[0144] If the number of reference products included in the reference product set is less than the preset number, take the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

[0145] In a possible case, the update module 320 is further used for:

[0146] If the number of reference products included in the reference product set is equal to the preset number, obtain the reference value scores of the reference products in the reference product set and determine the minimum reference value score among the reference value scores of the reference products;

[0147] Obtain the reference value score of the product;

[0148] If the reference value score of the product is greater than the minimum reference value score, delete the reference product corresponding to the minimum reference value score from the reference product set, take the product as the reference product corresponding to the classification, and add it to the reference product set corresponding to the classification.

[0149] This application proposes a reference product. When the status of the product changes, if the status of the product changes from the on-shelf status to the off-shelf status, there is no need to judge the classification status based on the status of all products under the classification. Instead, if the product that has changed to the off-shelf status is not the reference product corresponding to the classification to which it belongs, the status of the classification is not updated. If the product is the reference product corresponding to the classification to which it belongs, and there is a reference product in the on-shelf status corresponding to the classification, the status of the classification to which it belongs does not need to be updated either. In addition, if the status of the product changes from the off-shelf status to the on-shelf status, if there is a reference product in the on-shelf status corresponding to the classification, the status of the classification to which it belongs does not need to be updated either. It can be seen that in this application, there is no need to judge the classification status based on the status of all products every time the product status changes. Compared with the prior art, the efficiency is higher when judging whether the classification status needs to be updated.

[0150] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method related thereto, and will not be elaborated herein.

[0151] It should be noted that: when the device for updating the classification status provided in the above embodiment updates the classification status, only the above division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the device for updating the classification status provided in the above embodiment and the embodiment of the method for updating the classification status belong to the same concept, and the specific implementation process can be seen in the method embodiment, which will not be elaborated here.

[0152] In an exemplary embodiment, a computer-readable storage medium is further provided. At least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method for updating the classification status in the above embodiment. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0153] In an exemplary embodiment, a computer program product is further provided. The computer program product includes at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the method for updating the classification status as described above.

[0154] See Figure 4, The structural schematic diagram of a server provided by an embodiment of the present application is also shown. The server 400 may vary greatly due to configuration or performance differences, and may include one or more central processing units (CPUs) 401 and one or more memories 402. Among them, at least one instruction is stored in the memory 402, and the at least one instruction is loaded and executed by the processor 401 to implement the method for updating the classification status described above.

[0155] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disk, or the like.

[0156] The above are only the preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0157] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals (including but not limited to signals transmitted between user terminals and other devices, etc.) involved in the present application are all authorized by users or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the status of goods, the classification status, the sales volume of goods, the inventory of goods, etc. involved in the present application are obtained under full authorization.

Claims

1. A method for updating classification status, characterized in that, The method includes: Determine the change in the status of the product corresponding to the classification; In the case where the status of the product changes from the on-shelf status to the off-shelf status, if the product is not the reference product corresponding to the classification, the status of the classification is not updated. For each classification in each store, a corresponding reference product set is set, and the reference products included in the reference product set are used to decide whether to update the corresponding classification. When the store is just launched and no transactions have been made, the reference product sets corresponding to each classification under the store are all empty. As the status of the product changes, the number of reference products included in the reference product set will change; If the product is the reference product corresponding to the classification and there is no reference product corresponding to the classification in the on-shelf status, update the status of the classification according to the status of each product corresponding to the classification; If the product is the reference product corresponding to the classification and there is a reference product corresponding to the classification in the on-shelf status, do not update the status of the classification; In the case where the status of the product changes from the off-shelf status to the on-shelf status, if there is no reference product corresponding to the classification in the on-shelf status, update the status of the classification. If there is a reference product corresponding to the classification in the on-shelf status, do not update the status of the classification.

2. The method according to claim 1, characterized in that, The step of if the product is the reference product corresponding to the classification and there is no reference product corresponding to the classification in the on-shelf status, update the status of the classification according to the status of each product corresponding to the classification, includes: If the product is the reference product corresponding to the classification and the reference product set corresponding to the classification is empty, update the status of the classification according to the status of each product corresponding to the classification; The step of if the product is the reference product corresponding to the classification and there is a reference product corresponding to the classification in the on-shelf status, do not update the status of the classification, includes: If the product is the reference product corresponding to the classification and the reference product set corresponding to the classification is not empty, do not update the status of the classification; The step of if there is no reference product corresponding to the classification in the on-shelf status, update the status of the classification. If there is a reference product corresponding to the classification in the on-shelf status, do not update the status of the classification, includes: If the reference product set corresponding to the classification is empty, update the status of the classification. If the reference product set corresponding to the classification is not empty, do not update the status of the classification.

3. The method according to claim 2, characterized in that, In the case where the status of the product changes from the on-shelf status to the off-shelf status, the method further includes: Delete the product from the reference product set.

4. The method according to claim 3, characterized in that, After the step of if the product is the reference product corresponding to the classification and the reference product set corresponding to the classification is empty, update the status of the classification according to the status of each product corresponding to the classification, the method further includes: If there are products in the listed state corresponding to the classification, then among the products in the listed state corresponding to the classification, select a preset number of reference products and add them to the reference product set.

5. The method according to claim 4, wherein The step of selecting a preset number of reference products from the products in the listed state corresponding to the classification and adding them to the reference product set includes: Calculating the reference value score of each product in the listed state corresponding to the classification; Among the products in the listed state corresponding to the classification, select the preset number of products with the highest reference value scores as the reference products corresponding to the classification and add them to the reference product set.

6. The method according to claim 5, wherein The step of calculating the reference value score of each product in the listed state corresponding to the classification includes: Calculating the reference value score of each product in the listed state corresponding to the classification according to the sales volume, inventory quantity, product listing duration, product delisting duration, the time of the last update of the product information, and the total sales volume of the products in the store to which the classification belongs.

7. The method according to claim 2 or 3, characterized in that, After updating the status of the classification if the reference product set corresponding to the classification is empty, it further includes: Regarding the product as the reference product corresponding to the classification and adding it to the reference product set corresponding to the classification.

8. The method according to claim 7, characterized in that, After not updating the status of the classification if the reference product set corresponding to the classification is not empty, it further includes: If the number of reference products included in the reference product set is less than the preset number, then regard the product as the reference product corresponding to the classification and add it to the reference product set corresponding to the classification.

9. The method according to claim 8, characterized in that After not updating the status of the classification if the reference product set corresponding to the classification is not empty, it further includes: If the number of reference products included in the reference product set is equal to the preset number, then obtain the reference value scores of the reference products in the reference product set and determine the minimum reference value score among the reference value scores of the reference products; Obtain the reference value score of the product; If the reference value score of the product is greater than the minimum reference value score, then delete the reference product corresponding to the minimum reference value score from the reference product set, regard the product as the reference product corresponding to the classification, and add it to the reference product set corresponding to the classification.

10. An apparatus for updating classification status, characterized in that, The device includes: A judgment module, configured to, when the status of a product changes from the listed state to the delisted state, if the product is not a reference product corresponding to its classification, then do not update the status of the classification. For each classification in each store, a corresponding reference product set is set, and the reference products included in the reference product set are used for making decisions on updating the corresponding classification; when the store has just been launched and no transactions have been conducted yet, the reference product sets corresponding to each classification under the store are all empty, and as the status of the products changes, the number of reference products included in the reference product set will change; An update module, configured to update the status of the category according to the status of each commodity corresponding to the category if the commodity is a reference commodity corresponding to the category and there is no reference commodity in the category corresponding to the listed status; If the commodity is a reference commodity corresponding to the category and there is a reference commodity in the category corresponding to the listed status, the status of the category is not updated; when the status of the commodity changes from the off-shelf status to the listed status, if there is no reference commodity in the category corresponding to the listed status, the status of the category is updated, and if there is a reference commodity in the category corresponding to the listed status, the status of the category is not updated.

11. A server, characterized in that, The server includes a processor and a memory, and at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method for updating the category status according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, At least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method for updating the category status according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Object classification method and device

    CN107093122A

  • Commodity management method of automatic vending cabinet

    CN108711021A