Over the last decades, the food safety issues become more and more important, such as BSE crisis, genetically modified organism (GMO) illegal spreading and melamine-contamination event. The food industry established a traceability system to reduce the impact of food safety issues, and the system became all effective method of guaranteeing the food safety. Not only does the traceability system trace the process information but also reduce the batches of recall. We study the risk transmission throughout food Supply which contains raw material, process and distribution. A mathematic model based oil dynamic programming and integer programming was proposed to solve the risk transmission problem in a China dumpling factory.