CN114638625B - Big data-based agricultural whole industry chain traceability method and system and cloud platform - Google Patents

Big data-based agricultural whole industry chain traceability method and system and cloud platform Download PDF

Info

Publication number
CN114638625B
CN114638625B CN202210525372.0A CN202210525372A CN114638625B CN 114638625 B CN114638625 B CN 114638625B CN 202210525372 A CN202210525372 A CN 202210525372A CN 114638625 B CN114638625 B CN 114638625B
Authority
CN
China
Prior art keywords
agricultural product
data
information
management server
traceability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210525372.0A
Other languages
Chinese (zh)
Other versions
CN114638625A (en
Inventor
邓维爱
李华栈
袁泽宇
彭文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Bangsheng Beidou Technology Co ltd
Original Assignee
Guangdong Bangsheng Beidou Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Bangsheng Beidou Technology Co ltd filed Critical Guangdong Bangsheng Beidou Technology Co ltd
Priority to CN202210525372.0A priority Critical patent/CN114638625B/en
Publication of CN114638625A publication Critical patent/CN114638625A/en
Application granted granted Critical
Publication of CN114638625B publication Critical patent/CN114638625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • G06Q30/0185Product, service or business identity fraud
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Mining
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The invention discloses an agricultural full-industry chain tracing method, system and cloud platform based on big data, comprising the following steps: acquiring an agricultural product filing instruction sent by a merchant management server at an initial time point; acquiring agricultural product status data based on the first supplier identification; determining the sales cooperation state of the first sales information identifier and the historical sales information identifier; if the first agricultural product state data is stable in sales cooperation state, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node into an agricultural product center management knowledge graph; when acquiring second agricultural product state data contained in the agricultural product traceability indication; according to the agricultural product central management knowledge map and the second agricultural product state data, agricultural product traceability operation is carried out on agricultural product information to be traced back, and by the design, the knowledge map is used for participating in statistics of big data of agricultural products, and accurate and reliable traceability operation can be carried out on agricultural product related data with huge data volume.

Description

Big data-based agricultural full-industry chain traceability method and system and cloud platform
Technical Field
The invention relates to the field of agricultural big data, in particular to an agricultural full-industry chain traceability method and system based on big data and a cloud platform.
Background
At present, the quality demand of the public on commodities is higher and higher, agricultural products are used as important classifications of foods in life, and users pay more attention to the safety quality problem of the agricultural products. The method for tracing agricultural products is a reliable quality inspection means in the prior art, but with the increasing types and quantity of agricultural products and the problems of intentional tampering and counterfeiting of data, the tracing result obtained by the existing agricultural product tracing means (for example, statistics by using a spreadsheet, or scanning two-dimensional code information and the like) is not accurate and reliable.
Disclosure of Invention
The invention aims to provide an agricultural full-industry chain traceability method and system based on big data and a cloud platform.
In a first aspect, an embodiment of the present invention provides an agricultural full-industry chain tracing method based on big data, which is applied to a central server, and the method includes:
acquiring an agricultural product filing instruction sent by a merchant management server at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at an initial time point; the agricultural product information to be traced refers to agricultural product information which is filed in an agricultural product sales knowledge map corresponding to the merchant management server; the first agricultural product status data comprises a first supplier identification and a first sales information identification corresponding to the first supplier identification;
acquiring a target agricultural product information node in an agricultural product center management knowledge graph based on a first supplier identification; the node information of the target agricultural product information node comprises historical agricultural product state data, and the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced;
determining a sales cooperation state of the first agricultural product state data according to the first sales information identifier and a historical sales information identifier in the historical agricultural product state data;
if the first agricultural product state data is stable in sales cooperation state, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the central server;
when an agricultural product traceability instruction sent by a merchant management server at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data is agricultural product state data of agricultural product information to be traced at a target time point; the target time point is greater than the initial time point;
and performing agricultural product traceability operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data.
In one possible implementation, the first agricultural product status data includes a first supplier identifier and a first sales information identification information summary ciphertext corresponding to the first supplier identifier; the second agricultural product state data comprises a second supplier identification and a second sales information identification information summary ciphertext corresponding to the second supplier identification; according to the agricultural product information node and the second agricultural product state data, agricultural product traceability operation is carried out on agricultural product information to be traced, and the agricultural product traceability operation method comprises the following steps:
according to the second supplier identification, acquiring an agricultural product information node in an agricultural product center management knowledge graph;
acquiring first agricultural product state data in node information of an agricultural product information node; the first supplier identification in the first agricultural product status data is the same as the second supplier identification;
and performing agricultural product traceability operation on the agricultural product information to be traced according to the first sales information identification information abstract ciphertext and the second sales information identification information abstract ciphertext.
In a possible implementation manner, performing agricultural product traceability operation on agricultural product information to be traced according to the first marketing information identification information digest cipher text and the second marketing information identification information digest cipher text includes:
if the first sales information identification information summary ciphertext is equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is traceable agricultural product information;
and if the first sales information identification information summary ciphertext is not equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is the agricultural product information which can not be traced.
In one possible embodiment, the method further comprises:
when the agricultural product information to be traced is traceable agricultural product information, returning a tracing result to the merchant management server so that the merchant management server continues to execute preset archiving operation;
and when the agricultural product information to be traced is the non-traceable agricultural product information, returning a tracing failure result to the merchant management server so that the merchant management server stops the preset archiving operation and executes the tracing inspection operation.
In one possible embodiment, determining the sales cooperation status of the first agricultural product status data based on the first sales information identification and the historical sales information identification in the historical agricultural product status data comprises:
acquiring an original sales information identification information summary ciphertext in the first sales information identification, and acquiring a sales information identification information summary ciphertext corresponding to the historical sales information identification;
if the original sales information identification information summary ciphertext is the same as the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is stable;
and if the original sales information identification information summary ciphertext is different from the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is unstable.
In one possible embodiment, the method further comprises:
and if the sales cooperation state of the first agricultural product state data is unstable, the central server returns archiving abnormal information to the merchant management server so that the merchant management server stops preset archiving operation and executes the sales cooperation state determination operation.
In one possible embodiment, the method further comprises:
obtaining an agricultural product traceability instruction, wherein the agricultural product traceability instruction determines a merchant management server which receives and transmits agricultural product traceability data with a central server;
according to the agricultural product traceability indication, dividing a central cache in a central server, and enabling a merchant management server to divide a merchant cache in a merchant management server central server, wherein the central cache and the merchant cache both belong to a cache space, and the cache space is a space which passes security authorization;
when the cache readiness conditions of the central cache and the merchant cache reach a preset working state, constructing an interaction channel and a preset security code between the central cache and the merchant cache; exchanging data abstracts of agricultural product traceability data stored respectively with a merchant management server through an interaction channel, wherein the data abstracts comprise an agricultural product data volume of the agricultural product traceability data to be archived of a central server and an agricultural product data volume of the agricultural product traceability data to be archived of the merchant management server;
calculating the agricultural product data volume of the agricultural product traceability data to be archived and the repeated agricultural product data volume of the agricultural product traceability data archived in the central server;
when the repeated agricultural product data does not exceed the preset repeated threshold value, determining that the type of the merchant management server is an internal merchant management server;
when the repeated agricultural product data exceeds a preset repeated threshold value, determining that the type of the merchant management server is an outsourcing merchant management server;
when the merchant management server is an internal merchant management server, taking the internal merchant management server as a target merchant management server for agricultural product traceability data transceiving with the central server, and determining that a data transmission protocol of the target merchant management server is a first data transmission protocol;
when the merchant management server is an outsourced merchant management server, screening a preset number of outsourced merchant management servers from the outsourced merchant management servers as target merchant management servers, and determining that the data transmission protocol of the target merchant management server is a second data transmission protocol;
when the merchant management server comprises an internal merchant management server and an external merchant management server, screening out a preset number of external merchant management servers from the external merchant management servers, taking the preset number of external merchant management servers and all internal merchant management servers as target merchant management servers, determining a data transmission protocol of the target merchant management server as a third data transmission protocol, wherein the third data transmission protocol is a first data transmission protocol with the internal merchant management servers, and performing a second data transmission protocol with the external merchant management servers after the first data transmission protocol is completed; when the data transmission protocol is a first data transmission protocol, agricultural product traceability data receiving and sending are carried out on the corresponding ratio of the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server through the interaction channel and the preset safety code, and traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server are calculated in the central cache, so that an agricultural product traceability statistical table between the central server and the merchant management server is obtained;
when the data transmission protocol is a second data transmission protocol, receiving candidate agricultural product traceability data sent by the outsourcing merchant management server, and determining an agricultural product traceability statistical table between the central server and the merchant management server according to the candidate agricultural product traceability data;
when the data transmission protocol is a third data transmission protocol, agricultural product traceability data sending and receiving are carried out on the archived agricultural product traceability data corresponding to the ratio and the agricultural product traceability data to be archived of the internal merchant management server, traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server are calculated in the central cache, an agricultural product traceability initial statistical table is obtained, the agricultural product traceability data to be archived sent by the outsourcing merchant management server are received, and the agricultural product traceability statistical table between the central server and the merchant management server is determined according to the agricultural product traceability initial statistical table and the agricultural product traceability data to be archived sent by the outsourcing merchant management server.
In a possible implementation manner, the preset security code includes a data encryption security code, a single-key encryption security code and a message authentication security code, agricultural product traceability data is received and transmitted by the interaction channel and the preset security code, the agricultural product traceability data corresponding to the percentage of the filed agricultural product traceability data and the agricultural product traceability data to be filed of the internal merchant management server, and traceability records between the filed agricultural product traceability data and the agricultural product traceability data to be filed of the internal merchant management server are calculated in the central cache, so as to obtain an agricultural product traceability statistical table between the central server and the merchant management server, and the method includes the following steps:
according to the data abstract of the internal merchant management server, determining the target quantity proportion of agricultural product traceability data transceiving between the central server and the internal merchant management server and the box dividing quantity of card party boxes for storing agricultural product traceability data;
dividing central card side sub-boxes corresponding to the sub-box quantity in a central server region outside a central cache;
performing information abstract operation on the data encryption security code to obtain a random character string, wherein the random character string is effective in single agricultural product traceability data receiving and sending;
carrying out first security maintenance operation on the source tracing data of the filed agricultural products by adopting a random character string;
cutting the agricultural product traceability data of the central server after the first safety maintenance operation into sub agricultural product traceability data corresponding to the number of the sub agricultural product boxes, and determining a box dividing number of each sub agricultural product traceability data stored in a central card square box dividing;
storing the sub-agricultural product traceability data to a central card square sub-box corresponding to the sub-box number;
screening the filed agricultural product traceability data corresponding to the target quantity proportion in a central card side sub-box to serve as target filed agricultural product traceability data, and storing the target filed agricultural product traceability data to a central cache;
encrypting the traceable target archived agricultural product data by adopting a single-key encryption security code and a message authentication security code in the central cache, and sending the encrypted traceable target archived agricultural product data to an internal merchant management server through an interaction channel;
receiving the traceability data of the target agricultural product to be archived, which is sent by an internal merchant management server, and in a central cache, checking the integrity of the traceability data of the target agricultural product to be archived by adopting a message authentication security code;
when the integrity of the agricultural product traceability data to be filed passes the inspection, decrypting the agricultural product traceability data to be filed by adopting a single-key encryption security code;
calculating a traceability record between the decrypted target agricultural product traceability data to be archived and the residual archived agricultural product traceability data which are not sent to the internal merchant management server to obtain a first agricultural product traceability initial statistical table;
the first agricultural product traceability initial statistical table is sent to an internal merchant management server, and a second agricultural product traceability initial statistical table sent by the internal merchant management server is received, wherein the second agricultural product traceability initial statistical table is a traceability record between the traceability data of the remaining agricultural products to be archived, which are calculated by the internal merchant management server and are not sent to a central server, and the traceability data of the target archived agricultural products;
and fusing the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table to obtain an agricultural product traceability statistical table between the central server and the merchant management server.
In a second aspect, an embodiment of the present invention provides an agricultural full industry chain traceability system based on big data, which is applied to a central server, and the system includes:
the acquisition module is used for acquiring an agricultural product filing instruction sent by the merchant management server at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at an initial time point; the agricultural product information to be traced refers to agricultural product information which is filed in an agricultural product sales knowledge map corresponding to the merchant management server; the first agricultural product status data comprises a first supplier identification and a first sales information identification corresponding to the first supplier identification;
the determining module is used for acquiring a target agricultural product information node in an agricultural product center management knowledge graph based on the first supplier identification; the node information of the target agricultural product information node comprises historical agricultural product state data, and the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced; determining a sales cooperation state of the first agricultural product state data according to the first sales information identifier and a historical sales information identifier in the historical agricultural product state data;
the judging module is used for generating an agricultural product information node according to the first agricultural product state data if the first agricultural product state data is stable in the sales cooperation state, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the center server; when an agricultural product traceability instruction sent by a merchant management server at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data is agricultural product state data of agricultural product information to be traced at a target time point; the target time point is greater than the initial time point;
and the source tracing module is used for carrying out agricultural product source tracing operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data.
In a third aspect, an embodiment of the present invention provides an agricultural whole industry chain traceability cloud platform based on big data, including a central server and at least one merchant management server in communication connection with the central server, where the at least one merchant management server is used to record sales information of agricultural products, and the central server is used to execute the agricultural whole industry chain traceability method based on big data in the first aspect.
Compared with the prior art, the beneficial effects provided by the invention comprise: the invention discloses an agricultural full-industry chain tracing method, system and cloud platform based on big data, which are used for obtaining an agricultural product filing instruction sent by a merchant management server at an initial time point; acquiring agricultural product status data based on the first supplier identification; determining a sales cooperation state of the first agricultural product state data according to the first sales information identifier and the historical sales information identifier; if the first agricultural product state data is stable in sales cooperation state, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph; when the agricultural product traceability indication is obtained, second agricultural product state data contained in the agricultural product traceability indication is obtained; agricultural product traceability operation is carried out on agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data, and by the design, reliable traceability operation can be carried out on agricultural product related data with huge data volume.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the invention and are therefore not to be considered limiting of its scope.
Fig. 1 is a scene interaction schematic diagram of an agricultural full-industry chain traceability cloud platform based on big data according to an embodiment of the present invention;
FIG. 2 is a schematic flowchart illustrating a method for tracing a whole agricultural industry chain based on big data according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of a big data-based agriculture industry-wide chain traceability device for executing the big data-based agriculture industry-wide chain traceability method in fig. 2 according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a scene interaction schematic diagram of an agricultural whole industry chain traceability cloud platform based on big data according to an embodiment of the present invention, which includes a central server 10, a plurality of merchant management servers 20, and an offline commodity sales server 30, where the offline commodity sales server 30 (also including an offline commodity sales server 30a, offline commodity sales servers 30b, …, and offline commodity sales server 30 c) sends agricultural product sales data (i.e., agricultural product transaction related information) to any merchant management server 20 (such as merchant management server 20a, merchant management servers 20b, …, or merchant management server 20 c) in the plurality of merchant management servers 20. Taking the merchant management server 20a as an example, after receiving the agricultural product transaction related information, the merchant management server 20a generates agricultural product information to be traced and files the agricultural product information to be traced into an agricultural product sales knowledge map; at TimeA, the merchant management server 20a sends an agricultural product archiving instruction to the central server 10, the agricultural product archiving instruction includes the first agricultural product status data, the first agricultural product state data is agricultural product state data of agricultural product information to be traced at the TimeA time point, the agricultural product status data may include a supplier identifier of agricultural product information to be traced, a sales information identifier at TimeA time point, and a digest ciphertext of the sales information identifier at TimeA time point, after the central server 10 acquires the first agricultural product status data, the agricultural product information node may be generated by using the first agricultural product state data as a part of the agricultural product transaction-related information (i.e. the first agricultural product state data belongs to data in node information in the agricultural product information node), filing the agricultural product information nodes into an agricultural product center management knowledge graph corresponding to the central server 10; thereafter, the merchant management server 20a sends an agricultural product traceability instruction to the central server 10 at the TimeB time point, the agricultural product traceability instruction includes second agricultural product state data, the second agricultural product state data may include a supplier identifier of the agricultural product information to be traceable at the TimeB time point, a sales information identifier at the TimeB time point, and a sales information identifier summary ciphertext at the TimeB time point, after the central server 10 acquires the second agricultural product state data, the agricultural product information node is acquired from the agricultural product central management knowledge map according to the supplier identifier, then the first agricultural product state data in the node information of the agricultural product information node is acquired, a result of traceability operation is determined by comparing the first agricultural product state data and the second agricultural product state data, that is, whether the agricultural product information to be traceable at the TimeA time point is equal to the agricultural product information to be traceable at the TimeB time point is determined, and then verifying whether the agricultural product information to be traced is subjected to industrial chain change after filing. As can be seen from the above, the merchant management server 20a stores the specific agricultural product transaction related information sent by the offline commodity sales server 30, the central server 10 stores the agricultural product state data (including the supplier identifier, the sales information identifier corresponding to the supplier identifier, and the sales information identifier summary ciphertext corresponding to the supplier identifier) in the agricultural product sales knowledge graph, the storage pressure of the central server 10 and the agricultural product central management knowledge graph is relieved, and the traceability reliability of the agricultural product transaction related information in the agricultural product sales knowledge graph is also ensured through subsequent verification. In addition, the information related to the agricultural product transaction stored in the offline commodity sales server 30 may be exchanged, that is, the information related to the agricultural product transaction in the offline commodity sales server 30a may be transmitted to the offline commodity sales server 30b or the offline commodity sales server 30c, and similarly, the information related to the agricultural product transaction in the offline commodity sales server 30b may be transmitted to the offline commodity sales server 30a or the offline commodity sales server 30 c. The information related to the agricultural product transaction in the offline merchandise sales server 30a may be sent to the merchant management server 20a, or may be sent to the merchant management server 20b or the merchant management server 20 c; the information related to the agricultural product transaction in the offline merchandise sales server 30b may be sent to the merchant management server 20a, or may be sent to the merchant management server 20b or the merchant management server 20 c; similarly, the information related to the agricultural product transaction in the offline merchandise sales server 30c may be sent to the merchant management server 20a, or may be sent to the merchant management server 20b or the merchant management server 20 c; when the agricultural product transaction related information in the off-line commodity sales server 30a is sent to the merchant management server 20a, the merchant management server 20a firstly verifies the agricultural product transaction related information, stores the agricultural product transaction related information into the memory pool after the verification is completed, and updates the Tree used for recording the agricultural product transaction related information; then, updating the updating time stamp to the time of receiving the agricultural product transaction related information, calculating a characteristic value of the agricultural product transaction related information by using an MD5 algorithm or other cryptographic algorithms, storing the agricultural product transaction related information and a corresponding information summary ciphertext after obtaining the characteristic value (namely the information summary ciphertext), generating a sales information identifier and an agricultural product information main body, and obtaining newly generated to-be-traced agricultural product information; subsequently, the merchant management server 20a sends the newly generated information of the agricultural product to be traced to other common nodes in the agricultural product sales knowledge graph where the merchant management server 20a is located, such as the merchant management server 20b and the merchant management server 20c, according to the node identifiers of the other nodes in the agricultural product sales knowledge graph, the newly generated information of the agricultural product to be traced is verified by the other common nodes, and after the verification is completed, the newly generated information of the agricultural product to be traced is added to the agricultural product sales knowledge graph stored by the merchant management server 20 a. Similarly, when the agricultural product transaction related information in the offline commodity sales server 30a is sent to the merchant management server 20b or 20c, or when the agricultural product transaction related information in the offline commodity sales server 30c is sent to other scenarios such as the merchant management server 20b or 20c, the newly generated agricultural product information to be traced is also added to the agricultural product sales knowledge graph corresponding to the merchant management server 20 by the above method.
It is mentioned in the foregoing that the interaction between the central server 10 and the plurality of merchant management servers 20, or the interaction between the agricultural product central management knowledge graph corresponding to the central server 10 and the agricultural product sales knowledge graph corresponding to the plurality of merchant management servers 20, in fact, when there are a plurality of agricultural product sales knowledge graphs, the above-mentioned manner (the plurality of merchant management servers 20 send the agricultural product state data of the agricultural product information to be traced to the central server 10 and the central server 10 archives the agricultural product state data of the agricultural product information to be traced to the central server 10) may also be used to archive the agricultural product state data in the agricultural product information maintained by themselves, if there are 5 agricultural product sales knowledge graphs, then 1 of the agricultural product sales knowledge graphs a may archive the supplier identifier, the sales information identifier corresponding to the supplier identifier and the sales information identification summary ciphertext corresponding to the supplier brand identifier in its chain to another 4 On the agricultural product sales knowledge graph, in addition, 4 agricultural product sales knowledge graphs can verify whether received supplier identifications, sales information identifications corresponding to the supplier identifications and sales information identification information summary ciphertexts corresponding to the supplier identifications are abnormal or not, when the 4 agricultural product sales knowledge graphs pass through the inspection, the agricultural product information stored in the agricultural product sales knowledge graph A is reliable, and by analogy, whether agricultural product information stored in other agricultural product sales knowledge graphs is reliable or not can be verified.
Further, the merchant management server 20 obtains the transaction-related information of the agricultural product to be archived, which is sent by the offline commodity sales server 30 in different time periods, and can respectively generate corresponding information of the agricultural product to be traced (such as the information Aa of the agricultural product to be traced and the information Bb of the agricultural product to be traced in the agricultural product sales knowledge map) according to the transaction-related information of the agricultural product to be archived in different time periods; at an initial time point TimeA, the merchant management server 20 sends first agricultural product state data of the to-be-traced agricultural product information Bb to the central server 10, where the first agricultural product state data is agricultural product state data of the to-be-traced agricultural product information Bb at the initial time point TimeA, and the first agricultural product state data may include a supplier identifier Bb of the to-be-traced agricultural product information Bb, a sales information identifier at the TimeA time point, and a sales information identifier summary ciphertext at the TimeA time point; after acquiring the agricultural product filing instruction sent by the merchant management server 20, the central server 10 generates an agricultural product information node according to the first agricultural product state data, and adds the agricultural product information node to an agricultural product central management knowledge graph; when the target time point TimeB is (TimeB > TimeA), the merchant management server 20 sends second agricultural product state data of the to-be-traced agricultural product information Bb to the central server 10, where the second agricultural product state data is agricultural product state data of the to-be-traced agricultural product information Bb at the target time point TimeB, the second agricultural product state data may include a supplier identifier Bb of the to-be-traced agricultural product information Bb and a sales information identifier summary ciphertext at the TimeB time point, after the central server obtains the agricultural product tracing instruction, the central server may obtain an agricultural product information node from the agricultural product central management knowledge map according to the supplier identifier Bb of the to-be-traced agricultural product information Bb, and then obtain a sales information identifier ciphertext at the TimeA time point according to agricultural product transaction related information (i.e., first agricultural product state data) in node information of the agricultural product information node, the central server 10 can verify whether the industrial chain change occurs to the agricultural information Bb to be traced in the TimeA-TimeB time period by verifying the digest cipher text of the sales information identification information at the TimeA time point and the digest cipher text of the sales information identification information at the TimeB time point in the second agricultural product state data, and if the digest cipher text of the sales information identification information at the TimeA time point is the same as the digest cipher text of the sales information identification information at the TimeB time point, it is determined that the industrial chain change does not occur to the agricultural information Bb to be traced in the TimeA-TimeB time period, and if the digest cipher text of the sales information identification information at the TimeA time point is different from the digest cipher text of the sales information identification information at the TimeB time point, it is determined that the industrial chain change occurs to the agricultural information Bb to be traced in the TimeA-TimeB time period, in this case, the central server 10 needs to return a tracing failure result to the merchant management server 20, and prompting that the industrial chain of the agricultural product information Bb to be traced is changed in the TimeA-TimeB time period, and performing tracing inspection operation.
The condition that whether the to-be-traced agricultural product information Bb in the agricultural product sales knowledge graph is subjected to industrial chain change after filing is verified, besides sending an agricultural product tracing instruction to the central server 10, the merchant management server 20 can actively acquire first agricultural product state data in the agricultural product central management knowledge graph from the central server 10 according to the supplier identification Bb, and then the merchant management server 20 verifies whether the to-be-traced agricultural product information Bb is subjected to industrial chain change in the TimeA-TimeB time period.
Further, please refer to fig. 2, which is a flowchart illustrating a big data-based agriculture industry-wide chain tracing method according to an embodiment of the present invention. As shown in fig. 2, the method may include:
step S101, acquiring an agricultural product filing instruction sent by the merchant management server 20 at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at the initial time point; the agricultural product information to be traced is agricultural product information filed in the agricultural product sales knowledge map corresponding to the merchant management server 20.
Specifically, when the merchant management server 20 adds newly generated to-be-traced agricultural product information Bb to the agricultural product sales knowledge graph at a time point TI (i.e., an initial time point), an agricultural product filing instruction is simultaneously sent to the central server 10, after receiving the agricultural product filing instruction, the central server 10 obtains first agricultural product state data in the agricultural product filing instruction, where the first agricultural product state data includes a provider identifier Bb and a sales information identifier summary ciphertext corresponding to the to-be-traced agricultural product information Bb at the time point TI, optionally, the first agricultural product state data may further include a sales information identifier corresponding to the to-be-traced agricultural product information Bb at the time point TI, and for convenience of understanding and description, the sales information identifier corresponding to the to-be-traced agricultural product information Bb at the time point TI is referred to as a first sales information identifier, and the sales information identifier summary corresponding to the to-be-traced agricultural product information Bb at the time point TI is referred to a first ciphertext The sales information identification information abstract ciphertext; the first sales information identifier includes H, I, T, H represents a sales information identifier information digest ciphertext of the agricultural product information (i.e., the agricultural product information) associated with the agricultural product information Bb to be traced, I represents an information digest ciphertext corresponding to the agricultural product transaction related information of the agricultural product information Bb to be traced, such as a mercker tree root formed by information digest ciphertexts from data 1a to data na in the node information of the agricultural product information Bb to be traced, and T represents a generation timestamp of the agricultural product information Bb to be traced, which is used for updating a maximum generation timestamp on the agricultural product sales knowledge map. The first agricultural product state data of the agricultural product information Bb to be traced newly generated is sent to the central server 10 in the above manner, so that the tracing reliability of the first agricultural product state data acquired by the central server 10 is ensured, and the possibility that the data filed to the agricultural product center management knowledge map is the data of the condition of industrial chain change is avoided.
For example, if the first agricultural product state data sent at the TI time point includes a supplier identifier Aa, a sales information identifier corresponding to-be-traced agricultural product information Aa at the TimeA time point, a sales information identifier summary ciphertext corresponding to-be-traced agricultural product information Aa at the TimeA time point, a supplier identifier Bb, a sales information identifier corresponding to-be-traced agricultural product information Bb at the TimeA time point, a sales information identifier summary ciphertext corresponding to-be-traced agricultural product information Bb at the TimeA time point, a supplier identifier Cc, a sales information identifier corresponding to-be-traced agricultural product information Cc at the TimeA time point, and a sales information identifier letter signature corresponding to-be-traced agricultural product information at the TimeA time point And (5) information digest and ciphertext.
And step S102, acquiring a target agricultural product information node in the agricultural product center management knowledge graph based on the first supplier identification.
And step S103, determining the sales cooperation state of the first agricultural product state data according to the first sales information identifier and the historical sales information identifier in the historical agricultural product state data.
And step S104, if the sales cooperation state of the first agricultural product state data is stable, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the center server.
Specifically, the first agricultural product status data includes the first supplier identifier, a first sales information identifier corresponding to the first supplier identifier, and a first sales information identifier summary ciphertext corresponding to the first supplier identifier; acquiring a target agricultural product information node in the agricultural product center management knowledge graph based on the first supplier identification; the node information of the target agricultural product information node comprises historical agricultural product state data, the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced and associated with the agricultural product information to be traced, the agricultural product information to be traced and associated with the agricultural product information to be traced can be historical agricultural product information, and the historical agricultural product state data comprises a sales information identification information summary ciphertext corresponding to a historical sales information identification; obtaining an original sales information identification information summary ciphertext in the first sales information identification, and obtaining a sales information identification information summary ciphertext corresponding to the historical sales information identification; if the original sales information identification information summary ciphertext is the same as the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is stable; if the original sales information identification information summary ciphertext is different from the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is unstable; if the sales cooperation state of the first agricultural product state data is unstable, the central server 10 returns archive abnormal information to the merchant management server 20, so that the merchant management server 20 stops the preset archiving operation and executes a sales cooperation state determination operation; and if the first agricultural product state data is stable in the sales cooperation state, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the center server 10.
Step S105, when an agricultural product traceability instruction sent by the merchant management server 20 at a target time point is obtained, obtaining second agricultural product status data included in the agricultural product traceability instruction; the second agricultural product state data refers to agricultural product state data of the agricultural product information to be traced at the target time point; the target time point is greater than the initial time point.
Specifically, at the TimeB time point (target time point), the merchant management server 20 sends the second agricultural product state data of the to-be-traced agricultural product information Bb at the TimeB time point to the central server 10, where the second agricultural product state data may include a second provider identifier (the same as the first provider identifier) of the to-be-traced agricultural product information Bb at the TimeB time point and a second sales information identifier information digest ciphertext corresponding to the second provider identifier at the TimeB time point.
And S106, performing agricultural product traceability operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data.
Specifically, the second agricultural product status data includes a second supplier identifier and a second sales information identifier information summary ciphertext corresponding to the second supplier identifier; acquiring the agricultural product information node in the agricultural product center management knowledge graph according to the second supplier identification; acquiring first agricultural product state data in node information of the agricultural product information node; the first supplier identifier in the first agricultural product status data is the same as the second supplier identifier; if the first sales information identification information summary ciphertext is equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is traceable agricultural product information; if the first sales information identification information summary ciphertext is not equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is the agricultural product information which can not be traced; when the agricultural product information to be traced is traceable agricultural product information, returning a tracing result to the merchant management server 20 so that the merchant management server 20 continues to execute preset archiving operation; when the agricultural product information to be traced is the non-traceable agricultural product information, a tracing failure result is returned to the merchant management server 20, so that the merchant management server 20 stops the preset filing operation and executes the tracing inspection operation.
At the TimeB time point, the central server 10 obtains an agricultural product traceability instruction sent by the merchant management server 20, where the agricultural product traceability instruction includes second agricultural product state data of agricultural product information Bb to be traced at the TimeB time point, and the second agricultural product state data includes a provider identifier Bb and a sales information identifier information digest cipher text (i.e., a second sales information identifier information digest cipher text) corresponding to the provider identifier Bb at the TimeB time point; the central server 10 obtains an agricultural product information node in the agricultural product center management knowledge graph according to the supplier identifier Bb, for example, data 2b of node information of the agricultural product information node is first agricultural product state data, and obtains a first sales information identifier summary ciphertext in the first agricultural product state data; according to the first sales information identification information digest cipher text and the second sales information identification information digest cipher text in the second agricultural product state data, the central server 10 can verify whether the agricultural product information Bb to be traced has industrial chain change in the TimeA-TimeB time period; if the first sales information identification information summary ciphertext is equal to the second sales information identification information summary ciphertext, determining that the to-be-traced agricultural product information Bb is traceable agricultural product information, namely agricultural product transaction related information under the condition that the to-be-traced agricultural product information Bb has no industrial chain change in the TimEA-TimeB time period; if the first sales information identification information summary ciphertext is not equal to the second sales information identification information summary ciphertext, determining that the to-be-traced agricultural product information Bb is the non-traceable agricultural product information, namely, the agricultural product transaction related information is obtained when the to-be-traced agricultural product information Bb has industrial chain change in the TimEA-TimeB time period; when the agricultural product information to be traced Bb is traceable agricultural product information, returning a tracing result to the merchant management server 20, so that the merchant management server 20 continues to execute a preset archiving operation; when the agricultural product information Bb to be traced is the agricultural product information which can not be traced, a tracing failure result is returned to the merchant management server 20, so that the merchant management server 20 stops the preset filing operation and executes the tracing inspection operation.
In the embodiment of the invention, a central server 10 acquires an agricultural product filing instruction sent by a merchant management server 20 at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at the initial time point; the agricultural product information to be traced refers to agricultural product information filed in the agricultural product sales knowledge map corresponding to the merchant management server 20; generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the central server 10; when an agricultural product traceability instruction sent by the merchant management server 20 at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data refers to agricultural product state data of the agricultural product information to be traced at the target time point; the target time point is greater than the initial time point; and performing agricultural product traceability operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data. As can be seen from the above, the agricultural product information to be traced in the agricultural product sales knowledge map stores agricultural product transaction related information, then the first agricultural product state data in the agricultural product information to be traced is sent to the central server 10 through the merchant management server 20 at an initial time point, and the central server 10 generates and files an agricultural product information node after acquiring the first agricultural product state data; at a target time point, the merchant management server 20 sends the second agricultural product state data of the agricultural product information to be traced to the central server 10, and the central server 10 can determine whether the agricultural product transaction related information in the agricultural product information to be traced has industrial chain change by comparing the second agricultural product state data with the first agricultural product state data in the agricultural product central management knowledge map, so that by adopting the method and the system, not only can the structure of the agricultural product central management knowledge map be optimized, but also the tracing reliability of the agricultural product transaction related information stored in the agricultural product sales knowledge map after the structure is optimized is ensured.
Optionally, after obtaining the agricultural product archiving instruction sent by the merchant management server 20, the central server 10 may first perform the confirmation of the sales cooperation state on the first agricultural product state data in the agricultural product archiving instruction, that is, for the above steps S102 to S104, further provides the following specific implementation manners:
at the TimeA time point, the central server 10 obtains an agricultural product filing instruction sent by the merchant management server 20, and before filing first agricultural product state data of agricultural product information Bb to be traced, needs to determine that the sales cooperation state of the first agricultural product state data is stable, where the first agricultural product state data includes a supplier identifier Bb, a sales information identifier (first sales information identifier) corresponding to the supplier identifier Bb at the TimeA time point, and a sales information identifier summary ciphertext (first sales information identifier summary ciphertext) corresponding to the supplier identifier Bb at the TimeA time point; the first sales information identification comprises H, I, T, wherein H represents a sales information identification information summary ciphertext of the agricultural product information (namely the agricultural product information Aa to be traced) related to the agricultural product information Bb to be traced, and I represents an information summary ciphertext corresponding to the agricultural product transaction related information of the agricultural product information Bb to be traced; the central server 10 firstly obtains a target agricultural product information node according to the supplier identification Bb in the first agricultural product state data, assuming that the agricultural product information node is the target agricultural product information node, the node information of the agricultural product information node contains historical agricultural product state data, the historical agricultural product state data comprises a first supplier identification Aa of the to-be-traced agricultural product information Aa (the to-be-traced agricultural product information Aa is associated agricultural product information of the to-be-traced agricultural product information Bb) at an archiving time point (the archiving time point refers to the archiving time of the to-be-traced agricultural product information Aa and is before the archiving time TimeA of the to-be-traced agricultural product information Bb), a first sales information identification corresponding to the first supplier identification Aa at the archiving time point and a first sales information identification information summary ciphertext corresponding to the first supplier identification Aa at the archiving time point; according to a first sales information identification information summary ciphertext corresponding to a first provider identification Aa in historical agricultural product state data and a first sales information identification H corresponding to a provider identification Bb, the central server 10 can verify whether the first agricultural product state data is stable in a sales cooperation state, if the first sales information identification information summary ciphertext corresponding to the first provider identification Aa is equal to the first sales information identification information summary ciphertext, the central server 10 determines that the first agricultural product state data is stable in a sales cooperation state, and if the first sales information identification information summary ciphertext corresponding to the first provider identification Aa is not equal to the first sales information summary ciphertext, the central server 10 determines that the first agricultural product state data is unstable in a sales cooperation state; when the sales cooperation state of the first agricultural product state data is unstable, namely the situation that the agricultural product transaction related information of the agricultural product information Aa to be traced has been subjected to production chain change is verified, the central server 10 returns the first agricultural product state data archiving abnormal information and the situation information that the agricultural product transaction related information of the agricultural product information Aa to be traced undergoes the production chain change to the merchant management server 20, so that the merchant management server 20 stops preset archiving operation and executes sales cooperation state determination operation, namely the agricultural product information Aa to be traced is detected, and the method can comprise the steps of initiating a request for verifying the agricultural product information Aa to be traced to other consensus nodes on an agricultural product sales knowledge graph; if the sales cooperation state of the first agricultural product state data is stable, that is, it is verified that the agricultural product transaction related information of the agricultural product information Aa to be traced has not undergone industrial chain change, the node information data 2b of the agricultural product information node generated according to the first agricultural product state data is the first agricultural product state data.
If the mode of sending the archive indication of agricultural products to the central server 10 by the merchant management server 20 is the same as the mode described above, the central server 10 still verifies the sales cooperation state of the first agricultural product state data according to the above process after receiving the first agricultural product state data, and first determines the minimum supplier identifier in the first agricultural product state data, where the first agricultural product state data includes a supplier identifier Aa, a first sales information identifier corresponding to a TimeA time point supplier identifier Aa, a first sales information identifier digest ciphertext corresponding to a TimeA time point supplier identifier Aa, a supplier identifier Bb, a first sales information identifier corresponding to a TimeA time point supplier identifier Bb, a first sales information identifier digest ciphertext corresponding to a TimeA time point supplier identifier Bb, a first sales information identifier corresponding to a supplier identifier ccb, and a first sales information digest ciphertext corresponding to a time point supplier identifier ccc, determining a target agricultural product information node (associated agricultural product information containing agricultural product information to be traced Aa, namely agricultural product information to be traced Dd) in an agricultural product center management knowledge graph according to a supplier identifier Aa, acquiring historical agricultural product state data in the node information of the target agricultural product information node, and then acquiring a sales information identifier information summary ciphertext corresponding to a historical sales information identifier; and then verifying whether the first agricultural product state data is in a stable sales cooperation state according to the original sales information identification information digest cipher text in the first sales information identification corresponding to the TimeA time point supplier identification Aa and the sales information identification information digest cipher text corresponding to the historical sales information identification, wherein the subsequent process is similar to the process, and is not repeated one by one.
The first agricultural product state data verification is carried out before filing so as to ensure that the filed first agricultural product state data is legal, and the condition that the industrial chain change does not occur to the agricultural product transaction related information in the agricultural product sales knowledge map at the TimeA time point is proved.
Further, the embodiment of the invention provides an agricultural full-industry chain traceability example based on big data. The implementation can be performed by the following steps:
step S201, the merchant management server 20 obtains the agricultural product transaction related information sent by the offline commodity sales server, generates agricultural product information to be traced based on the agricultural product transaction related information, and adds the agricultural product information to be traced to the agricultural product sales knowledge map corresponding to the merchant management server 20.
Specifically, the agricultural product information with the maximum generation timestamp is acquired from the agricultural product sales knowledge map and is used as an original sales information identifier, and a sales information identifier summary ciphertext of the original sales information identifier is used as an original sales information identifier summary ciphertext; generating the agricultural product information to be traced based on the original sales information identification information summary ciphertext and the agricultural product transaction related information; the generation timestamp in the agricultural product information to be traced is used for updating the maximum generation timestamp on the agricultural product sales knowledge map; broadcasting the agricultural product information to be traced to all consensus nodes on the agricultural product sales knowledge graph; and when determining that all the consensus nodes on the agricultural product sales knowledge graph reach consensus, adding the agricultural product information to be traced to the agricultural product sales knowledge graph.
The embodiment of the invention also provides another example of data archiving based on the agricultural product information chain. The merchant management server 20 obtains the transaction-related information of the agricultural products to be archived, which is sent by the offline commodity sales server 30, wherein the transaction-related information of the agricultural products to be archived includes the transaction-related information of the first agricultural product to be archived, the transaction-related information of the second agricultural product to be archived, … and the transaction-related information of the nth agricultural product to be archived, and assuming that the quantity of the transaction-related information of the agricultural products stored in each piece of information of the agricultural products to be archived (including the information Aa of the agricultural products to be archived and the information Bb of the agricultural products to be archived) in the agricultural product sales knowledge map is 100, the transaction-related information of the agricultural products to be archived from the first transaction-related information to the first transaction-related information of the agricultural products to be archived is stored in the information Ee of the agricultural products to be archived, and so on, the transaction-related information of the agricultural products from the seventh transaction-related to-zero transaction-related information of the agricultural products to be archived to the eighth transaction-related information of the agricultural products to be archived is stored in the information Bb of the agricultural products to be archived, the eighth to ninth to-be-archived agricultural product transaction related information is stored in the to-be-traced agricultural product information Cc; taking the generation process of the agricultural product information to be traced as an example, describing a detailed process of the generation of the agricultural product information to be traced, the merchant management server 20 acquires the seventh hundred agricultural product transaction related information to be archived, which is sent by the offline commodity sales server 30, firstly verifying the seventh hundred agricultural product transaction related information to be archived, after checking, storing the seventh hundred agricultural product transaction related information to be archived into a memory pool and updating the Tree, updating the timestamp of the Tree according to the timestamp of the acquired seventh hundred agricultural product transaction related information to be archived, and then calculating the information summary ciphertext of the seventh hundred agricultural product transaction related information to be archived by using the MD5 algorithm; the merchant management server 20 obtains the seventh hundred and two to-be-archived agricultural product transaction related information sent by the offline commodity sales server 30, obtains the information digest cipher text of the seventh hundred and two to-be-archived agricultural product transaction related information through the above process until the information digest cipher text of the eighth hundred to-be-archived agricultural product transaction related information is obtained through calculation, then stores the seventh hundred to-be-archived agricultural product transaction related information into the node information of the to-be-traced agricultural product information Bb, and generates the information digest cipher text corresponding to the to-be-sourced agricultural product information Bb according to the information digest cipher text of the seventh hundred to-be-archived agricultural product transaction related information, … and the information digest cipher text of the eighth to-be-archived agricultural product transaction related information, and the merchant management server 20 generates the information digest cipher text corresponding to the to-sourced agricultural product information Bb according to the sales information identification information digest cipher text of the to-traced agricultural product information Aa, Information summary ciphertext corresponding to the agricultural product information to be traced, and seventh hundred agricultural product transaction related information to be filed to eighth hundred agricultural product transaction related information to be filed generate agricultural product information to be traced, the agricultural product information to be traced, to be filed, is broadcast to other merchant management servers 20 in the agricultural product sales knowledge map, the agricultural product information to be traced, to be filed, is verified by the other merchant management servers 20, and the agricultural product information to be traced, to be filed, is added to the agricultural product sales knowledge map stored by the merchant management server 20 after verification is completed. Similarly, when the central server 10 acquires the transaction related information of the agricultural product to be archived, the newly generated agricultural product information node is added to the management knowledge graph of the agricultural product center through the above process.
Step S202, the merchant management server 20 sends an agricultural product archiving instruction to the central server 10 at an initial time point, so that the central server 10 generates an agricultural product information node according to the first agricultural product status data, and adds the agricultural product information node to the agricultural product central management knowledge graph corresponding to the central server 10; the agricultural product filing instruction comprises the first agricultural product state data of the agricultural product information to be traced at the initial time point.
The specific implementation method of step S202 can be referred to the description of step S101 in the corresponding embodiment.
Step S203, the merchant management server 20 obtains second agricultural product state data of the to-be-traced agricultural product information at a target time point from the agricultural product sales knowledge graph, and obtains the agricultural product information node from the agricultural product center management knowledge graph based on the second agricultural product state data; the target time point is greater than the initial time point.
Specifically, in the foregoing embodiment, the description of step S103 is that the merchant management server 20 sends the second agricultural product state data of the to-be-traced agricultural product information at the target time point to the central server 10, so that the central server 10 checks the to-be-traced agricultural product information; in this step, the merchant management server 20 actively acquires the agricultural product information nodes in the agricultural product center management knowledge graph through the central server 10, so as to check the agricultural product information to be traced; at a target time point, second agricultural product state data of agricultural product information to be traced is obtained, the second agricultural product state data comprises a second supplier identification (same as the first supplier identification) of the agricultural product information to be traced at the target time point and a second sales information identification information summary ciphertext corresponding to the second supplier identification, an agricultural product information node is obtained in an agricultural product center management knowledge graph according to the second supplier identification, the agricultural product information node is generated by a center server 10 at an initial time point according to first agricultural product state data of the agricultural product information to be traced, and the first agricultural product state data comprises the first supplier identification and the first sales information identification information summary ciphertext corresponding to the first supplier identification.
And step S204, performing agricultural product traceability operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data.
Specifically, according to the second provider identifier, first agricultural product state data in the node information of the agricultural product information node is obtained; the first supplier identifier in the first agricultural product status data is the same as the second supplier identifier; if the first sales information identification information summary ciphertext is equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is traceable agricultural product information; and if the first sales information identification information summary ciphertext is not equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is the agricultural product information which can not be traced. When the agricultural product information to be traced is traceable agricultural product information, the merchant management server 20 continues to execute preset archiving operation; when the to-be-traced agricultural product information is the non-traceable agricultural product information, the merchant management server 20 stops the preset filing operation and performs the tracing inspection operation.
The agricultural product information to be traced in the agricultural product sales knowledge graph in the embodiment of the invention can be used for storing agricultural product transaction related information, then the first agricultural product state data in the agricultural product information to be traced is sent to the central server 10 through the merchant management server 20 at the initial time point, and the central server 10 generates and files an agricultural product information node after obtaining the first agricultural product state data; at the target time point, the merchant management server 20 sends the second agricultural product state data of the agricultural product information to be traced (the second agricultural product state data is the agricultural product state data of the agricultural product information to be traced at the target time point) to the central server 10, and the central server 10 can identify whether the agricultural product transaction related information in the agricultural product information to be traced has industrial chain change or not by comparing the second agricultural product state data with the first agricultural product state data in the agricultural product central management knowledge map.
In order to more clearly describe the scheme provided by the embodiment of the present invention, the embodiment of the present invention further provides the following examples.
S301, obtaining agricultural product tracing instructions.
The agricultural product tracing instruction identifies the merchant management server 20 which transmits and receives agricultural product tracing data with the central server 10.
For example, an agricultural product tracing data request may be directly obtained, for example, a user selects the merchant management server 20 that needs to receive and transmit agricultural product tracing data with the central server 10 through the data interaction application program to trigger generation of an agricultural product tracing instruction, the agricultural product tracing instruction may carry information of the merchant management server 20, the agricultural product tracing instruction is sent to the agricultural product tracing data processing device, and the agricultural product tracing data processing device may directly receive the agricultural product tracing instruction. When the number of the merchant management servers 20 which need to receive and transmit the agricultural product traceability data with the central server 10 is large, the agricultural product traceability instruction can be indirectly obtained, for example, a user selects information of a plurality of merchant management servers 20 which need to receive and transmit the agricultural product traceability data with the central server 10 through a data interaction application program, an information set of the merchant management server 20 is generated, the information set of the merchant management server 20 is stored in a third-party database, a storage address of the information set of the merchant management server 20 is obtained, the agricultural product traceability instruction is generated, the storage address is added to the agricultural product traceability instruction, the agricultural product traceability instruction added with the storage address is sent to the agricultural product traceability data processing device, the agricultural product traceability data processing device extracts the storage address after receiving the agricultural product traceability instruction, and acquiring the information set of the merchant management server 20 in a third-party database according to the extracted storage address.
It should be noted that, the merchant management server 20 may also receive an agricultural product traceability instruction. The specific receiving method is the same as the receiving method of the host of the center server 10.
S302, according to the agricultural product traceability indication, a central cache is divided in the central server 10, and the merchant management server 20 is enabled to divide a merchant cache in the merchant management server 20 and the central server 10.
The central cache and the merchant cache both belong to a cache space, the cache space may be a space passing security authorization, and the narrow understanding may be an area on the CPU. The function of this block area is to provide a more secure space for the execution of data and code and to ensure their confidentiality and integrity. The cache space is protected by hardware devices. Other applications or processes in the device cannot directly access the cache space.
For example, after the host computer of the central server 10 receives the agricultural product tracing instruction, a cache space process is divided, the cache space process is used for initializing a Trusted Execution Environment in a hardware area of the central server 10, and a space under the TEE Environment can be called as a central cache. Correspondingly, after the merchant management server 20 receives the agricultural product tracing instruction, the merchant management server 20 may also divide a cache space process, so as to initialize another TEE environment in the hardware area of the central server 10 of the merchant management server 20, and use the space in the TEE environment as a merchant cache.
Optionally, after the central cache and the merchant cache are divided, the cache ready conditions of the central cache and the merchant cache need to be checked, and whether the cache ready conditions of the verification central cache and the merchant cache meet a preset verification condition or not may be verified in a specific verification manner as follows:
vectorizing the cache attribute of the central cache, and sending the first cache vector obtained by vectorization to the merchant management server 20, so that the merchant management server 20 checks the cache readiness condition of the central cache according to the first cache vector, receives the cache readiness condition check status identifier of the central cache sent by the merchant management server 20 and the second cache vector of the cache attribute of the merchant cache, determines that the cache readiness condition check status identifier of the merchant cache passes the check when the second cache vector is the same as the preset cache vector, and determines that the central cache and the merchant cache conform to the preset working state when the cache readiness condition check status identifiers of the central cache and the merchant cache both pass the check.
For example, software code information of the central cache is obtained, vectorization processing is performed on the software code information to obtain a first cache vector, the first cache vector is sent to the merchant management server 20, so that the merchant management server 20 compares the first cache vector with a preset cache vector, if the preset cache vector is the same as the first cache vector, the merchant management server 20 determines that the cache ready condition of the central cache passes the check, and if the preset cache vector is not the same as the first cache vector, the merchant management server 20 determines that the cache ready condition of the central cache fails the verification. In the process of checking the central cache, the merchant management server 20 may further perform vectorization processing on the software code information cached by the merchant to obtain a second cache vector. The merchant management server 20 sends the second cache vector and the cache ready condition check status flag of the central cache to the central server 10, the host of the central server 10 compares the second cache vector with the preset cache vector, and when the second cache vector is the same as the preset cache vector, the cache ready condition check status flag of the merchant cache is determined to be a pass check. When the cache ready condition check state marks of the central cache and the merchant cache are both passed, determining that the cache ready conditions of the central cache and the merchant cache reach a preset working state.
S303, when the cache ready conditions of the central cache and the merchant cache reach a preset working state, constructing an interaction channel and a preset security code between the central cache and the merchant cache.
Wherein, the interaction channel may be a channel for securely transmitting data, and the interaction channel is used for connecting the central cache of the central server 10 and the merchant cache of the merchant management server 20.
For example, when the cache ready conditions of the central cache and the merchant cache reach a preset working state, a central server 10 interface of the central cache and a merchant server interface of the merchant cache are obtained, a preset secure transmission protocol is adopted, a data transmission channel is constructed between the central server 10 interface and the merchant server interface, for example, the data transmission channel may be constructed based on a Transport Layer cache ready condition protocol (TLS), and the data transmission channel is used as an interaction channel between the central cache and the merchant cache. The security code file is preset with the merchant management server 20 through the interaction channel to generate a preset security code between the central cache and the merchant cache. For example, a key file is exchanged with the merchant management server 20 through Diffie-Hellman (key exchange protocol) in the interaction channel, a data encryption security Code between the central cache and the merchant cache is generated according to the exchanged key file, a session-extended information digest operation is performed on the data encryption security Code to obtain a single-key encryption security Code required for symmetric encryption and a Message Authentication security Code (HMAC) used for generating a Message Authentication Code, and the data encryption security Code, the single-key encryption security Code and the Message Authentication security Code are used as preset security codes and stored in the central cache and the merchant cache.
Wherein the preset security code generated by the host of the central server 10 and the preset security code generated by the merchant management server 20 may be the same.
S304, agricultural product traceability data are received and transmitted with the merchant management server 20 through the interaction channel and the preset security code, and an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is calculated based on the interactive agricultural product traceability data.
For example, the data digests of the agricultural product traceability data stored in the data digests respectively can be exchanged with the merchant management server 20 through the interaction channel, where the data digests include agricultural product data volume of the agricultural product traceability data, the agricultural product data volume of the agricultural product traceability data of the merchant management server 20 is compared with the agricultural product data volume of the archived agricultural product traceability data of the central server 10 to determine the type of the merchant management server 20, according to the interaction channel, the central cache and the preset security code, a data transmission protocol corresponding to the type of the merchant management server 20 is adopted to perform an agricultural product traceability statistical table with the merchant management server 20, and an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is calculated based on the interaction agricultural product traceability data, which specifically may be as follows:
and S1, exchanging the data abstracts of the agricultural product traceability data stored respectively with the merchant management server 20 through the interactive channel.
The data summary includes an agricultural product data volume of the agricultural product traceability data filed by the central server 10 and an agricultural product data volume of the agricultural product traceability data to be filed by the merchant management server 20, for example, the data volume may be data information such as a data scale in the agricultural product traceability data filed and the agricultural product traceability data to be filed.
For example, a data abstract of the archived agricultural product traceability data of the central server 10 is obtained, the archived agricultural product traceability data is sent to the merchant management server 20, and the data abstract of the agricultural product traceability data to be archived, which is sent by the merchant management server 20, is received, so that the host of the central server 10 and the merchant management server 20 interact with the data abstract of the agricultural product traceability data stored respectively.
And S2, comparing the agricultural product data volume of the agricultural product traceability data to be archived with the agricultural product data volume of the agricultural product traceability data already archived to determine the type of the merchant management server 20.
For example, the agricultural product data volume of the agricultural product traceability data to be archived and the repeated agricultural product data volume of the agricultural product traceability data already archived may be calculated, the repeated agricultural product data is compared with a preset repetition threshold, when the repeated agricultural product data does not exceed the preset repetition threshold, the type of the merchant management server 20 may be determined to be the internal merchant management server 20, and when the repeated agricultural product data exceeds the preset repetition threshold, the type of the merchant management server 20 may be determined to be the outsourced merchant management server 20.
The internal merchant management server 20 may be understood as a merchant management server 20 under the same company flag as the agricultural product traceability data of the central server 10 host, and the outsourced merchant management server 20 may be understood as a merchant management server 20 under a different company flag as the agricultural product traceability data of the central server 10 host.
And S3, according to the interaction channel, the central cache and the preset security code, adopting a data transmission protocol corresponding to the type of the merchant management server 20 to receive and transmit agricultural product traceability data with the merchant management server 20, and calculating an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 based on the interactive agricultural product traceability data.
For example, according to the type of the merchant management server 20, a target merchant management server 20 for receiving and sending agricultural product traceability data with the central server 10 is screened out from the merchant management server 20, a data transmission protocol of the target merchant management server 20 is determined, according to the data transmission protocol and a preset security code, agricultural product traceability data is received and sent by the archived agricultural product traceability data and agricultural product traceability data to be archived of the target merchant management server 20 through an interaction channel and a central cache, and an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is calculated based on the interacted agricultural product traceability data, which may specifically be as follows:
and C1, screening out target merchant management servers 20 used for agricultural product traceability data transceiving with the central server 10 from the merchant management servers 20 according to the types of the merchant management servers 20, and determining a data transmission protocol of the target merchant management servers 20.
For example, when the merchant management server 20 is the internal merchant management server 20, the internal merchant management server 20 is used as the target merchant management server 20 for performing agricultural product traceability data transceiving with the central server 10, and the data transmission protocol of the target merchant management server 20 is determined to be the first data transmission protocol. When the merchant management server 20 is the outsourced merchant management server 20, a preset number of outsourced merchant management servers 20 are screened out of the outsourced merchant management servers 20 as target merchant management servers 20.
The third data transmission protocol may be a first data transmission protocol with the internal merchant management server 20, and after the first data transmission protocol is completed, a second data transmission protocol with the outsourced merchant management server 20.
And C2, according to the data transmission protocol and the preset security code, performing agricultural product traceability data receiving and sending on the archived agricultural product traceability data and the agricultural product traceability data to be archived of the target merchant management server 20 through the interaction channel and the central cache, and calculating an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 based on the interactive agricultural product traceability data.
For example, when the data transmission protocol is a first data transmission protocol, agricultural product traceability data is received and transmitted between the archived agricultural product traceability data corresponding to the ratio and the agricultural product traceability data to be archived of the internal merchant management server 20 through the interaction channel and the preset security code, traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 are calculated in the central cache, so as to obtain an agricultural product traceability statistical table between the central server 10 and the merchant management server 20, when the data transmission protocol is a second data transmission protocol, candidate agricultural product traceability data sent by the outsourced merchant management server 20 is received, the agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is determined according to the candidate agricultural product traceability data, when the data transmission protocol is a third data transmission protocol, the agricultural product traceability data sending and receiving method comprises the steps of carrying out agricultural product traceability data sending and receiving on the archived agricultural product traceability data corresponding to the ratio and the agricultural product traceability data to be archived of the internal merchant management server 20, calculating traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 in a central cache to obtain an agricultural product traceability initial statistical table, receiving the agricultural product traceability data to be archived sent by the outsourcing merchant management server 20, and determining the agricultural product traceability statistical table between the central server 10 and the merchant management server 20 according to the agricultural product traceability initial statistical table and the agricultural product traceability data to be archived sent by the outsourcing merchant management server 20. Specifically, the following may be mentioned:
(1) when the data transmission protocol is the first data transmission protocol, agricultural product traceability data is received and transmitted by the corresponding ratio of the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 through the interaction channel and the preset security code, and traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 are calculated in the central cache, so that an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is obtained.
For example, when the data transmission protocol is the first data transmission protocol, agricultural product traceability data of a target quantity proportion can be screened from the archived agricultural product traceability data to serve as target archived agricultural product traceability data, the target archived agricultural product traceability data is sent to the internal merchant management server 20 through an interaction channel and a preset security code, the target agricultural product traceability data to be archived sent from the internal merchant management server 20 is received, traceability records of the remaining archived agricultural product traceability data which are not sent to the internal merchant management server 20 and the target agricultural product traceability data to be archived are calculated in a central cache to obtain a first agricultural product traceability initial statistical table, the first agricultural product traceability initial statistical table is sent to the internal merchant management server 20, and a second agricultural product traceability initial statistical table sent from the internal merchant management server 20 is received, and fusing the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table to obtain an agricultural product traceability statistical table between the central server 10 and the merchant management server 20. Specifically, the following may be used:
and B1, screening agricultural product traceability data with a target quantity proportion from the archived agricultural product traceability data to serve as target archived agricultural product traceability data, and sending the target archived agricultural product traceability data to the internal merchant management server 20 through an interaction channel and a preset security code.
For example, when the data transmission protocol is the first data transmission protocol, according to the data abstract of the internal merchant management server 20, a target quantity ratio of agricultural product traceability data transceiving between the central server 10 and the internal merchant management server 20 and a binning quantity of card binning for storing agricultural product traceability data are determined, for example, according to the quantity of the internal merchant management servers 20, a target quantity ratio of agricultural product traceability data transceiving between the central server 10 and the internal merchant management server 20 may be determined, for example, the quantity of the internal merchant management servers 20 is n, and a host of the central server 10 interacting with the internal merchant management servers is added, in order to ensure that the target quantity ratio of interaction between each merchant management server 20 is the same, so that the target quantity ratio may be determined to be 1/(n + 1). Then, the box dividing number of card side sub-boxes for storing agricultural product traceability data is determined according to the maximum security memory of the central cache and the merchant cache and the agricultural product traceability data volume for interaction, for example, the security memory of the central cache and the merchant cache is 256M, each card side sub-box can store 20M at most, the maximum data in the agricultural product traceability data volume for user interaction is 400M, and the target quantity ratio is 1/5, for example, the agricultural product data volume of the agricultural product traceability data for interaction in the central cache and the merchant cache can be 80M at most, so that the box dividing number (BN) of the card side sub-boxes can be determined to be 4, and the box dividing number is stored in the region of the central server 10 outside the cache space. The method comprises the steps that central card side sub-boxes corresponding to the sub-box number are divided in the area of a central server 10 except a central cache, first safety maintenance operation is conducted on filed agricultural product traceability data through data encryption safety codes, the agricultural product traceability data of the central server 10 after the first safety maintenance operation are cut into sub-agricultural product traceability data corresponding to the sub-box number, the sub-agricultural product traceability data are determined to be stored in the sub-box number of the central card side sub-box, and the sub-agricultural product traceability data are stored in the central card side sub-boxes corresponding to the sub-box number.
The method for processing agricultural product traceability data includes the steps that card square sub-boxes are adopted, so that paging does not occur when agricultural product traceability data are processed, and therefore the minimum sub-box number needs to be determined according to the upper limit of a safe memory.
According to the principle of box separation, in the transaction process of two parties, if the two parties have the same original agricultural product traceability data, the same agricultural product traceability data can exist in the same box separation after hash and box separation operation, and therefore the agricultural product traceability data stored in the chi-square box separation by the two parties can be safely compared.
B2, receiving the traceability data of the target agricultural product to be archived, sent by the internal merchant management server 20, and calculating the traceability records of the traceability data of the remaining archived agricultural products and the traceability data of the target agricultural product to be archived, which are not sent to the internal merchant management server 20, in the central cache to obtain a first agricultural product traceability initial statistical table.
For example, the traceability data of the target agricultural product to be archived, which is sent by the internal merchant management server 20, is received, in the central cache, the integrity of the traceability data of the target agricultural product to be archived is checked by using the message authentication security code, the integrity verification is mainly used for verifying whether the traceability data of the target agricultural product to be archived is complete, the verification method can be used for calculating the HMAC by using the message authentication security code, the HMAC is compared with the authentication code at the beginning of the traceability data of the target agricultural product to be archived, if the HMAC is consistent with the authentication code at the beginning of the traceability data of the target agricultural product to be archived, the integrity of the traceability data of the target agricultural product to be archived can be determined to pass the verification, otherwise, the integrity of the traceability data of the target agricultural product to be archived is determined to not pass the verification, and at this time, the traceability data of the target agricultural product to be archived is discarded.
B3, sending the first agricultural product traceability initial statistical table to the internal merchant management server 20, and receiving the second agricultural product traceability initial statistical table sent by the internal merchant management server 20.
The second agricultural product traceability initial statistical table may be a traceability record between the remaining agricultural product traceability data to be archived, which is not sent to the central server 10 and is calculated by the internal merchant management server 20, and the target archived agricultural product traceability data.
For example, when the central server 10 host sends the trace-to-source data of the target agricultural product to be archived to the internal merchant management server 20, the internal merchant management server 20 calculates the trace-to-source record between the trace-to-source data of the remaining agricultural product to be archived, which is not sent to the central server 10, and the trace-to-source data of the target archived agricultural product in the same calculation manner as the central server 10 host, so as to obtain the second agricultural product trace-to-source initial statistical table. The internal merchant management server 20 and the central server 10 host interact with the agricultural product traceability initial statistical table which is calculated by the internal merchant management server 20 and the central server through an interaction channel.
And B4, fusing the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table to obtain an agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
For example, a first agricultural product traceability initial statistical table and a second agricultural product traceability initial statistical table are merged, for example, the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table are compared, if the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table do not have the same agricultural product traceability data, the agricultural product traceability data in the two agricultural product traceability initial statistical tables are directly combined into a new traceability record to obtain the agricultural product traceability statistical table between the central server 10 and the merchant management server 20, if the same agricultural product traceability data exists in the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table, the same agricultural product traceability data is calculated as an agricultural product traceability data and is combined with other different agricultural product traceability data, and obtaining an agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
(2) And when the data transmission protocol is a second data transmission protocol, receiving candidate agricultural product traceability data sent by the outsourcing merchant management server 20, and determining an agricultural product traceability statistical table between the central server 10 and the merchant management server 20 according to the candidate agricultural product traceability data.
For example, when the data transmission protocol is the second data transmission protocol, the agricultural product data amount of the filed agricultural product traceability data and the agricultural product data amount of the agricultural product traceability data to be filed of the outsourcing merchant management server 20 need to be compared, when the agricultural product data amount of the filed agricultural product traceability data exceeds the agricultural product data amount of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, the first candidate agricultural product traceability data sent by the outsourcing merchant management server 20 is received, and the traceability record between the filed agricultural product traceability data and the first candidate agricultural product traceability data is calculated in the central cache according to the preset security code, so as to obtain the agricultural product traceability statistical table between the central server 10 and the merchant management server 20, when the agricultural product data amount of the filed agricultural product traceability data does not exceed the agricultural product data amount of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, according to the preset security code, the archived agricultural product traceability data are encrypted and then sent to the outsourcing merchant management server 20, second candidate agricultural product traceability data sent by the outsourcing merchant management server 20 are received, and the second candidate agricultural product traceability data are used as an agricultural product traceability statistical table between the central server 10 and the merchant management server 20. Specifically, the following may be mentioned:
a1, when the agricultural product data volume of the filed agricultural product traceability data exceeds the agricultural product data volume of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, receiving first candidate agricultural product traceability data sent by the outsourcing merchant management server 20, and calculating traceability records between the filed agricultural product traceability data and the first candidate agricultural product traceability data in a central cache according to a preset security code so as to obtain an agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
The first agricultural product traceability data may be agricultural product traceability data to be archived, which is encrypted by the outsourcer merchant management server 20.
For example, when the agricultural product data volume of the archived agricultural product traceability data exceeds the agricultural product data volume of the agricultural product traceability data to be archived of the outsourcing merchant management server 20, receiving first candidate agricultural product traceability data sent by the merchant management server 20, checking the integrity of the first candidate agricultural product traceability data by using a message authentication security code in a central cache, calculating an HMAC by using the message authentication security code, comparing the HMAC with the authentication code at the beginning of the first candidate agricultural product traceability data, if the HMAC is consistent with the authentication code at the beginning of the first candidate agricultural product traceability data, determining that the integrity of the first candidate agricultural product traceability data passes the verification, otherwise, determining that the integrity of the first candidate agricultural product traceability data does not pass the verification, and at this time, discarding the first candidate agricultural product traceability data. When the integrity of the first candidate agricultural product tracing data passes verification, the first candidate agricultural product tracing data is decrypted in the central cache by adopting a single-key encryption security code, and a tracing record between the decrypted first candidate agricultural product tracing data and the filed agricultural product tracing data is calculated in the central cache to obtain a target agricultural product tracing statistical table. The target agricultural product traceability statistical table is used as an agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
A2, when the agricultural product data volume of the filed agricultural product traceability data does not exceed the agricultural product data volume of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, according to a preset security code, encrypting the filed agricultural product traceability data and then sending the encrypted agricultural product traceability data to the outsourcing merchant management server 20, receiving second candidate agricultural product traceability data sent by the outsourcing merchant management server 20, and taking the second candidate agricultural product traceability data as an agricultural product traceability statistical table between the center server 10 and the merchant management server 20.
For example, when the agricultural product data volume of the filed agricultural product traceability data does not exceed the agricultural product data volume of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, the filed agricultural product traceability data after the first security maintenance operation may be subjected to a first security maintenance operation by using the data encryption security code, and the filed agricultural product traceability data after the first security maintenance operation is stored in the card side sub-box, for example, the data encryption security code is subjected to information summarization to obtain a random character string, the random character string is effective in single agricultural product traceability data transceiving, the random character string is output to the area of the central server 10 outside the central cache to be stored as a random character string file, the filed agricultural product traceability data of the central server 10 is subjected to salt information summarization operation according to the random character string in the random character string file, and the operation result is boxed, and storing the encrypted archived agricultural product tracing data into a card party sub-box.
(3) When the data transmission protocol is a third data transmission protocol, agricultural product traceability data is received and transmitted by the corresponding ratio of the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20, traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 are calculated in the central cache, an agricultural product traceability initial statistical table is obtained, the agricultural product traceability data to be archived sent by the outsourcing merchant management server 20 is received, and the agricultural product traceability statistical table between the central server 10 and the merchant management server 20 is determined according to the agricultural product traceability initial statistical table and the agricultural product traceability data to be archived sent by the outsourcing merchant management server 20.
For example, candidate archived agricultural product traceability data used for agricultural product traceability data receiving and sending are screened out from the archived agricultural product traceability data, the candidate archived agricultural product traceability data are encrypted by using preset security codes, for example, the archived agricultural product traceability data are subjected to first security maintenance operation by using data encryption security codes, the archived agricultural product traceability data after the first security maintenance operation are stored in a central card side sub-box, the archived agricultural product traceability data corresponding to the target quantity proportion are screened out from the central card side sub-box and serve as the candidate archived agricultural product traceability data, the candidate archived agricultural product traceability data are stored in a central cache, and the candidate archived agricultural product traceability data are encrypted by using a single-key encryption security code and a message authentication security code in the central cache. The encrypted candidate archived agricultural product traceability data are sent to the internal merchant management server 20 through an interaction channel, and receive the candidate agricultural product traceability data to be archived sent by the internal merchant management server 20, and a traceability record of the agricultural product traceability data except the candidate agricultural product traceability data in the candidate agricultural product traceability data to be archived and the agricultural product traceability data except the candidate agricultural product traceability data in the archived agricultural product traceability data is calculated in the central cache, so that an agricultural product traceability initial statistical table between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server 20 is obtained.
Comparing the agricultural product data amount of the agricultural product traceability data in the agricultural product traceability initial statistical table with the total amount of the agricultural product traceability data to be archived of the outsourcing merchant management server 20, wherein at the moment, the data transmission protocol between the central server 10 and the merchant management server 20 returns to the second data transmission protocol. When the agricultural product data volume of the agricultural product traceability data in the agricultural product traceability initial statistical table exceeds the agricultural product data volume of the agricultural product traceability data to be archived of the outsourcing merchant management server 20, receiving the traceability data of the agricultural products to be filed currently sent by the outsourcing merchant management server 20, and calculates the tracing record between the agricultural product tracing initial statistical table and the current agricultural product tracing data to be filed, for example, receiving the current agricultural product tracing data to be filed sent by the outsourcing merchant management server 20, at this moment, the current agricultural product tracing data to be filed is the agricultural product tracing data to be filed stored in the outsourcing merchant management server 20, encrypted by using a data encryption security code, subjected to a first security maintenance operation and stored in a merchant card party sub-box, and continuously encrypting the agricultural product traceability data to be archived in the merchant cache by adopting a single-key encryption security code and a message authentication security code. The host of the central server 10 checks the integrity of the current agricultural product traceability data to be archived in the central cache by using the message authentication security code, the verification method can calculate the HMAC by using the message authentication security code, compare the HMAC with the authentication code at the beginning of the current agricultural product traceability data to be archived, if the HMAC and the authentication code at the beginning of the current agricultural product traceability data to be archived are consistent, the integrity of the current agricultural product traceability data to be archived can be determined to pass the verification, otherwise, the integrity of the current agricultural product traceability data to be archived is determined to not pass the verification, and at this time, the current agricultural product traceability data to be archived is discarded. When the integrity of the current agricultural product traceability data to be archived passes verification, decrypting the current agricultural product traceability data to be archived by adopting a single-key encryption security code in the central cache, calculating traceability records between the decrypted current agricultural product traceability data to be archived and the agricultural product traceability initial statistical table in the central cache to obtain a current agricultural product traceability statistical table, and taking the current agricultural product traceability statistical table as an agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
When the agricultural product data volume of the agricultural product traceability data in the agricultural product traceability initial statistical table does not exceed the agricultural product data volume of the agricultural product traceability data to be filed of the outsourcing merchant management server 20, the agricultural product traceability initial statistical table is encrypted and then sent to the outsourcing merchant management server 20 according to the preset security code, for example, the agricultural product traceability initial statistical table can be subjected to first security maintenance operation by adopting the data encryption security code and stored to a central card side sub-box, the central card side sub-box is stored to a central cache, the agricultural product traceability initial statistical table in the central card side sub-box in the main security control is encrypted by adopting a message authentication security code and a single-key encryption security code, for example, the agricultural product traceability initial statistical table can be directly encrypted by adopting the single-key encryption security code, the encryption algorithm can have various AES (advanced encryption standard), for example, the encryption mode selects the CFB mode. The method comprises the steps of calculating HMAC (high-speed alternating current) by adopting message authentication security codes for filed agricultural product traceability data, attaching the HMAC to the beginning of a ciphertext of an agricultural product traceability initial statistical table, encrypting the integrity of the agricultural product traceability initial statistical table, finally obtaining the encrypted agricultural product traceability initial statistical table, sending the encrypted agricultural product traceability initial statistical table to an outsourcing merchant management server 20, checking the integrity of the encrypted agricultural product traceability initial statistical table by adopting the message authentication security codes in a merchant cache by the outsourcing merchant management server 20, comparing the HMAC with the authentication codes at the beginning of the encrypted agricultural product traceability initial statistical table by adopting the message authentication security codes, if the comparison is consistent, determining that the integrity of the encrypted agricultural product traceability initial statistical table passes the authentication, otherwise, determining that the integrity of the encrypted agricultural product traceability initial statistical table fails the authentication, at this time, the encrypted agricultural product tracing initial statistical table is discarded. When the integrity of the encrypted agricultural product traceability initial statistical table passes verification, decrypting the encrypted agricultural product traceability initial statistical table by using a single-key encryption security code in a merchant cache, for example, the decryption mode of the single-key encryption security code may be advanced encryption standard AES, selecting a decryption mode corresponding to a CFB mode in the encryption mode, calculating the decrypted agricultural product traceability initial statistical table and a traceability record of agricultural product traceability data to be filed stored in the merchant cache, obtaining an agricultural product traceability data set after the agricultural product traceability initial statistical table is submitted, sending the agricultural product traceability data set to the central server 10 after a host of the central server 10 receives the sent agricultural product traceability data set after the outsourcing merchant management server 20 submits the agricultural product traceability initial statistical table, and taking the agricultural product traceability data set as the agricultural product traceability statistical data set between the central server 10 and the merchant management server 20 And (4) a table.
It should be noted that, if the merchant management server 20 includes agricultural product data volumes of agricultural product traceability data to be archived corresponding to a plurality of levels or a plurality of other company flags, an initial data set obtained after the central server 10 and the internal merchant management server 20 are submitted with agricultural product traceability data to be archived stored by the outsource merchant management server 20 under different company flags respectively, and an agricultural product traceability data set obtained after the agricultural product traceability initial statistical table and all agricultural product traceability data to be archived stored by the outsource merchant management server 20 are submitted is used as an agricultural product traceability data set between the central server 10 and the merchant management server 20. For the outsourcing merchant management server 20, if the quantity of the repeated agricultural product data of the agricultural product data between the outsourcing merchant management servers 20 does not exceed the preset repeated agricultural product data, the same outsourcing merchant management servers 20 can carry out transaction by adopting a first data transmission protocol, and the central server 10 only needs to carry out transaction with any outsourcing merchant management server 20 under the company after the transaction is completed. For example, after the central server 10 and the internal merchant management server 20 perform an intersection, an agricultural product traceability initial statistical table is obtained, the outsourced merchant management server 20 includes a first outsourced merchant management server 20, a second outsourced merchant management server 20 and a third outsourced merchant management server 20, wherein the repeated agricultural product data between the agricultural product data volumes of the first outsourced merchant management server 20 and the second outsourced merchant management server 20 does not exceed the preset repeated agricultural product data, and it can be considered that the relationship between the first outsourced merchant management server 20 and the second outsourced merchant management server 20 is the internal merchant management server 20, therefore, when the agricultural product traceability initial statistical table is located in the second data transmission protocol between the three outsourced merchant management servers 20, an agricultural product traceability statistical table can be obtained for the second data transmission protocol between the third outsourced merchant management server 20 first, at this time, the first outsourced merchant management server 20 and the second outsourced merchant management server 20 perform equal interaction to obtain another agricultural product traceability statistical table, and the two agricultural product traceability statistical tables are fused to obtain the agricultural product traceability statistical table between the central server 10 and the merchant management server 20.
As can be seen from the above, after the agricultural product traceability instruction is obtained, the agricultural product traceability instruction determines the merchant management server 20 which performs agricultural product traceability data transceiving with the central server 10, according to the agricultural product traceability instruction, the central cache is divided at the central server 10, the merchant management server 20 divides the merchant cache at the central server 10 of the merchant management server 20, when the cache readiness conditions of the central cache and the merchant cache meet the preset verification conditions, an interaction channel and a preset security code between the central cache and the merchant cache are constructed, the agricultural product traceability data transceiving is performed with the merchant management server 20 through the interaction channel and the preset security code, and the agricultural product traceability statistical table between the central server 10 and the client is calculated based on the interactive agricultural product traceability data; according to the scheme, the cache spaces are respectively divided in the host and the merchant management server 20, the interaction channel and the preset security code between the central cache and the merchant cache are constructed, agricultural product traceability data are directly processed in the cache spaces through the interaction channel and the preset security code, the agricultural product traceability data do not need to be processed through a third-party server, and the cache readiness condition and the processing speed of agricultural product traceability data processing can be greatly improved.
Referring to fig. 3, fig. 3 is a diagram illustrating an agriculture industry-wide chain traceability system 110 based on big data according to an embodiment of the present invention, which is applied to a central server 10, and the system includes:
an obtaining module 1101, configured to obtain an agricultural product archiving instruction sent by the merchant management server 20 at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of the agricultural product information to be traced at an initial time point; the agricultural product information to be traced is agricultural product information which is filed in the agricultural product sales knowledge map corresponding to the merchant management server 20; the first agricultural product status data includes a first supplier identification and a first sales information identification corresponding to the first supplier identification.
A determining module 1102, configured to obtain a target agricultural product information node in an agricultural product center management knowledge graph based on a first provider identifier; the node information of the target agricultural product information node comprises historical agricultural product state data, and the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced; and determining the sales cooperation state of the first agricultural product state data according to the first sales information identifier and the historical sales information identifier in the historical agricultural product state data.
A judging module 1103, configured to generate an agricultural product information node according to the first agricultural product state data if the first agricultural product state data is stable in sales cooperation state, and add the agricultural product information node to an agricultural product center management knowledge graph corresponding to the central server 10; when an agricultural product traceability instruction sent by the merchant management server 20 at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data is agricultural product state data of agricultural product information to be traced at a target time point; the target time point is greater than the initial time point.
And the tracing module 1104 is configured to perform agricultural product tracing operation on the to-be-traced agricultural product information according to the agricultural product information node and the second agricultural product state data.
It should be noted that, for the implementation principle of the agriculture industry wide chain traceability system 110 based on big data, reference may be made to the implementation principle of the agriculture industry wide chain traceability method based on big data, and details are not described herein again.
The embodiment of the application further provides an agricultural whole industry chain traceability cloud platform based on big data, which comprises a central server and at least one merchant management server in communication connection with the central server, wherein the at least one merchant management server is used for recording sales information of agricultural products, and the central server is used for executing the agricultural whole industry chain traceability method based on big data.
The foregoing description, for purpose of explanation, has been described with reference to specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teaching.

Claims (9)

1. An agricultural full industry chain traceability method based on big data is applied to a central server, and the method comprises the following steps:
acquiring an agricultural product filing instruction sent by a merchant management server at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at the initial time point; the agricultural product information to be traced refers to agricultural product information which is filed in an agricultural product sales knowledge graph corresponding to the merchant management server; the first agricultural product status data comprises a first supplier identification and a first sales information identification corresponding to the first supplier identification;
acquiring a target agricultural product information node in an agricultural product center management knowledge graph based on the first supplier identification; the node information of the target agricultural product information node comprises historical agricultural product state data, and the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced and related to the agricultural product information to be traced;
determining a sales cooperation state of the first agricultural product state data according to the first sales information identifier and a historical sales information identifier in the historical agricultural product state data;
if the first agricultural product state data is stable in sales cooperation state, generating an agricultural product information node according to the first agricultural product state data, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the center server;
when an agricultural product traceability instruction sent by the merchant management server at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data refers to agricultural product state data of the agricultural product information to be traced at the target time point; the target time point is greater than the initial time point;
performing agricultural product traceability operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data;
the determining the sales cooperation state of the first agricultural product state data according to the first sales information identifier and the historical sales information identifier in the historical agricultural product state data comprises:
acquiring an original sales information identification information summary ciphertext in the first sales information identification, and acquiring a sales information identification information summary ciphertext corresponding to the historical sales information identification;
if the original sales information identification information summary ciphertext is the same as the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is stable;
and if the original sales information identification information summary ciphertext is different from the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is unstable.
2. The method of claim 1, wherein the first agricultural product status data comprises a first vendor identification and a first sales information identification information digest cipher text corresponding to the first vendor identification; the second agricultural product state data comprises a second supplier identification and a second sales information identification information summary ciphertext corresponding to the second supplier identification; the agricultural product tracing operation of the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data comprises the following steps:
acquiring the agricultural product information node in the agricultural product center management knowledge graph according to the second supplier identification;
acquiring first agricultural product state data in node information of the agricultural product information node; the first vendor identification in the first agricultural product status data is the same as the second vendor identification;
and performing agricultural product traceability operation on the agricultural product information to be traced according to the first sales information identification information abstract ciphertext and the second sales information identification information abstract ciphertext.
3. The method according to claim 2, wherein performing agricultural product tracing operation on the agricultural product information to be traced according to the first sales information identification information digest cipher text and the second sales information identification information digest cipher text comprises:
if the first sales information identification information summary ciphertext is equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is traceable agricultural product information;
and if the first sales information identification information summary ciphertext is not equal to the second sales information identification information summary ciphertext, determining that the agricultural product information to be traced is the agricultural product information which can not be traced.
4. The method of claim 3, further comprising:
when the agricultural product information to be traced is traceable agricultural product information, returning a tracing result to the merchant management server so that the merchant management server continues to execute preset archiving operation;
and when the agricultural product information to be traced is the non-traceable agricultural product information, returning a tracing failure result to the merchant management server so that the merchant management server stops the preset archiving operation and executes the tracing inspection operation.
5. The method of claim 1, further comprising:
if the first agricultural product state data is unstable in sales cooperation state, the central server returns archiving abnormal information to the merchant management server, so that the merchant management server stops preset archiving operation and executes sales cooperation state determination operation.
6. The method of claim 1, further comprising:
obtaining the agricultural product traceability instruction, wherein the agricultural product traceability instruction determines a merchant management server which receives and transmits agricultural product traceability data with a central server;
according to the agricultural product traceability indication, a central cache is divided at a central server, a merchant management server is enabled to divide a merchant cache at the merchant management server central server, the central cache and the merchant cache both belong to a cache space, and the cache space is a space which passes security authorization;
when the cache readiness conditions of the central cache and the merchant cache reach a preset working state, constructing an interaction channel and a preset security code between the central cache and the merchant cache; exchanging data summaries of agricultural product traceability data stored respectively with the merchant management server through the interaction channel, wherein the data summaries comprise agricultural product data volume of the agricultural product traceability data filed in the central server and agricultural product data volume of agricultural product traceability data to be filed in the merchant management server;
calculating the agricultural product data volume of the agricultural product traceability data to be archived and the repeated agricultural product data volume of the agricultural product traceability data archived in the central server;
when the repeated agricultural product data does not exceed a preset repeated threshold value, determining that the type of the merchant management server is an internal merchant management server;
when the repeated agricultural product data exceeds the preset repeated threshold value, determining that the type of the merchant management server is an outsourced merchant management server;
when the merchant management server is an internal merchant management server, taking the internal merchant management server as a target merchant management server for agricultural product traceability data transceiving with a central server, and determining that a data transmission protocol of the target merchant management server is a first data transmission protocol;
when the merchant management server is an outsourced merchant management server, screening a preset number of outsourced merchant management servers from the outsourced merchant management servers as the target merchant management server, and determining that the data transmission protocol of the target merchant management server is a second data transmission protocol;
when the merchant management server comprises the internal merchant management server and the outsourced merchant management server, screening a preset number of outsourced merchant management servers from the outsourced merchant management server, taking the preset number of outsourced merchant management servers and all internal merchant management servers as target merchant management servers, and determining that a data transmission protocol of the target merchant management server is a third data transmission protocol, wherein the third data transmission protocol is a first data transmission protocol with the internal merchant management server, and after the first data transmission protocol is finished, performing a second data transmission protocol with the outsourced merchant management server; when the data transmission protocol is a first data transmission protocol, agricultural product traceability data sending and receiving are carried out on the archived agricultural product traceability data corresponding to the proportion and the agricultural product traceability data to be archived of the internal merchant management server through the interaction channel and the preset safety code, and traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server are calculated in the central cache, so that an agricultural product traceability statistical table between the central server and the merchant management server is obtained;
when the data transmission protocol is a second data transmission protocol, receiving candidate agricultural product traceability data sent by the outsourcing merchant management server, and determining an agricultural product traceability statistical table between a central server and the merchant management server according to the candidate agricultural product traceability data;
when the data transmission protocol is a third data transmission protocol, performing agricultural product traceability data receiving and sending on the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server in a corresponding proportion, calculating traceability records between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server in the central cache to obtain an agricultural product traceability initial statistical table, receiving the agricultural product traceability data to be archived sent by the outsourcing merchant management server, and determining the agricultural product traceability statistical table between the central server and the merchant management server according to the agricultural product traceability initial statistical table and the agricultural product traceability data to be archived sent by the outsourcing merchant management server.
7. The method according to claim 6, wherein the preset security code includes a data encryption security code, a single-key encryption security code and a message authentication security code, and the agricultural product traceability data transceiving is performed on the archived agricultural product traceability data corresponding to the occupation ratio and the agricultural product traceability data to be archived of the internal merchant management server through the interaction channel and the preset security code, and a traceability record between the archived agricultural product traceability data and the agricultural product traceability data to be archived of the internal merchant management server is calculated in the central cache, so as to obtain an agricultural product traceability statistical table between the central server and the merchant management server, including:
according to the data abstract of the internal merchant management server, determining a target quantity proportion of agricultural product traceability data transceiving between a central server and the internal merchant management server and a box dividing quantity of card party boxes for storing agricultural product traceability data;
dividing the central card side sub-boxes corresponding to the sub-box quantity in a central server region except the central cache;
performing information abstract operation on the data encryption security code to obtain a random character string, wherein the random character string is effective in single agricultural product traceability data receiving and sending;
performing first security maintenance operation on the archived agricultural product traceability data by adopting the random character string;
cutting the agricultural product traceability data of the central server after the first safety maintenance operation into sub agricultural product traceability data corresponding to the sub-box number, and determining the sub-box number of each sub agricultural product traceability data stored in the sub-box of the central card side;
storing the sub agricultural product traceability data to a central card side sub-box corresponding to the sub-box number;
screening the filed agricultural product traceability data corresponding to the target quantity proportion in the central card side sub-box to serve as target filed agricultural product traceability data, and storing the target filed agricultural product traceability data to the central cache;
encrypting the target filed agricultural product traceability data by adopting the single-key encryption security code and the message authentication security code in the central cache, and sending the encrypted target filed agricultural product traceability data to the internal merchant management server through the interaction channel;
receiving the traceability data of the target agricultural product to be archived, which is sent by the internal merchant management server, and in the central cache, checking the integrity of the traceability data of the target agricultural product to be archived by adopting the message authentication security code;
when the integrity of the agricultural product traceability data to be filed passes the inspection, decrypting the agricultural product traceability data to be filed by adopting the single-key encryption security code;
calculating a traceability record between the decrypted target agricultural product traceability data to be archived and the residual archived agricultural product traceability data which are not sent to the internal merchant management server to obtain a first agricultural product traceability initial statistical table;
sending the first agricultural product traceability initial statistical table to the internal merchant management server, and receiving a second agricultural product traceability initial statistical table sent by the internal merchant management server, wherein the second agricultural product traceability initial statistical table is a traceability record between the traceability data of the remaining agricultural products to be archived, which are calculated by the internal merchant management server and are not sent to a central server, and the traceability data of the target archived agricultural products;
and fusing the first agricultural product traceability initial statistical table and the second agricultural product traceability initial statistical table to obtain an agricultural product traceability statistical table between a central server and the merchant management server.
8. An agricultural full industry chain traceability system based on big data is applied to a central server, and the system comprises:
the acquisition module is used for acquiring an agricultural product filing instruction sent by the merchant management server at an initial time point; the agricultural product archiving indication comprises first agricultural product state data of agricultural product information to be traced at the initial time point; the agricultural product information to be traced refers to agricultural product information which is filed in an agricultural product sales knowledge graph corresponding to the merchant management server; the first agricultural product status data comprises a first supplier identification and a first sales information identification corresponding to the first supplier identification;
the determining module is used for acquiring a target agricultural product information node in an agricultural product center management knowledge graph based on the first supplier identification; the node information of the target agricultural product information node comprises historical agricultural product state data, and the historical agricultural product state data is agricultural product state data corresponding to the agricultural product information to be traced and related to the agricultural product information to be traced; determining a sales cooperation state of the first agricultural product state data according to the first sales information identifier and a historical sales information identifier in the historical agricultural product state data;
the judging module is used for generating an agricultural product information node according to the first agricultural product state data if the sales cooperation state of the first agricultural product state data is stable, and adding the agricultural product information node to an agricultural product center management knowledge graph corresponding to the central server; when an agricultural product traceability instruction sent by the merchant management server at a target time point is obtained, second agricultural product state data contained in the agricultural product traceability instruction is obtained; the second agricultural product state data refers to agricultural product state data of the agricultural product information to be traced at the target time point; the target time point is greater than the initial time point;
the source tracing module is used for carrying out agricultural product source tracing operation on the agricultural product information to be traced according to the agricultural product information node and the second agricultural product state data;
the determining module is specifically configured to:
acquiring an original sales information identification information summary ciphertext in the first sales information identification, and acquiring a sales information identification information summary ciphertext corresponding to the historical sales information identification; if the original sales information identification information summary ciphertext is the same as the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is stable; and if the original sales information identification information summary ciphertext is different from the sales information identification information summary ciphertext corresponding to the historical sales information identification, determining that the first agricultural product state data sales cooperation state is unstable.
9. The agricultural whole industry chain traceability cloud platform based on big data is characterized by comprising a central server and at least one merchant management server in communication connection with the central server, wherein the at least one merchant management server is used for recording sales information of agricultural products, and the central server is used for executing the agricultural whole industry chain traceability method based on big data in any one of claims 1-7.
CN202210525372.0A 2022-05-13 2022-05-13 Big data-based agricultural whole industry chain traceability method and system and cloud platform Active CN114638625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210525372.0A CN114638625B (en) 2022-05-13 2022-05-13 Big data-based agricultural whole industry chain traceability method and system and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210525372.0A CN114638625B (en) 2022-05-13 2022-05-13 Big data-based agricultural whole industry chain traceability method and system and cloud platform

Publications (2)

Publication Number Publication Date
CN114638625A CN114638625A (en) 2022-06-17
CN114638625B true CN114638625B (en) 2022-08-16

Family

ID=81952750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210525372.0A Active CN114638625B (en) 2022-05-13 2022-05-13 Big data-based agricultural whole industry chain traceability method and system and cloud platform

Country Status (1)

Country Link
CN (1) CN114638625B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115619104B (en) * 2022-11-17 2023-03-21 广东邦盛北斗农业科技有限公司 Agricultural product quality safety tracing method based on agricultural Internet of things and cloud platform
CN115526551B (en) * 2022-11-28 2023-04-07 广东邦盛北斗农业科技有限公司 Agricultural product traceability data processing method based on artificial intelligence and cloud platform
CN116167781B (en) * 2023-04-26 2023-06-30 宗申·比亚乔佛山摩托车企业有限公司 Commodity traceability data processing method based on artificial intelligence and cloud platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391735A (en) * 2017-08-04 2017-11-24 北京明朝万达科技股份有限公司 Business datum source tracing method, device, system and storage device based on block chain
CN109583917A (en) * 2018-11-27 2019-04-05 重庆文理学院 A kind of two dimensional code source tracing method and system based on block chain

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106096983A (en) * 2016-06-15 2016-11-09 深圳市唯传科技有限公司 A kind of agricultural product traceability system based on technology of Internet of things and method
CN109389411A (en) * 2018-09-30 2019-02-26 广西乐业康辉生态养殖专业合作社 A kind of organic agricultural products tracing method
CN110619530A (en) * 2019-08-29 2019-12-27 卓尔智联(武汉)研究院有限公司 Agricultural product tracing method, electronic equipment and computer readable storage medium
CN110674310A (en) * 2019-09-04 2020-01-10 东华大学 Knowledge graph-based industrial Internet of things identification method
CN111861505B (en) * 2020-06-28 2024-03-01 石家庄铁道大学 Agricultural product tracing method based on block chain
CN112633897A (en) * 2020-11-27 2021-04-09 袁米农业科技有限公司 Traceability method and traceability system for agricultural product production and sale
CN112667820B (en) * 2020-12-08 2023-04-18 吉林省吉科软信息技术有限公司 Deep learning construction method for full-process traceable ecological chain supervision knowledge map

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391735A (en) * 2017-08-04 2017-11-24 北京明朝万达科技股份有限公司 Business datum source tracing method, device, system and storage device based on block chain
CN109583917A (en) * 2018-11-27 2019-04-05 重庆文理学院 A kind of two dimensional code source tracing method and system based on block chain

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于区块链的食品安全溯源信息系统设计;文安兴等;《现代信息科技》;20200410(第07期);全文 *

Also Published As

Publication number Publication date
CN114638625A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN114638625B (en) Big data-based agricultural whole industry chain traceability method and system and cloud platform
US10747721B2 (en) File management/search system and file management/search method based on block chain
EP4120114A1 (en) Data processing method and apparatus, smart device and storage medium
US11842317B2 (en) Blockchain-based authentication and authorization
CN109409122B (en) File storage method, electronic device and storage medium
EP3751815B1 (en) Multi-source deterministic oracle management
US20200043001A1 (en) Pet Food Traceability System and Method Therefor
US20180183768A1 (en) Systems and methods for privacy in distributed ledger transactions
CN111047450A (en) Method and device for calculating down-link privacy of on-link data
US20080083039A1 (en) Method for integrity attestation of a computing platform hiding its configuration information
CN110264354B (en) Method and device for creating block chain account and verifying block chain transaction
CN111241557B (en) Service request method and device based on block chain
CN112733178B (en) Cross-chain trust method, device, equipment and medium based on digital certificate authentication
US20200169389A1 (en) Creating a blockchain account and verifying blockchain transactions
CN101241528A (en) Terminal access trusted PDA method and access system
CN111476573B (en) Account data processing method, device, equipment and storage medium
CN110598456B (en) Data storage method and device, electronic equipment and storage medium
CN113391880B (en) Trusted mirror image transmission method for layered double hash verification
CN112732695B (en) Cloud storage data security deduplication method based on block chain
Li et al. A decentralized and secure blockchain platform for open fair data trading
CN109918451A (en) Data base management method and system based on block chain
CN109960512B (en) Software deployment method and system
CN112398874A (en) Data security management system for cloud computing
EP4035305A1 (en) Partitioning a request into transactions for a blockchain
Chinthamu et al. Self-Secure firmware model for Blockchain-Enabled IOT environment to Embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method, system, and cloud platform for traceability of the entire agricultural industry chain based on big data

Effective date of registration: 20231113

Granted publication date: 20220816

Pledgee: Shunde Guangdong rural commercial bank Limited by Share Ltd. Daliang branch

Pledgor: Guangdong Bangsheng Beidou Technology Co.,Ltd.

Registration number: Y2023980065299

PE01 Entry into force of the registration of the contract for pledge of patent right