Sequence code generation management system, method and device

By designing a sequence code generation management system, using multi-threading and cloud storage technology, the problem that traditional sequence code production methods are difficult to meet massive demands is solved, efficient sequence code production and storage is achieved, and a solution of second-level response speed is provided.

CN113641728BActive Publication Date: 2025-01-03SHANGHAI CONNEXT INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110915937.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-10
Publication Date
2025-01-03
Estimated Expiration
2041-08-10

AI Technical Summary

Technical Problem

Traditional serial code production methods are difficult to meet the needs of massive efficient production and complex configurations, especially when the demand reaches 1 billion, and the functional diversity cannot be met.

Method used

A sequence code generation and management system was designed, including sequence code type library, configuration module, generation module, logic module and library sub-repository module. Through multi-threading and buffer pool storage, sequence codes are generated and distributed, and cloud storage is used. Database indexing technology enables efficient serial code production and storage.

Benefits of technology

It achieves a production rate of 1 million sequence codes/minute, and provides second-level response speeds at a quantity of 1 billion, meeting the generation, storage and query needs of complex sequence codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113641728B_ABST
    Figure CN113641728B_ABST
Patent Text Reader

Abstract

The present invention provides a sequence code generation management system, method and device, the system comprising: a sequence code type library, which is used to set and store sequence code types and configuration rules; a sequence code configuration module, which is used to receive sequence code generation requirements, and generate and send sequence code requirement instructions; a sequence code generation module, which is used to receive sequence code requirement instructions, and establish and execute sequence code generation tasks; a sequence code logic module, which is used to set and store sequence code calculation rules for calling when the sequence code generation task is executed, and the sequence code logic module calculates the sequence code and returns it to the sequence code generation module; a post-generation processing module, which is used to verify the execution result of the sequence code generation task, and divide the sequence code generated by the sequence code generation task into various code packages according to a preset code package capacity, and upload them to the cloud; a sequence code sub-library module, which is used to perform a sub-library operation on the sequence code uploaded to the cloud, and the sub-library operation persists each sequence code to the corresponding database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer data processing, and in particular to a sequence code generation management system, method and equipment. Background Art

[0002] Currently in the global supply chain system, the information contained in the product serial code already includes logistics information, anti-counterfeiting information, brand information and many other information. Therefore, the importance of the serial code is self-evident, and the production of the serial code is also an indispensable link.

[0003] The number of serial codes produced mainly depends on the number of products produced. In the period when the level of intelligence was not high, productivity was relatively low, so the demand for serial codes was not large, and many bottleneck problems were not highlighted. With the increasing intelligence, productivity has also increased, and the demand for product serial codes has increased. With the prevalence of the Internet, the use of serial codes as activity codes has also become popular, and the demand for complex serial code configurations has increased. Therefore, when the demand for serial codes reaches the billion level, or the production rules are very complex, the traditional serial code production method can no longer meet the demand, and the diversity of serial code functions cannot be met. Therefore, in order to meet these new era needs of suppliers, technical personnel in this field are committed to the research and development of massive and efficient serial code production and storage technologies. Summary of the invention

[0004] In view of the problems in the prior art, the present invention provides a sequence code generation management system, which includes:

[0005] A sequence code type library, which is used to set and store sequence code types and configuration rules;

[0006] A sequence code configuration module, the sequence code configuration module is used to receive a sequence code generation requirement based on the sequence code type library, and generate and send a sequence code requirement instruction according to the sequence code generation requirement;

[0007] A sequence code generation module, the sequence code generation module is used to receive the sequence code requirement instruction, and establish and execute a sequence code generation task according to the sequence code requirement instruction;

[0008] A sequence code logic module, the sequence code logic module is used to set and store sequence code calculation rules, the sequence code logic module is called when the sequence code generation task is executed, the sequence code logic module calculates each sequence code according to the configuration information in the sequence code generation task and returns it to the sequence code generation module;

[0009] A post-generation processing module, the post-generation processing module is used to verify the execution result of the sequence code generation task, and divide the sequence code generated by the sequence code generation task into code packages according to a preset code package capacity, and upload them to the cloud;

[0010] The sequence code sub-library module is used to perform a sub-library operation on the sequence codes uploaded to the cloud, and the sub-library operation persists each sequence code to a corresponding database.

[0011] Furthermore, the sequence code generation task starts multiple threads, and the main thread evenly distributes the sequence code to be generated to each sub-thread for generation according to the sequence code generation rule.

[0012] Furthermore, the sequence code generated by the sequence code generation task is put into a buffer pool for temporary storage, and the post-generation processing module reads the data in the buffer pool to verify the execution result of the sequence code generation task.

[0013] Furthermore, the sequence code logic module includes a market code logic module, and the generation operation of the sequence code by the market code logic module includes:

[0014] Get the last serial code;

[0015] Return the next sequence code according to the preset rules;

[0016] Return a random code according to the preset rules;

[0017] Determine whether to encrypt;

[0018] Assemble and output the complete serial code based on the returned sequence code, random code and encryption status.

[0019] Furthermore, the serial code logic module includes a GTIN-14 code logic module, and the generation operation of the serial code by the GTIN-14 code logic module includes:

[0020] Get the last serial code;

[0021] Return the next sequence code according to the preset rules;

[0022] Return a random code according to the preset rules;

[0023] Assemble the returned sequence code, random code and identification code and output the complete serial code.

[0024] Furthermore, the serial code logic module includes a GS1 code logic module, and the GS1 code logic module generates the serial code by:

[0025] Get the last serial code;

[0026] Return the next sequence code according to the preset rules;

[0027] Assemble the filter value, company prefix, and returned sequence code;

[0028] Calculate the 18th digit according to the SSCC algorithm;

[0029] Assemble and output the complete serial code.

[0030] Furthermore, the serial code database partitioning module performs the database partitioning operation on the serial codes according to customer and / or product information, and each database adds an index to the serial codes therein.

[0031] The present invention also provides a method for managing sequence code generation, the method comprising:

[0032] In response to a sequence code generation requirement, generating and sending a sequence code requirement instruction;

[0033] According to the sequence code requirement instruction, multiple threads are started to execute the sequence code generation task;

[0034] Verify the result of the sequence code generation;

[0035] The generated serial code is divided into code packages according to the preset code package capacity and uploaded to the cloud storage server;

[0036] Perform database partitioning on the uploaded serial codes and persist them in the corresponding database;

[0037] In response to an operation instruction for a sequence code in a database, a corresponding target operation is performed based on the corresponding sequence code data.

[0038] The present invention also provides a device for managing sequence code generation, the device comprising:

[0039] Processor; and

[0040] A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the operations of the above-described method.

[0041] The present invention also provides a computer readable medium storing instructions, which, when executed, cause the system to perform the operations of the above method.

[0042] The sequence code generation management system, method and device of the present invention is a practical and effective solution for producing massive sequence codes, which can efficiently solve the generation, storage and query requirements of massive complex sequence codes in the supply chain. The configuration rules supported can meet the vast majority of scenarios in the industry. The production rate is about 1 million per minute, and at the billion level, the response speed for verifying a single sequence code can reach seconds. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0044] Figure 1 A schematic diagram showing a sequence code generation management system according to an embodiment of the present invention;

[0045] Figure 2 A schematic diagram showing a sequence code logic module in one embodiment of the present invention;

[0046] Figure 3 A schematic diagram showing multi-threading enabled for a sequence code generation task in one embodiment of the present invention;

[0047] Figure 4 A schematic diagram showing a sequence code library division operation in one embodiment of the present invention;

[0048] Figures 5 to 9 It is a graphical user interface of the application software of the sequence code generation management system based on the present invention;

[0049] Fig.10 The functional modules of an exemplary system that can be used in various embodiments of the present invention are shown.

[0050] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0051] The present application is described in further detail below in conjunction with the accompanying drawings.

[0052] In a typical configuration of the present invention, the terminal, the device of the service network and the trusted party each include one or more processors (eg, a central processing unit (CPU)), an input / output interface, a network interface and a memory.

[0053] Memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash memory. Memory is an example of a computer-readable medium.

[0054] Computer readable media include permanent and non-permanent, removable and non-removable media and can store information by any method or technology. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read-Only Memory (ROM), Electrically-Erasable Programmable Read-Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0055] The device referred to in the present invention includes but is not limited to user equipment, network equipment, or equipment formed by integrating user equipment and network equipment through a network. The user equipment includes but is not limited to any mobile electronic product that can interact with a user (for example, interact with a user through a touchpad), such as a smart phone, a tablet computer, etc. The mobile electronic product can use any operating system, such as an Android operating system, an iOS operating system, etc. Among them, the network device includes an electronic device that can automatically perform numerical calculations and information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable Gate Array, FPGA), a digital signal processor (Digital Signal Processor, DSP), an embedded device, etc. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud composed of a plurality of servers; here, the cloud is composed of a large number of computers or network servers based on cloud computing (Cloud Computing), wherein cloud computing is a kind of distributed computing, a virtual supercomputer composed of a group of loosely coupled computer sets. The network includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless ad hoc network, etc. Preferably, the device may also be a program running on the user device, the network device, or a device formed by integrating the user device and the network device, the network device, the touch terminal, or the network device and the touch terminal through a network.

[0056] Of course, those skilled in the art should understand that the above-mentioned devices are only examples, and other existing or future devices that are applicable to the present invention should also be included in the scope of protection of the present invention and are included here by reference.

[0057] In the description of the embodiments of the present invention, “plurality” means two or more, unless otherwise clearly and specifically defined.

[0058] Figure 1 It is a schematic diagram of a serial code generation management system of an embodiment of the present invention, which includes a serial code type library 10, a serial code configuration module 20, a serial code generation module 30, a serial code logic module 40, a post-generation processing module 50, a storage server 60 and a serial code sub-library module 70.

[0059] The serial code type library 10 is used to set and store serial code types and configuration rules. In this embodiment, the serial code types pre-stored in the serial code type library 10 include market codes, GTIN-14 codes and GS1 codes, and also include configuration rules for market codes, GTIN-14 codes and GS1 codes.

[0060] Market code types are divided into logistics codes and marketing codes. For market codes, although the composition of each brand is different, the overall structure of the market code can still be uniformly set to fixed values, logical values, and random values ​​to ensure the readability and uniqueness of the code. Logical values ​​and random values ​​can exclude some characters (such as uppercase letters or numbers, etc.). In addition, the system provides encryption options for market codes. GTIN-14 type serial codes also contain sequential values ​​and random values. In addition, an identification code is set. The identification code needs to be unique in the entire database and will be verified when it is entered. The GS1 type serial code is a fixed length of 18 digits, of which the first 17 digits are composed of the screening value, company prefix and sequential code, and the 18th digit is calculated according to the SSCC algorithm.

[0061] The sequence code configuration module 20 is used to receive the sequence code generation requirements provided by the user, and generate and send the sequence code requirement instructions according to the above sequence code generation requirements, wherein the sequence code generation requirements provided by the user are based on the sequence code types and configuration rules in the sequence code type library 10. In some embodiments, the user fills in and / or selects the sequence code requirements to be generated through the graphical user interface provided by the system, and the items that can be filled in and selected in the graphical user interface are based on the sequence code types and configuration information pre-stored in the sequence code type library 10. After the user completes the filling and confirms, the collected requirement information is sent to the sequence code configuration module 20, and the sequence code configuration module 20 generates the sequence code requirement instructions according to the above requirement information and sends them to the sequence code generation module 30.

[0062] The sequence code generation module 30 is used to receive the sequence code requirement instruction sent by the sequence code configuration module 20, which includes the requirements for sequence code generation that it can identify, such as the type of sequence code, sequence code configuration rules, the number of required sequence codes, etc., and establish and execute the sequence code generation task according to the sequence code requirement instruction. In some preferred embodiments, the sequence code generation task enables multiple threads, and the main thread evenly distributes the sequence codes to be generated to each sub-thread according to the sequence code generation rules for generation, thereby significantly improving the sequence code generation rate.

[0063] The sequence code logic module 40 is used to set and store sequence code calculation rules. When executing a sequence code generation task, the sequence code generation module 30 will call the sequence code generation operation in the sequence code logic module 40 that matches the sequence code type in the task. The called sequence code generation operation calculates each sequence code and returns it to the sequence code generation module 30.

[0064] like Figure 2 As shown, in this embodiment, corresponding to the serial code types (market code, GTIN-14 code and GS1 code) in the serial code type library 10, the serial code logic module 40 includes three sub-modules: a market code logic module 41, a GTIN-14 code logic module 42 and a GS1 code logic module 43, which correspond to the calculation rules of the market code, GTIN-14 code and GS1 code respectively.

[0065] The market code logic module 41 generates the sequence code by:

[0066] Get the last serial code;

[0067] Return the next sequence code according to the preset rules;

[0068] Return a random code according to the preset rules;

[0069] Determine whether to encrypt;

[0070] Assemble and output the complete serial code based on the returned sequence code, random code and encryption status.

[0071] The GTIN-14 code logic module 42 generates the following operations for the serial code:

[0072] Get the last serial code;

[0073] Return the next sequence code according to the preset rules;

[0074] Return a random code according to the preset rules;

[0075] Assemble the returned sequence code, random code and identification code and output the complete serial code.

[0076] The GS1 code logic module 43 generates the serial code by:

[0077] Get the last serial code;

[0078] Return the next sequence code according to the preset rules;

[0079] Assemble the filter value, company prefix, and returned sequence code;

[0080] Calculate the 18th digit according to the SSCC algorithm;

[0081] Assemble and output the complete serial code.

[0082] like Figure 3As shown, the sequence code generation module 30 also includes a buffer pool 31. Each subthread of the sequence code generation task will put the generation result into the buffer pool 31 for temporary storage, and the post-generation processing module 50 will perform subsequent operations on the data in the buffer pool.

[0083] The post-generation processing module 50 is used to verify the execution result of the sequence code generation task. When each sub-thread is finished, the post-generation processing module 50 reads the data in the buffer pool to verify the execution result of each sub-thread generating the sequence code. Afterwards, the post-generation processing module 50 divides the generated sequence code into each code package according to the preset code package capacity, and uploads it to the cloud storage server 60.

[0084] The serial code library sub-module 70 is used to perform a library sub-operation on the serial code uploaded to the storage server 60, and the library sub-operation persists the serial code in the corresponding database. Preferably, the serial code library sub-module 70 can perform a library sub-operation on the serial code according to information such as customers and / or products, such as Figure 4 As shown, the serial code sub-library module 70 persists the serial code uploaded to the storage server 60 in several Mongo databases, and uses the indexing technology of the Mongo database to add an index to the serial code field to achieve a response query in seconds with a data volume of 1 billion.

[0085] Figures 5 to 9 A graphical user interface of application software based on the sequence code generation management system of the present invention is shown.

[0086] like Figure 5 As shown, on the "Serial Code Rules" page, users can select and fill in the type of serial code and its configuration rules. Figure 5 The serial code type selected is GTIN-14 type, the identification code is set to G10002300913, the serial code length is set to 8 digits, of which the order code is set to 5 digits, the random code is set to 3 digits, and the serial code is set to exclude all lowercase letters. Through calculation, it is found that the upper limit of the number of serial codes that meet the above requirements is 777600000.

[0087] like Figure 6 As shown, on the "Serial Code Application" page, select the preset product name and its packaging level, and bind it with the previously selected serial code type and its configuration rules. Figure 6 Select roytest as the product name, case as the product packaging level, and fill in the number of serial codes to be generated.

[0088] exist Figure 6 After completing the form on the page, click "Apply" and the interface will be as follows: Figure 7As shown, this stage is the sequence code generation and persistence stage, in which the sequence code generation module 30 in this embodiment is used to accelerate the generation efficiency, and the post-generation processing module 50 performs the persistence operation of the sequence code. Figure 8 This is the log of the sequence code generation. It can be seen from the log that the total time taken to generate 1 million sequence codes is about 42 seconds. Figure 8 shown in the box).

[0089] like Fig. 9 As shown, on the "Serial Code Query" page, users can quickly query and verify the generated serial code based on the logistics serial code or marketing serial code provided by the system.

[0090] This embodiment also provides a method for managing sequence code generation, the process of which includes:

[0091] Step 1: In response to the sequence code generation requirement, generate and send the sequence code requirement instruction; when the sequence code generation management system of this embodiment is adopted, the sequence code configuration module 20 receives the sequence code requirement filled in and / or selected by the user based on the sequence code type and configuration rules in the sequence code type library 10, and generates and sends the sequence code requirement instruction.

[0092] Step 2: According to the sequence code requirement instruction, multiple threads are started to execute the sequence code generation task; when the sequence code generation management system of this embodiment is adopted, the sequence code generation module 30 receives the sequence code requirement instruction sent by the sequence code configuration module 20, and establishes and executes the sequence code generation task according to the sequence code requirement instruction. The sequence code generation task enables multiple threads, and the main thread distributes the sequence code to be generated to each sub-thread evenly according to the sequence code generation rules for generation.

[0093] Each sub-thread performs corresponding generation operations according to the type of serial code. For example, there will be different generation operation processes for market code logic, GTIN-14 code or GS1 code, and the generated results are temporarily stored in the buffer pool.

[0094] Step three, verify the result of sequence code generation; when the sequence code generation management system of this embodiment is used, the post-generation processing module 50 reads the data in the buffer pool 31 to verify the execution result of each sub-thread generating the sequence code.

[0095] Step 4: divide the generated serial code into code packages according to the preset code package capacity and upload them to the cloud storage server; when the serial code generation management system of this embodiment is adopted, after the post-generation processing module 50 completes the verification, it divides the generated serial code into code packages according to the preset code package capacity and uploads them to the cloud storage server 60.

[0096] Step 5: perform database partitioning on the uploaded serial code and persist it in the corresponding database; when the serial code generation and management system of this embodiment is adopted, the serial code database partitioning module 70 performs database partitioning on the serial code uploaded to the storage server 60 according to customer and / or product information, and the database partitioning operation persists the serial code in several Mongo databases, and at the same time uses the indexing technology of the Mongo database to add an index to the serial code field.

[0097] In response to an operation instruction for a serial code in a database, a corresponding target operation is performed based on the corresponding serial code data. For example, in response to a user's query operation on a serial code, the query result can be quickly obtained from the corresponding database using the serial code index based on customer, product and other information.

[0098] This embodiment further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer code. When the computer code is executed, the method described in any of the preceding items is executed.

[0099] This embodiment further provides a computer program product. When the computer program product is executed by a computer device, the method described in any of the preceding items is executed.

[0100] This embodiment further provides a computer device, the computer device comprising:

[0101] one or more processors;

[0102] a memory for storing one or more computer programs;

[0103] When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described in any of the preceding items.

[0104] Fig.10 An exemplary system is shown that can be used to implement the various embodiments described herein.

[0105] like Fig.10 As shown, in some embodiments, the system 1000 can be used as any user terminal device in each of the embodiments. In some embodiments, the system 1000 may include one or more computer-readable media (e.g., system memory or NVM / storage device 1020) having instructions and one or more processors (e.g., (one or more) processors 1005) coupled to the one or more computer-readable media and configured to execute instructions to implement modules to perform the actions described in the present invention.

[0106] For one embodiment, the system control module 1010 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 1005 and / or any suitable device or component in communication with the system control module 1010 .

[0107] The system control module 1010 may include a memory controller module 1030 to provide an interface to the system memory 1015. The memory controller module 1030 may be a hardware module, a software module, and / or a firmware module.

[0108] The system memory 1015 may be used, for example, to load and store data and / or instructions for the system 1000. For one embodiment, the system memory 1015 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 1015 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0109] For one embodiment, system control module 1010 may include one or more input / output (I / O) controllers to provide interfaces to NVM / storage device 1020 and communication interface(s) 1025 .

[0110] For example, NVM / storage device 1020 may be used to store data and / or instructions. NVM / storage device 1020 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0111] NVM / storage device 1020 may include storage resources that are physically part of the device on which system 1000 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 1020 may be accessed via communication interface(s) 1025 over a network.

[0112] Communication interface(s) 1025 may provide an interface for system 1000 to communicate over one or more networks and / or with any other suitable devices. System 1000 may wirelessly communicate with one or more components of a wireless network in accordance with any of one or more wireless network standards and / or protocols.

[0113] For one embodiment, at least one of the processor(s) 1005 may be packaged together with the logic of one or more controllers (e.g., memory controller module 1030) of the system control module 1010. For one embodiment, at least one of the processor(s) 1005 may be packaged together with the logic of one or more controllers of the system control module 1010 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 1005 may be integrated on the same die with the logic of one or more controllers of the system control module 1010. For one embodiment, at least one of the processor(s) 1005 may be integrated on the same die with the logic of one or more controllers of the system control module 1010 to form a system on chip (SoC).

[0114] In various embodiments, the system 1000 may be, but is not limited to: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 1000 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 1000 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.

[0115] It should be noted that the present invention can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present invention can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present invention (including related data structures) can be stored in a computer readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and the like. In addition, some steps or functions of the present invention can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0116] In addition, a part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0117] Communication media include media by which communication signals containing, for example, computer readable instructions, data structures, program modules, or other data are transmitted from one system to another. Communication media may include guided transmission media such as cables and wires (e.g., fiber optic, coaxial, etc.) and wireless (unguided transmission) media that can propagate energy waves, such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied as a modulated data signal in, for example, a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" refers to a signal whose one or more characteristics are changed or set in such a manner as to encode information in the signal. Modulation may be analog, digital, or a hybrid modulation technique.

[0118] By way of example and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory, such as random access memory (RAM, DRAM, SRAM); and non-volatile memory, such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, magnetic tapes, CDs, DVDs); or other media now known or later developed that can store computer-readable information / data for use by a computer system.

[0119] Here, according to one embodiment of the present invention, a device is included, which includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run the methods and / or technical solutions based on the aforementioned multiple embodiments of the present invention.

[0120] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A sequence code generation management system, characterized in that: include: A serial code type library, which is used to set and store serial code types and configuration rules. The serial code types include market codes, GTIN-14 codes, and GS1 codes. A sequence code configuration module, the sequence code configuration module is used to receive a sequence code generation requirement based on the sequence code type library, and generate and send a sequence code requirement instruction according to the sequence code generation requirement; A sequence code generation module, the sequence code generation module is used to receive the sequence code requirement instruction, and establish and execute a sequence code generation task according to the sequence code requirement instruction, the sequence code generation task starts multiple threads, and the main thread distributes the sequence code to be generated to each sub-thread evenly according to the sequence code generation rule for generation; A sequence code logic module, the sequence code logic module is used to set and store sequence code calculation rules, the sequence code logic module is called when the sequence code generation task is executed, the sequence code logic module calculates each sequence code according to the configuration information in the sequence code generation task and returns it to the sequence code generation module; the sequence code logic module includes a market code logic module, a GTIN-14 code logic module and a GS1 code logic module; A post-generation processing module, wherein the sequence code generated by the sequence code generation task is temporarily stored in a buffer pool, and the post-generation processing module is used to read the data in the buffer pool to verify the execution result of the sequence code generation task, and divide the sequence code generated by the sequence code generation task into code packages according to a preset code package capacity, and upload them to the cloud; A sequence code library sub-module, which is used to perform a library sub-operation on the sequence codes uploaded to the cloud, and the library sub-operation persists each sequence code to a corresponding database; and, The market code logic module generates operations for the sequence code including: Get the last serial code; Return the next sequence code according to the preset rules; Return a random code according to the preset rules; Determine whether to encrypt; Assemble and output the complete sequence code according to the returned sequence code, random code and encryption status; The GTIN-14 code logic module generates the serial code by: Get the last serial code; Return the next sequence code according to the preset rules; Return a random code according to the preset rules; Assemble the returned sequence code, random code and identification code and output a complete sequence code; The GS1 code logic module generates serial code operations including: Get the last serial code; Return the next sequence code according to the preset rules; Assemble the filter value, company prefix, and returned sequence code; Calculate the 18th digit according to the SSCC algorithm; Assemble and output the complete serial code.

2. The sequence code generation management system according to claim 1, characterized in that: The serial code sub-library module performs the sub-library operation on the serial code according to the customer and / or product information, and each database adds an index to the serial code therein.

3. A method for managing sequence code generation, characterized in that: The method comprises: Setting and storing serial code types and configuration rules, wherein the serial code types include market codes, GTIN-14 codes, and GS1 codes; setting and storing serial code calculation rules; In response to a sequence code generation requirement, generating and sending a sequence code requirement instruction; A sequence code generation task is established and executed according to the sequence code requirement instruction, and each sequence code is calculated according to the configuration information and the sequence code calculation rule when the sequence code generation task is executed, wherein the sequence code generation task starts multiple threads, and the main thread evenly distributes the sequence codes to be generated to each sub-thread according to the sequence code generation rule for generation; Putting the sequence code generated by the sequence code generation task into a buffer pool for temporary storage and verifying the result of the sequence code generation; The generated serial code is divided into code packages according to the preset code package capacity and uploaded to the cloud storage server; Perform database partitioning on the uploaded serial codes and persist them in the corresponding database; In response to an operation instruction for a sequence code in a database, performing a corresponding target operation based on corresponding sequence code data; in, The generation operation of the market code includes: Get the last serial code; Return the next sequence code according to the preset rules; Return a random code according to the preset rules; Determine whether to encrypt; Assemble and output the complete sequence code according to the returned sequence code, random code and encryption status; The GTIN-14 code generation operation includes: Get the last serial code; Return the next sequence code according to the preset rules; Return a random code according to the preset rules; Assemble the returned sequence code, random code and identification code and output a complete sequence code; The GS1 code generation operation includes: Get the last serial code; Return the next sequence code according to the preset rules; Assemble the filter value, company prefix, and returned sequence code; Calculate the 18th digit according to the SSCC algorithm; Assemble and output the complete serial code.

4. A device for managing sequence code generation, wherein: The device comprises: Processor; and A memory arranged to store computer executable instructions which, when executed, cause the processor to perform the operations of the method according to claim 3.

5. A computer readable medium storing instructions which, when executed, cause a system to perform the operations of the method of claim 3.