CN-122022849-A - Agricultural product-based tracing method, system and storage medium
Abstract
The invention relates to the technical field of data application, in particular to a tracing method, a tracing system and a storage medium based on agricultural products. The method comprises the steps of obtaining Nth-level ticket data of a second user for supplying first edible agricultural products, generating a mother ticket according to all or part of the Nth-level ticket data, generating N+1th-level ticket data based on the identity data of the first user, generating a first sub-ticket according to all or part of the N+1th-level ticket data and data set, embedding a source ticket and the mother ticket into the first sub-ticket to obtain a second sub-ticket, and storing the second sub-ticket into a cloud database. In the invention, by establishing a dynamic and chain type data structure of the sub-ticket embedded parent ticket and the source ticket, the traceability information is not an isolated fragment any more, but is automatically split and carries all father genes along with the splitting of a real object, thus thoroughly solving the information breakage problem caused by ticket-cargo separation.
Inventors
- LUO JUN
- LI SHUSEN
Assignees
- 江西食优通智能科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260213
Claims (10)
- 1. The agricultural product-based tracing method is characterized by comprising the following steps of S1, acquiring identity data of a first user; S2, acquiring a data set and a source ticket of a first edible agricultural product purchased by a first user; S3, obtaining the Nth level ticket data of a second user for supplying the first edible agricultural product, and generating a mother ticket according to all or part of the information of the Nth level ticket data; S4, generating the N+1st-level ticket data based on the identity data of the first user, and generating a first sub-ticket according to the N+1st-level ticket data and all or part of information in the data set; s5, embedding the source ticket and the parent ticket into the first sub-ticket to obtain a second sub-ticket, and storing the second sub-ticket into a cloud database.
- 2. The agricultural product-based tracing method of claim 1, wherein said identity data comprises any one of or a combination of the following: Unique identifier allocated after real name authentication; Official registration name and corresponding legal identity code; mobile communication terminal number with real name binding.
- 3. The agricultural product-based tracing method of claim 1, wherein said data set comprises at least a physical quantity of said first edible agricultural product measured during the current circulation, and image or video data collected during the circulation comprising visual information of said first edible agricultural product.
- 4. The agricultural product-based tracing method of claim 1, wherein said data set further comprises environmental data collected by said intelligent tracing terminal or its associated device, said environmental data comprising one or more of transaction time, transaction geographic location information, environmental temperature.
- 5. The agricultural product-based tracing method of claim 1, wherein said source ticket is a parent ticket generated from level 1 ticket data.
- 6. The agricultural product-based tracing method of claim 5, wherein said second user ticket data level determining step comprises: S31, acquiring a historical second sub-ticket associated with the second user stored in the cloud as a historical purchasing party; s32, based on ticket embedded relation, starting from the second historical sub-ticket, tracing the embedded parent ticket step by step; And S33, counting the number of tracing stages from the second sub-ticket to the source ticket when the first-stage parent ticket is traced back to the source ticket, and determining the number of tracing stages as a stage N of ticket data of the second user.
- 7. The agricultural product-based traceability method of claim 6, wherein the traceability series is a number of times of tracing upwards from the beginning of the second user as a historic second sub-ticket of the purchasing party to the finding of the source ticket, and each time a non-source parent ticket is found and checked, the tracing is counted as one time.
- 8. The agricultural product-based tracing method of claim 6, wherein said step S32 further comprises the steps of: s34, when tracing back to each level of the mother ticket, acquiring all second sub-tickets taking the mother ticket as a direct upstream source; S35, summarizing quantitative data corresponding to the type of the first edible agricultural product recorded in all the second sub-tickets to obtain the total distribution amount of the fraction; s36, comparing the total distribution amount of the grade with the original quantitative data of the corresponding product recorded in the grade parent ticket, and if the comparison result is inconsistent, terminating the current tracing flow and triggering data abnormality early warning.
- 9. A traceability system based on agricultural products, comprising: The identity authentication module is configured to acquire identity data of a first user; The data acquisition module is configured to acquire a data set of first edible agricultural products purchased by a first user; the ticket generation and output module is configured to generate a circulation ticket containing dynamic encryption tracing codes and print the circulation ticket through the built-in printer; The cloud traceability service platform configured to execute the agricultural product-based traceability method of claim 1.
- 10. A computer readable storage medium having stored thereon a computer program for performing the agricultural product-based tracing method of claims 1-8.
Description
Agricultural product-based tracing method, system and storage medium Technical Field The invention relates to the technical field of data application, in particular to a tracing method, a tracing system and a storage medium based on agricultural products. In particular to the field of realizing the multiple distribution and tracing of agricultural products through automatic segmentation. Background The core challenge of edible agricultural product circulation tracing is how to ensure that tracing information can truly, continuously and automatically accompany synchronous circulation and segmentation of objects in the circulation process of spanning multiple links and multiple subjects. The existing digital traceability technology mainly traces two targets around the data trusted certificate and information association to form two types of representative technical routes, but the problems of deep fusion of the business process and the data production cannot be thoroughly solved. In particular, the prior art mainly shows two modes. Firstly, an authority (such as quarantine department) system generates an initial electronic certificate as a trust anchor point, and a receiver is required to manually confirm the certificate in each subsequent circulation link through a centralized traceability platform so as to form a digitized responsibility transfer chain. Secondly, the distributed account book of the blockchain is used for storing product batch association relation and quality inspection data to ensure that information cannot be tampered, a statistical process control model is introduced, and when a certain sub-batch is abnormal in detection, the risk probability of other products in the same batch is automatically calculated to realize predictive early warning. However, the prior art has inherent drawbacks that directly limit its effective use in high frequency, multi-stage distribution scenarios of edible agricultural products. The first class of schemes suffers from the drawback that their trust transfer is highly dependent on subjective manual operation of the participating subjects, and the data generation is independent of the core physical transaction process. The system can not technically guarantee real-time synchronization and absolute reality of weighing transaction and data confirmation, and hidden danger of ticket and goods separation and post-repair and counterfeiting can not be eradicated. The second scheme has the defects that the scheme is excessively focused on the non-tamper property after the data is uplink, but the authenticity guarantee of the initial acquisition link before the data is uplink is ignored, and the depending block chain architecture and the complex prediction model are seriously different from the low-cost, easy-to-deploy and high-concurrency real requirements in the circulation field. In short, the prior art fails to construct a mandatory closed-loop mechanism for automatically generating and verifying data driven by an entity business process, which is a technical basis for realizing effective traceability supervision. Disclosure of Invention The invention aims to provide a tracing method, a tracing system and a storage medium based on agricultural products, so as to solve the XX problem. In a first aspect, there is provided a tracing method based on agricultural products, comprising the steps of: S1, acquiring identity data of a first user; S2, acquiring a data set and a source ticket of a first edible agricultural product purchased by a first user; S3, obtaining the Nth level ticket data of a second user for supplying the first edible agricultural product, and generating a mother ticket according to all or part of the information of the Nth level ticket data; S4, generating the N+1st-level ticket data based on the identity data of the first user, and generating a first sub-ticket according to the N+1st-level ticket data and all or part of information in the data set; s5, embedding the source ticket and the parent ticket into the first sub-ticket to obtain a second sub-ticket, and storing the second sub-ticket into a cloud database. In a second aspect, there is provided an agricultural product-based traceability system comprising: The identity authentication module is configured to acquire identity data of a first user; The data acquisition module is configured to acquire a data set of first edible agricultural products purchased by a first user; the ticket generation and output module is configured to generate a circulation ticket containing dynamic encryption tracing codes and print the circulation ticket through the built-in printer; The cloud tracing service platform is configured to execute the agricultural product-based tracing method. A third aspect provides a computer readable storage medium having stored thereon a computer program for performing the above-described agricultural product-based tracing method. Compared with the prior art, the invention has the ben