CN111461623A - Block chain-based warehouse bill creating method, device and equipment - Google Patents

Block chain-based warehouse bill creating method, device and equipment Download PDF

Info

Publication number
CN111461623A
CN111461623A CN202010305747.3A CN202010305747A CN111461623A CN 111461623 A CN111461623 A CN 111461623A CN 202010305747 A CN202010305747 A CN 202010305747A CN 111461623 A CN111461623 A CN 111461623A
Authority
CN
China
Prior art keywords
warehouse
manifest
data structure
information
intelligent contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010305747.3A
Other languages
Chinese (zh)
Other versions
CN111461623B (en
Inventor
彭玉军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010305747.3A priority Critical patent/CN111461623B/en
Publication of CN111461623A publication Critical patent/CN111461623A/en
Application granted granted Critical
Publication of CN111461623B publication Critical patent/CN111461623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Abstract

The embodiment of the specification provides a warehouse slip creating method, a warehouse slip creating device and warehouse slip creating equipment based on a block chain, wherein the method comprises the following steps: the block chain link point receives a warehouse slip creating request sent by a client, and determines a target intelligent contract from a plurality of intelligent contracts included in the block chain according to warehouse slip information of a warehouse slip to be created, wherein the warehouse slip creating request comprises the warehouse slip information; calling a target intelligent contract, and creating a warehouse slip based on warehouse slip information and a warehouse slip data structure included by the target intelligent contract; and sending the created warehouse bill to the client. The intelligent contract is deployed based on a warehouse receipt data structure creation request sent by a client; each intelligent contract includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest.

Description

Block chain-based warehouse bill creating method, device and equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for creating a manifest based on a block chain.
Background
The storage bill is a certificate for taking the storage after the custodian receives the storage and pays the stockman. In order to improve the purchase efficiency of the warehouse slip, a plurality of warehouse slip templates are usually preset, and a corresponding warehouse slip is created based on the plurality of warehouse slip templates. However, as the number of stockers increases and the types of storage increase, several preset fixed form templates have failed to satisfy diversified stock sheet creation needs.
Disclosure of Invention
One or more embodiments of the present specification provide a blockchain-based manifest creation method, which is applied to blockchain nodes. The method includes receiving a manifest creation request sent by a client. Wherein the manifest creation request is sent based on a user's manifest creation operation, the manifest creation request including manifest information for a manifest to be created. And determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse bill information. Wherein the smart contract is deployed based on a client-sent manifest data structure creation request. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. Invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract. And sending the created warehouse bill to the client.
One or more embodiments of the present specification provide a block chain-based manifest creation method, which is applied to a client. The method includes sending a manifest creation request to a block link point in response to a user's manifest creation operation. The order creating request comprises order information of an order to be created, so that the block link points create the order according to the order information and an order data structure included by the determined target intelligent contract. The intelligent contract is deployed based on a client-sent manifest data structure creation request. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. And displaying the received warehouse list sent by the block chain node.
One or more embodiments of the present specification provide a blockchain-based manifest creation apparatus, which is applied to a blockchain node. The device comprises a receiving module for receiving a warehouse receipt creating request sent by a client. Wherein the manifest creation request is transmitted based on a user's manifest creation operation, the manifest creation request including manifest information of a manifest to be created. The apparatus also includes a determination module that determines a target intelligent contract from a plurality of intelligent contracts included in the blockchain based on the manifest information. Wherein the smart contract is deployed based on a client-sent manifest data structure creation request. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. The apparatus also includes a first creation module that invokes the target intelligent contract to create a manifest based on the manifest information and the manifest data structure included in the target intelligent contract. The apparatus also includes a sending module that sends the created manifest to the client.
One or more embodiments of the present specification provide a block chain-based manifest creation apparatus, which is applied to a client. The apparatus includes a sending module that sends a manifest creation request to a block link point in response to a user's manifest creation operation. The order creating request comprises order information of an order to be created, so that the block link points create the order according to the order information and an order data structure included by the determined target intelligent contract. The intelligent contract is deployed based on a manifest data structure creation request sent by the client. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. The apparatus further includes a receiving module that receives the manifest sent by the blockchain node. The device also includes a display module that displays the received manifest.
One or more embodiments of the present specification provide a blockchain-based manifest creation apparatus. The apparatus includes a processor. The apparatus also comprises a memory arranged to store computer executable instructions. The computer-executable instructions, when executed, receive a client-sent manifest creation request. Wherein the manifest creation request is sent based on a user's manifest creation operation. The order creation request includes order information for an order to be created. And determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse bill information. Wherein the smart contract is deployed based on a client-sent manifest data structure creation request. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. Invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract. And sending the created warehouse bill to the client.
One or more embodiments of the present specification provide a blockchain-based manifest creation apparatus. The apparatus includes a processor. The apparatus also comprises a memory arranged to store computer executable instructions. The computer-executable instructions, when executed, send a manifest creation request to a block link point in response to a user's manifest creation operation. The order creating request comprises order information of an order to be created, so that the block link points create the order according to the order information and an order data structure included by the determined target intelligent contract. The intelligent contract is deployed based on a manifest data structure creation request sent by the client. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. And displaying the received warehouse list sent by the block chain node.
One or more embodiments of the present specification provide a storage medium. The storage medium is used to store computer-executable instructions. The computer-executable instructions, when executed, receive a client-sent manifest creation request. Wherein the manifest creation request is sent based on a user's manifest creation operation. The order creation request includes order information for an order to be created. And determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse bill information. Wherein the smart contract is deployed based on a client-sent manifest data structure creation request. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. Invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract. And sending the created warehouse bill to the client.
One or more embodiments of the present specification provide a storage medium. The storage medium is used to store computer-executable instructions. The computer-executable instructions, when executed, send a manifest creation request to a block link point in response to a user's manifest creation operation. The order creating request comprises order information of an order to be created, so that the block link points create the order according to the order information and an order data structure included by the determined target intelligent contract. The intelligent contract is deployed based on a manifest data structure creation request sent by the client. Each of the intelligent contracts includes a manifest data structure, and a plurality of the manifest data structures having an extended relationship may be superimposed to create a manifest. And displaying the received warehouse list sent by the block chain node.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and that other drawings can be obtained by those skilled in the art without inventive exercise.
Fig. 1 is a schematic view of a scenario of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 2 is a first flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 3 is a second flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 4 is a third flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 5 is a fourth flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 6 is a fifth flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
FIG. 7 is a first flowchart of a blockchain-based manifest data structure creation method according to one or more embodiments of the present disclosure;
FIG. 8 is a second flowchart of a blockchain-based manifest data structure creation method according to one or more embodiments of the present disclosure;
FIG. 9 is a third flowchart of a blockchain-based manifest data structure creation method according to one or more embodiments of the present disclosure;
fig. 10 is a sixth flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 11 is a seventh flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 12 is an eighth flowchart of a blockchain-based method for creating a manifest according to one or more embodiments of the present disclosure;
fig. 13 is a schematic diagram illustrating a first module composition of a blockchain-based manifest creation apparatus according to one or more embodiments of the present disclosure;
fig. 14 is a schematic diagram illustrating a second module composition of a blockchain-based manifest creation apparatus according to one or more embodiments of the present disclosure;
fig. 15 is a schematic structural diagram of a blockchain-based manifest creation apparatus according to one or more embodiments of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
Fig. 1 is a schematic view of an application scenario of a block chain-based warehouse slip creation method according to one or more embodiments of the present specification, as shown in fig. 1, the scenario includes: a client and a block link point of an access block chain; the client may be a mobile phone, a tablet computer, a desktop computer, a portable notebook computer, or the like (only the mobile phone is shown in fig. 1).
Specifically, the client side responds to the warehouse slip creating operation of a user, acquires warehouse slip information of a warehouse slip to be created, and sends a warehouse slip creating request to the block link points according to the acquired warehouse slip information; the block chain node determines a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse bill information in the warehouse bill creating request, calls the target intelligent contract, and creates a warehouse bill based on the warehouse bill information and a warehouse bill data structure included in the target intelligent contract; and sending the created manifest to the client; and the client displays the received warehouse bill for the user to check. The intelligent contracts are deployed for block chain nodes based on warehouse receipt data structure creation requests sent by clients in advance, each intelligent contract comprises a warehouse receipt data structure, and a plurality of warehouse receipt data structures with expansion relations can be overlapped to create warehouse receipts. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Based on the application scenario architecture, one or more embodiments of the present specification provide a method for creating a manifest based on a block chain. Fig. 2 is a schematic flow diagram of a block chain-based method for creating a manifest according to one or more embodiments of the present disclosure, where the method in fig. 2 can be performed by the block chain link points in fig. 1, as shown in fig. 2, and the method includes the following steps:
step S102, receiving a warehouse receipt establishing request sent by a client; the method comprises the steps that a warehouse slip creating request is sent based on warehouse slip creating operation of a user, and the warehouse slip creating request comprises warehouse slip information of a warehouse slip to be created;
specifically, when a user needs to create a warehouse slip, the client is operated, and warehouse slip type information of the warehouse slip to be created is selected from a plurality of warehouse slip type information displayed by the client; the client responds to the selection operation of the user and displays a corresponding warehouse bill editing interface; a user edits the assignment information and the like of each field of the warehouse slip to be created based on the warehouse slip editing interface, and performs submission operation, such as clicking a submission control and the like; the client side responds to the submitting operation of the user, obtains the warehouse slip information of the warehouse slip to be created, and sends a warehouse slip creating request to the block chain link points according to the warehouse slip information. The warehouse slip information comprises warehouse slip type information of a warehouse slip to be created, assignment information of each field edited by a user and the like. For example, the list to be created is a list of a certain type of plastic, and the assignment information of the fields edited by the user may include identification information, production place information, measurement unit information, weight information, and the like of the plastic.
Step S104, determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse bill information; the intelligent contract is deployed based on a warehouse receipt data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
the intelligent contracts comprise a basic inventory data structure and a modal inventory data structure, and each intelligent contract comprises one of the inventory data structures. The base manifest data structure includes general fields for corresponding types of manifests; the fields included in the modality manifest data structure are extended fields based on the general fields included in the corresponding base manifest data structure. For example, the general fields in the basic inventory data structure of a plastic inventory include the category, brand name, manufacturer, unit of measure, weight, etc.; the modal manifest data structure corresponding to the polypropylene plastic further comprises an expanded field production place, a size, a grade, an effective period and the like on the basis of all the general fields in the basic manifest data structure.
It should be noted that field expansion may also be performed on the basis of a certain modal manifest data structure to obtain another modal manifest data structure; the obtained manifest corresponding to the other modality manifest data structure includes a general field in the corresponding basic manifest data structure, an extension field in the certain modality manifest data structure, and an extension field in the other modality manifest data structure. For example, field expansion is performed on the basis of the modal manifest data structure corresponding to the polypropylene plastic of the above example, resulting in another modal manifest data structure including the field "temperature resistance level".
Step S106, calling a target intelligent contract, and creating a warehouse slip based on warehouse slip information and a warehouse slip data structure included by the target intelligent contract;
and step S108, sending the created warehouse bill to the client.
In one or more embodiments of the present specification, a block link point deploys an intelligent contract including a manifest data structure in advance based on a user request, determines a target intelligent contract when a manifest creation request is received, and creates a manifest based on the manifest data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
In order to quickly determine a target intelligent contract in the creation process of a manifest, in one or more embodiments of the present specification, after an intelligent contract is deployed, an association relationship is established between manifest type information of a manifest corresponding to a manifest data structure included in the intelligent contract and contract identification information of the intelligent contract, and the target intelligent contract is determined based on the association relationship. Specifically, as shown in fig. 3, step S104 includes:
step S104-2, acquiring associated contract identification information from the association relationship between preset warehouse receipt type information and contract identification information according to warehouse receipt type information in the warehouse receipt information;
step S104-4, determining an intelligent contract corresponding to the acquired contract identification information in a plurality of intelligent contracts included in the block chain as a target intelligent contract; the intelligent contract is deployed based on a warehouse receipt data structure creation request sent by a client; each intelligent contract includes a manifest data structure, and a plurality of manifest data structures having extended relationships can be superimposed to create a manifest.
After the target intelligent contract is determined, a manifest may be created based on the manifest data structure included with the target intelligent contract. Specifically, as shown in fig. 4, in one or more embodiments of the present specification, step S106 includes:
step S106-2, determining whether the number of the target intelligent contracts is unique, if so, executing step S106-4, otherwise, executing step S106-6;
step S106-4, calling a target intelligent contract, and creating a warehouse slip based on warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure includes general fields for corresponding types of manifests;
specifically, the target intelligent contract is called, and the assignment information of each field included in the bill information is added to a basic bill data structure included in the target intelligent contract to obtain the bill.
Step S106-6, calling a target intelligent contract, and creating a manifest based on the manifest information and a basic manifest data structure and a modal manifest data structure included by the target intelligent contract; wherein the fields in the modality manifest data structure are extended fields based on the common fields.
Specifically, a target intelligent contract is called, and fields in a basic warehouse slip data structure and a modal warehouse slip data structure included in the target intelligent contract are fused to obtain a target warehouse slip data structure; and adding the assignment information of each field included in the warehouse slip information into a target warehouse slip data structure to obtain the warehouse slip. It is noted that the target intelligent contract may include a plurality of modal manifest data structures.
Therefore, the creation efficiency and accuracy of the warehouse slip are greatly improved by calling the target intelligent contract and creating the warehouse slip based on the basic warehouse slip data structure or the basic warehouse slip data structure and the modal warehouse slip data structure included by the target intelligent contract.
In order to facilitate the subsequent user to conveniently query the created inventory, in one or more embodiments of the present specification, as shown in fig. 5, after step S106, the method further includes:
and step S107, generating warehouse bill creating record information according to the related information of the created warehouse bills, and storing the warehouse bill creating record information into the block chain.
Specifically, the warehouse slip is encrypted to obtain a warehouse slip in a ciphertext form; and correlating and recording the information such as the bill of storage and the bill of storage identification in the form of the ciphertext, determining the recorded information as the bill of storage creation record information, and storing the bill of storage creation record information into a block chain. It should be noted that the encryption algorithm can be set by itself in practical application according to the requirement; creating record information can be generated based on the warehouse receipt plaintext according to actual needs; the specific form of the manifest creation record information is not particularly limited in this specification.
Further, after the creation of the manifest is completed, the user may operate his client to view the created manifest. When the user performs a transaction such as a pledge based on the created warehouse slip, in order to determine the reality and validity of the warehouse slip, the related third-party organization may also create record information based on the warehouse slip stored in the block chain to query the warehouse slip. Specifically, as shown in fig. 6, in one or more embodiments of the present specification, after step S108, the method may further include:
step S110, receiving a warehouse slip query request sent by a client or a third-party mechanism, wherein the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried;
step S112, inquiring related warehouse bill creation record information from the block chain according to the warehouse bill identification;
and step S114, sending the inquired warehouse list in the warehouse list creation record information to the client or a third-party organization.
Specifically, the block chain node point matches the list identifier included in the query request with the list identifier in the list creation record information included in the block chain, and if the matching is successful, the list identifier associated with the successfully matched list identifier in the list creation record information is sent to the client or a third-party mechanism; and if the matching fails, sending query failure information to the client or a third-party mechanism.
Therefore, the warehouse slip establishing record information stored based on the block chain realizes the quick and effective query of the warehouse slip, and when a user carries out operations such as pledge and the like based on the warehouse slip, a related third party mechanism can obtain a real and effective warehouse slip, so that the fraudulent behavior of false warehouse slips is avoided.
In order to meet the requirement of creating diversified bills, in one or more embodiments of the present specification, the bill data structures corresponding to different bills can be flexibly created, so as to create the bills based on the created bill data structures. Specifically, when a user needs to create a warehouse bill, the client side of the user is operated; the client displays the current warehouse slip type information corresponding to each warehouse slip data structure, a user can enter a warehouse slip editing interface corresponding to the warehouse slip type information in a touch mode and the like, and when the field in the warehouse slip editing interface cannot meet the user requirement, the user can establish a modal warehouse slip data structure on the basis of the field included in the current warehouse slip editing interface; or when the user does not inquire the needed warehouse slip type information in the warehouse slip type information displayed by the client, the user can operate the client to create a basic warehouse slip data structure; and the client responds to the warehouse receipt data structure creation operation of the user and sends a warehouse receipt data structure creation request to the block chain link points according to the field information edited by the user. Correspondingly, as shown in fig. 7, step S102 may further include, before:
step S100-2, receiving a warehouse receipt data structure creation request sent by a client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
s100-4, deploying an intelligent contract comprising a warehouse receipt data structure to be created according to the field information;
specifically, the type of the warehouse slip data structure to be created is determined, and if the warehouse slip data structure to be created is the basic warehouse slip data structure, an intelligent contract comprising the basic warehouse slip data structure is deployed according to field information included in the warehouse slip data structure creation request; if the warehouse slip data structure to be created is a modal warehouse slip data structure, determining a target warehouse slip data structure having an expansion relation with the modal warehouse slip data structure; and deploying an intelligent contract comprising the modal manifest data structure according to the field information included in the manifest data structure creation request and the determined relevant field information of the target manifest data structure. The target manifest data structure may be a basic manifest data structure, or may be a basic manifest data structure and a modal manifest data structure. The related field information of the target manifest data structure may be a field representing a structure name and a structure identifier of the target manifest data structure, or a field representing a field name in the target manifest data structure.
Further, determining the type of the manifest data structure to be created includes: and determining whether the warehouse slip data structure creation request comprises the expanded warehouse slip type information, if so, determining that the warehouse slip data structure to be created is a modal warehouse slip data structure, and if not, determining that the warehouse slip data structure to be created is a basic warehouse slip data structure.
And step S100-6, sending the creation result information of the warehouse bill data structure to the client.
Specifically, if the intelligent contract is successfully deployed, the creation success information is sent to the client; and if the intelligent contract is failed to be deployed, sending creation failure information to the client.
Therefore, the block chain link points can deploy intelligent contracts comprising corresponding warehouse slip data structures based on user requests, so that users can flexibly establish warehouse slip data structures according to needs, warehouse slip establishment is not performed based on a plurality of warehouse slip templates in a preset fixed form, and accordingly the establishment requirements of diversified warehouse slips can be met.
In order to facilitate quick determination of a corresponding intelligent contract when creating a warehouse, in one or more embodiments of the present specification, as shown in fig. 8, after step S100-4, the method further includes:
s100-52, determining the warehouse bill type information of the warehouse bill corresponding to the warehouse bill data structure to be created and the contract identification information of the deployed intelligent contract;
and S100-54, storing the determined warehouse bill type information and the contract identification information in a correlation mode.
Further, in order to facilitate management of each manifest data structure and ensure validity of the manifest data structure, in one or more embodiments of the present specification, as shown in fig. 9, after step S100-6, the method further includes:
and S100-8, generating creating record information of the warehouse bill data structure according to the related information of the deployed intelligent contract, and storing the creating record information of the warehouse bill data structure into the block chain.
Specifically, according to the contract identification of the deployed intelligent contract, the corresponding warehouse bill type information, the user information and other associated records, determining the recorded information as the creation record information of the warehouse bill data structure; storing the creating record information of the warehouse bill data structure into a block chain; the user information includes, for example, user identification information, identification information of a client of the user, and the like.
The creation record information of the warehouse bill data structure is saved in the block chain, so that the subsequent creation of the warehouse bill data structure can be traced conveniently.
In one or more embodiments of the present specification, a block link point deploys an intelligent contract including a manifest data structure in advance based on a user request, determines a target intelligent contract when a manifest creation request is received, and creates a manifest based on the manifest data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Based on the same technical concept, corresponding to the block chain based warehouse receipt creation method described in fig. 2 to 9, one or more embodiments of the present specification further provide another block chain based warehouse receipt creation method, fig. 10 is a flowchart of another block chain based warehouse receipt creation method provided in one or more embodiments of the present specification, and the method in fig. 10 can be executed by the client in fig. 1; as shown in fig. 10, the method comprises the steps of:
step S202, responding to the warehouse bill creating operation of a user, and sending a warehouse bill creating request to the block chain nodes; the warehouse slip creating request comprises warehouse slip information of a warehouse slip to be created, so that the block link points create the warehouse slip according to the warehouse slip information and a warehouse slip data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the warehouse receipt data structure establishing request sent by the client, each intelligent contract comprises a warehouse receipt data structure, and a plurality of warehouse receipt data structures with expansion relations can be superposed to establish a warehouse receipt;
specifically, when a user needs to create a warehouse slip, the client is operated, and warehouse slip type information of the warehouse slip to be created is selected from a plurality of warehouse slip type information displayed by the client; the client responds to the selection operation of the user and displays a corresponding warehouse bill editing interface; a user edits the assignment information and the like of each field of the warehouse slip to be created based on the warehouse slip editing interface, and performs submission operation, such as clicking a submission control and the like; the client side responds to the submitting operation of the user, obtains the warehouse slip information of the warehouse slip to be created, and sends a warehouse slip creating request to the block chain link points according to the warehouse slip information. The warehouse slip information comprises warehouse slip type information of a warehouse slip to be created, assignment information of each field edited by a user and the like. For example, the list to be created is a list of a certain type of plastic, and the assignment information of the fields edited by the user may include identification information, production place information, measurement unit information, weight information, and the like of the plastic.
Step S204, displaying the received warehouse list sent by the block chain nodes.
In one or more embodiments of the present specification, a client sends a manifest creation request to a block link point based on a manifest creation operation of a user, so that the block link point determines a target intelligent contract, and creates a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Further, after the creation of the warehouse slip is completed and the currently displayed warehouse slip is closed, the user can operate the client side to view the created warehouse slip at any time. Specifically, as shown in fig. 11, in one or more embodiments of the present specification, after step S204, the method may further include:
step S206, responding to the warehouse bill query operation of the user, and sending a warehouse bill query request to the block chain nodes; the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried, so that the block chain link point queries the corresponding warehouse slip from the block chain according to the warehouse slip identifier;
specifically, the client responds to the warehouse slip query operation of the user, displays a warehouse slip list of the warehouse slip created by the user, and when the user clicks the relevant information of the warehouse slip to be queried in the warehouse slip list, the client sends a warehouse slip query request to the block link points according to the warehouse slip identification of the warehouse slip to be queried. Wherein the list of the warehouse bills comprises the warehouse bill identification and the warehouse bill name
And step S208, receiving and displaying the warehouse list sent by the block chain node.
Further, due to the increasing of storage categories, when a user needs to create a warehouse slip, if it is determined that all currently existing warehouse slip types are not matched with the warehouse slip types of the warehouse slip to be created, a new warehouse slip data structure can be created, so that the warehouse slip is created based on the new warehouse slip data structure. Specifically, as shown in fig. 12, in one or more embodiments of the present specification, before step S202, the method may further include:
step S200-2, responding to the creation operation of the warehouse slip data structure of the user, and sending a warehouse slip data structure creation request to the block link points; wherein the manifest data structure creation request comprises: the field information of the warehouse slip data structure to be created, so that the block chain nodes deploy intelligent contracts comprising the warehouse slip data structure to be created according to the field information;
when the to-be-created manifest data structure is a modal manifest data structure, the manifest data structure creation request further includes the manifest type information corresponding to the target manifest data structure having an extended relationship with the to-be-created manifest data structure.
The warehouse slip data structure creation request is sent to the block chain link points, so that the block chain link points are deployed with intelligent contracts comprising corresponding warehouse slip data structures, users can create the warehouse slip data structures at any time according to needs, flexible creation of the warehouse slip data structures is achieved, warehouse slip creation is no longer performed on the basis of a plurality of warehouse slip templates in a preset fixed form, and therefore the requirement for creating diversified warehouse slips can be met.
And S200-4, receiving the creation result information of the warehouse bill data structure sent by the block chain node.
In one or more embodiments of the present specification, a client sends a manifest creation request to a block link point based on a manifest creation operation of a user, so that the block link point determines a target intelligent contract, and creates a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Based on the same technical concept, corresponding to the block chain based manifest creation method described in fig. 2 to 9, one or more embodiments of the present disclosure further provide a block chain based manifest creation apparatus applied to a block chain node. Fig. 13 is a schematic block composition diagram of an apparatus for creating a blockchain-based manifest according to one or more embodiments of the present disclosure, the apparatus being configured to perform the method for creating a blockchain-based manifest described in fig. 2 to 9, and as shown in fig. 13, the apparatus includes:
a receiving module 301, which receives a manifest creation request sent by a client; wherein the manifest creation request is transmitted based on a user's manifest creation operation, the manifest creation request including manifest information of a manifest to be created;
a determining module 302, configured to determine a target intelligent contract from a plurality of intelligent contracts included in a block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
a first creation module 303 that invokes the target intelligent contract, creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
a sending module 304 that sends the created manifest to the client.
One or more embodiments of the present specification provide a block chain-based manifest creating apparatus, which deploys an intelligent contract including a manifest data structure in advance based on a user request, determines a target intelligent contract when receiving a manifest creating request, and creates a manifest based on the manifest data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, the manifest information comprises: bin type information;
the determining module 302 is configured to obtain associated contract identification information from an association relationship between preset inventory type information and contract identification information according to the inventory type information; and the number of the first and second groups,
and determining the intelligent contract corresponding to the contract identification information obtained from the plurality of intelligent contracts included in the block chain as the target intelligent contract.
Optionally, the first creating module 303 determines whether the number of target smart contracts is unique;
if yes, calling the target intelligent contract, and creating a warehouse slip based on the warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure comprises generic fields for corresponding types of manifests;
if not, calling the target intelligent contract, and creating a warehouse bill based on the warehouse bill information, a basic warehouse bill data structure and a modal warehouse bill data structure which are included by the target intelligent contract; wherein a field in the modal manifest data structure is an extension field based on the generic field.
Optionally, the apparatus further comprises: a first saving module;
the first saving module, after the first creating module 303 creates a manifest based on the manifest information and the manifest data structure included in the target intelligent contract, generates manifest creation record information according to the created relevant information of the manifest; and the number of the first and second groups,
and storing the warehouse slip creating record information into the block chain.
Optionally, the manifest creation record information includes: a manifest identifier for the manifest; the device further comprises: a query module;
the query module receives a warehouse slip query request sent by the client or a third-party organization after the storage module stores the warehouse slip creation record information into the block chain, wherein the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried; and the number of the first and second groups,
inquiring the associated warehouse slip creation record information from the block chain according to the warehouse slip identification;
and sending the inquired warehouse list in the warehouse list creation record information to the client or the third-party institution.
Optionally, the apparatus further comprises: a second creation module;
the receiving module 301 further receives the manifest data structure creation request sent by the client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
the second creating module deploys the intelligent contract comprising the warehouse receipt data structure to be created according to the field information;
the sending module 304 sends the creation result information of the manifest data structure to the client.
Optionally, the second creating module determines a type of the to-be-created manifest data structure;
if the warehouse slip data structure to be created is a basic warehouse slip data structure, deploying an intelligent contract comprising the basic warehouse slip data structure according to the field information;
if the warehouse slip data structure to be created is a modal warehouse slip data structure, determining a target warehouse slip data structure having an expansion relation with the modal warehouse slip data structure; and deploying an intelligent contract comprising the modal manifest data structure according to the field information and the determined relevant field information of the target manifest data structure.
Optionally, the apparatus further comprises: a second saving module;
the second storage module is used for determining the bill type information of the bill of storage corresponding to the bill of storage data structure to be created after the second creation module deploys the intelligent contract comprising the bill of storage data structure to be created; and the number of the first and second groups,
determining contract identification information for the deployed intelligent contract;
and storing the bill type information and the contract identification information in a correlated manner.
Optionally, the apparatus further comprises: a third saving module;
the third storage module generates creation record information of the warehouse receipt data structure according to the related information of the deployed intelligent contract after the second creation module deploys the intelligent contract comprising the warehouse receipt data structure to be created; and the number of the first and second groups,
and storing the creation record information of the warehouse bill data structure into the block chain.
One or more embodiments of the present specification provide a block chain-based manifest creating apparatus, which deploys an intelligent contract including a manifest data structure in advance based on a user request, determines a target intelligent contract when receiving a manifest creating request, and creates a manifest based on the manifest data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
It should be noted that, the embodiment of the apparatus for creating a manifest based on a block chain in this specification and the embodiment of the method for creating a manifest based on a block chain in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to the implementation of the method for creating a manifest based on a block chain, and repeated details are not described herein.
Further, based on the same technical concept, corresponding to the block chain based warehouse slip creation method described in fig. 10 to fig. 12, one or more embodiments of the present specification further provide another block chain based warehouse slip creation apparatus, which is applied to a client. Fig. 14 is a schematic block composition diagram of another block chain-based manifest creation apparatus according to one or more embodiments of the present disclosure, which is configured to perform the block chain-based manifest creation method described in fig. 10 to 12, and as shown in fig. 14, the apparatus includes:
a sending module 401 that sends a manifest creation request to the block link points in response to a manifest creation operation by a user; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the clients, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with extended relations can be superposed to create a receipt;
a receiving module 402, configured to receive the manifest sent by the blockchain node;
a presentation module 403 that presents the received manifest.
In the warehouse slip creation device based on the block chain provided in one or more embodiments of the present specification, a warehouse slip creation request is sent to a block link point based on a warehouse slip creation operation of a user, so that the block link point determines a target intelligent contract, and a warehouse slip is created based on a warehouse slip data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, the apparatus further comprises: a warehouse bill query module;
the manifest query module, after the display module 403 displays the received manifest sent by the blockchain node, responds to the manifest query operation of the user, and sends a manifest query request to the blockchain node; the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried, so that the block chain link point queries the corresponding warehouse slip from the block chain according to the warehouse slip identifier;
the receiving module 402, receiving the manifest sent by the blockchain node;
the displaying module 403 displays the warehouse slip received by the receiving module 402.
Optionally, the apparatus further comprises: a creation module;
the creating module responds to the warehouse receipt data structure creating operation of the user and sends a warehouse receipt data structure creating request to the block chain nodes; wherein the manifest data structure creation request comprises: field information of a to-be-created manifest data structure, such that the block chain nodes deploy intelligent contracts comprising the to-be-created manifest data structure according to the field information;
the receiving module 402 receives creation result information of the manifest data structure sent by the blockchain node.
In the warehouse slip creation device based on the block chain provided in one or more embodiments of the present specification, a warehouse slip creation request is sent to a block link point based on a warehouse slip creation operation of a user, so that the block link point determines a target intelligent contract, and a warehouse slip is created based on a warehouse slip data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
It should be noted that, the embodiment of the apparatus for creating a manifest based on a block chain in this specification and the embodiment of the method for creating a manifest based on a block chain in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to the implementation of the method for creating a manifest based on a block chain, and repeated details are not described herein.
Further, corresponding to the above-described block chain-based warehouse slip creation method, based on the same technical concept, one or more embodiments of the present specification further provide a block chain-based warehouse slip creation apparatus, where the apparatus is configured to perform the above-described block chain-based warehouse slip creation method, and fig. 15 is a schematic structural diagram of a block chain-based warehouse slip creation apparatus provided in one or more embodiments of the present specification.
As shown in fig. 15, the bin creation device based on the block chain may have a relatively large difference due to different configurations or performances, and may include one or more processors 501 and a memory 502, and the memory 502 may store one or more stored applications or data. Memory 502 may be, among other things, transient or persistent storage. The application stored in memory 502 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a blockchain-based manifest creation facility. Still further, the processor 501 may be arranged in communication with the memory 502, executing a series of computer executable instructions in the memory 502 on a blockchain based manifest creation device. The blockchain-based manifest creation apparatus may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input-output interfaces 505, one or more keyboards 506, and the like.
In a particular embodiment, a blockchain-based manifest creation apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the blockchain-based manifest creation apparatus, and the one or more programs configured for execution by the one or more processors include computer-executable instructions for:
receiving a warehouse receipt establishing request sent by a client; the order creating request is sent based on the order creating operation of a user, and the order creating request comprises order information of the order to be created;
determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
and sending the created warehouse bill to the client.
One or more embodiments of the present specification provide a block chain-based inventory creation device that deploys an intelligent contract including an inventory data structure in advance based on a user request, determines a target intelligent contract when receiving an inventory creation request, and creates an inventory based on the inventory data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, the computer executable instructions, when executed, the manifest information comprises: bin type information;
the determining a target intelligent contract from a plurality of intelligent contracts included in a block chain according to the inventory information comprises:
acquiring associated contract identification information from the association relationship between preset warehouse receipt type information and contract identification information according to the warehouse receipt type information;
and determining the intelligent contract corresponding to the contract identification information obtained from the plurality of intelligent contracts included in the block chain as the target intelligent contract.
Optionally, the computer-executable instructions, when executed, said invoking the target intelligent contract, creating a manifest based on the manifest information and the manifest data structure comprised by the target intelligent contract, comprising:
determining whether the number of target smart contracts is unique;
if yes, calling the target intelligent contract, and creating a warehouse slip based on the warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure comprises generic fields for corresponding types of manifests;
if not, calling the target intelligent contract, and creating a warehouse bill based on the warehouse bill information, a basic warehouse bill data structure and a modal warehouse bill data structure which are included by the target intelligent contract; wherein a field in the modal manifest data structure is an extension field based on the generic field.
Optionally, the computer-executable instructions, when executed, further comprise, after creating a manifest based on the manifest information and the manifest data structure comprised by the target intelligent contract:
generating warehouse bill establishing record information according to the established related information of the warehouse bill;
and storing the warehouse slip creating record information into the block chain.
Optionally, the computer executable instructions, when executed, the manifest creation record information comprises: a manifest identifier for the manifest;
after the storing the manifest creation record information into the block chain, the method includes:
receiving a warehouse receipt query request sent by the client or a third-party organization, wherein the warehouse receipt query request comprises a warehouse receipt identifier of a warehouse receipt to be queried;
inquiring the associated warehouse slip creation record information from the block chain according to the warehouse slip identification;
and sending the inquired warehouse list in the warehouse list creation record information to the client or the third-party institution.
Optionally, the computer executable instructions, when executed, further comprise:
receiving the warehouse receipt data structure establishing request sent by the client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
deploying an intelligent contract comprising the warehouse data structure to be created according to the field information;
and sending the creation result information of the warehouse bill data structure to the client.
Optionally, the computer-executable instructions, when executed, deploy, according to the field information, a smart contract comprising the to-be-created manifest data structure, comprising:
determining a type of the manifest data structure to be created;
if the warehouse slip data structure to be created is a basic warehouse slip data structure, deploying an intelligent contract comprising the basic warehouse slip data structure according to the field information;
if the warehouse slip data structure to be created is a modal warehouse slip data structure, determining a target warehouse slip data structure having an expansion relation with the modal warehouse slip data structure; and deploying an intelligent contract comprising the modal manifest data structure according to the field information and the determined relevant field information of the target manifest data structure.
Optionally, the computer executable instructions, when executed, further comprise, after deploying the smart contract comprising the to-be-created manifest data structure:
determining the type information of the manifest corresponding to the manifest data structure to be created;
determining contract identification information for the deployed intelligent contract;
and storing the bill type information and the contract identification information in a correlated manner.
Optionally, the computer executable instructions, when executed, further comprise, after deploying the smart contract comprising the to-be-created manifest data structure:
generating creation record information of a warehouse receipt data structure according to the related information of the deployed intelligent contract;
and storing the creation record information of the warehouse bill data structure into the block chain.
One or more embodiments of the present specification provide a block chain-based inventory creation device that deploys an intelligent contract including an inventory data structure in advance based on a user request, determines a target intelligent contract when receiving an inventory creation request, and creates an inventory based on the inventory data structure included in the target intelligent contract. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
In another particular embodiment, a blockchain based manifest creation apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the blockchain based manifest creation apparatus, and the one or more programs configured for execution by the one or more processors include computer executable instructions for:
responding to the warehouse list establishing operation of a user, and sending a warehouse list establishing request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the client, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with expansion relations can be superposed to create a receipt;
and displaying the received warehouse list sent by the block chain node.
One or more embodiments of the present specification provide a block chain-based manifest creating apparatus that sends a manifest creating request to a block link point based on a manifest creating operation of a user, so that the block link point determines a target intelligent contract, and creates a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, when executed, the computer executable instructions, after presenting the received manifest sent by the blockchain node, further include:
responding to the warehouse bill query operation of the user, and sending a warehouse bill query request to the block chain node; the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried, so that the block chain link point queries the corresponding warehouse slip from the block chain according to the warehouse slip identifier;
and displaying the received warehouse list sent by the block chain node.
Optionally, the computer executable instructions, when executed, further comprise:
sending a manifest data structure creation request to the block nodes in response to the user's manifest data structure creation operation; wherein the manifest data structure creation request comprises: field information of a to-be-created manifest data structure, such that the block chain nodes deploy intelligent contracts comprising the to-be-created manifest data structure according to the field information;
and receiving the creation result information of the warehouse bill data structure sent by the block chain node.
One or more embodiments of the present specification provide a block chain-based manifest creating apparatus that sends a manifest creating request to a block link point based on a manifest creating operation of a user, so that the block link point determines a target intelligent contract, and creates a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
It should be noted that, the embodiment of the equipment for creating a manifest based on a block chain in this specification and the embodiment of the method for creating a manifest based on a block chain in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the method for creating a manifest based on a block chain in the foregoing description, and repeated details are not described herein.
Further, corresponding to the above-described block chain-based warehouse slip creation method, based on the same technical concept, one or more embodiments of the present specification further provide a storage medium for storing computer executable instructions, where in a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, and the like, and when being executed by a processor, the storage medium stores computer executable instructions capable of implementing the following processes:
receiving a warehouse receipt establishing request sent by a client; the order creating request is sent based on the order creating operation of a user, and the order creating request comprises order information of the order to be created;
determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
and sending the created warehouse bill to the client.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, upon receiving a manifest creation request, determine a target intelligent contract, create a manifest based on a manifest data structure included in the target intelligent contract; wherein the intelligent contract is deployed in advance based on a user request. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the manifest information comprises: bin type information;
the determining a target intelligent contract from a plurality of intelligent contracts included in a block chain according to the inventory information comprises:
acquiring associated contract identification information from the association relationship between preset warehouse receipt type information and contract identification information according to the warehouse receipt type information;
and determining the intelligent contract corresponding to the contract identification information obtained from the plurality of intelligent contracts included in the block chain as the target intelligent contract.
Optionally, the storage medium stores computer-executable instructions that, when executed by a processor, said invoking said target intelligent contract, creating a manifest based on said manifest information and said manifest data structure comprised by said target intelligent contract, comprising:
determining whether the number of target smart contracts is unique;
if yes, calling the target intelligent contract, and creating a warehouse slip based on the warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure comprises generic fields for corresponding types of manifests;
if not, calling the target intelligent contract, and creating a warehouse bill based on the warehouse bill information, a basic warehouse bill data structure and a modal warehouse bill data structure which are included by the target intelligent contract; wherein a field in the modal manifest data structure is an extension field based on the generic field.
Optionally, the storage medium stores computer executable instructions that, when executed by a processor, further comprise, after creating a manifest based on the manifest information and the manifest data structure included in the target smart contract:
generating warehouse bill establishing record information according to the established related information of the warehouse bill;
and storing the warehouse slip creating record information into the block chain.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, the manifest creation record information comprises: a manifest identifier for the manifest;
after the storing the manifest creation record information into the block chain, the method includes:
receiving a warehouse receipt query request sent by the client or a third-party organization, wherein the warehouse receipt query request comprises a warehouse receipt identifier of a warehouse receipt to be queried;
inquiring the associated warehouse slip creation record information from the block chain according to the warehouse slip identification;
and sending the inquired warehouse list in the warehouse list creation record information to the client or the third-party institution.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise:
receiving the warehouse receipt data structure establishing request sent by the client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
deploying an intelligent contract comprising the warehouse data structure to be created according to the field information;
and sending the creation result information of the warehouse bill data structure to the client.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, deploy an intelligent contract comprising the to-be-created manifest data structure according to the field information, comprising:
determining a type of the manifest data structure to be created;
if the warehouse slip data structure to be created is a basic warehouse slip data structure, deploying an intelligent contract comprising the basic warehouse slip data structure according to the field information;
if the warehouse slip data structure to be created is a modal warehouse slip data structure, determining a target warehouse slip data structure having an expansion relation with the modal warehouse slip data structure; and deploying an intelligent contract comprising the modal manifest data structure according to the field information and the determined relevant field information of the target manifest data structure.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise, after said deploying the smart contract comprising the to-be-created manifest data structure:
determining the type information of the manifest corresponding to the manifest data structure to be created;
determining contract identification information for the deployed intelligent contract;
and storing the bill type information and the contract identification information in a correlated manner.
Optionally, the storage medium stores computer executable instructions that, when executed by the processor, further comprise, after said deploying the smart contract comprising the to-be-created manifest data structure:
generating creation record information of a warehouse receipt data structure according to the related information of the deployed intelligent contract;
and storing the creation record information of the warehouse bill data structure into the block chain.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed by a processor, upon receiving a manifest creation request, determine a target intelligent contract, create a manifest based on a manifest data structure included in the target intelligent contract; wherein the intelligent contract is deployed in advance based on a user request. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
In a specific embodiment, the storage medium may be a usb disk, an optical disk, a hard disk, or the like, and when executed by the processor, the storage medium stores computer-executable instructions for implementing the following processes:
responding to the warehouse list establishing operation of a user, and sending a warehouse list establishing request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the client, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with expansion relations can be superposed to create a receipt;
and displaying the received warehouse list sent by the block chain node.
One or more embodiments of the present specification provide computer-executable instructions stored on a storage medium, which when executed by a processor, send a manifest creation request to a block link point based on a manifest creation operation of a user, to cause the block link point to determine a target intelligent contract, and create a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further include, after presenting the received manifest sent by the blockchain node:
responding to the warehouse bill query operation of the user, and sending a warehouse bill query request to the block chain node; the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried, so that the block chain link point queries the corresponding warehouse slip from the block chain according to the warehouse slip identifier;
and displaying the received warehouse list sent by the block chain node.
Optionally, the storage medium stores computer-executable instructions that, when executed by the processor, further comprise:
sending a manifest data structure creation request to the block nodes in response to the user's manifest data structure creation operation; wherein the manifest data structure creation request comprises: field information of a to-be-created manifest data structure, such that the block chain nodes deploy intelligent contracts comprising the to-be-created manifest data structure according to the field information;
and receiving the creation result information of the warehouse bill data structure sent by the block chain node.
One or more embodiments of the present specification provide computer-executable instructions stored on a storage medium, which when executed by a processor, send a manifest creation request to a block link point based on a manifest creation operation of a user, to cause the block link point to determine a target intelligent contract, and create a manifest based on a manifest data structure included in the target intelligent contract; wherein the smart contract is deployed based on a manifest data structure creation request sent by the client. Therefore, the warehouse list is created based on the intelligent contract, and the creation efficiency and accuracy of the warehouse list are greatly improved; in addition, the creation of the warehouse slip data structure is flexible and convenient, a plurality of fixed warehouse slip templates are not needed, and a plurality of warehouse slip data structures with expansion relations can be overlapped to create the warehouse slip, so that the creation requirement of the current diversified warehouse slip can be met.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the method for creating a manifest based on a block chain in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to the implementation of the method for creating a manifest based on a block chain, and repeated details are not described again.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 30 th century, improvements in Hardware (for example, improvements in Circuit structures such as diodes, transistors and switches) and software (for improvement in method flow) can be clearly distinguished for a technical improvement, however, as technology develops, many of the improvements in method flow today can be regarded as direct improvements in Hardware Circuit structures, designers almost obtain corresponding Hardware Circuit structures by Programming the improved method flow into Hardware circuits, and therefore, it cannot be said that an improvement in method flow cannot be realized by Hardware entity modules, for example, Programmable logic devices (Programmable logic devices L) integrated devices P L D (for example, Field Programmable Gate Arrays (FPGAs) are integrated circuits whose logic functions are determined by user Programming of devices), and integrated circuits "integrated" on a digital system P L D by self Programming of designers without requiring many kinds of integrated circuits manufactured and manufactured by special purpose chips are written in Hardware programs such as Hardware programs vhwang L, software programs, Hardware programs, software programs, Hardware programs, software programs, Hardware programs, software, Hardware programs, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware, software, Hardware.
A controller may be implemented in any suitable manner, e.g., in the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers (PLC's) and embedded microcontrollers, examples of which include, but are not limited to, microcontrollers 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone L abs C8051F320, which may also be implemented as part of the control logic of a memory.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in multiple software and/or hardware when implementing the embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of this document and is not intended to limit this document. Various modifications and changes may occur to those skilled in the art from this document. Any modifications, equivalents, improvements, etc. which come within the spirit and principle of the disclosure are intended to be included within the scope of the claims of this document.

Claims (21)

1. A method for creating a warehouse bill based on a block chain is applied to a block chain node and comprises the following steps:
receiving a warehouse receipt establishing request sent by a client; the order creating request is sent based on the order creating operation of a user, and the order creating request comprises order information of the order to be created;
determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
and sending the created warehouse bill to the client.
2. The method of claim 1, the manifest information comprising: bin type information;
the determining a target intelligent contract from a plurality of intelligent contracts included in a block chain according to the inventory information comprises:
acquiring associated contract identification information from the association relationship between preset warehouse receipt type information and contract identification information according to the warehouse receipt type information;
and determining the intelligent contract corresponding to the contract identification information obtained from the plurality of intelligent contracts included in the block chain as the target intelligent contract.
3. The method of claim 1, the invoking the target intelligent contract, creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract, comprising:
determining whether the number of target smart contracts is unique;
if yes, calling the target intelligent contract, and creating a warehouse slip based on the warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure comprises generic fields for corresponding types of manifests;
if not, calling the target intelligent contract, and creating a warehouse bill based on the warehouse bill information, a basic warehouse bill data structure and a modal warehouse bill data structure which are included by the target intelligent contract; wherein a field in the modal manifest data structure is an extension field based on the generic field.
4. The method of claim 1, further comprising, after creating a manifest based on the manifest information and the manifest data structure comprised by the target intelligent contract:
generating warehouse bill establishing record information according to the established related information of the warehouse bill;
and storing the warehouse slip creating record information into the block chain.
5. The method of claim 4, the manifest creating record information comprising: a manifest identifier for the manifest;
after the storing the manifest creation record information into the block chain, the method includes:
receiving a warehouse receipt query request sent by the client or a third-party organization, wherein the warehouse receipt query request comprises a warehouse receipt identifier of a warehouse receipt to be queried;
inquiring the associated warehouse slip creation record information from the block chain according to the warehouse slip identification;
and sending the inquired warehouse list in the warehouse list creation record information to the client or the third-party institution.
6. The method according to any one of claims 1-5, further comprising:
receiving the warehouse receipt data structure establishing request sent by the client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
deploying an intelligent contract comprising the warehouse data structure to be created according to the field information;
and sending the creation result information of the warehouse bill data structure to the client.
7. The method of claim 6, said deploying, according to said field information, an intelligent contract comprising said to-be-created manifest data structure, comprising:
determining a type of the manifest data structure to be created;
if the warehouse slip data structure to be created is a basic warehouse slip data structure, deploying an intelligent contract comprising the basic warehouse slip data structure according to the field information;
if the warehouse slip data structure to be created is a modal warehouse slip data structure, determining a target warehouse slip data structure having an expansion relation with the modal warehouse slip data structure; and deploying an intelligent contract comprising the modal manifest data structure according to the field information and the determined relevant field information of the target manifest data structure.
8. The method of claim 6, the deploying the smart contract comprising the to-be-created manifest data structure further comprising:
determining the type information of the manifest corresponding to the manifest data structure to be created;
determining contract identification information for the deployed intelligent contract;
and storing the bill type information and the contract identification information in a correlated manner.
9. The method of claim 6, the deploying the smart contract comprising the to-be-created manifest data structure further comprising:
generating creation record information of a warehouse receipt data structure according to the related information of the deployed intelligent contract;
and storing the creation record information of the warehouse bill data structure into the block chain.
10. A warehouse list creating method based on a block chain is applied to a client and comprises the following steps:
responding to the warehouse list establishing operation of a user, and sending a warehouse list establishing request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the client, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with expansion relations can be superposed to create a receipt;
and displaying the received warehouse list sent by the block chain node.
11. The method of claim 10, after presenting the received manifest sent by the blockchain node, further comprising:
responding to the warehouse bill query operation of the user, and sending a warehouse bill query request to the block chain node; the warehouse slip query request comprises a warehouse slip identifier of a warehouse slip to be queried, so that the block chain link point queries the corresponding warehouse slip from the block chain according to the warehouse slip identifier;
and displaying the received warehouse list sent by the block chain node.
12. The method of claim 10, further comprising:
sending a manifest data structure creation request to the block nodes in response to the user's manifest data structure creation operation; wherein the manifest data structure creation request comprises: field information of a to-be-created manifest data structure, such that the block chain nodes deploy intelligent contracts comprising the to-be-created manifest data structure according to the field information;
and receiving the creation result information of the warehouse bill data structure sent by the block chain node.
13. A device for creating a warehouse list based on a block chain is applied to a block chain node and comprises the following components:
the receiving module is used for receiving a warehouse receipt establishing request sent by a client; wherein the manifest creation request is transmitted based on a user's manifest creation operation, the manifest creation request including manifest information of a manifest to be created;
the determining module is used for determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the warehouse receipt information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
a first creation module that invokes the target intelligent contract, creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
a sending module that sends the created manifest to the client.
14. The apparatus of claim 13, the manifest information comprising: bin type information;
the determining module is used for acquiring associated contract identification information from the association relationship between preset warehouse receipt type information and contract identification information according to the warehouse receipt type information;
and determining the intelligent contract corresponding to the contract identification information obtained from the plurality of intelligent contracts included in the block chain as the target intelligent contract.
15. The apparatus of claim 13, wherein the first and second electrodes are disposed in a substantially cylindrical configuration,
the first establishing module is used for determining whether the number of the target intelligent contracts is unique;
if yes, calling the target intelligent contract, and creating a warehouse slip based on the warehouse slip information and a basic warehouse slip data structure included by the target intelligent contract; wherein the base manifest data structure comprises generic fields for corresponding types of manifests;
if not, calling the target intelligent contract, and creating a warehouse bill based on the warehouse bill information, a basic warehouse bill data structure and a modal warehouse bill data structure which are included by the target intelligent contract; wherein a field in the modal manifest data structure is an extension field based on the generic field.
16. The apparatus of claim 13, the apparatus further comprising: a second creation module;
the receiving module is used for receiving the warehouse receipt data structure creation request sent by the client; wherein the manifest data structure creation request comprises: field information of a manifest data structure to be created;
the second creating module deploys the intelligent contract comprising the warehouse receipt data structure to be created according to the field information;
and the sending module is used for sending the creation result information of the warehouse receipt data structure to the client.
17. A device for creating a warehouse bill based on a block chain is applied to a client and comprises:
a sending module which responds to the warehouse slip creating operation of the user and sends a warehouse slip creating request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the clients, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with extended relations can be superposed to create a receipt;
a receiving module, configured to receive the manifest sent by the blockchain node;
a display module that displays the received manifest.
18. A blockchain-based manifest creation apparatus comprising:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
receiving a warehouse receipt establishing request sent by a client; wherein the manifest creation request is transmitted based on a user's manifest creation operation, the manifest creation request including manifest information of a manifest to be created;
determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
and sending the created warehouse bill to the client.
19. A blockchain-based manifest creation apparatus comprising:
a processor; and the number of the first and second groups,
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
responding to the warehouse list establishing operation of a user, and sending a warehouse list establishing request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the clients, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with extended relations can be superposed to create a receipt;
and displaying the received warehouse list sent by the block chain node.
20. A storage medium storing computer-executable instructions that when executed implement the following:
receiving a warehouse receipt establishing request sent by a client; wherein the manifest creation request is transmitted based on a user's manifest creation operation, the manifest creation request including manifest information of a manifest to be created;
determining a target intelligent contract from a plurality of intelligent contracts included in the block chain according to the inventory information; wherein the intelligent contract is deployed based on a manifest data structure creation request sent by a client; each intelligent contract comprises a warehouse data structure, and a plurality of warehouse data structures with expansion relations can be superposed to create a warehouse;
invoking the target intelligent contract, and creating a manifest based on the manifest information and the manifest data structure included in the target intelligent contract;
and sending the created warehouse bill to the client.
21. A storage medium storing computer-executable instructions that when executed implement the following:
responding to the warehouse list establishing operation of a user, and sending a warehouse list establishing request to the block chain link points; the bill of storage establishing request comprises bill of storage information of a bill of storage to be established, so that the block link points establish the bill of storage according to the bill of storage information and a bill of storage data structure included by the determined target intelligent contract; the intelligent contracts are deployed based on the receipt data structure creation requests sent by the clients, each intelligent contract comprises a receipt data structure, and a plurality of receipt data structures with extended relations can be superposed to create a receipt;
and displaying the received warehouse list sent by the block chain node.
CN202010305747.3A 2020-04-17 2020-04-17 Block chain-based warehouse bill creating method, device and equipment Active CN111461623B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010305747.3A CN111461623B (en) 2020-04-17 2020-04-17 Block chain-based warehouse bill creating method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010305747.3A CN111461623B (en) 2020-04-17 2020-04-17 Block chain-based warehouse bill creating method, device and equipment

Publications (2)

Publication Number Publication Date
CN111461623A true CN111461623A (en) 2020-07-28
CN111461623B CN111461623B (en) 2022-11-15

Family

ID=71679018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010305747.3A Active CN111461623B (en) 2020-04-17 2020-04-17 Block chain-based warehouse bill creating method, device and equipment

Country Status (1)

Country Link
CN (1) CN111461623B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738737A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating digital property right certificate
CN111930754A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating and updating block chain warehouse list
CN113327115A (en) * 2021-05-11 2021-08-31 支付宝(杭州)信息技术有限公司 Rental business processing method, device, equipment and system
EP4231188A1 (en) * 2022-02-22 2023-08-23 DT international Co., Ltd Ai and blockchain-based warehouse use system and method of using warehouse using the same

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332835A (en) * 2017-06-26 2017-11-07 深圳前海华深安信物联技术有限公司 The creation method of block chain in a kind of warehouse receipt system
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN109800404A (en) * 2019-01-03 2019-05-24 深圳壹账通智能科技有限公司 Electronic contract template generation method, device, computer equipment and storage medium
US20190205884A1 (en) * 2017-12-28 2019-07-04 International Business Machines Corporation Converting processes into multiple blockchain smart contracts
CN110046945A (en) * 2018-12-13 2019-07-23 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain
CN110046907A (en) * 2019-03-18 2019-07-23 阿里巴巴集团控股有限公司 Contract based on block chain signs method and device, electronic equipment, storage medium
CN110490721A (en) * 2019-08-06 2019-11-22 万翼科技有限公司 Financial affairs receipt generation method and Related product

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107332835A (en) * 2017-06-26 2017-11-07 深圳前海华深安信物联技术有限公司 The creation method of block chain in a kind of warehouse receipt system
US20190205884A1 (en) * 2017-12-28 2019-07-04 International Business Machines Corporation Converting processes into multiple blockchain smart contracts
CN108305106A (en) * 2018-01-31 2018-07-20 复旦大学 A kind of electronic invoice register method based on block chain
CN110046945A (en) * 2018-12-13 2019-07-23 阿里巴巴集团控股有限公司 Invoice creation method and device, electronic equipment based on block chain
CN109800404A (en) * 2019-01-03 2019-05-24 深圳壹账通智能科技有限公司 Electronic contract template generation method, device, computer equipment and storage medium
CN110046907A (en) * 2019-03-18 2019-07-23 阿里巴巴集团控股有限公司 Contract based on block chain signs method and device, electronic equipment, storage medium
CN110490721A (en) * 2019-08-06 2019-11-22 万翼科技有限公司 Financial affairs receipt generation method and Related product

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738737A (en) * 2020-07-31 2020-10-02 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating digital property right certificate
US11501317B2 (en) 2020-07-31 2022-11-15 Alipay (Hangzhou) Information Technology Co., Ltd. Methods, apparatuses, and devices for generating digital document of title
CN111930754A (en) * 2020-09-15 2020-11-13 支付宝(杭州)信息技术有限公司 Method, device and equipment for generating and updating block chain warehouse list
US11443278B2 (en) 2020-09-15 2022-09-13 Alipay (Hangzhou) Information Technology Co., Ltd. Method, apparatus, and device for generating and updating blockchain warehouse receipt
CN113327115A (en) * 2021-05-11 2021-08-31 支付宝(杭州)信息技术有限公司 Rental business processing method, device, equipment and system
EP4231188A1 (en) * 2022-02-22 2023-08-23 DT international Co., Ltd Ai and blockchain-based warehouse use system and method of using warehouse using the same

Also Published As

Publication number Publication date
CN111461623B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
CN111741035B (en) Electronic contract signing method, device and equipment
CN111461623B (en) Block chain-based warehouse bill creating method, device and equipment
CN112581131B (en) Asset transfer method, device, equipment and system
CN111859470B (en) Business data chaining method and device
CN111738737B (en) Method, device and equipment for generating digital property right certificate
CN112149187B (en) Method and device for processing traceability information based on blockchain
CN112241506B (en) User behavior backtracking method, device, equipment and system
CN110868763B (en) Method, device and system for establishing Bluetooth connection
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN110597877A (en) Block chain transaction processing method and device
CN113298343B (en) Task generation method, task execution method and device
CN105354195B (en) Information searching method and device
CN113643030A (en) Transaction processing method, device and equipment
CN111026963A (en) Data query method and device, and configuration information setting method and device
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN115983997A (en) Block chain-based collection management method, block chain node and system
CN114896637A (en) Data processing method and device, electronic equipment and storage medium
CN113949637A (en) Intelligent distribution and deployment method and device for switch resources
CN113222084B (en) Block chain-based date labeling and querying method and device
CN111177593B (en) Data communication method and system
CN113672784B (en) Vehicle information processing method, device and system based on block chain
CN112258295B (en) Recording processing method, device and equipment
CN114896638A (en) Data processing method and device, electronic equipment and storage medium
CN115731040A (en) Block chain-based collection management method, block chain node and system
CN114860809A (en) Data processing method, device and equipment based on block chain and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40034514

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant