CN111461620A - Block chain-based distributed storage method and device for logistics data - Google Patents

Block chain-based distributed storage method and device for logistics data Download PDF

Info

Publication number
CN111461620A
CN111461620A CN202010276072.4A CN202010276072A CN111461620A CN 111461620 A CN111461620 A CN 111461620A CN 202010276072 A CN202010276072 A CN 202010276072A CN 111461620 A CN111461620 A CN 111461620A
Authority
CN
China
Prior art keywords
consumer
data
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.)
Granted
Application number
CN202010276072.4A
Other languages
Chinese (zh)
Other versions
CN111461620B (en
Inventor
梁武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haikou Huihai Pharmaceutical Co ltd
Original Assignee
Zhongzhen Blockchain Shenzhen 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 Zhongzhen Blockchain Shenzhen Co ltd filed Critical Zhongzhen Blockchain Shenzhen Co ltd
Priority to CN202010276072.4A priority Critical patent/CN111461620B/en
Publication of CN111461620A publication Critical patent/CN111461620A/en
Application granted granted Critical
Publication of CN111461620B publication Critical patent/CN111461620B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a distributed storage method and device for logistics data based on a block chain, which are used for solving the problems that the existing logistics data storage safety problem and the existing logistics data query cannot remind a querier; the system comprises a data acquisition module, a data processing module, a data storage module, a server, a statistical module, an inquiry module, a registration and login module and a clearing and processing module; the data processing module sends the order number and the block chain number corresponding to the consumer to a server; the logistics data are stored in a distributed manner, so that the safety of data storage is improved; the query module is used for querying the logistics data through the mobile phone terminal by the consumer, and the query 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 logistics data of the consumers can be reminded in time, and the consumers can know the logistics data in time.

Description

Block chain-based distributed storage method and device for logistics data
Technical Field
The invention relates to the technical field of distributed logistics data storage, in particular to a distributed logistics data storage method and device based on a block chain.
Background
For each large e-commerce platform, the commodity distribution is mainly divided into the links of warehouse selection, picking, packaging, sorting, delivery, distribution, receipt and the like. In the process of commodity distribution, each link can generate corresponding logistics information data, such as a selected delivery warehouse, picking time and the like; therefore, logistics information data need to be stored; the block chain is used for generating and updating first data by using a distributed node consensus algorithm, ensuring the safety of data transmission and access by using a cryptology mode, generating a non-falsifiable and non-counterfeitable distributed account book and establishing a mutually trusted data network;
when the existing consumer cares about the dynamic state of important logistics data, the logistics data can be checked through a mobile phone terminal frequently, however, the existing logistics data cannot remind and analyze the updating of the logistics data according to the carefulness degree 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 a distributed storage device for logistics data based on a block chain, which are used for solving the problems that the existing logistics data storage safety problem and the existing logistics data query cannot remind a querier; the data processing module sends order placing information of a consumer to a selected storage device for storage, the storage number of the selected storage device is the block chain number of the consumer, and the data processing module sends the order number and the block chain number corresponding to the consumer to a server; the logistics data are stored in a distributed manner, so that the safety of data storage is improved; the query module is used for querying the logistics data through the mobile phone terminal by the consumer, and the query 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 logistics data of the consumers can be reminded in time, and the consumers can know the logistics data in time;
the purpose of the invention can be realized by the following technical scheme: a distributed storage device for logistics data based on a block chain comprises a data acquisition module, a data processing module, a data storage module, a server, a statistic module, a query module, a registration and login module and a clearing and 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 obtain the mobile phone number of the consumer and processes the logistics data, and the specific processing steps are as follows:
the method comprises the following steps: marking the mobile phone number of a consumer as Pi, i-1, … … and n; marking the logistics data of the consumers as WjPi,j=1、2、……、7;W1PiIndicating customer order information, W2PiThe information indicating the picking information, the packaging information, the sorting information, the delivery information and the receipt information are W3 in sequencePi、W4Pi、W5Pi、W6Pi、W7Pi;
Step two: processing order information of a consumer, acquiring a plurality of data storage devices in an area corresponding to a mobile phone number of the consumer, and marking the data storage devices as primary selection storage devices;
step three: setting a storage threshold value corresponding to each primary selection storage device, and acquiring a block distribution value U corresponding to the consumerPi(ii) a Using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi
Step four: comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection storage device with the absolute value smaller than a preset value as a storage device to be selected;
step five: marking the storage devices to be selected as Fk, wherein k is 1, … … and n; setting the residual storage space of the storage device to be selected as NFk(ii) a Calculating the distance difference between the position of the storage device to be selected and the receiving address in the order information of the consumer to obtain the area distribution distance, and marking the area distribution distance as DFk
Step six: using formulas
Figure BDA0002444836090000021
Obtaining and obtaining distributed storage value P of to-be-selected storage deviceFk(ii) a Wherein, b2, b3 and b4 are allFor presetting the proportionality coefficient, MFkThe stored logistics data quantity of the consumer is correspondingly stored in the storage device to be selected;
step seven: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, increasing the quantity of stored logistics data of the consumer by one by the selected storage device, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
step eight: processing the picking information, the packaging information, the sorting information, the delivery information and the signing information through the second step to the seventh step;
the server receives the order number and the block chain number of the consumer sent by the data processing module and then combines the block chain numbers according to the time sequence to obtain a data extraction chain number of the consumer; the data storage module is used for storing the logistics data and comprises a plurality of data storage devices.
The registration login module is used for submitting consumer information for registration through a mobile phone terminal by a consumer and sending the successfully registered consumer information to the server for storage; the consumer confidence comprises a name, an identification card number and a mobile phone number; the logistics data comprises order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of consumers.
The query module is used for querying logistics data through a mobile phone terminal by a consumer, and comprises the following specific query steps:
s1: a consumer inquires a command through a mobile phone terminal and sends the inquiry command to an inquiry module, and the inquiry module receives the inquiry command and acquires a mobile phone number of the mobile phone terminal;
s2: the inquiry 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 number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding block chain number from the data storage module according to the block chain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and generates a statistical query instruction and sends the statistical query instruction to the query module when the data extraction chain number does not include any block chain number of order placing information, goods picking information, packaging information, sorting information, delivery information and sign-in information of the consumer;
s4: when the query module receives the corresponding logistics data, the logistics data is sent to the mobile phone terminal of the consumer, and after the query module receives the statistical query instruction, the time when the query module receives the query instruction is the query time of the consumer;
s5: marking the query time according to the time sequence, wherein the sequence is T1、T2、……、Tm(ii) a Carrying out time difference on the query moment; in order of t1=T2-T1,t2=T3-T2,tm-1=Tm-Tm-1And so on in turn;
s6: using formulas
Figure BDA0002444836090000041
Obtaining an order reminding value TX of the consumer; wherein b5 and b6 are both preset proportionality coefficients; when the order reminding value is larger than the set threshold value, generating a pushing reminding instruction corresponding to the consumer and sending the pushing reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors the corresponding push reminding instruction of the consumer, sends logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and sends the logistics data to the mobile phone terminal corresponding to the consumer after the query module receives the logistics data. The statistical module is used for collecting the position, the storage number and the residual storage space of the data storage equipment in the data storage module and sending the position, the storage number and the residual storage space to the server.
The server also comprises a consumer calculation module, the consumer calculation module is used for calculating the block distribution value of the consumer, and the specific calculation steps are as follows:
the method comprises the following steps: obtaining the total number of the order of the consumer and recording as GPi(ii) a Marking the inventory total of the consumer as HPi
Step two: using formula UPi=GPi*b8+HPiB7 obtaining block distribution value U corresponding to consumerPi(ii) a Wherein b7 and b8 are both preset proportionality coefficients;
step three: and the consumer calculation module sends the block distribution value corresponding to the consumer to the server for storage.
The cleaning and storing processing module is used for cleaning the logistics data by a consumer, and comprises the following specific cleaning steps:
the method comprises the following steps: the consumer sends a clearing instruction and a corresponding order number to the clearing processing module through the mobile phone terminal, and after the clearing processing module receives the order number corresponding to the clearing instruction, the clearing processing module obtains a data extraction chain number stored in the server through the order number;
step two: when the data extraction chain number does not include any block chain number in order placing information, goods picking information, packaging information, sorting information, delivery information, distribution information and signing information of the consumer, generating a failure instruction, and sending the failure instruction to a mobile phone terminal of the consumer;
step three: when the data extraction chain number comprises all block chain numbers corresponding to order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of a consumer, generating a clearing instruction, and sending the clearing instruction and the corresponding data extraction chain number into a server;
step four: after the server receives the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the block chain number corresponding to the data extraction chain number, and sends the clearing instruction to the corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; and the total inventory count of the consumer is increased by one.
The distributed storage method based on the blockchain logistics data comprises the following steps:
SS 1: collecting logistics data and processing the logistics data in sequence to obtain a plurality of data storage devices in areas corresponding to mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS 2: acquiring a block distribution value corresponding to the consumer; using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi(ii) a Comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS 3: calculating the distance difference between the position of the storage device to be selected and a receiving address in order placing information of a consumer to obtain a regional distribution distance;
SS 4: using formulas
Figure BDA0002444836090000051
Acquiring a distribution storage value of the storage device to be selected;
SS 5: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
SS 6: and the server receives the order number and the block chain number of the consumer sent by the data processing module and combines the block chain 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 identifies the logistics data to obtain and process a mobile phone number of a consumer, and obtains a distribution storage value of the storage device to be selected by using a formula; marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module; the logistics data are stored in a distributed manner, so that the safety of data storage is improved;
2. the query module is used for querying logistics data through the mobile phone terminal by a consumer, querying an instruction through the mobile phone terminal by the consumer and sending the query instruction to the query module, and the query module receives the query instruction and acquires a mobile phone number of the mobile phone terminal; the inquiry 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 number; the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding block chain number from the data storage module according to the block chain number, and then sends the corresponding logistics data to the query module; when the query module receives the corresponding logistics data, the logistics data is sent to the mobile phone terminal of the consumer, and after the query module receives the statistical query instruction, the time when the query module receives the query instruction is the query time of the consumer; marking the query moment according to the time sequence, and obtaining the order reminding value of the consumer by using a formula; when the order reminding value is larger than the set threshold value, generating a pushing reminding instruction corresponding to the consumer and sending the pushing reminding instruction to the data processing module; the data processing module receives a push reminding instruction corresponding to a consumer, monitors the corresponding push reminding instruction of the consumer, and when the data processing module receives logistics data corresponding to the consumer, sends the logistics data to the query module, and 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 logistics data of the consumers can be reminded in time, and the consumers can know the logistics data in time.
Drawings
In order to facilitate understanding for those skilled in the art, the present invention will be further described with reference to the accompanying drawings.
Fig. 1 is a schematic block diagram of a distributed storage apparatus based on blockchain streaming data according to the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood 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, a distributed storage device for logistics data based on a blockchain includes a data acquisition module, a data processing module, a data storage module, a server, a statistics module, an inquiry module, a registration and login module, and a clearing and storing 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 obtain the mobile phone number of the consumer and processes the logistics data, and the specific processing steps are as follows:
the method comprises the following steps: marking the mobile phone number of a consumer as Pi, i-1, … … and n; marking the logistics data of the consumers as WjPi,j=1、2、……、7;W1PiIndicating customer order information, W2PiThe information indicating the picking information, the packaging information, the sorting information, the delivery information and the receipt information are W3 in sequencePi、W4Pi、W5Pi、W6Pi、W7Pi;
Step two: processing order information of a consumer, acquiring a plurality of data storage devices in an area corresponding to a mobile phone number of the consumer, and marking the data storage devices as primary selection storage devices;
step three: setting a storage threshold value corresponding to each primary selection storage device, and acquiring a block distribution value U corresponding to the consumerPi(ii) a Using formula CPi=UPiB1 obtaining consumersIs stored with a comparison value CPi
Step four: comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection storage device with the absolute value smaller than a preset value as a storage device to be selected;
step five: marking the storage devices to be selected as Fk, wherein k is 1, … … and n; setting the residual storage space of the storage device to be selected as NFk(ii) a Calculating the distance difference between the position of the storage device to be selected and the receiving address in the order information of the consumer to obtain the area distribution distance, and marking the area distribution distance as DFk
Step six: using formulas
Figure BDA0002444836090000081
Obtaining and obtaining distributed storage value P of to-be-selected storage deviceFk(ii) a Wherein b2, b3 and b4 are all preset proportionality coefficients, MFkThe stored logistics data quantity of the consumer is correspondingly stored in the storage device to be selected;
step seven: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, increasing the quantity of stored logistics data of the consumer by one by the selected storage device, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
step eight: processing the picking information, the packaging information, the sorting information, the delivery information and the signing information through the second step to the seventh step; the order information of the consumer comprises a mobile phone number, a receiving address, an order number, order placing time and the like;
the server receives the order number and the block chain number of the consumer sent by the data processing module and then combines the block chain numbers according to the time sequence to obtain a data extraction chain number of the consumer; the data storage module is used for storing the logistics data and comprises a plurality of data storage devices.
The registration login module is used for submitting consumer information for registration through a mobile phone terminal by a consumer and sending the successfully registered consumer information to the server for storage; the consumer confidence comprises a name, an identification card number and a mobile phone number; the logistics data comprises order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of consumers.
The query module is used for querying the logistics data through the mobile phone terminal by the consumer, and comprises the following specific query steps:
s1: a consumer inquires a command through a mobile phone terminal and sends the inquiry command to an inquiry module, and the inquiry module receives the inquiry command and acquires a mobile phone number of the mobile phone terminal;
s2: the inquiry 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 number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding block chain number from the data storage module according to the block chain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and generates a statistical query instruction and sends the statistical query instruction to the query module when the data extraction chain number does not include any block chain number of order placing information, goods picking information, packaging information, sorting information, delivery information and sign-in information of the consumer;
s4: when the query module receives the corresponding logistics data, the logistics data is sent to the mobile phone terminal of the consumer, and after the query module receives the statistical query instruction, the time when the query module receives the query instruction is the query time of the consumer;
s5: marking the query time according to the time sequence, wherein the sequence is T1、T2、……、Tm(ii) a Carrying out time difference on the query moment; in order of t1=T2-T1,t2=T3-T2,tm-1=Tm-Tm-1In the order ofPushing;
s6: using formulas
Figure BDA0002444836090000101
Obtaining an order reminding value TX of the consumer; wherein b5 and b6 are both preset proportionality coefficients; when the order reminding value is larger than the set threshold value, generating a pushing reminding instruction corresponding to the consumer and sending the pushing reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors the corresponding push reminding instruction of the consumer, sends logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and sends the logistics data to the mobile phone terminal corresponding to the consumer after the query module receives the logistics data.
The statistical module is used for collecting the position, the storage number and the residual storage space of the data storage equipment in the data storage module and sending the position, the storage number and the residual storage space to the server.
The server also comprises a consumer calculation module, the consumer calculation module is used for calculating the block distribution value of the consumer, and the specific calculation steps are as follows:
the method comprises the following steps: obtaining the total number of the order of the consumer and recording as GPi(ii) a Marking the inventory total of the consumer as HPi
Step two: using formula UPi=GPi*b8+HPiB7 obtaining block distribution value U corresponding to consumerPi(ii) a Wherein b7 and b8 are both preset proportionality coefficients;
step three: and the consumer calculation module sends the block distribution value corresponding to the consumer to the server for storage.
The cleaning and storing processing module is used for cleaning the logistics data by a consumer, and comprises the following specific cleaning steps:
the method comprises the following steps: the consumer sends a clearing instruction and a corresponding order number to the clearing processing module through the mobile phone terminal, and after the clearing processing module receives the order number corresponding to the clearing instruction, the clearing processing module obtains a data extraction chain number stored in the server through the order number;
step two: when the data extraction chain number does not include any block chain number in order placing information, goods picking information, packaging information, sorting information, delivery information, distribution information and signing information of the consumer, generating a failure instruction, and sending the failure instruction to a mobile phone terminal of the consumer;
step three: when the data extraction chain number comprises all block chain numbers corresponding to order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of a consumer, generating a clearing instruction, and sending the clearing instruction and the corresponding data extraction chain number into a server;
step four: after the server receives the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the block chain number corresponding to the data extraction chain number, and sends the clearing instruction to the corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; and the total inventory count of the consumer is increased by one.
The distributed storage method based on the blockchain logistics data comprises the following steps:
SS 1: collecting logistics data and processing the logistics data in sequence to obtain a plurality of data storage devices in areas corresponding to mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS 2: acquiring a block distribution value corresponding to the consumer; using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi(ii) a Comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS 3: calculating the distance difference between the position of the storage device to be selected and a receiving address in order placing information of a consumer to obtain a regional distribution distance;
SS 4: using formulas
Figure BDA0002444836090000111
Obtaining the distribution of the storage devices to be selectedStoring a value;
SS 5: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
SS 6: and the server receives the order number and the block chain number of the consumer sent by the data processing module and combines the block chain 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 identifies the logistics data to obtain and process a mobile phone number of a consumer, obtains a plurality of data storage devices in an area corresponding to the mobile phone number of the consumer, and marks the data storage devices as primary selection storage devices; taking the block distribution value corresponding to the consumer; using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi(ii) a Comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection 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 a receiving address in order placing information of a consumer to obtain a regional distribution distance; using formulas
Figure BDA0002444836090000121
Acquiring a distribution storage value of the storage device to be selected; marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module; the logistics data are stored in a distributed manner, so that the safety of data storage is improved; the inquiry module is used for inquiring logistics by a consumer through a mobile phone terminalThe consumer inquires a command through the mobile phone terminal and 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 inquiry 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 number; the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding block chain number from the data storage module according to the block chain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and generates a statistical query instruction and sends the statistical query instruction to the query module when the data extraction chain number does not include any block chain number of order placing information, goods picking information, packaging information, sorting information, delivery information and sign-in information of the consumer; when the query module receives the corresponding logistics data, the logistics data is sent to the mobile phone terminal of the consumer, and after the query module receives the statistical query instruction, the time when the query module receives the query instruction is the query time of the consumer; marking the query time according to the time sequence, and utilizing a formula
Figure BDA0002444836090000122
Obtaining an order reminding value TX of the consumer; when the order reminding value is larger than the set threshold value, generating a pushing reminding instruction corresponding to the consumer and sending the pushing reminding instruction to the data processing module; the data processing module receives a push reminding instruction corresponding to a consumer, monitors the corresponding push reminding instruction of the consumer, and when the data processing module receives logistics data corresponding to the consumer, sends the logistics data to the query module, and 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 logistics data of the consumers can be reminded in time, and the consumers can know the logistics data in time.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise forms 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 utilize the invention. The invention is limited only by the claims and their full scope and equivalents.

Claims (7)

1. A distributed storage device of logistics data based on a block chain is characterized by comprising a data acquisition module, a data processing module, a data storage module, a server, a statistic module, a query module, a registration and login module and a clearing and 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 obtain the mobile phone number of the consumer and processes the logistics data, and the specific processing steps are as follows:
the method comprises the following steps: marking the mobile phone number of a consumer as Pi, i-1, … … and n; marking the logistics data of the consumers as WjPi,j=1、2、……、7;W1PiIndicating customer order information, W2PiThe information indicating the picking information, the packaging information, the sorting information, the delivery information and the receipt information are W3 in sequencePi、W4Pi、W5Pi、W6Pi、W7Pi
Step two: processing order information of a consumer, acquiring a plurality of data storage devices in an area corresponding to a mobile phone number of the consumer, and marking the data storage devices as primary selection storage devices;
step three: setting a storage threshold value corresponding to each primary selection storage device, and acquiring a block distribution value U corresponding to the consumerPi(ii) a Using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi
Step four: comparing the stored values of consumers CPiThe difference is calculated with the storage threshold value of the primary selection storage equipment and the absolute value is takenSetting the primary selection storage equipment with the absolute value smaller than the preset value as storage equipment to be selected;
step five: marking the storage devices to be selected as Fk, wherein k is 1, … … and n; setting the residual storage space of the storage device to be selected as NFk(ii) a Calculating the distance difference between the position of the storage device to be selected and the receiving address in the order information of the consumer to obtain the area distribution distance, and marking the area distribution distance as DFk
Step six: using formulas
Figure FDA0002444836080000011
Obtaining and obtaining distributed storage value P of to-be-selected storage deviceFk(ii) a Wherein b2, b3 and b4 are all preset proportionality coefficients, MFkThe stored logistics data quantity of the consumer is correspondingly stored in the storage device to be selected;
step seven: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, increasing the quantity of stored logistics data of the consumer by one by the selected storage device, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
step eight: processing the picking information, the packaging information, the sorting information, the delivery information and the signing information through the second step to the seventh step;
the server receives the order number and the block chain number of the consumer sent by the data processing module and then combines the block chain numbers according to the time sequence to obtain a data extraction chain number of the consumer; the data storage module is used for storing the logistics data and comprises a plurality of data storage devices.
2. A distributed storage apparatus for logistics data based on blockchain as claimed in claim 1, wherein the registration login module is configured to submit consumer information through a mobile phone terminal for registration and send the consumer information that is successfully registered to the server for storage; the consumer confidence comprises a name, an identification card number and a mobile phone number; the logistics data comprises order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of consumers.
3. The distributed storage device for logistics data based on blockchain as claimed in claim 1, wherein the query module is configured to query the logistics data through a mobile phone terminal by a consumer, and the specific query steps are as follows:
s1: a consumer inquires a command through a mobile phone terminal and sends the inquiry command to an inquiry module, and the inquiry module receives the inquiry command and acquires a mobile phone number of the mobile phone terminal;
s2: the inquiry 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 number;
s3: the server sequentially acquires the logistics data corresponding to the order number stored by the corresponding block chain number from the data storage module according to the block chain number, and then sends the corresponding logistics data to the query module; meanwhile, the server judges the data extraction chain number, and generates a statistical query instruction and sends the statistical query instruction to the query module when the data extraction chain number does not include any block chain number of order placing information, goods picking information, packaging information, sorting information, delivery information and sign-in information of the consumer;
s4: when the query module receives the corresponding logistics data, the logistics data is sent to the mobile phone terminal of the consumer, and after the query module receives the statistical query instruction, the time when the query module receives the query instruction is the query time of the consumer;
s5: marking the query time according to the time sequence, wherein the sequence is T1、T2、……、Tm(ii) a Carrying out time difference on the query moment; in order of t1=T2-T1,t2=T3-T2,tm-1=Tm-Tm-1And so on in turn;
s6: using formulas
Figure FDA0002444836080000031
Obtaining an order reminding value TX of the consumer; wherein b5 and b6 are both preset proportionality coefficients; when the order reminding value is larger than the set threshold value, generating a pushing reminding instruction corresponding to the consumer and sending the pushing reminding instruction to the data processing module;
the data processing module receives a push reminding instruction corresponding to a consumer, monitors the corresponding push reminding instruction of the consumer, sends logistics data to the query module when the data processing module receives the logistics data corresponding to the consumer, and sends the logistics data to the mobile phone terminal corresponding to the consumer after the query module receives the logistics data.
4. The distributed storage apparatus for blockchain-based logistics data according to 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. A distributed storage apparatus for logistics data based on blockchain as claimed in claim 1, wherein the server further comprises a consumer calculation module, the consumer calculation module is configured to calculate a blockchain distribution value of a consumer, and the specific calculation steps are as follows:
the method comprises the following steps: obtaining the total number of the order of the consumer and recording as GPi(ii) a Marking the inventory total of the consumer as HPi
Step two: using formula UPi=GPi*b8+HPiB7 obtaining block distribution value U corresponding to consumerPi(ii) a Wherein b7 and b8 are both preset proportionality coefficients;
step three: and the consumer calculation module sends the block distribution value corresponding to the consumer to the server for storage.
6. The distributed storage device for logistics data based on blockchain as claimed in claim 1, wherein the cleaning processing module is used for a consumer to clean logistics data, and the specific cleaning steps are as follows:
the method comprises the following steps: the consumer sends a clearing instruction and a corresponding order number to the clearing processing module through the mobile phone terminal, and after the clearing processing module receives the order number corresponding to the clearing instruction, the clearing processing module obtains a data extraction chain number stored in the server through the order number;
step two: when the data extraction chain number does not include any block chain number in order placing information, goods picking information, packaging information, sorting information, delivery information, distribution information and signing information of the consumer, generating a failure instruction, and sending the failure instruction to a mobile phone terminal of the consumer;
step three: when the data extraction chain number comprises all block chain numbers corresponding to order placing information, goods picking information, packaging information, sorting information, delivery information and signing information of a consumer, generating a clearing instruction, and sending the clearing instruction and the corresponding data extraction chain number into a server;
step four: after the server receives the clearing instruction and the data extraction chain number, the server generates a clearing instruction of the block chain number corresponding to the data extraction chain number, and sends the clearing instruction to the corresponding data storage equipment, and the data storage equipment receives the clearing instruction and deletes the logistics data corresponding to the clearing instruction; and the total inventory count of the consumer is increased by one.
7. A distributed storage apparatus for blockchain-based streaming data according to claim 1, wherein the distributed storage method for blockchain-based streaming data includes the following steps:
SS 1: collecting logistics data and processing the logistics data in sequence to obtain a plurality of data storage devices in areas corresponding to mobile phone numbers of consumers, and marking the data storage devices as primary selection storage devices;
SS 2: obtaining the block division corresponding to the consumerDistributing values; using formula CPi=UPiB1 obtaining the stored comparison value C of the consumerPi(ii) a Comparing the stored values of consumers CPiPerforming difference calculation with the storage threshold value of the primary selection storage device, taking an absolute value, and taking the primary selection storage device with the absolute value smaller than a preset value as a storage device to be selected;
SS 3: calculating the distance difference between the position of the storage device to be selected and a receiving address in order placing information of a consumer to obtain a regional distribution distance;
SS 4: using formulas
Figure FDA0002444836080000051
Acquiring a distribution storage value of the storage device to be selected;
SS 5: marking the storage device to be selected with the largest distributed storage value as a selected storage device, sending order placing information of a consumer to the selected storage device by the data processing module for storage, setting the storage number of the selected storage device as the block chain number of the consumer, and sending the order number and the block chain number corresponding to the consumer to the server by the data processing module;
SS 6: and the server receives the order number and the block chain number of the consumer sent by the data processing module and combines the block chain numbers according to the time sequence to obtain the data extraction chain number of the consumer.
CN202010276072.4A 2020-04-09 2020-04-09 Distributed storage method and device based on block chain logistics data Active CN111461620B (en)

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 true CN111461620A (en) 2020-07-28
CN111461620B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015810A (en) * 2020-08-04 2020-12-01 珍岛信息技术(上海)股份有限公司 Distributed database information inquiry management system based on internet
CN112187834A (en) * 2020-11-30 2021-01-05 江苏荣泽信息科技股份有限公司 Block chain network node service system based on safe storage
CN112862407A (en) * 2021-03-05 2021-05-28 深圳市利申和科技有限公司 Block chain-based electronic commerce safety management system
CN113034161A (en) * 2021-03-30 2021-06-25 深圳市沃客非凡科技有限公司 Commodity logistics tracing information acquisition system based on block chain
CN115563389A (en) * 2022-10-19 2023-01-03 四川泸州港务有限责任公司 Port logistics information pushing method and system based on big data

Citations (21)

* Cited by examiner, † Cited by third party
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
US20150112886A1 (en) * 2012-07-05 2015-04-23 Huawei Technologies Co., Ltd. Information Processing Method, Server, and Logistics Terminal
US20150242810A1 (en) * 2014-02-22 2015-08-27 Mena360 Dwc-Llc System and method for logistics network utilizing mobile device location information
CN105892953A (en) * 2016-04-25 2016-08-24 深圳市永兴元科技有限公司 Distributed data processing method and distributed data processing device
US20170061368A1 (en) * 2015-09-02 2017-03-02 Alibaba Group Holding Limited Method and apparatus for processing logistics path information
US20170083856A1 (en) * 2015-09-18 2017-03-23 Alibaba Group Holding Limited Method and apparatus for processing transmission information
CN107358372A (en) * 2017-07-25 2017-11-17 杭州纳戒科技有限公司 Box for material circulation distribution method, device and electronic equipment
CN107689025A (en) * 2016-08-04 2018-02-13 菜鸟智能物流控股有限公司 Method and device for logistics data processing, logistics information pushing and displaying
WO2018072556A1 (en) * 2016-10-18 2018-04-26 无锡知谷网络科技有限公司 Logistics control method for goods, and electronic device
CN108681853A (en) * 2018-05-11 2018-10-19 阿里巴巴集团控股有限公司 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
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
US20190080284A1 (en) * 2017-09-11 2019-03-14 Accenture Global Solutions Limited Distributed ledger technology for freight system
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
US20190206006A1 (en) * 2018-01-04 2019-07-04 Goldtek Technology Co., Ltd. Logistics data transmitting system and method thereof
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

Patent Citations (21)

* Cited by examiner, † Cited by third party
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
US20150112886A1 (en) * 2012-07-05 2015-04-23 Huawei Technologies Co., Ltd. Information Processing Method, Server, and Logistics Terminal
US20150242810A1 (en) * 2014-02-22 2015-08-27 Mena360 Dwc-Llc System and method for logistics network utilizing mobile device location information
US20170061368A1 (en) * 2015-09-02 2017-03-02 Alibaba Group Holding Limited Method and apparatus for processing logistics path information
US20170083856A1 (en) * 2015-09-18 2017-03-23 Alibaba Group Holding Limited Method and apparatus for processing transmission information
CN105892953A (en) * 2016-04-25 2016-08-24 深圳市永兴元科技有限公司 Distributed data processing method and distributed data processing device
CN107689025A (en) * 2016-08-04 2018-02-13 菜鸟智能物流控股有限公司 Method and device for logistics data processing, logistics information pushing and displaying
WO2018072556A1 (en) * 2016-10-18 2018-04-26 无锡知谷网络科技有限公司 Logistics control method for goods, and electronic device
CN107358372A (en) * 2017-07-25 2017-11-17 杭州纳戒科技有限公司 Box for material circulation distribution method, device and electronic equipment
US20190080284A1 (en) * 2017-09-11 2019-03-14 Accenture Global Solutions Limited Distributed ledger technology for freight system
US20190206006A1 (en) * 2018-01-04 2019-07-04 Goldtek Technology Co., Ltd. Logistics data transmitting system and method thereof
KR20190115525A (en) * 2018-03-20 2019-10-14 주식회사 워너버스이노베이션 System and method for managing logistics using blockchain
CN108681853A (en) * 2018-05-11 2018-10-19 阿里巴巴集团控股有限公司 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
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

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112015810A (en) * 2020-08-04 2020-12-01 珍岛信息技术(上海)股份有限公司 Distributed database information inquiry management system based on internet
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
CN112862407A (en) * 2021-03-05 2021-05-28 深圳市利申和科技有限公司 Block chain-based electronic commerce safety management system
CN113034161A (en) * 2021-03-30 2021-06-25 深圳市沃客非凡科技有限公司 Commodity logistics tracing information acquisition system based on block chain
CN115563389A (en) * 2022-10-19 2023-01-03 四川泸州港务有限责任公司 Port logistics information pushing method and system based on big data
CN115563389B (en) * 2022-10-19 2023-05-12 四川泸州港务有限责任公司 Port logistics information pushing method and system based on big data

Also Published As

Publication number Publication date
CN111461620B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN111461620A (en) Block chain-based distributed storage method and device for logistics data
CN109345417B (en) Online assessment method and terminal equipment for business personnel based on identity authentication
CN114819862B (en) Cold-chain logistics tracing service method, system and storage medium
WO2002084429A3 (en) Automated survey and report system
US20220156795A1 (en) Segment content optimization delivery system and method
CN101315298A (en) Electronic scale
CN110781250B (en) Big data-based BI decision management system and method
CN112015810B (en) Internet-based distributed database information query management system
TWI812871B (en) Computer-implemented system and method
CN114742476B (en) Digital purchasing supply data acquisition method and acquisition platform based on block chain
CN110910204A (en) User monitoring system based on artificial intelligence
CN113177660A (en) Driving intention prediction and processing method, device, equipment and storage medium
CN111598592A (en) Tracing certificate code anti-counterfeiting system and method thereof
CN101373534A (en) Method and system for collecting consumption information of product identification code
TWI747290B (en) Customer grouping service customized marketing method and system
CN112187834A (en) Block chain network node service system based on safe storage
CN108683879A (en) A kind of feature tag identification based on intelligent video camera head and quickly check system
CN104484357B (en) Data processing method and device and visitation frequency information processing method and device
CN116403158A (en) Method, device, equipment and storage medium for summarizing damaged short packages of express packages
CN115099707A (en) Order evaluation data evaluation system, method, electronic device and storage medium
CN108416553A (en) A kind of reverse logistic information management system
CN111260407B (en) Logistics management system and order checking and price checking method
CN113344642A (en) Method, device, electronic equipment and readable storage medium for predicting return on investment of advertisement
CN113313505B (en) Abnormality positioning method and device and computing equipment
CN115455457B (en) Chain data management method, system and storage medium based on intelligent big 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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant