CN113807864A - Supervision code generation method and tracing platform - Google Patents

Supervision code generation method and tracing platform Download PDF

Info

Publication number
CN113807864A
CN113807864A CN202110967701.2A CN202110967701A CN113807864A CN 113807864 A CN113807864 A CN 113807864A CN 202110967701 A CN202110967701 A CN 202110967701A CN 113807864 A CN113807864 A CN 113807864A
Authority
CN
China
Prior art keywords
code segment
time
code
application
supervision
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110967701.2A
Other languages
Chinese (zh)
Inventor
客斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202110967701.2A priority Critical patent/CN113807864A/en
Publication of CN113807864A publication Critical patent/CN113807864A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products

Abstract

The disclosure provides a supervision code generation method and a tracing platform. The method comprises the following steps: the tracing platform receives an application request sent by application equipment; determining a time code segment at least according to time information set on a tracing platform after the application equipment logs in the tracing platform; and generating a supervision code according to the time code segment. In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.

Description

Supervision code generation method and tracing platform
The application is a divisional application of an invention patent with the application date of 2016, 06, 30, and the application number of 201610511308.1, named as a supervision code generation method, a supervision code generation device and a supervision code generation server.
Technical Field
The present disclosure relates to internet technologies, and in particular, to a supervision code generation method and a tracing platform.
Background
The supervision code is an identifier given to each product for electronically supervising the product, and is unique, namely one code, and the supervision code is like an identity card of each product.
In the prior art, the supervision code is a 20-bit number sequence, such as 80123451234567891111, wherein the first two bits (e.g., 80) are prefixes for identifying the kind of product; five bits (for example, 12345) after the prefix are code segments, the code segments are used for identifying the production enterprises of the products and product information, the product information includes information such as product names and product specifications, and each specification of the same product produced by the same production enterprise corresponds to one code segment; nine digits after the code segment (e.g., 123456789) are a serial number that identifies each product of the same specification for the same product produced by the same manufacturing enterprise; four bits (e.g., 1111) after the serial number are check bits, which are the result of checking the first 16 bits of the supervisory code according to a check algorithm.
The code segments are generated in sequence, specifically from 00000 to 99999, that is, the maximum number of non-repeating code segments is 100000, however, as the number of occupied code segments increases, the number of 100000 code segments is exhausted, which results in that the manufacturer cannot apply for the supervision code without limitation. In addition, the prefix and the serial number are also generated in sequence, when the prefix, the code segment and the serial number are all increased to the maximum value, all the digits of the supervision code are exhausted, and if the supervision code is continuously increased, the length of the supervision code needs to be increased, so that a generation, management and maintenance system of the supervision code needs to be modified uniformly, and the expandability of the supervision code is poor.
Disclosure of Invention
The disclosure provides a supervision code generation method and a tracing platform, which are used for realizing unlimited application of supervision codes.
In one aspect, the present disclosure provides a method for generating a supervision code, including:
the tracing platform receives an application request sent by application equipment, wherein the application request comprises a cargo name and the number of supervision codes required to be applied;
determining a time code segment at least according to time information set on a tracing platform after the application equipment logs in the tracing platform;
and generating a supervision code according to the time code segment.
In another aspect, the present disclosure provides a tracing platform, including: a processor for performing the steps of the method of:
the tracing platform receives an application request sent by application equipment, wherein the application request comprises a cargo name and the number of supervision codes required to be applied;
determining a time code segment at least according to time information set on a tracing platform after the application equipment logs in the tracing platform;
and generating a supervision code according to the time code segment.
In the disclosure, the time code segment is associated with the time information, and as the time information is information which can be continuously changed, the time information can be continuously increased along with the increase of time, so that the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, thereby realizing that the supervision code can be applied without limit.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a diagram illustrating a structure of a supervision code in the prior art;
FIG. 2 is a schematic diagram of an alternative supervisory code according to the present disclosure;
fig. 3 is a schematic diagram of an alternative application scenario/networking approach of the present disclosure;
FIG. 4 is an architecture diagram of supervisory code generation according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a supervision code generation method according to a second embodiment of the present disclosure;
fig. 6 is a flowchart of a supervision code generation method according to a second embodiment of the present disclosure;
fig. 7 is a flowchart of a supervision code generation method provided in the third embodiment of the present disclosure;
fig. 8 is a flowchart of a supervision code generation method according to a fourth embodiment of the present disclosure;
fig. 9 is a flowchart of a supervision code generation method according to a fifth embodiment of the present disclosure;
fig. 10 is a flowchart of a supervision code generation method according to a sixth embodiment of the present disclosure;
fig. 11 is a flowchart of a supervision code generation method according to a seventh embodiment of the present disclosure;
fig. 12 is a flowchart of a supervision code generation method according to an eighth embodiment of the present disclosure;
fig. 13 is a flowchart of a supervision code generation method according to a ninth embodiment of the present disclosure;
fig. 14 is a flowchart of a supervision code generation method provided in a tenth embodiment of the present disclosure;
fig. 15 is a flowchart of a supervision code generation method according to an eleventh embodiment of the present disclosure;
fig. 16 is a flowchart of a supervision code generation method according to a twelfth embodiment of the present disclosure;
fig. 17 is a flowchart of a supervision code generation method according to a thirteenth embodiment of the present disclosure;
fig. 18 is a flowchart of a supervision code generation method according to a fourteenth embodiment of the present disclosure;
fig. 19 is a flowchart of a supervision code generation method according to a fifteenth embodiment of the present disclosure;
fig. 20 is a flowchart of a supervision code generation method according to a sixteenth embodiment of the present disclosure;
fig. 21 is a flowchart of a method for generating a supervision code according to a seventeenth embodiment of the present disclosure;
fig. 22 is a schematic structural diagram of a server according to a first embodiment of the present disclosure;
fig. 23 is a schematic structural diagram of a server according to a second embodiment of the present disclosure;
fig. 24 is a schematic structural diagram of a server according to a third embodiment of the present disclosure;
fig. 25 is a schematic structural diagram of a terminal device according to a first embodiment of the present disclosure;
fig. 26 is a schematic structural diagram of a terminal device according to a second embodiment of the present disclosure;
fig. 27 is a schematic structural diagram of a supervisory code generation system according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In the prior art, the supervision code is a 20-bit digital sequence, as shown in fig. 1, the 20-bit supervision code includes a two-bit prefix 11, a five-bit code segment 12, a nine-bit serial number 13, and a four-bit check bit 14, where the prefix 11 is used to identify the type of a product; the code segment 12 is used for identifying a production enterprise of a product and product information, the product information includes information such as a product name and product specification, and each specification of the same product produced by the same production enterprise corresponds to one code segment; the serial number 13 is used for identifying each product with the same specification of the same product produced by the same production enterprise; the check bit 14 is a result of checking the first 16 bits of the supervision code according to a check algorithm.
Prefix 11, code segment 12, and serial number 13 are all generated in sequence, for example, code segment 12 is specifically from 00000 to 99999, that is, the maximum number of non-repeating code segments is 100000, and as the production enterprise, the product type, and the product specification increase, 100000 code segments will be exhausted soon, so that the production enterprise cannot apply for the supervision code without limitation. In addition, when the prefix, the code segment and the serial number are all increased to the maximum value, all the bits of the supervision code are exhausted, and if the supervision code is continuously increased, the length of the supervision code needs to be increased, so that a generation, management and maintenance system of the supervision code needs to be modified uniformly, and the expandability of the supervision code is poor.
The present disclosure addresses the problems in the prior art, and proposes a method for generating a supervision code, as shown in fig. 2, where the supervision code in the present disclosure is a 35-bit digital sequence, the supervision code includes a two-bit prefix 21, a twenty-bit code segment 22, a nine-bit serial number 23, and a four-bit check bit 24, where the twenty-bit code segment 22 includes seventeen bits of time information 18 and a three-bit code segment serial number 19, the time information 18 is accurate to milliseconds, for example, 20160122034455666 indicates that 2016 year 1 month 22 day 3 point 44 minutes 55 seconds 666 milliseconds, the code segment serial number 19 is from 000 and 999, the code segment serial numbers identify multiple concurrent applications at the same time, for example, the application requests sent by production enterprise a, production enterprise B, production enterprise C, and production enterprise D are received simultaneously by the tracing platform at 2016 year 1 month 22 day 3 point 44 minutes 55 seconds 666 milliseconds, the application requests are applied for the supervision code, 2016 year 1 month 22 day 44 minutes 55 seconds 666 milliseconds correspond to 4 concurrent requests at the time of 2016 year 55 milliseconds and 666 milliseconds, the traceback platform can select 4 different code segment sequence numbers from 000-999, such as 001, 002, 003, 004, so as to distinguish 4 concurrent requests at the same time. The code segments 22 in the supervision codes applied by the manufacturing enterprise a, the manufacturing enterprise B, the manufacturing enterprise C and the manufacturing enterprise D are 20160122034455666001, 20160122034455666002, 20160122034455666003 and 20160122034455666004 respectively.
In this embodiment, the time information 18 in the code segment 22 is the time information when the application request is received by the trace-back platform.
In addition, in other embodiments, the time information 18 in the code segment 22 may also be the time information when the request is processed by the trace-back platform.
In addition, in other embodiments, the time information 18 in the code segment 22 may also be time information set by a user applying the supervision code through an application device, and the time information selectable by the user may be accurate to milliseconds, where the application device, such as the application device 11, the application device 12, the application device 13, or the application device 14 in fig. 3, sends an application request to the tracing platform according to the setting of the user, and the application request includes the time information set by the user.
In the embodiment, the code segment is associated with the time information, and as the time information is information which can be continuously changed, the time information can be continuously increased along with the increase of time, so that the code segment can be ensured to be applied without limit, and the supervision code is generated according to the code segment, thereby realizing that the supervision code can be applied without limit. In addition, the same time information corresponds to the code segment serial numbers with the preset number, the code segment serial numbers with the preset number can identify the concurrent applications with the preset number at the same time, and as long as the number of the concurrent requests for applying the supervision codes at the same time does not exceed the preset number, the processing upper limit of the system can be guaranteed not to exceed, the system does not need to be upgraded, the generation, management and maintenance system of the supervision codes does not need to be transformed in a unified manner, and the expandability of the supervision codes is improved. The code segment is irrelevant to the number of enterprises, the code segment is guaranteed not to be sequentially increased along with the increase of the enterprises, the number of digits of the code segment is not expanded along with the increase of the application request, and the problem that the number of digits of the code segment needs to be continuously expanded along with the increase of the number of the enterprises is solved essentially.
In this embodiment, a process of applying for a supervision code from a tracing platform by a production enterprise and a method for generating the supervision code are introduced with reference to fig. 3, as shown in fig. 3, when the production enterprise produces a commodity, a supervision code is assigned to a package of the commodity or the commodity itself, each commodity has a supervision code, the supervision code is used for uniquely identifying the commodity like an identity card of the commodity, the supervision code may specifically be a symbol having certain commodity information, such as a two-dimensional code, a graphic code, a barcode, an anti-counterfeiting code, or an invisible label, or a code generated by a specific coding rule, in this embodiment, the supervision code is a string of digital sequences, the digital sequences are generated by the tracing platform according to an application request of the production enterprise, as shown in fig. 3, a production enterprise a may apply for the supervision code from the tracing platform through an application device 11, a production enterprise B may apply for the supervision code from the tracing platform through an application device 12, production enterprise C can apply for the supervision code to the traceability platform through the application equipment 13, and production enterprise D can apply for the supervision code to the traceability platform through the application equipment 14.
Before each manufacturing enterprise applies for the supervision code to the tracing platform, each manufacturing enterprise uploads cargo information to the tracing platform through a corresponding application device, for example, the manufacturing enterprise a uploads identification information of the manufacturing enterprise a and cargo information of the cargo a produced by the manufacturing enterprise a to the tracing platform through the application device 11, the cargo information includes a name of the cargo a and a specification of the cargo a, and the tracing platform stores association relations among the identification information of the manufacturing enterprise a, the name of the cargo a and the specification of the cargo a to the database 10. Similarly, the association relationship among the identification information of the manufacturing enterprise B, the name of the cargo B manufactured by the manufacturing enterprise B, and the specification of the cargo B is stored in the database 10; storing the association relationship among the identification information of the manufacturing enterprise C, the name of the goods C produced by the manufacturing enterprise C, and the specification of the goods C in the database 10; the association relationship between the identification information of the manufacturing enterprise D, the name of the goods D produced by the manufacturing enterprise D, and the specification of the goods D is stored in the database 10. Cargo a, cargo B, cargo C, and cargo D may be the same cargo or different cargo.
The goods that production enterprise A, production enterprise B, production enterprise C, production enterprise D uploaded respectively are verified to traceing back the platform, and after the verification was qualified, production enterprise A, production enterprise B, production enterprise C, production enterprise D can send the application request to tracing back the platform through the application apparatus that corresponds separately respectively, and the process of sending the application request specifically can be: personnel of a production enterprise log in the tracing platform through the application equipment, the name and the specification of goods which are uploaded by the production enterprise and are verified by the tracing platform are inquired from the tracing platform, the number of the goods, namely the number of the required supervision codes, is determined, and then the application is determined by clicking.
After receiving the application request, the tracing platform determines the category of the cargo according to the name of the cargo, in this embodiment, the category of the cargo is represented by a 2-bit digital sequence, for example, the name of the cargo is amoxicillin, the category of the cargo is a medicine, in addition, the tracing platform stores a correspondence between the category of the cargo and the prefix of the supervision code in advance, for example, the prefix of the supervision code corresponding to the medicine is 80.
The traceability platform generates a code segment of the supervision code according to the time information corresponding to the application request, wherein the time information corresponding to the application request can be the time information when the traceability platform receives the application request, or can also be the time information set on the traceability platform after a person of a production enterprise logs in the traceability platform through application equipment, for example, the production enterprise expects to sell the goods in 2016, 6 and 20 days, and applies for the supervision code of the goods in 2016, 6 and 12 days, and then sets 2016, 6 and 20 days on the traceability platform, which indicates that the production enterprise expects to apply for the code segment associated with 2016, 6 and 20 days. In addition, the tracing platform can perform immediate processing on the application request, or perform delayed processing on the application request, and if the delayed processing is performed, the time information corresponding to the application request may also be the time information when the tracing platform processes the application request.
In this embodiment, taking the example that the time information corresponding to the application request is the time information when the application request is received by the tracing platform, a process of generating the code segment of the supervision code by the tracing platform according to the time information corresponding to the application request is described in detail. As shown in fig. 1, the trace-back platform may receive the application requests sent by the application devices 11, 12, 13, and 14 in a time-sharing manner, that is, the application devices 11, 12, 13, and 14 do not send the application requests to the trace-back platform at the same time, and in addition, the trace-back platform may also receive the application requests sent by the application devices 11, 12, 13, and 14, that is, the application devices 11, 12, 13, and 14 send the application requests to the trace-back platform at the same time. In this embodiment, the code segment of the supervisory code is represented by a 20-bit digital sequence, where the first 17 bits of the code segment represent time information, the last 3 bits represent code segment serial numbers, and each time identified by the time information corresponds to a predetermined number of different code segment serial numbers, for example, 2016 # 1/20/22/44/55/666/msec corresponds to 1000 code segment serial numbers, where the 1000 code segment serial numbers are selected from 000-999, the time information is represented by 20160122034455666, 201601220344666000 can identify a first application request of 2016 # 1/22/3/44/55/666/msec, 20160122034455666001 can identify a second application request of 2016 # 1/22/44/55/666/42, 20160122034455666999 can identify a 1000 application request of 2016 # 666/22/44/55/666/msec, and similarly, any time other than 2016 # 3/1/22/44/55/666/msec also corresponds to 1000 code segment serial numbers. In this embodiment, the 1000 code segment numbers at each time may identify 1000 concurrent application requests within the time, and this embodiment is only for illustration and does not limit the specific number of the code segment numbers corresponding to each time. After the application device 11, the application device 12, the application device 13, and the application device 14 simultaneously send application requests to the trace-back platform, the trace-back platform receives 4 application requests at the same time, assuming that the same time is 666 milliseconds at 44 minutes 55 seconds at 22/3/22/2016, and the trace-back platform sequentially allocates code segments of supervision codes to 4 application requests within 666 milliseconds at 44 minutes 55 seconds at 22/3/44/22/2016, where one application request corresponds to one code segment of supervision codes, and the 4 code segments are 20160122034455666000, 20160122034455666001, 20160122034455666002, and 20160122034455666003, correspondingly, the code segment of the supervision code applied by the manufacturing enterprise a is 20160122034455666000, the code segment of the supervision applied by the manufacturing enterprise B is 20160122034455666001, the code segment of the supervision applied by the manufacturing enterprise C is 20160122034455666002, and the code segment of the supervision applied by the manufacturing enterprise D is 20160122034455666003. When the tracing platform receives only one application request at the same time, a code segment serial number is randomly selected from 1000 code segment serial numbers corresponding to the time, or a code segment serial number is selected in sequence, and the time information represented by the time and the code segment serial number form the code segment of the supervision code applied by the application request.
As shown in fig. 3, each manufacturing enterprise needs to assign a supervision code to each item it produces, and when each manufacturing enterprise applies for the supervision code to the tracing platform, the number of the supervision codes to be applied needs to be determined. In this embodiment, the serial number of the supervision code is generated according to the number of the supervision codes applied by each manufacturing enterprise, and in this embodiment, the serial number of the supervision code is represented by a 9-bit number sequence, for example, 10000 supervision codes are applied by the manufacturing enterprise a once to identify 10000 goods, then the serial number of the supervision code allocated by the tracing platform for the manufacturing enterprise a is from 000000000-. Similarly, the tracing platform can respectively distribute the serial numbers of the supervision codes to the production enterprise B, the production enterprise C and the production enterprise D.
In addition, the trace-back platform verifies a sequence formed by a prefix, a code segment and a serial number of the supervision code in sequence to generate a check digit of the supervision code, in this embodiment, a 4-digit sequence is used to represent the check digit of the supervision code, taking the first supervision code of the manufacturing enterprise a as an example, the prefix is 80, the code segment is 20160122034455666000 and the serial number is 000000000, and the trace-back platform verifies a sequence formed by the prefix, the code segment and the serial number in sequence, that is, 8020160122034455666000000000000, by using a predetermined verification algorithm to generate a check digit, for example, 1111. The prefix, the code segment, the serial number and the check digit sequentially form a first supervision code 80201601220344556660000000000001111 of the production enterprise A. Similarly, second supervisory code 80201601220344556660000000000011111 for manufacturing enterprise A may be generated, up to 10000 supervisory code 80201601220344556660000000099991111 for manufacturing enterprise A.
In this embodiment, a 35-bit digital sequence is used to represent the supervision code, and compared with a 20-bit supervision code in the prior art, the difference lies in a code segment of the supervision code, in the prior art, the code segment is a 5-bit digital sequence, and the code segments are generated in sequence, specifically from 00000 to 99999, that is, the maximum number of non-repeating code segments is 100000, 100000 code segments will be exhausted soon, the number of application code segments of a production enterprise is limited, and the number of application supervision codes is limited at the same time. The code segment in this embodiment is a 20-bit digital sequence, the first 17 bits of the code segment represent time information, the last 3 bits represent code segment serial numbers, because the time information is a continuously variable information, along with the increase of time, the time information can be continuously changed, the code segment can be guaranteed to be continuously applied through the association of the code segment and the time information, in addition, each time information corresponds to 1000 code segment serial numbers, 1000 concurrent application requests in the same moment are identified by 1000 code segment serial numbers, the first 17 bits of the code segments of a plurality of supervision codes applied at the same moment are equal, the last 3 bits are different, the code segments of a plurality of supervision codes applied at the same moment are different, the code segment repetition of a plurality of supervision codes applied at the same moment is avoided, and therefore the multiple supervision code repetition applied at the same moment is avoided.
In addition, the code segment is associated with the time information, the time information can continuously change along with the change of time, and the code segment changes along with the change of the time information. And the method for distributing the code segments according to the time information is simple, the processing time delay is short, and the processing speed of the system can be effectively improved.
In addition, because the code segment in this embodiment is associated with time information, and the time information is accurate to millisecond, the length of the time information in the code segment is fixed, along with the change of time, the time information in the code segment can be changed continuously, each time information corresponds to a preset number of code segment serial numbers, the preset number of code segment serial numbers can identify preset number of concurrent requests at the same time, and the code segment comprises the time information and the code segment serial numbers, it is ensured that the code segment can identify not only code segments applied at different times, but also code segments applied by a plurality of concurrent requests at the same time. The code segment is irrelevant to the number of enterprises, the code segment is guaranteed not to be sequentially increased along with the increase of the enterprises, the number of digits of the code segment is not expanded along with the increase of the application request, and the problem that the number of digits of the code segment needs to be continuously expanded along with the increase of the number of the enterprises is solved essentially.
The first embodiment of the present disclosure provides a method for generating a supervision code, which includes the following steps:
step 1, receiving an application request sent by application equipment.
The execution subject of this embodiment is a tracing platform, and this tracing platform is specifically implemented as the server 10 shown in fig. 4, as shown in fig. 4, a manufacturing enterprise a can apply for a supervision code to the tracing platform through the application device 11, a manufacturing enterprise B can apply for a supervision code to the tracing platform through the application device 12, a manufacturing enterprise C can apply for a supervision code to the tracing platform through the application device 13, and a manufacturing enterprise D can apply for a supervision code to the tracing platform through the application device 14. Specifically, the production enterprise a, the production enterprise B, the production enterprise C, and the production enterprise D respectively send application requests to the tracing platform through respective corresponding application devices, and the application requests are used for applying for the supervision codes.
And 2, determining a time code segment at least according to the time information associated with the application request.
In this embodiment, the time information associated with the application request may be time information when the tracing platform receives the application request. In addition, in other embodiments, the time information associated with the application request may be time information when the tracing platform processes the application request. In addition, in other embodiments, the application request further includes the time information, and the time information is set by the user through the application device. Or, the time information associated with the application request may also be time information when the application device sends the application request.
For example, 666 milliseconds of 44 minutes and 55 minutes at 22 days 3 of 2016 indicate time information from which the determined time code segment may be 20160122034455666. Or, a preset delay time such as 4 milliseconds is added on the basis of 666 milliseconds of 44 minutes 55 seconds at 3 points of 1 month and 22 months of the time information 2016, so that 670 milliseconds of 44 minutes 55 seconds at 3 points of 1 month and 22 months of the time information 2016 are obtained, and a time code segment determined according to the 666 seconds of 44 minutes 55 seconds at 3 points of 1 month and 22 months of the time information 2016 can be 20160122034455670. Alternatively, the time code segment determined by 666 milliseconds at 44 minutes 55 minutes at 22 days 3 of 1 month 22 year 2016 of the time information may be 20160122034455666001, i.e., 3 bits of code segment number 001 is added after 20160122034455666, and the present embodiment does not limit the number of bits of the code segment number. The tracing platform can generate the supervision code according to the time code segment.
Optionally, the server 10 receives the application requests sent by the application device 11, the application device 12, the application device 13, and the application device 14 at 666 milliseconds at 44 minutes, 55 seconds at 3 rd point of 22 th at 2016, and the server 10 sequentially allocates time code segments to 4 concurrent application requests, where one application request corresponds to one time code segment, the 4 time code segments are 20160122034455666000, 20160122034455666001, 20160122034455666002, and 20160122034455666003, respectively, and accordingly, the time code segment allocated to the application device 11 is 20160122034455666000, the time code segment allocated to the application device 12 is 20160122034455666001, the time code segment allocated to the application device 13 is 20160122034455666002, and the time code segment allocated to the application device 14 is 20160122034455666003.
And 3, generating a supervision code according to the time code segment, and sending the supervision code to the application equipment.
The server 10 generates the supervisory code 31 from the timecode segment 20160122034455666000, the supervisory code 32 from the timecode segment 20160122034455666001, the supervisory code 33 from the timecode segment 20160122034455666002, and the supervisory code 34 from the timecode segment 20160122034455666003. The supervisory code 31-34 is sent to the application devices 11-14, respectively, as shown in the architecture diagram of supervisory code generation in fig. 4.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 5 is a flowchart of a supervision code generation method provided in the second embodiment of the present disclosure, as shown in fig. 5, on the basis of the embodiment shown in fig. 4, the method includes the following steps:
step S201, receiving an application request sent by an application device.
The execution subject of this embodiment is the tracing platform, as shown in fig. 1, production enterprise a can apply for the supervision code to the tracing platform through application device 11, production enterprise B can apply for the supervision code to the tracing platform through application device 12, production enterprise C can apply for the supervision code to the tracing platform through application device 13, and production enterprise D can apply for the supervision code to the tracing platform through application device 14. Specifically, the production enterprise a, the production enterprise B, the production enterprise C, and the production enterprise D respectively send application requests to the tracing platform through respective corresponding application devices, and the application requests are used for applying for the supervision codes.
Step S202, determining a time code segment at least according to the time information associated with the application request.
Step S202 is the same as step S102, and the detailed method is not described here.
And S203, generating a supervision code at least according to the time code segment.
In this embodiment, the application request includes the name of the goods and the number of codes required to apply for the application. The time code segment is the time code segment described in step S102.
The execution subject of this embodiment is the tracing platform, as shown in fig. 1, production enterprise a can apply for the supervision code to the tracing platform through application device 11, production enterprise B can apply for the supervision code to the tracing platform through application device 12, production enterprise C can apply for the supervision code to the tracing platform through application device 13, and production enterprise D can apply for the supervision code to the tracing platform through application device 14. Specifically, the production enterprise a, the production enterprise B, the production enterprise C, and the production enterprise D respectively send application requests to the tracing platform through respective corresponding application devices, where the application requests include identification information of the production enterprise, a name of a cargo, a specification of the cargo, and the number of required supervision codes.
As shown in fig. 6, the method for generating the supervision code at least according to the time code segment specifically includes the following steps:
step S31, determining the prefix of the supervision code according to the goods name;
after receiving the application request, the tracing platform determines the category of the cargo according to the name of the cargo, in this embodiment, the category of the cargo is represented by a 2-bit digital sequence, for example, the name of the cargo is amoxicillin, the category of the cargo is a medicine, in addition, the tracing platform stores a correspondence between the category of the cargo and the prefix of the supervision code in advance, for example, the prefix of the supervision code corresponding to the medicine is 80.
Step S32, determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased;
as shown in fig. 1, each manufacturing enterprise needs to assign a supervision code to each piece of goods produced by the manufacturing enterprise, and when each manufacturing enterprise applies the supervision code to the traceability platform, the number of the goods, that is, the number of the required supervision codes, needs to be determined. In this embodiment, the serial number of the supervision code is generated according to the number of the supervision codes applied by each manufacturing enterprise, and in this embodiment, the serial number of the supervision code is represented by a 9-bit number sequence, for example, 10000 supervision codes are applied by the manufacturing enterprise a once to identify 10000 goods, then the serial number of the supervision code allocated by the tracing platform for the manufacturing enterprise a is from 000000000-. Similarly, the tracing platform can respectively distribute the serial numbers of the supervision codes to the production enterprise B, the production enterprise C and the production enterprise D.
Step S33, checking the sequence formed by the prefix, the time code segment and the serial number, and generating a check digit of the supervision code;
the tracing platform verifies a sequence formed by a prefix, a time code segment and a serial number of the supervision code to generate a check digit of the supervision code, in this embodiment, a 4-digit digital sequence is used to represent the check digit of the supervision code, taking the first supervision code of a production enterprise a as an example, the prefix is 80, the time code segment is 20160122034455666 and the serial number is 000000000, the tracing platform verifies a sequence formed by the prefix, the time code segment and the serial number, that is, 8020160122034455666000000000, by using a predetermined verification algorithm to generate the check digit, for example, 1111.
Step S34, forming the supervision code by the prefix, the time code segment, the sequence number, and the check bit.
The prefix, the time code segment, the serial number and the check digit form a first supervision code 80201601220344556660000000001111 of the production enterprise A. Similarly, second supervisory code 80201601220344556660000000011111 for manufacturing enterprise A may be generated, up to 10000 supervisory code 80201601220344556660000099991111 for manufacturing enterprise A.
And step S204, sending the supervision code to the application equipment.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 7 is a flowchart of a supervision code generation method provided by a third embodiment of the present disclosure, as shown in fig. 7, on the basis of the embodiment shown in fig. 5, the method includes the following steps:
step S401, receiving an application request sent by an application device.
And after receiving the application request, the tracing platform acquires the time information when receiving the application request.
Step S402, determining a time code segment at least according to the time information when the application request is received.
The time code segment can be determined by the tracing platform according to the time information when the application request is received, for example, if the tracing platform receives the application request in 666 milliseconds at 44 minutes 55 seconds at 22 st 3 rd 1 th 22 th 2016, the time code segment determined according to 666 milliseconds at 44 minutes 55 seconds at 3 st 22 th 3 th 22 th 1 th 2016 is 20160122034455666.
And S403, generating a supervision code at least according to the time code segment.
And S404, sending the supervision code to the application equipment.
Step S403 is identical to step S203, and step S404 is identical to step S204, and the detailed method is not described herein again.
In this embodiment, the tracing platform determines the time code segment according to the time information when the application request is received, and the time code segment is associated with the time information.
Fig. 8 is a flowchart of a supervision code generation method according to a fourth embodiment of the present disclosure, as shown in fig. 8, on the basis of the embodiment shown in fig. 7, the method includes the following steps:
step S501, an application request sent by the application equipment is received.
Step S502, determining the number of the application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1.
As shown in fig. 3, the application request sent by the application device 11 is received by the trace back platform at 666 milliseconds at 44 minutes 55 seconds at 22 st 3 rd 22 nd 2016, and the trace back platform further determines the number of the application requests received at that time according to 666 milliseconds at 44 minutes 55 seconds at 3 st 3 rd 3 nd 22 nd 2016 according to the time information 2016. Since the time information may be accurate to milliseconds, for example 666 milliseconds such as 44 minutes 55 seconds at 22 rd/2016/1/2016, when there are many production enterprises applying for the supervision code from the trace-back platform, there may be multiple production enterprises sending application requests to the trace-back platform at the same time.
Step S503, adding N different time offsets to the time information, respectively, to generate N pieces of first time offset information, where one application request corresponds to one piece of first time offset information.
For example, if the application requests sent by the application device 11, the application device 12, the application device 13, and the application device 14 are simultaneously received by the traceability platform at 666 milliseconds at 44 minutes and 55 seconds at 22 days and 3 points at 1 month and 22 months in 2016, 4 different time offsets are added to the traceability platform on the basis of 666 milliseconds at 44 minutes and 55 seconds at 3 points at 1 month and 22 days in 2016, for example, 1 millisecond, 3 milliseconds, 5 milliseconds, and 7 milliseconds at 4 different time offsets, to generate 4 pieces of first time offset information, where the 4 pieces of first time offset information are respectively 2016 at 44 minutes and 55 seconds 667 milliseconds at 3 points at 22 days and 3 points at 1 month and 22 months in 2016, 44 minutes and 55 seconds 669 milliseconds at 44 minutes and 55 seconds 671 milliseconds at 3 points at 22 days and 3 points at 44 minutes and 55 seconds 673 milliseconds at 22 days and 22 months in 2016. An application request corresponds to a first time offset message, for example, the application request sent by the application device 11 corresponds to 2016, 1, 22, 3, points in 2016, 44 minutes, 55 seconds 667 milliseconds, the application request sent by the application device 12 corresponds to 2016, 1, 22, 3, points in 2016, 44 minutes, 55 seconds 669 milliseconds, the application request sent by the application device 13 corresponds to 2016, 1, 22, 3, points in 2016, 44 minutes, 55 seconds 671 milliseconds, and the application request sent by the application device 14 corresponds to 2016, 1, 22, 3, points in 2016, 44 minutes, 55 seconds 673 milliseconds.
Step S504, determining the time code segment according to the first time offset information corresponding to each application request, wherein the time code segment comprises the first time offset information.
The retroactive platform generates time code segments according to the first time offset information corresponding to each application request, for example, the time code segment generated according to 44 minutes, 55 seconds and 667 milliseconds at 22: 3: 22/2016 is 20160123034455667, the time code segment generated according to 669 milliseconds at 44 minutes and 55 seconds at 22: 3: 44: 2016 is 20160123034455669, the time code segment generated according to 44 minutes and 55 seconds and 671 milliseconds at 22: 3: 44: 22: 2016 is 20160123034455671, and the time code segment generated according to 673 milliseconds at 3: 44: 55 seconds at 2016 and 1: 22: 3: 20160123034455673.
Step S505, generating a supervision code at least according to the time code segment;
and step S506, sending the supervision code to the application equipment.
Step S505 is consistent with step S203, and step S506 is consistent with step S204, and the detailed method is not described herein again.
In this embodiment, when the tracing platform receives a plurality of application requests at the same time, the tracing platform respectively adds a plurality of different time offsets to the time information corresponding to the time to generate a plurality of first time offset information, one application request corresponds to one first time offset information, the time code segment of the supervision code applied by the application request is generated according to the first time offset information corresponding to each application request, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and thus, repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 9 is a flowchart of a supervision code generation method according to a fifth embodiment of the present disclosure, as shown in fig. 9, on the basis of the embodiment shown in fig. 7, the method includes the following steps:
step S601, receiving an application request sent by an application device.
Step S602, determining the number of application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1; the time information corresponds to M different code segment serial numbers, and M is greater than or equal to N.
For example, the traceability platform receives the application requests sent by the application devices 11, 12, 13, 14 at 666 milliseconds at 44 minutes 55 seconds at 3 points at 22 days at 1 month and 22 months at 2016, that is, the number N of the application requests corresponding to 666 milliseconds at 44 minutes 55 seconds at 3 points at 22 days at 1 month and 22 months at 2016 is 4. In addition, each time identified by the time information corresponds to a preset number of different code segment numbers, for example, 666 milliseconds at 44 minutes 55 seconds at 22 st 3 nd 22 th 1 th 2016 correspond to 1000 code segment numbers, the 1000 code segment numbers are selected from 000-999, 20160122034455666000 to identify a first application request at 666 milliseconds at 44 minutes 55 seconds at 22 st 3 rd 3 th 22 th 1 th 2016, 20160122034455666001 to identify a second application request at 666 milliseconds at 44 minutes 55 seconds at 22 st 3 th 22 th 2016, 20160122034455666999 to identify a 1000 th application request at 666 milliseconds at 666 seconds at 44 minutes 55 th 3 th 22 th 2016, and similarly, any time other than 666 milliseconds at 44 minutes 55 seconds at 22 rd 3 nd 3 th 18 th 2016 also corresponds to 1000 code segment numbers.
Step S603, obtaining N different code segment sequence numbers from the M different code segment sequence numbers.
In this embodiment, the number of the code segment sequence numbers corresponding to the time of each time information identifier is greater than the number of the concurrent requests received by the time tracing platform, that is, the number of the concurrent requests received by the time tracing platform does not exceed 1000.
The retroactive platform obtains 4 different code segment sequence numbers such as 004, 007, 009 and 020 from 1000 code segment sequence numbers corresponding to 666 milliseconds at 44 minutes and 55 seconds at 22 days and 3 days of 2016 year.
Step S604, generating N different time code segments according to the time information and the N different code segment serial numbers, wherein each time code segment comprises the time information and one code segment serial number in the N different code segment serial numbers, and one application request corresponds to one time code segment.
The tracing platform generates 4 different time code segments according to the 2016 time information, i.e., 666 milliseconds at 44 minutes, 55 seconds and 4 different code segment numbers, e.g., 004, 007, 009, 020 at 22 days and 3 months in 1 year and 22 months, wherein the 4 different time code segments are 20160122034455666004, 20160122034455666007, 20160122034455666009, 20160122034455666020 respectively, one application request corresponds to one time code segment, e.g., 20160122034455666004 corresponds to the application request sent by the application device 11, 20160122034455666007 corresponds to the application request sent by the application device 12, 20160122034455666009 corresponds to the application request sent by the application device 13, and 20160122034455666020 corresponds to the application request sent by the application device 14.
In addition, the N different code segment sequence numbers are successively incremented, for example, the 4 different code segment sequence numbers are 001, 002, 003, 004, respectively, 666 milliseconds at 44 minutes 55 seconds at 22 days 3 of 1 month and 22 months in 2016, and the 4 different code segment sequence numbers generate 4 different time code segments, and the 4 different time code segments are 20160122034455666001, 20160122034455666002, 20160122034455666003, and 20160122034455666004, respectively.
Step S605, generating a supervision code at least according to the time code segment;
and step S606, sending the supervision code to the application equipment.
Step S605 is identical to step S203, and step S606 is identical to step S204, and the detailed method is not described herein again.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, a plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, the tracing platform allocates one code segment serial number to each application request from a plurality of different code segment serial numbers corresponding to the time information identified at the same time, the time code segment of the supervision code applied by the application request is generated according to the time information and the code segment serial number, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and therefore repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 10 is a flowchart of a supervision code generation method according to a sixth embodiment of the present disclosure, and as shown in fig. 10, on the basis of the embodiment shown in fig. 9, the method of step S603 includes the following steps:
and step S71, determining whether the minimum code segment sequence number in the M different code segment sequence numbers is allocated to the time code segment.
For example, 666 milliseconds at 44 minutes and 55 minutes at 22 days 3 of 2016 have 1000 code segment numbers, which are from 000-999. It is determined whether the smallest code segment sequence number 000 of the 1000 code segment sequence numbers has been assigned to the time code segment.
Step S72, if the minimum code segment sequence number is already allocated to the time code segment, determining the largest first code segment sequence number allocated to the time code segment among the M different code segment sequence numbers, and storing the first code segment sequence number in a code segment sequence number table.
If 000 have been allocated to the time code segment, then the largest first code segment sequence number allocated to the time code segment is determined from the 1000 code segment sequence numbers, e.g., 001, 002, 003, 004 of the 1000 code segment sequence numbers are allocated to the time code segment, then the largest first code segment sequence number allocated to the time code segment is 004, and 004 is stored in the code segment sequence number table.
Step S73, traversing N application requests, obtaining the first code segment serial number stored in the code segment serial number table, distributing the next code segment serial number of the first code segment serial number to the currently traversed application request, and storing the next code segment serial number in the code segment serial number table.
For example, the number N of application requests corresponding to 666 milliseconds at 44 minutes 55 seconds at 22 days 3 at 1 month 22 in 2016 is 4, and the 4 application requests are traversed, specifically, the application requests sent by the application device 11 are traversed to the application requests sent by the application device 14; for example, the currently traversed application request is an application request sent by the application device 11, the first code segment serial number 004 is obtained from the code segment serial number table, where the first code segment serial number 004 indicates that 004 has been allocated to the time code segment, then the next code segment serial number of 004 is allocated to the application request sent by the application device 11, the next code segment serial number of 004 may be 005, and 005 is stored in the code segment serial number table, and at this time, the first code segment serial number stored in the code segment serial number table is updated to 005.
When traversing the application request sent by the application device 12, the first code segment serial number 005 is obtained from the code segment serial number table, the next code segment serial number 006 of 005 is allocated to the application request sent by the application device 12, and 006 is stored in the code segment serial number table, at this time, the first code segment serial number stored in the code segment serial number table is updated to 006. The foregoing steps are repeated until the application request sent by the traversing application device 14 is finished.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, a plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, the tracing platform traverses each application request, a different code segment serial number is allocated to each application request, the time code segment of the supervision code applied by the application request is generated according to the time information and the code segment serial number, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and therefore repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 11 is a flowchart of a supervision code generation method according to a seventh embodiment of the present disclosure, and as shown in fig. 11, on the basis of the embodiment shown in fig. 9, the method of step S603 includes the following steps:
and step S81, determining whether the minimum code segment sequence number in the M different code segment sequence numbers is allocated to the time code segment.
Step S81 is identical to step S71, and the detailed description of the method is omitted here.
And step S82, if the minimum code segment serial number is not allocated to the time code segment, allocating the minimum code segment serial number to one application request in the N application requests, and storing the minimum code segment serial number in a code segment serial number table.
If the minimum code segment number 000 of the 1000 code segment numbers is not allocated to the time code segment, 000 is allocated to one application request of the 4 application requests in the fourth embodiment, for example, the application request sent by the application device 11, and 000 is stored in the code segment number table.
Step S83, traversing the remaining N-1 application requests, obtaining the largest first code segment serial number stored in the code segment serial number table, distributing the next code segment serial number of the first code segment serial number to the currently traversed application request, and storing the next code segment serial number in the code segment serial number table.
Traversing the remaining 3 application requests, traversing the application request sent from the application device 12 to the application request sent from the application device 14; for example, the currently traversed application request is an application request sent by the application device 12, a first code segment serial number 000 is obtained from the code segment serial number table, where the first code segment serial number 000 indicates that 000 has been allocated to a time code segment, then the next code segment serial number of 000 is allocated to the application request sent by the application device 12, the next code segment serial number of 000 may be 001, 001 is stored in the code segment serial number table, and at this time, the first code segment serial number stored in the code segment serial number table is updated to 001.
When traversing the application request sent by the application device 13, acquiring the first code segment serial number 001 from the code segment serial number table, allocating the next code segment serial number 002 of 001 to the application request sent by the application device 13, and storing 002 in the code segment serial number table, at this time, updating the first code segment serial number stored in the code segment serial number table to be 002. The foregoing steps are repeated until the application request sent by the traversing application device 14 is finished.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, a plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, the tracing platform traverses each application request, a different code segment serial number is allocated to each application request, the time code segment of the supervision code applied by the application request is generated according to the time information and the code segment serial number, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and therefore repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 12 is a flowchart of a supervision code generation method according to an eighth embodiment of the present disclosure, where this embodiment may be based on the embodiment shown in fig. 10 or fig. 11, as shown in fig. 12, optionally, on the basis of the embodiment shown in fig. 10, the method includes the following steps:
step S71, determining whether the minimum code segment sequence number in the M different code segment sequence numbers is allocated to the time code segment;
step S72, if the minimum code segment serial number is already allocated to the time code segment, determining the maximum first code segment serial number allocated to the time code segment in the M different code segment serial numbers, and storing the first code segment serial number in a code segment serial number table;
step S73, traversing N application requests, and obtaining the largest first code segment sequence number stored in the code segment sequence number table.
For example, the largest first code segment number stored in the code segment number table is 996, the above 4 application requests are traversed, the application request sent by the application device 11 is traversed to the application request sent by the application device 14, for example, the currently traversed application request is the application request sent by the application device 11, and the first code segment number 996 is obtained from the code segment number table.
And step S74, determining whether the first code segment sequence number is the same as the largest second code segment sequence number of the M different code segment sequence numbers.
In the above embodiment, the largest second code segment sequence number among the 1000 different code segment sequence numbers is 999, and after the tracing platform obtains the first code segment sequence number 996 from the code segment sequence number table, it is determined whether the first code segment sequence number is the same as the second code segment sequence number.
And step S75, if the first code segment sequence number is not the same as the second code segment sequence number, allocating the next code segment sequence number of the first code segment sequence number to the currently traversed application request.
Because the first code segment serial number 996 is different from the second code segment serial number 999, the next code segment serial number 997 of the first code segment serial number 996 is allocated to the currently traversed application request, such as the application request sent by the application device 11, and 997 is stored in the code segment serial number table, at this time, the first code segment serial number stored in the code segment serial number table is updated to 997.
When the application request sent by the application device 12 is traversed by the tracing platform, step S73 is repeatedly executed, a first code segment serial number 997 is obtained from the code segment serial number table, 997 is allocated to the currently traversed application request, such as the application request sent by the application device 12, and 998 is stored in the code segment serial number table, at this time, the first code segment serial number stored in the code segment serial number table is updated to 998. Similarly, the code segment serial number allocated to the application request sent by the application device 13 is 999, and the first code segment serial number stored in the code segment serial number table is updated to 999.
When the tracing platform traverses the application request sent by the application device 14, step S73 is repeatedly executed, and the first code segment sequence number 999 is obtained from the code segment sequence number table, because 999 is the largest code segment sequence number among 1000 different code segment sequence numbers, it indicates that 1000 different code segment sequence numbers are all allocated to different application requests. Because the traceability platform receives 666 milliseconds from the application device 11, the application device 12, the application device 13 and the application device 14 at the same time at 44 minutes and 55 seconds at 3 points at 22 days at 1 month and 22 months at 2016, one code segment serial number is obtained from 1000 different code segment serial numbers corresponding to 667 milliseconds at the next time of 666 milliseconds at 44 minutes and 55 seconds at 3 points at 44 minutes and 55 seconds at 22 days at 22 months at 1 month and 22 months at 2016, and the code segment serial number is allocated to the application request sent by the application device 14.
In this embodiment, the largest first code segment sequence number allocated to the time code segment is compared with the largest second code segment sequence number in the plurality of code segment sequence numbers corresponding to the time information, and if the first code segment sequence number is different from the second code segment sequence number, which indicates that the plurality of code segment sequence numbers corresponding to the time information are not all allocated to the time code segment yet, the next code segment sequence number of the first code segment sequence number is allocated to the currently traversed application, so as to avoid that the code segment sequence number allocated to the currently traversed application exceeds the upper limit value in the plurality of code segment sequence numbers.
Fig. 13 is a flowchart of a supervision code generation method provided in a ninth embodiment of the present disclosure, where this embodiment may be based on the embodiment shown in fig. 10 or fig. 11, as shown in fig. 13, optionally, on the basis of the embodiment shown in fig. 11, the method includes the following steps:
and step S81, determining whether the minimum code segment sequence number in the M different code segment sequence numbers is allocated to the time code segment.
And step S82, if the minimum code segment serial number is not allocated to the time code segment, allocating the minimum code segment serial number to one application request in the N application requests, and storing the minimum code segment serial number in a code segment serial number table.
If the minimum code segment number 000 of the 1000 code segment numbers is not allocated to the time code segment, 000 is allocated to one application request of the 4 application requests in the fourth embodiment, for example, the application request sent by the application device 11, and 000 is stored in the code segment number table.
And step S83, traversing the remaining N-1 application requests, and acquiring the largest first code segment sequence number stored in the code segment sequence number table.
Traversing the remaining 3 application requests, the application request sent from the application device 12 traverses to the application request sent from the application device 14. For example, the current traversal is the application request sent by the application device 12, and the largest first code segment number 000 stored in the code segment number table is obtained.
Step S84, comparing the next code segment sequence number of the first code segment sequence number with the maximum code segment sequence number currently stored in the code segment sequence number table;
in this embodiment, the same code segment number may be allocated to a plurality of different application requests, for example, a code segment number 001 next to the first code segment number 000 may be allocated to both an application request sent by the application device 12 and an application request sent by the application device 13, so that after allocating 001 to the application request sent by the application device 12, 001 needs to be stored in the code segment number table, and after allocating 001 to the application request sent by the application device 13, 001 needs to be stored in the code segment number table again, that is, 001 will be stored in the code segment number table repeatedly. In order to avoid that the same code segment serial number is allocated to a plurality of different application requests, before 001 is stored in the code segment serial number table, concurrent verification is performed, specifically, 001 to be stored in the code segment serial number table is compared with the currently stored maximum code segment serial number in the code segment serial number table.
Step S85, if the next code segment serial number of the first code segment serial number is different from the maximum code segment serial number currently stored in the code segment serial number table, the next code segment serial number of the first code segment serial number is distributed to the currently traversed application request, and the next code segment serial number is stored in the code segment serial number table.
If the next code segment sequence number of the first code segment sequence number is different from the currently stored maximum code segment sequence number in the code segment sequence number table, for example, 001, that is, the currently stored maximum code segment sequence number in the code segment sequence number table is not 001, which indicates that 001 is not allocated to another application request, 001 is allocated to the currently traversed application request, for example, the application request sent by the application device 12, and 001 is stored in the code segment sequence number table.
In addition, if the next code segment sequence number of the first code segment sequence number is the same as the maximum code segment sequence number currently stored in the code segment sequence number table, that is, the maximum code segment sequence number currently stored in the code segment sequence number table is 001, which indicates that 001 has been allocated to another application request, one code segment sequence number is acquired from 1000 different code segment sequence numbers corresponding to the next time of 666 milliseconds at 22/3/22/44/55 667 milliseconds in 2016 year, 1 month, 22/3/667 milliseconds, and the code segment sequence number is allocated to the currently traversed application request, such as the application request sent by the application device 12.
In this embodiment, the code segment serial number to be stored in the code segment serial number table is compared with the currently stored maximum code segment serial number in the code segment serial number table, and if the code segment serial number to be stored in the code segment serial number table is different from the currently stored maximum code segment serial number in the code segment serial number table, it indicates that the code segment serial number to be stored in the code segment serial number table is not allocated to other application requests.
Fig. 14 is a flowchart of a supervision code generation method provided in a tenth embodiment of the present disclosure, where the method includes the following steps:
and step S1001, receiving an application request sent by the application equipment.
Step S1002, determining the number of application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1. The time information corresponds to M different code segment serial numbers, and M is smaller than N.
In this embodiment, the number of application requests received by the tracing platform at 666 milliseconds at 44 minutes 55 seconds at 22 days 3 at 1 month and 22 months in 2016 is greater than the number of code segment numbers corresponding to 666 milliseconds at 44 minutes 55 seconds at 3 days 3 at 22 days 3 at 1 month and 22 months in 2016, for example, 1000 code segment numbers correspond to 666 milliseconds at 44 minutes 55 seconds at 3 days 44 at 22 months at 1 month and 22 months in 2016, and the number N of application requests received by the tracing platform at 666 milliseconds at 44 minutes 55 at 1 month and 22 months in 2016 is greater than 1000.
Step S1003, determining time code segments corresponding to M application requests in the N application requests respectively according to the time information and the M different code segment serial numbers, wherein each time code segment comprises the time information and one code segment serial number.
Optionally, each time information corresponds to 1000 code segment serial numbers, the tracing platform receives 1005 application requests at 666 milliseconds at 44 minutes and 55 seconds at 22 st 3 rd 22 nd 2016, and then generates 1000 time code segments according to 666 milliseconds at 44 minutes and 55 seconds at 3 st 44 nd 55 th 22 nd 2016 and 1000 code segment serial numbers, for example, from 000-charge 999, according to the time information 2016, each time code segment includes one code segment serial number in 20160122034455666 and 000-charge 999, and the 1000 time code segments are allocated to 1000 application requests in the 1005 application requests.
Step S1004, adding a preset time offset to the time information, and generating second time offset information.
A predetermined time offset, for example, 3 msec, is added to 666 msec at 44 min 55 sec at 3 p 1/22 p 3 of the time information 2016, and second time offset information 669 msec at 44 min 55 sec at 3 p 1/22 p 1/2016 is generated.
Step S1005, determining, according to the second time offset information, time code segments corresponding to the application requests, except the M application requests, in the N application requests respectively.
Optionally, the second time offset information corresponds to M different code segment sequence numbers. Determining, according to the second time offset information, time code segments corresponding to application requests, except the M application requests, in the N application requests respectively, includes: acquiring (N-M) different code segment serial numbers from the M different code segment serial numbers, wherein the (N-M) is greater than 0; and determining time code segments respectively corresponding to the application requests except the M application requests in the N application requests according to the second time offset information and the (N-M) different code segment serial numbers.
Similarly, the second time offset information 2016 has 1000 code segment numbers corresponding to 44 minutes and 55 seconds 669 milliseconds at 22/1/10/1000, for example, from 000-year 999, 5 code segment numbers, for example, 001, 002, 003, 004 and 005, are selected from the 1000 code segment numbers corresponding to the second time offset information 2016, and 5 time code segments are generated according to the second time offset information 2016, the 5 time code segments are 20160122034455669001, 20160122034455669002, 20160122034455669003, 20160122034455669004 and 20160122034455669005, respectively, and the 5 time code segments are allocated to the remaining 5 application requests in the 1005 application requests. And step S1006, generating a supervision code at least according to the time code segment.
And step S1007, sending the supervision code to the application equipment.
Step S1006 is identical to step S203, and step S1007 is identical to step S204, and the detailed method is not described herein again.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, the plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, when the number of the plurality of concurrent application requests received by the tracing platform at the same time is greater than the plurality of different code segment serial numbers corresponding to the same time, a preset time delay is added on the basis of the time, the code segment serial number of the application request is determined according to the time information after the time delay, the time code segment of the supervision code applied by the application request is generated according to the time information after the time delay and the code segment serial number, the time code segments of a plurality of supervision codes applied at the same time are different, and therefore the repetition of the plurality of supervision codes applied at the same time is avoided.
Fig. 15 is a flowchart of a supervision code generation method according to an eleventh embodiment of the present disclosure, where the method includes the following steps:
step S1101, receiving an application request sent by an application device.
The application request comprises the time information, and the time information is set by the user through the application equipment.
In this embodiment, the time information corresponding to the application request is the time information set on the traceability platform after the personnel of the manufacturing enterprise logs in the traceability platform through the application device, for example, the manufacturing enterprise is expected to sell the goods on 2016 year 1 month 22, and applies for the supervision code of the goods on 2016 year 1 month 1, then sets a time code segment of 2016 year 1 month 22 month 3 point 44 minutes 55 seconds 666 milliseconds on the traceability platform, which indicates that the manufacturing enterprise is expected to apply for the time code segment associated with 2016 year 1 month 22 month 3 point 44 minutes 55 seconds 666 milliseconds.
Step S1102, querying a preset relationship table according to the time information, where the relationship table includes historical time information, and the historical time information is time information included in a historical application request received before the application request is received.
In this embodiment, the historical time information is time information included in a historical application request received before the application request is received, for example, if the application requests sent by the application device 11 and the application device 12 have been received by the tracing platform before the application request sent by the application device 13 is received, the application requests sent by the application device 11 and the application device 12 are historical application requests, the historical application requests include historical time information, and the historical time information is sequentially stored in the relationship table.
When the tracing platform receives an application request sent by the application device 13, a preset relation table is queried according to time information in the application request, such as 666 milliseconds at 44 minutes and 55 minutes at 22 days and 3 days of 1 month and 22 months in 2016, and the relation table stores historical time information respectively included in historical application requests sent by the application device 11 and the application device 12.
Step S1103, determining whether there is historical time information matching the time information in the preset relationship table. If historical time information matched with the time information exists in a preset relation table, executing step S1104-step S1106; if there is no history time information matching the time information in the preset relationship table, step S1107 and step S1108 are executed.
The tracing back platform queries a preset relationship table according to time information included in an application request sent by the application device 13, such as 666 milliseconds at 44 minutes 55 seconds at 22 days 1 and 22 months 2016, and determines whether 666 milliseconds at 44 minutes 55 seconds at 3 points at 22 days 3 and 22 months 2016 are stored in the relationship table.
Step S1104, adding a preset time offset to the time information to generate third time offset information, where the third time offset information is not matched with the historical time information in the preset relationship table;
if the relation table has time information matched with 666 milliseconds at 44 minutes 55 seconds at 22 days 3 at 1 month and 22 months in 2016, indicating that 666 milliseconds at 44 minutes 55 seconds at 3 days 3 at 22 days 3 at 1 month and 22 months in 2016 have been used to generate the time code segment, a preset time offset is added to the 666 milliseconds at 44 minutes 55 seconds at 3 days 3 at 22 days 3 at 1 month and 22 months in 2016 to generate 670 milliseconds at 44 minutes 55 seconds at 3 days 3 at 22 months 3 at 1 month in 2016, and the relation table is queried according to the third time offset information 2016, so as to continuously determine whether there is historical time information matched with the third time offset information in the relation table.
Step S1105, determining a time code segment according to the third time offset information, wherein the time code segment includes the third time offset information.
If there is no historical time information in the relationship table that matches the third time offset information, then the time code segment, which may be 20160122034455670, is determined from the third time offset information 2016, 1, 22, 3, 44 minutes, 55 seconds, 670 milliseconds.
Step S1106, storing the third time offset information in the preset relationship table.
And the retroactive platform also stores the third time offset information 2016, 1, 22, 3, 44, 55, second 670, ms into a relationship table, indicating that the time information 2016, 1, 22, 3, 44, 55, second 2016, ms has been used to generate a time code segment.
Step S1107, according to the time information included in the application request, a time code segment is determined, and the time code segment includes the time information. If the relation table does not have time information matched with 666 milliseconds of 44 minutes 55 seconds at 22 rd 3 rd point 1/22 th year 2016, the retroactive platform determines a time code segment according to 666 milliseconds of 44 minutes 55 seconds at 3 rd point 22 th/22 th year 2016, wherein the time code segment can be 20160122034455666.
Step S1108, storing the time information in the preset relationship table.
And the retroactive platform also stores the 2016 number of times information 1/22/3/44/55/666 milliseconds in the relationship table, indicating that the 2016 number of times information 1/22/3/44/55/666 milliseconds have been used to generate the timecode segment.
And step S1109, generating a supervision code at least according to the time code segment.
Step S1110, sending the supervision code to the application device.
Step S1109 is identical to step S203, and step S1110 is identical to step S204, and the detailed method is not described herein again.
In this embodiment, the application request sent by the application device further includes time information, where the time information is time information input by the user through the application device, and the tracing platform queries the relationship table according to the time information, to determine whether the time information included in the application request is already used for allocating a time code segment, so as to avoid repetition of time code segments allocated to different application requests.
Fig. 16 is a flowchart of a supervision code generation method according to a twelfth embodiment of the present disclosure, where the method includes the following steps:
step S1101, receiving an application request sent by an application device.
The application request comprises the time information, and the time information is set by the user through the application equipment.
In this embodiment, the time information corresponding to the application request is the time information set on the traceability platform after the personnel of the manufacturing enterprise logs in the traceability platform through the application device, for example, the manufacturing enterprise is expected to sell the goods on 2016 year 1 month 22, and applies for the supervision code of the goods on 2016 year 1 month 1, then sets a time code segment of 2016 year 1 month 22 month 3 point 44 minutes 55 seconds 666 milliseconds on the traceability platform, which indicates that the manufacturing enterprise is expected to apply for the time code segment associated with 2016 year 1 month 22 month 3 point 44 minutes 55 seconds 666 milliseconds.
Step S1102, inquiring a preset relation table according to the time information, wherein the relation table comprises historical time information, and the historical time information is time information included in a historical application request received before the application request is received;
in this embodiment, the historical time information is time information included in a historical application request received before the application request is received, for example, if the application requests sent by the application device 11 and the application device 12 have been received by the tracing platform before the application request sent by the application device 13 is received, the application requests sent by the application device 11 and the application device 12 are historical application requests, the historical application requests include historical time information, and the historical time information is sequentially stored in the relationship table.
When the tracing platform receives an application request sent by the application device 13, a preset relation table is queried according to time information in the application request, such as 666 milliseconds at 44 minutes and 55 minutes at 22 days and 3 days of 1 month and 22 months in 2016, and the relation table stores historical time information respectively included in historical application requests sent by the application device 11 and the application device 12.
Step S1103, determining whether there is historical time information matching the time information in the preset relationship table. If historical time information matched with the time information exists in a preset relation table, executing step S1204-step S1206; if there is no history time information matching the time information in the preset relationship table, step S1107 and step S1108 are executed.
The tracing back platform queries a preset relationship table according to time information included in an application request sent by the application device 13, such as 666 milliseconds at 44 minutes 55 seconds at 22 days 1 and 22 months 2016, and determines whether 666 milliseconds at 44 minutes 55 seconds at 3 points at 22 days 3 and 22 months 2016 are stored in the relationship table.
In addition, the preset relation table further includes code segment serial numbers, one historical time information corresponds to one code segment serial number, and the code segment serial numbers corresponding to a plurality of same historical time information respectively are continuously increased.
In this embodiment, the specific structure of the relationship table can be as shown in table 1:
TABLE 1
Historical time information Code segment number
666 ms for 44 min 55 s at 3 o' clock of 22 d.1/2016 001
666 ms for 44 min 55 s at 3 o' clock of 22 d.1/2016 002
When the tracing platform receives an application request sent by the application device 13, a preset relationship table is queried according to time information in the application request, such as 666 milliseconds at 44 minutes and 55 minutes at 22: 3 points in 1/month in 2016, the relationship table stores historical time information respectively included in historical application requests sent by the application device 11 and the application device 12, as shown in table 1, the historical time information respectively included in the historical application requests sent by the application device 11 and the application device 12 is 666 milliseconds at 44 minutes and 55 minutes at 3 points in 22/month in 2016, one piece of historical time information corresponds to one code segment serial number, and the code segment serial numbers respectively corresponding to a plurality of pieces of same historical time information are continuously increased.
Step S1204, determining the next code segment sequence number of the maximum code segment sequence number according to the maximum code segment sequence number corresponding to the historical time information matched with the time information;
as can be seen from table 1, the maximum code segment number corresponding to the history time information matched with 666 milliseconds at 44 minutes and 55 seconds at 22/1/2016 of the time information is 002, and the next code segment number to the maximum code segment number, that is, 003 is determined.
Step S1205, determining a time code segment according to the time information and the sequence number of the next code segment, wherein the time code segment comprises the time information and the sequence number of the next code segment;
from the time information 2016, 1/22/3/44/55/666/003, it can be determined that the time code segment in the supervision code applied by the application request sent by the application device 13 is 20160122034455666003.
Step S1206, storing the corresponding relationship between the time information and the next code segment sequence number in the preset relationship table.
Storing the corresponding relationship between 666 milliseconds and 003 minutes at 44 minutes and 55 seconds at 3 points of 22 days and 1 month of 2016 year into the preset relationship table to obtain the following table 2:
TABLE 2
Historical time information Code segment number
666 ms for 44 min 55 s at 3 o' clock of 22 d.1/2016 001
666 ms for 44 min 55 s at 3 o' clock of 22 d.1/2016 002
666 ms for 44 min 55 s at 3 o' clock of 22 d.1/2016 003
Step S1107, according to the time information included in the application request, a time code segment is determined, and the time code segment includes the time information. If the relation table does not have time information matched with 666 milliseconds of 44 minutes 55 seconds at 22 rd 3 rd point 1/22 th year 2016, the retroactive platform determines a time code segment according to 666 milliseconds of 44 minutes 55 seconds at 3 rd point 22 th/22 th year 2016, wherein the time code segment can be 20160122034455666.
Step S1108, storing the time information in the preset relationship table.
And the retroactive platform also stores the 2016 number of times information 1/22/3/44/55/666 milliseconds in the relationship table, indicating that the 2016 number of times information 1/22/3/44/55/666 milliseconds have been used to generate the timecode segment.
And step S1109, generating a supervision code at least according to the time code segment.
Step S1110, sending the supervision code to the application device.
Step S1109 is identical to step S203, and step S1110 is identical to step S204, and the detailed method is not described herein again.
In this embodiment, the application request sent by the application device further includes time information, where the time information is time information input by the user through the application device, and the tracing platform queries the relationship table according to the time information, to determine whether the time information included in the application request is already used for allocating a time code segment, so as to avoid repetition of time code segments allocated to different application requests.
Fig. 17 is a flowchart of a supervision code generation method according to a thirteenth embodiment of the present disclosure, where the supervision code generation method includes the following steps:
step S1301, receiving an application request sent by application equipment, wherein the application request is used for applying for supervision codes and comprises the goods name and the number of the supervision codes required to be applied.
Step S1302, determining a prefix of the supervision code according to the goods name.
Optionally, determining the category of the goods according to the goods name; and determining the prefix of the supervision code according to the category.
Step S1302 is the same as step S31, and the detailed method is not described herein again.
And step S1303, determining a time code segment at least according to the time information associated with the application request.
Optionally, determining a time code segment at least according to the time information when the application request is received; or, determining a time code segment at least according to the time information when the application request is processed; or, the application request includes the time information, the time information is set by the user through the application device, and the time code segment is determined at least according to the time information included in the application request.
Determining a time code segment at least according to the time information when the application request is received; or, determining a time code segment at least according to the time information when the application request is processed; or, the method for determining the time code segment at least according to the time information included in the application request is consistent with the above embodiment, and the specific process is not described herein again.
Step S1304, determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased.
Step S1305, verifying a sequence formed by the prefix, the time code segment, and the sequence number, and generating a check bit of the supervision code.
Step S1306, the supervision code is formed by the prefix, the time code segment, the sequence number, and the check bit.
Step S1307, sending the supervision code to the application device.
Step S1304 corresponds to step S32, step S1305 corresponds to step S33, and step S1306 corresponds to step S34, which is not repeated herein.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 18 is a flowchart of a supervisory code generation method according to a fourteenth embodiment of the present disclosure, and on the basis of the embodiment shown in fig. 17, the method includes the following steps:
step S1401, receiving an application request sent by an application device, where the application request is used for applying for a supervision code, and the application request includes a cargo name and the number of supervision codes required to be applied.
Step S1401 is the same as step S1301, and the detailed method is not described herein again.
And S1402, determining the prefix of the supervision code according to the goods name.
Step S1402 is the same as step S1302, and the detailed method is not described herein again.
Step S1403, determining the number of application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1.
Step S1403 is identical to step S502, and the detailed method is not described herein again.
Step S1404, adding N different time offsets to the time information, respectively, to generate N pieces of first time offset information, where one application request corresponds to one piece of first time offset information.
Step S1404 is the same as step S503, and the detailed method is not described here again.
Step S1405, determining the time code segment according to the first time offset information corresponding to each application request, where the time code segment includes the first time offset information.
Step S1405 is the same as step S504, and the detailed method is not described herein again.
Step S1406, determining a serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased.
Step S1407, the sequence formed by the prefix, the time code segment and the serial number is checked, and the check bit of the supervision code is generated.
Step S1408, forming the supervision code by the prefix, the time code segment, the sequence number, and the check bit.
And step S1409, sending the supervision code to the application equipment.
Step S1406 corresponds to step S32, step S1407 corresponds to step S33, and step S1408 corresponds to step S34, and the detailed method is not described herein again.
In this embodiment, when the tracing platform receives a plurality of application requests at the same time, the tracing platform respectively adds a plurality of different time offsets to the time information corresponding to the time to generate a plurality of first time offset information, one application request corresponds to one first time offset information, the time code segment of the supervision code applied by the application request is generated according to the first time offset information corresponding to each application request, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and thus, repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 19 is a flowchart of a supervision code generation method according to a fifteenth embodiment of the present disclosure, and on the basis of the embodiment shown in fig. 17, the method includes the following steps:
step S1501, receiving an application request sent by an application device, wherein the application request is used for applying for supervision codes and comprises the goods name and the number of the supervision codes required to be applied.
Step S1501 is the same as step S1301, and the detailed method is not described herein again.
And S1502, determining the prefix of the supervision code according to the goods name.
Step S1502 is the same as step S1302, and the detailed method is not described herein again.
Step S1503, determining the number of application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1. The time information corresponds to M different code segment serial numbers, and M is greater than or equal to N.
Step S1503 is identical to step S602, and the detailed description of the method is omitted here.
Step S1504, acquiring N different code segment sequence numbers from the M different code segment sequence numbers.
Step S1504 is the same as step S603, and the detailed method is not described herein again.
Step S1505, according to the time information and the N different code segment serial numbers, generating N different time code segments, where each time code segment includes the time information and one of the N different code segment serial numbers, and one application request corresponds to one time code segment.
Step S1505 is identical to step S604, and the detailed method is not described herein again.
Step S1506, determining a serial number of each supervision code according to the number of the supervision codes required to be applied, where the serial number of each supervision code is continuously incremented.
Step S1507, the sequence formed by the prefix, the time code segment and the serial number is checked, and the check bit of the supervision code is generated.
Step S1508, forming the supervision code by the prefix, the time code segment, the sequence number, and the check bits.
Step S1509, the supervision code is sent to the application device.
Step S1506 corresponds to step S32, step S1507 corresponds to step S33, and step S1508 corresponds to step S34, which will not be described herein again.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, a plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, the tracing platform allocates one code segment serial number to each application request from a plurality of different code segment serial numbers corresponding to the time information identified at the same time, the time code segment of the supervision code applied by the application request is generated according to the time information and the code segment serial number, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and therefore repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 20 is a flowchart of a supervision code generation method according to a sixteenth embodiment of the present disclosure, and on the basis of the embodiment shown in fig. 17, the method includes the following steps:
step S1601, receiving an application request sent by an application device, where the application request is used for applying for a supervision code, and the application request includes a cargo name and the number of supervision codes required to be applied.
Step S1601 is the same as step S1301, and the detailed method is not described here again.
And step S1602, determining a prefix of the supervision code according to the goods name.
Step S1602 is the same as step S1302, and the detailed method is not described herein again.
Step S1603, determining the number of application requests received at the time identified by the time information.
The time information is the time information when the tracing platform receives the application request in step S402. The number of the application requests received at the time identified by the time information is N, wherein N is greater than 1. The time information corresponds to M different code segment serial numbers, and M is smaller than N.
Step S1603 is identical to step S1002, and the detailed method is not described here.
Step S1604, determining time code segments corresponding to M application requests in the N application requests respectively according to the time information and the M different code segment serial numbers, wherein each time code segment comprises the time information and a code segment serial number.
Step S1604 is identical to step S1003, and the detailed method is not described herein again.
Step S1605, adding a preset time offset to the time information, and generating second time offset information.
Step S1605 is identical to step S1004, and the detailed method is not described herein.
Step S1606, determining, according to the second time offset information, time code segments corresponding to the application requests, except the M application requests, in the N application requests.
Step S1606 is identical to step S1005, and the detailed method is not described herein again.
Step S1607, determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased.
Step S1608, verifying a sequence formed by the prefix, the time code segment, and the sequence number, and generating a check digit of the supervision code.
Step S1609, the prefix, the time code segment, the serial number, and the check bit are used to form the supervision code.
And step S1610, sending the supervision code to the application equipment.
Step S1607 is identical to step S32, step S1608 is identical to step S33, and step S1609 is identical to step S34, and the detailed method is not repeated here.
In this embodiment, each time information corresponds to a plurality of different code segment serial numbers, the plurality of different code segment serial numbers can identify a plurality of concurrent application requests received by the tracing platform at the same time, when the number of the plurality of concurrent application requests received by the tracing platform at the same time is greater than the plurality of different code segment serial numbers corresponding to the same time, a preset time delay is added on the basis of the time, the code segment serial number of the application request is determined according to the time information after the time delay, the time code segment of the supervision code applied by the application request is generated according to the time information after the time delay and the code segment serial number, the time code segments of a plurality of supervision codes applied at the same time are different, and therefore the repetition of the plurality of supervision codes applied at the same time is avoided.
Fig. 21 is a flowchart of a method for generating a supervision code according to a seventeenth embodiment of the present disclosure, where the method includes the following steps:
step S1701, sending an application request to the server, where the application request is used for applying for the supervision codes, and the application request includes the names of the goods and the number of the supervision codes required to be applied.
The execution subject of the embodiment is application equipment, and the application equipment can be mobile terminals, computers and other terminal equipment. The application device sends an application request to the server, which may be the tracing platform according to the above embodiment, where the application request is used to apply for the supervision code, as shown in fig. 3, the application device 11 of the enterprise a may apply for the supervision code to the tracing platform, the application device 12 of the enterprise B may apply for the supervision code to the tracing platform, the application device 13 of the enterprise C may apply for the supervision code to the tracing platform, and the application device 14 of the enterprise D may apply for the supervision code to the tracing platform. The application request includes the goods name, and the number of codes required to apply for the code.
And step S1702, receiving and displaying the supervision codes fed back by the server.
The monitoring codes are composed of prefixes, time code segments, serial numbers and check bits, the prefixes are determined by the server according to the goods names, the time code segments are determined by the server according to time information associated with the application requests, the serial numbers of all the monitoring codes are determined by the server according to the number of the monitoring codes required to be applied, the serial numbers of all the monitoring codes are continuously increased, and the check bits are generated by the server through checking of sequences composed of the prefixes, the time code segments and the serial numbers.
The tracing platform determines the prefix of the supervision code according to the goods name; determining a time code segment at least according to the time information associated with the application request; determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased; checking a sequence formed by the prefix, the time code segment and the serial number to generate a check bit of the supervision code; and forming the monitoring code by the prefix, the time code segment, the sequence number and the check bit. And the tracing platform feeds the generated supervision code back to the application equipment.
The method for generating the supervision code by the tracing platform according to the application request is consistent with the method in the above embodiment, and is not described here again.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 22 is a schematic structural diagram of a server according to an embodiment of the present disclosure, where the trace back platform in the foregoing embodiment can be specifically implemented as a server in this implementation, and as shown in fig. 22, the server includes a receiving unit and a processing unit.
The receiving unit is used for receiving the application request sent by the application device.
And the processing unit is coupled to the receiving unit and used for determining a time code segment at least according to the time information associated with the application request.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
On the basis of the embodiment shown in fig. 22, the processing unit is further configured to generate a supervision code at least according to the time code segment.
The server further comprises a sending unit, coupled to the processing unit, for sending the supervision code to the application device.
Optionally, the processing unit is specifically configured to determine the time code segment at least according to the time information when the application request is received.
Further, the processing unit is further configured to determine the number of application requests received at the time identified by the time information.
Optionally, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the processing unit is specifically configured to add N different time offsets to the time information, to generate N pieces of first time offset information, where one application request corresponds to one piece of first time offset information; and determining the time code segment according to first time offset information corresponding to each application request, wherein the time code segment comprises the first time offset information.
In addition, in other embodiments, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the time information corresponds to M different code segment serial numbers, and M is greater than or equal to N; the processing unit is specifically configured to obtain N different code segment sequence numbers from the M different code segment sequence numbers; and generating N different time code segments according to the time information and the N different code segment serial numbers, wherein each time code segment comprises the time information and one of the N different code segment serial numbers, and one application request corresponds to one time code segment.
In addition, in other embodiments, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the time information corresponds to M different code segment serial numbers, and M is smaller than N; the processing unit is specifically configured to determine, according to the time information and the M different code segment serial numbers, time code segments corresponding to M application requests in the N application requests, respectively, where each time code segment includes the time information and a code segment serial number; adding a preset time offset to the time information to generate second time offset information; and determining time code segments respectively corresponding to the application requests except the M application requests in the N application requests according to the second time offset information.
In this embodiment, when the tracing platform receives a plurality of application requests at the same time, the tracing platform respectively adds a plurality of different time offsets to the time information corresponding to the time to generate a plurality of first time offset information, one application request corresponds to one first time offset information, the time code segment of the supervision code applied by the application request is generated according to the first time offset information corresponding to each application request, it is ensured that the time code segments of a plurality of supervision codes applied at the same time are different, and thus, repetition of a plurality of supervision codes applied at the same time is avoided.
Fig. 23 is a schematic structural diagram of a server according to a second embodiment of the present disclosure, where the trace back platform in the foregoing embodiment can be specifically implemented as a server in this implementation, and as shown in fig. 23, the server includes a receiving unit, a processing unit, and a sending unit.
The receiving unit is used for receiving an application request sent by an application device, wherein the application request is used for applying for the supervision codes, and the application request comprises the goods name and the number of the supervision codes required to be applied.
The processing unit is coupled to the receiving unit and the sending unit and used for determining the prefix of the supervision code according to the goods name; determining a time code segment at least according to the time information associated with the application request; determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased; checking a sequence formed by the prefix, the time code segment and the serial number to generate a check bit of the supervision code; and forming the monitoring code by the prefix, the time code segment, the sequence number and the check bit.
And the sending unit is used for sending the supervision code to the application equipment.
Optionally, the processing unit is specifically configured to determine a category to which the goods belong according to the goods name; and determining the prefix of the supervision code according to the category.
Further, the processing unit is specifically configured to determine a time code segment at least according to the time information when the receiving unit receives the application request.
In addition, in other embodiments, the processing unit is specifically configured to determine the time code segment at least according to the time information when the application request is processed.
In addition, in other embodiments, the application request includes the time information, and the time information is set by the user through the application device; the processing unit is specifically configured to determine a time code segment at least according to the time information included in the application request.
In addition, the processing unit is further configured to determine the number of application requests received at the time identified by the time information.
Optionally, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the processing unit is specifically configured to add N different time offsets to the time information, to generate N pieces of first time offset information, where one application request corresponds to one piece of first time offset information; and determining the time code segment according to first time offset information corresponding to each application request, wherein the time code segment comprises the first time offset information.
In addition, in other embodiments, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the time information corresponds to M different code segment serial numbers, and M is greater than or equal to N; the processing unit is specifically configured to obtain N different code segment sequence numbers from the M different code segment sequence numbers; and generating N different time code segments according to the time information and the N different code segment serial numbers, wherein each time code segment comprises the time information and one of the N different code segment serial numbers, and one application request corresponds to one time code segment.
In addition, in other embodiments, the number of the application requests received at the time identified by the time information is N, where N is greater than 1; the time information corresponds to M different code segment serial numbers, and M is smaller than N; the processing unit is specifically configured to determine, according to the time information and the M different code segment serial numbers, time code segments corresponding to M application requests in the N application requests, respectively, where each time code segment includes the time information and a code segment serial number; adding a preset time offset to the time information to generate second time offset information; and determining time code segments respectively corresponding to the application requests except the M application requests in the N application requests according to the second time offset information.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 24 is a schematic structural diagram of a server according to a third embodiment of the present disclosure. Referring to FIG. 24, the server 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by the processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the method of steps S301-S903 described above.
The device 1900 may also include a power component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input/output (I/O) interface 1958. The device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Fig. 25 is a schematic structural diagram of a terminal device provided in a first embodiment of the present disclosure, where the application device in the foregoing embodiment may be specifically implemented as the terminal device in this implementation, as shown in fig. 25, the terminal device includes: a transmitter and a receiver.
The transmitter is used for transmitting an application request to the server, wherein the application request is used for applying for the supervision codes, and the application request comprises the goods name and the number of the supervision codes required to be applied.
And the receiver is used for receiving the supervision codes fed back by the server.
The monitoring codes are composed of prefixes, time code segments, serial numbers and check bits, the prefixes are determined by the server according to the goods names, the time code segments are determined by the server according to time information associated with the application requests, the serial numbers of all the monitoring codes are determined by the server according to the number of the monitoring codes required to be applied, the serial numbers of all the monitoring codes are continuously increased, and the check bits are generated by the server through checking of sequences composed of the prefixes, the time code segments and the serial numbers.
As shown in fig. 25, the terminal device further includes a display coupled to the receiver for displaying the supervision codes fed back by the server.
Optionally, the time information is time information when the server receives the application request.
In addition, in another embodiment, the time information is time information when the server processes the application request.
In addition, in other embodiments, the application request further includes the time information, and the time information is set by the user through the application device.
In the embodiment, the time code segment is associated with the time information, and the time information is information which can be continuously changed, so that the time information can be continuously increased along with the increase of time, the time code segment can be ensured to be applied without limit, and the supervision code is generated according to the time code segment, so that the supervision code can be applied without limit.
Fig. 26 is a schematic structural diagram of a terminal device according to a second embodiment of the present disclosure, and as shown in fig. 26, referring to fig. 26, a terminal device 2000 may include one or more of the following components: a processing component 2002, a memory 2004, a power component 2006, a multimedia component 2008, an audio component 2010, an input/output (I/O) interface 2012, a sensor component 2014, and a communication component 2016.
The processing component 2002 generally controls the overall operation of the terminal device 2000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 2002 may include one or more processors 2020 to execute instructions to perform the methods described above. Further, the processing component 2002 can include one or more modules that facilitate interaction between the processing component 2002 and other components. For example, the processing component 2002 may include a multimedia module to facilitate interaction between the multimedia component 2008 and the processing component 2002.
The memory 2004 is configured to store various types of data to support the operation at the terminal device 2000. Examples of such data include instructions for any application or method operating on terminal device 2000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 2004 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 2006 provides power to the various components of the terminal device 2000. The power supply components 2006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the terminal device 2000.
The multimedia assembly 2008 includes a screen providing an output interface between the terminal device 2000 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2008 includes a front camera and/or a rear camera. When the terminal device 2000 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 2010 is configured to output and/or input audio signals. For example, the audio component 2010 includes a Microphone (MIC) configured to receive an external audio signal when the terminal device 2000 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 2004 or transmitted via the communication component 2016. In some embodiments, audio assembly 2010 also includes a speaker for outputting audio signals.
The input/output interface 2012 provides an interface between the processing component 2002 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 2014 includes one or more sensors for providing various aspects of state assessment for terminal device 2000. For example, sensor assembly 2014 may detect an open/closed state of terminal device 2000, a relative positioning of components such as a display and keypad of terminal device 2000, a change in position of terminal device 2000 or a component of terminal device 2000, a presence or absence of user contact with terminal device 2000, an orientation or acceleration/deceleration of terminal device 2000, and a change in temperature of terminal device 2000. The sensor assembly 2014 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 2014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 2016 is configured to facilitate wired or wireless communication between the terminal device 2000 and other devices. The terminal device 2000 may have access to a wireless machine based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 2016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device 2000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 2004 comprising instructions, executable by the processor 2020 of the terminal device 2000 to perform the above method is also provided. For example, the non-transitory computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic or optical disk.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a terminal device, enable the terminal device to perform a supervisory code generation method, the method comprising:
sending an application request to a server, wherein the application request is used for applying for the supervision codes and comprises the goods names and the number of the supervision codes required to be applied.
And receiving the supervision codes fed back by the server.
The monitoring codes are composed of prefixes, time code segments, serial numbers and check bits, the prefixes are determined by the server according to the goods names, the time code segments are determined by the server according to time information associated with the application requests, the serial numbers of all the monitoring codes are determined by the server according to the number of the monitoring codes required to be applied, the serial numbers of all the monitoring codes are continuously increased, and the check bits are generated by the server through checking of sequences composed of the prefixes, the time code segments and the serial numbers.
Fig. 27 is a schematic structural diagram of a supervisory code generation system according to an embodiment of the present disclosure, and as shown in fig. 27, the supervisory code generation system includes: a server 1 and a terminal device 2, wherein the server may be the server in any one of the embodiments shown in fig. 22-24, and the terminal device may be the terminal device in the embodiment shown in fig. 25 or fig. 26.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present disclosure, and not for limiting the same; while the present disclosure has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (11)

1. A supervisory code generation method, comprising:
the tracing platform receives an application request sent by application equipment, wherein the application request comprises a cargo name and the number of supervision codes required to be applied;
determining a time code segment at least according to time information set on a tracing platform after the application equipment logs in the tracing platform;
and generating a supervision code according to the time code segment.
2. The method of claim 1, wherein generating a supervisory code from the timecode segments comprises:
determining the prefix of the supervision code according to the goods name;
determining the serial number of each supervision code according to the number of the supervision codes required to be applied, wherein the serial number of each supervision code is continuously increased;
checking a sequence formed by the prefix, the time code segment and the serial number to generate a check bit of the supervision code;
and forming the monitoring code by the prefix, the time code segment, the sequence number and the check bit.
3. The method of claim 1, wherein after generating the supervisory code based on the timecode segment, further comprising:
and sending the supervision code to the application equipment.
4. The method of claim 1, wherein the time information set on the retroactive platform is accurate to milliseconds.
5. The method according to claim 1, wherein before the trace back platform receives the application request sent by the application device, the method further comprises:
logging in a tracing platform through application equipment;
querying goods which are uploaded by a production enterprise to which the application equipment belongs and are verified to be qualified by the tracing platform from the tracing platform;
and determining the number of the cargos, and taking the number of the cargos as the number of the supervision codes required to be applied.
6. The method of claim 1, wherein the supervisory code is a sequence of numbers.
7. The method according to claim 1, wherein before determining the time code segment according to at least the time information set on the trace-back platform after logging in the trace-back platform through the application device, the method further comprises:
and determining the number of the application requests associated at the time identified by the time information.
8. The method according to claim 7, wherein the number of application requests associated at the time identified by the time information is N, N being greater than 1;
the determining the time code section at least according to the time information set on the tracing platform after logging in the tracing platform through the application equipment comprises the following steps:
respectively adding N different time offsets to the time information to generate N pieces of first time offset information, wherein one application request corresponds to one piece of first time offset information;
and determining the time code segment according to first time offset information corresponding to each application request, wherein the time code segment comprises the first time offset information.
9. The method according to claim 7, wherein the number of application requests associated at the time identified by the time information is N, N being greater than 1;
the time information corresponds to M different code segment serial numbers, and M is greater than or equal to N;
the determining a time code segment at least according to the time information when the application request is received comprises:
acquiring N different code segment serial numbers from the M different code segment serial numbers;
and generating N different time code segments according to the time information and the N different code segment serial numbers, wherein each time code segment comprises the time information and one of the N different code segment serial numbers, and one application request corresponds to one time code segment.
10. The method of claim 9, wherein obtaining N different code segment sequence numbers from the M different code segment sequence numbers comprises:
determining whether a smallest code segment sequence number of the M different code segment sequence numbers has been allocated to a time code segment;
if the minimum code segment serial number is allocated to the time code segment, determining the maximum first code segment serial number allocated to the time code segment in the M different code segment serial numbers, and storing the first code segment serial number in a code segment serial number table;
traversing N application requests, acquiring a first code segment serial number stored in the code segment serial number table, distributing the next code segment serial number of the first code segment serial number to the currently traversed application request, and storing the next code segment serial number in the code segment serial number table.
11. A traceability platform, comprising: a processor for performing the steps of the method of any one of claims 1 to 10.
CN202110967701.2A 2016-06-30 2016-06-30 Supervision code generation method and tracing platform Pending CN113807864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110967701.2A CN113807864A (en) 2016-06-30 2016-06-30 Supervision code generation method and tracing platform

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110967701.2A CN113807864A (en) 2016-06-30 2016-06-30 Supervision code generation method and tracing platform
CN201610511308.1A CN107578248B (en) 2016-06-30 2016-06-30 Supervision code generation method and device and server

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610511308.1A Division CN107578248B (en) 2016-06-30 2016-06-30 Supervision code generation method and device and server

Publications (1)

Publication Number Publication Date
CN113807864A true CN113807864A (en) 2021-12-17

Family

ID=61048976

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610511308.1A Active CN107578248B (en) 2016-06-30 2016-06-30 Supervision code generation method and device and server
CN202110967701.2A Pending CN113807864A (en) 2016-06-30 2016-06-30 Supervision code generation method and tracing platform

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201610511308.1A Active CN107578248B (en) 2016-06-30 2016-06-30 Supervision code generation method and device and server

Country Status (1)

Country Link
CN (2) CN107578248B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107578248B (en) * 2016-06-30 2021-09-03 阿里巴巴集团控股有限公司 Supervision code generation method and device and server
CN110163624A (en) * 2018-02-12 2019-08-23 阿里健康信息技术有限公司 A kind of goods information processing method and system
CN108805245A (en) * 2018-06-08 2018-11-13 南京华博科技有限公司 A kind of generation method of the identity code of combination Handle
CN112418885A (en) * 2020-11-18 2021-02-26 上海中商网络股份有限公司 Label generation method, product tracing method and related device
CN112988757B (en) * 2021-04-21 2021-10-26 杭州魔点科技有限公司 Method, device, equipment and medium for generating global unique ID of distributed system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110251911A1 (en) * 2010-04-12 2011-10-13 Junger Peter J Systems and/or methods for determining item serial number structure and intelligence
CN102521679A (en) * 2011-11-03 2012-06-27 北京农业信息技术研究中心 Agricultural product electronic tracing supervision code generation method and apparatus thereof
CN102855513A (en) * 2012-08-21 2013-01-02 齐宇庆 Device and system thereof for generating anti-fake and quality data code
CN102956005A (en) * 2011-08-24 2013-03-06 中国移动通信集团设计院有限公司 Anti-counterfeiting method, anti-counterfeiting system and packaging structure
CN104766217A (en) * 2015-04-21 2015-07-08 张川 Commodity information coding method and commodity information decoding method used in interference process
CN105184083A (en) * 2015-09-14 2015-12-23 南京延长科技有限公司 Digital identity code used for medical instrument whole-process quality tracing and coding method thereof
JP2016031644A (en) * 2014-07-29 2016-03-07 伊藤 庸一郎 Traceability providing system, traceability providing apparatus, and traceability providing method
CN105471889A (en) * 2015-12-16 2016-04-06 孙伟 Combined dual-certification method and system for circulation retracing and authenticity certification of commodity
CN105653639A (en) * 2015-12-25 2016-06-08 北京奇虎科技有限公司 ID generation method and apparatus
CN105677704A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Information arrangement method and device, and information management method and device
CN107578248A (en) * 2016-06-30 2018-01-12 阿里巴巴集团控股有限公司 Supervise code generating method, device and server

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110251911A1 (en) * 2010-04-12 2011-10-13 Junger Peter J Systems and/or methods for determining item serial number structure and intelligence
CN102956005A (en) * 2011-08-24 2013-03-06 中国移动通信集团设计院有限公司 Anti-counterfeiting method, anti-counterfeiting system and packaging structure
CN102521679A (en) * 2011-11-03 2012-06-27 北京农业信息技术研究中心 Agricultural product electronic tracing supervision code generation method and apparatus thereof
CN102855513A (en) * 2012-08-21 2013-01-02 齐宇庆 Device and system thereof for generating anti-fake and quality data code
JP2016031644A (en) * 2014-07-29 2016-03-07 伊藤 庸一郎 Traceability providing system, traceability providing apparatus, and traceability providing method
CN104766217A (en) * 2015-04-21 2015-07-08 张川 Commodity information coding method and commodity information decoding method used in interference process
CN105184083A (en) * 2015-09-14 2015-12-23 南京延长科技有限公司 Digital identity code used for medical instrument whole-process quality tracing and coding method thereof
CN105471889A (en) * 2015-12-16 2016-04-06 孙伟 Combined dual-certification method and system for circulation retracing and authenticity certification of commodity
CN105653639A (en) * 2015-12-25 2016-06-08 北京奇虎科技有限公司 ID generation method and apparatus
CN105677704A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Information arrangement method and device, and information management method and device
CN107578248A (en) * 2016-06-30 2018-01-12 阿里巴巴集团控股有限公司 Supervise code generating method, device and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余华;吴振华;: "农产品追溯码的编码研究", 中国农业科学, no. 23, 1 December 2011 (2011-12-01) *

Also Published As

Publication number Publication date
CN107578248B (en) 2021-09-03
CN107578248A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107578248B (en) Supervision code generation method and device and server
US20170156038A1 (en) Device group management system, method and apparatus
CN110868748A (en) Intelligent equipment network access method, device, equipment, system and medium
CN108156026B (en) Interphone configuration method and device
EP2978265B1 (en) Method and apparatus for automatically connecting to a wireless network
CN104460365A (en) Equipment control method and device
CN104935751A (en) Electronic equipment position determining method and device
CN105426200A (en) Communication module firmware and plug-in generation method and apparatus
CN104808501A (en) Intelligent scene deleting method and device
CN104539639A (en) User information acquisition method and device
CN105100513B (en) Method for processing message of incoming call and device, incoming call service server
CN105096230A (en) Flight notification method and device and flight setting method and device
JP2017518008A (en) Telephone calling method, device, program and recording medium based on cloud card
CN105205086A (en) Sharing method and device for application program using information
CN107402767B (en) Method and device for displaying push message
CN111031124B (en) Home equipment networking deployment method and device, electronic equipment and storage medium
CN115033211A (en) Method, device and equipment for querying article based on strategy mode and storage medium
CN105207813A (en) Intelligent equipment sorting method and apparatus
CN107395467A (en) The initial method and device of smart home
KR102351495B1 (en) Electronic device and method for providing message in the electronic device
CN105094510A (en) Text processing method, device and system
CN109685473A (en) Official documents and correspondence amending method and device
CN111382242A (en) Information providing method, device and readable medium
CN104598834A (en) Item information displaying method and device
CN204887145U (en) Electronic equipment determination of position device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination