Search

CN-121997891-A - Product identification code generation method, device, equipment and medium

CN121997891ACN 121997891 ACN121997891 ACN 121997891ACN-121997891-A

Abstract

The method, device, equipment and medium for generating the product identification code comprise the steps of determining a target material number corresponding to a target product number and a date code corresponding to the date information in response to receiving a client type submitted by a target object, the target product number, date information and the number of products, obtaining a maximum serial number with an association relationship with the target product number, the target material number and the date number, determining a plurality of target sequence numbers with the same number of products according to the maximum serial number and the number of products, and generating a plurality of target identification codes with the same number of products according to the target product number, the target material number, the date number and the number of target sequence numbers. In the batch identification code generation process, the generation of serial numbers under different customer types, different dates and different product numbers is ensured to be independent and globally unique, the repetition of cross-contexts is avoided, and the reliability of uniqueness assurance is obviously improved.

Inventors

  • ZHANG ZEYAN
  • LIU SHIZHU
  • LIU SHENG

Assignees

  • 浙江力积存储科技股份有限公司

Dates

Publication Date
20260508
Application Date
20260128

Claims (10)

  1. 1. A method of generating a product identification code, comprising: determining a target material number corresponding to a target product number and a date code corresponding to date information in response to receiving a client type, a target product number, date information and the number of products submitted by a target object; Acquiring a maximum serial number which has an association relationship with the target product material number, the target material number and the date number; determining a plurality of target sequence numbers which are the same as the number of the products according to the maximum sequence number and the number of the products; And generating a plurality of target identification codes with the same number as the products according to the target product number, the target material number, the date number and the target sequence number.
  2. 2. The method of claim 1, wherein the determining a target material number corresponding to the target product material number and a date code corresponding to the date information comprises: determining a material comparison table and a date information coding rule corresponding to the client type according to the client type, wherein the material comparison table comprises material numbers corresponding to the material numbers of all products; determining a target material number corresponding to the target product number according to the target product number and the material comparison table; And determining a date number corresponding to the date information according to the date information and the date information coding rule.
  3. 3. The method of claim 1, wherein the obtaining the maximum serial number associated with the target product number, the target material number, and the date number comprises: Determining a first search condition according to the target product number, the target material number and the date number; Screening stored identification codes meeting the first retrieval conditions from a database according to the first retrieval conditions, and determining serial numbers included in each stored identification code, wherein the stored identification codes consist of material numbers, date numbers and sequence numbers; And determining the maximum serial number which has an association relationship with the target product number, the target material number and the date number according to the serial numbers included in the identification codes.
  4. 4. A method according to claim 3, wherein said screening stored identification codes from a database that satisfy said first search criteria and determining a serial number included in each stored identification code based on said first search criteria comprises: screening stored identification codes meeting the first search conditions from a database according to the first search conditions; Extracting a sequence number from the screened stored identification codes meeting the first search condition; and decoding the sequence numbers to obtain serial numbers corresponding to the stored identification codes.
  5. 5. The method of claim 1, wherein said determining a plurality of target sequence numbers that are the same as said number of products based on said maximum serial number and said number of products comprises: Sequentially increasing and generating a plurality of serial numbers with the same number as the products according to the maximum serial numbers; And coding a plurality of serial numbers which are generated in an increasing way and have the same number as the products according to a coding rule to obtain a plurality of target serial numbers which have the same number as the products.
  6. 6. The method according to claim 1, wherein the method further comprises: and generating a product identification code document according to the target product number, the target material number, the date information and the target sequence number, wherein the product identification code document comprises a product number label, a material number label, a date label and a sequence number label.
  7. 7. The method according to claim 1, wherein the method further comprises: responding to receiving an imported product identification code document submitted by a target object, and acquiring an imported product number corresponding to a product number label in the imported product identification code document and an imported material number corresponding to a material number label; Determining an import client type according to the import product number and the import material number; And screening the historical product identification code document corresponding to the imported client type from a database, and filtering repeated data of the product identification code document according to the historical product identification code document, date information corresponding to a date label in the imported product identification code document and a serial number corresponding to a serial number label.
  8. 8. A product identification code generating apparatus, comprising: The information determining module is used for determining a target material number corresponding to the target product number and a date code corresponding to the date information in response to receiving the client type, the target product number, the date information and the product number submitted by the target object; The information acquisition module is used for acquiring the maximum serial number which has an association relationship with the target product material number, the target material number and the date number; The target sequence number determining module is used for determining a plurality of target sequence numbers which are the same as the number of the products according to the maximum sequence number and the number of the products; and the target identification code determining module is used for generating a plurality of target identification codes with the same number as the products according to the target product number, the target material number, the date number and the target sequence number.
  9. 9. A computer device, comprising: One or more processors; Storage means for storing one or more programs, When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
  10. 10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-7.

Description

Product identification code generation method, device, equipment and medium Technical Field The present invention relates to the field of information processing technologies and related technologies, and in particular, to a method, an apparatus, a device, and a medium for generating a product identification code. Background In electronic product manufacturing and supply chain management, the generation of unique identification codes (e.g., serial numbers SN, 8S codes, stock numbers, etc.) for products is a vital link for traceability, inventory management, quality control, and logistics tracking. In the prior art, the generation of unique identification codes of specific products (such as memory modules and solid state disks) is commonly carried out in a plurality of modes of adopting a predefined combination format containing date information (such as year, month and day), product key information (such as PN and factory codes) and an incremental serial number, recording the generated identification codes by using an Excel table or assisting in generation by using an Excel formula and a macro, and developing simple scripts (such as Python and Shell scripts) by partial enterprises. However, in the prior art, the identification code generation method has the problems of complex generation rule, difficult guarantee of global uniqueness, low generation efficiency, easy error, insufficient system robustness and the like. Based on the problems existing in the prior art, a method for generating a product identification code is needed. Disclosure of Invention The embodiments described herein provide a method, apparatus, device and medium for generating product identification codes, which ensure that serial number generation under different customer types, different dates and different product numbers is independent and globally unique in the process of generating batch identification codes. According to a first aspect of the present disclosure, there is provided a product identification code generation method, including: determining a target material number corresponding to a target product number and a date code corresponding to date information in response to receiving a client type, a target product number, date information and the number of products submitted by a target object; Acquiring a maximum serial number which has an association relationship with the target product material number, the target material number and the date number; determining a plurality of target sequence numbers which are the same as the number of the products according to the maximum sequence number and the number of the products; And generating a plurality of target identification codes with the same number as the products according to the target product number, the target material number, the date number and the target sequence number. In some embodiments of the present disclosure, the determining a target material number corresponding to the target product material number and a date code corresponding to the date information includes: determining a material comparison table and a date information coding rule corresponding to the client type according to the client type, wherein the material comparison table comprises material numbers corresponding to the material numbers of all products; determining a target material number corresponding to the target product number according to the target product number and the material comparison table; And determining a date number corresponding to the date information according to the date information and the date information coding rule. In some embodiments of the present disclosure, the obtaining the maximum serial number associated with the target product number, the target material number, and the date number includes: Determining a first search condition according to the target product number, the target material number and the date number; Screening stored identification codes meeting the first retrieval conditions from a database according to the first retrieval conditions, and determining serial numbers included in each stored identification code, wherein the stored identification codes consist of material numbers, date numbers and sequence numbers; And determining the maximum serial number which has an association relationship with the target product number, the target material number and the date number according to the serial numbers included in the identification codes. In some embodiments of the present disclosure, the screening the stored identification codes satisfying the first search condition from the database according to the first search condition, and determining the serial number included in each stored identification code includes: screening stored identification codes meeting the first search conditions from a database according to the first search conditions; Extracting a sequence number from the screened stored identification codes meeting the first search condition; an