Multi-terminal query system
1. The multi-terminal query system comprises a terminal query system and a block chain system, and is characterized in that: the terminal inquiry system comprises a verification module, an input module, a login module, a search module, an output module and a display module, wherein the input module comprises a camera and an input unit, the input module inputs information according to a two-dimensional code scanned by the camera or a commodity identification code input from the input unit, the output module outputs commodity circulation information to the display module, the display module displays the sequenced commodity circulation information on the terminal inquiry system, and the block chain system sequentially comprises a data layer, a communication layer, a sequencing layer and an interface application layer from bottom to top; wherein:
the data layer comprises a block chain library, the block chain library comprises a state database and a chain type block structure, the state database is used for storing real data of commodity circulation information, and the chain type block structure is formed by chain type storage structures formed by mutually connecting blocks;
the communication layer is used for realizing network communication service with the terminal inquiry system;
the sorting layer is used for sorting the submitted commodity circulation information, packaging the commodity circulation information into blocks after sorting is completed, and sending the blocks to the main nodes of all organizations in the block chain;
the interface application layer comprises a Fabric SDK interface and an API interface, the Fabric SDK interface encapsulates an API for operating the database, the data adding, deleting, modifying and checking are realized by calling the API interface, after the terminal is logged in to a query system, the search module calls the API interface in the interface application layer and searches the required commodity information based on the commodity identification code.
2. The multi-terminal polling system of claim 1, wherein: the blockchain system is connected with a third-party system, the third-party system is a member forming the whole blockchain transaction process and comprises a raw material system, a production system, a distribution system and a retail system, and the third-party system and the blockchain system realize data sharing through the communication layer.
3. The multi-terminal polling system of claim 2, wherein: the data layer on the blockchain system comprises commodity circulation information which can be normally interpreted only by relying on the blockchain system and commodity circulation information which can be interpreted without the blockchain system.
4. The multi-terminal polling system of claim 3, wherein: the chain block structure in the block chain system comprises a chain code unit, and the chain code unit is used as an intelligent contract among all members of the block chain and plays a role in restricting the members.
5. The multi-terminal polling system of claim 4, wherein: the verification module is used for scanning the code to verify the identity information of the user.
6. The multi-terminal polling system of claim 5, wherein: the commodity circulation information comprises commodity production information, packaging information, detection information, production place information and manufacturer information.
7. The multi-terminal polling system of claim 6, wherein: the blockchain system is published on a public network.
8. The multi-terminal polling system of claim 7, wherein: the terminal system is a mobile phone, a computer or a tablet.
Background
The commodity information needs to be inquired in daily life, the traditional commodity data inquiry is to inquire through a data center or a server of a manufacturer, then the data center is sealed or the server is paralyzed, and the data center cannot be accessed, the whole system is controlled by the manufacturer, the authenticity of the information is questioned, and even the authenticity of the information can be possibly fake, so the reliability and the authenticity of the information are questioned; meanwhile, the maintenance of the system is dispersed, so that manufacturers maintain the system for a long time, the maintenance cost of the society is high on the whole, and safe, reliable and comprehensive information exchange among commodity circulation participants cannot be performed.
Disclosure of Invention
The present invention is directed to a multi-terminal query system to solve the problems set forth in the background art.
In order to achieve the purpose, the invention provides the following technical scheme:
the multi-terminal query system comprises a terminal query system and a block chain system, wherein the terminal query system comprises a verification module, an input module, a login module, a search module, an output module and a display module, the input module comprises a camera and an input unit, the input module carries out information input according to a two-dimensional code scanned by the camera or a commodity identification code input from the input unit, the output module outputs commodity circulation information to the display module, the display module displays the sequenced commodity circulation information on the terminal query system, and the block chain system sequentially comprises a data layer, a communication layer, a sequencing layer and an interface application layer from bottom to top; wherein:
the data layer comprises a block chain library, the block chain library comprises a state database and a chain type block structure, the state database is used for storing real data of commodity circulation information, and the chain type block structure is formed by chain type storage structures formed by mutually connecting blocks;
the communication layer is used for realizing network communication service with the terminal inquiry system;
the sorting layer is used for sorting the submitted commodity circulation information, packaging the commodity circulation information into blocks after sorting is completed, and sending the blocks to the main nodes of all organizations in the block chain;
the interface application layer comprises a Fabric SDK interface and an API interface, the Fabric SDK interface encapsulates an API for operating the database, the data adding, deleting, modifying and checking are realized by calling the API interface, after the terminal is logged in to a query system, the search module calls the API interface in the interface application layer and searches the required commodity information based on the commodity identification code.
The blockchain system is connected with a third-party system, the third-party system is a member forming the whole blockchain transaction process and comprises a raw material system, a production system, a distribution system and a retail system, and the third-party system and the blockchain system realize data sharing through the communication layer.
The data layer on the blockchain system comprises commodity circulation information which can be normally interpreted only by relying on the blockchain system and commodity circulation information which can be interpreted without the blockchain system.
The chain block structure in the block chain system comprises a chain code unit, and the chain code unit is used as an intelligent contract among all members of the block chain and plays a role in restricting the members.
The verification module is used for scanning the code to verify the identity information of the user.
The commodity circulation information comprises commodity production information, packaging information, detection information, production place information and manufacturer information.
The blockchain system is published on a public network.
The terminal system is a mobile phone, a computer or a tablet.
Compared with the prior art, the invention has the beneficial effects that: the traditional commodity data inquiry is carried out by data returned by a data server of a manufacturer, once the data server is paralyzed, the data server cannot be accessed, the commodity data inquiry system and the block chain system are matched for inquiry, the block chain system has the characteristics of decentralization, openness and transparency, development consensus and safety and reliability in the block chain technology, and can ensure that the commodity inquiry information is not falsified, a data layer in the block chain system is used for storing commodity circulation information, a communication layer in the block chain system is used for conveniently establishing network communication with the terminal inquiry system, a sequencing layer in the block chain system is used for sequencing the information stored in the commodities, an interface application layer in the block chain system is used for conveniently carrying out incremental modification and check on the data, when the commodity circulation information inquiry is carried out, firstly, the data inquiry is logged into the terminal inquiry system through a login module, and a verification module is used for verifying user information, then starting a camera to scan the two-dimension code of the commodity, or inputting a commodity identification code from an input module of the terminal system, calling a Fabric SDK interface and an API interface in the block chain system by a searching module, inquiring, outputting commodity circulation information by an output module, and displaying through a display module; the supervision mechanism and the consumer can inquire commodity circulation information through the terminal inquiry system, once the product is in counterfeit, the consumer complains the supervision mechanism, and the supervision mechanism can quickly know the source of the counterfeit problem through the inquiry from the retailer to the primary level of the raw material supplier, so that the consumer can purchase the product more securely.
Drawings
FIG. 1 is a block diagram of a terminal query system architecture of a multi-terminal query system;
FIG. 2 is a block chain structure block diagram of a multi-terminal query system.
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-2, the present invention provides a technical solution: the multi-terminal query system comprises a terminal query system and a block chain system, wherein the terminal query system comprises a verification module, an input module, a login module, a search module, an output module and a display module, the input module comprises a camera and an input unit, the input module carries out information input according to a two-dimensional code scanned by the camera or a commodity identification code input from the input unit, the output module outputs commodity circulation information to the display module, the display module displays the sequenced commodity circulation information on the terminal query system, and the block chain system sequentially comprises a data layer, a communication layer, a sequencing layer and an interface application layer from bottom to top; wherein:
the data layer comprises a block chain library, the block chain library comprises a state database and a chain type block structure, the state database is used for storing real data of commodity circulation information, and the chain type block structure is formed by chain type storage structures formed by mutually connecting blocks;
the communication layer is used for realizing network communication service with the terminal inquiry system;
the sorting layer is used for sorting the submitted commodity circulation information, packaging the commodity circulation information into blocks after sorting is completed, and sending the blocks to the main nodes of all organizations in the block chain;
the interface application layer comprises a Fabric SDK interface and an API interface, the Fabric SDK interface encapsulates an API for operating the database, the data adding, deleting, modifying and checking are realized by calling the API interface, after the terminal is logged in to a query system, the search module calls the API interface in the interface application layer and searches the required commodity information based on the commodity identification code.
The traditional commodity data inquiry is carried out by data returned by a data server of a manufacturer, once the data server is paralyzed, the data server cannot be accessed, the commodity data inquiry system and the block chain system are matched for inquiry, the block chain system has the characteristics of decentralization, openness and transparency, development consensus and safety and reliability in the block chain technology, and can ensure that the commodity inquiry information is not falsified, a data layer in the block chain system is used for storing commodity circulation information, a communication layer in the block chain system is used for conveniently establishing network communication with the terminal inquiry system, a sequencing layer in the block chain system is used for sequencing the information stored in the commodities, an interface application layer in the block chain system is used for conveniently carrying out incremental modification and check on the data, when the commodity circulation information inquiry is carried out, firstly, the data inquiry is logged into the terminal inquiry system through a login module, and a verification module is used for verifying user information, then starting a camera to scan the two-dimension code of the commodity, or inputting a commodity identification code from an input module of the terminal system, calling a Fabric SDK interface and an API interface in the block chain system by a search module, inquiring, outputting commodity circulation information by an output module, and displaying through a display module.
The blockchain system is connected with a third-party system, the third-party system is a member forming the whole blockchain transaction process and comprises a raw material system, a production system, a distribution system and a retail system, and the third-party system and the blockchain system realize data sharing through the communication layer.
Raw materials are provided for a raw material by a raw material supplier, then information of the provided materials is uploaded to a blockchain system, the raw material supplier produces products, product information is also uploaded to the blockchain system, the products produced by the manufacturer are placed to each distributor, the distributors obtain the products and then distribute the products to retailers in batches, the distributed product information is uploaded to the blockchain system, the retailers sell the products to consumers, the product information purchased by each consumer is stored in the blockchain system, therefore, the products are collected into the blockchain system from raw material supply and production, a monitoring organization and the consumers can inquire commodity circulation information through a terminal inquiry system, once the products are counterfeit, the consumers complain the monitoring organization, and the monitoring organization can quickly know the source of the counterfeit goods through the inquiry of the retailers to the primary level of the raw material supplier, the consumer can purchase the product more securely.
The data layer on the blockchain system comprises commodity circulation information which can be normally interpreted only by relying on the blockchain system and commodity circulation information which can be interpreted without the blockchain system.
The chain block structure in the block chain system comprises a chain code unit, and the chain code unit is used as an intelligent contract among all members of the block chain and plays a role in restricting the members.
The verification module is used for scanning the code to verify the identity information of the user.
The commodity circulation information comprises commodity production information, packaging information, detection information, production place information and manufacturer information.
The block chain system is published on a public network, and is public on the network, so that the information is public and transparent.
The terminal system is a mobile phone, a computer or a tablet, and supports multi-terminal login for inquiry.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种ERP客户管理系统