CN111489177A - Cross-border commodity tracing method and device based on block chain system and hardware equipment - Google Patents

Cross-border commodity tracing method and device based on block chain system and hardware equipment Download PDF

Info

Publication number
CN111489177A
CN111489177A CN202010298061.6A CN202010298061A CN111489177A CN 111489177 A CN111489177 A CN 111489177A CN 202010298061 A CN202010298061 A CN 202010298061A CN 111489177 A CN111489177 A CN 111489177A
Authority
CN
China
Prior art keywords
cross
border
commodity
node
information
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.)
Pending
Application number
CN202010298061.6A
Other languages
Chinese (zh)
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.)
Liannong Shenzhen Information Technology Co ltd
Original Assignee
Liannong Shenzhen Information 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 Liannong Shenzhen Information Technology Co ltd filed Critical Liannong Shenzhen Information Technology Co ltd
Priority to CN202010298061.6A priority Critical patent/CN111489177A/en
Publication of CN111489177A publication Critical patent/CN111489177A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0831Overseas transactions
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • G06Q10/0833Tracking

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Databases & Information Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Finance (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cross-border commodity tracing method and device based on a block chain system and hardware equipment, relates to the technical field of block chains, and is used for improving the accuracy of cross-border commodity tracing. The main technical scheme is as follows: receiving commodity unique identification information of cross-border commodities sent by a client; inquiring whether commodity unique identification information corresponding to cross-border commodities exists from a preset unique identification information base; if the cross-border commodity exists, acquiring position change information generated by the cross-border commodity according to the time sequence from the commodity position information change table; respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node; detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodity, which is obtained from the commodity position information change table and generated according to the time sequence; and if the source information is matched with the source information, sending the arranged source information to the client.

Description

Cross-border commodity tracing method and device based on block chain system and hardware equipment
Technical Field
The invention relates to the technical field of blockchain, in particular to a cross-border commodity tracing method and device based on a blockchain system and hardware equipment.
Background
The tracing system is a production control system which can track products in a forward direction, a reverse direction or a non-direction, and is suitable for various types of processes and production control systems. The method can enable a user to trace detailed information of a product in the flowing process of a supply chain, and further effectively plays a role in anti-counterfeiting and anti-channel conflict.
The traditional cross-border commodity source tracing design is a data storage mode based on database development, and the data storage mode can be modified and does not leave any trace. Therefore, the existing data storage technology is over-centralized based on database storage, risks being falsified, and easily destroys the integrity and authenticity of data.
Disclosure of Invention
The invention provides a cross-border commodity tracing method and device based on a block chain system, computer equipment and a storage medium, which are used for improving the accuracy of cross-border commodity tracing.
The embodiment of the invention provides a cross-border commodity tracing method based on a block chain system, wherein the block chain system comprises a block chain center node and a plurality of customs nodes corresponding to the block chain center node, the customs nodes comprise an initial country customs node, an approach country customs node and/or a target country customs node, and the method comprises the following steps:
receiving a tracing request of a cross-border commodity sent by a client, wherein the tracing request comprises commodity unique identification information of the cross-border commodity, and the commodity unique identification information is used for uniquely identifying the cross-border commodity;
inquiring whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, wherein the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
if the unique commodity identification information corresponding to the cross-border commodity exists in the preset unique identification information base, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; the commodity position information change table records position changes of a plurality of commodities;
acquiring a production node, a transportation node, a storage node and a customs node for recording the cross-border commodity from the block chain center node;
respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node;
arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table;
and if the source information is matched with the source information, sending the arranged source information to the client.
The embodiment of the invention provides a cross-border commodity source tracing device based on a block chain system, wherein the block chain system comprises a block chain center node and a plurality of customs nodes corresponding to the block chain center node, the customs nodes comprise an initial country customs node, an approach country customs node and/or a target country customs node, and the device comprises:
the system comprises a receiving module, a tracing module and a display module, wherein the receiving module is used for receiving a tracing request of cross-border commodities sent by a client, the tracing request comprises commodity unique identification information of the cross-border commodities, and the commodity unique identification information is used for uniquely identifying the cross-border commodities;
the query module is used for querying whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, and the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
the acquisition module is used for acquiring position change information generated by the cross-border commodities according to the time sequence from a commodity position information change table if the unique commodity identification information corresponding to the cross-border commodities exists in the preset unique identification information base; the commodity position information change table records position changes of a plurality of commodities;
the acquisition module is further used for acquiring and recording production nodes, transportation nodes, storage nodes and customs nodes of the cross-border commodities from the block chain center node;
the query module is further configured to query the traceability information of the cross-border commodity recorded in the production node, the transportation node, the storage node, and the customs node, respectively;
the detection module is used for arranging the searched tracing information of the cross-border commodities according to the time sequence and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities, which is acquired from the commodity position information change table and generated according to the time sequence;
and the sending module is used for sending the arranged traceability information to the client if the traceability information is matched with the client.
A computer device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the cross-border product tracing method based on the blockchain system.
A computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the cross-border product tracing apparatus based on the blockchain system.
The invention provides a cross-border commodity tracing method and device based on a block chain system, computer equipment and a storage medium, wherein a tracing request of a cross-border commodity sent by a client is received, and the tracing request comprises commodity unique identification information of the cross-border commodity; inquiring whether commodity unique identification information corresponding to cross-border commodities exists from a preset unique identification information base; if the unique commodity identification information corresponding to the cross-border commodity exists, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; acquiring production nodes, transportation nodes, storage nodes and customs nodes for recording cross-border commodities from the block chain center node; respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node; arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with position change information of the cross-border commodities generated according to the time sequence and acquired from a commodity position information change table; and if the source information is matched with the source information, sending the arranged source information to the client. Compared with the conventional commodity traceability system developed based on a database, the invention realizes the traceability of cross-border commodities based on the block chain system, namely, the traceability information of the cross-border commodities recorded in a production node, a transportation node, a storage node and a customs node in the block chain system is inquired, and when the traceability information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table, the arranged traceability information is sent to the client.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a cross-border tracing method based on a blockchain system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating the storage of location information of cross-border merchandise in a merchandise location information change table according to a chronological order in an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a cross-border tracing apparatus based on a blockchain system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the 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 some, not all, embodiments of the present invention. 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.
In one embodiment, as shown in fig. 1, a cross-border product tracing method based on a blockchain system is provided, where the blockchain system includes a blockchain center node and a plurality of customs nodes corresponding to the blockchain center node, where the customs nodes include an origin country customs node, a route country customs node and/or a destination country customs node, and the method includes the following steps:
and S10, receiving a tracing request of the cross-border commodity sent by the client, wherein the tracing request comprises commodity unique identification information of the cross-border commodity.
The commodity unique identification information is used for uniquely identifying the cross-border commodity; the cross-border commodity which the client user wants to inquire can be determined through the commodity unique identification.
S20, it is checked from the preset unique identification information base whether or not there is the commodity unique identification information corresponding to the cross-border commodity.
The preset unique identification information base stores unique identification information corresponding to real goods set by manufacturers; that is, as long as the unique identification information is stored in the preset unique identification information base, the commodity corresponding to the unique identification information is a genuine commodity. For example, if the unique identification information of the product corresponding to the cross-border product a is 0001, searching whether the unique identification information 0001 exists in a preset unique identification information base, and if so, indicating that the cross-border product a is a real product, namely, a genuine product of the cross-border product a.
It should be noted that the unique identification information corresponding to the actual product stored in the preset unique identification information base is written by the manufacturer when the manufacturer finishes producing the product, and the unique identification information may specifically be an identification code of the product or an identification of another uniquely identifiable product, which is not specifically limited in the embodiment of the present invention.
And S30, if the preset unique identification information base has the commodity unique identification information corresponding to the cross-border commodity, acquiring the position change information generated by the cross-border commodity according to the time sequence from the commodity position information change table.
In the embodiment of the invention, if the commodity unique identification information corresponding to the cross-border commodity exists in the preset unique identification information base, the cross-border commodity is a genuine commodity, and at the moment, the position change information generated by the cross-border commodity according to the time sequence, namely the position change information generated by the cross-border commodity according to the time sequence in a series of processes such as generation, storage, transportation and the like can be obtained from the commodity position information change table, so that the source-tracing query of the query commodity can be realized through the position change information. Wherein, the position change of a plurality of commodities is recorded in the commodity position information change table; when the position of the commodity changes, the commodity unique identification information, the position change information and the time of the position change are correspondingly stored in the commodity position information change table.
As shown in fig. 2, in an embodiment provided by the present invention, before obtaining the location change information generated by the cross-border product according to the chronological order from the business location information change table, the method further includes:
s301, acquiring production positions, storage positions and cross-border transportation requests of cross-border commodities.
The production position is the position for producing the cross-border commodity, and the storage position is the position for storing the cross-border commodity; the cross-border transportation request may be a request sent by a seller to a central node of the block chain, where the request includes cross-border transportation time, a cross-border transportation route, a seller, a buyer, a country origin customs node, a country route customs node and/or a country destination customs node, and the type and quantity of goods, and the embodiment of the present invention is not limited specifically.
And S302, determining the acquisition time interval of the cross-border commodity position information according to the cross-border transportation time and the cross-border transportation line.
In the embodiment of the present invention, the cross-border transportation time includes an estimated start time and an estimated end time of the commodity transportation, and the cross-border transportation route includes a transportation route, a transportation distance, a transportation mode, and the like. Specifically, the shorter the cross-border transportation time is, the longer the transportation route is, and the shorter the time interval can be set; conversely, the longer the time interval is set, and of course, the time interval is also related to the transportation mode, the faster the transportation speed of the transportation mode is, the shorter the time interval can be set, and the slower the transportation speed of the transportation mode is, the longer the time interval can be set, which is not specifically limited in the embodiment of the present invention.
And S303, storing the production position and the storage position of the cross-border commodity and the position information of the cross-border commodity acquired according to the time interval into a commodity position information change table according to the time sequence.
In the embodiment of the invention, after all the position change information of the cross-border commodity is obtained, the position information of the cross-border commodity is stored into the commodity position information change table according to the time sequence, namely the commodity unique identification information of the cross-border commodity, the generation position and the storage position of the cross-border commodity and the position information obtained according to the preset time interval are correspondingly stored into the commodity position information change table according to the time sequence, so that the position change information of the production line corresponding to the tracing product in the commodity position information change table can be conveniently stored in the subsequent steps according to the commodity unique identification information.
And S40, acquiring production nodes, transportation nodes, storage nodes and customs nodes for recording cross-border commodities from the block chain center node.
It should be noted that the block chain center node corresponds to a production node, a transportation node, a storage node and a customs node, the production node records generation information of the cross-border commodity and basic information of the commodity, the transportation node records storage information of the cross-border commodity, the customs node includes a country-origin customs node, a country-route customs node and/or a country-destination customs node through which the cross-border commodity passes, and each customs node records basic information of the cross-border commodity passing through a customs thereof.
In an embodiment provided by the present invention, in order to store the information of the cross-border commodity passing through customs into the corresponding customs node, before the production node, the transportation node, the storage node, and the customs node, which record the cross-border commodity, are obtained from the block chain center node, the method further includes: determining an origin country customs node, a route country customs node and/or a target country customs node through which a cross-border commodity passes from the cross-border transportation line; and writing commodity information and import and export time of the cross-border commodity into the corresponding customs nodes when the origin country customs node, the approach country customs node and/or the target country customs node determine that the cross-border commodity can pass. Specifically, when determining that the cross-border commodity can pass through the cross-border commodity passing node, the customs node writes commodity information and import/export time of the cross-border commodity into the corresponding customs node, so that the cross-border commodity tracing information can be obtained from the customs node in the subsequent steps.
In an embodiment of the present invention, before acquiring, from the blockchain center node, a production node, a transportation node, a storage node, and a customs node for recording the cross-border product, the method further includes: and the transportation node acquires position information according to the cross-border transportation line of the cross-border commodity and preset time intervals, and stores the acquired position information into the transportation node according to a time sequence. The transportation node is used for recording position information generated when the cross-border commodities are transported according to the cross-border transportation line and time for generating the position information. So as to check the transportation information of the cross-border commodities through the transportation node in the subsequent steps.
In an embodiment of the present invention, before acquiring, from the blockchain center node, a production node, a transportation node, a storage node, and a customs node for recording the cross-border product, the method further includes: the production node records commodity information of cross-border commodities sent by a producer into the production node, wherein the commodity information comprises production time and commodity information of the cross-border commodities; the warehousing nodes record warehousing information of cross-border commodities sent by a producer into the warehousing nodes, wherein the warehousing information comprises warehousing time and commodity information of the cross-border commodities.
In an embodiment of the present invention, in order to further ensure the authenticity and validity of information stored in a production node, a transportation node, a storage node, and/or a customs node, the embodiment of the present invention further stores a video picture of a cross-border commodity captured by a node camera device into the production node, the transportation node, the storage node, and/or the customs node, and the node camera device captures a video picture of the cross-border commodity of a specific node. Namely, each node in the block chain system corresponds to a plurality of camera devices for shooting video pictures of cross-border commodities in the corresponding node.
And S50, respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node.
For the embodiment of the invention, after the production node, the transportation node, the storage node and the customs node which record the cross-border commodity are obtained from the block chain center node, the tracing information of the cross-border commodity recorded in the production node, the transportation node, the storage node and the customs node is respectively inquired, namely the information of the cross-border commodity recorded in the production node, the transportation node, the storage node and the customs node is respectively inquired, and each node of the tracing information records the information of the cross-border commodity. If the tracing information of the cross-border commodities in the customs node is commodity information and import and export time of the cross-border commodities; the traceability information of the cross-border commodities in the warehousing node is warehousing information of the cross-border commodities, and the embodiment of the invention is not particularly limited.
And S60, arranging the searched tracing information of the cross-border commodities according to the time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table.
In the embodiment of the invention, after the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node is inquired, the inquired tracing information of the cross-border commodities is arranged according to the time sequence, and whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table is detected. The sorted tracing information is matched with the position change information recorded in the commodity position information change table, and if the positions of the border crossing commodities of 1 month and 1 year 2020, the positions of the border crossing commodities of 1 month and 4 days 2020 are recorded in the tracing information as a customs, the positions of the border crossing commodities of 1 month and 1 day 2020 as a customs and the positions of the border crossing commodities of 1 month and 4 days 2020 as B customs recorded in the position information change table record are also determined, the tracing information arranged according to the time sequence is matched with the position change information of the border crossing commodities generated according to the time sequence and acquired from the commodity position information change table.
And S70, if the source information is matched with the source information, sending the arranged source information to the client.
For the embodiment of the present invention, if it is determined that the tracing information arranged according to the time sequence is matched with the location change information of the cross-border commodity generated according to the time sequence and acquired from the commodity location information change table, it indicates that the location change information determined according to the positioning device of the cross-border commodity itself is consistent with the information of each node where the cross-border commodity arrives in the block chain system, that is, the cross-border commodity is actually transported and the information thereof is actually stored in the block chain system, and at this time, the arranged tracing information is the actual information of the cross-border commodity, and needs to be sent to the client.
It should be noted that if the tracing information arranged according to the time sequence does not match the position change information of the cross-border commodity generated according to the time sequence and acquired from the commodity position information change table, whether the data stored in the nodes of the cross-border commodity is correct or not can be determined by checking the video record of each node, and if the data is correct, the arranged tracing information is sent to the client; and if the cross-border commodity is incorrect, sending the tracing information of the cross-border commodity to background personnel for manual confirmation.
The invention provides a cross-border commodity tracing method based on a block chain system, which is characterized by receiving commodity unique identification information of cross-border commodities sent by a client; inquiring whether commodity unique identification information corresponding to cross-border commodities exists from a preset unique identification information base; if the unique commodity identification information corresponding to the cross-border commodity exists, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; acquiring production nodes, transportation nodes, storage nodes and customs nodes for recording cross-border commodities from the block chain center node; respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node; arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with position change information of the cross-border commodities generated according to the time sequence and acquired from a commodity position information change table; and if the source information is matched with the source information, sending the arranged source information to the client. Compared with the conventional commodity traceability system developed based on a database, the invention realizes the traceability of cross-border commodities based on the block chain system, namely, the traceability information of the cross-border commodities recorded in a production node, a transportation node, a storage node and a customs node in the block chain system is inquired, and when the traceability information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table, the arranged traceability information is sent to the client.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment of the present invention, a cross-border product tracing apparatus based on a blockchain system is provided, where the cross-border product tracing apparatus based on the blockchain system corresponds to the cross-border product tracing method based on the blockchain system in the above embodiments one to one. As shown in fig. 3, the blockchain system includes a blockchain center node, and a plurality of customs nodes corresponding to the blockchain center node, where the customs nodes include an origin country customs node, a route country customs node, and/or a destination country customs node, and the cross-border product tracing apparatus based on the blockchain system includes: the system comprises a receiving module 10, a query module 20, an acquisition module 30, a detection module 40 and a sending module 50. The functional modules are explained in detail as follows:
the system comprises a receiving module 10, a source tracing module and a display module, wherein the receiving module is used for receiving a source tracing request of a cross-border commodity sent by a client, the source tracing request comprises commodity unique identification information of the cross-border commodity, and the commodity unique identification information is used for uniquely identifying the cross-border commodity;
the query module 20 is configured to query whether unique identification information of a commodity corresponding to the cross-border commodity exists from a preset unique identification information base, where unique identification information corresponding to a real commodity set by a manufacturer is stored in the preset unique identification information base;
an obtaining module 30, configured to obtain, from a business position information change table, position change information generated by the cross-border product according to a time sequence if the preset unique identification information base includes product unique identification information corresponding to the cross-border product; the commodity position information change table records position changes of a plurality of commodities;
the obtaining module 30 is further configured to obtain, from the block chain center node, a production node, a transportation node, a storage node, and a customs node that record the cross-border commodity;
the query module 20 is further configured to query the traceability information of the cross-border commodity recorded in the production node, the transportation node, the storage node, and the customs node, respectively;
the detection module 40 is configured to arrange the queried tracing information of the cross-border commodity according to a time sequence, and detect whether the tracing information arranged according to the time sequence matches position change information of the cross-border commodity, which is obtained from the commodity position information change table and generated according to the time sequence;
and a sending module 50, configured to send the arranged traceability information to the client if the traceability information matches the client.
Further, the apparatus further comprises:
the acquiring module 30 is further configured to acquire a production location, a storage location, and a cross-border transportation request of a cross-border commodity, where the cross-border transportation request includes cross-border transportation time and a cross-border transportation route;
a determining module 60, configured to determine an obtaining time interval of the cross-border commodity location information according to the cross-border transportation time and the cross-border transportation route;
the storage module 70 is configured to store the production location and the storage location of the cross-border product, and the location information of the cross-border product obtained according to the time interval into the product location information change table according to the time sequence.
The determining module 60 is further configured to determine, from the cross-border transportation route, an origin country customs node, a route country customs node and/or a target country customs node through which the cross-border commodity is to pass;
the storage module 70 is further configured to write the commodity information and import/export time of the cross-border commodity into the corresponding customs node when the origin country customs node, the approach country customs node, and/or the target country customs node determines that the cross-border commodity can pass through.
The storage module 70 is further configured to obtain, by the transportation node, location information according to a preset time interval on a cross-border transportation route of the cross-border commodity, and store the obtained location information in the transportation node according to a time sequence.
The storage module 70 is further configured to record, by the production node, commodity information of the cross-border commodity sent by the producer into the production node, where the commodity information includes production time and commodity information of the cross-border commodity;
the storage module 70 is further configured to record, by the warehousing node, warehousing information of cross-border commodities sent by a producer into the warehousing node, where the warehousing information includes warehousing time and commodity information of the cross-border commodities.
The storage module 70 is further configured to correspondingly store the video pictures of the cross-border commodities, which are shot by the node camera, in the production node, the transportation node, the storage node and/or the customs node, where the node camera correspondingly shoots the video pictures of the cross-border commodities of a specific node.
For specific limitations of the cross-border product tracing apparatus based on the blockchain system, reference may be made to the above limitations of the cross-border product tracing method based on the blockchain system, and details thereof are not repeated herein. The modules in the cross-border product tracing apparatus based on the blockchain system may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a cross-border commodity tracing method based on a blockchain system.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving a tracing request of a cross-border commodity sent by a client, wherein the tracing request comprises commodity unique identification information of the cross-border commodity, and the commodity unique identification information is used for uniquely identifying the cross-border commodity;
inquiring whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, wherein the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
if the unique commodity identification information corresponding to the cross-border commodity exists in the preset unique identification information base, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; the commodity position information change table records position changes of a plurality of commodities;
acquiring a production node, a transportation node, a storage node and a customs node for recording the cross-border commodity from the block chain center node;
respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node;
arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table;
and if the source information is matched with the source information, sending the arranged source information to the client.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a tracing request of a cross-border commodity sent by a client, wherein the tracing request comprises commodity unique identification information of the cross-border commodity, and the commodity unique identification information is used for uniquely identifying the cross-border commodity;
inquiring whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, wherein the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
if the unique commodity identification information corresponding to the cross-border commodity exists in the preset unique identification information base, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; the commodity position information change table records position changes of a plurality of commodities;
acquiring a production node, a transportation node, a storage node and a customs node for recording the cross-border commodity from the block chain center node;
respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node;
arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table;
and if the source information is matched with the source information, sending the arranged source information to the client.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored on a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A cross-border commodity tracing method based on a block chain system is characterized in that the block chain system comprises a block chain center node and a plurality of customs nodes corresponding to the block chain center node, wherein the customs nodes comprise an origin country customs node, a route country customs node and/or a target country customs node, and the method comprises the following steps:
receiving a tracing request of a cross-border commodity sent by a client, wherein the tracing request comprises commodity unique identification information of the cross-border commodity, and the commodity unique identification information is used for uniquely identifying the cross-border commodity;
inquiring whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, wherein the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
if the unique commodity identification information corresponding to the cross-border commodity exists in the preset unique identification information base, acquiring position change information generated by the cross-border commodity according to the time sequence from a commodity position information change table; the commodity position information change table records position changes of a plurality of commodities;
acquiring a production node, a transportation node, a storage node and a customs node for recording the cross-border commodity from the block chain center node;
respectively inquiring the tracing information of the cross-border commodities recorded in the production node, the transportation node, the storage node and the customs node;
arranging the searched tracing information of the cross-border commodities according to a time sequence, and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities generated according to the time sequence and acquired from the commodity position information change table;
and if the source information is matched with the source information, sending the arranged source information to the client.
2. The method of claim 1, wherein before the obtaining of the location change information generated by the cross-border product according to the chronological order from the product location information change table, the method further comprises:
acquiring a production position, a storage position and a cross-border transportation request of a cross-border commodity, wherein the cross-border transportation request comprises cross-border transportation time and a cross-border transportation line;
determining the acquisition time interval of the cross-border commodity position information according to the cross-border transportation time and the cross-border transportation line;
and storing the production position and the storage position of the cross-border commodity and the position information of the cross-border commodity acquired according to the time interval into the commodity position information change table according to the time sequence.
3. The method of claim 2, wherein before acquiring the production node, the transportation node, the warehousing node and the customs node for recording the cross-border product in the blockchain center node, the method further comprises:
determining an origin country customs node, a route country customs node and/or a target country customs node through which a cross-border commodity passes from the cross-border transportation line;
and writing commodity information and import and export time of the cross-border commodity into the corresponding customs nodes when the origin country customs node, the approach country customs node and/or the target country customs node determine that the cross-border commodity can pass.
4. The method of claim 2, wherein before acquiring the production node, the transportation node, the warehousing node and the customs node for recording the cross-border product in the blockchain center node, the method further comprises:
and the transportation node acquires position information according to the cross-border transportation line of the cross-border commodity and preset time intervals, and stores the acquired position information into the transportation node according to a time sequence.
5. The method of claim 2, wherein before acquiring the production node, the transportation node, the warehousing node and the customs node for recording the cross-border product in the blockchain center node, the method further comprises:
the production node records commodity information of cross-border commodities sent by a producer into the production node, wherein the commodity information comprises production time and commodity information of the cross-border commodities;
the warehousing nodes record warehousing information of cross-border commodities sent by a producer into the warehousing nodes, wherein the warehousing information comprises warehousing time and commodity information of the cross-border commodities.
6. The method for cross-border tracing of commodities based on blockchain system according to any one of claims 3 to 5, wherein said method further comprises:
and correspondingly storing the video pictures of the cross-border commodities shot by the node camera equipment into the production node, the transportation node, the storage node and/or the customs node, wherein the node camera equipment correspondingly shoots the video pictures of the cross-border commodities of a specific node.
7. A cross-border product tracing apparatus based on a blockchain system, wherein the blockchain system includes a blockchain center node and a plurality of customs nodes corresponding to the blockchain center node, and the customs nodes include an originating customs node, an approach customs node and/or a target customs node, the apparatus comprising:
the system comprises a receiving module, a tracing module and a display module, wherein the receiving module is used for receiving a tracing request of cross-border commodities sent by a client, the tracing request comprises commodity unique identification information of the cross-border commodities, and the commodity unique identification information is used for uniquely identifying the cross-border commodities;
the query module is used for querying whether the unique identification information of the commodity corresponding to the cross-border commodity exists from a preset unique identification information base, and the preset unique identification information base stores the unique identification information corresponding to the real commodity set by a manufacturer;
the acquisition module is used for acquiring position change information generated by the cross-border commodities according to the time sequence from a commodity position information change table if the unique commodity identification information corresponding to the cross-border commodities exists in the preset unique identification information base; the commodity position information change table records position changes of a plurality of commodities;
the acquisition module is further used for acquiring and recording production nodes, transportation nodes, storage nodes and customs nodes of the cross-border commodities from the block chain center node;
the query module is further configured to query the traceability information of the cross-border commodity recorded in the production node, the transportation node, the storage node, and the customs node, respectively;
the detection module is used for arranging the searched tracing information of the cross-border commodities according to the time sequence and detecting whether the tracing information arranged according to the time sequence is matched with the position change information of the cross-border commodities, which is acquired from the commodity position information change table and generated according to the time sequence;
and the sending module is used for sending the arranged traceability information to the client if the traceability information is matched with the client.
8. The trans-border commodity source tracing device based on blockchain system of claim 7, wherein said device further comprises:
the acquisition module is further used for acquiring the production position, the storage position and the cross-border transportation request of the cross-border commodity, wherein the cross-border transportation request comprises cross-border transportation time and a cross-border transportation line;
the determining module is used for determining the acquisition time interval of the cross-border commodity position information according to the cross-border transportation time and the cross-border transportation line;
and the storage module is used for storing the production position and the storage position of the cross-border commodity and the position information of the cross-border commodity acquired according to the time interval into the commodity position information change table according to the time sequence.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the cross-border product tracing method based on the blockchain system according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the method for cross-border tracing of commodities based on blockchain system according to any one of claims 1 to 6.
CN202010298061.6A 2020-04-12 2020-04-12 Cross-border commodity tracing method and device based on block chain system and hardware equipment Pending CN111489177A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010298061.6A CN111489177A (en) 2020-04-12 2020-04-12 Cross-border commodity tracing method and device based on block chain system and hardware equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010298061.6A CN111489177A (en) 2020-04-12 2020-04-12 Cross-border commodity tracing method and device based on block chain system and hardware equipment

Publications (1)

Publication Number Publication Date
CN111489177A true CN111489177A (en) 2020-08-04

Family

ID=71794897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010298061.6A Pending CN111489177A (en) 2020-04-12 2020-04-12 Cross-border commodity tracing method and device based on block chain system and hardware equipment

Country Status (1)

Country Link
CN (1) CN111489177A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793093A (en) * 2021-08-24 2021-12-14 深圳市前海云途物流有限公司 Track query display method and device and readable storage medium
CN116402521A (en) * 2023-06-08 2023-07-07 江苏中创供应链服务有限公司 Cross-border supply chain commodity tracing method and system based on blockchain

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113793093A (en) * 2021-08-24 2021-12-14 深圳市前海云途物流有限公司 Track query display method and device and readable storage medium
CN113793093B (en) * 2021-08-24 2024-04-26 深圳市前海云途物流有限公司 Track query display method, track query display equipment and readable storage medium
CN116402521A (en) * 2023-06-08 2023-07-07 江苏中创供应链服务有限公司 Cross-border supply chain commodity tracing method and system based on blockchain
CN116402521B (en) * 2023-06-08 2023-09-01 江苏中创供应链服务有限公司 Cross-border supply chain commodity tracing method and system based on blockchain

Similar Documents

Publication Publication Date Title
CN106897348B (en) Data storage method, data verification method, data source tracing method and equipment
CN106779737B (en) Product traceability verification method based on block chain technology
US20210049617A1 (en) Blockchain-based data verification method, apparatus, and electronic device
CN112491551A (en) Data verification method and device based on block chain and electronic equipment
KR101841180B1 (en) Place-based image organization
CN111489177A (en) Cross-border commodity tracing method and device based on block chain system and hardware equipment
KR20220023752A (en) Methods and systems for tracking and tracing supply chains by use of barcodes and peer review
CN113760958B (en) Information query method, device, equipment and storage medium
US9817605B2 (en) Systems and methods of storing data associated with content of a data storage device
CN106648977A (en) Recovery method and device of Android system file
CN117215932A (en) Display method and device for code increment coverage information and electronic equipment
CN115660540B (en) Cargo tracking method, cargo tracking device, computer equipment and storage medium
CN110032341B (en) Module data processing method and device, electronic equipment and medium
US9443221B2 (en) Physical location tagging via image recognition
CN105912451A (en) Detection method and device of luster file system
US11138184B2 (en) Maintaining data integrity and referential data integrity within an enterprise data registry
CN113191122B (en) Service-oriented construction project electronic file and electronic file four-way detection method
CN115203697A (en) File detection method, device and equipment and readable storage medium
CN112561544A (en) Commodity anti-counterfeiting query method and device and storage medium
CN111611465B (en) Product detection system, method, device, computer equipment and storage medium
CN114629690A (en) Equipment safety baseline compliance detection method and device and computer equipment
KR20220005819A (en) A product management device capable of checking real-time product information
CN109271369B (en) Logistics data analysis method and device
CN104050052A (en) Error correction code seeding
CN114928475B (en) Industrial equipment authentication method, equipment and medium based on identification analysis

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