Identification code generation method and device, equipment and medium

By automating the generation of product serial numbers, inner box numbers, and outer carton numbers, the problems of time consumption and high error rates in existing technologies have been solved, achieving efficient and accurate identification code generation and full-process traceability.

CN121997892APending 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 technologies rely on manual input and simple scripts when generating product serial numbers, inner box numbers, and outer carton numbers, which is time-consuming, error-prone, lacks global uniqueness, and is difficult to handle complex related logic.

Method used

A method for generating identification codes is provided. By receiving date codes, product categories, and quantity information, the method automatically determines the coding rules for serial numbers, inner box numbers, and outer carton numbers, queries historical serial numbers, and generates target serial numbers, inner box numbers, and outer carton numbers according to the coding rules, thereby achieving automated batch generation.

Benefits of technology

It improves generation speed, eliminates manual calculation errors, ensures the accuracy of identification codes, eradicates problems such as broken, duplicate, and formatted serial numbers, and supports full-process traceability and inventory management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121997892A_ABST
    Figure CN121997892A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an identification code generation method and device, equipment and a medium. The identification code generation method comprises the steps of determining a serial number coding rule, an inner box number coding rule and an outer box number coding rule of a to-be-identified product according to product category information; determining a target historical serial number, a target historical inner box number and a target historical outer box number which are associated with the date code information; determining a target serial number according to a serial number of a target bit in the target historical serial number, a serial number coding rule, date code information and product quantity information; determining an inner box number according to a relationship between a serial number of a target bit in the target serial number and first preset information, the date code information, an inner box number coding rule and a target historical inner box number; and determining the outer box number according to the relationship between the serial number of the target bit in the target serial number and the second preset information, the date code information, the outer box number coding rule and the target historical outer box number. And the generation speed of the serial number, the inner box number and the outer box number of the product is 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 method, apparatus, device, and medium for generating identification codes. Background Technology

[0002] In modern electronic product manufacturing and supply chain management, generating unique identification codes (such as product serial number SN, inner box number, and outer box number) for products, inner boxes (middle packaging), and outer cartons (large packaging) is a crucial step. These identification codes are used for product traceability, inventory management, quality control, and logistics tracking.

[0003] Currently, many manufacturing companies still rely on manual input, copying and pasting from Excel spreadsheets, or simple scripting tools to generate these identification codes. For example, with manual input / Excel export, operators need to manually calculate or search for the corresponding serial number in Excel based on information such as product part number, date code (DC), and batch number, and then combine them into a complete serial number, inner box number, or outer carton number. This process is time-consuming and error-prone, especially when production volume is high and product types are numerous. Some companies may have developed basic scripts to generate serial numbers, but these scripts often lack strict guarantees of global uniqueness or struggle to handle complex relationship logic (such as independent scrolling of serial numbers under different date codes, different generation rules for different product categories, etc.). In existing technologies, the automated generation and verification of these relationships may not be perfect.

[0004] Given the problems with existing technologies, there is an urgent need for a new method for generating identification codes. Summary of the Invention

[0005] The embodiments described herein provide a method, apparatus, device, and medium for generating identification codes, which improves the generation speed of product serial numbers, inner box numbers, and outer box numbers.

[0006] Firstly, based on the content of this disclosure, a method for generating an identifier is provided, including: In response to receiving date code information, product category information, and product quantity information of the product to be identified submitted by the target object, the serial number coding rule, inner box number coding rule, and outer carton number coding rule of the product to be identified are determined according to the product category information. Determine the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information; Based on the target serial number, serial number encoding rules, date code information and product quantity information of the target historical serial number, determine the target serial number of each product to be identified; Based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number, the inner box number of each product to be identified is determined; Based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box number, the outer box number of each product to be identified is determined.

[0007] In some embodiments of this disclosure, determining the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information includes: Based on the date code information, retrieve from the database a historical serial number that matches the code information in a preset position of the date code information; Based on the serial number of the target bit in each of the historical serial numbers, select the historical serial number with the largest serial number as the target historical serial number; Obtain the target historical inner box number and the target historical outer box number corresponding to the target historical serial number.

[0008] In some embodiments of this disclosure, determining the target serial number of each product to be identified based on the target bit's serial number, serial number encoding rules, date code information, and product quantity information in the target historical serial number includes: Based on the date code information, determine the year information, week information, and factory code information; Starting with the serial number of the target position in the target historical serial number, multiple target serial numbers with the same characteristics as the product quantity information are generated sequentially and incremented. Based on the serial number encoding rules, year information, week information, factory code information, and multiple target serial numbers, the target serial number of each product to be identified is generated.

[0009] In some embodiments of this disclosure, determining the inner box number of each product to be identified based on the relationship between the serial number of the target bit in the target serial number and the first preset information, date code information, inner box number encoding rules, and target historical inner box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the first preset information, the first inner box serial number of the target position in the target historical inner box number is obtained, and the inner box number of each product to be identified is determined according to the first inner box serial number of the target position in the target historical inner box number, the date code information and the inner box number encoding rules. If the serial number of the target position in the first target sequence number is less than or equal to the first preset information, and the serial number of the target position in the second target sequence number is greater than the first preset information, the inner box number corresponding to each first target sequence number is determined according to the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number. Furthermore, the inner box number corresponding to each second target sequence number is determined according to the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number.

[0010] In some embodiments of this disclosure, determining the inner box number corresponding to each second target sequence number based on the quotient information of the maximum serial number of the target bit in each second target sequence number and the first preset information, the first inner box serial number of the target bit in the target historical inner box number, the date code information, and the inner box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target bit in each second target sequence number and the first preset information, as well as the first inner box sequence number of the target bit in the target historical inner box number, the second inner box sequence number corresponding to each second target sequence number is determined. Based on the second inner box serial number, date code information, and inner box number encoding rules corresponding to each second target serial number, determine the inner box number corresponding to each second target serial number.

[0011] In some embodiments of this disclosure, determining the outer box number of each product to be identified based on the relationship between the serial number of the target bit in the target serial number and the second preset information, date code information, outer box number encoding rules, and target historical outer box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the second preset information, the first outer box serial number of the target position in the target historical outer box number is obtained, and the outer box number of each of the products to be identified is determined according to the first outer box serial number of the target position in the target historical outer box number, the date code information and the outer box number encoding rules. If the serial number of the target position in the third target serial number is less than or equal to the second preset information, and the serial number of the target position in the fourth target serial number is greater than the second preset information, the outer box number corresponding to each third target serial number is determined according to the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number. Furthermore, the outer box number corresponding to each fourth target serial number is determined according to the quotient information of the maximum serial number of the target position in each fourth target serial number and the second preset information, the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number.

[0012] In some embodiments of this disclosure, determining the outer box number corresponding to each fourth target sequence number based on the quotient information of the maximum serial number of the target bit in each fourth target sequence number and the second preset information, the first outer box serial number of the target bit in the target historical outer box number, the date code information, and the outer box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target position in each fourth target sequence number and the second preset information, as well as the first outer box sequence number of the target position in the target historical outer box number, the second outer box sequence number corresponding to each fourth target sequence number is determined. Based on the second outer box serial number, date code information, and outer box number encoding rules corresponding to each fourth target serial number, determine the outer box number corresponding to each fourth target serial number.

[0013] Secondly, according to the present disclosure, an identification code generation apparatus is provided, comprising: The coding rule determination module is used to respond to receiving date code information, product category information and product quantity information of the product to be identified submitted by the target object, and to determine the serial number coding rule, inner box number coding rule and outer carton number coding rule of the product to be identified based on the product category information. The target historical information determination module is used to determine the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information; The target serial number generation module is used to determine the target serial number of each product to be identified based on the serial number of the target bit, the serial number encoding rule, the date code information and the product quantity information in the target historical serial number; The inner box number generation module is used to determine the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number; The outer box number generation module is used to determine the outer box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box 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 identification code generation method, apparatus, device, and medium provided in this disclosure first respond to receiving date code information, product category information, and product quantity information of the product to be identified submitted by the target object. Based on the product category information, the serial number encoding rule, inner box number encoding rule, and outer carton number encoding rule for the product to be identified are determined. Then, a target historical serial number, target historical inner box number, and target historical outer carton number associated with the date code information are determined. Based on the serial number of the target position in the target historical serial number, the serial number encoding rule, the date code information, and the product quantity information, the target serial number of each product to be identified is determined. Finally, based on the relationship between the serial number of the target position in the target serial number and first preset information, the date code information, the inner box number encoding rule, and the target historical inner box number, the inner box number of each product to be identified is determined. Based on the relationship between the serial number of the target position in the target serial number and second preset information, the date code information, the outer carton number encoding rule, and the target historical outer carton number, the outer carton number of each product to be identified is determined. It enables automated batch generation of serial numbers, inner box numbers, and outer carton numbers for products to be identified, improving the generation speed of these numbers. The automated process eliminates errors caused by manual calculation and input, ensuring the accuracy of the generated identification codes, inner box numbers, and outer carton numbers. Furthermore, it eradicates problems such as broken serial numbers, duplicates, and format errors.

[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 an identification code generation method provided in an embodiment of this disclosure; Figure 2 This is a schematic diagram of the structure of an 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 an identifier code. Figure 1 This is a flowchart illustrating an identification code generation method provided in an embodiment of this disclosure, as shown below. Figure 1 As shown, the identification code generation method includes: S110. In response to receiving the date code information, product category information and product quantity information of the product to be identified submitted by the target object, determine the serial number coding rule, inner box number coding rule and outer carton number coding rule of the product to be identified based on the product category information.

[0028] Specifically, the identification code generation method provided in this embodiment is applied to an identification code generation system. The target object can input the date code information, product category information, and product quantity information of the product to be identified corresponding to the date code information and product category information into the identification code generation system.

[0029] Specifically, the date code information is usually an 8-digit number (YYWWXXXX) used to represent the production date (year, week) and related factory code of the product to be identified. Here, YY represents the production year information, WW represents the production week information, and XXXX contains factory code information and serial number information.

[0030] Specifically, the product categories include DRAM modules and solid state drives (SSDs).

[0031] Specifically, the product quantity information represents the quantity of products generated in a batch. The production year, production week, and factory code information in the date code information of the products generated in this batch are the same.

[0032] After obtaining the date code information, product category information, and product quantity information of the product to be identified submitted by the target object, the serial number coding rules, inner box number coding rules, and outer carton number coding rules of the product to be identified are determined based on the product category information.

[0033] For example, if the product category information is memory module, the product serial number supports both 12-digit and 18-digit serial numbers. If the product category information is solid-state drive, the product serial number only supports 18-digit serial numbers. The format of the 12-digit serial number is: [Factory code information (5th digit of date code information)] + [Year information mapping letter (1st-2nd digit of date code information)] + [Week information (3rd-4th digit of date code information)] + [Product category information (DRAMModule=0, SSD=1)] + [The serial number corresponding to each product to be identified]. The format of the 18-digit serial number is: [Company code information (preset value, e.g., 07EF)] + [Year information (1st-2nd digit of date code information)] + [Factory code information (5th digit of date code information, padded with zeros in front)] + [Week information (3rd-4th digit of date code information)] + [The serial number corresponding to each product to be identified].

[0034] The inner box number encoding rule is: [Factory code information (5th digit of date code information)] + [Year information mapping letter (letter corresponding to the 1st and 2nd digits of date code information)] + [Week information (3rd and 4th digits of date code information)] + [Category information 'C'] + [Inner box serial number]. The outer carton number encoding rule is: [Factory code information (5th digit of date code information)] + [Year information mapping letter (letter corresponding to the 1st and 2nd digits of date code information)] + [Week information (3rd and 4th digits of date code information)] + [Category information 'D'] + [Outer carton serial number].

[0035] It should be noted that the coding rules for the inner box number and the outer box number are preset, and the number of serial numbers sharing one inner box number and the number of serial numbers sharing one outer box number are also preset.

[0036] S120. Determine the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information.

[0037] In a specific implementation, determining the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information includes: querying the database for historical serial numbers that are the same as the code information of the preset position of the date code information based on the date code information; selecting the historical serial number with the largest serial number as the target historical serial number based on the serial number of the target position in each historical serial number; and obtaining the target historical inner box number and target historical outer box number corresponding to the target historical serial number.

[0038] The preset position of the date code information refers to the first to fifth digits from left to right in the date code information. The code information of the preset position of the date code information refers to the information corresponding to the first to fifth digits from left to right in the date code information.

[0039] In each historical serial number, the target bit refers to the first to seventh bits from right to left in the historical serial number, and the serial number of the target bit in each historical serial number refers to the information corresponding to the first to seventh bits from right to left in each historical serial number.

[0040] Specifically, the identification code generation system stores generated historical serial numbers, as well as information such as historical inner box numbers, historical outer box numbers, product part numbers, batch numbers, internal control codes, material descriptions, and factory part numbers corresponding to each historical serial number. In step S110, after the target object inputs date code information, the system first filters out historical serial numbers from the database that are the same as the preset code information of the date code information based on the date code information; then, it obtains the serial number of the target position in each historical serial number found, and selects the historical serial number corresponding to the largest serial number as the target historical serial number based on the serial number of the target position in each historical serial number; finally, it retrieves the stored target historical inner box number and target historical outer box number from the target historical serial number column in the database.

[0041] S130. Determine the target serial number for each product to be identified based on the target serial number, serial number encoding rules, date code information, and product quantity information in the target historical serial number.

[0042] In a specific implementation, the target serial number of each product to be identified is determined based on the target position's serial number, serial number encoding rules, date code information, and product quantity information in the target historical serial number. This includes: determining the year information, week information, and factory code information based on the date code information; generating multiple target serial numbers that are identical to the product quantity information, starting from the target position's serial number in the target historical serial number; and generating the target serial number of each product to be identified based on the serial number encoding rules, year information, week information, factory code information, and multiple target serial numbers.

[0043] Specifically, the target code information is first parsed to obtain the year, week, and factory code information from the date code information. For example, if the date code information of the product to be identified submitted by the target object in the identification code generation system is 25152009, then the parsed year information is 25 (the letter mapped to the year information 25 is P), the parsed week information is 15, and the parsed factory code information is 2.

[0044] After parsing out the year, week, and factory code information from the date code information, multiple target sequence serial numbers are generated sequentially, starting from the target position's serial number in the target historical sequence number, and are identical to the product quantity information. For example, if the product quantity information submitted by the target object in step S110 is 30, and the target position's serial number in the target historical sequence number that is related to the date code information found in step S120 is 0000010, then the multiple target sequence serial numbers generated are 0000011-0000040.

[0045] After determining the year information, week information, factory code information, and multiple target serial numbers, multiple target serial numbers with the same product quantity information as the product to be identified are generated according to the serial number coding rules of the product to be identified.

[0046] In a specific example, if the serial number encoding rule of the product to be identified determined in step S110 is the encoding rule corresponding to the 12 serial numbers, then the target serial numbers of each product to be identified generated satisfy: 2P1500000011-2P1500000040.

[0047] Another specific example is that if the serial number encoding rule of the product to be identified determined in step S110 is the encoding rule corresponding to the 18 serial numbers, then the target serial numbers of each product to be identified generated satisfy: 07EF25021500000011-07EF25021500000040.

[0048] It should be noted that the above embodiment exemplifies finding a target historical serial number associated with date code information in the database. In other possible implementations, if no target historical serial number associated with date code information is found in the database, the target serial number of each product to be identified is generated starting from 0000000 and incrementing sequentially to generate multiple target serial numbers that are the same as the product quantity information.

[0049] S140. Determine the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number.

[0050] After determining the target serial number of each product to be identified in step S130, it is necessary to generate the inner box number and outer carton number for the products for which the serial number is generated.

[0051] The inner box number generation logic is as follows: When the serial number of the target position in each target serial number is less than or equal to the first preset information, the first inner box serial number of the target position in the target historical inner box number is obtained, and the inner box number of each product to be identified is determined according to the first inner box serial number of the target position in the target historical inner box number, the date code information, and the inner box number encoding rules; when there is a situation where the serial number of the target position in the first target serial number is less than or equal to the first preset information, and the serial number of the target position in the second target serial number is greater than the first preset information, the inner box number corresponding to each first target serial number is determined according to the first inner box serial number of the target position in the target historical inner box number, the date code information, and the inner box number encoding rules; and the inner box number corresponding to each second target serial number is determined according to the quotient information of the maximum serial number of the target position in each second target serial number and the first preset information, the first inner box serial number of the target position in the target historical inner box number, the date code information, and the inner box number encoding rules.

[0052] Specifically, the inner box number corresponding to each second target sequence number is determined based on the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, the first inner box serial number of the target position in the target historical inner box number, the date code information, and the inner box number encoding rules. This includes: determining the second inner box serial number corresponding to each second target sequence number based on the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, as well as the first inner box serial number of the target position in the target historical inner box number; and determining the inner box number corresponding to each second target sequence number based on the second inner box serial number corresponding to each second target sequence number, the date code information, and the inner box number encoding rules.

[0053] Specifically, the first preset information is related to how many serial numbers share one inner box number. If 50 serial numbers share one inner box number, then the first preset information is 50. The second preset information is related to how many serial numbers share one inner box outer box number. If 100 serial numbers share one outer box inner box number, then the second preset information is 100.

[0054] It should be noted that the target position in the target historical inner box number refers to the first to seventh digits from right to left in the target historical inner box number, and the first inner box serial number of the target position in the target historical inner box number is the information corresponding to the first to seventh digits from right to left in the target historical inner box number.

[0055] For a specific example, if the generated target serial number of the product to be identified satisfies: 2P1500000011-2P1500000040, then the serial number of the target bit in each target serial number is less than or equal to the first preset information 50. In this case, the generated target serial number 2P1500000011-2P1500000040 of the product to be identified shares the same inner box serial number with the target historical inner box number corresponding to the target historical serial number. If the target historical inner box number corresponding to the target historical serial number 2P1500000010 is 2P15C0000001, and the first inner box serial number of the target bit in the target historical inner box number is 0000001, then the generated inner box number of each product to be identified is: 2P15C0000001.

[0056] Another specific example: if the generated target serial number of the product to be identified satisfies: 2P1500000011-2P1500000070, that is, if the serial number of the target position in the first target serial number 2P1500000011-2P1500000050 is less than or equal to the first preset information 50, and the serial number of the target position in the second target serial number 2P1500000051-2P1500000070 is greater than the first preset information 50, then the first target serial number 2P1500000011-2P1500000050 shares the same inner box serial number as the target historical inner box number corresponding to the target historical serial number. If the target historical inner box number corresponding to the target historical serial number 2P1500000010 is... If the first target serial number is 2P15C0000001, then the inner box number of the product to be identified corresponding to the first target serial number 2P1500000011-2P1500000050 is 2P15C0000001; the maximum serial number of the target position in the second target serial number 2P1500000051-2P1500000070 is 0000070, the quotient of the maximum serial number and the first preset information is 1, the first inner box serial number of the target position in the target historical inner box number is 0000001, then the second inner box serial number corresponding to each second target serial number is 0000002, at this time the inner box number of the product to be identified corresponding to the second target serial number 2P1500000051-2P1500000070 is 2P15C0000002.

[0057] In another specific example, if the generated target serial numbers of the product to be identified satisfy: 2P1500000011-2P1500000120, that is, the serial numbers of the target bits in the first target serial numbers 2P1500000011-2P1500000050 are all less than or equal to the first preset information 50, and the serial numbers of the target bits in the second target serial numbers 2P1500000051-2P1500000120 are all greater than the first preset information 50, then the first target serial numbers 2P1500000011-2P1500000050 are considered as such. The target historical inner box number shares a common inner box serial number with the target historical serial number. If the target historical inner box number corresponding to the target historical serial number 2P1500000010 is 2P15C0000001, then the inner box number of the product to be identified corresponding to the first target serial number 2P1500000011-2P1500000050 is 2P15C0000001; the maximum serial number of the target position in the second target serial number 2P1500000051-2P1500000120 is 0000120, and the quotient information between the maximum serial number and the first preset information is... 2. At this point, the second target sequence number 2P1500000051-2P1500000070 first needs to be divided into the first second target sequence number 2P1500000051-2P1500000100 and the second second target sequence number 2P1500000101-2P1500000120. Based on the number of intervals divided into the second target sequence number and the first inner box serial number of the target position in the target historical inner box number, the second inner box serial number corresponding to each second target sequence number is determined. Then, the first second target sequence number 2P1500000051-2P150000070... The second inner box serial number corresponding to 000100 is 0000002. The second inner box serial number corresponding to the second second target serial number 2P1500000101-2P1500000120 is 0000003. At this time, the inner box number of the product to be identified corresponding to the first second target serial number 2P1500000051-2P1500000100 is 2P15C0000002, and the inner box number of the product to be identified corresponding to the second second target serial number 2P1500000101-2P1500000120 is 2P15C0000003.

[0058] S150. Determine the outer box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box number.

[0059] In a specific implementation, the outer box number of each product to be identified is determined based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box numbers. This includes: when the serial number of the target position in each target serial number is less than or equal to the second preset information, obtaining the first outer box serial number of the target position in the target historical outer box number, and determining the outer box number of each product to be identified based on the first outer box serial number of the target position in the target historical outer box number, the date code information, and the outer box number encoding rules; and when a third target serial number exists... The serial number of the target position is less than or equal to the second preset information, and the serial number of the target position in the fourth target sequence number is greater than the second preset information. Based on the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number, the outer box number corresponding to each third target sequence number is determined. Based on the quotient information of the maximum serial number of the target position in each fourth target sequence number and the second preset information, the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number, the outer box number corresponding to each fourth target sequence number is determined.

[0060] It should be noted that the target position in the target historical outer box number refers to the first to seventh digits from right to left in the target historical inner box outer box number, and the first outer box serial number of the target position in the target historical outer box number is the information corresponding to the first to seventh digits from right to left in the target historical outer box number.

[0061] For example, if the generated target serial number of the product to be identified satisfies: 2P1500000011-2P1500000040, then the serial number of the target position in each target serial number is less than or equal to the second preset information 100. In this case, the target serial number 2P1500000011-2P1500000040 of the generated product to be identified shares the same outer box serial number with the target historical outer box number corresponding to the target historical serial number. If the target historical outer box number corresponding to the target historical serial number 2P1500000010 is 2P15D0000001, and the first outer box serial number of the target position in the target historical outer box number is 0000001, then the outer box number of each product to be identified is 2P15D0000001.

[0062] Another specific example: if the generated target serial number of the product to be identified satisfies: 2P1500000011-2P1500000120, that is, if the serial number of the target part in the third target serial number 2P1500000011-2P1500000100 is less than or equal to the second preset information 100, and the serial number of the target part in the fourth target serial number 2P1500000101-2P1500000120 is greater than the second preset information 100, then the third target serial number 2P1500000011-2P1500000100 shares the same outer box serial number as the target historical outer box number corresponding to the target historical serial number. If the target historical outer box number corresponding to the target historical serial number 2P1500000010... If the target serial number is 2P15D0000001, then the outer box number of the product to be identified corresponding to the third target serial number 2P1500000011-2P1500000100 is 2P15D0000001; the maximum serial number of the target position in the fourth target serial number 2P1500000101-2P1500000120 is 0000120, the quotient of the maximum serial number and the second preset information is 1, the first outer box serial number of the target position in the target historical outer box number is 0000001, then the second outer box serial number corresponding to each fourth target serial number is 0000002, at this time the outer box number of the product to be identified corresponding to the fourth target serial number 2P1500000101-2P1500000120 is 2P15D0000002.

[0063] In another specific example, if the generated target serial numbers of the product to be identified satisfy: 2P1500000011-2P1500000220, that is, if the serial numbers of the target bits in the third target serial numbers 2P1500000011-2P1500000100 are all less than or equal to the second preset information 100, and the serial numbers of the target bits in the fourth target serial numbers 2P1500000101-2P1500000220 are all greater than the second preset information 100, then the third target serial numbers 2P1500000011-2P15000001... The target historical outer box number corresponding to the target historical serial number 00 shares the same outer box serial number. If the target historical outer box number corresponding to the target historical serial number 2P1500000010 is 2P15D0000001, then the outer box number of the product to be identified corresponding to the third target serial number 2P1500000011-2P1500000100 is 2P15D0000001; the maximum serial number of the target position in the fourth target serial number 2P1500000051-2P1500000120 is 0000120, and the quotient information of the maximum serial number and the first preset information. If the value is 2, then firstly, the second target sequence number 2P1500000101-2P1500000220 needs to be divided into the first fourth target sequence number 2P1500000101-2P1500000200 and the second fourth target sequence number 2P1500000201-2P1500000220. Based on the number of intervals divided into the fourth target sequence number and the first outer box serial number of the target position in the target historical outer box number, the second outer box serial number corresponding to each fourth target sequence number is determined. Then, the first fourth target sequence number 2P1500000101-2P150 The second outer box serial number corresponding to 0000200 is 0000002, and the second inner box serial number corresponding to the second fourth target serial number 2P1500000201-2P1500000220 is 0000003. At this time, the outer box number of the product to be identified corresponding to the first fourth target serial number 2P1500000101-2P1500000200 is 2P15D0000002, and the outer box number of the product to be identified corresponding to the second fourth target serial number 2P1500000201-2P1500000220 is 2P15D0000003.

[0064] The identification code generation method provided in this embodiment first responds to receiving date code information, product category information, and product quantity information of the product to be identified submitted by the target object. Based on the product category information, it determines the serial number encoding rules, inner box number encoding rules, and outer carton number encoding rules for the product to be identified. Then, it determines the target historical serial number, target historical inner box number, and target historical outer carton number that are associated with the date code information. Based on the serial number of the target position in the target historical serial number, the serial number encoding rules, the date code information, and the product quantity information, it determines the target serial number of each product to be identified. Finally, based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number, it determines the inner box number of each product to be identified. Based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer carton number encoding rules, and the target historical outer carton number, it determines the outer carton number of each product to be identified. It enables automated batch generation of serial numbers, inner box numbers, and outer carton numbers for products to be identified, improving the generation speed of these numbers. The automated process eliminates errors caused by manual calculation and input, ensuring the accuracy of the generated identification codes, inner box numbers, and outer carton numbers. Furthermore, it eradicates problems such as broken serial numbers, duplicates, and format errors.

[0065] It should be noted that, in addition to the date code information, product category information, and product quantity information of the products to be identified, the target object in the identification code generation system also includes information such as product part number, batch number, internal control code, material description, and factory part number. After determining the serial number, inner box number, and outer carton number of each product to be identified in the above steps, an Excel document is generated based on the serial number, inner box number, outer carton number, product part number, batch number, internal control code, material description, factory part number, date code information, product category information, and product quantity information of each product to be identified, and stored in the database. This facilitates subsequent data analysis, report generation, and ERP / MES system integration, and makes full-process traceability from raw materials to finished products possible, improving the accuracy and efficiency of inventory management.

[0066] Based on the above embodiments, this disclosure also provides an identification code generation device. Figure 2 This is a schematic diagram of the structure of an identification code generation device provided in an embodiment of this disclosure, as shown below. Figure 2 As shown, the identification code generation device includes: The coding rule determination module 210 is used to respond to receiving date code information, product category information and product quantity information of the product to be identified submitted by the target object, and determine the serial number coding rule, inner box number coding rule and outer carton number coding rule of the product to be identified according to the product category information. The target history information determination module 220 is used to determine the target history serial number, target history inner box number and target history outer box number that are associated with the date code information; The target serial number generation module 230 is used to determine the target serial number of each product to be identified based on the serial number of the target position, the serial number encoding rule, the date code information and the product quantity information in the target historical serial number. The inner box number generation module 240 is used to determine the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules and the target historical inner box number; The outer box number generation module 250 is used to determine the outer box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box number.

[0067] The identification code generation device provided in this embodiment first responds to receiving date code information, product category information, and product quantity information of the product to be identified submitted by the target object. It then determines the serial number encoding rules, inner box number encoding rules, and outer carton number encoding rules for the product to be identified based on the product category information. Next, it determines the target historical serial number, target historical inner box number, and target historical outer carton number that are associated with the date code information. Finally, it determines the target serial number of each product to be identified based on the serial number of the target position in the target historical serial number, the serial number encoding rules, the date code information, and the product quantity information. Finally, it determines the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number. And it determines the outer carton number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer carton number encoding rules, and the target historical outer carton number. It enables automated batch generation of serial numbers, inner box numbers, and outer carton numbers for products to be identified, improving the generation speed of these numbers. The automated process eliminates errors caused by manual calculation and input, ensuring the accuracy of the generated identification codes, inner box numbers, and outer carton numbers. Furthermore, it eradicates problems such as broken serial numbers, duplicates, and format errors.

[0068] In some embodiments of this disclosure, determining the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information includes: Based on the date code information, retrieve from the database a historical serial number that matches the code information in a preset position of the date code information; Based on the serial number of the target bit in each of the historical serial numbers, select the historical serial number with the largest serial number as the target historical serial number; Obtain the target historical inner box number and the target historical outer box number corresponding to the target historical serial number.

[0069] In some embodiments of this disclosure, determining the target serial number of each product to be identified based on the target bit's serial number, serial number encoding rules, date code information, and product quantity information in the target historical serial number includes: Based on the date code information, determine the year information, week information, and factory code information; Starting with the serial number of the target position in the target historical serial number, multiple target serial numbers with the same characteristics as the product quantity information are generated sequentially and incremented. Based on the serial number encoding rules, year information, week information, factory code information, and multiple target serial numbers, the target serial number of each product to be identified is generated.

[0070] In some embodiments of this disclosure, determining the inner box number of each product to be identified based on the relationship between the serial number of the target bit in the target serial number and the first preset information, date code information, inner box number encoding rules, and target historical inner box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the first preset information, the first inner box serial number of the target position in the target historical inner box number is obtained, and the inner box number of each product to be identified is determined according to the first inner box serial number of the target position in the target historical inner box number, the date code information and the inner box number encoding rules. If the serial number of the target position in the first target sequence number is less than or equal to the first preset information, and the serial number of the target position in the second target sequence number is greater than the first preset information, the inner box number corresponding to each first target sequence number is determined according to the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number. Furthermore, the inner box number corresponding to each second target sequence number is determined according to the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number.

[0071] In some embodiments of this disclosure, determining the inner box number corresponding to each second target sequence number based on the quotient information of the maximum serial number of the target bit in each second target sequence number and the first preset information, the first inner box serial number of the target bit in the target historical inner box number, the date code information, and the inner box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target bit in each second target sequence number and the first preset information, as well as the first inner box sequence number of the target bit in the target historical inner box number, the second inner box sequence number corresponding to each second target sequence number is determined. Based on the second inner box serial number, date code information, and inner box number encoding rules corresponding to each second target serial number, determine the inner box number corresponding to each second target serial number.

[0072] In some embodiments of this disclosure, determining the outer box number of each product to be identified based on the relationship between the serial number of the target bit in the target serial number and the second preset information, date code information, outer box number encoding rules, and target historical outer box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the second preset information, the first outer box serial number of the target position in the target historical outer box number is obtained, and the outer box number of each of the products to be identified is determined according to the first outer box serial number of the target position in the target historical outer box number, the date code information and the outer box number encoding rules. If the serial number of the target position in the third target serial number is less than or equal to the second preset information, and the serial number of the target position in the fourth target serial number is greater than the second preset information, the outer box number corresponding to each third target serial number is determined according to the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number. Furthermore, the outer box number corresponding to each fourth target serial number is determined according to the quotient information of the maximum serial number of the target position in each fourth target serial number and the second preset information, the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number.

[0073] In some embodiments of this disclosure, determining the outer box number corresponding to each fourth target sequence number based on the quotient information of the maximum serial number of the target bit in each fourth target sequence number and the second preset information, the first outer box serial number of the target bit in the target historical outer box number, the date code information, and the outer box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target position in each fourth target sequence number and the second preset information, as well as the first outer box sequence number of the target position in the target historical outer box number, the second outer box sequence number corresponding to each fourth target sequence number is determined. Based on the second outer box serial number, date code information, and outer box number encoding rules corresponding to each fourth target serial number, determine the outer box number corresponding to each fourth target serial number.

[0074] 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.

[0075] 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.

[0076] 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.

[0077] 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.

[0078] 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.

[0079] 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.

[0080] 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.

[0081] 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.

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

[0083] 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.

[0084] 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.

[0085] 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.

[0086] 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 “including” 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.

[0087] 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.

[0088] 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 an identifier code, characterized in that, include: In response to receiving date code information, product category information, and product quantity information of the product to be identified submitted by the target object, the serial number coding rule, inner box number coding rule, and outer carton number coding rule of the product to be identified are determined according to the product category information. Determine the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information; Based on the target serial number, serial number encoding rules, date code information and product quantity information of the target historical serial number, determine the target serial number of each product to be identified; Based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number, the inner box number of each product to be identified is determined; Based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box number, the outer box number of each product to be identified is determined.

2. The method according to claim 1, characterized in that, The determination of the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information includes: Based on the date code information, retrieve from the database a historical serial number that matches the code information in a preset position of the date code information; Based on the serial number of the target bit in each of the historical serial numbers, select the historical serial number with the largest serial number as the target historical serial number; Obtain the target historical inner box number and the target historical outer box number corresponding to the target historical serial number.

3. The method according to claim 1, characterized in that, The step of determining the target serial number of each product to be identified based on the target position's serial number, serial number encoding rules, date code information, and product quantity information in the target historical serial number includes: Based on the date code information, determine the year information, week information, and factory code information; Starting with the serial number of the target position in the target historical serial number, multiple target serial numbers with the same characteristics as the product quantity information are generated sequentially and incremented. Based on the serial number encoding rules, year information, week information, factory code information, and multiple target serial numbers, the target serial number of each product to be identified is generated.

4. The method according to claim 1, characterized in that, The step of determining the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the first preset information, the first inner box serial number of the target position in the target historical inner box number is obtained, and the inner box number of each product to be identified is determined according to the first inner box serial number of the target position in the target historical inner box number, the date code information and the inner box number encoding rules. If the serial number of the target position in the first target sequence number is less than or equal to the first preset information, and the serial number of the target position in the second target sequence number is greater than the first preset information, the inner box number corresponding to each first target sequence number is determined according to the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number. Furthermore, the inner box number corresponding to each second target sequence number is determined according to the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, the first inner box serial number, date code information and inner box number encoding rules of the target position in the target historical inner box number.

5. The method according to claim 4, characterized in that, The step of determining the inner box number corresponding to each second target sequence number based on the quotient information of the maximum serial number of the target position in each second target sequence number and the first preset information, the first inner box serial number of the target position in the target historical inner box number, the date code information, and the inner box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target bit in each second target sequence number and the first preset information, as well as the first inner box sequence number of the target bit in the target historical inner box number, the second inner box sequence number corresponding to each second target sequence number is determined. Based on the second inner box serial number, date code information, and inner box number encoding rules corresponding to each second target serial number, determine the inner box number corresponding to each second target serial number.

6. The method according to claim 1, characterized in that, The step of determining the outer box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box numbers includes: When the serial number of the target position in each of the target serial numbers is less than or equal to the second preset information, the first outer box serial number of the target position in the target historical outer box number is obtained, and the outer box number of each of the products to be identified is determined according to the first outer box serial number of the target position in the target historical outer box number, the date code information and the outer box number encoding rules. If the serial number of the target position in the third target serial number is less than or equal to the second preset information, and the serial number of the target position in the fourth target serial number is greater than the second preset information, the outer box number corresponding to each third target serial number is determined according to the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number. Furthermore, the outer box number corresponding to each fourth target serial number is determined according to the quotient information of the maximum serial number of the target position in each fourth target serial number and the second preset information, the first outer box serial number, date code information and outer box number encoding rules of the target position in the target historical outer box number.

7. The method according to claim 6, characterized in that, The step of determining the outer box number corresponding to each fourth target serial number based on the quotient information of the maximum serial number of the target position in each fourth target serial number and the second preset information, the first outer box serial number of the target position in the target historical outer box number, the date code information, and the outer box number encoding rules includes: Based on the quotient information of the maximum sequence number of the target position in each fourth target sequence number and the second preset information, as well as the first outer box sequence number of the target position in the target historical outer box number, the second outer box sequence number corresponding to each fourth target sequence number is determined. Based on the second outer box serial number, date code information, and outer box number encoding rules corresponding to each fourth target serial number, determine the outer box number corresponding to each fourth target serial number.

8. An identification code generation device, characterized in that, include: The coding rule determination module is used to respond to receiving date code information, product category information and product quantity information of the product to be identified submitted by the target object, and to determine the serial number coding rule, inner box number coding rule and outer carton number coding rule of the product to be identified based on the product category information. The target historical information determination module is used to determine the target historical serial number, target historical inner box number, and target historical outer box number that are associated with the date code information; The target serial number generation module is used to determine the target serial number of each product to be identified based on the serial number of the target bit, the serial number encoding rule, the date code information and the product quantity information in the target historical serial number; The inner box number generation module is used to determine the inner box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the first preset information, the date code information, the inner box number encoding rules, and the target historical inner box number; The outer box number generation module is used to determine the outer box number of each product to be identified based on the relationship between the serial number of the target position in the target serial number and the second preset information, the date code information, the outer box number encoding rules, and the target historical outer box 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.