Product identification code generation method and device, equipment and medium

By determining the material number and date code in the generation system and combining it with the maximum serial number retrieved from the database, the problems of insufficient complexity and uniqueness in the generation of identification codes in the existing technology are solved, and efficient and unique product identification code generation is achieved.

CN121997891APending Publication Date: 2026-05-08ZHEJIANG LIJI ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG LIJI ELECTRONICS CO LTD
Filing Date
2026-01-28
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing product identification code generation methods suffer from problems such as complex generation rules, difficulty in guaranteeing global uniqueness, low generation efficiency, susceptibility to errors, and insufficient system robustness.

Method used

A method for generating product identification codes is provided. By determining the customer type, product part number, and date information, the material number and date code are obtained. Combined with the identification codes stored in the database, an independent and globally unique serial number is generated to ensure the independence of serial number generation under different customer types, different dates, and different product part numbers.

Benefits of technology

It enables independent and globally unique serial number generation for different customer types and dates, improving generation efficiency and reliability of uniqueness guarantee, and supports highly customized and standardized identification code generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121997891A_ABST
    Figure CN121997891A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a product identification code generation method and device, equipment and a medium, and the method comprises the steps: determining a target material number corresponding to a target product material number and a date code corresponding to the date information in response to the received customer type, the target product material number, the date information and the product number submitted by a target object; obtaining a maximum serial number which has an association relationship with the target product material number, the target material number and the date number; according to the maximum serial number and the product number, determining a plurality of target serial numbers which are the same as the product number; and according to the target product number, the target material number, the date number and the target serial number, generating a plurality of target identification codes with the same product number. In the batch identification code generation process, it is ensured that serial number generation under different customer types, different dates and different product material numbers is independent and globally unique, cross-context repetition is avoided, and the reliability of uniqueness guarantee is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology and related technical fields, specifically to a product identification code generation method, apparatus, device, and medium. Background Technology

[0002] In electronic product manufacturing and supply chain management, generating unique identifiers for products (such as serial numbers SN, 8S codes, part numbers, etc.) is a crucial step for traceability, inventory management, quality control, and logistics tracking.

[0003] In existing technologies, the generation of unique identifiers for specific products (such as memory modules and solid-state drives) generally adopts the following methods: using a predefined combination format that includes date information (such as year, month, and day), key product information (such as PN and factory code), and an incrementing serial number; using Excel spreadsheets to record generated identifiers, or using Excel formulas and macros to assist in generation; some companies develop simple scripts (such as Python or Shell scripts) to generate identifiers. However, existing identifier generation methods suffer from problems such as complex generation rules, difficulty in guaranteeing global uniqueness, low generation efficiency, susceptibility to errors, and insufficient system robustness.

[0004] Given the problems with existing technologies, there is an urgent need for a product identification code generation method. Summary of the Invention

[0005] The embodiments described herein provide a product identification code generation method, apparatus, device, and medium that ensure that the serial numbers generated under different customer types, different dates, and different product part numbers are independent and globally unique during the batch identification code generation process.

[0006] Firstly, based on the content of this disclosure, a method for generating a product identification code is provided, including: In response to receiving the customer type, target product part number, date information and product quantity submitted by the target object, determine the target material number corresponding to the target product part number and the date code corresponding to the date information; Obtain the maximum serial number that is associated with the target product part number, target material number, and date number; Based on the maximum serial number and the product quantity, determine multiple target serial numbers that are the same as the product quantity; Based on the target product part number, target material number, date number, and target sequence number, generate multiple target identification codes that are the same quantity as the product.

[0007] In some embodiments of this disclosure, determining the target material number corresponding to the target product part number and the date code corresponding to the date information includes: Based on the customer type, determine the material lookup table and date information coding rules corresponding to the customer type, wherein the material lookup table includes the material number corresponding to each product part number; Based on the target product part number and the material lookup table, determine the target material number corresponding to the target product part number; Based on the date information and the date information encoding rules, determine the date number corresponding to the date information.

[0008] In some embodiments of this disclosure, obtaining the maximum serial number that is associated with the target product part number, the target material number, and the date number includes: The first search criteria are determined based on the target product part number, target material number, and date number. Based on the first search criteria, stored identification codes that meet the first search criteria are filtered from the database, and the serial number included in each stored identification code is determined, wherein the stored identification code consists of a material number, a date number, and a serial number; Based on the serial numbers included in each identifier, determine the largest serial number that is associated with the target product part number, target material number, and date number.

[0009] In some embodiments of this disclosure, the step of filtering stored identifiers that satisfy the first search condition from the database and determining the sequence number included in each stored identifier includes: Based on the first search criteria, the stored identifier codes that meet the first search criteria are filtered from the database; Extract the sequence number from the stored identifiers that meet the first retrieval criteria; The sequence number is decoded to obtain the sequence number corresponding to each stored identifier code.

[0010] In some embodiments of this disclosure, determining a plurality of target serial numbers that are the same as the product quantity based on the maximum serial number and the product quantity includes: Based on the maximum serial number, generate multiple serial numbers that are the same as the number of products, incrementing sequentially. Multiple serial numbers generated incrementally, which are the same as the number of products, are encoded according to the encoding rules to obtain multiple target serial numbers that are the same as the number of products.

[0011] In some embodiments of this disclosure, the method further includes: A product identification code document is generated based on the target product part number, target material number, date information, and target serial number. The product identification code document includes a product part number label, a material number label, a date label, and a serial number label.

[0012] In some embodiments of this disclosure, the method further includes: In response to receiving the imported product identification code document submitted by the target object, the imported product part number corresponding to the product part number tag and the imported material number corresponding to the material number tag in the imported product identification code document are obtained; The type of customer to be imported is determined based on the imported product part number and the imported material number; The database is used to filter historical product identification code documents corresponding to the imported customer type. Based on the date information corresponding to the date label and the serial number corresponding to the serial number label in the historical product identification code documents and the imported product identification code documents, duplicate data is filtered out from the product identification code documents.

[0013] Secondly, according to the present disclosure, a product identification code generation device is provided, comprising: The information determination module is used to determine the target material number corresponding to the target product part number and the date code corresponding to the date information in response to receiving the customer type, target product part number, date information and product quantity submitted by the target object; The information acquisition module is used to acquire the maximum serial number that is associated with the target product part number, target material number, and date number; The target sequence number determination module is used to determine multiple target sequence numbers that are the same as the product quantity, based on the maximum sequence number and the product quantity. The target identifier code determination module is used to generate multiple target identifier codes, which are the same as the number of products, based on the target product part number, target material number, date number, and target sequence number.

[0014] Thirdly, according to this disclosure, a computer device is provided, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any of the first aspects.

[0015] Fourthly, according to the present disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the methods described in any of the first aspects.

[0016] The product identification code generation method, apparatus, device, and medium provided in this disclosure first respond to receiving customer type, target product part number, date information, and product quantity submitted by a target object, determining the target material number corresponding to the target product part number and the date code corresponding to the date information; then, obtaining the maximum serial number associated with the target product part number, target material number, and date number; and determining multiple target serial numbers equal to the product quantity based on the maximum serial number and the product quantity; finally, generating multiple target identification codes equal to the product quantity based on the target product part number, target material number, date number, and target serial number. On the one hand, this method can accurately meet the specific identification code format requirements of different customer groups, achieving a high degree of customization and standardization, overcoming the limitation of supporting only a single format in the prior art. On the other hand, during the batch identification code generation process, it ensures that the serial number generation under different customer types, different dates, and different product part numbers is independent and globally unique, avoiding cross-context duplication and significantly improving the reliability of uniqueness assurance.

[0017] The above description is merely an overview of the technical solutions of the embodiments of this application. In order to better understand the technical means of the embodiments of this application and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of this application more obvious and understandable, specific implementation methods of this application are described below. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings of the embodiments will be briefly described below. It should be understood that the drawings described below only relate to some embodiments of this disclosure and are not intended to limit this disclosure, wherein: Figure 1 This is a flowchart illustrating a product identification code generation method provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of the structure of a product identification code generation device provided in an embodiment of this disclosure; Figure 3 This is a schematic diagram of the structure of a computer device provided in an embodiment of this disclosure.

[0019] In the accompanying diagram, markers with the same last two digits correspond to the same elements. It should be noted that the elements in the diagram are schematic and not drawn to scale. Detailed Implementation

[0020] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are also within the scope of protection of this disclosure.

[0021] Unless otherwise defined, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this subject matter pertains. It will be further understood that terms such as those defined in commonly used dictionaries shall be interpreted as having the meaning consistent with their meaning in the context of the specification and in the relevant art, and shall not be interpreted in an idealized or overly formal form unless otherwise explicitly defined herein. As used herein, the statement of “connecting” or “coupling” two or more parts together shall mean that these parts are directly joined together or joined through one or more intermediate components.

[0022] The term "embodiment" as used herein means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of the phrase "embodiment" in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0023] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists, A and B exist simultaneously, or B exists. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.

[0024] Furthermore, in all embodiments of this disclosure, terms such as “first” and “second” are used only to distinguish one component (or part of a component) from another component (or another part of a component).

[0025] In the description of this application, unless otherwise stated, "multiple" means two or more (including two), and similarly, "multiple groups" means two or more (including two groups).

[0026] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0027] Based on the problems existing in the prior art, this disclosure provides a method for generating product identification codes. Figure 1 This is a flowchart illustrating a product identification code generation method provided in an embodiment of this disclosure, such as... Figure 1 As shown, the product identification code generation method includes: S110. In response to receiving the customer type, target product part number, date information and product quantity submitted by the target object, determine the target material number corresponding to the target product part number and the date code corresponding to the date information.

[0028] Specifically, the product identification code generation method provided in this embodiment is applied to a product identification code generation system. The target object can select a customer type in the product identification code generation system and input the target product part number, date information and product quantity. The material lookup table and date information coding rules are different for different customer types. A material lookup table includes all product part numbers corresponding to a customer type and the material number corresponding to each product part number.

[0029] Table 1 is a material comparison table provided in an embodiment of this disclosure, as shown in Table 1: Table 1 Material Comparison Table

[0030] Table 1 shows that different product part numbers correspond to different material codes.

[0031] The product part number, also known as "Manufacture PN", is the initial information entered by the target object when generating the product identification code. It is used to query the corresponding material number within the product identification code generation system.

[0032] Part Number (P / N) refers to a part number in a general sense, usually a standard number used by the manufacturer to identify a specific part or component.

[0033] The date information is the date information corresponding to the generated identification code, in the format YYYY-MM-DD, where YYYY is the year, MM is the month, and DD is the day. The product quantity is the specified number of product identification codes to be generated.

[0034] In a specific implementation, in response to receiving the customer type, target product part number, date information, and product quantity submitted by the target object, the target material number corresponding to the target product part number and the date code corresponding to the date information are determined, including: determining a material lookup table and date information coding rules corresponding to the customer type based on the customer type, wherein the material lookup table includes the material number corresponding to each product part number; determining the target material number corresponding to the target product part number based on the target product part number and the material lookup table; and determining the date code corresponding to the date information based on the date information and the date information coding rules.

[0035] After the target object submits the customer type, target product part number, date information, and product quantity in the product identification code generation system, the system first retrieves the material lookup table and date information coding rules for that customer type from the database based on the customer type selected by the target object. Then, based on the target product part number submitted by the target object, the system retrieves the target material number corresponding to the target product part number from the material lookup table. Finally, based on the date information submitted by the target object, the system processes the date information submitted by the target object according to the date information coding rules to obtain the date code.

[0036] For example, if the target object selects customer type one, and the material lookup table corresponding to customer type one is shown in Table 1, and the target product part number submitted by the target object is Z6FBGH3DBPA-ME, then the target material number obtained from the material lookup table is SM3CFB2084.

[0037] For example, if the target object selects customer type one and submits date information as YYYY-MM-DD, the encoding rule for the corresponding date information according to customer type one is as follows: take the last digit of the year, map 1-9 in the month to '1'-'9', 10 to 'A', 11 to 'B', 12 to 'C', map 1-9 in the date to '1'-'9', and 10-31 to 'A'-'Z' (specific characters such as 'I', 'O', 'Q', 'U' can be excluded).

[0038] It should be noted that in the above embodiments, the material codes corresponding to the same product part number are different for different customer types, and the date information coding rules are different for different customer types.

[0039] S120. Obtain the maximum serial number that is associated with the target product part number, target material number, and date number.

[0040] In a specific implementation, obtaining the maximum serial number associated with the target product part number, target material number, and date number includes: determining a first search condition based on the target product part number, target material number, and date number; filtering stored identifiers that meet the first search condition from the database based on the first search condition, and determining the serial number included in each stored identifier, wherein the stored identifier consists of a material number, a date number, and a serial number; and determining the maximum serial number associated with the target product part number, target material number, and date number based on the serial number included in each identifier.

[0041] Specifically, based on the first retrieval condition, stored identifier codes that meet the first retrieval condition are filtered from the database, and the sequence number included in each stored identifier code is determined, including: filtering stored identifier codes that meet the first retrieval condition from the database; extracting the sequence number from the filtered stored identifier codes that meet the first retrieval condition; and decoding the sequence number to obtain the sequence number corresponding to each stored identifier code.

[0042] After determining the target material number corresponding to the target product part number and the date code corresponding to the date information in step S110, a first search condition is first constructed based on the target product part number, target material number, and date number. Then, based on the constructed first search condition, stored identifiers that meet the first search condition are filtered from the database. Since the stored identifier consists of a material number, a date number, and a sequence number, it is necessary to extract the sequence number from the filtered stored identifiers that meet the first search condition. Then, the extracted sequence number is decoded to obtain the sequence number corresponding to the stored identifier. Finally, the sequence numbers corresponding to the stored identifier are sorted to determine the maximum sequence number corresponding to the stored identifier.

[0043] S130. Based on the maximum serial number and the product quantity, determine multiple target serial numbers that are the same as the product quantity.

[0044] In a specific implementation, multiple target serial numbers with the same number of products are determined based on the maximum serial number and the product quantity. This includes: generating multiple serial numbers with the same number of products by sequentially incrementing the maximum serial number; and encoding the multiple serial numbers with the same number of products according to the encoding rules to obtain multiple target serial numbers with the same number of products.

[0045] After determining the maximum serial number stored in the database that is associated with the target product part number, target material number, and date number, the maximum serial number is used as the starting value of the counter. The value of the maximum serial number is incremented sequentially. For each integer increment of the maximum serial number, the counter count is increased by one, until the counter count is the same as the product quantity information. The counter completes the calculation, and the serial number generated based on the incrementing maximum serial number satisfies the product quantity.

[0046] After generating serial numbers based on the maximum serial number, multiple target serial numbers are obtained by encoding the generated multiple serial numbers.

[0047] S140. Generate multiple target identification codes that are the same as the product quantity, based on the target product part number, target material number, date number, and target sequence number.

[0048] After determining the target product part number and target material number in step S110, and determining the target sequence number in steps S120 and S130, multiple target identification codes with the same quantity as the product are generated based on the target product part number, target material number, date number, and target sequence number. Among the multiple target identification codes generated, the target product part number, target material number, and date number are the same, but the target sequence number is different.

[0049] In a specific example, the target customer selects customer type one in the product identification code generation system, enters the target product part number Z6FBGH3DBPA-ME, the date information is March 15, 2025, and the product quantity is 100. At this time, the product identification code generation system first queries the material comparison table according to type one, and then obtains the target material number SM3CFB2084 corresponding to the target product part number Z6FBGH3DBPA-ME from the material comparison table.

[0050] Then, the product identification code generation system queries the date information encoding rules according to type one, and encodes the date information March 15, 2025 entered by the target object based on the date information encoding rules, resulting in the date code 53F.

[0051] Furthermore, the product identification code generation system retrieves the largest serial number that is associated with the target product part number, target material number, and date number from the database based on the target product part number, target material number, and date number. The first search condition constructed by the product identification code generation system satisfies: material_number='Z6FBGH3DBPA-ME', date_code='53F', s8_code LIKE '8S'. <sm3cfb2084>%', where material_number='Z6FBGH3DBPA-ME' is the target product part number search condition, date_code='53F' is the date number search condition, and s8_code LIKE '8S' <sm3cfb2084>% represents the target material number as the search criterion.

[0052] Assuming that the database does not contain a stored identifier for the search criteria, the maximum sequence number is determined to be 0. In this case, multiple sequence numbers are generated from 1 to 100. The target sequence numbers corresponding to sequence numbers 1 to 100 are 0001 to 0034. Among them, sequence number 1 is converted to 4-bit Base32 encoding as 0001, and sequence number 100 is converted to 4-bit Base32 encoding as 0034.

[0053] Therefore, the generated target identifiers are: 8S Z6FBGH3DBPA-ME 53F SM3CFB20840001, ..., 8S Z6FBGH3DBPA-ME 53F SM3CFB2084 00034.

[0054] Base32 encoding is a standard and efficient method. Its 4-bit length can support more than one million different serial numbers, meeting the needs of batch generation, while ensuring the compactness, readability and uniqueness of the serial numbers.

[0055] As a specific feasible approach, after generating multiple target identification codes equal to the number of products, a product identification code document is generated based on the target product part number, target material number, date information, and target serial number. The product identification code document includes a product part number label, a material number label, a date label, and a serial number label.

[0056] It should be noted that the product identification code provided in this disclosure embodiment is the identification code of a specific part or component corresponding to this customer type.

[0057] The target product part number, target material number, date information and target serial number that have a relationship are stored in a document format and a product identification code document is generated, which lays the foundation for subsequent association with the product's own serial number. The product's own serial number is an identification code generated during the production of a specific part or component.

[0058] The product identification code generation method provided in this disclosure first responds to receiving customer type, target product part number, date information, and product quantity submitted by the target object, determining the target material number corresponding to the target product part number and the date code corresponding to the date information; then, it obtains the maximum serial number associated with the target product part number, target material number, and date number; and based on the maximum serial number and product quantity, determines multiple target serial numbers equal to the product quantity; finally, it generates multiple target identification codes equal to the product quantity based on the target product part number, target material number, date number, and target serial number. On the one hand, it can accurately meet the specific identification code format requirements of different customer groups, achieving a high degree of customization and standardization, overcoming the limitation of supporting only a single format in the prior art; on the other hand, during the batch identification code generation process, it ensures that the serial number generation under different customer types, different dates, and different product part numbers is independent and globally unique, avoiding cross-context duplication and significantly improving the reliability of uniqueness guarantee.

[0059] Based on the above embodiments, the method provided in this disclosure further includes: In response to receiving the imported product identification code document submitted by the target object, the system obtains the imported product part number corresponding to the product part number label and the imported material number corresponding to the material number label in the imported product identification code document; determines the imported customer type based on the imported product part number and the imported material number; filters historical product identification code documents corresponding to the imported customer type from the database, and performs duplicate data filtering on the product identification code document based on the date information corresponding to the date label and the serial number corresponding to the serial number label in the historical product identification code document and the imported product identification code document.

[0060] As one possible implementation, the product identification code generation system provided in this embodiment supports the import of product identification code documents. The imported product identification codes are product identification codes of the same customer type. When importing product identification code documents, the import customer type is first determined based on the imported product part number corresponding to the product part number label and the imported material number corresponding to the material number label in the imported product identification code document. Then, historical product identification code documents corresponding to this customer type are filtered from the database, and multiple data entries with the same date information as the date label in the imported product identification code document are filtered from the historical product identification code documents. Based on the sequence number in the historical product identification code data with the same date information and the imported product identification code data, if the sequence code of the historical product identification code data includes the sequence number in the imported product identification code data with the same date information, then the imported product identification code data is removed. This ensures that the generation of sequence numbers for different products on the same day or the same product on different days is independent of each other, thereby ensuring global uniqueness.

[0061] Based on the above embodiments, this disclosure also provides a product identification code generation device. Figure 2 This is a schematic diagram of the structure of a product identification code generation device provided in an embodiment of this disclosure, as shown below. Figure 2 As shown, the product identification code generation device includes: The information determination module 210 is used to determine the target material number corresponding to the target product part number and the date code corresponding to the date information in response to receiving the customer type, target product part number, date information and product quantity submitted by the target object; Information acquisition module 220 is used to acquire the maximum serial number that is associated with the target product part number, target material number and date number; The target sequence number determination module 230 is used to determine multiple target sequence numbers that are the same as the product quantity, based on the maximum sequence number and the product quantity; The target identification code determination module 240 is used to generate multiple target identification codes that are the same as the product quantity based on the target product part number, target material number, date number and target sequence number.

[0062] The product identification code generation device provided in this disclosure first responds to receiving customer type, target product part number, date information, and product quantity submitted by the target object, and determines the target material number corresponding to the target product part number and the date code corresponding to the date information; then, it obtains the maximum serial number that is associated with the target product part number, target material number, and date number; and determines multiple target serial numbers that are the same as the product quantity based on the maximum serial number and the product quantity; finally, it generates multiple target identification codes that are the same as the product quantity based on the target product part number, target material number, date number, and target serial number. On the one hand, it can accurately meet the specific identification code format requirements of different customer groups, achieving a high degree of customization and standardization, overcoming the limitation of supporting only a single format in the prior art; on the other hand, in the process of batch identification code generation, it ensures that the serial number generation under different customer types, different dates, and different product part numbers is independent and globally unique, avoiding cross-context duplication and significantly improving the reliability of uniqueness guarantee.

[0063] In some embodiments of this disclosure, determining the target material number corresponding to the target product part number and the date code corresponding to the date information includes: Based on the customer type, determine the material lookup table and date information coding rules corresponding to the customer type, wherein the material lookup table includes the material number corresponding to each product part number; Based on the target product part number and the material lookup table, determine the target material number corresponding to the target product part number; Based on the date information and the date information encoding rules, determine the date number corresponding to the date information.

[0064] In some embodiments of this disclosure, obtaining the maximum serial number that is associated with the target product part number, the target material number, and the date number includes: The first search criteria are determined based on the target product part number, target material number, and date number. Based on the first search criteria, stored identification codes that meet the first search criteria are filtered from the database, and the serial number included in each stored identification code is determined, wherein the stored identification code consists of a material number, a date number, and a serial number; Based on the serial numbers included in each identifier, determine the largest serial number that is associated with the target product part number, target material number, and date number.

[0065] In some embodiments of this disclosure, the step of filtering stored identifiers that satisfy the first search condition from the database and determining the sequence number included in each stored identifier includes: Based on the first search criteria, the stored identifier codes that meet the first search criteria are filtered from the database; Extract the sequence number from the stored identifiers that meet the first retrieval criteria; The sequence number is decoded to obtain the sequence number corresponding to each stored identifier code.

[0066] In some embodiments of this disclosure, determining a plurality of target serial numbers that are the same as the product quantity based on the maximum serial number and the product quantity includes: Based on the maximum serial number, generate multiple serial numbers that are the same as the number of products, incrementing sequentially. Multiple serial numbers generated incrementally, which are the same as the number of products, are encoded according to the encoding rules to obtain multiple target serial numbers that are the same as the number of products.

[0067] In some embodiments of this disclosure, the method further includes: A product identification code document is generated based on the target product part number, target material number, date information, and target serial number. The product identification code document includes a product part number label, a material number label, a date label, and a serial number label.

[0068] In some embodiments of this disclosure, the method further includes: In response to receiving the imported product identification code document submitted by the target object, the imported product part number corresponding to the product part number tag and the imported material number corresponding to the material number tag in the imported product identification code document are obtained; The type of customer to be imported is determined based on the imported product part number and the imported material number; The database is used to filter historical product identification code documents corresponding to the imported customer type. Based on the date information corresponding to the date label and the serial number corresponding to the serial number label in the historical product identification code documents and the imported product identification code documents, duplicate data is filtered out from the product identification code documents.

[0069] This application also provides a computer device, please refer to 3 for details. Figure 3 This is a basic structural block diagram of the computer device in this embodiment.

[0070] The computer device includes a memory 510 and a processor 520 that are interconnected via a system bus. It should be noted that only a computer device with components 510-520 is shown in the figure; however, it should be understood that it is not required to implement all the shown components, and more or fewer components may be implemented alternatively. Those skilled in the art will understand that the computer device described herein is a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes, but is not limited to, microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0071] Computer devices can include desktop computers, laptops, handheld computers, and cloud servers. These devices allow for human-computer interaction with users through keyboards, mice, remote controls, touchpads, or voice-activated devices.

[0072] The memory 510 includes at least one type of readable storage medium, including non-volatile memory or volatile memory, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. RAM may include static RAM or dynamic RAM. In some embodiments, the memory 510 may be an internal storage unit of a computer device, such as the hard disk or memory of the computer device. In other embodiments, the memory 510 may also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card equipped on the computer device. Of course, the memory 510 may include both internal storage units and external storage devices of the computer device. In this embodiment, the memory 510 is typically used to store the operating system and various application software installed on the computer device, such as the program code of the method described above. In addition, the memory 510 may also be used to temporarily store various types of data that have been output or will be output.

[0073] The processor 520 is typically used to perform the overall operation of a computer device. In this embodiment, the memory 510 is used to store program code or instructions, including computer operation instructions. The processor 520 is used to execute the program code or instructions stored in the memory 510 or to process data, such as program code that runs the methods described above.

[0074] In this article, the bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus system can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0075] Another embodiment of this application also provides a computer-readable medium, which may be a computer-readable signal medium or a computer-readable medium. A processor in a computer reads computer-readable program code stored in the computer-readable medium, enabling the processor to execute the functional actions specified in each step or combination of steps in the above method; and to generate means for implementing the functional actions specified in each block or combination of blocks in the block diagram.

[0076] Computer-readable media include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared memory or semiconductor systems, devices or apparatuses, or any suitable combination thereof, wherein the memory is used to store program code or instructions, the program code including computer operation instructions, and the processor is used to execute the program code or instructions of the above-described methods stored in the memory.

[0077] The definitions of memory and processor can be found in the description of the foregoing computer device embodiments, and will not be repeated here.

[0078] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0079] In the various embodiments of this application, the functional units or modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0080] If the integrated unit is implemented as 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 this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0081] Unless otherwise expressly indicated by the context, the singular form of words used herein and in the appended claims includes the plural form, and vice versa. Thus, when referring to the singular, the plural form of the corresponding term is generally included. Similarly, the terms "comprising" and "including" shall be interpreted as including rather than exclusively. Likewise, the terms "comprising" and "or" shall be interpreted as including unless such interpretation is expressly prohibited herein. Where the term "example" is used herein, particularly when it follows a set of terms, the "example" is merely exemplary and illustrative and should not be considered exclusive or extensive.

[0082] Further aspects and scope of adaptation become apparent from the description provided herein. It should be understood that various aspects of this application may be implemented individually or in combination with one or more other aspects. It should also be understood that the descriptions and specific embodiments herein are for illustrative purposes only and are not intended to limit the scope of this application.

[0083] Several embodiments of this disclosure have been described in detail above. However, it is obvious that those skilled in the art can make various modifications and variations to the embodiments of this disclosure without departing from the spirit and scope of this disclosure. The scope of protection of this disclosure is defined by the appended claims.

Claims

1. A method for generating a product identification code, characterized in that, include: In response to receiving the customer type, target product part number, date information and product quantity submitted by the target object, determine the target material number corresponding to the target product part number and the date code corresponding to the date information; Obtain the maximum serial number that is associated with the target product part number, target material number, and date number; Based on the maximum serial number and the product quantity, determine multiple target serial numbers that are the same as the product quantity; Based on the target product part number, target material number, date number, and target sequence number, generate multiple target identification codes that are the same quantity as the product.

2. The method according to claim 1, characterized in that, The determination of the target material number corresponding to the target product part number and the date code corresponding to the date information includes: Based on the customer type, determine the material lookup table and date information coding rules corresponding to the customer type, wherein the material lookup table includes the material number corresponding to each product part number; Based on the target product part number and the material lookup table, determine the target material number corresponding to the target product part number; Based on the date information and the date information encoding rules, determine the date number corresponding to the date information.

3. The method according to claim 1, characterized in that, The step of obtaining the maximum serial number that is associated with the target product part number, target material number, and date number includes: The first search criteria are determined based on the target product part number, target material number, and date number. Based on the first search criteria, stored identification codes that meet the first search criteria are filtered from the database, and the serial number included in each stored identification code is determined, wherein the stored identification code consists of a material number, a date number, and a serial number; Based on the serial numbers included in each identifier, determine the largest serial number that is associated with the target product part number, target material number, and date number.

4. The method according to claim 3, characterized in that, The step of filtering stored identifiers that meet the first search criteria from the database and determining the sequence number included in each stored identifier includes: Based on the first search criteria, the stored identifier codes that meet the first search criteria are filtered from the database; Extract the sequence number from the stored identifiers that meet the first retrieval criteria; The sequence number is decoded to obtain the sequence number corresponding to each stored identifier code.

5. The method according to claim 1, characterized in that, The step of determining multiple target serial numbers with the same quantity as the product based on the maximum serial number and the product quantity includes: Based on the maximum serial number, generate multiple serial numbers that are the same as the number of products, incrementing sequentially. Multiple serial numbers generated incrementally, which are the same as the number of products, are encoded according to the encoding rules to obtain multiple target serial numbers that are the same as the number of products.

6. The method according to claim 1, characterized in that, The method further includes: A product identification code document is generated based on the target product part number, target material number, date information, and target serial number. The product identification code document includes a product part number label, a material number label, a date label, and a serial number label.

7. The method according to claim 1, characterized in that, The method further includes: In response to receiving the imported product identification code document submitted by the target object, the imported product part number corresponding to the product part number tag and the imported material number corresponding to the material number tag in the imported product identification code document are obtained; The type of customer to be imported is determined based on the imported product part number and the imported material number; The database is used to filter historical product identification code documents corresponding to the imported customer type. Based on the date information corresponding to the date label and the serial number corresponding to the serial number label in the historical product identification code documents and the imported product identification code documents, duplicate data is filtered out from the product identification code documents.

8. A product identification code generation device, characterized in that, include: The information determination module is used to determine the target material number corresponding to the target product part number and the date code corresponding to the date information in response to receiving the customer type, target product part number, date information and product quantity submitted by the target object; The information acquisition module is used to acquire the maximum serial number that is associated with the target product part number, target material number, and date number; The target sequence number determination module is used to determine multiple target sequence numbers that are the same as the product quantity, based on the maximum sequence number and the product quantity. The target identifier code determination module is used to generate multiple target identifier codes, which are the same as the number of products, based on the target product part number, target material number, date number, and target sequence number.

9. A computer device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1 to 7.