Premade dish tracing method and device and storage medium

By adding pre-made dishes' enterprise, production and testing information to the blockchain and writing a unique authentication code, the problem of difficult traceability data may be maliciously modified and queryed is solved, and the information is transparent and immutable. It improves consumers' trust and sense of security in products.

CN119313358APending Publication Date: 2025-01-14INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411431482.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing pre-made dishes traceability methods have the problem that traceability data may be maliciously modified and queryed, making it difficult for consumers to obtain complete and accurate traceability information.

Method used

By adding enterprise information, production information, testing information and supply chain information to the blockchain and writing it into a unique authentication code to ensure the transparency and immutability of information, consumers can quickly scan the authentication code by scanning the authentication code Obtain product traceability information.

Benefits of technology

It realizes the authenticity of enterprise information and the immutability of production information, increases consumers' trust and security of products, reduces the difficulty of obtaining traceable information, and ensures the transparency and traceability of the supply chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119313358A_ABST
    Figure CN119313358A_ABST
Patent Text Reader

Abstract

The invention discloses a prefabricated dish traceability method and device and a storage medium, belongs to the technical field of food traceability, and is used for solving the technical problems that traceability information may be maliciously modified and the traceability information is difficult to query. The method comprises the following steps: obtaining enterprise information applying for authentication of a prefabricated dish industry, adding the enterprise information to a preset block chain, obtaining production information of a prefabricated dish product of an enterprise, adding the production information to the block chain, obtaining detection information of the prefabricated dish product, adding the detection information to the block chain, and distributing an authentication code for the prefabricated dish product, and obtaining enterprise information, production information and detection information, writing the enterprise information, the production information and the detection information into an authentication code, obtaining supply chain information of the product, adding the supply chain information into the block chain, and writing the supply chain information into the authentication code of the product. According to the scheme, the query difficulty of the traceability information can be reduced under the condition that the traceability information cannot be modified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of food traceability, and in particular to a method, device and storage medium for tracing the source of a prepared dish. Background Art

[0002] Pre-prepared meals have won the favor of many consumers for their convenience. However, due to the special form of pre-prepared meals, it is difficult for consumers to understand the quality of their raw materials and processing environment, and it is impossible to ensure the food safety of pre-prepared meals. These factors have triggered an urgent demand for traceability of pre-prepared meals among consumers.

[0003] The current traceability method for pre-prepared meals is mainly: the relevant production, transportation, and sales entities provide corresponding traceability information, and the relevant companies and regulatory authorities verify this traceability information and store it in the database. This traceability method has the following problems:

[0004] 1) Traceability data may be maliciously modified: On the one hand, the database may be attacked by hackers. Hackers may use various means and techniques, such as Trojans, to attack the database, thereby obtaining access to the database and modifying the data therein. On the other hand, subjects with data modification authority may maliciously modify the data. Subjects with data modification authority may maliciously modify traceability data for many reasons, such as to cover up their own mistakes, evade responsibility, and obtain improper benefits.

[0005] 2) Difficulty in querying traceability data: In the existing traceability system, the traceability data of different links are often stored in the databases of different companies. Consumers often need to cross multiple platforms and query multiple databases to obtain complete traceability information. This query method is cumbersome and time-consuming. Sometimes, lack of query authority may cause consumers to not be able to view the traceability data at all. At the same time, the data formats of each link may be different, making it difficult for consumers to quickly and accurately obtain and understand the traceability information. Summary of the invention

[0006] The present invention provides a method, device and storage medium for tracing the origin of prepared dishes, which are used to solve at least one of the above-mentioned technical problems.

[0007] The present invention adopts the following technical solutions:

[0008] In a first aspect, the present invention provides a method for tracing the origin of pre-prepared food, the method comprising: obtaining enterprise information applying for certification of the pre-prepared food industry, and adding the enterprise information to a preset blockchain, the enterprise information including at least one of basic enterprise information, honorary qualification information and credit information; obtaining production information of the enterprise's pre-prepared food products, and adding the production information to the blockchain, the production information including at least one of basic product information, standard information, certification information and process information; obtaining inspection information of the pre-prepared food products, and adding the inspection information to the blockchain, the inspection information including at least one of a product self-inspection report, a government random inspection report and a third-party inspection report; assigning an authentication code to the pre-prepared food product, and writing the enterprise information, production information and inspection information into the authentication code, the authentication code uniquely corresponding to the product, the authentication code including at least one of a barcode and a QR code; obtaining the supply chain information of the product, adding the supply chain information to the blockchain, and writing the supply chain information into the authentication code of the product.

[0009] In a feasible implementation, assigning authentication codes to pre-prepared food products includes: generating authentication data based on enterprise information and / or production information; detecting whether the authentication data has been used; if the authentication data has been used, regenerating the authentication data; if the authentication data has not been used, generating an authentication code based on the authentication data, and assigning the authentication code to the product.

[0010] In a feasible implementation, writing enterprise information, production information and detection information into the authentication code includes: obtaining link data corresponding to the enterprise information, production information and detection information in the blockchain, the link data including at least one of a block hash value and a block height; obtaining authentication data corresponding to the authentication code; generating an associated data body based on the authentication data and the link data according to a preset data structure; and updating the authentication code according to the associated data body.

[0011] In a feasible implementation, writing supply chain information into the authentication code of a product includes: obtaining authentication data corresponding to the authentication code; obtaining an associated data body corresponding to the product based on the authentication data; adding the supply chain information to the associated data body according to a preset data structure; and updating the authentication code based on the associated data body.

[0012] In a feasible implementation, a method for tracing the origin of pre-prepared dishes further includes: in response to a client scanning an authentication code, obtaining client information and reading an associated data body corresponding to the authentication code; and sending the associated data body to the client based on the client information.

[0013] In a feasible implementation, obtaining enterprise information of the pre-prepared food industry applying for certification includes: obtaining enterprise registration information submitted by the enterprise; submitting the enterprise registration information to a preset entity for certification; if the certification passes, publicizing the certification result and using the enterprise registration information as the enterprise information; if the certification fails, sending the certification result to the enterprise.

[0014] In a feasible implementation, obtaining the production information of the company's pre-prepared food products includes: obtaining the product registration information submitted by the company; submitting the product registration information to a preset entity for review; if the review is passed, using the product registration production information as the production information; if the review is not passed, sending the review result to the company.

[0015] In a feasible implementation, obtaining the detection information of the pre-prepared food product includes: obtaining the production batch corresponding to the product according to the product information; and obtaining the corresponding detection information according to the production batch.

[0016] In a second aspect, the present invention also provides a pre-prepared food traceability device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor so that the at least one processor can execute a pre-prepared food traceability method as described in any of the above embodiments.

[0017] In a third aspect, the present invention further provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be able to execute a method for tracing the origin of a pre-prepared meal as described in any of the above embodiments.

[0018] The present invention provides a method, device and storage medium for tracing the origin of prepared dishes, which have the following beneficial effects:

[0019] 1. The present invention can ensure the authenticity of enterprise information and enhance consumers' trust in enterprises by adding enterprise information to the blockchain. At the same time, the transparency of enterprise information helps consumers to supervise enterprises and improve the standardization of the pre-prepared food industry. By adding production information to the blockchain, the transparency of the production process can be achieved and the non-tamperability of production information can be ensured. Consumers can understand the production process and relevant standards of the product by querying the production information, and increase their trust in the product. Adding the detection information to the blockchain can ensure the authenticity and non-tamperability of the test report and increase the credibility of the detection information. Consumers can understand the safety and quality of the product by querying the detection information, thereby increasing their confidence in the product. By assigning a unique authentication code to the pre-prepared food product and writing the enterprise information, production information and detection information into the authentication code, one-code tracing of product traceability information can be achieved. Consumers can quickly obtain the traceability information of the product by scanning the authentication code, reducing the difficulty for consumers to obtain traceability information. Adding the supply chain information to the blockchain and writing it into the authentication code of the product can achieve transparency and traceability of the supply chain. Consumers can understand the entire process of the product from production to sales by querying the supply chain information and ensure that the source of the product is credible.

[0020] 2. The authentication code allocation process in the present invention includes generating authentication data, detecting whether it has been used, regenerating it if it has been used, and generating a unique authentication code and allocating it to the product if it has not been used. This method determines that the authentication code of the product will not be reused, ensuring the uniqueness of the authentication code.

[0021] 3. When obtaining enterprise information, production information and testing information, the present invention first submits the relevant information provided by the enterprise to the corresponding subject for review, and only after the review is completed will the relevant information provided by the enterprise be added to the blockchain. This approach can ensure that the traceability information added to the chain has undergone strict review, and guarantee the authenticity and reliability of the traceability information recorded in the blockchain at the source. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0023] Figure 1 A flow chart of a method for tracing the origin of pre-prepared dishes provided by the present invention;

[0024] Figure 2 A schematic structural diagram of a pre-prepared food traceability device provided by the present invention. DETAILED DESCRIPTION

[0025] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. 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 the present invention.

[0026] The present invention provides a method for tracing the source of pre-prepared food. By adding the enterprise information, production information, detection information and supply chain information of the pre-prepared food products to the blockchain, and uniformly writing the above-mentioned multiple information into the authentication code, the technical problem that the traceability data of the pre-prepared food may be maliciously modified and difficult to query is solved.

[0027] The method of the present invention is described in detail below with reference to the accompanying drawings.

[0028] Figure 1 A flow chart of a method for tracing the origin of pre-prepared dishes provided by the present invention, such as Figure 1 As shown, the method in the present invention at least includes the following execution steps:

[0029] Step 101: Obtain the enterprise information of the prepared food industry applying for certification, and add the enterprise information to the preset blockchain.

[0030] Applying for certification of the pre-prepared food industry means that the enterprise applies to the pre-prepared food traceability platform for certification that the enterprise belongs to the pre-prepared food industry. After passing the certification, the pre-prepared food produced by the enterprise can be traced using the above platform. The preset blockchain here gives priority to the alliance chain, and the public chain can also be selected.

[0031] Specifically, first, obtain the filing information submitted by the enterprise. The filing information here refers to the basic information, honorary qualification information and credit information submitted by the enterprise. The basic information of the enterprise includes the name of the enterprise, the registered address and the unified social credit code. The honorary qualification information refers to the honors and qualifications obtained by the enterprise, such as honors such as national high-tech enterprises and best enterprise awards, and qualifications such as food production licenses and food circulation licenses. Secondly, the enterprise filing information is submitted to the preset subject for certification. The preset subject here includes at least one of the government regulatory department, industry association and third-party certification agency. If the certification is passed, the certification result will be announced on the above-mentioned pre-prepared food traceability platform, and the above-mentioned enterprise filing information will be added to the blockchain as enterprise information. If the certification fails, the result of the failed certification will be sent to the corresponding enterprise, requiring the enterprise to modify or add relevant filing information. By putting the certified corporate information on the chain, we can ensure that the information stored in the blockchain itself is authentic and reliable, and further ensure that the corporate information on the chain cannot be modified or deleted, so that consumers can understand the true information of the manufacturers of the pre-prepared food products they purchased. This can not only enhance consumers' trust in pre-prepared food manufacturers, but also improve the standardization of the pre-prepared food industry through consumer supervision.

[0032] In one example, a company submitted filing information, in which the basic information of the company included the company name "ABC Food Co., Ltd.", the registered address "No. XX, XX Street, Chaoyang District, Beijing" and the unified social credit code "123456789012345678". The honorary qualification information showed that the company had won the title of "National High-tech Enterprise" and the "Best Enterprise Award", and held qualifications such as "Food Production License" and "Food Distribution License". However, during the certification process, the preset subject found that the registered address of the company did not match the actual business address, the submitted "National High-tech Enterprise" certificate number was inconsistent with the record in the database of the Ministry of Science and Technology, and the credit report for the past three years was missing. Therefore, the company's filing information certification failed, and it was required to modify or add relevant information within 15 working days and resubmit for review.

[0033] Step 102: Obtain the production information of the company's pre-prepared food products and add the production information to the blockchain.

[0034] The production information here includes at least one of the following: basic product information, standard information, certification information and process information. Basic product information includes product name, production date, shelf life, ingredient list, etc. Standard information refers to the various standards and specifications followed in the production of pre-prepared food products, including the national standards, industry standards and enterprise standards that the products comply with. Certification information refers to the various certifications obtained by pre-prepared food products during the production process. These certifications are usually issued by certification bodies to prove that the products meet specific standards or requirements, usually including food safety certification, quality management system certification and organic food certification. Process information refers to the specific process flow and technical requirements of pre-prepared food products during the production process, usually including: selection and processing of raw materials, production process flow, equipment use, hygiene and safety measures and packaging measures.

[0035] Specifically, first obtain the product registration information submitted by the enterprise. The information categories contained in the product registration information here are the same as the information categories contained in the production information above. In order to distinguish whether this information has been reviewed, the unreviewed relevant information is called product registration information, and the reviewed relevant information is called production information. Secondly, the product registration information is submitted to the preset subject for review. If the review is passed, the product registration information will be used as production information. If the review fails, the review result will be sent to the corresponding enterprise, and the enterprise will be required to improve the above product registration information. By putting the reviewed production information on the chain, it can ensure that the pre-prepared food production information viewed by consumers is authentic and reliable. After knowing that the pre-prepared food products use high-quality raw materials and use safe and standardized production processes, consumers can eat the purchased pre-prepared food products with more confidence.

[0036] Step 103: Obtain the inspection information of the pre-prepared food product and add the inspection information to the blockchain.

[0037] The testing information here includes at least one of a product self-inspection report, a government random inspection report, and a third-party testing report.

[0038] Specifically, first, the production batch corresponding to the product is obtained according to the product information obtained in the previous step. Then, the test information corresponding to the production batch of the product in the test information submitted by the enterprise is searched. Then, the above test information is added to the blockchain.

[0039] In one example, a pre-prepared meal company tests the raw materials of its products and purchases them after they pass the test; it pre-prepares the qualified raw materials to obtain a batch of pre-prepared meals with a production batch number of 2024010102; it conducts a secondary test on the processed pre-prepared meals and completes a product self-inspection report for this batch of pre-prepared meal products; this batch of products is packaged and sent to the warehouse, and the product self-inspection report and product registration information corresponding to batch number 2024010102 are sent to the pre-prepared meal traceability platform; the product registration information obtained by the platform is reviewed and used as the production information of the pre-prepared meal products; after extracting the batch number of the product from the production information, the test report corresponding to the batch number is extracted from the multiple test reports submitted by the company; and finally, the extracted test report is added to the blockchain.

[0040] Step 104: assign an authentication code to the pre-prepared food product, and write the enterprise information, production information and testing information into the authentication code.

[0041] The authentication code here uniquely corresponds to the product. One product has only one authentication code, and one authentication code only corresponds to one product. The authentication code can be a barcode, a QR code, or a combination of a barcode and a QR code. The authentication code can not only realize product traceability, but also realize the digital marketing function on the code, such as holding red envelope rebates, lucky draws and other forms of marketing activities based on the authentication code. Through these marketing activities, enterprises can accumulate consumer information and product quality evaluation data, help enterprises form consumer user portraits, and provide data references for enterprise product iteration, formulation of marketing strategies, and optimization of production and operation systems.

[0042] The specific steps for assigning authentication codes to pre-prepared food products are as follows: First, generate authentication data based on the enterprise information and / or the production information. The authentication data here can be regarded as the identity ID of the product, and the authentication data corresponds to the product one by one. For example, the manufacturer of a certain product is codenamed A006 on the pre-prepared food platform, and the production batch of the product is 2024010102. Combine the above information and add some content at the end as the authentication data of the product: A006202401010234. Secondly, check whether the authentication data has been used. If the authentication data has been used, regenerate the authentication data. For example, if the authentication data A006202401010234 has been used, the last two digits can be modified to generate new authentication data: A006202401010256. If the authentication data has not been used, generate an authentication code based on the authentication data, and assign the authentication code to the corresponding product. Using the above steps to assign authentication codes can ensure that the authentication code will not be reused and can ensure the uniqueness of the authentication code.

[0043] The specific steps of writing enterprise information, production information and detection information into the authentication code are as follows: first, obtain the corresponding link data of enterprise information, production information and detection information in the blockchain. Link data refers to the hash value or block height of the block where the corresponding information is located. According to the link data, the corresponding block in the blockchain can be found, and then the relevant information stored in the block can be obtained. Then, the authentication data corresponding to the authentication code is obtained. Next, the authentication data and link data are generated into an associated data body according to the preset data structure. The authentication data and link data can be generated into an associated data body in json format, or the authentication data and link data can be stored in a relational database to generate an associated data body. Finally, the authentication code is updated according to the associated data body. Writing enterprise information, production information and detection information into the authentication code allows consumers to obtain all relevant information of pre-prepared food products at one time by scanning the authentication code, which greatly reduces the difficulty for consumers to obtain traceability information of pre-prepared food products.

[0044] Step 105: Obtain the supply chain information of the product, add the supply chain information to the blockchain, and write the supply chain information into the authentication code of the product.

[0045] The supply chain information here refers to a series of supply chain information such as logistics information, warehousing information and sales information of the products after the production of pre-prepared food products is completed. This information can help consumers understand the production place, logistics route, warehousing place and storage environment of the pre-prepared food products they purchased. In addition, by writing the information of production in and out of the warehouse and the scanning of the code in and out of the warehouse by distributors at all levels of the supply chain and terminal retail stores into the authentication code, the digital management of the supply chain can be realized. On the one hand, the quality factor data of each link can be connected in series to form a complete data chain, solve the problem of data islands between systems within the enterprise, and comprehensively collect supply chain data information. On the other hand, auditors can realize the Internet + anti-channeling inspection service by scanning the authentication code, solve the economic losses caused by counterfeiting and channeling to the enterprise in brand building, and use the code as a carrier to realize the supply chain benefit distribution process such as channel rebates. In addition, after obtaining the production, transportation, sales and other data of the pre-prepared food industry and the certification and filing data of each enterprise, it is possible to integrate resources from all parties for unified analysis, and provide inventory report analysis, circulation distribution data analysis, authentication code issuance and scanning analysis and other report analysis for pre-prepared food enterprises, to help enterprises conduct overall enterprise analysis and industrial development analysis.

[0046] Specifically, first obtain the authentication data corresponding to the product authentication code. Secondly, obtain the corresponding associated data body based on the authentication data. Thirdly, add the supply chain information to the associated data body according to the preset data structure. Finally, update the authentication code according to the associated data body. For example, the authentication data corresponding to the product authentication code is obtained as: A006202401010256, and then obtain a column corresponding to A006202401010256 in the relational database based on the authentication data, and then add the supply chain information to the above column according to the preset structure when creating the corresponding database table, and finally update the authentication code according to the content added in the database. By writing the supply chain information into the authentication code, the transparency of the supply chain can be achieved. Consumers can understand the entire process of the product from production to sales by scanning the authentication code to ensure that the source of the product is credible.

[0047] In one example, after the company produces and processes the pre-prepared food products, it sends production warehousing instructions to pack them and store them in the warehouse. The warehousing information and warehouse-related information here are simultaneously transmitted to the pre-prepared food traceability platform and added to the blockchain; the company sends production and delivery instructions based on the seller's needs to ship the pre-prepared food products. The delivery instructions and related information on the transportation of goods are simultaneously sent to the pre-prepared food traceability platform and added to the blockchain; the pre-prepared food products are sent to distributors for market sales. The distributor information, sales store information and other content here are transmitted to the traceability platform and added to the blockchain.

[0048] In a possible implementation of the present invention, after writing the relevant information of the pre-prepared food product into the authentication code, the consumer still needs to scan the above authentication code to obtain the corresponding traceability information. Therefore, after writing the authentication code of the pre-prepared food product, the present invention will first respond to the client scanning the above authentication code to obtain the client information and the corresponding associated data body. The client here refers to the client provided by the pre-prepared food platform for querying traceability information, which can be embodied in the form of a mobile phone application, an APP applet or a web page. Then, according to the client information, the associated data body is sent to the corresponding client. The client information here includes information such as the client's IP address and communication port. After receiving the associated data body, the client parses the associated data body and presents it in a concise manner. After the above steps, consumers can clearly view all the traceability information of the pre-prepared food products in the client.

[0049] Based on the same inventive concept, the present invention also provides a pre-prepared food traceability device, the structure of which is as follows: Figure 2 shown.

[0050] Figure 2 This is a schematic diagram of the structure of a pre-prepared food traceability device provided by the present invention. Figure 2As shown, a pre-prepared food traceability device 200 in the present invention specifically includes: at least one processor 201; and a memory 203 that is communicatively connected to the at least one processor (connected via a bus 202); wherein the memory 203 stores instructions that can be executed by the at least one processor 201, so that the at least one processor 201 can execute a pre-prepared food traceability method as described in the above embodiment.

[0051] In one or more possible implementations of the present invention, the aforementioned processor is used to execute, obtaining enterprise information of the pre-prepared food industry applying for certification, and adding the enterprise information to a preset blockchain; obtaining production information of the enterprise's pre-prepared food products, and adding the production information to the blockchain; obtaining inspection information of the pre-prepared food products, and adding the inspection information to the blockchain; assigning authentication codes to the pre-prepared food products, and writing the enterprise information, production information and inspection information into the authentication codes; obtaining supply chain information of the products, adding the supply chain information to the blockchain, and writing the supply chain information into the authentication codes of the products.

[0052] In addition, the present invention also provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to be able to execute a method for tracing the origin of a pre-prepared dish as described in any one of the above embodiments.

[0053] In one or more possible implementations of the present invention, the aforementioned computer executable instructions are configured to execute, obtain enterprise information applying for certification of the pre-prepared food industry, and add the enterprise information to a preset blockchain; obtain production information of the enterprise's pre-prepared food products, and add the production information to the blockchain; obtain inspection information of the pre-prepared food products, and add the inspection information to the blockchain; assign an authentication code to the pre-prepared food product, and write the enterprise information, production information and inspection information into the authentication code; obtain the product's supply chain information, add the supply chain information to the blockchain, and write the supply chain information into the product's authentication code.

[0054] Each embodiment of the present invention 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 IoT device and 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 embodiments.

[0055] The device and medium provided by the present invention correspond one-to-one to the method, so the device and medium also have similar beneficial technical effects to the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the device and medium will not be repeated here.

[0056] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0057] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0058] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0059] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0060] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0061] The above are only embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for tracing the origin of pre-prepared dishes, characterized in that: The method comprises: Obtaining information of enterprises applying for certification of the prepared food industry, and adding the enterprise information to a preset blockchain, wherein the enterprise information includes at least one of basic enterprise information, honorary qualification information, and credit information; Obtaining production information of the company's pre-prepared food products, and adding the production information to the blockchain, the production information including at least one of basic product information, standard information, certification information, and process information; Obtaining the test information of the prepared food product, and adding the test information to the blockchain, wherein the test information includes at least one of a product self-inspection report, a government random inspection report, and a third-party test report; Assigning an authentication code to the pre-prepared food product, and writing the enterprise information, production information and detection information into the authentication code, wherein the authentication code uniquely corresponds to the product, and the authentication code includes at least one of a barcode and a QR code; Obtain supply chain information of the product, add the supply chain information to the blockchain, and write the supply chain information into the authentication code of the product.

2. A method for tracing the origin of pre-prepared food according to claim 1, characterized in that: Allocating an authentication code to the prepared meal product includes: generating authentication data according to the enterprise information and / or the production information; Detecting whether the authentication data has been used; If the authentication data has been used, regenerate the authentication data; If the authentication data has not been used, an authentication code is generated based on the authentication data, and the authentication code is assigned to the product.

3. A method for tracing the origin of pre-prepared food according to claim 2, characterized in that: Writing the enterprise information, production information and testing information into the authentication code includes: Obtaining link data corresponding to the enterprise information, production information, and detection information in the blockchain, wherein the link data includes at least one of a block hash value and a block height; Obtaining authentication data corresponding to the authentication code; Generate an associated data body from the authentication data and the link data according to a preset data structure; The authentication code is updated according to the associated data body.

4. A method for tracing the origin of pre-prepared food according to claim 3, characterized in that: Writing the supply chain information into the authentication code of the product includes: Obtaining authentication data corresponding to the authentication code; According to the authentication data, obtaining the associated data body corresponding to the product; According to a preset data structure, the supply chain information is added to the associated data body; The authentication code is updated according to the associated data body.

5. The method for tracing the source of prepared dishes according to claim 1, characterized in that: The method further comprises: In response to the client scanning the authentication code, obtaining client information and reading the associated data body corresponding to the authentication code; The associated data body is sent to the client according to the client information.

6. A method for tracing the origin of prepared dishes according to claim 1, characterized in that: Get information on companies applying for certification in the prepared food industry, including: Obtain enterprise registration information submitted by the enterprise; Submit the enterprise registration information to the preset subject for authentication; If the certification is passed, the certification result will be made public, and the enterprise registration information will be used as enterprise information; If the authentication fails, the authentication result is sent to the enterprise.

7. The method for tracing the source of pre-prepared food according to claim 1, characterized in that: Obtain the production information of the company's pre-prepared food products, including: Obtain product registration information submitted by the enterprise; Submit the product registration information to the preset subject for review; If the review is passed, the registered production information of the product will be used as the production information; If the audit fails, the audit result will be sent to the enterprise.

8. The method for tracing the source of pre-prepared food according to claim 1, characterized in that: Obtaining the detection information of the pre-prepared food product, including: According to the product information, obtaining the production batch corresponding to the product; According to the production batch, corresponding detection information is obtained.

9. A pre-prepared food traceability device, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, so that the at least one processor can execute a pre-prepared meal tracing method according to any one of claims 1-8.

10. A non-volatile computer storage medium storing computer executable instructions, characterized in that: The computer executable instructions are configured to be able to execute a pre-prepared meal traceability method according to any one of claims 1-8.