A liquor product traceability method and device based on industrial Internet
By generating and mapping the processing information encoding of the liquor production link, the problem of low traceability efficiency of liquor in the existing technology is solved, fast and accurate traceability is achieved, and the risk of data tampering is reduced.
Patent Information
- Application Number
- CN202210064448.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-20
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-01-20
AI Technical Summary
The existing technology has low efficiency in tracing the source of liquor, and it is necessary to query the information of each production link separately.
By obtaining the processing information of different production links of liquor, a corresponding first hash value is generated, and a processing information encoding is generated based on the processing information and hash value. Upload these codes to the enterprise node for mapping, generate logistics information codes, and trace the source of liquor products through the mapping relationship between the identification code and the processing information code.
The efficiency of liquor traceability is improved, and the processing information of other links can be quickly determined through the processing information encoding of one link, reducing the risk of production data being tampered with, and ensuring the uniqueness of processing information encoding.
Smart Images

Figure CN114493630B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial Internet technology, and in particular to a method and device for tracing the origin of liquor products based on the industrial Internet. Background Art
[0002] Product traceability is to use the one-to-one-code technology to achieve information record and traceability management of product production and processing, packaging and warehousing, channel logistics, terminal sales, authenticity query, data analysis, etc. With the continuous development of Internet technology, product traceability technology has been widely used. Especially in the liquor industry, counterfeit and inferior liquor brands have been troubling consumers, and many people have suffered from it.
[0003] Currently, when tracing the source of liquor products, since the information corresponding to each production link of the liquor products is uploaded to the blockchain separately, it is necessary to query the information of each link separately, resulting in low efficiency in tracing the source of the liquor. Summary of the invention
[0004] The embodiments of the present application provide a method and device for tracing the origin of liquor products based on the industrial Internet, which are used to solve the following technical problems: the existing technology is less efficient in tracing the origin of liquor.
[0005] The present application embodiment adopts the following technical solutions:
[0006] The embodiment of the present application provides a method for tracing the source of liquor products based on the industrial Internet. The method includes obtaining processing information of liquor products in different production links of liquor; wherein the processing information includes at least one of the raw material information, production information and factory information corresponding to the liquor products; generating first hash values corresponding to the different production links according to the processing information corresponding to the different production links of the liquor products, and generating processing information codes corresponding to the different production links of the liquor products based on the processing information and the first hash value; uploading the processing information code to the enterprise node, mapping the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated by each bottle of liquor product in the current production link and the processing information code generated in the previous production link; obtaining the transportation logistics information of the liquor products, generating a second hash value based on the transportation logistics information and the processing information code, and generating the logistics information code corresponding to each bottle of liquor according to the transportation logistics information and the second hash value; registering the identification code of each bottle of liquor to the secondary node based on the logistics information code, so as to trace the liquor products through the identification code and the mapping relationship between the processing information code corresponding to the different production links of each bottle of liquor.
[0007] The embodiment of the present application generates a corresponding first hash value for the processing information corresponding to different production links of liquor, and can encrypt the acquired processing information to prevent the processing information from being leaked, so as to reduce the risk of production data being tampered with. Secondly, the embodiment of the present application maps the processing information codes corresponding to different production links, thereby linking the production information corresponding to different production links of the same bottle of liquor together, and then when receiving a traceability request, the processing information code of one link can be used to quickly determine the processing information corresponding to other links, so as to improve the efficiency of liquor traceability.
[0008] In one implementation of the present application, based on the processing information and the first hash value, processing information codes corresponding to different production links of liquor products are generated, specifically including: based on a preset first coding template, converting the raw material information and the name of the production place into corresponding letter strings; and based on a preset second coding template, converting the first hash values corresponding to different production links of liquor into corresponding digital strings; combining the letter strings, digital strings and the time strings corresponding to different production links of liquor and the time when the processing information is received to obtain the processing information codes corresponding to different production links of liquor products.
[0009] The embodiment of the present application converts the acquired processing information and the hash value through the first coding template and the second coding template, and combines the converted letter string and the digital string to obtain the processing information codes corresponding to different production links of the liquor product. Therefore, it can not only ensure the confidentiality of the processing information according to the hash value and prevent information leakage, but also ensure the uniqueness of the processing information code and improve the accuracy of liquor traceability.
[0010] In one implementation of the present application, processing information codes are mapped through enterprise nodes, specifically including: obtaining processing information codes through enterprise nodes, and dividing multiple processing information codes corresponding to the same bottle of liquor product into the same group; obtaining timestamps corresponding to the processing information codes through enterprise nodes, sorting the multiple processing information codes in the same group according to the timestamps, and mapping the multiple processing information codes in the same group based on the sorting results.
[0011] The embodiment of the present application sorts multiple processing information codes in the same group by the timestamps corresponding to the acquired processing information codes, and maps the processing information codes based on the sorting results. Thus, the processing information codes corresponding to different production links can be associated, and there is no need to query the processing information of different links in different storage blocks. The processing information code of the previous generation link can be directly determined through the mapping relationship, thereby improving the speed of obtaining liquor information and the efficiency of liquor traceability.
[0012] In one implementation of the present application, transportation logistics information of a liquor product is obtained, and a second hash value is generated based on the transportation logistics information and the processing information coding, specifically including: obtaining the transportation logistics information corresponding to the liquor product; wherein the transportation logistics information includes at least one of the transportation starting address information, the transportation tool information and the transportation time information; based on a preset first coding template, converting the transportation starting address information and the transportation tool information into corresponding letter strings, and converting the transportation time into a corresponding digital string; obtaining the processing information coding corresponding to the last production link of the liquor product; combining the letter string, the digital string and the processing information coding corresponding to the last production link corresponding to the transportation logistics information to obtain a combined string corresponding to the transportation logistics information, and performing a hash calculation on the combined string to generate a second hash value.
[0013] In one implementation of the present application, after obtaining the transportation logistics information of the liquor product, the method also includes: when the liquor product is transferred from the current sales manufacturer to the next-level sales manufacturer, based on the new transportation logistics information corresponding to the transfer process and the preset first coding template, multiple new character strings corresponding to the new transportation logistics information are obtained; the multiple new character strings are combined to obtain a new combined character string corresponding to the new transportation logistics information; wherein the number of new combined character strings corresponding to the transfer process is related to the number of times the liquor product is transferred; based on the combined character string corresponding to the transportation logistics information, a hash calculation is performed on the new combined character string corresponding to the new transportation logistics information to generate a second hash value.
[0014] In one implementation of the present application, after registering the identification code of each bottle of liquor to the secondary node based on the logistics information code, the method also includes: receiving a parsing request corresponding to the identification code; determining the logistics coding information corresponding to the identification code; sending the logistics coding information to the secondary node, and parsing the logistics coding information through the secondary node to obtain the processing information code corresponding to the logistics coding information; and obtaining the liquor transportation logistics information and liquor processing information corresponding to the identification code respectively through the logistics coding information and the processing information code.
[0015] In one implementation of the present application, the liquor product is traced through the identification code and the mapping relationship between the processing information codes corresponding to different production links of each bottle of liquor, specifically including: determining the second hash value corresponding to the logistics coding information according to the logistics coding information corresponding to the identification code; determining the processing information code of the last production link corresponding to the second hash value; obtaining the processing information code with the last production link, generating a processing information code with a mapping relationship, and tracing the liquor product step by step according to the processing information code with the generated mapping relationship.
[0016] In one implementation of the present application, the liquor product is traced step by step according to the processing information code that generates a mapping relationship, specifically including: determining the first processing information code corresponding to the factory information that generates a mapping relationship with the processing information code of the last production link, and determining the hash value corresponding to the factory information according to the first processing information code, so as to obtain the factory information of the liquor product according to the hash value; and determining the second processing information code corresponding to the production information that generates a mapping relationship with the first processing information code, and determining the hash value corresponding to the production information according to the second processing information code, so as to obtain the production information of the liquor product according to the hash value; and determining the third processing information code corresponding to the raw material information that generates a mapping relationship with the second processing information code, and determining the hash value corresponding to the raw material information according to the third processing information code, so as to obtain the raw material information of the liquor product according to the hash value.
[0017] In one implementation of the present application, the identification code of each bottle of liquor is registered with the secondary node based on the logistics information code, specifically including: prefixing and suffixing the received logistics information code through the secondary node and the preset uniqueness assignment rule; wherein the preset uniqueness assignment rule is at least related to the corporate identity of the current liquor enterprise, the current liquor product batch, the liquor product specification and the liquor product processing completion time; uploading the assigned logistics information code to the primary node through the secondary node, so as to review the assigned logistics information code through the primary node; after the secondary node receives the review pass information, registering the assigned logistics information code as the identification code through the secondary node.
[0018] The embodiment of the present application provides a liquor product traceability device based on the industrial Internet, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain processing information of the liquor product in different production links of the liquor; wherein the processing information includes at least one of the raw material information, production information and factory information corresponding to the liquor product; according to the processing information corresponding to the different production links of the liquor product, generate first hash values corresponding to the different production links respectively, and based on the processing information and the first hash value, generate processing information code; uploading the processing information code to the enterprise node, mapping the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated by each bottle of liquor product in the current production link and the processing information code generated in the previous production link; obtaining the transportation and logistics information of the liquor product, generating a second hash value based on the transportation and logistics information and the processing information code, and generating the logistics information code corresponding to each bottle of liquor according to the transportation and logistics information and the second hash value; registering the identification code of each bottle of liquor to the secondary node based on the logistics information code, so as to trace the liquor product through the identification code and the mapping relationship between the processing information codes corresponding to different production links of each bottle of liquor.
[0019] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the embodiments of the present application can encrypt the acquired processing information by generating corresponding first hash values for the processing information corresponding to different production links of liquor, thereby preventing the leakage of processing information and reducing the risk of production data being tampered with. Secondly, the embodiments of the present application map the processing information codes corresponding to different production links, thereby linking the production information corresponding to different production links of the same bottle of liquor together. Furthermore, when a traceability request is received, the processing information code of one link can be used to quickly determine the processing information corresponding to each other link, thereby improving the efficiency of liquor traceability. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0021] Figure 1 A flow chart of a liquor product traceability method based on the industrial Internet provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of the structure of a liquor product traceability device based on the Industrial Internet provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The embodiments of the present application provide a method and device for tracing the origin of liquor products based on the Industrial Internet.
[0024] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0025] Product traceability is to use the one-to-one-code technology to achieve information record and traceability management of product production and processing, packaging and warehousing, channel logistics, terminal sales, authenticity query, data analysis, etc. With the continuous development of Internet technology, product traceability technology has been widely used. Especially in the liquor industry, counterfeit and inferior liquor brands have been troubling consumers, and many people have suffered from it.
[0026] Currently, when tracing the source of liquor products, since the information corresponding to each production link of the liquor products is uploaded to the blockchain separately, it is necessary to query the information of each link separately, resulting in low efficiency in tracing the source of the liquor.
[0027] In order to solve the above problems, the embodiment of the present application provides a method and device for tracing the source of liquor products based on the industrial Internet. By generating a corresponding first hash value for the processing information corresponding to different production links of liquor, the acquired processing information can be encrypted to prevent the leakage of processing information, so as to reduce the risk of production data being tampered with. Secondly, the embodiment of the present application maps the processing information codes corresponding to different production links, thereby linking the production information corresponding to different production links of the same bottle of liquor together. Then, when a traceability request is received, the processing information corresponding to each other link can be quickly determined through the processing information code of one link, so as to improve the efficiency of tracing the source of liquor.
[0028] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0029] Figure 1 A flow chart of a liquor product traceability method based on the industrial Internet provided in the embodiment of this application. Figure 1 As shown, the liquor product traceability method includes the following steps:
[0030] S101. The liquor product traceability equipment obtains the processing information of liquor products in different production links.
[0031] In one embodiment of the present application, liquor needs to go through multiple processing links from raw materials to products. Each processing link has corresponding processing information. The processing information includes at least one of the raw material information, production information, and factory information corresponding to the liquor products.
[0032] Specifically, the raw material information corresponding to the liquor product may include the type of raw materials used in the liquor, the purchaser of the raw materials, the origin of the raw materials, etc. The production information corresponding to the liquor may include the name of the manufacturer, the production time, the name of the production location, etc. The factory information corresponding to the liquor may include the time of leaving the factory, the batch of liquor leaving the factory, etc. By obtaining the processing information corresponding to different production links of the liquor, the liquor products can be traced, thereby reducing the production of counterfeit and inferior liquor.
[0033] S102. The liquor product traceability device generates first hash values corresponding to different production links according to the processing information corresponding to different production links of the liquor product, and generates processing information codes corresponding to different production links of the liquor product based on the processing information and the first hash values.
[0034] In one embodiment of the present application, the liquor industry traceability device obtains the processing information of multiple production links corresponding to each bottle of liquor. That is, the raw material information of the raw material procurement link, the production information of the liquor production, and the factory information corresponding to each bottle of liquor are obtained. The multiple processing information corresponding to each bottle of liquor obtained are hashed respectively to obtain the first hash value corresponding to the processing information of each production link.
[0035] In one embodiment of the present application, based on a preset first coding template, the raw material information and the name of the production place are converted into corresponding letter strings. And, based on a preset second coding template, the first hash values corresponding to different production links of liquor are converted into corresponding digital strings. The letter strings, digital strings corresponding to different production links of liquor, and the time strings corresponding to the receipt of processing information are combined to obtain the processing information codes corresponding to different production links of liquor products.
[0036] Specifically, the embodiment of the present application presets a first coding model, and the preset first coding template stores a plurality of different raw material information, and letter strings corresponding to each raw material information. Also, the preset first coding template stores a plurality of different production sites, and letter strings corresponding to each production site. For example, the first coding template stores information such as the English name corresponding to the raw material information and the full pinyin of the production site, so that the acquired raw material information and the place of origin information can be converted into letter strings. The embodiment of the present application presets a second coding template, and the preset second coding template stores digital values corresponding to different hash characters, and the first hash value can be converted into a corresponding digital string through the preset second coding template.
[0037] Furthermore, the letter strings, digital strings, and time strings corresponding to the different production links of liquor are combined. For example, the letter strings corresponding to the raw material information, the time strings corresponding to the time when the raw material information is received, and the first hash value corresponding to the raw material procurement link can be combined in order to obtain the processing information code corresponding to the raw material procurement link. For another example, the letter strings corresponding to the production site, the time strings corresponding to the time when the processing information is received, and the first hash value corresponding to the processing link can be combined in order to obtain the processing information code corresponding to the processing link. For another example, the time strings corresponding to the liquor factory time and the first hash value corresponding to the factory link can be combined in order to obtain the processing information code corresponding to the factory link.
[0038] It should be noted that the order of character string combinations corresponding to different production links of liquor can be changed according to actual applications, and the embodiments of the present application do not limit this.
[0039] S103. The liquor product traceability device uploads the processing information code to the enterprise node, and maps the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated by each bottle of liquor product in the current production link and the processing information code generated in the previous production link.
[0040] In one embodiment of the present application, the processing information code is obtained through the enterprise node, and multiple processing information codes corresponding to the same bottle of liquor product are divided into the same group. The timestamp corresponding to the processing information code is obtained through the enterprise node, and the multiple processing information codes in the same group are sorted according to the timestamp, and the multiple processing information codes in the same group are mapped based on the sorting result.
[0041] Specifically, after the enterprise node obtains the processing information code, it divides the multiple processing information codes corresponding to the same bottle of liquor into the same group. In order to establish a mapping relationship between multiple processing information codes in the same group, the multiple processing information codes in the same group are sorted according to the timestamp of the received processing information code to obtain the order of the processing information codes corresponding to the sequence of the production links. According to the current sorting result, the multiple processing information codes in the same group are mapped so that each of the processing information codes has a mapping relationship with the processing information code of the previous link, so that the processing information code corresponding to the previous production link can be directly found according to the mapping relationship based on the processing information code of the current link.
[0042] S104. The liquor product traceability device obtains the transportation and logistics information of the liquor product, generates a second hash value based on the transportation and logistics information and the processing information code, and generates a logistics information code corresponding to the liquor product based on the transportation and logistics information and the second hash value.
[0043] In one embodiment of the present application, the liquor product traceability device performs a hash calculation based on the acquired transportation logistics information and processing information encoding of the liquor product to obtain a second hash value.
[0044] In one embodiment of the present application, transportation logistics information corresponding to a liquor product is obtained. The transportation logistics information includes at least one of the transportation starting address information, transportation tool information, and transportation time information. Based on a preset first coding template, the transportation starting address information and the transportation tool information are respectively converted into corresponding letter strings, and the transportation time is converted into a corresponding digital string. The processing information code corresponding to the last production link of the liquor product is obtained. The letter string, the digital string, and the processing information code corresponding to the last production link corresponding to the transportation logistics information are combined to obtain a combined string corresponding to the transportation logistics information, and the combined string is hashed to generate a second hash value.
[0045] Specifically, based on the preset first coding template, the full pinyin corresponding to the current transport start address is determined to obtain the letter string corresponding to the current transport start address. Also, the full pinyin corresponding to the means of transport is determined to obtain the letter string corresponding to the means of transport. Also, the start time, end time and total duration of the transport are determined and converted into corresponding digital strings. The character strings corresponding to the transport logistics information are combined in the order of the letter strings corresponding to the transport start address, the letter strings corresponding to the means of transport, and the digital strings corresponding to the transport time.
[0046] Furthermore, the processing information code corresponding to the last production link of the current liquor is obtained, and the letter string and the numeric string corresponding to the transportation logistics information and the processing information code corresponding to the last production link are combined to obtain the combined string corresponding to the transportation logistics information. The combined string is hashed to generate a second hash value.
[0047] In one embodiment of the present application, when a liquor product is transferred from a current sales manufacturer to a next-level sales manufacturer, multiple new character strings corresponding to the new transportation logistics information are obtained based on the new transportation logistics information corresponding to the transfer process and the preset first coding template. The multiple new character strings are combined to obtain a new combined character string corresponding to the new transportation logistics information. The number of new combined character strings corresponding to the transfer process is related to the number of times the liquor product is transferred. Based on the combined character string corresponding to the transportation logistics information, a hash calculation is performed on the new combined character string corresponding to the new transportation logistics information to generate a second hash value.
[0048] Specifically, after the liquor is processed in the factory, it will be shipped to the first-level seller, and the first-level seller will ship the received liquor to the second-level seller again, and sometimes the second-level seller will ship the liquor to the third-level seller again. Therefore, in order to trace the logistics information of the liquor, it is necessary to summarize the logistics information of each transfer to generate a complete logistics information code.
[0049] Furthermore, when liquor is transferred from the current seller to the next-level seller, new logistics information corresponding to the liquor transfer can be obtained. For example, the transportation start time, transportation start location name, transportation tool and other information corresponding to the new logistics information during transfer can be obtained. According to the preset first coding template, the new character strings corresponding to the new logistics information are determined, and the obtained new character strings are combined to obtain a combined character string. If liquor is transferred multiple times by sales manufacturers of different levels, multiple new combined character strings will be obtained.
[0050] Furthermore, according to the transportation sequence of liquor, a combined character string corresponding to the transportation logistics information is hashed with a new combined character string corresponding to the new transportation logistics information to generate a second hash value.
[0051] Further, according to the preset second coding template, the second Hash value is converted into a corresponding digital string. According to the string corresponding to the transportation logistics information of the liquor and the digital string corresponding to the second Hash value, the logistics information code corresponding to the current liquor is generated.
[0052] S105. The liquor product traceability device registers the identification code of each bottle of liquor to the secondary node based on the logistics information code, so as to trace the liquor product through the mapping relationship between the identification code and the processing information codes corresponding to the different production links of each bottle of liquor.
[0053] In one embodiment of the present application, prefix assignment and suffix assignment are performed on the received logistics information code through the secondary node and the preset unique assignment rule. Among them, the preset unique assignment rule is at least related to the corporate identity of the current liquor company, the current liquor product batch, the liquor product specification and the liquor product processing completion time. The assigned logistics information code is uploaded to the primary node through the secondary node, so that the assigned logistics information code is reviewed by the primary node. After the secondary node receives the review pass information, the assigned logistics information code is registered as an identification code through the secondary node.
[0054] Specifically, after receiving the logistics information code of liquor, the secondary node will assign a prefix and a suffix to the logistics information code. For example, the current logistics information code can be prefixed according to the corporate logo of the current liquor company, the liquor product batch to which the current liquor belongs, the liquor product specifications, the liquor processing completion time, etc. In order to ensure the uniqueness of the code, the current time sequence code will be generated based on the current assignment time, and the suffix will be assigned to the current liquor. This ensures that the logistics code corresponding to each bottle of liquor is different after the assignment.
[0055] Furthermore, after assigning a value to the liquor, the assigned logistics information code is uploaded to the first-level node through the second-level node. The first-level node may be a national node. The assigned logistics information code is reviewed by the first-level node. The review pass information is sent to the second-level node, and the second-level node registers the reviewed assigned logistics information code to make it the identification code corresponding to the current liquor.
[0056] In one embodiment of the present application, a parsing request corresponding to an identification code is received. Logistics coding information corresponding to the identification code is determined. The logistics coding information is sent to a secondary node, and the logistics coding information is parsed by the secondary node to obtain processing information coding corresponding to the logistics coding information. Through the logistics coding information and the processing information coding, the liquor transportation logistics information and the liquor processing information corresponding to the identification code are obtained respectively.
[0057] Specifically, when a parsing request corresponding to the identification code is received, the corresponding logistics coding information is determined according to the identification code, and the logistics coding information is sent to the secondary node. The secondary node can parse the logistics coding information to obtain the second hash value corresponding to the logistics coding information, and then determine the corresponding transportation logistics information and processing information coding in the information storage area according to the second hash value. For example, the processing information corresponding to different production links of the liquor can be stored in the blockchain with the transportation logistics information, and the corresponding transportation logistics information and processing information coding can be determined in the blockchain according to the second hash value. In this way, the current liquor can be traced.
[0058] In one embodiment of the present application, a second hash value corresponding to the logistics coding information is determined based on the logistics coding information corresponding to the identification code. The processing information code of the last production link corresponding to the second hash value is determined. The processing information code of the last production link is obtained, a processing information code of a mapping relationship is generated, and the liquor product is traced step by step based on the processing information code of the mapping relationship.
[0059] Specifically, the first processing information code corresponding to the factory information of the last production link is determined to generate a mapping relationship, and the hash value corresponding to the factory information is determined according to the first processing information code, so as to obtain the factory information of the liquor product according to the hash value. The second processing information code corresponding to the production information of the first processing information code is determined to generate a mapping relationship, and the hash value corresponding to the production information is determined according to the second processing information code, so as to obtain the production information of the liquor product according to the hash value. The third processing information code corresponding to the raw material information of the second processing information code is determined to generate a mapping relationship, and the hash value corresponding to the raw material information is determined according to the third processing information code, so as to obtain the raw material information of the liquor product according to the hash value.
[0060] The embodiment of the present application maps the processing information codes corresponding to different production links, thereby linking the production information corresponding to different production links of the same bottle of liquor together. Then, when a traceability request is received, the processing information code of one link can be used to quickly determine the processing information corresponding to other links, thereby improving the efficiency of liquor traceability.
[0061] Figure 2 The schematic diagram of the structure of a liquor product traceability device based on the industrial Internet provided in the embodiment of the present application. Figure 2 As shown in the figure, the liquor product traceability equipment based on the Industrial Internet includes:
[0062] at least one processor; and,
[0063] a memory communicatively connected to the at least one processor; wherein,
[0064] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0065] Acquire processing information of liquor products in different production links of liquor; wherein the processing information includes at least one of raw material information, production information and factory information corresponding to the liquor products;
[0066] Generate first hash values corresponding to different production links according to the processing information corresponding to different production links of the liquor product, and generate processing information codes corresponding to different production links of the liquor product based on the processing information and the first hash values;
[0067] Uploading the processing information code to the enterprise node, mapping the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated in the current production link of each bottle of liquor product and the processing information code generated in the previous production link;
[0068] Acquire the transportation logistics information of the liquor product, generate a second hash value based on the transportation logistics information and the processing information code, and generate a logistics information code corresponding to each bottle of liquor according to the transportation logistics information and the second hash value;
[0069] Based on the logistics information code, the identification code of each bottle of liquor is registered with the secondary node, so as to trace the liquor product through the mapping relationship between the identification code and the processing information codes corresponding to the different production links of each bottle of liquor.
[0070] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0071] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0072] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the embodiments of the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the claims of the present application.
Claims
1. A liquor product traceability method based on the industrial Internet, characterized in that: The method comprises: Acquire processing information of liquor products in different production links of liquor; wherein the processing information includes at least one of raw material information, production information and factory information corresponding to the liquor products; Generate first hash values corresponding to different production links according to the processing information corresponding to different production links of the liquor product, and generate processing information codes corresponding to different production links of the liquor product based on the processing information and the first hash values; Uploading the processing information code to the enterprise node, mapping the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated in the current production link of each bottle of liquor product and the processing information code generated in the previous production link; Acquire the transportation logistics information of the liquor product, generate a second hash value based on the transportation logistics information and the processing information code, and generate a logistics information code corresponding to each bottle of liquor according to the transportation logistics information and the second hash value; Based on the logistics information code, register the identification code of each bottle of liquor with the secondary node, so as to trace the liquor product through the mapping relationship between the identification code and the processing information codes corresponding to different production links of each bottle of liquor; The mapping of the processing information code by the enterprise node specifically includes: Acquire the processing information code through the enterprise node, and divide multiple processing information codes corresponding to the same bottle of liquor product into the same group; Acquiring a timestamp corresponding to the processing information code through the enterprise node, sorting a plurality of the processing information codes in the same group according to the timestamp, and mapping the plurality of processing information codes in the same group based on the sorting result; The obtaining of the transport logistics information of the liquor product and generating a second hash value based on the transport logistics information and the processing information encoding specifically includes: Acquire the transportation logistics information corresponding to the liquor product; wherein the transportation logistics information includes at least one of the transportation starting address information, transportation tool information and transportation time information; Based on a preset first coding template, the transportation start address information and the transportation tool information are respectively converted into corresponding letter strings, and the transportation time is converted into a corresponding numeric string; Obtain the processing information code corresponding to the last production link of the liquor product; Combine the letter string and the numeric string corresponding to the transport logistics information and the processing information code corresponding to the last production link to obtain a combined string corresponding to the transport logistics information, and perform hash calculation on the combined string to generate the second hash value; After obtaining the transportation logistics information of the liquor product, the method further includes: When the liquor product is transferred from the current sales manufacturer to the next-level sales manufacturer, multiple new character strings corresponding to the new transportation logistics information are obtained according to the new transportation logistics information corresponding to the transfer process and the preset first coding template; Combining the multiple new character strings to obtain a new combined character string corresponding to the new transport logistics information; wherein the number of new combined character strings corresponding to the transshipment process is related to the number of times the liquor product is transshipped; Based on the combined character string corresponding to the transport logistics information, a hash calculation is performed on the new combined character string corresponding to the new transport logistics information to generate the second hash value; The tracing of the liquor product through the identification code and the mapping relationship between the processing information codes corresponding to different production links of each bottle of liquor specifically includes: Determine a second hash value corresponding to the logistics information code according to the logistics information code corresponding to the identification code; Determine the processing information code of the last production link corresponding to the second hash value; Acquire the processing information code related to the last production link, generate the processing information code with mapping relationship, and trace the liquor product step by step according to the processing information code with mapping relationship; The tracing of the liquor product level by level according to the processing information encoding that generates the mapping relationship specifically includes: Determine the processing information code of the last production link, generate a first processing information code corresponding to the factory information of the mapping relationship, and determine the hash value corresponding to the factory information according to the first processing information code, so as to obtain the factory information of the liquor product according to the hash value; and Determine a second processing information code corresponding to the production information having a mapping relationship with the first processing information code, and determine a hash value corresponding to the production information according to the second processing information code, so as to obtain the production information of the liquor product according to the hash value; and Determine a third processing information code corresponding to the raw material information that has a mapping relationship with the second processing information code, and determine a hash value corresponding to the raw material information according to the third processing information code, so as to obtain the raw material information of the liquor product according to the hash value.
2. According to a method for tracing the source of liquor products based on the industrial Internet according to claim 1, it is characterized in that: The generating, based on the processing information and the first Hash value, processing information codes corresponding to different production links of the liquor product respectively includes: Based on a preset first coding template, the raw material information and the name of the production place in the liquor processing information are converted into corresponding letter strings; and based on a preset second coding template, the first hash values corresponding to different production links of the liquor are converted into corresponding digital strings; The letter character strings, the number character strings corresponding to different production links of liquor and the time character strings corresponding to when the processing information is received are combined to obtain the processing information codes corresponding to different production links of liquor products.
3. According to a method for tracing the source of liquor products based on industrial Internet according to claim 1, it is characterized in that: After registering the identification code of each bottle of liquor with the secondary node based on the logistics information code, the method further includes: Receiving a resolution request corresponding to the identification code; Determining logistics coding information corresponding to the identification code; The logistics coding information is sent to the secondary node, and the logistics coding information is parsed by the secondary node to obtain the processing information code corresponding to the logistics coding information; By encoding the logistics coding information and the processing information, the liquor transportation logistics information and the liquor processing information corresponding to the identification code are obtained respectively.
4. According to a method for tracing the source of liquor products based on industrial Internet according to claim 1, it is characterized in that: The registering of the identification code of each bottle of liquor to the secondary node based on the logistics information code specifically includes: The received logistics information code is prefixed and suffixed by the secondary node and the preset uniqueness assignment rule; wherein the preset uniqueness assignment rule is at least related to the corporate identity of the current liquor enterprise, the current liquor product batch, the liquor product specification and the liquor product processing completion time; The logistics information code after the value assignment is uploaded to the first-level node through the second-level node, so that the logistics information code after the value assignment is reviewed by the first-level node; After the secondary node receives the review approval information, the secondary node registers the assigned logistics information code as an identification code.
5. A liquor product traceability device based on the industrial Internet, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Acquire processing information of liquor products in different production links of liquor; wherein the processing information includes at least one of raw material information, production information and factory information corresponding to the liquor products; Generate first hash values corresponding to different production links according to the processing information corresponding to different production links of the liquor product, and generate processing information codes corresponding to different production links of the liquor product based on the processing information and the first hash values; Uploading the processing information code to the enterprise node, mapping the processing information code through the enterprise node to determine the mapping relationship between the processing information code generated in the current production link of each bottle of liquor product and the processing information code generated in the previous production link; Acquire the transportation logistics information of the liquor product, generate a second hash value based on the transportation logistics information and the processing information code, and generate a logistics information code corresponding to each bottle of liquor according to the transportation logistics information and the second hash value; Based on the logistics information code, register the identification code of each bottle of liquor with the secondary node, so as to trace the liquor product through the mapping relationship between the identification code and the processing information codes corresponding to different production links of each bottle of liquor; The mapping of the processing information code by the enterprise node specifically includes: Acquire the processing information code through the enterprise node, and divide multiple processing information codes corresponding to the same bottle of liquor product into the same group; Acquiring a timestamp corresponding to the processing information code through the enterprise node, sorting a plurality of the processing information codes in the same group according to the timestamp, and mapping the plurality of processing information codes in the same group based on the sorting result; The obtaining of the transport logistics information of the liquor product and generating a second hash value based on the transport logistics information and the processing information encoding specifically includes: Acquire the transportation logistics information corresponding to the liquor product; wherein the transportation logistics information includes at least one of the transportation starting address information, transportation tool information and transportation time information; Based on a preset first coding template, the transportation start address information and the transportation tool information are respectively converted into corresponding letter strings, and the transportation time is converted into a corresponding numeric string; Obtain the processing information code corresponding to the last production link of the liquor product; Combine the letter string and the numeric string corresponding to the transport logistics information and the processing information code corresponding to the last production link to obtain a combined string corresponding to the transport logistics information, and perform hash calculation on the combined string to generate the second hash value; After obtaining the transportation logistics information of the liquor product, the method further includes: When the liquor product is transferred from the current sales manufacturer to the next-level sales manufacturer, multiple new character strings corresponding to the new transportation logistics information are obtained according to the new transportation logistics information corresponding to the transfer process and the preset first coding template; Combining the multiple new character strings to obtain a new combined character string corresponding to the new transport logistics information; wherein the number of new combined character strings corresponding to the transshipment process is related to the number of times the liquor product is transshipped; Based on the combined character string corresponding to the transport logistics information, a hash calculation is performed on the new combined character string corresponding to the new transport logistics information to generate the second hash value; The tracing of the liquor product through the identification code and the mapping relationship between the processing information codes corresponding to different production links of each bottle of liquor specifically includes: Determine a second hash value corresponding to the logistics information code according to the logistics information code corresponding to the identification code; Determine the processing information code of the last production link corresponding to the second hash value; Acquire the processing information code related to the last production link, generate the processing information code with mapping relationship, and trace the liquor product step by step according to the processing information code with mapping relationship; The tracing of the liquor product level by level according to the processing information encoding that generates the mapping relationship specifically includes: Determine the processing information code of the last production link, generate a first processing information code corresponding to the factory information of the mapping relationship, and determine the hash value corresponding to the factory information according to the first processing information code, so as to obtain the factory information of the liquor product according to the hash value; and Determine a second processing information code corresponding to the production information having a mapping relationship with the first processing information code, and determine a hash value corresponding to the production information according to the second processing information code, so as to obtain the production information of the liquor product according to the hash value; and Determine a third processing information code corresponding to the raw material information that has a mapping relationship with the second processing information code, and determine a hash value corresponding to the raw material information according to the third processing information code, so as to obtain the raw material information of the liquor product according to the hash value.
Citation Information
Patent Citations
Commodity tracing method and system
CN111275449A
Food safety big data automatic coding and full-chain traceability system
CN111666269A
Product traceability management method and device based on blockchain, and related equipment
CN112819483A
Bottled wine circulation tracing method and system
CN113379428A