Product traceability system generation method and product traceability method, device and equipment

By generating an interactive interface and configuring microservice modules to form a product traceability system, the problem of low development efficiency of existing product traceability systems is solved. This achieves efficient generation and easy operation of a product traceability system, adapting to the characteristics and needs of different products, and ensuring the authenticity, reliability, and retrieval efficiency of the data.

CN114386987BActive Publication Date: 2025-11-18AISINO CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111614443.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-27
Publication Date
2025-11-18
Estimated Expiration
2041-12-27

AI Technical Summary

Technical Problem

The development efficiency of existing product traceability systems is low, requiring multiple software development processes for different products.

Method used

By generating an interactive interface, configuring microservice modules and their corresponding relationships, a product traceability system is formed. The microservice modules are used to acquire and process product traceability data at traceability process nodes, and the data is stored in a database or blockchain.

Benefits of technology

It improves the generation efficiency of the product traceability system, simplifies the operation process, adapts to the characteristics and needs of different products, and ensures the authenticity, reliability and retrieval efficiency of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114386987B_ABST
    Figure CN114386987B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a product traceability system generation method, product traceability method, device and equipment, wherein the product traceability system generation method comprises: displaying an interactive interface for generating a product traceability system; based on a first user's operation instruction on the interactive interface, generating a product data traceability process diagram and configuration information of each traceability process node corresponding to the product data traceability process diagram; configuring a micro-service module corresponding to the traceability process node according to the configuration information, and configuring a corresponding relationship between the micro-service modules according to the product data traceability process diagram; and combining the micro-service modules according to the corresponding relationship to obtain the product traceability system of the product. Thus, the micro-service modules required for different products are selected to form the product traceability system, without the need for separate software development, and the operation is simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more particularly to a method for generating a product traceability system, as well as a product traceability method, apparatus, and equipment. Background Technology

[0002] A product traceability system is a system that records and manages information throughout the entire product lifecycle, including production and processing, packaging and warehousing, channel logistics, terminal sales, authenticity verification, and data analysis. It provides users with end-to-end traceability data from raw materials to the point of sale. Currently, there is a demand for product traceability across different industries, production and sales companies, and various products. However, the current development process for product traceability systems still relies on the traditional "requirements analysis—design—implementation—testing—delivery" software development workflow. This requires multiple separate software development processes for different traceability products, resulting in low efficiency. Summary of the Invention

[0003] This invention provides a method for generating a product traceability system, as well as a product traceability method, apparatus, and equipment, to solve the problem of low development efficiency of product traceability systems in the prior art.

[0004] In a first aspect, embodiments of the present invention provide a method for generating a product traceability system, comprising:

[0005] Displays the interactive interface for generating the product traceability system;

[0006] Based on the first user's operation instructions on the interactive interface, a product data traceability process diagram and configuration information of each traceability process node corresponding to the product data traceability process diagram are generated.

[0007] Configure the microservice modules corresponding to the traceability process nodes according to the configuration information, and configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice modules are used to obtain and process the product traceability data of the corresponding traceability process nodes during the product traceability process;

[0008] The product traceability system for the product is obtained by combining the microservice modules according to the corresponding relationship.

[0009] Optionally, the configuration information includes at least one of the following:

[0010] Data acquisition method configuration information, used to configure the method of collecting product traceability data for the corresponding traceability process nodes;

[0011] Data attribute configuration information is used to configure the attributes of the product traceability data collected at the corresponding traceability process nodes;

[0012] The on-chain configuration information is used to configure whether the product traceability data collected by the corresponding traceability process nodes is published to the blockchain.

[0013] Secondly, embodiments of the present invention also provide a product traceability method, including:

[0014] By utilizing each microservice module in the product traceability system, product traceability data collected by the traceability process nodes corresponding to the microservice modules is obtained respectively; wherein the product traceability system is obtained by combining the microservice modules determined based on the operation instructions of the first user on the interactive interface;

[0015] For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and stores it in the database, and saves the association between the product traceability data and the product traceability data of the same product at other traceability process nodes;

[0016] In response to the traceability data retrieval command from the second user, the product traceability data of the product corresponding to the traceability data retrieval command is retrieved from the database using the association relationship.

[0017] Optionally, after processing the product traceability data and storing it in the database, the method further includes:

[0018] According to the first on-chain configuration information corresponding to the traceability process node, the product traceability data is published to the blockchain, wherein the first on-chain configuration information is used to configure the product traceability data to be published to the blockchain.

[0019] Optionally, by utilizing each microservice module in the product traceability system, product traceability data collected by the traceability process nodes corresponding to the microservice modules can be obtained, including:

[0020] For any of the microservice modules, the data collection method configured by the microservice module using the data collection method configuration information is used to obtain the product traceability data of the traceability process node, wherein the data collection method configuration information is used to configure the corresponding traceability process node to collect product traceability data.

[0021] Optionally, for product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and then stores it in the database, including:

[0022] For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into the format configured by the data attribute configuration information according to the data attribute configuration information corresponding to the traceability process node, and then stores it in the database.

[0023] Optionally, the product traceability data is formatted and then stored in a database, including:

[0024] If the data capacity stored in the relational database is less than a preset threshold, the product traceability data will be formatted and then stored in the relational database.

[0025] If the data capacity stored in the relational database is greater than or equal to the preset threshold, at least a portion of the product traceability data in the relational database is transferred to the large database, and the product traceability data is formatted and then stored in the relational database; wherein the retrieval efficiency of the large database when the stored data capacity is greater than or equal to the preset threshold is greater than the retrieval efficiency of the relational database when storing the same amount of data.

[0026] Retrieving product traceability data for the product corresponding to the traceability data retrieval instruction from the database using the aforementioned relationship includes:

[0027] The product traceability data corresponding to the traceability data retrieval instruction is obtained from the relational database using the aforementioned relationship. If the retrieval fails, the product traceability data corresponding to the traceability data retrieval instruction is obtained from the large database.

[0028] Optionally, after the product traceability data is formatted and stored in the database using the microservice module, the method further includes:

[0029] In response to a generate set instruction, product traceability data with specified attributes is retrieved from the database, and the product traceability data is combined into a product traceability data set with specified attributes, wherein the specified attributes are the attributes corresponding to the generate set instruction.

[0030] Thirdly, embodiments of the present invention also provide a device for generating a product traceability system, comprising:

[0031] The interactive interface display unit is used to display the interactive interface for generating the product traceability system;

[0032] The configuration information generation unit is used to generate a product data traceability process diagram and configuration information for each traceability process node corresponding to the product data traceability process diagram based on the operation instructions of the first user on the interactive interface.

[0033] A configuration unit is used to configure the microservice module corresponding to the traceability process node according to the configuration information, and to configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice module is used to obtain and process the product traceability data of the corresponding traceability process node during the product traceability process;

[0034] The publishing unit is used to combine the microservice modules according to the corresponding relationship to obtain the product traceability system of the product.

[0035] Fourthly, embodiments of the present invention also provide a product data traceability device, comprising:

[0036] The data acquisition unit is used to acquire product traceability data collected by the traceability process nodes corresponding to the microservice modules in the product traceability system; wherein the product traceability system is obtained by combining the microservice modules determined based on the operation instructions of the first user on the interactive interface.

[0037] The data processing unit is used to process the product traceability data collected at any traceability process node, and then store the product traceability data in the database after formatting the data using the microservice module, and save the association between the product traceability data and the product traceability data of the same product at other traceability process nodes.

[0038] The traceability unit is used to respond to the traceability data acquisition instruction of the second user and retrieve the product traceability data of the product corresponding to the traceability data acquisition instruction from the database using the association relationship.

[0039] Fifthly, embodiments of the present invention also provide an electronic device, including: a processor and a memory for storing processor-executable instructions;

[0040] The processor is configured to execute the instructions to implement the product traceability system generation method as described in the first aspect, and / or to implement the product traceability method as described in the second aspect.

[0041] In a sixth aspect, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that is used to implement the product traceability system generation method as described in the first aspect, and / or to implement the product traceability method as described in the second aspect.

[0042] The beneficial effects of this invention are as follows:

[0043] The product traceability system generation method, apparatus, and equipment provided in this invention pre-generate microservice modules for various traceability process nodes that may be involved in the product traceability process. Different first users can customize and select the required microservice modules according to the characteristics and needs of the product to form the product traceability system, eliminating the need for separate software development for each product and greatly improving the generation efficiency of the product traceability system. Furthermore, the product traceability system is generated through an interactive interface for the first user, making it easy to operate. Attached Figure Description

[0044] Figure 1 A flowchart illustrating the product traceability system generation method provided in this embodiment of the invention;

[0045] Figure 2 This is a schematic diagram of the product traceability process in an embodiment of the present invention;

[0046] Figure 3 This is one of the schematic diagrams of the interactive interface in an embodiment of the present invention;

[0047] Figure 4 This is a second schematic diagram of the interactive interface in an embodiment of the present invention;

[0048] Figure 5 A flowchart of a product traceability method provided in an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of the structure of the product traceability system generation device provided in an embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of the product traceability device provided in an embodiment of the present invention;

[0051] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0052] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. However, the exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided to make the present invention more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The same reference numerals in the figures denote the same or similar structures, and therefore repeated descriptions of them will be omitted. Terms describing position and direction in the present invention are illustrative based on the accompanying drawings, but changes can be made as needed, and all such changes are included within the scope of protection of the present invention. The accompanying drawings of the present invention are for illustrative purposes only and do not represent actual proportions.

[0053] It should be noted that specific details are set forth in the following description to provide a full understanding of the invention. However, the invention can be practiced in many ways other than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below. The following description is a preferred embodiment for carrying out the present application; however, the description is for the purpose of illustrating the general principles of the application and is not intended to limit the scope of the application. The scope of protection of this application shall be determined by the appended claims.

[0054] The following description, in conjunction with the accompanying drawings, details the product traceability system generation method, device, and equipment provided in the embodiments of the present invention.

[0055] In a first aspect, embodiments of the present invention provide a method for generating a product traceability system, such as... Figure 1 As shown, it includes:

[0056] S110, Display the interactive interface of the generated product traceability system.

[0057] S120. Based on the first user's operation instructions on the interactive interface, generate a product data traceability process diagram and configuration information for each traceability process node corresponding to the product data traceability process diagram.

[0058] In this invention, such as Figure 2 As shown, the traceability process nodes are the actual nodes where product traceability data is uploaded to the product traceability system. For example, for a certain food product, the corresponding traceability process nodes may include raw material procurement nodes where raw material producers upload product traceability data, production input nodes and quality management nodes where food producers upload product traceability data, and distribution management nodes where food distributors upload product traceability data, etc. The first user refers to the user who generates the product traceability system, which can specifically be the product's producer, seller, regulator, etc.

[0059] In practice, the configuration information can be a configuration file in Extensible Markup Language (XML) format or other formats; no specific limitation is made here.

[0060] S130. Configure the microservice module corresponding to the traceability process node according to the configuration information, and configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice module is used to obtain and process the product traceability data of the corresponding traceability process node in the product traceability process.

[0061] In the specific implementation process, the correspondence between the microservice modules can also be saved by generating an XML format configuration file, so that when the microservice modules perform product traceability, they can determine the correspondence according to the configuration file and add the correspondence to the product traceability data when processing the collected product traceability data.

[0062] S140. The microservice modules are combined according to the corresponding relationship to obtain the product traceability system of the product.

[0063] In specific implementation, the interactive interface can be as follows: Figure 3The diagram shows a graphical user interface (GUI). This interface contains multiple preset traceability process node diagrams. Each preset traceability process node corresponds to a microservice module, and each microservice module is responsible for acquiring and processing product traceability data for one traceability process node. The first user generates a product data traceability process diagram by selecting a traceability process node diagram on the interface and drawing the connection relationships between the diagrams. When selecting a traceability process node diagram, configuration options for the corresponding traceability process node pop up, and configuration information for that traceability process node is generated based on the user's settings.

[0064] Alternatively, the interactive interface can be as follows: Figure 4 As shown, it mainly consists of configuration options. The first user determines each traceability process node in the entire traceability process and generates a product data traceability process diagram by setting the configuration options on the interactive interface. When configuring each traceability process node, the corresponding traceability process node's configuration options pop up, and the configuration information of the traceability process node is generated according to the first user's settings of the configuration options.

[0065] In this way, for various traceability process nodes that may be involved in the product traceability process, microservice modules are pre-generated. Different first users can customize and select the required microservice modules according to the characteristics and needs of the product to form the product traceability system. This eliminates the need for separate software development for each product, greatly improving the generation efficiency of the product traceability system. At the same time, the product traceability system is generated through an interactive interface for first users, making it easy to operate.

[0066] Optionally, the configuration information includes at least one of the following:

[0067] (1) Data collection method configuration information, which is used to configure the corresponding traceability process node to collect product traceability data.

[0068] In practice, different traceability process nodes may employ different data collection methods to collect product traceability data due to factors such as cost and technology. These methods include: IoT sensor data collection, where data is directly collected and uploaded from IoT sensors at the traceability process nodes; database collection, where data is obtained from databases such as the Enterprise Resource Planning (ERP) systems of participants at the traceability process nodes; file collection, where participants upload product traceability data files (e.g., spreadsheets and images of paper documents); and manual collection, where participants manually input product traceability data through their terminal applications or on the product traceability system. By configuring the data collection method information to correspond to the product traceability data collection methods at different traceability process nodes, the system can adapt to the data collection needs of various traceability process nodes.

[0069] (2) Data attribute configuration information, used to configure the attributes of the product traceability data collected at the corresponding traceability process nodes.

[0070] In the specific implementation process, the attributes of the product traceability data include data format attributes, such as character type, integer type, floating point type, currency type, time type, etc.; it also includes data storage attributes, such as saving as a data table; and it also includes data meaning attributes, such as the product traceability data representing time attributes, currency attributes, number attributes, product type attributes, etc.

[0071] (3) On-chain configuration information, used to configure whether the product traceability data collected by the corresponding traceability process node is published to the blockchain.

[0072] In the specific implementation process, the on-chain configuration information includes the first on-chain configuration information for configuring the product traceability data collected by the corresponding traceability process node to be published to the blockchain, and the second on-chain configuration information for configuring the product traceability data collected by the corresponding traceability process node not to be published to the blockchain.

[0073] A crucial requirement for product data traceability is data authenticity and reliability. Blockchain technology, with its characteristics of making data published on the blockchain difficult to forge, fabricate, or tamper with, ensures the authenticity and reliability of product traceability data. However, in practical implementation, such as... Figure 2As shown, the product traceability system collects various product traceability data from each traceability process node. However, not all product traceability data needs to be published to the blockchain. Therefore, by configuring the on-chain information, the system can determine whether the product traceability data collected by the corresponding traceability process node is published to the blockchain, thus reducing data overhead. Compared to existing systems where the publication of product traceability data at each traceability process node to the blockchain is defined during the software development phase, this system can flexibly adjust the data upload to the blockchain according to the traceability needs of the first user, refining the granularity of the product traceability system's on-chain data upload.

[0074] Secondly, embodiments of the present invention also provide a product traceability method, such as... Figure 5 As shown, it includes:

[0075] S210. Using each microservice module in the product traceability system, obtain the product traceability data collected by the traceability process nodes corresponding to the microservice modules.

[0076] The product traceability system described above is obtained by combining microservice modules determined based on the operation instructions of the first user on the interactive interface. Specifically, the product traceability system can be obtained through the product traceability system generation method described in the first aspect above.

[0077] S220. For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and stores it in the database, and saves the association between the product traceability data and the product traceability data of the same product at other traceability process nodes.

[0078] S240. In response to the traceability data acquisition instruction from the second user, retrieve the product traceability data of the product corresponding to the traceability data acquisition instruction from the database using the association relationship.

[0079] In this embodiment of the invention, the second user refers to a user using the product traceability system, specifically a consumer of the product, a regulator, etc.

[0080] In specific implementation, the second user's instruction to obtain traceability data can be triggered by the second user through operation on the traceability operation page of the product traceability system, or by operation on the second user's terminal application (such as the corresponding product traceability application, mini-program, etc.) and then sent to the product traceability system, or by the second user via SMS, telephone, etc. After obtaining the product traceability data of the corresponding product through step S230, feedback can be provided to the second user through the display interface of the product traceability system, or through the second user's terminal application (such as the corresponding product traceability application, mini-program, etc.), or by sending an SMS or making a telephone call to the second user's device.

[0081] In practice, the traceability data acquisition instruction can directly instruct the product traceability system to acquire all product traceability data of the corresponding product, or it can instruct the product traceability system to acquire product traceability data of a specified traceability process node of the corresponding product, without limitation.

[0082] In this way, by acquiring and processing product traceability data at all traceability process nodes, a second user can track the entire life cycle of the product.

[0083] Optionally, after step S220, the method further includes:

[0084] S230. Based on the first on-chain configuration information corresponding to the traceability process node, the product traceability data is published to the blockchain, wherein the first on-chain configuration information is used to configure the product traceability data to be published to the blockchain.

[0085] In the specific implementation process, blockchain can also be used to check and write back the product traceability data stored in the database to ensure the accuracy of the product traceability data.

[0086] In this way, by publishing product traceability data to the blockchain, the credibility of the product traceability data is ensured.

[0087] Optionally, in step S220, the product traceability data collected by the traceability process nodes corresponding to the microservice modules in the product traceability system is obtained by utilizing each microservice module, including:

[0088] For any of the microservice modules, the data collection method configured by the microservice module using the data collection method configuration information is used to obtain the product traceability data of the traceability process node, wherein the data collection method configuration information is used to configure the corresponding traceability process node to collect product traceability data.

[0089] Specifically, the configuration information for the data acquisition method can be found in the corresponding content of the first aspect above, and will not be repeated here.

[0090] Optionally, in step S220, for product traceability data collected at any traceability process node, the microservice module processes the product traceability data and stores it in the database, including:

[0091] For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into the format configured by the data attribute configuration information according to the data attribute configuration information corresponding to the traceability process node, and then stores it in the database.

[0092] In practical implementation, the format processing includes data cleaning, data processing, and data conversion of product traceability data. Specifically, the data cleaning process involves supplementing missing fields, deleting excessively long fields, and adjusting significant figures in the collected product traceability data according to the data attribute configuration information. The data processing process involves setting data meaning attributes for the collected product traceability data according to the data attribute configuration information, such as marking the product traceability data with time attributes, currency attributes, number attributes, product type attributes, etc. The data conversion process involves converting the data format and saving format of the collected product traceability data according to the data attribute configuration information. The above processes can be implemented using data warehouse technology (Extract-Transform-Load, ETL).

[0093] Optionally, in step S220, storing the product traceability data in a database after format processing includes:

[0094] If the data capacity stored in the relational database is less than a preset threshold, the product traceability data will be formatted and then stored in the relational database.

[0095] If the data capacity stored in the relational database is greater than or equal to the preset threshold, at least a portion of the product traceability data in the relational database is transferred to the large database, and the product traceability data is formatted and then stored in the relational database; wherein the retrieval efficiency of the large database when the stored data capacity is greater than or equal to the preset threshold is greater than the retrieval efficiency of the relational database when storing the same amount of data.

[0096] Step S240, retrieving product traceability data of the product corresponding to the traceability data retrieval instruction from the database using the association relationship, includes:

[0097] The product traceability data corresponding to the traceability data retrieval instruction is obtained from the relational database using the aforementioned relationship. If the retrieval fails, the product traceability data corresponding to the traceability data retrieval instruction is obtained from the large database.

[0098] Relational databases are databases built on the relational database model, utilizing concepts and methods such as set algebra to process data. Their advantages include ease of expansion and high retrieval efficiency when the amount of stored data is small. In specific implementations, the relational database in this embodiment can be Oracle, DB2, MySQL, Microsoft SQL Server, Microsoft Access, etc. However, when the amount of stored data is extremely large, the retrieval efficiency of the relational database will drop sharply. Considering that second users often have a greater need for product traceability for the most recently produced and sold products, and a lower need for traceability for products produced and sold earlier, this embodiment of the invention sets up a separate large database. When the product traceability data stored in the relational database becomes too large, the previously stored product traceability data is transferred to the large database for storage. This ensures that traceability data for products with more recent creation times can be retrieved by second users more quickly, while ensuring that the retrieval efficiency for traceability data for older products remains within an acceptable range. In specific implementations, the large database can be a key-value database.

[0099] During the product traceability process described above, if the product traceability data of different products are stored in the same database, the product traceability system will obtain a massive amount of product traceability data. This product traceability data contains implicit, non-obvious connections. Analyzing this product traceability data can yield valuable business information. For example, if the product traceability system traces clothing, analyzing the product traceability information of different types of clothing can yield valuable business information such as best-selling styles and peak sales periods. Therefore, the product traceability system can be used to further mine the product traceability data.

[0100] Optionally, after step S220, the method further includes:

[0101] S250. In response to the generate set instruction, retrieve product traceability data with specified attributes from the database, and assemble the product traceability data into the specified attribute product traceability data set, wherein the specified attribute is the attribute corresponding to the generate set instruction.

[0102] For example, for clothing, product traceability data for attributes such as tops, trousers, and down jackets can be obtained from the database to analyze the sales of different types of clothing.

[0103] Based on the same inventive concept, in a third aspect, embodiments of the present invention also provide a product traceability system generation device, such as... Figure 6 As shown, it includes:

[0104] The interactive interface display unit U110 is used to display the interactive interface for generating the product traceability system.

[0105] The configuration information generation unit U120 is used to generate a product data traceability process diagram and configuration information of each traceability process node corresponding to the product data traceability process diagram based on the operation instructions of the first user on the interactive interface.

[0106] Configuration unit U130 is used to configure the microservice module corresponding to the traceability process node according to the configuration information, and to configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice module is used to obtain and process the product traceability data of the corresponding traceability process node during the product traceability process;

[0107] The publishing unit U140 is used to combine the microservice modules according to the corresponding relationship to obtain the product traceability system of the product.

[0108] Optionally, the configuration information includes at least one of the following:

[0109] Data acquisition method configuration information, used to configure the method of collecting product traceability data for the corresponding traceability process nodes;

[0110] Data attribute configuration information is used to configure the attributes of the product traceability data collected at the corresponding traceability process nodes;

[0111] The on-chain configuration information is used to configure whether the product traceability data collected by the corresponding traceability process nodes is published to the blockchain.

[0112] Based on the same inventive concept, in a fourth aspect, embodiments of the present invention also provide a product traceability device, such as... Figure 7 As shown, it includes:

[0113] The data acquisition unit U210 is used to acquire product traceability data collected by the traceability process nodes corresponding to the microservice modules in the product traceability system; wherein the product traceability system is obtained by combining the microservice modules determined based on the operation instructions of the first user on the interactive interface.

[0114] The data processing unit U220 is used to process the product traceability data collected at any traceability process node, and then store the product traceability data in the database after formatting the data using the microservice module. It also saves the association between the product traceability data and the product traceability data of the same product at other traceability process nodes.

[0115] The traceability unit U240 is used to respond to the traceability data acquisition instruction of the second user and retrieve the product traceability data of the product corresponding to the traceability data acquisition instruction from the database using the association relationship.

[0116] Optionally, the product traceability device further includes:

[0117] The on-chain unit U230 is used to publish the product traceability data to the blockchain according to the first on-chain configuration information corresponding to the traceability process node, wherein the first on-chain configuration information is used to configure the product traceability data to be published to the blockchain.

[0118] Optionally, by utilizing each microservice module in the product traceability system, product traceability data collected by the traceability process nodes corresponding to the microservice modules can be obtained, including:

[0119] For any of the microservice modules, the data collection method configured by the microservice module using the data collection method configuration information is used to obtain the product traceability data of the traceability process node, wherein the data collection method configuration information is used to configure the corresponding traceability process node to collect product traceability data.

[0120] Optionally, for product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and then stores it in the database, including:

[0121] For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into the format configured by the data attribute configuration information according to the data attribute configuration information corresponding to the traceability process node, and then stores it in the database.

[0122] Optionally, the product traceability data is formatted and then stored in a database, including:

[0123] If the data capacity stored in the relational database is less than a preset threshold, the product traceability data will be formatted and then stored in the relational database.

[0124] If the data capacity stored in the relational database is greater than or equal to the preset threshold, at least a portion of the product traceability data in the relational database is transferred to the large database, and the product traceability data is formatted and then stored in the relational database; wherein the retrieval efficiency of the large database when the stored data capacity is greater than or equal to the preset threshold is greater than the retrieval efficiency of the relational database when storing the same amount of data.

[0125] Retrieving product traceability data for the product corresponding to the traceability data retrieval instruction from the database using the aforementioned relationship includes:

[0126] The product traceability data corresponding to the traceability data retrieval instruction is obtained from the relational database using the aforementioned relationship. If the retrieval fails, the product traceability data corresponding to the traceability data retrieval instruction is obtained from the large database.

[0127] Optionally, the product traceability device further includes:

[0128] Analysis unit U250 is used to respond to a generate set instruction to retrieve product traceability data with specified attributes from the database, and to assemble the product traceability data into a product traceability data set with specified attributes, wherein the specified attributes are the attributes corresponding to the generate set instruction.

[0129] It should be understood that the device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units may be combined or integrated into another system, or some features may be ignored or not executed. In the embodiments of the present invention, the units may be integrated into one unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The integrated unit described above can be implemented in hardware or as a software functional module. If the integrated unit is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.

[0130] Since the working principle of the product traceability system generation device is the same as that of the product traceability system generation method described above, the corresponding implementation can be found in the above content, and will not be repeated here.

[0131] Based on the same inventive concept, in a fifth aspect, embodiments of the present invention also provide an electronic device, such as... Figure 8As shown, it includes: a processor 110 and a memory 120 for storing executable instructions of the processor 110; wherein the processor 110 is configured to execute the instructions to implement the product traceability system generation method, and / or implement the product traceability method.

[0132] In specific implementations, the device may vary significantly due to differences in configuration or performance. It may include one or more processors 110, memory 120, and computer-readable storage media 130. The memory 120 and / or computer-readable storage media 130 may contain one or more application programs 131 or data 132. The memory 120 and / or computer-readable storage media 130 may also contain one or more operating systems 133, such as Windows, Mac OS, Linux, iOS, Android, Unix, FreeBSD, etc. The memory 120 and computer-readable storage media 130 may be temporary or persistent storage. The application program 131 may include one or more of the aforementioned units (…). Figure 8 (Not shown in the image), each module may include a series of instruction operations. Furthermore, the processor 110 may be configured to communicate with the computer-readable storage medium 130 and execute a series of instruction operations stored in the storage medium 130 on the device. The device may also include one or more power supplies (…). Figure 8 (not shown in the image); one or more network interfaces 140, including a wired network interface 141 and / or a wireless network interface 142; one or more input / output interfaces 143.

[0133] Based on the same inventive concept, in a sixth aspect, embodiments of the present invention also provide a computer storage medium storing a computer program, the computer program being used to implement the product traceability system generation method, and / or to implement the product traceability method.

[0134] The product traceability system generation method, apparatus, and equipment provided in this invention pre-generate microservice modules for various traceability process nodes that may be involved in the product traceability process. Different first users can customize and select the required microservice modules according to the characteristics and needs of the product to form the product traceability system, eliminating the need for separate software development for each product and greatly improving the generation efficiency of the product traceability system. Furthermore, the product traceability system is generated through an interactive interface for the first user, making it easy to operate.

[0135] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.

[0136] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0137] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0138] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0139] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for generating a product traceability system, characterized in that, include: The interactive interface for generating the product traceability system is displayed; wherein, the interactive interface contains multiple preset traceability process node graphics, and each preset traceability process node corresponds to a microservice module. Based on the first user's operation instructions to select the traceability process node graphics and draw the connection relationships between each traceability process node graphics on the interactive interface, a product data traceability process diagram is generated; and based on the operation instructions of the first user to generate the configuration information of the traceability process node corresponding to the product data traceability process diagram, configuration information of each traceability process node is generated according to the configuration options that pop up when selecting the traceability process node graphics; wherein, the configuration information includes: data collection method configuration information, used to configure the method of collecting product traceability data by the corresponding traceability process node; and on-chain configuration information, used to configure whether the product traceability data collected by the corresponding traceability process node is published to the blockchain; the data collection method includes at least one of the following: IoT sensor collection method of directly collecting and uploading product traceability data through IoT sensors of the traceability process node, database collection method of obtaining product traceability data from the database of the participants of the traceability process node, file collection method of the participants of the traceability process node by uploading product traceability data files, and manual collection method of the participants of the traceability process node by manually inputting product traceability data through their terminal applications or on the product traceability system; Configure the microservice modules corresponding to the traceability process nodes according to the configuration information, and configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice modules are used to obtain and process the product traceability data of the corresponding traceability process nodes during the product traceability process; The product traceability system for the product is obtained by combining the microservice modules according to the corresponding relationship.

2. The method as described in claim 1, characterized in that, The configuration information also includes: Data attribute configuration information is used to configure the attributes of the product traceability data collected at the corresponding traceability process nodes.

3. A product traceability method, characterized in that, include: For any microservice module in the product traceability system, the data acquisition method configured by the microservice module using the data acquisition method configuration information is used to obtain product traceability data of the traceability process node; wherein the product traceability system is obtained by combining microservice modules determined based on the operation instructions of the first user on the interactive interface through the product traceability system generation method as described in any one of claims 1-2; the data acquisition method configuration information is used to configure the corresponding traceability process node to collect product traceability data, wherein the data acquisition method includes at least one of the following: IoT sensor acquisition method of directly collecting and uploading product traceability data through IoT sensors of the traceability process node, database acquisition method of obtaining product traceability data from the database of the participants of the traceability process node, file acquisition method of the participants of the traceability process node by uploading product traceability data files, and manual acquisition method of the participants of the traceability process node by manually entering product traceability data through their terminal application or on the product traceability system; For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and stores it in a database, while also preserving the association between the product traceability data and the product traceability data of the same product at other traceability process nodes. Specifically, if the data capacity stored in the relational database is less than a preset threshold, the product traceability data is processed and stored in the relational database. If the data capacity stored in the relational database is greater than or equal to the preset threshold, at least a portion of the product traceability data in the relational database is transferred to a large database, and then the product traceability data is processed and stored in the relational database. The retrieval efficiency of the large database when the stored data capacity is greater than or equal to the preset threshold is greater than the retrieval efficiency of the relational database when storing the same data. According to the first on-chain configuration information corresponding to the traceability process node, the product traceability data is published to the blockchain, wherein the first on-chain configuration information is used to configure the product traceability data to be published to the blockchain; In response to the traceability data retrieval instruction from the second user, the product traceability data of the product corresponding to the traceability data retrieval instruction is retrieved from the relational database using the association relationship. If the retrieval fails, the product traceability data of the product corresponding to the traceability data retrieval instruction is retrieved from the large database. In response to a generate set instruction, product traceability data with specified attributes is retrieved from the database, and the product traceability data is combined into a product traceability data set with specified attributes; the product traceability data set with specified attributes is analyzed to determine target business information; wherein the specified attribute is the attribute corresponding to the generate set instruction.

4. The method as described in claim 3, characterized in that, For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into a format and stores it in the database, including: For product traceability data collected at any traceability process node, the microservice module processes the product traceability data into the format configured by the data attribute configuration information according to the data attribute configuration information corresponding to the traceability process node, and then stores it in the database.

5. A device for generating a product traceability system, characterized in that, include: An interactive interface display unit is used to display the interactive interface for generating the product traceability system; wherein, the interactive interface includes multiple preset traceability process node graphics, and each preset traceability process node corresponds to a microservice module. A configuration information generation unit is used to generate a product data traceability process diagram based on the operation instructions of the first user to select the traceability process node graphics on the interactive interface and draw the connection relationship between each traceability process node graphics; and to generate configuration information for each traceability process node corresponding to the product data traceability process diagram based on the operation instructions of the first user to generate configuration information for the traceability process node according to the configuration options popped up when selecting the traceability process node graphics; wherein, the configuration information includes: data collection method configuration information, used to configure the method of collecting product traceability data by the corresponding traceability process node; and on-chain configuration information, used to configure whether the product traceability data collected by the corresponding traceability process node is published to the blockchain; the data collection method includes at least one of the following: IoT sensor collection method of directly collecting and uploading product traceability data through IoT sensors of the traceability process node, database collection method of obtaining product traceability data from the database of the participants of the traceability process node, file collection method of the participants of the traceability process node by uploading product traceability data files, and manual collection method of the participants of the traceability process node by manually inputting product traceability data through their terminal application or on the product traceability system; A configuration unit is used to configure the microservice module corresponding to the traceability process node according to the configuration information, and to configure the correspondence between the microservice modules according to the product data traceability process diagram, wherein the microservice module is used to obtain and process the product traceability data of the corresponding traceability process node during the product traceability process; The publishing unit is used to combine the microservice modules according to the corresponding relationship to obtain the product traceability system of the product.

6. A product data traceability device, characterized in that, include: The data acquisition unit is used to acquire product traceability data of traceability process nodes for any microservice module in the product traceability system, using the data acquisition method configuration information configured by the microservice module. The product traceability system is obtained by combining microservice modules determined based on the operation instructions of a first user on the interactive interface using the product traceability system generation method described in any one of claims 1-2. The data acquisition method configuration information is used to configure the corresponding traceability process node's method for acquiring product traceability data. The data acquisition method includes at least one of the following: an IoT sensor acquisition method that directly acquires and uploads product traceability data via IoT sensors of the traceability process node; a database acquisition method that acquires product traceability data from the database of participants in the traceability process node; a file acquisition method where participants in the traceability process node upload product traceability data files; and a manual acquisition method where participants in the traceability process node manually input product traceability data through their terminal application or on the product traceability system. The data processing unit is used to process product traceability data collected at any traceability process node, and then store the processed data in a database using the microservice module. It also maintains the association between the processed product traceability data and product traceability data of the same product at other traceability process nodes. Specifically, if the data capacity stored in the relational database is less than a preset threshold, the processed product traceability data is stored in the relational database. If the data capacity stored in the relational database is greater than or equal to the preset threshold, at least a portion of the product traceability data in the relational database is transferred to a large database, and then the processed product traceability data is stored in the relational database. The retrieval efficiency of the large database when the stored data capacity is greater than or equal to the preset threshold is greater than the retrieval efficiency of the relational database when storing the same data. The on-chain unit is used to publish the product traceability data to the blockchain according to the first on-chain configuration information corresponding to the traceability process node, wherein the first on-chain configuration information is used to configure the product traceability data to be published to the blockchain; The traceability unit is used to respond to the traceability data acquisition instruction of the second user, and to acquire the product traceability data of the product corresponding to the traceability data acquisition instruction from the relational database using the association relationship. If the acquisition is unsuccessful, the product traceability data of the product corresponding to the traceability data acquisition instruction is acquired from the large database. An analysis unit is configured to, in response to a set generation instruction, retrieve product traceability data with specified attributes from a database, assemble the product traceability data into a set of product traceability data with specified attributes, and analyze the set of product traceability data with specified attributes to determine target business information; wherein the specified attributes are the attributes corresponding to the set generation instruction.

7. An electronic device, characterized in that, include: A processor and a memory for storing processor-executable instructions; The processor is configured to execute the instructions to implement the product traceability system generation method as described in any one of claims 1-2, and / or to implement the product traceability method as described in any one of claims 3-4.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is used to implement the product traceability system generation method as described in any one of claims 1-2, and / or to implement the product traceability method as described in any one of claims 3-4.

Citation Information

Patent Citations

  • System suitable for different tracing chain products and configuration method

    CN111784362A