CN-121981735-A - Food traceability code management system
Abstract
The invention provides a food tracing code management system, which relates to the technical field of food tracing, and comprises a data acquisition module, an ID generation module, a data storage module, an interface development module, a two-dimensional code generation and display module and a query interaction module, wherein the data acquisition module is used for acquiring or inputting information of a food full-circulation link, the ID generation module is used for generating a unique commodity ID code through an ID code automatic generation algorithm, the data storage module is used for matching the commodity ID code with the information of the food full-circulation link and then storing the commodity ID code in a server database, and the two-dimensional code and commodity information fusion design is adopted in the invention, so that accurate tracing and serial goods management of the whole process of food are realized, a user can comprehensively know all information of a commodity from a production place to a terminal through code scanning, the tracing convenience is improved, the serial goods behavior can be effectively identified, and powerful support is provided for enterprise market management.
Inventors
- ZHU CHUANGANG
- WANG LIXIAN
- WANG WEI
- PAN DAOWEI
Assignees
- 三只松鼠股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251230
Claims (10)
- 1. The food traceability code management system comprises a data acquisition module, an ID generation module, a data storage module, an interface development module, a two-dimensional code generation and display module and a query interaction module, and is characterized in that the data acquisition module is used for acquiring or inputting information of a food full circulation link; the interface development module is used for developing a service interface URL, the service interface URL is used for connecting a server and realizing inquiry of a server database, the two-dimension code generation and display module is used for converting a commodity ID code and the service interface URL into two-dimension codes and placing the two-dimension codes on the outer package of food, and the inquiry interaction module is used for enabling a user to analyze the two-dimension codes through the code scanning equipment to acquire the ID codes and call the service interface to inquire commodity information and receiving and displaying the commodity information fed back by the server.
- 2. The system for managing the traceability codes of the food according to claim 1, wherein the full circulation link information of the food collected or recorded by the data collecting module comprises production place data, raw material storage data, raw material screening data, finished product screening data, production process data, split charging process data, storage link data and transportation link data.
- 3. The food traceability code management system of claim 2, wherein the production place data comprises overseas production place data and domestic production place data, the overseas production place data comprises geographical positions of original production places, climatic conditions, soil humiture, environment humiture, CO 2 concentration, PM2.5 values, illuminance, air pressure, yield, production place introduction, basic weather information and customs quarantine reports, and the domestic production place data is acquired through on-site installed environment monitoring sensors and comprises related quarantine information.
- 4. The system for managing the food traceability codes according to claim 2, wherein the raw material storage data are collected by additionally arranging a temperature and humidity sensor in a refrigerator, the temperature of the refrigerator is controlled to be 3-5 ℃, the humidity is controlled to be 50-60%, and the sensor returns temperature and humidity data every 3 hours.
- 5. The food traceability code management system of claim 2, wherein the raw material screening data is collected by an X-ray machine and comprises detection quantity, detection results and preset equipment identification parameters, and the finished product screening data is collected by a metal detector additionally provided with a network DTU and comprises a metal detection instant parameter and a foreign matter removal number.
- 6. The food traceability code management system of claim 2, wherein the production process data are collected by sensors or PLC additionally arranged on the enzyme deactivation furnace and the baking machine, the temperature and speed data are returned every 5 minutes, and the transportation link data are collected by portable temperature sensors configured on a vehicle, wherein the transportation link data comprise temperature and humidity data in the transportation process.
- 7. The food traceability code management system of claim 2, wherein the warehouse link data are obtained through code scanning of the system and comprise finished product warehouse-in time and warehouse name, and the subpackaging process data comprise manually-entered processing list information comprising processing list numbers, teams, production tasks and production time.
- 8. The system for managing a traceability code of a food according to claim 1, wherein the automatic generation algorithm of the ID code used by the ID generation module is as follows: , The method comprises the steps of generating unique commodity ID codes, wherein the ID is a generated unique commodity ID code, T is a time stamp, a millisecond-level time stamp is adopted, the time for ID generation is occupied by 8 bytes, M is a machine code, the time for ID generation is occupied by 2 bytes, the machine code is used for distinguishing different generation devices, the ID is not repeated when multiple devices are generated simultaneously, S is a serial number, the time for ID generation is occupied by 2 bytes, and the value range is 0-65535, and the machine code is used for distinguishing different IDs generated in the same millisecond of the same device.
- 9. The system of claim 1, further comprising a data verification module, wherein the data verification module uses a data consistency verification algorithm to verify the matching relationship between the collected full circulation link information of the food and the commodity ID code, and the verification algorithm is as follows: , Wherein, C is a verification result, when C=0, the matching is consistent, when C=0, the matching is abnormal, n is the parameter number of the acquired full circulation link information of the food, ai is the weight coefficient of the ith parameter, the value range is 1-5 according to the parameter importance setting, vi is the acquired value of the ith parameter, K is a verification module, and the value is 1000.
- 10. The food traceability code management system of claim 1, wherein the code scanning device of the query interaction module is a mobile terminal with a code scanning function, after a user scans the code, the code scanning device automatically analyzes an ID code and a service interface URL in the two-dimensional code, a query request is sent to a server through a network call service interface, and the server queries a database according to the ID code and feeds back matched food full circulation link information to the code scanning device for display.
Description
Food traceability code management system Technical Field The invention relates to the technical field of food tracing, in particular to a food tracing code management system. Background The food tracing code management system establishes a one-object one-code system by adopting two-dimensional codes, RFID and other technologies, and develops a cloud platform tracing system by combining a block chain, cloud computing and storage technologies, so that the record of the information of all-circulation links of food production places, sales platforms, transit databases, consumers and the like is realized, and the tracing effect of round-the-loop and data-based can be achieved. In the commodity production stage, identifying and comparing the two-dimensional codes on the commodity outer packaging bag and the packaging box through a code reading device, conveying the commodity with the consistent two-dimensional code to the corresponding packaging box, and sending out an alarm prompt if the two-dimensional code is detected to be inconsistent; The existing food tracing code management system has the following problems that a large number of IDs can be generated in the same millisecond under a high concurrency scene, a snowflake algorithm is mostly adopted in the prior art, the IDs in the same millisecond are distinguished through serial numbers, but when the serial numbers are exhausted under extreme conditions, new IDs can be generated only by waiting for the next millisecond, the system performance and throughput are seriously affected, meanwhile, if the number of the IDs generated in the same millisecond exceeds the maximum value of the serial numbers (4095) and is not processed in time, the serial numbers overflow, the ID repetition problem is caused, the uniqueness and the accuracy of tracing information are damaged, and reliable one-object one-code tracing and goods-through-preventing management cannot be realized. Disclosure of Invention In order to solve the problems, the invention provides the food tracing code management system, which adopts the design of fusing the two-dimensional code and commodity information, realizes the accurate tracing and the serial commodity management of the whole food flow, enables a user to comprehensively know all information of commodities from a production place to a terminal through code scanning, improves tracing convenience, can effectively identify serial commodity behaviors, and provides powerful support for enterprise market management. The invention aims at realizing the technical scheme that the food traceability code management system comprises a data acquisition module, an ID generation module, a data storage module, an interface development module, a two-dimensional code generation and display module and a query interaction module, wherein the data acquisition module is used for acquiring or inputting information of a food full circulation link; the interface development module is used for developing a service interface URL, the service interface URL is used for connecting a server and realizing inquiry of a server database, the two-dimension code generation and display module is used for converting a commodity ID code and the service interface URL into two-dimension codes and placing the two-dimension codes on the outer package of food, and the inquiry interaction module is used for enabling a user to analyze the two-dimension codes through the code scanning equipment to acquire the ID codes and call the service interface to inquire commodity information and receiving and displaying the commodity information fed back by the server. The food circulation link information acquired or recorded by the data acquisition module comprises production place data, raw material storage data, raw material screening data, finished product screening data, production process data, split charging process data, storage link data and transportation link data. The method is further improved in that the production place data comprise overseas production place data and domestic production place data, the overseas production place data comprise original production place geographic positions, climatic conditions, soil temperature and humidity, environment temperature and humidity, CO 2 concentration, PM2.5 values, illuminance, air pressure, yield, production place introduction, basic weather information and customs quarantine reports, and the domestic production place data are acquired through an on-site installed environment monitoring sensor and comprise relevant quarantine information. The method is further improved in that the raw material storage data are acquired by additionally arranging a temperature and humidity sensor in a cold storage, the temperature of the cold storage is controlled at 3-5 ℃, the humidity is controlled at 50-60%, and the temperature and humidity data are returned by the sensor every 3 hours. The method is further improved in that raw material screening data