CN112668058A - Logistics order processing method and device based on block chain technology - Google Patents

Logistics order processing method and device based on block chain technology Download PDF

Info

Publication number
CN112668058A
CN112668058A CN202011637318.2A CN202011637318A CN112668058A CN 112668058 A CN112668058 A CN 112668058A CN 202011637318 A CN202011637318 A CN 202011637318A CN 112668058 A CN112668058 A CN 112668058A
Authority
CN
China
Prior art keywords
data
order
processing
logistics
payment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011637318.2A
Other languages
Chinese (zh)
Inventor
戴震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Energy chain logistics technology Co.,Ltd.
Original Assignee
Chezhubang Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chezhubang Beijing Technology Co Ltd filed Critical Chezhubang Beijing Technology Co Ltd
Priority to CN202011637318.2A priority Critical patent/CN112668058A/en
Publication of CN112668058A publication Critical patent/CN112668058A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention relates to a logistics order processing method and a logistics order processing device based on a block chain technology, wherein the method comprises the following steps: receiving first processing type data and corresponding first processing data sent from a service server; when the first processing type data is the order newly added type, performing first newly added order storage certificate processing according to the first processing data; and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data. The embodiment of the invention realizes the tamper-proof protection of the logistics order data, reduces the storage pressure of the order database and improves the searching efficiency.

Description

Logistics order processing method and device based on block chain technology
Technical Field
The invention relates to the technical field of data processing, in particular to a logistics order processing method and device based on a block chain technology.
Background
The conventional logistics order processing flow is that a shipper generates logistics order data according to actual order information and stores the logistics order data into a corresponding order database, extracts the corresponding logistics order data from the order database after logistics distribution is completed, and pays a carrier according to the information of money, account, payment channel and the like. In practical application, the fact that the conventional processing method has high requirements on the storage capacity and the processing capacity of an order database along with the increase of the service volume is found, at least more than two redundant databases need to be built for ensuring zero loss and zero tampering of data, and frequent multi-period multi-database mutual backup further increases the load pressure of the whole service system, so that the service processing capacity is weakened.
Disclosure of Invention
The invention aims to provide a logistics order processing method and device based on a block chain technology, electronic equipment, a computer program product and a computer readable storage medium, aiming at the defects of the prior art, wherein a logistics certificate storage block chain is used for storing and verifying the related content of a logistics order, so that the anti-tampering protection of logistics order data is realized; secondly, only the order database is used for storing order deposit certificate identification data and payment deposit certificate identification data related to the order, so that the storage pressure of the order database is reduced, and the searching efficiency of the order database is improved; furthermore, when the payment is made, the order information is obtained from the logistics evidence storage block chain for payment, so that the reliability of the payment data is ensured, and the business processing pressure of the order database is reduced.
In order to achieve the above object, a first aspect of the embodiments of the present invention provides a method for processing a logistics order based on a block chain technology, where the method includes:
receiving first processing type data and corresponding first processing data sent from a service server;
when the first processing type data is the order newly added type, performing first newly added order storage certificate processing according to the first processing data;
and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data.
Preferably, when the first processing type data is the order addition type, the first new order deposit certificate processing is performed according to the first processing data, and the method specifically includes:
when the first processing type data is an order newly added type, taking the first processing data as first logistics order data, and carrying out logistics order data evidence storage processing on the first logistics order data on a logistics evidence storage block chain to obtain first evidence storage identification data; the first logistics order data at least comprises the first order identification data;
and according to the first order identification data and the first evidence storage identification data, performing order data record adding processing in an order database, and returning a processing result to the service server.
Preferably, when the first processing type data is an order payment type, the performing a first logistics order payment processing according to the first processing data specifically includes:
when the first processing type data is an order payment type, the first processing data is used as first logistics order signing data; the first logistics order sign-in data at least comprises second order identification data;
according to the first logistics order sign-in data, carrying out order data record query processing in the order database to obtain second certificate-storing identification data;
according to the second certificate storage identification data, carrying out certificate storage inquiry processing on the logistics order on the logistics certificate storage block chain to obtain second logistics order data;
carrying out logistics order payment processing on the second logistics order data to obtain first payment voucher data;
carrying out logistics order payment result evidence storage processing on the second logistics order data and the first payment voucher data on the logistics evidence storage block chain to obtain third evidence storage identification data;
and according to the second order identification data and the third evidence storage identification data, updating the order data record payment evidence storage identification field in the order database, and returning the processing result to the service server.
A second aspect of an embodiment of the present invention provides a device for processing a logistics order based on a block chain technology, where the device includes:
the acquisition module is used for receiving first processing type data and corresponding first processing data sent from a service server;
the order processing module is used for carrying out first newly added order storage and evidence processing according to the first processing data when the first processing type data is the order newly added type; and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data.
A third aspect of an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a transceiver;
the processor is configured to be coupled to the memory, read and execute instructions in the memory, so as to implement the method steps of the first aspect;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
A fourth aspect of embodiments of the present invention provides a computer program product comprising computer program code which, when executed by a computer, causes the computer to perform the method of the first aspect.
A fifth aspect of embodiments of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the method of the first aspect.
The embodiment of the invention provides a logistics order processing method, a logistics order processing device, electronic equipment, a computer program product and a computer readable storage medium based on a block chain technology, wherein a logistics certificate storage block chain is used for storing and verifying related contents of a logistics order, so that the anti-tampering protection of logistics order data is realized; secondly, only the order database is used for storing order deposit certificate identification data and payment deposit certificate identification data related to the order, so that the storage pressure of the order database is reduced, and the searching efficiency of the order database is improved; furthermore, when the payment is made, the order information is obtained from the logistics evidence storage block chain for payment, so that the reliability of the payment data is ensured, and the business processing pressure of the order database is reduced.
Drawings
Fig. 1 is a schematic diagram illustrating a method for processing a logistics order based on a block chain technology according to an embodiment of the present invention;
fig. 2 is a structural diagram of a logistics order management system according to an embodiment of the present invention;
fig. 3 is a block diagram of a logistics order processing apparatus based on a block chain technology according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, 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.
The embodiment of the invention provides a logistics order processing method based on a block chain technology, which is applied to a logistics order management system, wherein the logistics order management system at least comprises a business service end, a logistics order processing end, an order database, a payment service end and a logistics certificate storage block chain; when a shipper establishes a transport contract relationship with a carrier, the shipper calls a logistics order processing end at a business service end to carry out logistics order evidence storage processing on logistics order data of the shipper and the carrier; after the carrier finishes goods transportation, the shipper calls a logistics order processing end at a business service end, and logistics order payment processing is carried out according to order identification data of the shipper and the carrier; as shown in fig. 1, which is a schematic diagram of a logistics order processing method based on a block chain technology according to an embodiment of the present invention, the method mainly includes the following steps:
step 1, receiving first processing type data and corresponding first processing data sent from a service server.
Here, a system structure of the logistics order management system is shown in fig. 2 as a structure diagram of the logistics order management system provided in an embodiment of the present invention, where the logistics order management system at least includes a business server, a logistics order processing terminal, an order database, a payment server, and a logistics certificate storage block chain; the business server is connected with the logistics order processing end and used for providing a business processing interface for the delivery party; the logistics order processing terminal is respectively connected with the order database, the payment server terminal and the logistics certificate storage block chain and is used for processing logistics order certificate storage business and logistics order payment business;
when a shipper establishes a transport contract relationship with a carrier, the shipper can select a logistics order evidence storage service on a service terminal, and then the service terminal can call a logistics order processing terminal to perform logistics order evidence storage processing on logistics order data of the shipper and the carrier; after the carrier finishes goods transportation, the shipper pays for the carrier, the shipper selects a logistics order payment service on the service server, and then the service server calls the logistics order processing terminal to perform logistics order payment processing on the logistics order;
the first processing type data is used by the business server to activate the corresponding processing flow and step on the logistics order processing terminal, the first processing type data comprises an order adding type and an order payment type, when one processing type data is the order adding type, the logistics order evidence storing processing process on the logistics order processing terminal is activated, and correspondingly, the first processing data is specific logistics order data; when the processing type data is an order payment type, a logistics order payment processing process on a logistics order processing end is activated, and correspondingly, the first processing data is specific order identification data.
Step 2, identifying the first processing type data, and turning to step 3 when the first processing type data is the order adding type; and when the first processing type data is the order payment type, turning to the step 4.
Here, when the first processing type data is the order adding type, the logistics order evidence storing processing is completed by executing the step 3; when the first process type data is the order payment type, the logistics order payment process is completed by performing step 4.
Step 3, according to the first processing data, carrying out first new additional order certificate storage processing;
the method specifically comprises the following steps: step 31, when the first processing type data is the order newly added type, taking the first processing data as first logistics order data, and performing logistics order data evidence storage processing on the first logistics order data on a logistics evidence storage block chain to obtain first evidence storage identification data;
the first logistics order data comprise first order identification data, a first goods data set, first shipper data, first carrier data, first receiver data, first shipping address data, first receiving address data, first specified shipping time data, first total carrier amount data, first carrier payment channel data and first carrier account data; the first item data set comprises first item name data, first item category data, first item model data and first item quantity data; the first carrier payment channel data comprises a plurality of financial institution payment channel identification data, a plurality of third party payment channel identification data, WeChat payment channel identification data and Paibao payment channel identification data;
the method specifically comprises the following steps: 311, performing first digital summary information calculation processing on the first logistics order data according to preset first algorithm identification data to generate first summary data;
wherein, the first Algorithm identification data at least comprises a Message-Digest Algorithm (MD) 5 Algorithm identification, a Secure Hash Algorithm (SHA) -256 Algorithm identification and a secret cipher Hash Algorithm SM3 Algorithm identification;
here, the first summary data is digital summary information obtained by performing digital summary information calculation on the first logistics order data, and the digital summary information calculation is a calculation method for changing information of any length into short messages of fixed length; when the first algorithm identification data is the MD5 algorithm identification, MD5 digital summary information calculation is carried out on the first logistics order data, and the length of the obtained first summary data is fixed to 16 bytes; when the first algorithm identification data is the SHA-256 algorithm identification, SHA-256 digital summary information calculation is carried out on the first logistics order data, and the length of the obtained first summary data is fixed to be 32 bytes; when the first algorithm identification data is the SM3 algorithm identification, SM3 digital summary information calculation is carried out on the first logistics order data, and the length of the obtained first summary data is fixed to be 32 bytes;
here, in the logistics order management system shown in fig. 2, the digital summary information calculation algorithm between the logistics order processing end and the logistics certification storing blockchain is agreed, that is, if the logistics certification storing blockchain uses the MD5 algorithm as the summary digital summary information calculation algorithm, the first algorithm identification data preset on the corresponding logistics order processing end is the MD5 algorithm identification; if the logistics certification storing block chain uses an SHA-256 algorithm as a summary digital summary information calculation algorithm, the preset first algorithm identification data on the corresponding logistics order processing end is an SHA-256 algorithm identification; if the logistics certification storing block chain uses the SM3 algorithm as the calculation algorithm of the summary digital summary information, the preset first algorithm identification data on the corresponding logistics order processing end is the SM3 algorithm identification;
step 312, sending the first logistics order data and the first summary data to the logistics evidence storage block chain, for performing logistics order data evidence storage processing on the logistics evidence storage block chain; receiving first certificate storage identification data sent back from the logistics certificate storage block chain;
here, the first summary data may be used to verify the data integrity of the first logistics order data, so it needs to be stored together with the first logistics order data;
the logistics order processing end takes the first logistics order data and the first abstract data as original text data needing to be stored and certified, and calls a logistics certification storing block chain to carry out logistics order data certification storing processing on the original text data; after the logistics order data evidence storage processing is completed, the block identification data of the original text data in the logistics evidence storage block chain, namely the first evidence storage identification data, can be obtained; in the step, the logistics order processing end sends the first logistics order data and the first abstract data to the logistics certificate storage block chain for storage, so that the anti-tampering protection of the first logistics order data is realized;
step 32, according to the first order identification data and the first evidence storage identification data, newly adding order data records in an order database, and returning a processing result to the service server;
the method specifically comprises the following steps: step 321, sending the first order identification data and the first evidence storage identification data to an order database, so that the order database performs order data record adding processing; receiving first state data sent back from the order database;
here, the first order identification data is, as described above, a unique serial number corresponding to the first logistics order data, and the first evidence storage identification data is a unique block header identification corresponding to the first logistics order data; in addition, the order database is composed of order data records; each order data record is in turn composed of 3 fields: recording an order identification field, an order evidence storage identification field and a payment evidence storage identification field; recording order identification data of an order identification field for storing certain logistics order data; recording the evidence storage identification data of the order form data used for storing certain logistics order data; recording payment and evidence storage identification data of a payment and evidence storage identification field for storing certain logistics order data;
the logistics order processing end calls an order database to perform order data record adding processing, adds an order data record, and uses the first order identification data and the first evidence storage identification data as the recorded order identification field content and the recorded order evidence storage identification field content of the added order data record; in the step, only the order database is used for storing the recorded order identification data, the order evidence storage identification data and the payment evidence storage identification data which are related to the order, so that the storage pressure of the order database is reduced, and the searching efficiency of the order database is improved;
step 322, when the first status data is a new addition success, generating first processing result data; and sending back the first processing result data to the service server;
wherein, the first processing result data is the successful addition of the logistics order.
Here, this step is the last step of the logistics order deposit evidence processing described in the foregoing step 2, and when the processing result of the order data record newly adding processing obtained from the order database, that is, the first state data is a newly adding success, it indicates that the logistics deposit evidence block chain has completed the uplink deposit evidence for the first logistics order data obtained in the step 1, and the order database has also added 1 new order data record for the first logistics order data for correspondence; after the processing flow is completed, the logistics order processing end sends back the processing result data of the logistics order evidence storage processing, namely the first processing result data of the logistics order which is successfully added to the logistics order, to the data source side, namely the business server side in the step 1; after the service server side obtains the first processing result data, a delivery side which uses the service server side to input the first logistics order data displays prompt information of success of the newly added order operation.
Step 4, performing first logistics order payment processing according to the first processing data;
the method specifically comprises the following steps: step 41, taking the first processing data as the first logistics order sign-in data;
the first logistics order signing data at least comprise second order identification data;
here, the second order identification data is order identification information of the logistics order for which payment has been completed;
step 42, according to the first logistics order sign-in data, performing order data record query processing in an order database to obtain second certificate-storing identification data;
the method specifically comprises the following steps: step 421, sending the second order identification data to the order database for the order database to perform order data record query processing; receiving a first order data record which is sent back from the order database and corresponds to the second order identification data;
the first order data record comprises a first record order identification field, a first record order evidence storage identification field and a first record payment evidence storage identification field; the first record order identification field is the same as the second order identification data; the first record payment and certificate storage identification field is null;
here, the data structure of the obtained first order data record should be consistent with the data structure of the order data record of the order database; in the step, second order identification data is used as a query keyword to query corresponding order data records in an order database, so that the content of a first record order identification field of the obtained first order data record is the same as that of the second order identification data; because the current order has not finished payment and has no evidence storage identification data related to the payment result, the first record payment and evidence storage identification field should still be empty;
step 422, extracting the first recorded order certificate storage identification field as second certificate storage identification data;
the logistics order evidence storing data of the order is extracted, and can be used in the subsequent steps to obtain the logistics order data from a logistics evidence storing block chain;
step 43, according to the second certificate storage identification data, performing certificate storage inquiry processing on the logistics order on the logistics certificate storage block chain to obtain second logistics order data;
the method specifically comprises the following steps: sending second certificate storing identification data to the logistics certificate storing block chain, wherein the second certificate storing identification data is used for inquiring and processing logistics order certificate storing of the logistics certificate storing block chain; receiving second logistics order data and second abstract data sent back from the logistics certificate storage block chain;
here, the logistics order processing end uses the second evidence storage identification data as a block header identification search key to obtain corresponding block data stored on the logistics evidence storage block chain, and extracts the logistics order data and abstract data of the logistics order data from the block data.
Step 44, carrying out logistics order payment processing on the second logistics order data to obtain first payment voucher data;
the method specifically comprises the following steps: step 441, according to the first algorithm identification data, performing second digital summary information calculation processing on the second flow order data to generate third summary data;
here, the third summary data is digital summary information obtained by performing digital summary information calculation on the second flow order data, and when the first algorithm identification data is the MD5 algorithm identification, the MD5 digital summary information calculation is performed on the second flow order data, and the length of the obtained third summary data is fixed to 16 bytes; when the first algorithm identification data is the SHA-256 algorithm identification, SHA-256 digital summary information calculation is carried out on the second flow order data, and the length of the obtained third summary data is fixed to 32 bytes; when the first algorithm identification data is SM3 algorithm identification, SM3 digital summary information calculation is carried out on the second flow order data, and the length of the obtained third summary data is fixed to be 32 bytes;
step 442, when the third summary data is the same as the second summary data, sending second logistics order data to the payment server for the payment server to perform logistics order payment processing; receiving first payment result data and first payment certificate data sent back from the payment server;
here, the logistics order processing end firstly uses the third summary data to perform a third data integrity verification on the data integrity of the second logistics order data: if the third abstract data is the same as the second abstract data, the second summary data and the second abstract data are not lost in the data transmission process, and the integrity verification of the third data is successful; then, the logistics order processing end sends second logistics order data to the payment server end to activate the logistics order payment processing flow of the payment server end, wherein the second logistics order data comprises second order identification data, a second goods data set, second shipper data, second carrier data, second receiver data, second shipping address data, second receiving address data, second specified shipping time data, second specified arrival time data, second total shipper money data, second carrier payment channel data and second carrier account data; the second item data set comprises second item name data, second item category data, second item model data and second item quantity data; the second carrier payment channel data comprises a plurality of financial institution payment channel identification data, a plurality of third party payment channel identification data, WeChat payment channel identification data and Paibao payment channel identification data; after receiving the second logistics order data, the payment server extracts second carrier total amount data, second carrier payment channel data and second carrier account data from the second logistics order data, and sends the second carrier total amount data and the second carrier account data to a corresponding payment interface according to the second carrier payment channel data so as to complete payment operation on carriers;
step 45, carrying out logistics order payment result evidence storage processing on the second logistics order data and the first payment evidence data on a logistics evidence storage block chain to obtain third evidence storage identification data;
the method specifically comprises the following steps: step 451, when the first payment result data is successful, performing third digital summary information calculation processing on the second logistics order data and the first payment certificate data according to the first algorithm identification data to generate fourth summary data;
here, the fourth digest data is digital digest information obtained by performing digital digest information calculation on the second logistics order data + the first payment voucher data;
step 452, sending second logistics order data, first payment voucher data and fourth summary data to the logistics evidence storing block chain, wherein the second logistics order data, the first payment voucher data and the fourth summary data are used for logistics order payment result evidence storing processing of the logistics evidence storing block chain; and receiving third certificate storage identification data sent back from the logistics certificate storage block chain.
Here, the logistics order processing end uses the logistics certificate storage block chain to store the first logistics order data + the first summary data in a similar processing process, and uses the logistics certificate storage block chain to store the second logistics order data + the first payment certificate data + the fourth summary data, and the finally obtained third certificate storage identification data is the block identification data corresponding to the block data related to the storage address data of the second logistics order data and the first payment certificate data + the fourth summary data;
step 46, according to the second order identification data and the third evidence storing identification data, updating the order data record payment evidence storing identification field in the order database, and returning the processing result to the service end;
the method specifically comprises the following steps: step 461, sending the second order identification data and the third evidence storage identification data to the order database, for the order database to perform the update processing of the order data record payment evidence storage identification field; receiving second state data sent back from the order database;
here, the logistics order processing end updates the original empty record payment evidence storage identification field in the order data record corresponding to the second order identification data in the order database into third evidence storage identification data; after the updating is successful, the order database sets the second state data which is successfully updated as the return data of the updating processing of the payment evidence storage identification field of the order data record, and sends the return data back to the logistics order processing terminal;
step 17, when the second state data is updated successfully, generating second processing result data; and sending back the second processing result data to the service server;
wherein the second processing result data is the successful payment of the logistics order.
Here, this step is the last step of the logistics order payment processing described in the foregoing step 2, and when the second status data is updated successfully, it indicates that the payment server has completed the payment operation to the carrier successfully, and the recorded payment evidence storage identification field of the order data record corresponding to the second order identification data in the order database has also been updated; after the processing flow is completed, the logistics order processing end sends back the processing result data of the logistics order payment processing, namely the second processing result data of successful payment of the logistics order, to the data source side-business service end in the step 1; and after the business server acquires the second processing result data, the business server displays prompt information of successful order payment operation to the goods issuer using the business server.
Fig. 3 is a block structure diagram of a logistics order processing apparatus based on a block chain technology according to a second embodiment of the present invention, where the apparatus may be a terminal device or a server for implementing a function of a logistics order processing end in a method according to a second embodiment of the present invention, or an apparatus connected to the terminal device or the server for implementing a function of a logistics order processing end in a method according to a second embodiment of the present invention, and for example, the apparatus may be an apparatus or a chip system of the terminal device or the server. As shown in fig. 3, the block chain technology-based logistics order processing apparatus 30 includes:
the obtaining module 301 is configured to receive first processing type data and corresponding first processing data sent from a service server.
The order processing module 302 is configured to, when the first processing type data is an order addition type, perform first new order storage processing according to the first processing data; and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data.
The logistics order processing device based on the block chain technology provided by the embodiment of the invention can execute the method steps in the method embodiment, and the implementation principle and the technical effect are similar, and are not described herein again.
It should be noted that the division of the modules of the above apparatus is only a logical division, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling software by the processing element, and part of the modules can be realized in the form of hardware. For example, the obtaining module may be a processing element separately set up, or may be implemented by being integrated in a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and a processing element of the apparatus calls and executes the functions of the determining module. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above modules are implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can invoke the program code. As another example, these modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, bluetooth, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
Fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. The electronic device may be the terminal device or the server, or may be a terminal device or a server connected to the terminal device or the server and implementing the method according to the embodiment of the present invention. As shown in fig. 4, the electronic device may include: a processor 41 (e.g., CPU), memory 42, transceiver 43; the transceiver 43 is coupled to the processor 41, and the processor 41 controls the transceiving action of the transceiver 43. Various instructions may be stored in memory 42 for performing various processing functions and implementing the methods and processes provided in the above-described embodiments of the present invention. Preferably, the electronic device according to an embodiment of the present invention further includes: a power supply 44, a system bus 45, and a communication port 46. The system bus 45 is used to implement communication connections between the elements. The communication port 46 is used for connection communication between the electronic device and other peripherals.
The system bus mentioned in fig. 4 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The system bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface is used for realizing communication between the database access device and other equipment (such as a client, a read-write library and a read-only library). The Memory may include a Random Access Memory (RAM) and may also include a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory.
The Processor may be a general-purpose Processor, including a central processing unit CPU, a Network Processor (NP), and the like; but also a digital signal processor DSP, an application specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components.
It should be noted that the embodiment of the present invention also provides a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute the method and the processing procedure provided in the above-mentioned embodiment.
The embodiment of the invention also provides a chip for running the instructions, and the chip is used for executing the method and the processing process provided by the embodiment.
Embodiments of the present invention also provide a program product, which includes a computer program stored in a storage medium, from which the computer program can be read by at least one processor, and the at least one processor executes the methods and processes provided in the embodiments.
The embodiment of the invention provides a logistics order processing method, a logistics order processing device, electronic equipment, a computer program product and a computer readable storage medium based on a block chain technology, wherein a logistics certificate storage block chain is used for storing and verifying related contents of a logistics order, so that the anti-tampering protection of logistics order data is realized; secondly, only the order database is used for storing order deposit certificate identification data and payment deposit certificate identification data related to the order, so that the storage pressure of the order database is reduced, and the searching efficiency of the order database is improved; furthermore, when the payment is made, the order information is obtained from the logistics evidence storage block chain for payment, so that the reliability of the payment data is ensured, and the business processing pressure of the order database is reduced.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are merely exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (7)

1. A logistics order processing method based on block chain technology is characterized by comprising the following steps:
receiving first processing type data and corresponding first processing data sent from a service server;
when the first processing type data is the order newly added type, performing first newly added order storage certificate processing according to the first processing data;
and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data.
2. The method as claimed in claim 1, wherein when the first processing type data is an order addition type, performing a first new order deposit evidence processing according to the first processing data includes:
when the first processing type data is an order newly added type, taking the first processing data as first logistics order data, and carrying out logistics order data evidence storage processing on the first logistics order data on a logistics evidence storage block chain to obtain first evidence storage identification data; the first logistics order data at least comprises the first order identification data;
and according to the first order identification data and the first evidence storage identification data, performing order data record adding processing in an order database, and returning a processing result to the service server.
3. The method according to claim 1, wherein when the first processing type data is an order payment type, performing a first logistics order payment processing according to the first processing data includes:
when the first processing type data is an order payment type, the first processing data is used as first logistics order signing data; the first logistics order sign-in data at least comprises second order identification data;
according to the first logistics order sign-in data, carrying out order data record query processing in the order database to obtain second certificate-storing identification data;
according to the second certificate storage identification data, carrying out certificate storage inquiry processing on the logistics order on the logistics certificate storage block chain to obtain second logistics order data;
carrying out logistics order payment processing on the second logistics order data to obtain first payment voucher data;
carrying out logistics order payment result evidence storage processing on the second logistics order data and the first payment voucher data on the logistics evidence storage block chain to obtain third evidence storage identification data;
and according to the second order identification data and the third evidence storage identification data, updating the order data record payment evidence storage identification field in the order database, and returning the processing result to the service server.
4. A logistics order processing device based on block chain technology is characterized in that the device comprises:
the acquisition module is used for receiving first processing type data and corresponding first processing data sent from a service server;
the order processing module is used for carrying out first newly added order storage and evidence processing according to the first processing data when the first processing type data is the order newly added type; and when the first processing type data is an order payment type, performing first logistics order payment processing according to the first processing data.
5. An electronic device, comprising: a memory, a processor, and a transceiver;
the processor is used for being coupled with the memory, reading and executing the instructions in the memory to realize the method steps of any one of claims 1-3;
the transceiver is coupled to the processor, and the processor controls the transceiver to transmit and receive messages.
6. A computer program product, characterized in that the computer program product comprises computer program code which, when executed by a computer, causes the computer to perform the method of any of claims 1-3.
7. A computer-readable storage medium having stored thereon computer instructions which, when executed by a computer, cause the computer to perform the method of any of claims 1-3.
CN202011637318.2A 2020-12-31 2020-12-31 Logistics order processing method and device based on block chain technology Pending CN112668058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011637318.2A CN112668058A (en) 2020-12-31 2020-12-31 Logistics order processing method and device based on block chain technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011637318.2A CN112668058A (en) 2020-12-31 2020-12-31 Logistics order processing method and device based on block chain technology

Publications (1)

Publication Number Publication Date
CN112668058A true CN112668058A (en) 2021-04-16

Family

ID=75413748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011637318.2A Pending CN112668058A (en) 2020-12-31 2020-12-31 Logistics order processing method and device based on block chain technology

Country Status (1)

Country Link
CN (1) CN112668058A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016542A (en) * 2016-12-06 2017-08-04 阿里巴巴集团控股有限公司 A kind of business data processing method, verification method, apparatus and system
CN110503435A (en) * 2019-07-31 2019-11-26 阿里巴巴集团控股有限公司 Transaction method for early warning, device and equipment based on block chain
CN110609869A (en) * 2019-09-10 2019-12-24 连连银通电子支付有限公司 Block chain-based data storage method, related equipment and storage medium
CN110874742A (en) * 2019-10-29 2020-03-10 上海唯链信息科技有限公司 Payment method and device based on block chain and intelligent contract
WO2020147568A1 (en) * 2019-01-16 2020-07-23 阿里巴巴集团控股有限公司 Block chain-based evidence storage method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107016542A (en) * 2016-12-06 2017-08-04 阿里巴巴集团控股有限公司 A kind of business data processing method, verification method, apparatus and system
WO2020147568A1 (en) * 2019-01-16 2020-07-23 阿里巴巴集团控股有限公司 Block chain-based evidence storage method and device
CN110503435A (en) * 2019-07-31 2019-11-26 阿里巴巴集团控股有限公司 Transaction method for early warning, device and equipment based on block chain
CN110609869A (en) * 2019-09-10 2019-12-24 连连银通电子支付有限公司 Block chain-based data storage method, related equipment and storage medium
CN110874742A (en) * 2019-10-29 2020-03-10 上海唯链信息科技有限公司 Payment method and device based on block chain and intelligent contract

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪天星;程耕国;: "基于B/S的扫码支付平台的设计", 现代电子技术, no. 22, 12 November 2018 (2018-11-12) *

Similar Documents

Publication Publication Date Title
CN109981750B (en) Business process system, business data processing method and device
WO2019001139A1 (en) Method and device for running chaincode
CN111274045B (en) Multi-platform docking method and device, computer equipment and readable storage medium
US20190147553A1 (en) Storing linked lists of mineral rights transactions in directed acyclic graphs of cryptographic hash pointers
CN112000730B (en) Tracing information writing and tracing information verification method and system based on block chain
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
JP2022539998A (en) Supplier invoice reconciliation and payment using an event-driven platform
CN112685391B (en) Service data migration method and device, computer equipment and storage medium
CN110866755A (en) Processing method, equipment and medium for bill data
CN111598575A (en) Business process control method and device, electronic equipment and readable storage medium
CN111611249A (en) Data management method, device, equipment and storage medium
CN110930152A (en) Data processing method based on block chain and related equipment
CN111311277B (en) Bill processing method and device based on block chain network and related equipment
CN113132459B (en) Distributed storage method, system, storage medium, information data processing terminal
CN112181628B (en) Resource transfer method, device, system and electronic equipment
CN113191906A (en) Service data processing method and device, electronic equipment and storage medium
CN112445841A (en) Account query method, device, system, server and medium
CN113778950B (en) Method for acquiring trusted file, index server, query server and medium
CN113641633B (en) File processing method, apparatus, electronic device, medium, and computer program
CN112668058A (en) Logistics order processing method and device based on block chain technology
CN113742235A (en) Method and device for checking codes
CN113902415A (en) Financial data checking method and device, computer equipment and storage medium
CN113450223A (en) Transaction processing method, device and equipment based on UTXO model and storage medium
CN114398376A (en) Data processing method and device and readable storage medium
CN111401840B (en) Method, apparatus, device and computer readable medium for generating guarantor information

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: 20210705

Address after: 255000 south-02, 4th floor, building 15, Instrument Industrial Park, 9009 Qinglongshan Road, high tech Zone, Zibo City, Shandong Province

Applicant after: Energy chain logistics technology Co.,Ltd.

Address before: 100025 building 7, Huitong Times Square, 1 yaojiayuan South Road, Chaoyang District, Beijing

Applicant before: CHEZHUBANG (BEIJING) TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right