The invention provides a food information tracing method and
system based on Internet data, and relates to the technical field of
industrial Internet, and the method comprises the following steps: generating an initial
batch identifier of a to-be-produced product according to a product production plan, obtaining real-time
external data of an associated region, and storing the real-time
external data in a
database; when it is judged that a batch adjustment event occurs in the production process of the to-be-produced product, based on real-time state data and real-time
external data of a
production line, dynamic batch decision is carried out to generate at least two sub-batch identifiers, and a tree-shaped association relationship is established between the sub-batch identifiers and the initial
batch identifier; and receiving sub-batch
detailed data of each sub-
batch identifier, uploading the sub-batch
detailed data to a block
chain network, storing the batch topological relation in a block chain main chain, storing the sub-batch
detailed data in a corresponding sub-chain node, responding to a tracing request of a user terminal, and according to the tree-shaped association relation, tracing the sub-batch data of each sub-batch identifier. And retrieving the
full life cycle data of the corresponding target batch in the block
chain network. The method overcomes the problem of tracing information splitting caused by batch splitting.