摘 要
在现如今的信息化时代中,社会经济文化的发展快速增长,中国国民经济在不断增长。消费者能购买到的预制菜越来越多,品种越来越丰富。在预制菜出产的过程中一旦出现食品安全问题,不仅会造成巨大的经济损失,也会危害民众的身体健康,引发一系列的社会问题。建立起有效的、安全的预制菜溯源平台能够让消费者清楚的看见预制菜从生长到收获再到加工的全过程,能有效解决消费者与生产者之间的信息不对等的问题。而在Hadoop区块链技术下的预制菜溯源系统能有效防止信息被篡改,保障信息的真实性、可靠性。
本预制菜溯源平台以Hadoop区块链技术Hyperledger Fabric为核心并部署智能合约,采用基于Spring Boot的若依框架开发。实现了管理员对用户的管理、农户对预制菜农作物详情及生长过程的管理、物流公司对运输的管理、原料厂商对预制菜农作物的质量检测、生产厂商对预制菜的加工管理、消费者对预制菜农作物进行溯源等功能。
关键词:预制菜溯源 Hadoop区块链 Hyperledger Fabric 智能合约 Spring Boot
Abstract
In today's information age, social economy and culture are developing rapidly. China's national economy is also growing. Consumers can buy more and more agricultural products, varieties are becoming richer and richer. People's eyes are no longer limited to what they can eat, but also want to know whether the food is safe. Once food safety problems occur in the production of agricultural products, they will not only cause huge economic losses, but also harm people's health and cause a series of social problems. Establishing effective and safety of agricultural products traceability platform can let consumers clearly see whole process from growth to harvesting and processing of agricultural products, can effectively solve the problem of trust between consumers and producers, and under the block chain technology of agricultural products traceability system can effectively prevent information been tampered with, guarantee the authenticity of information.
The agricultural product traceability platform is based on Hyperledger Fabric blockchain technology and smart contract deployment. It adopts Spring Boot framework to develop and MySQL database to realize data persistence. The realization of the administrator to user management, farmers to crop management, raw material manufacturers to crop quality testing, manufacturers to agricultural products processing management, logistics companies to transport management, consumers to crop traceability.
Key words:agricultural products traceability; blockchain; Hyperledger Fabric; smart contract; Spring Boot