WO2020192328A1 - Blockchain-based order state updating method, apparatus and device, and storage medium - Google Patents

Blockchain-based order state updating method, apparatus and device, and storage medium Download PDF

Info

Publication number
WO2020192328A1
WO2020192328A1 PCT/CN2020/076397 CN2020076397W WO2020192328A1 WO 2020192328 A1 WO2020192328 A1 WO 2020192328A1 CN 2020076397 W CN2020076397 W CN 2020076397W WO 2020192328 A1 WO2020192328 A1 WO 2020192328A1
Authority
WO
WIPO (PCT)
Prior art keywords
purchase
order
node
instruction
blockchain
Prior art date
Application number
PCT/CN2020/076397
Other languages
French (fr)
Chinese (zh)
Inventor
汪俊
陈朝亮
卢道和
黄叶飞
Original Assignee
深圳前海微众银行股份有限公司
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 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2020192328A1 publication Critical patent/WO2020192328A1/en

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions

Definitions

  • This application relates to the field of blockchain technology, and in particular to a method, device, equipment, and storage medium for updating order status based on blockchain.
  • the main purpose of this application is to provide a blockchain-based order status update method, device, equipment, and storage medium, aiming to solve the technical problem of poor consistency of order status in the prior art supplier system and purchaser system.
  • the blockchain-based order status update method includes the following steps:
  • the updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  • the present application also provides a block chain-based order status update device, the block chain-based order status update device includes:
  • the detection module is used to detect whether a purchase instruction triggered by the purchasing node to purchase the commodity for sale is received after it is detected that the supply node uploads the commodity information of the commodity for sale to the blockchain;
  • the update module is configured to, if the purchase instruction is received, update the order status of the purchase order corresponding to the purchase of the goods for sale by the purchase node in the blockchain according to the purchase instruction to obtain the updated Order Status;
  • the synchronization module is configured to synchronize the updated order status to the procurement node and the supply node, so that the procurement node and the supply node can perform corresponding operations according to the updated order status.
  • the present application also provides a block chain-based order status update device.
  • the block chain-based order status update device includes a memory, a processor, and stored on the memory and available in A blockchain-based order status update program running on the processor, and when the blockchain-based order status update program is executed by the processor, the above-mentioned blockchain-based order status update method is implemented A step of.
  • the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a blockchain-based order status update program, and the blockchain-based order status update program When the program is executed by the processor, the steps of the above-mentioned block chain-based order status update method are realized.
  • the purchase node purchase is updated in the blockchain according to the purchase instruction
  • the goods for sale correspond to the order status of the purchase order, get the updated order status, and synchronize the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status
  • the order status of the purchase order is synchronized in the buyer system and the supplier system through the blockchain.
  • the order status is subject to the status in the blockchain, which improves the consistency of the order status in the supplier system and the buyer system .
  • FIG. 1 is a schematic structural diagram of the device hardware operating environment involved in the embodiment of the blockchain-based order status update device solution of this application;
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for updating an order status based on a blockchain in this application;
  • FIG. 3 is a schematic flowchart of a second embodiment of a method for updating an order status based on a blockchain in this application;
  • FIG. 4 is a schematic diagram of functional modules of a preferred embodiment of a block chain-based order status update device of the present application.
  • FIG. 1 is a schematic structural diagram of the device hardware operating environment involved in the embodiment of the blockchain-based order status update device of this application.
  • the block chain-based order status update device may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the foregoing processor 1001.
  • the hardware structure of the blockchain-based order status update device shown in FIG. 1 does not constitute a limitation on the blockchain-based order status update device, and may include more or more Few parts, or combination of some parts, or different parts arrangement.
  • the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a blockchain-based order status update program.
  • the operating system is a program that manages and controls blockchain-based order status update equipment and software resources, and supports network communication modules, user interface modules, blockchain-based order status update programs, and the operation of other programs or software; network
  • the communication module is used to manage and control the network interface 1004;
  • the user interface module is used to manage and control the user interface 1003.
  • the network interface 1004 is mainly used to connect to the back-end server and perform data communication with the back-end server;
  • the user interface 1003 is mainly used to connect to the client (user side), Perform data communication with the client;
  • the processor 1001 can call the blockchain-based order status update program stored in the memory 1005, and execute the following steps of the blockchain-based order status update method.
  • block chain-based order status update device of the present application is basically the same as the following embodiments of the block chain-based order status update method, and will not be repeated here.
  • This application also provides an order status update method based on blockchain.
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for updating an order status based on a blockchain in this application.
  • the embodiment of the application provides an embodiment of the method for updating the order status based on the blockchain. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the sequence may be different from here. Perform the steps shown or described.
  • a blockchain is a chain composed of a series of blocks. In addition to recording the data of this block, each block also records the Hash (hash) value of the previous block. In this way, a chain is formed.
  • a block consists of a block header and a block body.
  • the block header definition includes important fields such as the height of the block and the hash value of the previous block.
  • the block body mainly stores transaction data. Nodes specifically refer to network nodes that participate in the blockchain network for transactions and data exchange. Each independent institution member can have one or more transaction nodes.
  • Each transaction node is a set of physical networks, computers, and blockchain applications. The combination of software and database. The nodes are connected to each other through TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol) protocol.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the execution subject is omitted to describe the various embodiments.
  • Blockchain-based order status update methods include:
  • Step S10 After detecting that the supply node uploads the commodity information of the commodity for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the commodity for sale is received.
  • the supply node corresponding to the supplier system and the purchasing node corresponding to the buyer system are both connected to the blockchain and become a node in the blockchain.
  • the PBFT Practical Byzantine Fault Tolerance, Practical Byzantine Fault Tolerance
  • Purchasing nodes and supply nodes use the same API (Application Programming Interface) to connect to the blockchain, avoiding the existence of different API interfaces between different merchants (purchasers and suppliers) in the prior art.
  • API Application Programming Interface
  • the open platform of the blockchain can provide an open platform interface, and the buyer system and supplier system can be connected to the blockchain through the open platform interface and become a node in the blockchain ; Or connect the platform that connects with the buyer system and supplier system to the development platform of the blockchain; or connect the buyer system and supplier system as a node of the blockchain to the card coupons of the blockchain Procurement platform.
  • the supply node can upload the product information of the goods for sale to the blockchain to store the product information of the goods for sale in the zone Block chain.
  • the product information includes but is not limited to product type, product unit price and product usage.
  • the product information includes but is not limited to the type of the coupon, the unit price of the coupon, the time of use of the coupon, and the location of the coupon.
  • the purchasing node can obtain the product information of the product for sale from the blockchain.
  • the purchasing user corresponding to the purchasing node can trigger the purchasing instruction according to specific needs.
  • the purchase instruction includes an upload instruction for uploading the order information corresponding to the purchase order for the purchased product, a download instruction for downloading the attribute information of the product for sale, and a payment instruction for paying the amount corresponding to the purchase order.
  • Step S20 if the purchase instruction is received, update the order status of the purchase order corresponding to the purchase of the goods for sale by the purchasing node in the blockchain according to the purchase instruction to obtain the updated order status .
  • the order status of the purchase order corresponding to the purchase of goods for sale by the purchase node is updated in the blockchain according to the purchase execution, and the updated order status is obtained. It is understandable that through the order information in the purchase order, the type and quantity of the goods purchased by the purchasing node can be known. In the embodiment of this application, the order status includes but is not limited to the generated status, the paid status and the completed status. Further, if the purchase instruction is not received, continue to detect whether the purchase instruction triggered by the purchase node to purchase the commodity for sale is received.
  • step S20 includes:
  • Step a If the upload instruction is received, a purchase order for the purchasing node to purchase the commodity for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to Generate status and get the updated order status.
  • a purchase order for the purchase node to purchase the item for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to the generated state, Get the updated order status. It should be noted that after receiving the upload instruction, a purchase order is generated according to the order information, and the purchase order is updated from the stateless to the generated state.
  • the step of generating a purchase order for the purchase node to purchase the commodity for sale in the blockchain according to the upload instruction includes:
  • Step b Obtain order information corresponding to the upload instruction in the blockchain, and obtain order parameters for creating an order from the order information.
  • Step c Generate a purchase order for the purchase node to purchase the commodity for sale based on the order parameters and preset order generation rules.
  • the order information is obtained from the upload instruction, and the order parameters required to create the order are obtained from the order information, and then based on the obtained order parameters and preset order generation rules, a purchase order for the purchase node to purchase goods for sale is generated .
  • Order parameters include, but are not limited to, the order number, the quantity and time of purchase of goods for sale.
  • the preset order generation rules include but are not limited to: a.
  • the preset order generation rules include: adding order parameters to the order template in advance In the set position, to generate a purchase order; b. Use the preset connector to connect the order parameters to obtain the purchase order. Specifically: a.
  • step S20 includes:
  • Step d if the download instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the completed state in the blockchain according to the download instruction, and after the update is obtained The status of the order.
  • Attribute information is information that can uniquely identify a certain product. A certain product can be used or obtained through the attribute information. For example, the attribute information corresponding to a coupon is a code, and the coupon can be used through the coupon code.
  • step S30 the updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  • the updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status. It is understandable that in the process of acquiring the order status of the purchase order by the purchasing node and the supply node, the purchasing node and the supply node do not need to be connected to each other, and the order status can be directly obtained from the blockchain.
  • the supply node obtains the order information in the blockchain, and freezes the goods that the purchase node needs to purchase according to the order information, so as to avoid the purchase node need to purchase
  • the supply node can add a freeze identifier to the attribute information of the product corresponding to the order information to freeze the product that the purchase node needs to purchase.
  • the expression form of the freeze identifier is not limited, and the freeze identifier can be numbers and letters. Or sign etc.
  • the purchasing node triggers a payment instruction according to the operation of the purchasing user to pay the corresponding amount of the purchase order.
  • the supply node when the supply node freezes the goods that the procurement node needs to purchase, the supply node uploads the successful freeze message to the blockchain for the procurement node to get from the zone.
  • the success message is obtained in the block chain, and the purchasing user is prompted to trigger the payment instruction according to the success message.
  • the purchase node can output the purchase prompt information to remind the purchasing user according to the purchase prompt information that the goods have been successfully purchased from the supply node; the supply node can output the supply The prompt information is used to prompt the supplying user according to the supply prompting information that the goods for sale have been successfully supplied to the purchasing user.
  • the purchase node after detecting that the supply node uploads the product information of the product for sale to the blockchain, and receives the purchase instruction for purchasing the product for sale triggered by the purchase node, the purchase node is updated in the blockchain according to the purchase instruction Purchasing goods for sale corresponds to the order status of the purchase order, obtains the updated order status, and synchronizes the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can execute the corresponding according to the updated order status Operation, realize the synchronization of the order status of the purchase order in the buyer system and the supplier system through the blockchain.
  • the order status is subject to the status in the blockchain, which improves the consistency of the order status in the supplier system and the buyer system Sex.
  • the order status of the purchase order is synchronized to the purchase node and the supply node through the blockchain, which realizes that the supplier system and the purchaser system no longer need to record the order status of the purchase order, and the purchaser system and the supplier system can be simultaneously Obtain the order status of the purchase order from the blockchain; it avoids that the order status in the prior art is based on the supplier system.
  • the buyer system needs to intelligently and actively inquire or wait for the order status notification from the supplier system, and avoids When a large number of commodities are traded, a large number of order status query requests or order status notification messages are generated, which reduces the system pressure of the buyer system and the supplier system, and improves the timeliness of the buyer system to obtain the status of the purchase order.
  • the buyer system can only passively synchronize the order status, so there is a risk that the supplier system will tamper with the order status. Since the order status is closely related to funds, if The order status is tampered with, which will reduce the security of commodity transactions.
  • the embodiment of the application uses the blockchain to synchronize the order status, thereby ensuring that the order status of the purchase order is not tampered with through the immutable modification of the data in the blockchain, ensuring the accuracy of the order status, and improving online commodity transactions.
  • the security, and the on-chain audit of orders and the traceability of data are realized through the blockchain.
  • step S20 includes:
  • Step S21 if the payment instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the paid status in the blockchain according to the payment instruction, and the updated status is obtained The status of the order.
  • the payment instruction can optionally prompt the purchasing user to trigger based on the interface periodically within a preset time after the purchase order is generated.
  • it can also optionally be uploaded by the supply node after the supply node freezes the goods that the purchase node needs to purchase
  • the successful success message is frozen in the blockchain so that the purchasing node can obtain the success message from the blockchain, and prompt the purchasing user to trigger the payment instruction based on the interface according to the success message.
  • the order status of the purchase order corresponding to the purchase of goods for sale by the purchasing node is updated to the paid state according to the payment instruction in the blockchain. Specifically, the purchase The status of the order is updated from the generated status to the paid status, and the updated order status is obtained.
  • the supply node stores the attribute information of the corresponding commodity for sale in the blockchain according to the purchase order in the paid state.
  • the purchase node The attribute information of the commodity for sale can be downloaded in the blockchain, that is, a download instruction to download the attribute information of the commodity for sale is triggered.
  • the purchase order after the purchase order is in the effective state, it is determined whether a payment instruction is received within a preset time period. If the payment instruction is received within the preset time period, the order status of the purchase order will be changed from the generated state to the updated state according to the payment instruction in the blockchain, and the updated order status will be obtained; if not within the preset time period After receiving the payment instruction, the purchase order stored in the blockchain is closed, and the order status is changed from the generated state to the closed state.
  • the preset time length can be set according to specific needs, such as 3 minutes, 10 minutes, or 30 minutes, etc. By setting the preset time length, the order can be prevented from being unpaid for a long time.
  • the order status of the purchase order corresponding to the purchase of goods for sale by the purchase node is updated to the paid state in the blockchain according to the payment instruction to obtain the updated state
  • the order status of the purchase order is synchronized to the purchase node and the supply node through the blockchain, which improves the consistency of the order status in the supplier system and the buyer system.
  • Step e If the clearing instruction is detected, the blockchain shared ledger is obtained, and the purchase order in the paid state is cleared according to the blockchain shared ledger to obtain the clearing result.
  • Step f Send the clearing result to the supply node and the purchase node correspondingly.
  • the blockchain shared ledger is obtained.
  • the clearing instruction may be sent by the purchasing node or the supply node.
  • the transaction information of each commodity transaction is stored.
  • the transaction information includes but is not limited to the name of the buyer, the name of the supplier, the transaction time, the name of the purchased commodity, the quantity and the amount.
  • the quantity and name of the goods supplied by the supply node and the amount of the goods supplied, etc., and the quantity and name of the goods purchased by the procurement node, and the amount paid for the purchased goods are included. Further, if the clearing instruction is not detected, continue to detect whether the clearing instruction is detected.
  • the method for updating the order status based on the blockchain further includes:
  • Step g Obtain the current time, and determine whether the current time is within a preset liquidation time period.
  • Step h if the current time is within the preset clearing time period, trigger the clearing instruction.
  • the current time is obtained, and it is determined whether the current time is within the preset liquidation time period. If it is determined that the current time is within the preset clearing time period, the clearing instruction is automatically triggered; if it is determined that the current time is not within the preset clearing time period, continue to determine whether the current time is within the preset clearing time period.
  • the preset clearing time period can be set according to specific needs. For example, the preset clearing time period can be set between 4:00 and 4:30 pm every day, or between 5:00 and 5:45.
  • the method for updating the order status based on the blockchain further includes:
  • Step i Send the clearing result to the transfer agency, so that the transfer agency transfers the corresponding amount from the purchase node account to the supply node account according to the clearing result.
  • the clearing result is sent to the transfer agency.
  • the transfer agency transfers the corresponding amount from the purchase node account to the supply node account according to the clearing result, specifically, transfers the amount corresponding to the purchase order to the supply node account.
  • the clearing result sent to the purchasing node only includes information related to the purchasing node, such as the quantity and name of the goods purchased by the purchasing node, and the amount paid for the purchased goods;
  • the clearing result sent to the supply node Only the information related to the supply node is included, such as the quantity, name, and amount of goods supplied by the supply node; and the clearing result sent to the transfer agency includes the information related to the purchase node and the related information of the supply node.
  • the blockchain shared ledger is obtained, the purchase order in the paid state is cleared according to the blockchain shared ledger, the clearing result is obtained, and the clearing result is sent to the supply node and the purchasing node,
  • the procurement node and the supply node it is not necessary for the supplier and the purchaser to export the bill from the corresponding system to reconcile the account, which improves the clearing efficiency of the purchase order; sends the clearing result to the transfer agency for transfer
  • the organization transfers the corresponding amount from the purchase node account to the supply node account according to the settlement result, realizing the intelligent transfer of the amount.
  • This application also provides a block chain-based order status update device.
  • FIG. 4 is a schematic diagram of the functional modules of the first embodiment of the device for updating the order status based on the blockchain of the present application.
  • the block chain-based order status update device includes:
  • the detection module 10 is configured to detect whether a purchase instruction for purchasing the commodity for sale triggered by the purchasing node is received after it is detected that the supply node uploads the commodity information of the commodity for sale to the blockchain;
  • the update module 20 is configured to, if the purchase instruction is received, update the purchase order status of the purchase order corresponding to the purchase of the commodity for sale by the purchase node in the blockchain according to the purchase instruction to obtain the updated all State the order status;
  • the synchronization module 30 is configured to synchronize the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  • the update module 20 includes:
  • a generating unit configured to, if the upload instruction is received, generate a purchase order for the purchasing node to purchase the commodity for sale in the blockchain according to the upload instruction;
  • the initialization unit is used to initialize the state of the purchase order to the generated state to obtain the updated order state.
  • the generating unit includes:
  • the obtaining subunit is configured to obtain order information corresponding to the upload instruction in the blockchain, and obtain order parameters for creating an order from the order information;
  • a generating subunit is used to generate a purchase order for the purchase node to purchase the commodity for sale based on the order parameters and preset order generation rules, wherein the preset order generation rule includes: adding order parameters Go to the pre-set position in the order template to generate a purchase order; or, use the preset connector to connect the order parameters to get the purchase order.
  • the update module 20 is further configured to, if the payment instruction is received, perform the payment in the blockchain according to The payment instruction updates the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node to the paid status, and obtains the updated order status.
  • block chain-based order status update device further includes:
  • the obtaining module if the clearing instruction is detected, obtain the blockchain shared ledger
  • the clearing module is used to clear the purchase order in the paid state according to the blockchain shared ledger to obtain the clearing result;
  • the sending module is used to send the clearing result to the supply node and the purchase node correspondingly.
  • the acquiring module is also used to acquire the current time
  • the block chain-based order status update device further includes: a judgment module for judging whether the current time is within a preset clearing time period; a triggering module for if the current time is within a preset clearing time period , The liquidation instruction is triggered.
  • the sending module is further configured to send the clearing result to a transfer agency, so that the transfer agency transfers the corresponding amount from the purchasing node account to the supply node account according to the clearing result.
  • the update module 20 is further configured to log in the blockchain if the download instruction is received According to the download instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to a completed status, and the updated order status is obtained.
  • the procurement node and the supply node are connected to the blockchain using the same application programming interface (API).
  • API application programming interface
  • block chain-based order status update device of the present application is basically the same as the foregoing embodiments of the block chain-based order status update method, and will not be repeated here.
  • the embodiment of the present application also proposes a computer-readable storage medium.
  • the computer-readable storage medium stores a blockchain-based order status update program, and when the blockchain-based order status update program is executed by a processor, the steps of the blockchain-based order status update method as described above are implemented.

Landscapes

  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A blockchain-based order state updating method, apparatus and device, and a storage medium. The method comprises the following steps: upon detecting that a supply node uploads commodity information of a commodity to be sold to a blockchain, detecting whether a purchase instruction triggered by a purchase node for purchasing said commodity is received (S10); if the purchase instruction is received, updating, in the blockchain according to the purchase instruction, the order state of a corresponding purchase order of purchasing said commodity by the purchase node to obtain an updated order state (S20); and synchronizing the updated order state to the purchase node and the supply node, so that the purchase node and the supply node execute corresponding operations according to the updated order state (S30). The order states of a purchase order are synchronized in a purchaser system and a supplier system by means of the blockchain, and the order states are based on the state in the blockchain; therefore, the consistency between the order states in the supplier system and the purchaser system is improved.

Description

基于区块链的订单状态更新方法、装置、设备及存储介质Block chain-based order status update method, device, equipment and storage medium
本申请要求于2019年3月28日提交中国专利局、申请号为201910246154.1、发明名称为“基于区块链的订单状态更新方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 201910246154.1, and the invention title is "Blockchain-based order status update method, device, equipment and storage medium" on March 28, 2019. The entire content is incorporated in the application by reference.
技术领域Technical field
本申请涉及区块链技术领域,尤其涉及一种基于区块链的订单状态更新方法、装置、设备及存储介质。This application relates to the field of blockchain technology, and in particular to a method, device, equipment, and storage medium for updating order status based on blockchain.
背景技术Background technique
随着金融科技(Fintech),尤其是互联网科技金融的不断发展,越来越多的商家通过互联网实现订单的管理,传统模式下,供应商和采购商之间的交易订单会存储在供应商系统和采购商系统中。当采购商从供应商那里采购商品后,会在其系统中更新订单状态,并将更新后的订单状态发送给供应商系统。如果在供应商系统和采购商系统传输数据过程中,出现采购商系统数据发送超时、供应商数据接收超时,和/或供应商系统和采购商系统网络连接断开等情况时,会导致供应商系统和采购商系统中订单状态的不一致。由此可知,目前供应商系统和采购商系统中订单状态一致性差。With the continuous development of financial technology (Fintech), especially Internet technology finance, more and more merchants realize order management through the Internet. Under the traditional model, transaction orders between suppliers and buyers will be stored in the supplier system And the buyer system. When a buyer purchases goods from a supplier, it will update the order status in its system and send the updated order status to the supplier system. If during the process of data transmission between the supplier system and the buyer system, the supplier system data transmission timeout, the supplier data reception timeout, and/or the supplier system and the buyer system network connection are disconnected, it will cause the supplier The order status is inconsistent between the system and the buyer system. It can be seen that the current supplier system and the purchaser system have poor order status consistency.
发明概述Summary of the invention
技术问题technical problem
问题的解决方案The solution to the problem
技术解决方案Technical solutions
本申请的主要目的在于提供一种基于区块链的订单状态更新方法、装置、设备及存储介质,旨在解决现有技术供应商系统和采购商系统中订单状态一致性差的技术问题。The main purpose of this application is to provide a blockchain-based order status update method, device, equipment, and storage medium, aiming to solve the technical problem of poor consistency of order status in the prior art supplier system and purchaser system.
为实现上述目的,本申请提供一种基于区块链的订单状态更新方法,所述基于 区块链的订单状态更新方法包括以下步骤:In order to achieve the above objective, this application provides a blockchain-based order status update method. The blockchain-based order status update method includes the following steps:
当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;When it is detected that the supply node uploads the product information of the product for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the product for sale is received;
若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;If the purchase instruction is received, update the order status of the purchase order corresponding to the purchase order of the commodity for sale by the purchasing node in the blockchain according to the purchase instruction to obtain the updated order status;
将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
进一步地,为实现上述目的,本申请还提供一种基于区块链的订单状态更新装置,所述基于区块链的订单状态更新装置包括:Further, in order to achieve the above object, the present application also provides a block chain-based order status update device, the block chain-based order status update device includes:
检测模块,用于当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;The detection module is used to detect whether a purchase instruction triggered by the purchasing node to purchase the commodity for sale is received after it is detected that the supply node uploads the commodity information of the commodity for sale to the blockchain;
更新模块,用于若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;The update module is configured to, if the purchase instruction is received, update the order status of the purchase order corresponding to the purchase of the goods for sale by the purchase node in the blockchain according to the purchase instruction to obtain the updated Order Status;
同步模块,用于将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The synchronization module is configured to synchronize the updated order status to the procurement node and the supply node, so that the procurement node and the supply node can perform corresponding operations according to the updated order status.
进一步地,为实现上述目的,本申请还提供一种基于区块链的订单状态更新设备,所述基于区块链的订单状态更新设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的基于区块链的订单状态更新程序,所述基于区块链的订单状态更新程序被所述处理器执行时实现如上述所述的基于区块链的订单状态更新方法的步骤。Further, in order to achieve the above object, the present application also provides a block chain-based order status update device. The block chain-based order status update device includes a memory, a processor, and stored on the memory and available in A blockchain-based order status update program running on the processor, and when the blockchain-based order status update program is executed by the processor, the above-mentioned blockchain-based order status update method is implemented A step of.
进一步地,为实现上述目的,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有基于区块链的订单状态更新程序,所述基于区块链的订单状态更新程序被处理器执行时实现如上所述的基于区块链的订单状态更新方法的步骤。Further, in order to achieve the above object, the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a blockchain-based order status update program, and the blockchain-based order status update program When the program is executed by the processor, the steps of the above-mentioned block chain-based order status update method are realized.
本申请通过在检测到供应节点将待售商品的商品信息上传到区块链中,且接收到采购节点触发的采购待售商品的采购指令后,在区块链中根据采购指令更新 采购节点采购待售商品对应采购订单的订单状态,得到更新后的订单状态,并将更新后的订单状态同步到采购节点和供应节点中,以供采购节点和供应节点根据更新后的订单状态执行对应的操作,通过区块链来实现在采购商系统和供应商系统中同步采购订单的订单状态,订单状态以区块链中的状态为准,提高了供应商系统和采购商系统中订单状态的一致性。In this application, after detecting that the supply node uploads the product information of the product for sale to the blockchain, and receives the purchase instruction for purchasing the product for sale triggered by the purchase node, the purchase node purchase is updated in the blockchain according to the purchase instruction The goods for sale correspond to the order status of the purchase order, get the updated order status, and synchronize the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status , The order status of the purchase order is synchronized in the buyer system and the supplier system through the blockchain. The order status is subject to the status in the blockchain, which improves the consistency of the order status in the supplier system and the buyer system .
发明的有益效果The beneficial effects of the invention
对附图的简要说明Brief description of the drawings
附图说明Description of the drawings
图1为本申请基于区块链的订单状态更新设备实施例方案涉及的设备硬件运行环境的结构示意图;FIG. 1 is a schematic structural diagram of the device hardware operating environment involved in the embodiment of the blockchain-based order status update device solution of this application;
图2为本申请基于区块链的订单状态更新方法第一实施例的流程示意图;2 is a schematic flowchart of a first embodiment of a method for updating an order status based on a blockchain in this application;
图3为本申请基于区块链的订单状态更新方法第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of a method for updating an order status based on a blockchain in this application;
图4为本申请基于区块链的订单状态更新装置较佳实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of a preferred embodiment of a block chain-based order status update device of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。发明实施例The realization, functional characteristics, and advantages of the purpose of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. Invention embodiment
本发明的实施方式Embodiments of the invention
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the application, and not used to limit the application.
需要说明的是,现有的供应商系统和采购商系统传输数据过程中,若出现采购商系统数据发送超时、供应商数据接收超时,和/或供应商系统和采购商系统网络连接断开等情况时,供应商系统和采购商系统中订单状态的不一致,这种情况下,订单状态双方必须日终对账,来确保交易订单信息的一致性,但是日终对账的方式,不仅订单信息的统一存在延时,而且需要花费更多的人力物力,导致成本较高。It should be noted that in the process of data transmission between the existing supplier system and the buyer system, if the buyer system data transmission timeout, the supplier data reception timeout, and/or the supplier system and the buyer system network connection are disconnected, etc. In this case, the order status in the supplier system and the buyer system is inconsistent. In this case, the order status must be reconciled at the end of the day to ensure the consistency of the transaction order information. However, the method of end-of-day reconciliation is not only the order information There is a delay in the unification of the country, and it requires more manpower and material resources, resulting in higher costs.
基于上述缺陷,本申请提供一种基于区块链的订单状态更新设备,参照图1,图1为本申请基于区块链的订单状态更新设备实施例方案涉及的设备硬件运行环境的结构示意图。Based on the foregoing defects, the present application provides a blockchain-based order status update device. Referring to FIG. 1, FIG. 1 is a schematic structural diagram of the device hardware operating environment involved in the embodiment of the blockchain-based order status update device of this application.
如图1所示,该基于区块链的订单状态更新设备可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。As shown in FIG. 1, the block chain-based order status update device may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的基于区块链的订单状态更新设备的硬件结构并不构成对基于区块链的订单状态更新设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure of the blockchain-based order status update device shown in FIG. 1 does not constitute a limitation on the blockchain-based order status update device, and may include more or more Few parts, or combination of some parts, or different parts arrangement.
如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于区块链的订单状态更新程序。其中,操作系统是管理和控制基于区块链的订单状态更新设备与软件资源的程序,支持网络通信模块、用户接口模块、基于区块链的订单状态更新程序以及其他程序或软件的运行;网络通信模块用于管理和控制网络接口1004;用户接口模块用于管理和控制用户接口1003。As shown in FIG. 1, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a blockchain-based order status update program. Among them, the operating system is a program that manages and controls blockchain-based order status update equipment and software resources, and supports network communication modules, user interface modules, blockchain-based order status update programs, and the operation of other programs or software; network The communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
在图1所示的基于区块链的订单状态更新设备硬件结构中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;处理器1001可以调用存储器1005中存储的基于区块链的订单状态更新程序,并执行以下基于区块链的订单状态更新方法的各个步骤。In the hardware structure of the block chain-based order status update device shown in Figure 1, the network interface 1004 is mainly used to connect to the back-end server and perform data communication with the back-end server; the user interface 1003 is mainly used to connect to the client (user side), Perform data communication with the client; the processor 1001 can call the blockchain-based order status update program stored in the memory 1005, and execute the following steps of the blockchain-based order status update method.
本申请基于区块链的订单状态更新设备的具体实施方式与下述基于区块链的订单状态更新方法各实施例基本相同,在此不再赘述。The specific implementation of the block chain-based order status update device of the present application is basically the same as the following embodiments of the block chain-based order status update method, and will not be repeated here.
本申请还提供一种基于区块链的订单状态更新方法。This application also provides an order status update method based on blockchain.
参照图2,图2为本申请基于区块链的订单状态更新方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a method for updating an order status based on a blockchain in this application.
本申请实施例提供了基于区块链的订单状态更新方法的实施例,需要说明的是 ,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The embodiment of the application provides an embodiment of the method for updating the order status based on the blockchain. It should be noted that although the logical sequence is shown in the flowchart, in some cases, the sequence may be different from here. Perform the steps shown or described.
基于区块链的订单状态更新方法应用于区块链中。区块链是由一系列区块组成的一条链,每个块上除了记录本块的数据还会记录上一块的Hash(哈希)值,通过这种方式组成一条链。区块链的核心理念有两个,一个是密码学技术,另一个是去中心化思想,基于这两个理念做到区块链上的历史信息无法被篡改。一个区块由块头和块体组成,其中块头定义包括该区块高度,上一个区块的哈希值等重要字段,而块体主要存储交易数据。节点特指参与到区块链网络里,进行交易和数据交换的网络节点,每个独立机构成员可以拥有一个到多个交易节点,每个交易节点是一组物理网络,计算机,区块链应用软件以及数据库的组合。节点和节点之间,通过TCP/IP(Transmission Control Protocol/Internet Protocol,传输控制协议/因特网互联协议)协议互相连接。在基于区块链的订单状态更新方法的各个实施例中,为了便于描述,省略执行主体进行阐述各个实施例。基于区块链的订单状态更新方法包括:The order status update method based on the blockchain is applied to the blockchain. A blockchain is a chain composed of a series of blocks. In addition to recording the data of this block, each block also records the Hash (hash) value of the previous block. In this way, a chain is formed. There are two core concepts of the blockchain, one is cryptography and the other is decentralization. Based on these two concepts, the historical information on the blockchain cannot be tampered with. A block consists of a block header and a block body. The block header definition includes important fields such as the height of the block and the hash value of the previous block. The block body mainly stores transaction data. Nodes specifically refer to network nodes that participate in the blockchain network for transactions and data exchange. Each independent institution member can have one or more transaction nodes. Each transaction node is a set of physical networks, computers, and blockchain applications. The combination of software and database. The nodes are connected to each other through TCP/IP (Transmission Control Protocol/Internet Protocol, Transmission Control Protocol/Internet Protocol) protocol. In the various embodiments of the method for updating the order status based on the blockchain, for ease of description, the execution subject is omitted to describe the various embodiments. Blockchain-based order status update methods include:
步骤S10,当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令。Step S10: After detecting that the supply node uploads the commodity information of the commodity for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the commodity for sale is received.
在本申请实施例中,供应商系统对应的供应节点和采购商系统对应的采购节点都接入到区块链中,成为区块链中的一个节点。区块链的各个节点之间采用PBFT(Practical Byzantine Fault Tolerance,实用拜占庭容错算法)共识算法,区块链的各个节点共同确认区块链中的交易。采购节点和供应节点采用相同的API(Application Programming Interface,应用程序编程接口)连接到区块链中,避免了现有技术中不同商户(采购商和供应商)之间存在不同的API接口,在不同商户对接,进行数据交互过程中,需要兼容不同的接口标准,不同商户数据交互成本高的问题,提高了采购节点和供应节点接入区块链中的接入效率,降低了采购节点和供应节点接入区块链的接入成本。在接入区块链过程中,区块链的开放平台可提供开放平台接口,采购商系统和供应商系统可通过该开放平台接口接入到区块链中,成为区块链中的一个节点;或者将与采购商系统和供应商系统对接的平台接入到区块链的开发平台中;或者将采购商系统和供应商系统作 为区块链的一个节点接入到区块链的卡券采购平台中。In the embodiment of the present application, the supply node corresponding to the supplier system and the purchasing node corresponding to the buyer system are both connected to the blockchain and become a node in the blockchain. The PBFT (Practical Byzantine Fault Tolerance, Practical Byzantine Fault Tolerance) consensus algorithm is adopted between each node of the blockchain, and each node of the blockchain jointly confirms the transactions in the blockchain. Purchasing nodes and supply nodes use the same API (Application Programming Interface) to connect to the blockchain, avoiding the existence of different API interfaces between different merchants (purchasers and suppliers) in the prior art. In the process of data interaction between different merchants, different interface standards need to be compatible, and the cost of data interaction between different merchants is high. This improves the access efficiency of the procurement node and the supply node in the blockchain, and reduces the procurement node and supply. The cost of node access to the blockchain. In the process of connecting to the blockchain, the open platform of the blockchain can provide an open platform interface, and the buyer system and supplier system can be connected to the blockchain through the open platform interface and become a node in the blockchain ; Or connect the platform that connects with the buyer system and supplier system to the development platform of the blockchain; or connect the buyer system and supplier system as a node of the blockchain to the card coupons of the blockchain Procurement platform.
当供应节点要销售商品时,如销售各种类型的卡券或者其他商品时,供应节点可将其待售商品的商品信息上传到区块链中,以将待售商品的商品信息存储到区块链中。其中,商品信息包括但不限于商品类型、商品单价和商品用法。如当待售商品为卡券时,商品信息包括但不限于卡券类型、卡券单价、卡券使用时间和卡券使用地点。当成功在区块链中存储待售商品的商品信息后,检测是否接收到采购节点触发的采购待售商品的采购指令。需要说明的是,若供应节点已授权采购节点获取其商品信息,则成功在区块链中存储待售商品的商品信息后,采购节点可从区块链中获取待售商品的商品信息,此时,采购节点对应的采购用户可根据具体需要触发采购指令。When the supply node wants to sell goods, such as selling various types of coupons or other goods, the supply node can upload the product information of the goods for sale to the blockchain to store the product information of the goods for sale in the zone Block chain. Among them, the product information includes but is not limited to product type, product unit price and product usage. For example, when the commodity for sale is a coupon, the product information includes but is not limited to the type of the coupon, the unit price of the coupon, the time of use of the coupon, and the location of the coupon. After the product information of the product for sale is successfully stored in the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the product for sale is received. It should be noted that if the supply node has authorized the purchasing node to obtain its product information, after successfully storing the product information of the product for sale in the blockchain, the purchasing node can obtain the product information of the product for sale from the blockchain. At the time, the purchasing user corresponding to the purchasing node can trigger the purchasing instruction according to specific needs.
其中,采购用户在不同阶段在采购节点中可触发不同类型的采购指令。在本申请实施例中,采购指令包括上传其所需采购商品对应采购订单的订单信息的上传指令,下载待售商品属性信息的下载指令和支付采购订单对应金额的支付指令。Among them, purchasing users can trigger different types of purchasing instructions in the purchasing node at different stages. In this embodiment of the application, the purchase instruction includes an upload instruction for uploading the order information corresponding to the purchase order for the purchased product, a download instruction for downloading the attribute information of the product for sale, and a payment instruction for paying the amount corresponding to the purchase order.
步骤S20,若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态。Step S20, if the purchase instruction is received, update the order status of the purchase order corresponding to the purchase of the goods for sale by the purchasing node in the blockchain according to the purchase instruction to obtain the updated order status .
当接收到采购节点触发的采购指令,则在区块链中根据该采购执行更新采购节点采购待售商品对应采购订单的订单状态,得到更新后的订单状态。可以理解的是,通过采购订单中的订单信息,可以知道采购节点所购买商品的商品类型和数量等。在本申请实施例中,订单状态包括但不限于已生成状态,已支付状态和已完成状态。进一步地,若未接收到采购指令,则继续检测是否接收到采购节点触发的采购待售商品的采购指令。When the purchase instruction triggered by the purchase node is received, the order status of the purchase order corresponding to the purchase of goods for sale by the purchase node is updated in the blockchain according to the purchase execution, and the updated order status is obtained. It is understandable that through the order information in the purchase order, the type and quantity of the goods purchased by the purchasing node can be known. In the embodiment of this application, the order status includes but is not limited to the generated status, the paid status and the completed status. Further, if the purchase instruction is not received, continue to detect whether the purchase instruction triggered by the purchase node to purchase the commodity for sale is received.
进一步地,若所述采购指令为上传所述采购节点采购所述待售商品的订单信息的上传指令,则步骤S20包括:Further, if the purchase instruction is an upload instruction for uploading order information of the purchase node to purchase the commodity for sale, step S20 includes:
步骤a,若接收到所述上传指令,则在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单,并将所述采购订单的状态初始化为已生成状态,得到更新后的订单状态。Step a: If the upload instruction is received, a purchase order for the purchasing node to purchase the commodity for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to Generate status and get the updated order status.
若接收到采购节点上传的采购待售商品订单信息的上传指令,则在区块链中根据该上传指令生成采购节点采购待售商品的采购订单,将该采购订单的状态初始化为已生成状态,得到更新后的订单状态。需要说明的是,在接收到上传指令后,根据订单信息生成采购订单,将采购订单从无状态更新为已生成状态。If an upload instruction of the purchase order information of the item for sale uploaded by the purchase node is received, a purchase order for the purchase node to purchase the item for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to the generated state, Get the updated order status. It should be noted that after receiving the upload instruction, a purchase order is generated according to the order information, and the purchase order is updated from the stateless to the generated state.
进一步地,所述在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单的步骤包括:Further, the step of generating a purchase order for the purchase node to purchase the commodity for sale in the blockchain according to the upload instruction includes:
步骤b,在所述区块链中获取所述上传指令对应的订单信息,并从所述订单信息中获取创建订单的订单参数。Step b: Obtain order information corresponding to the upload instruction in the blockchain, and obtain order parameters for creating an order from the order information.
步骤c,基于所述订单参数和预设的订单生成规则,生成所述采购节点采购所述待售商品的采购订单。Step c: Generate a purchase order for the purchase node to purchase the commodity for sale based on the order parameters and preset order generation rules.
具体地,从上传指令中获取订单信息,并从该订单信息中获取创建订单所需的订单参数,然后基于获取的订单参数和预设的订单生成规则,生成采购节点采购待售商品的采购订单。订单参数包括但不限于订单编号、采购待售商品的数量和时间,预设的订单生成规则包括但不限于:a、所述预设的订单生成规则包括:将订单参数添加到订单模板中事先设置的位置中,以生成采购订单;b、用预设的连接符将订单参数连接起来,得到采购订单。具体为:a、提取待售商品订单信息中的订单编号、数量以及时间,将订单编号、数量及时间添加到订单模板中事先设置的位置中,以生成采购订单;b、提取待售商品订单信息中的订单编号、数量,用预设的连接符将订单编号、数量连接起来,得到采购订单。需要说明的是,通过上述几种方式生成采购订单,对不同采购商和供应商的订单进行统一,无需个性化生成不同形式的订单,相比于传统生成订单是供应商自定义的方式,本申请使得订单的生成更加便捷、统一生成的效率更高。Specifically, the order information is obtained from the upload instruction, and the order parameters required to create the order are obtained from the order information, and then based on the obtained order parameters and preset order generation rules, a purchase order for the purchase node to purchase goods for sale is generated . Order parameters include, but are not limited to, the order number, the quantity and time of purchase of goods for sale. The preset order generation rules include but are not limited to: a. The preset order generation rules include: adding order parameters to the order template in advance In the set position, to generate a purchase order; b. Use the preset connector to connect the order parameters to obtain the purchase order. Specifically: a. Extract the order number, quantity and time in the order information of the goods for sale, and add the order number, quantity and time to the position set in the order template in advance to generate a purchase order; b. Extract the order for the goods for sale The order number and quantity in the information are connected with the order number and quantity using the preset connector to obtain the purchase order. It should be noted that the purchase orders are generated through the above-mentioned methods to unify the orders of different purchasers and suppliers, and there is no need to generate different forms of orders in a personalized manner. Compared with the traditional way of generating orders, which is customized by suppliers, this Application makes the generation of orders more convenient, and the efficiency of unified generation is higher.
进一步地,若所述采购指令为所述采购节点下载所述待售商品属性信息的下载指令,则步骤S20包括:Further, if the purchase instruction is a download instruction for the purchase node to download the attribute information of the commodity for sale, step S20 includes:
步骤d,若接收到所述下载指令,则在所述区块链中根据所述下载指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的所述订单状态。Step d, if the download instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the completed state in the blockchain according to the download instruction, and after the update is obtained The status of the order.
若接收到采购节点上传的下载待售商品属性信息的下载指令,则在区块链中根 据该下载指令将采购节点采购待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的订单状态。具体地,是将订单状态从已支付状态更新为已完成状态。属性信息为可唯一识别某个商品的信息,通过属性信息可使用或者获取某个商品,如卡券对应的属性信息为code(编码),通过该卡券code可使用该卡券。If the download instruction to download the attribute information of the item for sale uploaded by the purchasing node is received, the order status of the purchase order corresponding to the item purchased by the purchasing node for sale is updated to the completed state according to the download instruction in the blockchain, and the updated state is obtained. Order Status. Specifically, the order status is updated from the paid status to the completed status. Attribute information is information that can uniquely identify a certain product. A certain product can be used or obtained through the attribute information. For example, the attribute information corresponding to a coupon is a code, and the coupon can be used through the coupon code.
步骤S30,将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。In step S30, the updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
当得到更新后的订单状态后,将更新后的订单状态同步给采购节点和供应节点,以供采购节点和供应节点根据更新后的订单状态执行对应的操作。可以理解的是,在采购节点和供应节点获取采购订单的订单状态过程中,采购节点和供应节点不用相互对接,直接从区块链中获取订单状态即可。具体地,当将采购订单的已生成状态同步到采购节点和供应节点后,供应节点在区块链中获取订单信息,根据该订单信息冻结采购节点所需购买的商品,避免采购节点所需购买的商品被其它采购节点购买的情况出现,即避免出现一物二卖的情况。具体地,供应节点可在订单信息对应商品的属性信息中添加冻结标识,以冻结采购节点所需购买的商品,在本申请实施例中,不限制冻结标识的表现形式,冻结标识可用数字、字母或者符号等表示。采购节点根据采购用户的操作触发支付指令,以支付该采购订单对应金额。When the updated order status is obtained, the updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status. It is understandable that in the process of acquiring the order status of the purchase order by the purchasing node and the supply node, the purchasing node and the supply node do not need to be connected to each other, and the order status can be directly obtained from the blockchain. Specifically, when the generated state of the purchase order is synchronized to the purchase node and the supply node, the supply node obtains the order information in the blockchain, and freezes the goods that the purchase node needs to purchase according to the order information, so as to avoid the purchase node need to purchase The situation that the product of the product is purchased by other procurement nodes, that is, to avoid the situation of one thing two selling. Specifically, the supply node can add a freeze identifier to the attribute information of the product corresponding to the order information to freeze the product that the purchase node needs to purchase. In this embodiment of the application, the expression form of the freeze identifier is not limited, and the freeze identifier can be numbers and letters. Or sign etc. The purchasing node triggers a payment instruction according to the operation of the purchasing user to pay the corresponding amount of the purchase order.
进一步地,为了保证采购节点和供应节点之间交易的成功率,当供应节点冻结采购节点所需购买的商品后,供应节点上传冻结成功的成功消息到区块链中,以供采购节点从区块链中获取该成功消息,根据该成功消息提示采购用户触发支付指令。Further, in order to ensure the success rate of the transaction between the procurement node and the supply node, when the supply node freezes the goods that the procurement node needs to purchase, the supply node uploads the successful freeze message to the blockchain for the procurement node to get from the zone. The success message is obtained in the block chain, and the purchasing user is prompted to trigger the payment instruction according to the success message.
当将采购订单的已完成状态同步到采购节点和供应节点后,采购节点可输出采购提示信息,以根据该采购提示信息提示采购用户,已成功从供应节点中采购到商品;供应节点可输出供应提示信息,以根据该供应提示信息提示供应用户,已成功将待售商品供应给采购用户。When the completed status of the purchase order is synchronized to the purchase node and the supply node, the purchase node can output the purchase prompt information to remind the purchasing user according to the purchase prompt information that the goods have been successfully purchased from the supply node; the supply node can output the supply The prompt information is used to prompt the supplying user according to the supply prompting information that the goods for sale have been successfully supplied to the purchasing user.
本实施例通过在检测到供应节点将待售商品的商品信息上传到区块链中,且接收到采购节点触发的采购待售商品的采购指令后,根据采购指令在区块链中更 新采购节点采购待售商品对应采购订单的订单状态,得到更新后的订单状态,并将更新后的订单状态同步到采购节点和供应节点中,以供采购节点和供应节点根据更新后的订单状态执行对应的操作,通过区块链来实现在采购商系统和供应商系统中同步采购订单的订单状态,订单状态以区块链中的状态为准,提高了供应商系统和采购商系统中订单状态的一致性。In this embodiment, after detecting that the supply node uploads the product information of the product for sale to the blockchain, and receives the purchase instruction for purchasing the product for sale triggered by the purchase node, the purchase node is updated in the blockchain according to the purchase instruction Purchasing goods for sale corresponds to the order status of the purchase order, obtains the updated order status, and synchronizes the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can execute the corresponding according to the updated order status Operation, realize the synchronization of the order status of the purchase order in the buyer system and the supplier system through the blockchain. The order status is subject to the status in the blockchain, which improves the consistency of the order status in the supplier system and the buyer system Sex.
进一步地,通过区块链将采购订单的订单状态同步到采购节点和供应节点中,实现了供应商系统和采购商系统不再需要记录采购订单的订单状态,采购商系统和供应商系统可同时从区块链中获取到采购订单的订单状态;避免了现有技术中订单状态以供应商系统为准,采购商系统需要智能主动查询或者等待供应商系统的订单状态通知,且避免了当存在大量商品交易时,产生大量的订单状态查询请求或者订单状态通知消息,降低了采购商系统和供应商系统的系统压力,提高了采购商系统获取采购订单状态的时效性。Further, the order status of the purchase order is synchronized to the purchase node and the supply node through the blockchain, which realizes that the supplier system and the purchaser system no longer need to record the order status of the purchase order, and the purchaser system and the supplier system can be simultaneously Obtain the order status of the purchase order from the blockchain; it avoids that the order status in the prior art is based on the supplier system. The buyer system needs to intelligently and actively inquire or wait for the order status notification from the supplier system, and avoids When a large number of commodities are traded, a large number of order status query requests or order status notification messages are generated, which reduces the system pressure of the buyer system and the supplier system, and improves the timeliness of the buyer system to obtain the status of the purchase order.
进一步地,由于现有技术中的订单状态以供应商系统为准,采购商系统只能被动的同步订单状态,因此会存在供应商系统篡改订单状态的风险,由于订单状态与资金密切相关,若订单状态被篡改,会降低商品交易的安全性。本申请实施例利用区块链进行同步订单状态,从而通过区块链中数据的不可篡改性,保证采购订单的订单状态不被篡改,保证了订单状态的准确性,以及提高了线上商品交易的安全性,且通过区块链实现了订单的链上审计和数据的可追溯。Furthermore, since the order status in the prior art is based on the supplier system, the buyer system can only passively synchronize the order status, so there is a risk that the supplier system will tamper with the order status. Since the order status is closely related to funds, if The order status is tampered with, which will reduce the security of commodity transactions. The embodiment of the application uses the blockchain to synchronize the order status, thereby ensuring that the order status of the purchase order is not tampered with through the immutable modification of the data in the blockchain, ensuring the accuracy of the order status, and improving online commodity transactions The security, and the on-chain audit of orders and the traceability of data are realized through the blockchain.
进一步地,提出本申请基于区块链的订单状态更新方法第二实施例。Further, a second embodiment of the method for updating the order status based on the blockchain of this application is proposed.
所述基于区块链的订单状态更新方法第二实施例与所述基于区块链的订单状态更新方法第一实施例的区别在于,参照图3,若所述采购指令为所述采购节点支付所述采购订单对应金额的支付指令,则步骤S20包括:The difference between the second embodiment of the blockchain-based order status update method and the first embodiment of the blockchain-based order status update method is that, referring to FIG. 3, if the purchase instruction is for the purchase node to pay For the payment instruction of the corresponding amount of the purchase order, step S20 includes:
步骤S21,若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态。Step S21, if the payment instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the paid status in the blockchain according to the payment instruction, and the updated status is obtained The status of the order.
需要说明的是,所述支付指令可选在采购订单生成之后的预设时间内定期提示采购用户基于界面触发,此外,还可选在供应节点冻结采购节点所需购买的商品后,供应节点上传冻结成功的成功消息到区块链中,以供采购节点从区块链 中获取该成功消息,根据该成功消息提示采购用户基于界面触发支付指令。It should be noted that the payment instruction can optionally prompt the purchasing user to trigger based on the interface periodically within a preset time after the purchase order is generated. In addition, it can also optionally be uploaded by the supply node after the supply node freezes the goods that the purchase node needs to purchase The successful success message is frozen in the blockchain so that the purchasing node can obtain the success message from the blockchain, and prompt the purchasing user to trigger the payment instruction based on the interface according to the success message.
当接收到采购节点发送的支付采购订单对应金额的支付指令后,在区块链中根据该支付指令将采购节点采购待售商品对应采购订单的订单状态更新为已支付状态,具体地,将采购订单的状态从已生成状态更新为已支付状态,得到更新后的订单状态。After receiving the payment instruction sent by the purchasing node to pay the corresponding amount of the purchase order, the order status of the purchase order corresponding to the purchase of goods for sale by the purchasing node is updated to the paid state according to the payment instruction in the blockchain. Specifically, the purchase The status of the order is updated from the generated status to the paid status, and the updated order status is obtained.
具体地,当将采购订单的已支付状态同步给采购节点和供应节点后,供应节点根据处于已支付状态的采购订单将对应待售商品的属性信息存储至区块链中,此时,采购节点可在区块链中下载该待售商品的属性信息,即触发下载待售商品属性信息的下载指令。Specifically, when the paid status of the purchase order is synchronized to the purchase node and the supply node, the supply node stores the attribute information of the corresponding commodity for sale in the blockchain according to the purchase order in the paid state. At this time, the purchase node The attribute information of the commodity for sale can be downloaded in the blockchain, that is, a download instruction to download the attribute information of the commodity for sale is triggered.
进一步地,为了保证采购订单的时效性,当采购订单处于已生效状态后,判断在预设时长内是否接收到支付指令。若在预设时长内接收到支付指令,则在区块链中根据支付指令将采购订单的订单状态从已生成状态更改为已更新状态,得到更新后的订单状态;若在预设时长内未接收到支付指令,则关闭区块链中存储采购订单,并将订单状态从已生成状态更改为已关闭状态。其中,预设时长可根据具体需要而设置,如可设置为3分钟、10分钟或者30分钟等,通过设置预设时长,防止长时间未支付而影响订单。Further, in order to ensure the timeliness of the purchase order, after the purchase order is in the effective state, it is determined whether a payment instruction is received within a preset time period. If the payment instruction is received within the preset time period, the order status of the purchase order will be changed from the generated state to the updated state according to the payment instruction in the blockchain, and the updated order status will be obtained; if not within the preset time period After receiving the payment instruction, the purchase order stored in the blockchain is closed, and the order status is changed from the generated state to the closed state. Among them, the preset time length can be set according to specific needs, such as 3 minutes, 10 minutes, or 30 minutes, etc. By setting the preset time length, the order can be prevented from being unpaid for a long time.
本实施例通过在接收到采购节点支付采购订单对应金额的支付指令后,在区块链中根据支付指令将采购节点采购待售商品对应采购订单的订单状态更新为已支付状态,以得到更新后的订单状态,通过区块链将采购订单的已支付状态同步到采购节点和供应节点中,提高了供应商系统和采购商系统中订单状态的一致性。In this embodiment, after receiving a payment instruction for the purchase node to pay the corresponding amount of the purchase order, the order status of the purchase order corresponding to the purchase of goods for sale by the purchase node is updated to the paid state in the blockchain according to the payment instruction to obtain the updated state The order status of the purchase order is synchronized to the purchase node and the supply node through the blockchain, which improves the consistency of the order status in the supplier system and the buyer system.
进一步地,提出本申请基于区块链的订单状态更新方法第三实施例。Further, a third embodiment of the method for updating the order status based on the blockchain of the present application is proposed.
所述基于区块链的订单状态更新方法第三实施例与所述基于区块链的订单状态更新方法第二实施例的区别在于,所述基于区块链的订单状态更新方法还包括:The difference between the third embodiment of the blockchain-based order status update method and the second embodiment of the blockchain-based order status update method is that the blockchain-based order status update method further includes:
步骤e,若侦测到所述清算指令,则获取区块链共享账本,根据所述区块链共享账本清算处于已支付状态的采购订单,得到清算结果。Step e: If the clearing instruction is detected, the blockchain shared ledger is obtained, and the purchase order in the paid state is cleared according to the blockchain shared ledger to obtain the clearing result.
步骤f,将所述清算结果对应发送给所述供应节点和所述采购节点。Step f: Send the clearing result to the supply node and the purchase node correspondingly.
实时或者定时检测是否侦测到清算指令。若侦测到清算指令,则获取区块链共享账本。其中,该清算指令可为采购节点或者供应节点发送的。在区块链共享账本中,存储有各笔商品交易的交易信息,交易信息包括但不限于采购商名称、供应商名称、交易时间、采购的商品名称、数量和金额。当获取到区块链共享账本时,根据区块链共享账本清算处于已支付状态的采购订单,得到清算结果,并将该清算结果对应发送给供应节点和采购节点。在清算结果中,含有供应节点所供应商品的数量、名称和供应商品所得的金额等,以及含有采购节点所购买的商品的数量、名称和所购买商品所支付的金额等。进一步地,若未侦测到清算指令,则继续检测是否侦测到清算指令。Real-time or timing detection whether a clearing order is detected. If a clearing instruction is detected, the blockchain shared ledger is obtained. Wherein, the clearing instruction may be sent by the purchasing node or the supply node. In the blockchain shared ledger, the transaction information of each commodity transaction is stored. The transaction information includes but is not limited to the name of the buyer, the name of the supplier, the transaction time, the name of the purchased commodity, the quantity and the amount. When the blockchain shared ledger is obtained, the purchase order in the paid state is cleared according to the blockchain shared ledger, and the clearing result is obtained, and the clearing result is correspondingly sent to the supply node and the purchase node. In the clearing result, the quantity and name of the goods supplied by the supply node and the amount of the goods supplied, etc., and the quantity and name of the goods purchased by the procurement node, and the amount paid for the purchased goods are included. Further, if the clearing instruction is not detected, continue to detect whether the clearing instruction is detected.
进一步地,所述基于区块链的订单状态更新方法还包括:Further, the method for updating the order status based on the blockchain further includes:
步骤g,获取当前时间,并判断所述当前时间是否处于预设清算时间段内。Step g: Obtain the current time, and determine whether the current time is within a preset liquidation time period.
步骤h,若所述当前时间处于预设清算时间段内,则触发所述清算指令。Step h, if the current time is within the preset clearing time period, trigger the clearing instruction.
进一步地,获取当前时间,并判断当前时间是否处于预设清算时间段内。若确定当前时间处于预设清算时间段内,则自动触发清算指令;若确定当前时间未处于预设清算时间段内,则继续判断当前时间是否处于预设清算时间段内。其中,预设清算时间段可根据具体需要而设置,如可将预设清算时间段设置为每天下午4:00至4:30之间,或者设置在5:00至5:45之间等。Further, the current time is obtained, and it is determined whether the current time is within the preset liquidation time period. If it is determined that the current time is within the preset clearing time period, the clearing instruction is automatically triggered; if it is determined that the current time is not within the preset clearing time period, continue to determine whether the current time is within the preset clearing time period. Among them, the preset clearing time period can be set according to specific needs. For example, the preset clearing time period can be set between 4:00 and 4:30 pm every day, or between 5:00 and 5:45.
进一步地,所述基于区块链的订单状态更新方法还包括:Further, the method for updating the order status based on the blockchain further includes:
步骤i,将所述清算结果发送给划拨机构,以供所述划拨机构根据所述清算结果在采购节点账户中划拨对应金额至供应节点账户中。Step i: Send the clearing result to the transfer agency, so that the transfer agency transfers the corresponding amount from the purchase node account to the supply node account according to the clearing result.
进一步地,当得到清算结果后,将该清算结果发送给划拨机构。当划拨机构接收到清算结果后,划拨机构根据清算结果在采购节点账户中划拨对应金额至供应节点账户中,具体地,划拨与采购订单对应金额至供应节点账户中。需要说明的是,发送给采购节点的清算结果只包括与采购节点相关的信息,如包括采购节点所购买的商品的数量、名称和所购买商品所支付的金额等;发送给供应节点的清算结果只包括与供应节点相关的信息,如包括供应节点所供应商品的数量、名称和所得的金额等;而发送给划拨机构的清算结果包括了采购节点相关的信息和供应节点的相关信息。Further, when the clearing result is obtained, the clearing result is sent to the transfer agency. After the transfer agency receives the clearing result, the transfer agency transfers the corresponding amount from the purchase node account to the supply node account according to the clearing result, specifically, transfers the amount corresponding to the purchase order to the supply node account. It should be noted that the clearing result sent to the purchasing node only includes information related to the purchasing node, such as the quantity and name of the goods purchased by the purchasing node, and the amount paid for the purchased goods; the clearing result sent to the supply node Only the information related to the supply node is included, such as the quantity, name, and amount of goods supplied by the supply node; and the clearing result sent to the transfer agency includes the information related to the purchase node and the related information of the supply node.
本实施例通过在侦测到清算指令,则获取区块链共享账本,根据区块链共享账本清算处于已支付状态的采购订单,得到清算结果,并将清算结果发送给供应节点和采购节点,以供采购节点和供应节点及时获取清算结果,不需要供应商和采购商从对应系统中导出账单后再进行对账,提高了采购订单的清算效率;将清算结果发送给划拨机构,以供划拨机构根据该清算结果在采购节点账户中划拨对应金额至供应节点账户中,实现了金额的智能划拨。In this embodiment, by detecting the clearing instruction, the blockchain shared ledger is obtained, the purchase order in the paid state is cleared according to the blockchain shared ledger, the clearing result is obtained, and the clearing result is sent to the supply node and the purchasing node, In order for the procurement node and the supply node to obtain the clearing result in time, it is not necessary for the supplier and the purchaser to export the bill from the corresponding system to reconcile the account, which improves the clearing efficiency of the purchase order; sends the clearing result to the transfer agency for transfer The organization transfers the corresponding amount from the purchase node account to the supply node account according to the settlement result, realizing the intelligent transfer of the amount.
本申请还提供一种基于区块链的订单状态更新装置。This application also provides a block chain-based order status update device.
参照图4,图4为本申请基于区块链的订单状态更新装置第一实施例的功能模块示意图。所述基于区块链的订单状态更新装置包括:Referring to FIG. 4, FIG. 4 is a schematic diagram of the functional modules of the first embodiment of the device for updating the order status based on the blockchain of the present application. The block chain-based order status update device includes:
检测模块10,用于当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;The detection module 10 is configured to detect whether a purchase instruction for purchasing the commodity for sale triggered by the purchasing node is received after it is detected that the supply node uploads the commodity information of the commodity for sale to the blockchain;
更新模块20,用于若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;The update module 20 is configured to, if the purchase instruction is received, update the purchase order status of the purchase order corresponding to the purchase of the commodity for sale by the purchase node in the blockchain according to the purchase instruction to obtain the updated all State the order status;
同步模块30,用于将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The synchronization module 30 is configured to synchronize the updated order status to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
进一步地,当所述采购指令为上传所述采购节点采购所述待售商品的订单信息的上传指令时,所述更新模块20包括:Further, when the purchase instruction is an upload instruction for uploading the order information of the purchase node to purchase the commodity for sale, the update module 20 includes:
生成单元,用于若接收到所述上传指令,则在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单;A generating unit, configured to, if the upload instruction is received, generate a purchase order for the purchasing node to purchase the commodity for sale in the blockchain according to the upload instruction;
初始化单元,用于将所述采购订单的状态初始化为已生成状态,得到更新后的订单状态。The initialization unit is used to initialize the state of the purchase order to the generated state to obtain the updated order state.
进一步地,生成单元包括:Further, the generating unit includes:
获取子单元,用于在所述区块链中获取所述上传指令对应的订单信息,并从所述订单信息中获取创建订单的订单参数;The obtaining subunit is configured to obtain order information corresponding to the upload instruction in the blockchain, and obtain order parameters for creating an order from the order information;
生成子单元,用于基于所述订单参数和预设的订单生成规则,生成所述采购节点采购所述待售商品的采购订单,其中,所述预设的订单生成规则包括:将订 单参数添加到订单模板中事先设置的位置中,以生成采购订单;或者,用预设的连接符将订单参数连接起来,得到采购订单。A generating subunit is used to generate a purchase order for the purchase node to purchase the commodity for sale based on the order parameters and preset order generation rules, wherein the preset order generation rule includes: adding order parameters Go to the pre-set position in the order template to generate a purchase order; or, use the preset connector to connect the order parameters to get the purchase order.
进一步地,当所述采购指令为所述采购节点支付所述采购订单对应金额的支付指令时,所述更新模块20还用于若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态。Further, when the purchase instruction is a payment instruction for the purchase node to pay the amount corresponding to the purchase order, the update module 20 is further configured to, if the payment instruction is received, perform the payment in the blockchain according to The payment instruction updates the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node to the paid status, and obtains the updated order status.
进一步地,所述基于区块链的订单状态更新装置还包括:Further, the block chain-based order status update device further includes:
获取模块,若侦测到所述清算指令,则获取区块链共享账本;The obtaining module, if the clearing instruction is detected, obtain the blockchain shared ledger;
清算模块,用于根据所述区块链共享账本清算处于已支付状态的采购订单,得到清算结果;The clearing module is used to clear the purchase order in the paid state according to the blockchain shared ledger to obtain the clearing result;
发送模块,用于将所述清算结果对应发送给所述供应节点和所述采购节点。The sending module is used to send the clearing result to the supply node and the purchase node correspondingly.
进一步地,所述获取模块还用于获取当前时间;Further, the acquiring module is also used to acquire the current time;
所述基于区块链的订单状态更新装置还包括:判断模块,用于判断所述当前时间是否处于预设清算时间段内;触发模块,用于若所述当前时间处于预设清算时间段内,则触发所述清算指令。The block chain-based order status update device further includes: a judgment module for judging whether the current time is within a preset clearing time period; a triggering module for if the current time is within a preset clearing time period , The liquidation instruction is triggered.
进一步地,所述发送模块还用于将所述清算结果发送给划拨机构,以供所述划拨机构根据所述清算结果在采购节点账户中划拨对应金额至供应节点账户中。Further, the sending module is further configured to send the clearing result to a transfer agency, so that the transfer agency transfers the corresponding amount from the purchasing node account to the supply node account according to the clearing result.
进一步地,当所述采购指令为所述采购节点下载所述待售商品属性信息的下载指令时,所述更新模块20还用于若接收到所述下载指令,则在所述区块链中根据所述下载指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的所述订单状态。Further, when the purchase instruction is a download instruction for the purchase node to download the attribute information of the commodity for sale, the update module 20 is further configured to log in the blockchain if the download instruction is received According to the download instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to a completed status, and the updated order status is obtained.
进一步地,所述采购节点和所述供应节点采用相同的应用程序编程接口API接口连接到所述区块链中。Further, the procurement node and the supply node are connected to the blockchain using the same application programming interface (API).
本申请基于区块链的订单状态更新装置具体实施方式与上述基于区块链的订单状态更新方法各实施例基本相同,在此不再赘述。The specific implementation of the block chain-based order status update device of the present application is basically the same as the foregoing embodiments of the block chain-based order status update method, and will not be repeated here.
此外,本申请实施例还提出一种计算机可读存储介质。In addition, the embodiment of the present application also proposes a computer-readable storage medium.
计算机可读存储介质上存储有基于区块链的订单状态更新程序,基于区块链的订单状态更新程序被处理器执行时实现如上所述的基于区块链的订单状态更新 方法的步骤。The computer-readable storage medium stores a blockchain-based order status update program, and when the blockchain-based order status update program is executed by a processor, the steps of the blockchain-based order status update method as described above are implemented.
本申请计算机可读存储介质具体实施方式与上述基于区块链的订单状态更新方法各实施例基本相同,在此不再赘述。The specific implementation of the computer-readable storage medium of the present application is basically the same as the foregoing embodiments of the blockchain-based order status update method, and will not be repeated here.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,这些均属于本申请的保护之内。The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can be made, any equivalent structure or equivalent process transformation made by using the content of the description and drawings of this application, or Directly or indirectly used in other related technical fields, these are all protected by this application.

Claims (20)

  1. 一种基于区块链的订单状态更新方法,其中,所述基于区块链的订单状态更新方法包括以下步骤:A block chain-based order status update method, wherein the block chain-based order status update method includes the following steps:
    当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;When it is detected that the supply node uploads the product information of the product for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the product for sale is received;
    若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;If the purchase instruction is received, update the order status of the purchase order corresponding to the purchase order by the purchase node to purchase the commodity for sale in the blockchain according to the purchase instruction to obtain the updated order status;
    将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  2. 如权利要求1所述的基于区块链的订单状态更新方法,其中,当所述采购指令为上传所述采购节点采购所述待售商品的订单信息的上传指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The method for updating the order status based on the blockchain according to claim 1, wherein when the purchase instruction is an upload instruction for uploading the order information of the purchase node to purchase the goods for sale, the The purchase instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述上传指令,则在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单,并将所述采购订单的状态初始化为已生成状态,得到更新后的订单状态。If the upload instruction is received, a purchase order for the purchasing node to purchase the commodity for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to the generated state, Get the updated order status.
  3. 如权利要求2所述的基于区块链的订单状态更新方法,其中,所述在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单的步骤包括:The block chain-based order status update method according to claim 2, wherein the step of generating a purchase order for the purchase node to purchase the goods for sale in the block chain according to the upload instruction comprises :
    在所述区块链中获取所述上传指令对应的订单信息,并从所述订单信息中获取创建订单的订单参数;Obtaining order information corresponding to the upload instruction in the blockchain, and obtaining order parameters for creating an order from the order information;
    基于所述订单参数和预设的订单生成规则,生成所述采购节点采购所述待售商品的采购订单,其中,所述预设的订单生成规则包括:将订单参数添加到订单模板中事先设置的位置中,以生成采购订单;或者,用预设的连接符将订单参数连接起来,得到采购 订单。Based on the order parameters and preset order generation rules, a purchase order for the purchase node to purchase the goods for sale is generated, where the preset order generation rules include: adding order parameters to an order template and setting in advance To generate a purchase order; or, use the preset connector to connect the order parameters to obtain a purchase order.
  4. 如权利要求1所述的基于区块链的订单状态更新方法,其中,当所述采购指令为所述采购节点支付所述采购订单对应金额的支付指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The block chain-based order status update method according to claim 1, wherein when the purchase instruction is the purchase node to pay a payment instruction corresponding to the amount of the purchase order, if the purchase instruction is received , The order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态。If the payment instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the paid status in the blockchain according to the payment instruction, and the updated state is obtained. Order Status.
  5. 如权利要求4所述的基于区块链的订单状态更新方法,其中,所述若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态的步骤之后,还包括:The method for updating the order status based on the blockchain of claim 4, wherein, if the payment instruction is received, the purchasing node purchases the purchase node in the blockchain according to the payment instruction The order status of the purchase order corresponding to the goods for sale is updated to the paid status, and after the step of obtaining the updated order status, it also includes:
    若侦测到所述清算指令,则获取区块链共享账本,根据所述区块链共享账本清算处于已支付状态的采购订单,得到清算结果;If the clearing instruction is detected, obtain the blockchain shared ledger, clear the purchase order in the paid state according to the blockchain shared ledger, and obtain the clearing result;
    将所述清算结果对应发送给所述供应节点和所述采购节点。Send the clearing result to the supply node and the purchase node correspondingly.
  6. 如权利要求1所述的基于区块链的订单状态更新方法,其中,当所述采购指令为所述采购节点下载所述待售商品属性信息的下载指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The method for updating the order status based on the blockchain according to claim 1, wherein when the purchase instruction is a download instruction for the purchase node to download the attribute information of the commodity for sale, if the purchase is received Instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述下载指令,则在所述区块链中根据所述下载指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的所述订单状态。If the download instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the completed state in the blockchain according to the download instruction, and the updated state is obtained. Order Status.
  7. 如权利要求1所述的基于区块链的订单状态更新方法,其中,所述采购节点和所述供应节点采用相同的应用程序编程接口API接口连接到所述区块链中。The method for updating the order status based on the blockchain of claim 1, wherein the purchasing node and the supply node are connected to the blockchain using the same application programming interface (API).
  8. 一种基于区块链的订单状态更新装置,其中,所述基于区块链的 订单状态更新装置包括:A block chain-based order status update device, wherein the block chain-based order status update device includes:
    检测模块,用于当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;The detection module is used to detect whether a purchase instruction triggered by the purchasing node to purchase the commodity for sale is received after it is detected that the supply node uploads the commodity information of the commodity for sale to the blockchain;
    更新模块,用于若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;The update module is configured to, if the purchase instruction is received, update the order status of the purchase order corresponding to the purchase of the goods for sale by the purchase node in the blockchain according to the purchase instruction to obtain the updated Order Status;
    同步模块,用于将更新后的订单-状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The synchronization module is used to synchronize the updated order-status to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  9. 如权利要求8所述的基于区块链的订单状态更新装置,其中,当所述采购指令为上传所述采购节点采购所述待售商品的订单信息的上传指令时,所述更新模块包括:8. The block chain-based order status update device according to claim 8, wherein, when the purchase instruction is an upload instruction for uploading order information for the purchase node to purchase the commodity for sale, the update module comprises:
    生成单元,用于若接收到所述上传指令,则在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单;A generating unit, configured to, if the upload instruction is received, generate a purchase order for the purchasing node to purchase the commodity for sale in the blockchain according to the upload instruction;
    初始化单元,用于将所述采购订单的状态初始化为已生成状态,得到更新后的订单状态。The initialization unit is used to initialize the state of the purchase order to the generated state to obtain the updated order state.
  10. 如权利要求9所述的基于区块链的订单状态更新装置,其中,所述生成单元包括:9. The block chain-based order status update device according to claim 9, wherein the generating unit comprises:
    获取子单元,用于在所述区块链中获取所述上传指令对应的订单信息,并从所述订单信息中获取创建订单的订单参数;The obtaining subunit is configured to obtain order information corresponding to the upload instruction in the blockchain, and obtain order parameters for creating an order from the order information;
    生成子单元,用于基于所述订单参数和预设的订单生成规则,生成所述采购节点采购所述待售商品的采购订单,其中,所述预设的订单生成规则包括:将订单参数添加到订单模板中事先设置的位置中,以生成采购订单;或者,用预设的连接符将订单参数连接起来,得到采购订单。A generation subunit is used to generate a purchase order for the purchase node to purchase the commodity for sale based on the order parameters and preset order generation rules, wherein the preset order generation rule includes: adding order parameters Go to the pre-set position in the order template to generate a purchase order; or, use the preset connector to connect the order parameters to get the purchase order.
  11. 如权利要求8所述的基于区块链的订单状态更新装置,其中,当所述采购指令为所述采购节点支付所述采购订单对应金额的支付指 令时,所述更新模块还用于若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态。The block chain-based order status update device according to claim 8, wherein, when the purchase instruction is the purchase node to pay a payment instruction corresponding to the amount of the purchase order, the update module is further configured to receive When the payment instruction is reached, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the paid status according to the payment instruction in the blockchain, and the updated order status is obtained .
  12. 如权利要求11所述的基于区块链的订单状态更新装置,其中,所述基于区块链的订单状态更新装置还包括:The block chain-based order status update device according to claim 11, wherein the block chain-based order status update device further comprises:
    获取模块,若侦测到所述清算指令,则获取区块链共享账本;The obtaining module, if the clearing instruction is detected, obtain the blockchain shared ledger;
    清算模块,用于根据所述区块链共享账本清算处于已支付状态的采购订单,得到清算结果;The clearing module is used to clear the purchase order in the paid state according to the blockchain shared ledger to obtain the clearing result;
    发送模块,用于将所述清算结果对应发送给所述供应节点和所述采购节点。The sending module is used to send the clearing result to the supply node and the purchase node correspondingly.
  13. 如权利要求8所述的基于区块链的订单状态更新装置,其中,当所述采购指令为所述采购节点下载所述待售商品属性信息的下载指令时,所述更新模块还用于若接收到所述下载指令,则在所述区块链中根据所述下载指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的所述订单状态。The block chain-based order status update device according to claim 8, wherein, when the purchase instruction downloads the download instruction of the attribute information of the commodity for sale for the purchase node, the update module is further configured to: Upon receiving the download instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node in the blockchain is updated to the completed state according to the download instruction to obtain the updated order status.
  14. 如权利要求8所述的基于区块链的订单状态更新装置,其中,所述采购节点和所述供应节点采用相同的应用程序编程接口API接口连接到所述区块链中。8. The block chain-based order status update device according to claim 8, wherein the purchasing node and the supply node are connected to the block chain by using the same application programming interface (API).
  15. 一种基于区块链的订单状态更新设备,其中,所述基于区块链的订单状态更新设备包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的基于区块链的订单状态更新程序,所述基于区块链的订单状态更新程序被所述处理器执行时实现如下步骤:A block chain-based order status update device, wherein the block chain-based order status update device includes a memory, a processor, and a block-based device that is stored in the memory and can run on the processor The order status update program of the chain, when the blockchain-based order status update program is executed by the processor, the following steps are implemented:
    当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;When it is detected that the supply node uploads the product information of the product for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the product for sale is received;
    若接收到所述采购指令,则在所述区块链中根据所述采购指令更 新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;If the purchase instruction is received, update the order status of the purchase order corresponding to the purchase order by the purchase node to purchase the commodity for sale in the blockchain according to the purchase instruction, to obtain the updated order status;
    将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
  16. 如权利要求15所述的基于区块链的订单状态更新设备,其中,当所述采购指令为上传所述采购节点采购所述待售商品的订单信息的上传指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The block chain-based order status update device according to claim 15, wherein, when the purchase instruction is an upload instruction for uploading the order information of the purchase node to purchase the goods for sale, if the purchase instruction is received The purchase instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述上传指令,则在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单,并将所述采购订单的状态初始化为已生成状态,得到更新后的订单状态。If the upload instruction is received, a purchase order for the purchasing node to purchase the commodity for sale is generated in the blockchain according to the upload instruction, and the state of the purchase order is initialized to the generated state, Get the updated order status.
  17. 如权利要求16所述的基于区块链的订单状态更新设备,其中,所述在所述区块链中根据所述上传指令生成所述采购节点采购所述待售商品的采购订单的步骤包括:The block chain-based order status update device according to claim 16, wherein the step of generating a purchase order for the purchase node to purchase the goods for sale in the block chain according to the upload instruction comprises :
    在所述区块链中获取所述上传指令对应的订单信息,并从所述订单信息中获取创建订单的订单参数;Obtaining order information corresponding to the upload instruction in the blockchain, and obtaining order parameters for creating an order from the order information;
    基于所述订单参数和预设的订单生成规则,生成所述采购节点采购所述待售商品的采购订单,其中,所述预设的订单生成规则包括:将订单参数添加到订单模板中事先设置的位置中,以生成采购订单;或者,用预设的连接符将订单参数连接起来,得到采购订单。Based on the order parameters and preset order generation rules, a purchase order for the purchase node to purchase the goods for sale is generated, where the preset order generation rules include: adding order parameters to an order template and setting in advance To generate a purchase order; or, use the preset connector to connect the order parameters to obtain a purchase order.
  18. 如权利要求15所述的基于区块链的订单状态更新设备,其中,当所述采购指令为所述采购节点支付所述采购订单对应金额的支付指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The block chain-based order status update device according to claim 15, wherein when the purchase instruction is a payment instruction for the purchase node to pay the corresponding amount of the purchase order, if the purchase instruction is received , The order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述支付指令,则在所述区块链中根据所述支付指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已支付状态,得到更新后的所述订单状态。If the payment instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the paid status in the blockchain according to the payment instruction, and the updated state is obtained. Order Status.
  19. 如权利要求15所述的基于区块链的订单状态更新设备,其中,当所述采购指令为所述采购节点下载所述待售商品属性信息的下载指令时,所述若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态的步骤包括:The block chain-based order status update device according to claim 15, wherein, when the purchase instruction is a download instruction for the purchase node to download the attribute information of the commodity for sale, if the purchase is received Instruction, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated in the blockchain according to the purchase instruction, and the step of obtaining the updated order status includes:
    若接收到所述下载指令,则在所述区块链中根据所述下载指令将所述采购节点采购所述待售商品对应采购订单的订单状态更新为已完成状态,得到更新后的所述订单状态。If the download instruction is received, the order status of the purchase order corresponding to the purchase of the commodity for sale by the purchasing node is updated to the completed state in the blockchain according to the download instruction, and the updated state is obtained. Order Status.
  20. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有基于区块链的订单状态更新程序,所述基于区块链的订单状态更新程序被处理器执行时实现如下步骤:A computer-readable storage medium, wherein a blockchain-based order status update program is stored on the computer-readable storage medium, and the following steps are implemented when the blockchain-based order status update program is executed by a processor:
    当检测到供应节点将待售商品的商品信息上传到区块链中后,检测是否接收到采购节点触发的采购所述待售商品的采购指令;When it is detected that the supply node uploads the product information of the product for sale to the blockchain, it is detected whether a purchase instruction triggered by the purchasing node to purchase the product for sale is received;
    若接收到所述采购指令,则在所述区块链中根据所述采购指令更新所述采购节点采购所述待售商品对应采购订单的订单状态,得到更新后的所述订单状态;If the purchase instruction is received, update the order status of the purchase order corresponding to the purchase order by the purchase node to purchase the commodity for sale in the blockchain according to the purchase instruction to obtain the updated order status;
    将更新后的订单状态同步到所述采购节点和所述供应节点中,以供所述采购节点和所述供应节点根据更新后的所述订单状态执行对应的操作。The updated order status is synchronized to the purchasing node and the supply node, so that the purchasing node and the supply node can perform corresponding operations according to the updated order status.
PCT/CN2020/076397 2019-03-28 2020-02-24 Blockchain-based order state updating method, apparatus and device, and storage medium WO2020192328A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910246154.1 2019-03-28
CN201910246154.1A CN109948989A (en) 2019-03-28 2019-03-28 Order status update method, device, equipment and storage medium based on block chain

Publications (1)

Publication Number Publication Date
WO2020192328A1 true WO2020192328A1 (en) 2020-10-01

Family

ID=67012803

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/076397 WO2020192328A1 (en) 2019-03-28 2020-02-24 Blockchain-based order state updating method, apparatus and device, and storage medium

Country Status (2)

Country Link
CN (1) CN109948989A (en)
WO (1) WO2020192328A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain
CN111260446A (en) * 2020-02-03 2020-06-09 深圳点链科技有限公司 Block chain-based delivery management method, device, equipment and readable storage medium
CN111652694B (en) * 2020-06-10 2023-04-07 北京字节跳动网络技术有限公司 Order processing method and device and electronic equipment
CN112766948B (en) * 2021-01-12 2024-03-26 深圳前海微众银行股份有限公司 Block chain-based clearing method, device, equipment and computer storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180075422A1 (en) * 2016-09-12 2018-03-15 Baton Systems, Inc. Financial management systems and methods
CN108520307A (en) * 2018-03-31 2018-09-11 深圳慧通商务有限公司 Data processing method and relevant apparatus
CN108711099A (en) * 2018-06-07 2018-10-26 深圳鑫宏图工业设计有限公司 A kind of financial system management method, electronic equipment and storage medium
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190066068A1 (en) * 2017-08-22 2019-02-28 Sap Se Transaction Platform Providing Unified Interaction with Multiple Heterogeneous Blockchains
CN108647969A (en) * 2018-05-16 2018-10-12 深圳市网心科技有限公司 A kind of method, apparatus, system and the storage medium of access block chain
CN109086628A (en) * 2018-08-14 2018-12-25 广东工业大学 A kind of order processing method and relevant apparatus
CN109102308A (en) * 2018-09-05 2018-12-28 深圳正品创想科技有限公司 Merchandise news maintaining method, block chain node and its system based on block chain
CN109272388A (en) * 2018-09-25 2019-01-25 杭州复杂美科技有限公司 A kind of purchase method based on block chain, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180075422A1 (en) * 2016-09-12 2018-03-15 Baton Systems, Inc. Financial management systems and methods
CN108520307A (en) * 2018-03-31 2018-09-11 深圳慧通商务有限公司 Data processing method and relevant apparatus
CN108711099A (en) * 2018-06-07 2018-10-26 深圳鑫宏图工业设计有限公司 A kind of financial system management method, electronic equipment and storage medium
CN109948989A (en) * 2019-03-28 2019-06-28 深圳前海微众银行股份有限公司 Order status update method, device, equipment and storage medium based on block chain

Also Published As

Publication number Publication date
CN109948989A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
WO2020192328A1 (en) Blockchain-based order state updating method, apparatus and device, and storage medium
US11676143B2 (en) Systems and methods for blockchain transaction management
US20220237582A1 (en) Wireless data communication interface
US5889863A (en) System, method and article of manufacture for remote virtual point of sale processing utilizing a multichannel, extensible, flexible architecture
CN109643415A (en) Trade management technology
CN109844790A (en) The method and system of general controls account behaviors
KR102182072B1 (en) Method of managing digital asset backed by real-asset and real-asset exchange system using thereof
US20230214820A1 (en) Method and gui for settlement of commodity contracts denominated in commodity contract tokens
US20220114580A1 (en) Tokenized energy settlements application
JP2000207466A (en) Electronic commercial transaction method and means with electronic commerical transaction document as medium and recording medium with program recorded therein
AU2024204882A1 (en) Computer Network System and Process for Collecting Tax on Online Commerce
US11341474B2 (en) Systems, devices, and methods for network management at a point of sale (POS) device
EP4172763A1 (en) Cluster job submission
CA2988809C (en) Cross-funds management server-based payment system, and method, device and server therefor
CN113592478A (en) Digital commodity transaction method, computer device and storage medium
TWI807142B (en) System and method for managing transaction risk
KR102294623B1 (en) Purchasing goods relay system and method based on blockchain
CA2988818C (en) Cross-funds management server-based payment system, and method, device and server
CA2986822C (en) Network transaction information processing method and system
US20220358459A1 (en) Distributed Ledger Platform for Improved Return Logistics
CA3057528C (en) Payment system based on different funds-management servers, and payment method, device and server therefor
CA3082102A1 (en) Cross-funds management server-based payment system, method, device and server
CA2987449A1 (en) Payment system based on different funds-management servers, and payment method, device and server therefor
TWI847047B (en) System and method for digital currency management
KR100360589B1 (en) Method for managing of agent in electrical commercial transaction and apparatus for performing the same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20780000

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20780000

Country of ref document: EP

Kind code of ref document: A1