Abnormal code identification method and device of product and storage medium

By comparing product models and material information differences, identifying abnormal codes and building a multi-level database, the problem of inaccurate product code allocation is solved, and the efficiency and accuracy of code management are improved.

CN120633592APending Publication Date: 2025-09-12ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510543276.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

In enterprises that produce multiple varieties in small batches, the existing product coding allocation method is rough, resulting in illegal coding allocation and waste of coding values, making it difficult to effectively manage and identify personalized customized products.

Method used

By obtaining product model and material information, comparing product differences, determining difference verification rules, identifying product codes that do not meet the rules as abnormal codes, and building a multi-level database management code.

Benefits of technology

Improves the accuracy of product code allocation, identifies abnormal situations where different types of products use the same code, and abnormal situations where different versions of the same type of products use different codes, and reduces code waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120633592A_ABST
    Figure CN120633592A_ABST
Patent Text Reader

Abstract

The invention discloses a product abnormal code identification method and device and a storage medium, and the method comprises the steps: comparing the differences between the product models of all products, and obtaining the difference of the product models; and / or comparing differences among the material information of the products to obtain material information differences; determining a difference verification rule matched with a consistency actual result between the product codes of the products; whether the product model difference and / or the material information difference among the products meet the difference verification rule or not is detected, the product codes of the products which do not meet the difference verification rule serve as the abnormal codes, and whether product code distribution of the products is reasonable or not can be judged according to the product models and / or the material information. The abnormal condition that different types of products use the same product code is effectively identified, or the abnormal condition that the same type but different versions of products use different product codes is identified, and the accuracy of product code distribution is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, and storage medium for identifying abnormal codes of a product. Background Art

[0002] Companies that meet the requirements of high-variety, small-batch production often produce a large number of personalized products. To meet market access requirements, each product needs to be assigned a product code. Currently, during the product development phase, the product code is typically bound to the product's unique identifier, fulfilling the need for assigning a product code to each product.

[0003] However, in order to facilitate product management and identification, it is necessary to use the same product code for multiple different versions of the same product. However, existing product codes are generally randomly assigned, and the allocation method is relatively rough, which makes it easy for product codes to be assigned in violation of regulations and leads to a high waste rate of product code values. Summary of the Invention

[0004] In order to solve the above technical problems, the present application at least provides a method, device and storage medium for identifying abnormal coding of a product.

[0005] The first aspect of the present application provides a method for identifying abnormal codes of products, the method comprising: obtaining the product model, material information and product code corresponding to each product in the current set of products to be identified; comparing the differences between the product models of each product to obtain the product model difference; and / or comparing the differences between the material information of each product to obtain the material information difference; determining the consistency between the product codes of each product to obtain the actual consistency results between the product codes of each product, and obtaining difference verification rules that match the actual consistency results; detecting whether the product model differences and / or material information differences between each product meet the difference verification rules, and treating the product codes of products that do not meet the difference verification rules as abnormal codes.

[0006] In one embodiment, the actual consistency result shows that the product codes of each product are consistent; it is detected whether the product model differences and / or material information differences between each product meet the difference verification rules, and the product codes of products that do not meet the difference verification rules are used as abnormal codes, including: extracting products whose product model differences exceed the preset model differences among each product to obtain a set of model-different products; and / or, extracting products whose material information differences exceed the preset material differences among each product to obtain a set of material-different products; and using the product codes of products in the set of model-different products and / or the set of material-different products as abnormal codes.

[0007] In one embodiment, the actual consistency results show that the product codes of various products are inconsistent; it is detected whether the product model differences and / or material information differences between various products meet the difference verification rules, and the product codes of products that do not meet the difference verification rules are used as abnormal codes, including: extracting products whose product model differences do not exceed the preset model differences and whose material information differences do not exceed the preset material differences from various products to obtain a similar product set; and using the product codes of the products in the similar product set as abnormal codes.

[0008] In one embodiment, the product model consists of multiple fields; the method also includes: determining the variable fields and immutable fields corresponding to the product model of the product; treating the product whose product model difference with the product contains immutable fields as a product whose product model difference exceeds the preset model difference; treating the product whose product model difference with the product contains only variable fields as a product whose product model difference does not exceed the preset model difference.

[0009] In one embodiment, the method further includes: extracting products whose product model differences do not exceed a preset model difference from each product to obtain a set of products with similar models; numerically sorting the material information differences between the products in the set of products with similar models, constructing a function based on the sorting results to obtain a target function; derivatizing the target function to calculate a mutation value in the sorting results, and using the mutation value as the preset material difference.

[0010] In one embodiment, a first database is constructed for storing product codes to be assigned; after detecting whether the product model differences and / or material information differences between the products meet the difference verification rules, and treating the product codes of the products that do not meet the difference verification rules as abnormal codes, the method also includes: treating the products with abnormal codes as target products; randomly selecting the product codes to be assigned from the first database, and treating the selected product codes as target codes; and binding the target codes to the target products.

[0011] In one embodiment, a second database is constructed for storing product codes that have been bound to products, a third database is constructed for storing product codes that have been produced, and a fourth database is constructed for storing product codes that have been shipped out of the warehouse; the method also includes: in response to the target code being bound to the target product, deleting the target code in the first database and adding the target code to the second database; in response to the target product having entered production and using the target code, deleting the target code in the second database and adding the target code to the third database; in response to the target product being shipped out of the warehouse, deleting the target code in the third database and adding the target code to the fourth database.

[0012] In one embodiment, the method further includes: obtaining the addition time of each product code in the second database; selecting a product code in the second database for which the time interval between the addition time and the current time exceeds a preset time threshold to obtain a code to be recycled; deleting the code to be recycled in the second database, adding the code to be recycled to the first database, and unbinding the code to be recycled from the bound product.

[0013] The second aspect of the present application provides a device for identifying abnormal codes of products, the device comprising: a data acquisition module for acquiring the product model, material information and product code corresponding to each product in the current set of products to be identified; a difference comparison module for comparing the differences between the product models of each product to obtain the product model difference; and / or, comparing the differences between the material information of each product to obtain the material information difference; a verification rule matching module for determining the consistency between the product codes of each product, obtaining the actual consistency results between the product codes of each product, and obtaining the difference verification rules that match the actual consistency results; an abnormal code identification module for detecting whether the product model differences and / or material information differences between each product meet the difference verification rules, and treating the product codes of products that do not meet the difference verification rules as abnormal codes.

[0014] A third aspect of the present application provides an electronic device, including a memory and a processor, wherein the processor is configured to execute program instructions stored in the memory to implement the abnormal coding identification method for the above-mentioned product.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium having program instructions stored thereon, which implement the abnormal coding identification method of the above-mentioned product when the program instructions are executed by a processor.

[0016] The above scheme obtains the product model, material information and product code corresponding to each product in the current product set to be identified; compares the differences between the product models of each product to obtain the product model difference; and / or compares the differences between the material information of each product to obtain the material information difference; determines the consistency between the product codes of each product, obtains the actual consistency results between the product codes of each product, and obtains the difference verification rules that match the actual consistency results; detects whether the product model differences and / or material information differences between each product meet the difference verification rules, and uses the product codes of products that do not meet the difference verification rules as abnormal codes. It can judge whether the product code allocation of the product is reasonable from the dimensions of the product model and / or material information of the product, so as to effectively identify the abnormal situation where different types of products use the same product code, or effectively identify the abnormal situation where products of the same type but different versions use different product codes, thereby improving the accuracy of product code allocation.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.

[0019] Figure 1 is a schematic diagram of a solution implementation environment shown in an exemplary embodiment of the present application;

[0020] Figure 2 This is a flowchart of a method for identifying abnormal product codes according to an exemplary embodiment of the present application;

[0021] Figure 3 This is a flowchart illustrating an exemplary embodiment of the present application for identifying abnormal codes when the product codes of the products in the current set of products to be identified are consistent;

[0022] Figure 4 is a schematic diagram of multi-level storage product coding shown in an exemplary embodiment of the present application;

[0023] Figure 5 is a block diagram of a device for identifying abnormal codes of a product shown in an exemplary embodiment of the present application;

[0024] Figure 6 is a schematic structural diagram of an electronic device shown in an exemplary embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the structure of a computer-readable storage medium shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0026] The following describes the embodiments of the present application in detail with reference to the accompanying drawings.

[0027] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0028] The term "and / or" in this article is merely information describing the association of associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C.

[0029] The following describes the method for identifying abnormal codes of products provided in the embodiments of the present application.

[0030] Please refer to Figure 1 , Figure 1 FIG1 is a schematic diagram of an exemplary embodiment of the present application showing a solution implementation environment, wherein the solution implementation environment may include a terminal 110 and a server 120, and the terminal 110 and the server 120 are in communication connection with each other.

[0031] The number of the terminal 110 may be one or more. The terminal 110 may be a CNC machine tool, a tablet computer, a laptop computer, a desktop computer, etc., but is not limited thereto.

[0032] Server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0033] In one example, the server 120 may perform abnormality identification on the product code of the product obtained from the terminal 110 and identify the abnormal code. Of course, the server 120 may store the identified abnormal code locally, transmit it back to the terminal 110, or transmit it to other terminals.

[0034] In one example, terminal 110 may be installed with a client running a target application, such as an application that provides an abnormal code identification function. The target application is used to identify abnormal product codes and identify abnormal codes. Server 120 may be a backend server for the target application, configured to provide backend services for the client of the target application.

[0035] In the method for identifying abnormal codes of products provided in an embodiment of the present application, the execution entity of each step can be the terminal 110, such as the client of the target application installed and running in the terminal 110, or the server 120, or the terminal 110 and the server 120 can interact and cooperate to execute, that is, part of the steps of the method are executed by the terminal 110 and the other steps are executed by the server 120.

[0036] See also Figure 2 , Figure 2 This is a flowchart of a method for identifying abnormal codes of a product shown in an exemplary embodiment of the present application. The method for identifying abnormal codes of a product can be applied to Figure 1 It should be understood that the method can also be applied to other exemplary implementation environments and be specifically executed by devices in other implementation environments, and this embodiment does not limit the implementation environment to which the method is applicable.

[0037] like Figure 2 As shown, the product abnormal code identification method includes at least steps S210 to S240, which are described in detail as follows:

[0038] Step S210: Obtain the product model, material information and product code corresponding to each product in the current set of products to be identified.

[0039] Obtain the product model, material information, and product code of each product in the current product set to be identified from the database.

[0040] Among them, the product model is used to distinguish the types or versions of different products, such as different types of products, or different versions of products of the same type; material information is used to describe the materials needed to make up the product; by assigning a certain type of product a certain representative symbol or code based on product classification, the product code of a certain type of product is obtained.

[0041] It should be noted that the current set of products to be identified for abnormal coding identification here can be all products that have been assigned product codes, or some products that have been assigned product codes. The selection method of products that need to be identified for abnormal coding can be flexibly set according to actual conditions. For example, all products with the same product code can be selected to obtain the current set of products to be identified for abnormal coding identification, or products that have been assigned product codes within a preset time period can be selected to obtain the current set of products to be identified for abnormal coding identification. This application does not limit this.

[0042] For example, see Table 1 below. Table 1 shows the product model, material information, and product code of various products of the same type but different versions. The product material number is used to identify the serial number of the material information, as shown in Table 1:

[0043] Product Model Material Information Product Code IPC123-o Power Cord - (European Standard 3-core, 10A 250V) - Black - 1500mm 123 IPC123-m Power Cord - (US Standard 3-core, 10A 250V) - Black - 1500mm 123 IPC123-c Power Cord - (National Standard 2-core, 10A 250V) - White - 1500mm 123 IPC124-a Power Cord - (US Standard 2-core, 10A 250V) - White - 1500mm 123

[0044] Table 1

[0045] Step S220: comparing differences between product models of various products to obtain product model differences; and / or comparing differences between material information of various products to obtain material information differences.

[0046] For the product models of each product, the characters contained in the product models of the products can be compared one by one, and the different characters can be used as the product model differences; the product models can also be divided into multiple fields, and the different fields can be used as product model differences. This application does not limit the specific comparison method of product model differences.

[0047] For example, the same content and different content between the product models of each product are compared, and the different content is used as the product model difference. For example, in the above Table 1, the same content between the product model "IPC123-o" and the product model "IPC123-m" is "IPC123-", and the different content is "o" and "m".

[0048] For the material information of each product, the material information difference can be obtained by comparing the text character differences between the text description contents contained in the material information; or the material information can be composed of multiple materials, each material containing a material name and material attributes. By comparing the material name and material attributes of each material between the material information of each product, different material names or different material attributes are used as material information differences.

[0049] For example, material information differences can be obtained by calculating the edit distance between the text descriptions contained in the product's material information. Alternatively, material information differences can be obtained by comparing the text character differences between the text descriptions contained in the material information. For example, in Table 1 above, the text character differences between the material descriptions corresponding to product models "IPC123-o" and "IPC123-m" are "European Standard" and "American Standard."

[0050] Step S230: Determine the consistency between the product codes of the various products, obtain the actual consistency results between the product codes of the various products, and obtain the difference verification rules that match the actual consistency results.

[0051] The actual consistency result includes that the product codes of the products in the current set of products to be identified are consistent, and the product codes of the products in the current set of products to be identified are inconsistent.

[0052] If the product codes of the various products are all the same, then a consistency actual result is obtained that the product codes of the various products are consistent. If the product codes of the various products are not all the same, then a consistency actual result is obtained that the product codes of the various products are inconsistent.

[0053] If the actual consistency results corresponding to the current product set to be identified are different, the corresponding difference verification rules are also different. The difference verification rules that match the actual consistency results are obtained. The difference verification rules are used to verify product model differences and / or material information differences.

[0054] Step S240: Detect whether the product model differences and / or material information differences between the products meet the difference verification rules, and treat the product codes of the products that do not meet the difference verification rules as abnormal codes.

[0055] The difference verification rules are used to detect whether the product model differences and / or material information differences between products are reasonable. If the corresponding product model differences and / or material information differences between products do not meet the difference verification rules, it is considered that the product codes of these products may be abnormal, and the product codes of the products that do not meet the difference verification rules are regarded as abnormal codes.

[0056] Exemplarily, the difference verification rules may include a range limit for the difference values ​​of product model differences and / or material information differences. If the product model difference and / or material information difference is within a preset value range, it is considered that the product model difference and / or material information difference meets the difference verification rules; otherwise, it is considered that the product model difference and / or material information difference does not meet the difference verification rules.

[0057] Exemplarily, the difference verification rules may also include fluctuations in product model differences and / or material information differences of each product. If the mean of all product model differences and / or the mean of all material information differences in each product is less than a preset mean threshold, then the product model differences and / or material information differences are considered to meet the difference verification rules; otherwise, the product model differences and / or material information differences are considered not to meet the difference verification rules.

[0058] Exemplarily, the difference verification rule may also be to detect whether the expected consistency result and the actual consistency result between the product codes of each product represented by the product model difference and / or material information difference are the same. If the actual consistency result shows that the product codes of each product in the current product set to be identified are consistent, and the expected consistency result obtained based on the product model difference and / or material information difference is also consistent, then it is considered that the product model difference and / or material information difference satisfies the difference verification rule, otherwise it is considered that the product model difference and / or material information difference does not satisfy the difference verification rule; or, if the actual consistency result shows that the product codes of each product in the current product set to be identified are inconsistent, and the expected consistency result obtained based on the product model difference and / or material information difference is also inconsistent, then it is considered that the product model difference and / or material information difference satisfies the difference verification rule, otherwise it is considered that the product model difference and / or material information difference does not satisfy the difference verification rule.

[0059] Of course, other difference verification rules can also be set to detect whether there are reasonable differences in product models and / or material information between products. The difference verification rules can be flexibly set according to the specific application scenarios, and this application does not limit this.

[0060] Next, some embodiments of the present application are described in detail.

[0061] In some embodiments, the actual consistency results indicate that the product codes of the various products are consistent; in step S240, it is detected whether the product model differences and / or material information differences between the various products satisfy the difference verification rules, and the product codes of the products that do not satisfy the difference verification rules are used as abnormal codes, including: extracting products whose product model differences exceed the preset model differences among the various products to obtain a set of model-different products; and / or extracting products whose material information differences exceed the preset material differences among the various products to obtain a set of material-different products; and using the product codes of the products in the set of model-different products and / or the set of material-different products as abnormal codes.

[0062] If the product codes of the products in the current product set to be identified are all the same, then by extracting products whose product model differences exceed the preset model differences, a model-different product set is obtained, or by extracting products whose material information differences exceed the preset material differences, a material-different product set is obtained, and the product codes of the products in the model-different product set and / or material-different product set are used as abnormal codes.

[0063] Exemplarily, the product model consists of multiple fields, and the steps of determining whether the product model difference among each product exceeds the preset model difference include: determining the variable fields and immutable fields corresponding to the product model of the product; treating the product whose product model difference between the product and the product contains immutable fields as the product whose product model difference exceeds the preset model difference; treating the product whose product model difference between the product and the product contains only variable fields as the product whose product model difference does not exceed the preset model difference.

[0064] For example, the product model consists of three fields: device main type, device subtype, and device version. For example, in the product model "IPC123-o" in Table 1, the device main type field is "IPC", the device subtype field is "123", and the device version field is "-o".

[0065] Get the variable and immutable fields corresponding to the current product model.

[0066] The corresponding variable and immutable fields can be queried based on the device main type field of the product model, or the corresponding variable and immutable fields can be queried based on the product code. This application does not limit this.

[0067] For example, for a product model whose device main type field is "IPC", its changeable fields include the device version field, and its unchangeable fields include the device main type and the device subtype.

[0068] Compare the fields of the product models of each product in the current product set to be identified to obtain the fields that are different from the product models of other products, obtain the product model differences, and regard the products whose product model differences with the products contain immutable fields as products whose product model differences exceed the preset model differences; regard the products whose product model differences with the products only contain variable fields as products whose product model differences do not exceed the preset model differences.

[0069] For example, the current product set to be identified contains four products with the same product code as shown in Table 1 above. By comparing the product model fields of each product, it is found that the device subtype field in the product model "IPC124-a" is "124", which is different from other products, and the device subtype field is an immutable field. The product corresponding to the product model "IPC124-a" is regarded as a product whose product model difference exceeds the preset model difference, and is added to the set of products with different models.

[0070] It should be noted that when this application compares information of various products, the differences obtained may refer to the information of a small number of products being different from the information of most products. For example, the number of various values ​​in the model and / or material information of each product can be counted first, and the value with the largest statistical number can be used as the standard value. Then, the model and / or material information of each product can be compared with the standard value to obtain the product model difference corresponding to each product. It is also possible to directly obtain a preset standard value, such as obtaining a preset standard value based on the product code or the device main type field of the product model, so as to compare the model and / or material information of each product with the standard value to obtain the product model difference corresponding to each product. If the product model difference and / or material information difference obtained for each product in the above steps are different, each product can be judged separately, and some products in the current product set to be identified can be added to the model-different product set and / or material-different product set. Of course, it is also possible to directly compare the product models and / or material information of each product, and take the maximum difference as the product model difference and / or material information difference of each product in the entire current product set to be identified. At this time, the product model difference and / or material information difference obtained by each product is the same. At this time, all products in the current product set to be identified need to be judged together to add all products to the set of products with different models and / or the set of products with different materials.

[0071] For example, count the number of values ​​in the immutable field corresponding to the product model, use the value with the largest count as the standard field value, and add all products corresponding to product models that differ from the standard field value to the set of products with different models. For example, if the immutable field corresponding to the product model in Table 1 contains a count of 3 for "IPC123" and 1 for "IPC124," then "IPC123" is used as the standard field value. Therefore, the product corresponding to product model "IPC124-a" is considered to have a model difference exceeding the preset model difference and is added to the set of products with different models.

[0072] Of course, in addition to the above-mentioned comparison of each field of the product model to determine products whose product model differences exceed the preset model differences, other methods can also be used to determine products whose product model differences exceed the preset model differences. For example, the preset model difference includes a similarity threshold. After obtaining the standard field value, the text similarity between the product model and the standard field value is calculated, and the product models whose text similarity is less than the similarity threshold are added to the set of products with different models.

[0073] Similarly, determine whether the material information differences among various products exceed the preset material differences.

[0074] It should be noted that the preset material difference can be pre-set based on experience or can be flexibly calculated.

[0075] Exemplarily, in the step of extracting products whose material information differences exceed the preset material differences among various products, the step of calculating the preset material differences includes: extracting products whose product model differences do not exceed the preset model differences among various products to obtain a set of products with similar models; sorting the material information differences between the products in the set of products with similar models in numerical order, constructing a function based on the sorting results to obtain a target function; derivatizing the target function to calculate a mutation value in the sorting results, and using the mutation value as the preset material difference.

[0076] Among them, sequential sorting includes ascending sorting or descending sorting, and an objective function that characterizes the change in difference value is generated according to the sorted material information difference, and the objective function is differentiated to calculate the critical value of the material information difference at which a mutation occurs, and the mutation value is obtained, and the mutation value is used as the preset material difference.

[0077] For example, if it is detected by deriving the objective function that the numerical change between adjacent material information differences in the sorting result is greater than a preset change threshold, and the numerical change is the largest in the entire objective function, then the value of the material information difference is used as the mutation value.

[0078] By using the value of sudden numerical change as the boundary and setting the preset material difference to distinguish products whose material information difference exceeds the preset material difference, intelligent calibration of the threshold is achieved to improve recognition accuracy.

[0079] In some embodiments, see Figure 3 , Figure 3 This is a flowchart of an exemplary embodiment of the present application showing a method for identifying abnormal codes when the product codes of the products in the current set of products to be identified are consistent. Figure 3 Shown, including:

[0080] Step S301: Determine the variable fields and the non-variable fields corresponding to the product model, and obtain the tolerance range of the product model.

[0081] Step S302: comparing differences between product models of the products in the current set of products to be identified to obtain product model differences.

[0082] Step S303: Determine whether the product model difference of the product meets the product model tolerance range. If so, execute steps S304 to S307; if not, execute step S308.

[0083] If the product model difference of the product contains an immutable field, it is determined that the product model tolerance range is not met. If the product model difference of the product does not contain an immutable field, it is determined that the product model tolerance range is met.

[0084] Step S304: comparing the differences between the material information of each product in the current set of products to be identified to obtain the material information differences.

[0085] Step S305: sorting the differences in the information of each material in numerical order, and constructing a function based on the sorting result to obtain the target function.

[0086] Step S306: Derivative the objective function to calculate the mutation value in the sorting result, and use the mutation value as the preset material difference.

[0087] Step S307: Determine whether the material information difference of the product exceeds the preset material difference. If so, execute step S308; if not, end;

[0088] Step S308: The product code of the product is an abnormal code, and the product code is reassigned.

[0089] The above embodiment can effectively identify the abnormal situation where different types of products use the same product code.

[0090] In some embodiments, the actual consistency results show that the product codes of each product are inconsistent; detecting whether the product model differences and / or material information differences between each product meet the difference verification rules, and taking the product codes of products that do not meet the difference verification rules as abnormal codes, including: extracting products whose product model differences do not exceed the preset model differences and whose material information differences do not exceed the preset material differences from each product to obtain a similar product set; taking the product codes of the products in the similar product set as abnormal codes.

[0091] If each product in the current set of products to be identified has the same product model as the product in the current set of products to be identified, then select products whose product model difference does not exceed the preset model difference and whose material information difference does not exceed the preset material difference to obtain a similar product set, and use the product codes of the products in the similar product set as abnormal codes.

[0092] Among them, the comparison between product model differences and preset model differences, as well as the comparison between material information differences and preset material differences, can be found in the above embodiments and will not be elaborated here.

[0093] In some embodiments, all products whose product model differences do not exceed a preset model difference can be directly counted to obtain a set of products with similar models. If the product codes in the set of products with similar models are different, the product codes of the products in the set of products with similar models are all treated as abnormal codes.

[0094] In some implementations, all products whose material information differences do not exceed the preset material differences can be directly counted to obtain a set of material-similar products. If the product codes in the set of material-similar products are different, the product codes of the products in the set of material-similar products are all treated as abnormal codes.

[0095] The above embodiment can effectively identify the abnormal situation where products of the same type but different versions use different product codes.

[0096] This application determines whether the product code allocation of a product is reasonable based on the product model and / or material information of the product, so as to effectively identify the abnormal situation where different types of products use the same product code, or effectively identify the abnormal situation where products of the same type but different versions use different product codes, thereby improving the accuracy of product code allocation.

[0097] In some embodiments, a first database is constructed for storing product codes to be assigned; after detecting whether the product model differences and / or material information differences between the products meet the difference verification rules, and treating the product codes of the products that do not meet the difference verification rules as abnormal codes, the method also includes: treating the products with abnormal codes as target products; randomly selecting the product codes to be assigned from the first database, and treating the selected product codes as target codes; and binding the target codes to the target products.

[0098] For example, the target code and the unique product identification code corresponding to the target product may be directly bound.

[0099] For the abnormal situation where the same product code is used for different types of products, the above method can be used to reallocate new product codes; and for the abnormal situation where different product codes are used for products of the same type but different versions, the product codes of this type of products can be directly unified, that is, the same product code is used for all products. For example, products whose product model differences do not exceed the preset model differences and whose material information differences do not exceed the preset material differences are obtained, and a similar product set is obtained. The number of each product code in the similar product set is counted, and the product code with the largest number is used as the standard code. The product codes of all products in the similar product set are modified to the standard code.

[0100] It should be noted that, in addition to taking the product with abnormal code as the target product to re-assign the product code, the newly created product can also be taken as the target product to perform the first product code assignment on the newly created product.

[0101] In some embodiments, a second database is constructed for storing product codes that have been bound to products, a third database is constructed for storing product codes that have been produced, and a fourth database is constructed for storing product codes that have been shipped out of the warehouse; the method also includes: in response to the target code being bound to the target product, deleting the target code in the first database and adding the target code to the second database; in response to the target product having entered production and using the target code, deleting the target code in the second database and adding the target code to the third database; in response to the target product having been shipped out of the warehouse, deleting the target code in the third database and adding the target code to the fourth database.

[0102] For example, see Figure 4 , Figure 4 FIG. 1 is a schematic diagram of a multi-level storage product encoding shown in an exemplary embodiment of the present application. Figure 4 As shown, it includes a first database, a second database, a third database and a fourth database. The first database stores the product code to be assigned, selects the product code from the first database as the target code, binds the target code to the target product, deletes the target code from the first database, and adds the target code to the second database.

[0103] Then, if it is detected that the target product has entered the production and manufacturing process, the third database is searched to see whether there is a target code for the target product; if there is a target code, it is not processed; if there is no target code, the system of the production and manufacturing process is searched to see whether the target code was used when the target product was produced. If not, it is not processed; if so, the target code is deleted from the second database and added to the third database.

[0104] Furthermore, if it is detected that the target product is shipped out, it is determined whether the target code of the target product exists in the third database. If so, the target code is deleted from the third database and added to the fourth database. If not, no processing is performed.

[0105] Optionally, the present application may perform abnormal code identification on the product codes of the products in the second database, so as to identify abnormal codes in the allocation stage and avoid subsequent cost waste.

[0106] By storing product codes at different usage stages in the multi-database hierarchical manner, the management efficiency of product codes can be improved, and the retrieval and comparison efficiency of product codes can be improved.

[0107] In some embodiments, the method further includes: obtaining the addition time of each product code in the second database; selecting the product code in the second database whose time interval between the addition time and the current time exceeds a preset time threshold to obtain the code to be recycled; deleting the code to be recycled in the second database, adding the code to be recycled to the first database, and unbinding the code to be recycled and the bound product.

[0108] In some embodiments, in addition to the second database, the time interval between the addition time of the product codes in the third database and / or the fourth database and the current time can also be calculated, and the product codes whose time interval exceeds the preset time threshold are selected to obtain the codes to be recycled, so as to delete the codes to be recycled in the third database and / or the fourth database, add the codes to be recycled to the first database, and unbind the codes to be recycled and the bound products.

[0109] Optionally, a preset time threshold T1 is set for the second database, a preset time threshold T2 is set for the third database, and a preset time threshold T3 is set for the fourth database, where T3 is greater than T2 and greater than T1. By setting different preset time thresholds for databases at different levels, product codes in databases at different levels can be reasonably recycled, thereby improving the accuracy and efficiency of product code recycling.

[0110] Optionally, since the third database and the products corresponding to the product codes in the third database have been generated or shipped out, when the third database and the product codes in the third database are recycled, the production status or shipping status of the products bound to them can be obtained to estimate the recycling cost of the product codes. When the recycling cost is less than the preset cost threshold, the product codes can be recycled.

[0111] By recycling product codes that have not been used for a long time in the database, the utilization rate of the codes is improved, ensuring that the codes that have been occupied for a long time in the database but not actually used can be released.

[0112] The abnormal coding identification method for products provided in the present application obtains the product model, material information and product code corresponding to each product in the current product set to be identified; compares the differences between the product models of each product to obtain the product model difference; and / or compares the differences between the material information of each product to obtain the material information difference; determines the consistency between the product codes of each product, obtains the actual consistency results between the product codes of each product, and obtains the difference verification rules that match the actual consistency results; detects whether the product model differences and / or material information differences between each product meet the difference verification rules, and uses the product codes of products that do not meet the difference verification rules as abnormal codes. It can judge whether the product code allocation of the product is reasonable from the dimensions of the product model and / or material information of the product, so as to effectively identify the abnormal situation where different types of products use the same product code, or effectively identify the abnormal situation where products of the same type but different versions use different product codes, thereby improving the accuracy of product code allocation.

[0113] Figure 5 FIG. 1 is a block diagram of a device for identifying abnormal product codes according to an exemplary embodiment of the present application. Figure 5 As shown, the exemplary product abnormal code identification device 500 includes:

[0114] The data acquisition module 510 is used to obtain the product model, material information and product code corresponding to each product in the current set of products to be identified;

[0115] The difference comparison module 520 is used to compare the differences between the product models of various products to obtain product model differences; and / or compare the differences between the material information of various products to obtain material information differences;

[0116] A verification rule matching module 530 is used to determine the consistency between the product codes of various products, obtain the actual consistency results between the product codes of various products, and obtain the difference verification rules that match the actual consistency results;

[0117] The abnormal code identification module 540 is used to detect whether the product model differences and / or material information differences between various products meet the difference verification rules, and treat the product codes of products that do not meet the difference verification rules as abnormal codes.

[0118] It should be noted that the abnormal code identification device for the product provided in the above embodiment and the abnormal code identification method for the product provided in the above embodiment are based on the same concept. The specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual applications, the abnormal code identification device for the product provided in the above embodiment can, as needed, allocate the above functions to different functional modules, that is, divide the internal structure of the device into different functional modules to complete all or part of the functions described above. This is not limited here.

[0119] See also Figure 6 , Figure 6 6 is a schematic diagram of the structure of an embodiment of an electronic device of the present application. Electronic device 600 includes memory 601 and processor 602. Processor 602 is configured to execute program instructions stored in memory 601 to implement the steps of the embodiment of the method for identifying abnormal codes of any of the aforementioned products. In a specific implementation scenario, electronic device 600 may include, but is not limited to, a microcomputer and a server. Furthermore, electronic device 600 may also include mobile devices such as laptops and tablet computers, which are not limited herein.

[0120] Specifically, processor 602 is used to control itself and memory 601 to implement the steps in the abnormal coding identification method embodiment of any of the above-mentioned products. Processor 602 can also be called central processing unit (Central Processing Unit, CPU). Processor 602 may be a kind of integrated circuit chip, has the processing capability of signal. Processor 602 can also be a general-purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. General-purpose processor can be a microprocessor or the processor can also be any conventional processor etc. In addition, processor 602 can be realized by integrated circuit chip together.

[0121] See also Figure 7 , Figure 7 The computer-readable storage medium 700 stores program instructions 710 that can be executed by a processor, and the program instructions 710 are used to implement the steps of the above-mentioned abnormal code identification method embodiment of any product.

[0122] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0123] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced with each other and will not be repeated herein for the sake of brevity.

[0124] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation methods described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0125] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Claims

1. A method for identifying abnormal coding of a product, characterized in that: The method comprises: Get the product model, material information and product code corresponding to each product in the current product set to be identified; Comparing the differences between the product models of the various products to obtain product model differences; and / or comparing the differences between the material information of the various products to obtain material information differences; Determine consistency between the product codes of the respective products, obtain actual consistency results between the product codes of the respective products, and obtain a difference verification rule that matches the actual consistency results; It is detected whether the product model differences and / or material information differences between the products meet the difference verification rules, and the product codes of the products that do not meet the difference verification rules are regarded as abnormal codes.

2. The method according to claim 1, characterized in that The actual consistency result indicates that the product codes of the respective products are consistent; detecting whether the product model differences and / or material information differences between the respective products satisfy the difference verification rules, and treating the product codes of the products that do not satisfy the difference verification rules as abnormal codes, includes: Extracting products whose product model differences exceed a preset model difference from the individual products to obtain a set of products with different models; and / or extracting products whose material information differences exceed a preset material difference from the individual products to obtain a set of products with different materials; The product codes of the products in the set of products with different models and / or the set of products with different materials are used as abnormal codes.

3. The method according to claim 1, characterized in that The actual consistency result indicates that the product codes of the respective products are inconsistent; detecting whether the product model differences and / or material information differences between the respective products satisfy the difference verification rules, and treating the product codes of the products that do not satisfy the difference verification rules as abnormal codes, includes: Extract products whose product model differences do not exceed a preset model difference and whose material information differences do not exceed a preset material difference from the respective products, to obtain a similar product set; The product codes of the products in the similar product set are used as abnormal codes.

4. The method according to claim 2 or 3, characterized in that The product model consists of multiple fields; the method further includes: Determine the variable fields and the non-variable fields corresponding to the product model of the product; The product whose product model difference with the product contains the immutable field is regarded as a product whose product model difference exceeds the preset model difference; The product whose product model difference from the product only contains the variable field is regarded as a product whose product model difference does not exceed the preset model difference.

5. The method according to claim 2 or 3, characterized in that The method further comprises: Extract products whose product model differences do not exceed a preset model difference from the products, to obtain a set of products with similar models; Numerically sorting the material information differences between the products in the set of similar product models, and constructing a function based on the sorting results to obtain a target function; The objective function is derived to calculate a mutation value in the sorting result, and the mutation value is used as a preset material difference.

6. The method according to claim 1, characterized in that A first database is constructed for storing product codes to be assigned; after detecting whether the product model differences and / or material information differences between the products satisfy the difference verification rules, and treating the product codes of products that do not satisfy the difference verification rules as abnormal codes, the method further includes: Products with abnormal coding are regarded as target products; Randomly select a product code to be assigned from the first database, and use the selected product code as the target code; Bind the target code to the target product.

7. The method according to claim 6, characterized in that A second database for storing product codes that have been bound to products, a third database for storing product codes of products that have been produced, and a fourth database for storing product codes of products that have been shipped are also constructed; the method further includes: In response to binding the target code with the target product, deleting the target code from the first database and adding the target code to the second database; In response to the target product having entered production and using the target code, deleting the target code from the second database and adding the target code to the third database; In response to the target product being shipped out of the warehouse, the target code is deleted from the third database and added to the fourth database.

8. The method according to claim 7, characterized in that The method further comprises: Obtaining the addition time of each product code in the second database; Select product codes from the second database whose time interval between the addition time and the current time exceeds a preset time threshold, and obtain the codes to be recycled; The codes to be recycled in the second database are deleted, the codes to be recycled are added to the first database, and the codes to be recycled are unbound from the bound products.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, and the processor is used to execute program instructions stored in the memory to implement the steps in the method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores program instructions, and the program instructions can be executed by a processor to implement the steps in the method according to any one of claims 1 to 8.