CN111461620B - Distributed storage method and device based on block chain logistics data - Google Patents
Distributed storage method and device based on block chain logistics data Download PDFInfo
- Publication number
- CN111461620B CN111461620B CN202010276072.4A CN202010276072A CN111461620B CN 111461620 B CN111461620 B CN 111461620B CN 202010276072 A CN202010276072 A CN 202010276072A CN 111461620 B CN111461620 B CN 111461620B
- Authority
- CN
- China
- Prior art keywords
- data
- consumer
- information
- storage
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/083—Shipping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2471—Distributed queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention discloses a block-chain-based logistics data distributed storage method and device, which are used for solving the problems that the existing logistics data storage safety problem and the existing logistics data inquiry cannot remind an inquirer; the system comprises a data acquisition module, a data processing module, a data storage module, a server, a statistics module, a query module, a registration login module and a clear storage processing module; the data processing module sends the order number and the block chain number corresponding to the consumer to a server; the distributed storage is carried out on the logistics data, so that the safety of data storage is improved; the inquiry module is used for inquiring the logistics data through the mobile phone terminal by a consumer, and the inquiry module receives the logistics data and sends the logistics data to the mobile phone terminal corresponding to the consumer; by analyzing the query records of the consumers, the prompt device is convenient for reminding the logistics data of the consumers in time and is convenient for the consumers to know the logistics data in time.
Description
Technical Field
The invention relates to the technical field of logistics data storage distribution, in particular to a block-chain-based logistics data distribution storage method and device.
Background
For each large e-commerce platform, commodity distribution mainly comprises links of warehouse selection, picking, packing, sorting, shipping, distribution, signing and receiving and the like. During the commodity distribution process, each link can generate corresponding logistics information data, such as a selected delivery warehouse, a selected delivery picking time and the like; therefore, the logistics information data needs to be stored; the block chain is used for generating and comparing first data by using a distributed node consensus algorithm, ensuring the safety of data transmission and access by using a cryptography mode, generating a distributed account book which is not tamperable and not falsified, and establishing a data network which is mutually trusted;
when the prior consumer is concerned about important logistics data dynamic state, the logistics data can be checked frequently through the mobile phone terminal, however, the prior logistics data can not be used for reminding and analyzing the logistics data update according to the degree of interest of the consumer, and the consumer can know the logistics data in time through reminding.
Disclosure of Invention
The invention aims to provide a distributed storage method and device based on block chain logistics data, which are used for solving the problems of the existing logistics data storage safety and the problem that the existing logistics data inquiry cannot remind an inquirer; the data processing module sends the order information of the consumer to the selected storage equipment for storage, the storage number of the selected storage equipment is the blockchain number of the consumer, and the data processing module sends the order number and the blockchain number corresponding to the consumer to the server; the distributed storage is carried out on the logistics data, so that the safety of data storage is improved; the inquiry module is used for inquiring the logistics data through the mobile phone terminal by a consumer, and the inquiry module receives the logistics data and sends the logistics data to the mobile phone terminal corresponding to the consumer; by analyzing the query records of the consumers, the prompt of the logistics data of the consumers is facilitated, and the consumers can know the logistics data in time;
the aim of the invention can be achieved by the following technical scheme: a block chain logistics data-based distributed storage device comprises a data acquisition module, a data processing module, a data storage module, a server, a statistics module, a query module, a registration login module and a clear storage processing module;
the data acquisition module is used for acquiring logistics data and sending the logistics data to the data processing module;
the data processing module identifies the logistics data to acquire and process the mobile phone number of the consumer, and the specific processing steps are as follows:
step one: labeling the mobile phone number of the consumer as Pi, i=1, … …, n; marking consumer logistics data as Wj Pi ,j=1、2、……、7;W1 Pi Representing consumer order information, W2 Pi Representing order picking information, packing information, sorting information, shipping information, delivery information and sign-on information, in turn W3 Pi 、W4 Pi 、W5 P i、W6 Pi 、W7 Pi ;
Step two: processing the customer order information to obtain a plurality of data storage devices in the area corresponding to the customer mobile phone number, and marking the data storage devices as primary selection storage devices;
step three: setting a storage threshold value b1 corresponding to each primary storage device, and obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Using formula C P i=U Pi * b1, obtaining a stored comparison value CPi of a consumer;
step four: store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
step five: marking the storage device to be selected as Fk, k=1, … …, n; setting the residual storage space of the storage device to be selected as N Fk The method comprises the steps of carrying out a first treatment on the surface of the Calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer order information to obtain the area distribution distance, and marking the area distribution distance as D Fk ;
Step six: using the formulaObtaining a distributed storage value P of the storage equipment to be selected Fk The method comprises the steps of carrying out a first treatment on the surface of the Wherein b2, b3 and b4 are preset proportionality coefficients, M Fk Correspondingly storing the stored stream data quantity of the consumer for the storage equipment to be selected;
step seven: marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, increasing the number of stored stream data stored by the selected storage equipment by one, and sending the storage number of the selected storage equipment as the blockchain number of the customer by the data processing module, wherein the order number and the blockchain number corresponding to the customer are sent into a server by the data processing module;
step eight: processing the picking information, the packing information, the sorting information, the shipping information, the distribution information and the signing information the same as the ordering information of the consumers according to the second step to the seventh step;
the server receives the order number and the blockchain number of the consumer sent by the data processing module and then combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer; the data storage module is used for storing logistics data and comprises a plurality of data storage devices.
The registration login module is used for submitting consumer information to register through the mobile phone terminal and sending the successfully registered consumer information to the server for storage; the consumer information comprises a name, an identity card number and a mobile phone number; the logistics data comprises customer order information, picking information, packaging information, sorting information, shipping information, distribution information and signing information.
The inquiry module is used for inquiring the logistics data through the mobile phone terminal by a consumer, and the specific inquiry steps are as follows:
s1: the consumer inquires the instruction through the mobile phone terminal, the mobile phone terminal sends the inquiry instruction to the inquiry module, and the inquiry module receives the inquiry instruction and acquires the mobile phone number of the mobile phone terminal;
s2: the inquiring module sends the mobile phone number to the server, and after the server receives the inquired mobile phone number, the server acquires the order number and the data extraction chain number corresponding to the inquired mobile phone number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding blockchain number from the data storage module according to the blockchain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and if the data extraction chain number does not comprise any corresponding block chain number in the customer order information, the order picking information, the packaging information, the sorting information, the shipping information, the distribution information and the signing information, a statistical query instruction is generated and sent to the query module;
s4: when the query module receives the corresponding logistics data, the logistics data are sent to the mobile phone terminal of the consumer, and when the query module receives the statistical query instruction, the time when the query module receives the query instruction is stored as the query time of the consumer;
s5: marking the inquiry time according to time sequence, and sequentially marking the inquiry time as T 1 、T 2 、……、T m The method comprises the steps of carrying out a first treatment on the surface of the Calculating the time difference of the inquiry time; the time difference is t1=t in turn 2 -T 1 ,t2=T 3 -T 2 ,tm-1=T m -T m-1 And so on;
s6: using the formulaAcquiring an order reminding value TX of the consumer; wherein b5 and b6 are both preset scaling factors; when the order reminding value is larger than the set threshold value, generating a push reminding instruction corresponding to the consumer and sending the push reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors a query action corresponding to the consumer, and sends the logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and the query module receives the logistics data and sends the logistics data to a mobile phone terminal corresponding to the consumer.
The statistics module is used for collecting the position, the storage number and the residual storage space of the data storage device in the data storage module and sending the positions, the storage number and the residual storage space to the server.
The server also comprises a consumer computing module, wherein the consumer computing module is used for computing the block distribution value of the consumer, and the specific computing steps are as follows:
step one: obtaining the total number of orders of the consumers, which is marked as G Pi The method comprises the steps of carrying out a first treatment on the surface of the Marking the total number of consumer's purge as H Pi ;
Step two: using formula U Pi =G Pi *b8+H Pi * b7 obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Wherein b7 and b8 are preset proportionality coefficients;
step three: the consumer computing module sends the block distribution value corresponding to the consumer to the server for storage.
The clearing processing module is used for clearing the logistics data by consumers, and the specific clearing steps are as follows:
step one: the consumer sends a clearing instruction and a corresponding order number to a clearing processing module through the mobile phone terminal, and the clearing processing module extracts a chain number from data stored in a server through the order number after receiving the order number corresponding to the clearing instruction;
step two: when the data extraction chain number does not comprise any corresponding blockchain number in the customer order information, the picking information, the packing information, the sorting information, the delivery information and the signing information, a failure instruction is generated, and the failure instruction is sent to a mobile phone terminal of the customer;
step three: when the data extraction chain numbers comprise all block chain numbers corresponding to customer order information, picking information, packing information, sorting information, delivery information and signing information, a clear storage instruction is generated, and the clear storage instruction and the corresponding data extraction chain numbers are sent to a server;
step four: after receiving the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the blockchain number corresponding to the data extraction chain number, and sends the clearing instruction into corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; while the total inventory of the consumer is increased by one.
The distributed storage method based on the block chain logistics data comprises the following steps:
SS1: collecting logistics data and sequentially processing the logistics data to obtain a plurality of data storage devices in areas corresponding to the mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS2: obtaining a block distribution value corresponding to the consumer; using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS3: calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer ordering information to obtain the regional distribution distance;
SS4: obtaining a distributed storage value of the storage equipment to be selected by using a formula;
SS5: marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, and sending the storage number of the selected storage equipment as the block chain number of the customer by the data processing module, wherein the order number and the block chain number corresponding to the customer are sent into a server by the data processing module;
SS6: and after receiving the order number and the blockchain number of the consumer sent by the data processing module, the server combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer.
Compared with the prior art, the invention has the beneficial effects that:
1. the data acquisition module acquires logistics data and sends the logistics data to the data processing module; the data processing module is used for identifying and acquiring the mobile phone number of the consumer and processing the logistics data, and acquiring a distributed storage value of the storage equipment to be selected by utilizing a formula; marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, and sending the storage number of the selected storage equipment as the block chain number of the customer by the data processing module, wherein the order number and the block chain number corresponding to the customer are sent into a server by the data processing module; the distributed storage is carried out on the logistics data, so that the safety of data storage is improved;
2. the inquiry module is used for inquiring the logistics data through the mobile phone terminal, the consumer inquires the command through the mobile phone terminal, the mobile phone terminal sends the inquiry command to the inquiry module, and the inquiry module receives the inquiry command and acquires the mobile phone number of the mobile phone terminal; the inquiring module sends the mobile phone number to the server, and after the server receives the inquired mobile phone number, the server acquires the order number and the data extraction chain number corresponding to the inquired mobile phone number; the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding blockchain number from the data storage module according to the blockchain number, and then sends the corresponding logistics data to the query module; when the query module receives the corresponding logistics data, the logistics data are sent to the mobile phone terminal of the consumer, and when the query module receives the statistical query instruction, the time when the query module receives the query instruction is stored as the query time of the consumer; marking the inquiry time according to the time sequence, and obtaining an order reminding value of the consumer by using a formula; when the order reminding value is larger than the set threshold value, generating a push reminding instruction corresponding to the consumer and sending the push reminding instruction to the data processing module; the data processing module receives a push reminding instruction corresponding to a consumer, monitors a query action corresponding to the consumer, and sends the logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, wherein the query module receives the logistics data and sends the logistics data to a mobile phone terminal corresponding to the consumer; by analyzing the query records of the consumers, the prompt device is convenient for reminding the logistics data of the consumers in time and is convenient for the consumers to know the logistics data in time.
Drawings
The present invention is further described below with reference to the accompanying drawings for the convenience of understanding by those skilled in the art.
FIG. 1 is a schematic block diagram of a distributed storage device based on blockchain logistics data according to the present invention.
Detailed Description
The technical solutions of the present invention will be clearly and completely described in connection with the embodiments, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a block-chain-based logistics data distributed storage device includes a data acquisition module, a data processing module, a data storage module, a server, a statistics module, a query module, a registration login module and a clear storage processing module;
the data acquisition module is used for acquiring logistics data and sending the logistics data to the data processing module;
the data processing module identifies the logistics data to acquire and process the mobile phone number of the consumer, and the specific processing steps are as follows:
step one: labeling the mobile phone number of the consumer as Pi, i=1, … …, n; marking consumer logistics data as Wj Pi ,j=1、2、……、7;W1 Pi Representing consumer order information, W2 Pi Representing order picking information, packing information, sorting information, shipping information, delivery information and sign-on information, in turn W3 Pi 、W4 Pi 、W5 Pi 、W6 Pi 、W7 Pi ;
Step two: processing the customer order information to obtain a plurality of data storage devices in the area corresponding to the customer mobile phone number, and marking the data storage devices as primary selection storage devices;
step three: setting a storage threshold value b1 corresponding to each primary storage device, and obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi ;
Step four: store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
step five: marking the storage device to be selected as Fk, k=1, … …, n; setting the residual storage space of the storage device to be selected as N Fk The method comprises the steps of carrying out a first treatment on the surface of the Calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer order information to obtain the area distribution distance, and marking the area distribution distance as D Fk ;
Step six: using the formulaObtaining a distributed storage value P of the storage equipment to be selected Fk The method comprises the steps of carrying out a first treatment on the surface of the Wherein b2, b3 and b4 are all pre-determinedSetting a proportionality coefficient, M Fk Correspondingly storing the stored stream data quantity of the consumer for the storage equipment to be selected;
step seven: marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, increasing the number of stored stream data stored by the selected storage equipment by one, and sending the storage number of the selected storage equipment as the blockchain number of the customer by the data processing module, wherein the order number and the blockchain number corresponding to the customer are sent into a server by the data processing module;
step eight: processing the picking information, the packing information, the sorting information, the shipping information, the distribution information and the signing information the same as the ordering information of the consumers according to the second step to the seventh step; the customer order information comprises a mobile phone number, a receiving address, an order number, order time and the like;
the server receives the order number and the blockchain number of the consumer sent by the data processing module and then combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer; the data storage module is used for storing logistics data and comprises a plurality of data storage devices.
The registration login module is used for submitting consumer information to register through the mobile phone terminal and sending the successfully registered consumer information to the server for storage; the consumer information comprises a name, an identity card number and a mobile phone number; the logistics data includes customer order information, pick information, package information, sort information, shipping information, delivery information, and pick information.
The inquiry module is used for inquiring the logistics data through the mobile phone terminal by a consumer, and the specific inquiry steps are as follows:
s1: the consumer inquires the instruction through the mobile phone terminal, the mobile phone terminal sends the inquiry instruction to the inquiry module, and the inquiry module receives the inquiry instruction and acquires the mobile phone number of the mobile phone terminal;
s2: the inquiring module sends the mobile phone number to the server, and after the server receives the inquired mobile phone number, the server acquires the order number and the data extraction chain number corresponding to the inquired mobile phone number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding blockchain number from the data storage module according to the blockchain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and if the data extraction chain number does not comprise any corresponding block chain number in the customer order information, the order picking information, the packaging information, the sorting information, the shipping information, the distribution information and the signing information, a statistical query instruction is generated and sent to the query module;
s4: when the query module receives the corresponding logistics data, the logistics data are sent to the mobile phone terminal of the consumer, and when the query module receives the statistical query instruction, the time when the query module receives the query instruction is stored as the query time of the consumer;
s5: marking the inquiry time according to time sequence, and sequentially marking the inquiry time as T 1 、T 2 、……、T m The method comprises the steps of carrying out a first treatment on the surface of the Calculating the time difference of the inquiry time; the time difference is t1=t in turn 2 -T 1 ,t2=T 3 -T 2 ,tm-1=T m -T m-1 And so on;
s6: using the formulaAcquiring an order reminding value TX of the consumer; wherein b5 and b6 are both preset scaling factors; when the order reminding value is larger than the set threshold value, generating a push reminding instruction corresponding to the consumer and sending the push reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors a query action corresponding to the consumer, and sends the logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and the query module receives the logistics data and sends the logistics data to a mobile phone terminal corresponding to the consumer.
The statistics module is used for collecting the position, the storage number and the residual storage space of the data storage device in the data storage module and sending the positions, the storage number and the residual storage space to the server.
The server also comprises a consumer computing module, wherein the consumer computing module is used for computing the block distribution value of the consumer, and the specific computing steps are as follows:
step one: obtaining the total number of orders of the consumers, which is marked as G Pi The method comprises the steps of carrying out a first treatment on the surface of the Marking the total number of consumer's purge as H Pi ;
Step two: using formula U Pi =G Pi *b8+H Pi * b7 obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Wherein b7 and b8 are preset proportionality coefficients;
step three: the consumer computing module sends the block distribution value corresponding to the consumer to the server for storage.
The clearing processing module is used for clearing the logistics data by consumers, and the specific clearing steps are as follows:
step one: the consumer sends a clearing instruction and a corresponding order number to a clearing processing module through the mobile phone terminal, and the clearing processing module extracts a chain number from data stored in a server through the order number after receiving the order number corresponding to the clearing instruction;
step two: when the data extraction chain number does not comprise any corresponding blockchain number in the customer order information, the picking information, the packing information, the sorting information, the delivery information and the signing information, a failure instruction is generated, and the failure instruction is sent to a mobile phone terminal of the customer;
step three: when the data extraction chain numbers comprise all block chain numbers corresponding to customer order information, picking information, packing information, sorting information, delivery information and signing information, a clear storage instruction is generated, and the clear storage instruction and the corresponding data extraction chain numbers are sent to a server;
step four: after receiving the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the blockchain number corresponding to the data extraction chain number, and sends the clearing instruction into corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; while the total inventory of the consumer is increased by one.
The distributed storage method based on the block chain logistics data comprises the following steps:
SS1: collecting logistics data and sequentially processing the logistics data to obtain a plurality of data storage devices in areas corresponding to the mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS2: obtaining a block distribution value corresponding to the consumer; using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS3: calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer ordering information to obtain the regional distribution distance;
SS4: using the formulaObtaining a distributed storage value of the storage equipment to be selected;
SS5: marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, and sending the storage number of the selected storage equipment as the block chain number of the customer by the data processing module, wherein the order number and the block chain number corresponding to the customer are sent into a server by the data processing module;
SS6: and after receiving the order number and the blockchain number of the consumer sent by the data processing module, the server combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer.
The working principle of the invention is as follows: the data acquisition module acquires logistics data and sends the logistics data to the data processing module; the data processing module is used for identifying the logistics data to obtain and process the mobile phone number of the consumer to obtain the mobile phone number of the consumerThe code corresponds to a plurality of data storage devices in the region, and the data storage devices are marked as primary selection storage devices; taking a block distribution value corresponding to the consumer; using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected; calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer ordering information to obtain the regional distribution distance; using the formulaObtaining a distributed storage value of the storage equipment to be selected; marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, and sending the storage number of the selected storage equipment as the block chain number of the customer by the data processing module, wherein the order number and the block chain number corresponding to the customer are sent into a server by the data processing module; the distributed storage is carried out on the logistics data, so that the safety of data storage is improved; the inquiry module is used for inquiring the logistics data through the mobile phone terminal, the consumer inquires the command through the mobile phone terminal, the mobile phone terminal sends the inquiry command to the inquiry module, and the inquiry module receives the inquiry command and acquires the mobile phone number of the mobile phone terminal; the inquiring module sends the mobile phone number to the server, and after the server receives the inquired mobile phone number, the server acquires the order number and the data extraction chain number corresponding to the inquired mobile phone number; the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding blockchain number from the data storage module according to the blockchain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and if the data extraction chain number does not comprise any corresponding block chain number in the customer order information, the order picking information, the packaging information, the sorting information, the shipping information, the distribution information and the signing information, a statistical query instruction is generated and sent to the query module; when the query module receivesThe corresponding logistics data are sent to the mobile phone terminal of the consumer, and when the query module receives the statistical query instruction, the time when the query module receives the query instruction is stored as the query time of the consumer; marking the inquiry time according to the time sequence, and utilizing a formulaAcquiring an order reminding value TX of the consumer; when the order reminding value is larger than the set threshold value, generating a push reminding instruction corresponding to the consumer and sending the push reminding instruction to the data processing module; the data processing module receives a push reminding instruction corresponding to a consumer, monitors a query action corresponding to the consumer, and sends the logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, wherein the query module receives the logistics data and sends the logistics data to a mobile phone terminal corresponding to the consumer; by analyzing the query records of the consumers, the prompt device is convenient for reminding the logistics data of the consumers in time and is convenient for the consumers to know the logistics data in time.
The preferred embodiments of the invention disclosed above are intended only to assist in the explanation of the invention. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise form disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best understand and utilize the invention. The invention is limited only by the claims and the full scope and equivalents thereof.
Claims (7)
1. The block chain logistics data-based distributed storage device is characterized by comprising a data acquisition module, a data processing module, a data storage module, a server, a statistics module, a query module, a registration login module and a clear storage processing module;
the data acquisition module is used for acquiring logistics data and sending the logistics data to the data processing module;
the data processing module identifies the logistics data to acquire and process the mobile phone number of the consumer, and the specific processing steps are as follows:
step one: labeling the mobile phone number of the consumer as Pi, i=1, … …, n; labeling consumer logistics data as WjPi, j=1, 2, … …, 7; w1 Pi Representing consumer order information, W2 Pi Representing order picking information, packing information, sorting information, shipping information, delivery information and sign-on information, in turn W3 Pi 、W4 Pi 、W5 Pi 、W6 Pi 、W7 Pi ;
Step two: processing the customer order information to obtain a plurality of data storage devices in the area corresponding to the customer mobile phone number, and marking the data storage devices as primary selection storage devices;
step three: the clearing processing module is used for clearing the logistics data by consumers, and the specific clearing steps are as follows:
step a: the consumer sends a clearing instruction and a corresponding order number to a clearing processing module through the mobile phone terminal, and the clearing processing module extracts a chain number from data stored in a server through the order number after receiving the order number corresponding to the clearing instruction;
step b: when the data extraction chain number does not comprise any corresponding blockchain number in the customer order information, the picking information, the packing information, the sorting information, the delivery information and the signing information, a failure instruction is generated, and the failure instruction is sent to a mobile phone terminal of the customer;
step c: when the data extraction chain numbers comprise all block chain numbers corresponding to customer order information, picking information, packing information, sorting information, delivery information and signing information, a clear storage instruction is generated, and the clear storage instruction and the corresponding data extraction chain numbers are sent to a server;
step d: after receiving the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the blockchain number corresponding to the data extraction chain number, and sends the clearing instruction into corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; at the same time, the total number of the consumer to be cleared is increased by one;
setting a storage threshold value b1 corresponding to each primary storage device, wherein the server also comprises a consumer computing module, and the consumer computing module is used for computing the block distribution value of the consumer, and comprises the following specific computing steps:
step 1: obtaining the total number of orders of the consumers, which is marked as G Pi The method comprises the steps of carrying out a first treatment on the surface of the Marking the total number of consumer's purge as H Pi ;
Step 2: using formula U Pi =G Pi *b8+H Pi * b7 obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Wherein b7 and b8 are preset proportionality coefficients;
step 3: the consumer computing module sends the block distribution value corresponding to the consumer to the server for storage;
obtaining a block distribution value UPi corresponding to the consumer; using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi ;
Step four: store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
step five: marking the storage device to be selected as Fk, k=1, … …, n; setting the residual storage space of the storage device to be selected as N Fk The method comprises the steps of carrying out a first treatment on the surface of the Calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer order information to obtain the area distribution distance, and marking the area distribution distance as D Fk ;
Step six: using the formulaObtaining a distributed storage value P of the storage equipment to be selected Fk The method comprises the steps of carrying out a first treatment on the surface of the Wherein b2, b3 and b4 are preset proportionality coefficients, M Fk Correspondingly storing the stored stream data quantity of the consumer for the storage equipment to be selected;
step seven: marking the to-be-selected storage device with the largest distributed storage value as a selected storage device, sending the customer ordering information into the selected storage device by a data processing module for storage, increasing the number of stored stream data stored by the selected storage device by one, storing the storage number of the selected storage device as the blockchain number of the customer, and sending the order number and the blockchain number corresponding to the customer into a server by the data processing module;
step eight: processing the picking information, the packing information, the sorting information, the shipping information, the distribution information and the signing information the same as the ordering information of the consumers according to the second step to the seventh step;
the server receives the order number and the blockchain number of the consumer sent by the data processing module and then combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer; the data storage module is used for storing logistics data and comprises a plurality of data storage devices.
2. The distributed storage device based on the blockchain logistics data according to claim 1, wherein the registration login module is used for a consumer to submit consumer information to register through a mobile phone terminal and send the consumer information which is successfully registered to a server for storage; the consumer information comprises a name, an identity card number and a mobile phone number; the logistics data comprises customer order information, picking information, packaging information, sorting information, shipping information, distribution information and signing information.
3. The distributed storage device based on blockchain logistics data according to claim 1, wherein the query module is configured to query logistics data through a mobile phone terminal by a consumer, and the specific query steps are as follows:
s1: the consumer inquires the instruction through the mobile phone terminal, the mobile phone terminal sends the inquiry instruction to the inquiry module, and the inquiry module receives the inquiry instruction and acquires the mobile phone number of the mobile phone terminal;
s2: the inquiring module sends the mobile phone number to the server, and after the server receives the inquired mobile phone number, the server acquires the order number and the data extraction chain number corresponding to the inquired mobile phone number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding blockchain number from the data storage module according to the blockchain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and if the data extraction chain number does not comprise any corresponding block chain number in the customer order information, the order picking information, the packaging information, the sorting information, the shipping information, the distribution information and the signing information, a statistical query instruction is generated and sent to the query module;
s4: when the query module receives the corresponding logistics data, the logistics data are sent to the mobile phone terminal of the consumer, and when the query module receives the statistical query instruction, the time when the query module receives the query instruction is stored as the query time of the consumer;
s5: marking the inquiry time according to time sequence, and sequentially marking the inquiry time as T 1 、T 2 、……、T m The method comprises the steps of carrying out a first treatment on the surface of the Calculating the time difference of the inquiry time; the time difference is t in turn 1 =T 2 -T 1 ,t2=T 3 -T 2 ,t m-1 =T m -T m-1 And so on;
s6: using the formulaAcquiring an order reminding value TX of the consumer; wherein b5 and b6 are both preset scaling factors; when the order reminding value is larger than the set threshold value, generating a push reminding instruction corresponding to the consumer and sending the push reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors a query action corresponding to the consumer, and sends the logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and the query module receives the logistics data and sends the logistics data to a mobile phone terminal corresponding to the consumer.
4. The blockchain-based logistics data distributed storage apparatus of claim 1, wherein the statistics module is configured to collect and send the location, storage number, and remaining storage space of the data storage device in the data storage module to the server.
5. The distributed storage device based on blockchain logistics data of claim 1, further comprising a consumer computing module in the server, wherein the consumer computing module is configured to compute a block distribution value of a consumer, and the specific computing steps are as follows:
step one: obtaining the total number of orders of the consumers, which is marked as G Pi The method comprises the steps of carrying out a first treatment on the surface of the Marking the total number of consumer's purge as H Pi ;
Step two: using formula U Pi =G Pi *b8+H Pi * b7 obtaining a block distribution value U corresponding to the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Wherein b7 and b8 are preset proportionality coefficients;
step three: the consumer computing module sends the block distribution value corresponding to the consumer to the server for storage.
6. The distributed storage device based on blockchain logistics data of claim 1, wherein the clearing processing module is configured to clear the logistics data by a consumer, and the specific clearing steps are as follows:
step one: the consumer sends a clearing instruction and a corresponding order number to a clearing processing module through the mobile phone terminal, and the clearing processing module extracts a chain number from data stored in a server through the order number after receiving the order number corresponding to the clearing instruction;
step two: when the data extraction chain number does not comprise any corresponding blockchain number in the customer order information, the picking information, the packing information, the sorting information, the delivery information and the signing information, a failure instruction is generated, and the failure instruction is sent to a mobile phone terminal of the customer;
step three: when the data extraction chain numbers comprise all block chain numbers corresponding to customer order information, picking information, packing information, sorting information, delivery information and signing information, a clear storage instruction is generated, and the clear storage instruction and the corresponding data extraction chain numbers are sent to a server;
step four: after receiving the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the blockchain number corresponding to the data extraction chain number, and sends the clearing instruction into corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; while the total inventory of the consumer is increased by one.
7. A distributed storage method based on block chain logistics data, which is characterized in that the distributed storage device based on block chain logistics data according to claim 1 is adopted, and the method comprises the following steps:
SS1: collecting logistics data and sequentially processing the logistics data to obtain a plurality of data storage devices in areas corresponding to the mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS2: obtaining a block distribution value corresponding to the consumer; using formula C Pi =U Pi * b1 obtaining the stored comparison value C of the consumer Pi The method comprises the steps of carrying out a first treatment on the surface of the Store comparison value C for consumer Pi Performing difference solving with a storage threshold value b1 of the primary storage device, taking an absolute value, and taking the primary storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS3: calculating the distance difference between the position of the storage device to be selected and the receiving address in the customer ordering information to obtain the regional distribution distance;
SS4: using the formulaObtaining a distributed storage value of the storage equipment to be selected;
SS5: marking the storage equipment to be selected with the largest distributed storage value as selected storage equipment, sending the customer ordering information into the selected storage equipment by a data processing module for storage, and sending the storage number of the selected storage equipment as the block chain number of the customer by the data processing module, wherein the order number and the block chain number corresponding to the customer are sent into a server by the data processing module;
SS6: and after receiving the order number and the blockchain number of the consumer sent by the data processing module, the server combines the blockchain numbers according to the time sequence to obtain the data extraction chain number of the consumer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010276072.4A CN111461620B (en) | 2020-04-09 | 2020-04-09 | Distributed storage method and device based on block chain logistics data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010276072.4A CN111461620B (en) | 2020-04-09 | 2020-04-09 | Distributed storage method and device based on block chain logistics data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111461620A CN111461620A (en) | 2020-07-28 |
CN111461620B true CN111461620B (en) | 2023-08-01 |
Family
ID=71683704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010276072.4A Active CN111461620B (en) | 2020-04-09 | 2020-04-09 | Distributed storage method and device based on block chain logistics data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111461620B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112015810B (en) * | 2020-08-04 | 2024-03-19 | 珍岛信息技术(上海)股份有限公司 | Internet-based distributed database information query management system |
CN112187834A (en) * | 2020-11-30 | 2021-01-05 | 江苏荣泽信息科技股份有限公司 | Block chain network node service system based on safe storage |
CN112862407B (en) * | 2021-03-05 | 2021-10-22 | 上海爱用科技股份有限公司 | Block chain-based electronic commerce safety management system |
CN113034161B (en) * | 2021-03-30 | 2022-08-23 | 深圳市沃客非凡科技有限公司 | Commodity logistics tracing information acquisition system based on block chain |
CN115563389B (en) * | 2022-10-19 | 2023-05-12 | 四川泸州港务有限责任公司 | Port logistics information pushing method and system based on big data |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002007905A (en) * | 2000-06-16 | 2002-01-11 | Catalog City Japan Kk | Method and device for physical distribution optimization |
WO2018072556A1 (en) * | 2016-10-18 | 2018-04-26 | 无锡知谷网络科技有限公司 | Logistics control method for goods, and electronic device |
CN109271101A (en) * | 2018-08-30 | 2019-01-25 | 杜广香 | It is a kind of for determining the method and system of the data balancing of big data storage system |
CN109343801A (en) * | 2018-10-23 | 2019-02-15 | 深圳前海微众银行股份有限公司 | Date storage method, equipment and computer readable storage medium |
CN109523349A (en) * | 2018-10-28 | 2019-03-26 | 北京工业大学 | A kind of agricultural product electric business platform traced to the source based on block chain and implementation method |
CN109961255A (en) * | 2019-02-18 | 2019-07-02 | 深圳大学 | A kind of Logistics Support system and method for combination block chain |
CN110288288A (en) * | 2019-05-23 | 2019-09-27 | 中国平安财产保险股份有限公司 | Intelligent order processing method, apparatus, computer equipment and storage medium |
KR20190115525A (en) * | 2018-03-20 | 2019-10-14 | 주식회사 워너버스이노베이션 | System and method for managing logistics using blockchain |
CN110598940A (en) * | 2019-09-18 | 2019-12-20 | 深圳宇德金昌贸易有限公司 | Logistics order analysis and prediction system based on Internet of things trade |
CN110609869A (en) * | 2019-09-10 | 2019-12-24 | 连连银通电子支付有限公司 | Block chain-based data storage method, related equipment and storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779300B (en) * | 2012-07-05 | 2017-09-19 | 华为技术有限公司 | Information processing method, server and physical distribution terminal |
WO2015127400A1 (en) * | 2014-02-22 | 2015-08-27 | Mena360 Dwc-Llc | System and method for logistics network utilizing mobile device location information |
CN106485438A (en) * | 2015-09-02 | 2017-03-08 | 阿里巴巴集团控股有限公司 | stream line information processing method and device |
CN106548309A (en) * | 2015-09-18 | 2017-03-29 | 阿里巴巴集团控股有限公司 | Shipping Information processing method and processing device |
CN105892953B (en) * | 2016-04-25 | 2019-07-26 | 深圳市永兴元科技股份有限公司 | Distributed data processing method and device |
CN107689025B (en) * | 2016-08-04 | 2021-08-06 | 菜鸟智能物流控股有限公司 | Method and device for logistics data processing, logistics information pushing and displaying |
CN107358372A (en) * | 2017-07-25 | 2017-11-17 | 杭州纳戒科技有限公司 | Box for material circulation distribution method, device and electronic equipment |
US11037095B2 (en) * | 2017-09-11 | 2021-06-15 | Accenture Global Solutions Limited | Distributed ledger technology for freight system |
TWI659370B (en) * | 2018-01-04 | 2019-05-11 | 沅聖科技股份有限公司 | Logistic data transmitting system and method thereof |
CN113095749A (en) * | 2018-05-11 | 2021-07-09 | 创新先进技术有限公司 | Logistics information transmission method, system and device based on block chain |
CN109165896A (en) * | 2018-08-14 | 2019-01-08 | 合肥科塑信息科技有限公司 | A kind of Intelligent logistics delivery system based on big data |
-
2020
- 2020-04-09 CN CN202010276072.4A patent/CN111461620B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002007905A (en) * | 2000-06-16 | 2002-01-11 | Catalog City Japan Kk | Method and device for physical distribution optimization |
WO2018072556A1 (en) * | 2016-10-18 | 2018-04-26 | 无锡知谷网络科技有限公司 | Logistics control method for goods, and electronic device |
KR20190115525A (en) * | 2018-03-20 | 2019-10-14 | 주식회사 워너버스이노베이션 | System and method for managing logistics using blockchain |
CN109271101A (en) * | 2018-08-30 | 2019-01-25 | 杜广香 | It is a kind of for determining the method and system of the data balancing of big data storage system |
CN109343801A (en) * | 2018-10-23 | 2019-02-15 | 深圳前海微众银行股份有限公司 | Date storage method, equipment and computer readable storage medium |
CN109523349A (en) * | 2018-10-28 | 2019-03-26 | 北京工业大学 | A kind of agricultural product electric business platform traced to the source based on block chain and implementation method |
CN109961255A (en) * | 2019-02-18 | 2019-07-02 | 深圳大学 | A kind of Logistics Support system and method for combination block chain |
CN110288288A (en) * | 2019-05-23 | 2019-09-27 | 中国平安财产保险股份有限公司 | Intelligent order processing method, apparatus, computer equipment and storage medium |
CN110609869A (en) * | 2019-09-10 | 2019-12-24 | 连连银通电子支付有限公司 | Block chain-based data storage method, related equipment and storage medium |
CN110598940A (en) * | 2019-09-18 | 2019-12-20 | 深圳宇德金昌贸易有限公司 | Logistics order analysis and prediction system based on Internet of things trade |
Also Published As
Publication number | Publication date |
---|---|
CN111461620A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111461620B (en) | Distributed storage method and device based on block chain logistics data | |
AU2003257152A8 (en) | System, method and computer program product for guaranteeing electronic transactions | |
CN109345417B (en) | Online assessment method and terminal equipment for business personnel based on identity authentication | |
JP2009529174A (en) | Code analysis apparatus, code information providing apparatus, and method using the same | |
CN112258074B (en) | E-commerce commodity storage logistics intelligent scheduling method based on big data analysis | |
CN110781250B (en) | Big data-based BI decision management system and method | |
CN111724114A (en) | E-commerce commodity distribution logistics intelligent management system based on big data | |
CN106156130A (en) | A kind of data processing method and device | |
CN110196920B (en) | Text data processing method and device, storage medium and electronic device | |
CN113706249B (en) | Data recommendation method and device, electronic equipment and storage medium | |
CN110751490A (en) | Fraud identification method and device, electronic equipment and computer-readable storage medium | |
KR101968543B1 (en) | Video data management apparatus for tracking the damage history of the shipment and operating method thereof | |
CN107993037A (en) | A kind of system of automatic tracing express mail and the method for tracing based on the system | |
US7251622B2 (en) | System and method for searching for information on inventory with virtual warehouses | |
CN108683879A (en) | A kind of feature tag identification based on intelligent video camera head and quickly check system | |
CN112581061A (en) | Three-dimensional warehouse management method and device based on artificial intelligence | |
CN108230156A (en) | It insures information processing method and device | |
CN115619320A (en) | Product external packing informatization error-preventing system | |
CN115034704A (en) | Logistics tracking method, device, equipment and storage medium | |
CN111260291B (en) | Unmanned logistics distribution system and distribution method based on blockchain technology | |
CN113706207A (en) | Order transaction rate analysis method, device, equipment and medium based on semantic analysis | |
CN116670702A (en) | Information management method and information management program | |
CN109150996A (en) | A kind of block chain method of reseptance and system | |
CN105224879A (en) | A kind of picture encapsulation, picture de-encapsulation method and device | |
WO2003098859A3 (en) | Automated import of data |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230705 Address after: Room 1908, Floor 19-20, Zhengye Pavilion, Zhengye Plaza, No. 7, Jinlian Road, Longhua District, Haikou City, Hainan Province, 570000 Applicant after: Haikou Huihai Pharmaceutical Co.,Ltd. Address before: No. 201, No. 1, Second Lane, Shuiwei Second District, Dongfang Community, Songgang Street, Bao'an District, Shenzhen City, Guangdong Province, 518000 Applicant before: Zhongzhen blockchain (Shenzhen) Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |