WO2021063045A1 - Blockchain-based transaction query method, apparatus and device, and blockchain-based transaction data processing method, apparatus and device - Google Patents

Blockchain-based transaction query method, apparatus and device, and blockchain-based transaction data processing method, apparatus and device Download PDF

Info

Publication number
WO2021063045A1
WO2021063045A1 PCT/CN2020/098505 CN2020098505W WO2021063045A1 WO 2021063045 A1 WO2021063045 A1 WO 2021063045A1 CN 2020098505 W CN2020098505 W CN 2020098505W WO 2021063045 A1 WO2021063045 A1 WO 2021063045A1
Authority
WO
WIPO (PCT)
Prior art keywords
transaction
user
time
data
information
Prior art date
Application number
PCT/CN2020/098505
Other languages
French (fr)
Chinese (zh)
Inventor
罗梓源
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021063045A1 publication Critical patent/WO2021063045A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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

Definitions

  • This document relates to the field of blockchain technology, in particular to a blockchain-based transaction query and transaction data processing method, device and equipment.
  • Supply chain finance is simply a financial model in which banks and other financial institutions link core enterprises with upstream and downstream suppliers to provide flexible use of financial products and services.
  • a centralized financial institution stores transaction data between core enterprises and suppliers.
  • data security issues such as data loss and data tampering. This data security issue has caused the core enterprises to be unable to query them.
  • the accurate distribution of the accounts provided is not conducive to the core enterprise's control over the status of the accounts provided.
  • the purpose of one or more embodiments of this specification is to provide a blockchain-based transaction query, transaction data processing method, device, and equipment. Based on the transaction record information stored in the blockchain, the core enterprise provides The effective query of the distribution status among the account holders of the accounts.
  • One or more embodiments of this specification provide a blockchain-based transaction query method, applied to a first blockchain node, including: receiving a transaction query request sent by a terminal device of a core enterprise user, wherein the transaction The query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried; call The first smart contract generates, according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried, wherein the distribution diagram indicates that the accounts are in the waiting period. The distribution status among the account holder users within the query time; the distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  • One or more embodiments of this specification provide a blockchain-based transaction data processing method, applied to a second blockchain node, including: receiving accounts payable data sent by a terminal device of a core enterprise user; Accounts payable data generates transaction voucher data, and generates the identification of the transaction voucher data; sends the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can follow the transaction certificate Data identification, query the distribution status of the account corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, the corresponding transaction operation is executed according to the transaction request, and according to the transaction time, The identification of the transaction voucher data generates transaction record information; the transaction record information is written into the blockchain.
  • One or more embodiments of this specification provide a blockchain-based transaction query device, which is applied to a first blockchain node, and includes: a receiving module that receives a transaction query request sent by a terminal device of a core enterprise user, wherein , The transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; the obtaining module obtains the corresponding transaction time from the blockchain according to the identification of the transaction voucher data and the transaction time is within the time to be queried The target transaction record information within; the generation module, which calls the first smart contract, and generates the distribution map of the account corresponding to the transaction voucher data during the time to be queried according to the target transaction record information, where, The distribution map represents the distribution status of the accounts among account holders within the time to be queried; a sending module that sends the distribution map to the terminal devices of the core enterprise users, so that The terminal device of the core enterprise user displays the distribution map.
  • One or more embodiments of this specification provide a blockchain-based transaction data processing device, which is applied to a second blockchain node, and includes: a receiving module that receives accounts payable data sent by a terminal device of a core enterprise user Generation module, which generates transaction voucher data according to the accounts payable data, and generates the identification of the transaction voucher data; sending module, which sends the identification of the transaction voucher data to the terminal device of the core enterprise user, In order to enable the core enterprise user to query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; the transaction module, when it receives a transaction request sent by the terminal device of the supplier user, Perform a corresponding transaction operation according to the transaction request, and generate transaction record information according to the transaction time and the identification of the transaction voucher data; a writing module, which writes the transaction record information into the blockchain.
  • One or more embodiments of this specification provide a blockchain-based transaction query device, including: a processor; and, a memory arranged to store computer-executable instructions that when executed
  • the processor receives a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, from the district Obtain the corresponding target transaction record information with the transaction time within the time to be queried from the block chain; call the first smart contract to generate the account corresponding to the transaction voucher data according to the target transaction record information.
  • a distribution map during the time to be queried wherein the distribution map represents the distribution of the accounts among account holders during the time to be queried; and the distribution diagram is sent to the core enterprise The terminal device of the user, so that the terminal device of the core enterprise user displays the distribution map.
  • One or more embodiments of this specification provide a blockchain-based transaction data processing device, including: a processor; and, a memory arranged to store computer-executable instructions that are executed when the computer-executable instructions are executed.
  • Make the processor receive the accounts payable data sent by the terminal device of the core enterprise user; generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; and transfer the identification of the transaction voucher data
  • the terminal device sent to the core enterprise user so that the core enterprise user can query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; when the terminal device of the supplier user is received
  • a transaction request is sent by the device, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
  • One or more embodiments of this specification provide a storage medium for storing computer-executable instructions that, when executed, realize the following process: receiving a transaction query request sent by a terminal device of a core enterprise user, Wherein, the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, the corresponding target whose transaction time is within the time to be queried is obtained from the blockchain Transaction record information; invoking the first smart contract, according to the target transaction record information, generates a distribution map of the account corresponding to the transaction voucher data within the time to be queried, wherein the distribution map represents the account The distribution status of the payment among the account holders within the time to be queried; the distribution map is sent to the terminal equipment of the core enterprise user, so that the terminal equipment of the core enterprise user displays the Distribution.
  • One or more embodiments of this specification provide a storage medium for storing computer-executable instructions that, when executed, implement the following process: Receive accounts payable data sent by a terminal device of a core enterprise user ; Generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; send the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user is based on The identification of the transaction voucher data to query the distribution status of the account corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, the corresponding transaction operation is executed according to the transaction request, and The transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
  • An embodiment of this specification provides a blockchain-based transaction query, transaction data processing method, device, and equipment. Based on the transaction record information stored in the blockchain, it is possible to realize that the accounts provided by the core enterprise are Effective query of the distribution status among account holders; and, by generating a distribution map of accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the accounts they provide The distribution status of the payment during the waiting period without the need for core enterprise users to manually sort out the distribution of the account based on the transaction record information, which improves the query efficiency and user experience.
  • FIG. 1 is a schematic diagram of a scenario of a blockchain-based transaction query method provided by one or more embodiments of this specification.
  • FIG. 2 is a schematic diagram of the first flow of a blockchain-based transaction query method provided by one or more embodiments of this specification.
  • FIG. 3 is a detailed diagram of step S104 provided by one or more embodiments of this specification.
  • FIG. 4 is a detailed diagram of step S106 provided by one or more embodiments of this specification.
  • FIG. 5 is a schematic diagram of a distribution diagram provided by one or more embodiments of this specification.
  • FIG. 6 is a schematic diagram of displaying distribution information provided by one or more embodiments of this specification.
  • FIG. 7 is a schematic diagram of different display filling styles provided by one or more embodiments of this specification.
  • FIG. 8 is a schematic diagram of a scenario of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
  • FIG. 9 is a schematic diagram of the first flow of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
  • FIG. 10 is a schematic diagram of the second flow of a block chain-based transaction data processing method provided by one or more embodiments of this specification.
  • FIG. 11 is a schematic diagram of a third process of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
  • FIG. 12 is a schematic diagram of the module composition of a block chain-based transaction query device provided by one or more embodiments of this specification.
  • FIG. 13 is a schematic diagram of the module composition of a block chain-based transaction data processing device provided by one or more embodiments of this specification.
  • Figure 14 is a schematic structural diagram of a blockchain-based transaction query device provided by one or more embodiments of this specification.
  • FIG. 15 is a schematic structural diagram of a block chain-based transaction data processing device provided by one or more embodiments of this specification.
  • Figure 1 is a schematic diagram of an application scenario of a blockchain-based transaction query method provided by one or more embodiments of this specification.
  • the application scenario includes: the first blockchain node and core enterprise users Terminal equipment; among them, the first blockchain node is a node in the blockchain, and the terminal equipment of core enterprise users can be mobile phones, tablets, desktop computers, portable notebook computers, etc., and the terminal equipment of core enterprise users passes through the wireless network Communicate with the first blockchain node;
  • the terminal device of the core enterprise user receives the time to be queried and the identification of the transaction voucher data to be queried sent by the core enterprise user, generates a transaction query request according to the time to be queried and the identification of the transaction voucher data to be queried, and Send a transaction query request to the first blockchain node;
  • the first blockchain node receives the transaction query request sent by the terminal device of the core enterprise user, and obtains the corresponding data from the blockchain according to the identification of the transaction voucher data to be queried
  • the target transaction record information when the transaction time is within the time to be queried;
  • the first blockchain node calls the first smart contract, and generates the account corresponding to the transaction voucher data to be queried according to the acquired target transaction record information.
  • the distribution map represents the distribution of accounts among account holders within the time to be queried; the first blockchain node sends the generated distribution diagram to the terminal devices of core enterprise users; the core The terminal device of the enterprise user receives the distribution map sent by the first blockchain node, and displays the received distribution map, so that the core enterprise user can view the distribution status of the accounts provided by it.
  • the core enterprise can effectively query the distribution status of the accounts it provides among the account holders.
  • Figure 2 is a blockchain-based transaction query method provided by one or more embodiments of this specification Schematic diagram of the process, the method in Fig. 2 can be executed by the first blockchain node in Fig. 1, as shown in Fig. 2, the method includes the following steps:
  • Step S102 receiving a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
  • Step S104 according to the identification of the transaction voucher data, obtain corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried;
  • Step S106 Invoke the first smart contract to generate a distribution map of the accounts corresponding to the transaction voucher data to be queried during the time to be queried according to the target transaction record information, where the distribution map represents the distribution of the accounts during the time to be queried The distribution of account holders among users;
  • step S108 the distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  • the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
  • step S104 includes:
  • Step S104-2 Match the identification of the transaction voucher data to be queried with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and match the time to be queried with the transaction record information stored in the blockchain To match the transaction time;
  • step S104-4 if the matching is successful, the corresponding transaction record information is used as the target transaction record information.
  • the identification of the transaction voucher data to be queried is matched with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and if the matching fails, the transaction record where the identification of the failed transaction voucher data is located is determined
  • the information is not the transaction record information of the account corresponding to the transaction voucher data to be queried; if the matching is successful, it is determined that the transaction record information where the identifier of the successfully matched transaction voucher data is located is the transaction record of the account corresponding to the transaction voucher data to be queried Information, the transaction time is read from the transaction record information where the identifier of the successfully matched transaction voucher data is located, and the read transaction time is matched with the time to be queried. If the match is successful, the transaction record where the successful transaction time is located will be matched The information serves as the target transaction record information. It should be pointed out that if the target transaction record information is not obtained, the prompt information is sent to the terminal device of the core enterprise user.
  • the time to be queried can be a certain moment (such as 12: 0: 0 on August 15, 2019), or a certain period of time (such as August 1, 2019 to 2019). August 15), core enterprise users can operate their terminal devices to make settings.
  • matching the read transaction time with the time to be queried includes: determining whether the read transaction time is before the time to be queried, if yes, the matching is successful, otherwise the matching fails; for example, , The read transaction time is 3:2:15 on August 3, 2019. Before 12:0:0 on August 15, 2019, the match is determined to be successful.
  • matching the read transaction time with the time to be queried includes: determining whether the read transaction time is within the time to be queried, if yes, the matching is successful, otherwise the matching fails; For example, if the transaction time read is August 10, 2019, it is determined that the matching is successful within August 1, 2019 to August 15, 2019.
  • the time division rule is preset to divide the time to be queried into at least one time period, so as to count the accounts held by each account holder user in each time period. Status information, and generate a distribution map to avoid the problem that the span of the time period is too large to be displayed in a distribution diagram; it should be pointed out that when the time to be queried is a certain moment, the divided time period is that moment .
  • step S106 includes step S106-2 to step S106-10.
  • Step S106-2 Invoke the first smart contract, and divide the time to be queried into at least one time period according to a preset time division rule.
  • the time division rule can be set according to the needs in actual applications. For example, when the waiting time is less than 5 days, the time can be divided by 12 hours as the division unit, that is, every 12 hours is a time period for time division; When the query time is between 5 and 30 days, it can be divided by 24 hours, that is, each time period is 1 day; when the query time is between 30 days and 50 days, it can be divided by 48 hours Time division, that is, each time period is 2 days.
  • Step S106-4 Obtain the transaction time, the amount of the transaction account, the user information of the outgoing user and the user information of the incoming user from the target transaction record information.
  • Step S106-6 Regard the transfer-out user and transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user and the transfer-in user's user information of the transaction account, Determine the status information of the accounts held by each account holder user in each time period.
  • the transfer-out user and transfer-in user of the transaction account are regarded as account holder users
  • the user information of the transfer-out user and the user information of the transfer-in user of the transaction account are regarded as the users of each account holder.
  • Information which distinguishes users who hold accounts, where user information includes user name, user contact information, etc.; according to the transaction time in the target transaction record information, determine the target transaction record information corresponding to each time period; according to The target transaction record information corresponding to each time period, statistics of the amount of accounts held by each account holder user in each time period, and the accounts held by each account holder user in each time period The proportion of the total amount of accounts provided by the core company and other information.
  • the target transaction record information includes:
  • the status information of the accounts held by each account holder user in each time period is as follows:
  • the form of the status information of the accounts held by each account holder user at each time period based on the target transaction record information is not limited to the above forms, and it can be used according to needs in actual applications. Settings, such as creating a separate form for each account holder user.
  • step S106-8 among the preset filling patterns, different filling patterns used to characterize each account holder user are selected;
  • the filling style can be set according to actual needs, such as color filling, pattern filling, etc.
  • Step S106-10 according to the time sequence, according to the selected filling pattern and the determined status information, generate a distribution map of the accounts corresponding to the transaction voucher data among the account holders within the time to be queried.
  • the distribution diagram generated according to the selected filling style and the aforementioned determined status information is shown in Figure 5.
  • the distribution diagram includes a main body part and an annotation part.
  • the main body part shows the distribution of accounts among users.
  • the comment part includes the user information (such as user name) of each account holder and the associated information of the filling style; further, it can be seen from the distribution diagram shown in Figure 5: the time period is August 1, 2019 to the time period On August 3, 2019, the accounts of 1 million were distributed to the account holder user supplier A; during the time period of August 4, 2019 and August 5, 2019, the accounts of 1 million were distributed to the account holders.
  • the core enterprise users only need to provide the identification of the time to be queried and the transaction voucher data to be queried, and the corresponding accounts can be effectively inquired about the distribution status of the account holders, and there is no need for the core enterprise users to trade Record the information and perform operations such as integration, and you can see the distribution of the accounts it provides in each time period at a glance from the distribution diagram.
  • the method also includes:
  • Step A2 if it is detected that the cursor is located in the main part of the distribution map, then obtain the position information where the cursor is located; or if the core enterprise user's trigger operation on the main part of the distribution map is detected, obtain the position information of the operated position;
  • Step A4 Determine the target time period closest to the acquired location information
  • the first distance between the position information obtained by measurement and its adjacent time period, and the second distance between the position information obtained by measurement and its adjacent time period compare the first distance with the first distance Second, the size of the distance, and the time period corresponding to the small distance is regarded as the target time period.
  • Step A6 Determine the distribution information of the account among the account holders within the target time period
  • the status information of the accounts held by the account holders in each time period is obtained, and according to the obtained The status information of the account is generated during the target time period among the account holders.
  • the specific content of the distribution information can be set according to the needs in actual applications.
  • the distribution information includes time information, holdings Each account of the account holds the user name of the user, and each account of the account holds information such as the amount of the account held by the user.
  • Step A8 display the determined distribution information.
  • the core enterprise user can more clearly understand the account payment in a certain period of time.
  • the distribution of account holders among users is conducive to improving the human-computer interaction experience and query experience of core enterprise users.
  • the distribution map can not only reflect the distribution of accounts among the account holders, but also reflect the change status of accounts at a certain account holder, that is, each filling method corresponds to
  • the change of the area over time reflects the change over time of the account at a certain account holder user.
  • the borders of different filling patterns in the distribution map may be indistinguishable by the naked eye, making core enterprise users It becomes difficult to check the account changes in a certain account holder user.
  • one or more embodiments of this specification further include:
  • Step B2 if it is detected that the cursor is located in the associated information included in the comment part, then the filling pattern corresponding to the associated information where the cursor is located is displayed in the main part of the distribution map; or,
  • Step B4 If the core enterprise user's triggering operation on the associated information is detected, then the filling pattern corresponding to the operated associated information is displayed in the distribution map.
  • the way of distinguishing display can be emphasized display, such as deepening the color, thickening the line of the filling pattern, thickening the border of the filled area, etc.; you can also blur other filling styles on the basis of the emphasized display, which can be used in practical applications. Set according to your needs.
  • the border of the corresponding filled area is displayed in bold. Therefore, by distinguishing the filling style corresponding to the associated information where the cursor is located, or distinguishing the filling style corresponding to the operating associated information, it is not only possible to more intuitively display the changes of the account at a certain account holder user.
  • the situation is shown to core enterprise users, and for core enterprise users, the human-computer interaction experience is improved.
  • the core enterprise can effectively query the distribution status of the accounts provided by the core enterprise among the account holders; at the same time; , By generating the circulation path diagram of the account corresponding to the transaction voucher data to be queried, and sending the generated circulation path diagram to the terminal equipment of the core enterprise user, so that the core enterprise user can clearly and at a glance view the to be queried All the transfer information of the accounts corresponding to the transaction voucher data does not require core enterprise users to manually sort out the transfer information of the accounts according to each transaction record information, which improves query efficiency and user experience.
  • FIG. 8 is a method provided by one or more embodiments of this specification
  • a schematic diagram of the application scenario of the transaction data processing method based on the blockchain includes: the second blockchain node, the terminal equipment of the core enterprise user, and the terminal equipment of the supplier user; among them, the second The blockchain node is a node in the blockchain.
  • the second blockchain node and the aforementioned first blockchain node can be the same blockchain node or different blockchain nodes; the terminal of the core enterprise user
  • the terminal equipment of equipment and supplier users can be mobile phones, tablets, desktop computers, portable notebook computers, etc.
  • the terminal equipment of core enterprise users and the terminal equipment of supplier users communicate with the first blockchain node through the wireless network connection.
  • the terminal device of the core enterprise user receives the accounts payable data sent by the core enterprise user, and sends the accounts payable data to the second blockchain node; among them, the accounts payable data includes the amount of the account, the supplier
  • the user's user information such as name, company name, contact information, etc.
  • supplier user's bank information such as Agricultural Bank
  • supplier user's bank account information such as bank card number
  • the second blockchain node receives the accounts payable data sent by the terminal device of the core enterprise user, and sends the account payable data to the terminal device of the supplier user according to the user information of the supplier user included in the account payable data. Enable the supplier user to review the accounts payable data; and when receiving the approval information sent by the supplier user’s terminal device, generate transaction voucher data based on the accounts payable data; and when the supplier user’s terminal device sends it When the transaction request is based on the transaction voucher data, execute the corresponding transaction operation according to the transaction request, generate transaction record information, and write the transaction record information into the blockchain;
  • the terminal device of the supplier user receives the accounts payable data sent by the second blockchain node, displays the accounts payable data, so that the supplier user can review it, and when it receives the approval information sent by the supplier user, Send the approved information to the second blockchain node, so that the second blockchain node generates transaction voucher data based on the accounts payable data; and when receiving the transaction data based on the transaction voucher data sent by the supplier user, A transaction request is generated according to the transaction data, and the transaction request is sent to the second blockchain node.
  • the transaction data includes the amount of transaction accounts, the user information and bank account information of the user who transfers the transaction accounts, and the user information and bank account information of the user who transfers the transaction accounts.
  • the transaction data is processed in the trusted environment of the blockchain to make the transaction process open, transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information into the blockchain It ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • Figure 9 is a blockchain-based transaction provided by one or more embodiments of this specification A schematic flow chart of the data processing method.
  • the method in FIG. 9 can be executed by the second blockchain node in FIG. 8. As shown in FIG. 9, the method includes steps S202-S210.
  • Step S202 receiving the accounts payable data sent by the terminal device of the core enterprise user
  • Step S204 generating transaction voucher data according to the accounts payable data, and generating an identifier of the transaction voucher data
  • Step S206 sending the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of accounts corresponding to the transaction voucher data according to the identification of the transaction voucher data;
  • Step S208 When a transaction request sent by a terminal device of a supplier user is received, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data;
  • step S210 the transaction record information is written into the blockchain.
  • the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information
  • the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • step S204 is based on the accounts payable Payment data generates transaction voucher data, including:
  • Step S204-2 according to the user information of the supplier user included in the accounts payable data, send the account payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data;
  • step S204-4 if the approval information sent by the terminal device of the supplier user is received within the preset time period, the transaction voucher data is generated according to the accounts payable data.
  • the second blockchain node sends the received accounts payable data to the terminal device of the supplier user according to the contact information included in the user information of the supplier user, and determines whether the supplier user is received within the preset time period
  • the transaction voucher data is generated based on the accounts payable data
  • the transaction failure information is sent to the terminal device of the core enterprise user; where the contact information is as follows Email, supplier user account information on the supply chain finance platform, etc.
  • Step S208 executes corresponding transaction operations according to the transaction request, including:
  • the second smart contract is called, and based on the second smart contract, it is determined whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets the transaction rules of the transaction voucher data, the corresponding transaction operation is performed according to the transaction data.
  • the transaction data includes, but is not limited to, the amount of the transaction account, the user information and bank account information of the user who transfers the transaction account, and the user information and bank account information of the user who transfers the transaction account.
  • the amount of the account to be transferred included in the transaction data is used to transfer the account to be transferred from the bank account information of the outgoing user. Transfer out from the bank account and transfer to the bank account corresponding to the bank account information of the transfer-in user.
  • the transaction failure information is sent to the terminal device of the supplier user.
  • step S208 it further includes:
  • Step S207-2 receiving the electronic contract sent by the terminal device of the core enterprise user; specifically, the core enterprise user operates its terminal device and uploads the electronic contract signed by the core enterprise and the supplier, or an electronic scan of the signed paper contract
  • the core enterprise user operates its terminal device and uploads the electronic contract signed by the core enterprise and the supplier, or an electronic scan of the signed paper contract
  • Step S207-4 Obtain the transaction rules of the transaction voucher data in the electronic contract, and deploy the second smart contract in the blockchain according to the acquired transaction rules; specifically, the first blockchain node searches for the preset in the electronic contract
  • the key fields of will include the terms of the key fields as transaction rules for transaction voucher data.
  • the key fields can be set by themselves in actual applications.
  • the key fields include financing ratio, and the clause in the electronic contract that includes the financing ratio field "the financing ratio shall not be greater than 50% of the account amount" is used as the transaction certificate Data trading rules.
  • step S207-4 it further includes: step D2, generating the contract identifier of the second smart contract; step D4, The identification of the generated transaction voucher data and the contract identification are associated and recorded to obtain associated record information.
  • the aforementioned invoking the second smart contract includes: step E2, obtaining the corresponding contract ID from the associated record information according to the ID of the transaction voucher data included in the transaction request; step E4, invoking the get The second smart contract corresponding to the contract ID of.
  • step S208 according to transaction time and transaction
  • the identification of the voucher data generates transaction record information, including: the identification of the transaction voucher data, the amount of the transaction account included in the transaction request, the user information of the user who transfers the transaction account out of the supplier, and the user information of the user who is transferred to the supplier. Associate records and use the recorded information as transaction record information.
  • the identification of the transaction voucher data after the identification of the transaction voucher data is generated in step S204, it further includes: converting the accounts payable data, The transaction voucher data and the identification associated record of the transaction voucher data are recorded, and the recorded information is written into the blockchain.
  • the second blockchain node simultaneously receives the accounts payable data and the electronic contract sent by the terminal device of the core enterprise user as an example for description. As shown in FIG. 11, the method includes steps S302-S324.
  • Step S302 the second blockchain node receives the accounts payable data and the electronic contract sent by the terminal device of the core enterprise user.
  • step S304 the second blockchain node sends the account payable data to the terminal device of the corresponding supplier user according to the user information of the supplier user included in the account payable data.
  • step S306 the second blockchain node determines whether the verification passed information sent by the terminal device of the supplier user is received within the preset time period, and if yes, step S308 is executed, otherwise, the transaction failure information is sent to the terminal device of the core enterprise user.
  • step S308 the second blockchain node generates transaction voucher data according to the accounts payable data, and generates an identifier of the transaction voucher data.
  • step S310 the second blockchain node records the accounts payable data, transaction voucher data, and the identification associated with the transaction voucher data, writes the recorded information into the blockchain, and associates the accounts payable data with the accounts payable
  • the data identification corresponds to the terminal equipment sent to the core enterprise user and the terminal equipment of the supplier user respectively.
  • step S312 the second blockchain node searches for the preset key fields in the electronic contract, and uses the terms including the key fields as the transaction rules of the transaction voucher data.
  • step S314 the second blockchain node deploys the smart contract in the blockchain according to the transaction rules, and generates a contract identifier of the smart contract.
  • step S316 the second blockchain node associates and records the generated transaction voucher data identifier and the contract identifier to obtain associated record information.
  • Step S318 When the second blockchain node receives the transaction request based on transaction voucher data sent by the terminal device of the supplier user, it obtains the corresponding contract ID from the associated record information according to the ID of the transaction voucher data included in the transaction request .
  • Step S320 the second blockchain node calls the corresponding smart contract according to the acquired contract identifier, and determines whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data based on the smart contract. If yes, execute step S322, otherwise the sending transaction fails Information to the supplier’s user’s terminal equipment.
  • step S322 the second blockchain node performs a corresponding transaction operation according to the transaction data, associates the transaction data with the identification of the transaction voucher data, and records the recorded information as the transaction record information.
  • step S324 the second blockchain node writes the transaction record information into the blockchain, and sends the transaction success information to the terminal device of the supplier user.
  • the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information
  • the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • FIG. 12 is a schematic diagram of the module composition of a blockchain-based transaction query device provided by one or more embodiments of this specification.
  • the device is used to execute the blockchain-based transaction query method described in Figures 2 to 4, as shown in Figure 12 As shown, the device includes:
  • a receiving module 401 which receives a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
  • An obtaining module 402 which obtains corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried according to the identifier of the transaction voucher data;
  • the generation module 403 which invokes the first smart contract, generates a distribution map of the account corresponding to the transaction voucher data within the time to be queried according to the target transaction record information, wherein the distribution map represents the The distribution status of the accounts among account holders during the time to be queried;
  • the sending module 404 sends the distribution map to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  • the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
  • the obtaining module 402 matches the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and compares the time to be queried with the block Match the transaction time contained in the transaction record information stored in the chain; and,
  • the corresponding transaction record information is used as the target transaction record information.
  • the generating module 403 calls the first smart contract, and divides the time to be queried into at least one time period according to a preset time division rule; and,
  • the transfer-out user and the transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user of the transaction account, and the transfer-in user
  • the user information of the user determines the status information of the accounts held by each of the account holders in each of the said time periods;
  • the account corresponding to the transaction voucher data is generated to be distributed among the account holders within the time to be queried. Distribution map between.
  • the distribution map includes a main body part
  • the device further includes: a first detection module; the first detection module, if it is detected that a cursor is located in the main body part of the distribution map, acquires the position of the cursor Or, if a trigger operation of the main part of the distribution map by the core enterprise user is detected, obtain the position information of the operated position; and determine the target time period closest to the obtained position information Determine the distribution information of the account among the account holder users within the target time period; display the determined distribution information.
  • the distribution map includes a main body part and an annotation part
  • the annotation part includes the association information between the user information of each of the account holder users and the filling pattern
  • the device further includes: a second detection module; The second detection module, if it is detected that the cursor is located in the associated information, the filling pattern corresponding to the associated information where the cursor is located is displayed in the main part of the distribution map; or, if the core enterprise user is detected
  • the triggering operation on the associated information distinguishes and displays the filling style corresponding to the operated associated information in the distribution diagram.
  • the block chain-based transaction query device provided by one or more embodiments of this specification, based on the transaction record information stored in the block chain, realizes that the core enterprise can provide the accounts provided by the core enterprise among the users who hold the accounts. Effective query of the distribution status between the two; and, by generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, the core enterprise users can clearly and at a glance see that the accounts they provide are within the waiting time Without the need for core enterprise users to manually sort out the distribution of accounts based on transaction record information, the query efficiency and user experience are improved.
  • FIGS. 9 to 11 Corresponding to the block chain-based transaction data processing method described in FIGS. 9 to 11, based on the same technical concept, one or more embodiments of this specification also provide a block chain-based transaction data processing device.
  • Figure 13 is a schematic diagram of the module composition of a blockchain-based transaction data processing device provided by one or more embodiments of this specification. The device is used to execute the blockchain-based transaction data processing method described in Figures 9 to 11, such as As shown in Figure 13, the device includes:
  • the receiving module 501 which receives the accounts payable data sent by the terminal device of the core enterprise user;
  • a generating module 502 which generates transaction voucher data according to the accounts payable data, and generates an identifier of the transaction voucher data
  • the sending module 503 which sends the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the account corresponding to the transaction voucher data according to the identification of the transaction voucher data.
  • the transaction module 504 when receiving a transaction request sent by a terminal device of a supplier user, executes a corresponding transaction operation according to the transaction request, and generates transaction record information according to the transaction time and the identification of the transaction voucher data;
  • the saving module 505 writes the transaction record information into the blockchain.
  • the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information
  • the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • the accounts payable data includes user information of the supplier user; the generating module 502 sends the accounts payable data to the terminal device of the corresponding supplier user according to the user information of the supplier user , So that the supplier user can audit the accounts payable data; and, if the audit passed information sent by the supplier user’s terminal device is received within a preset time period, according to the accounts payable data Generate transaction voucher data.
  • the transaction module 504 invokes a second smart contract, and determines based on the second smart contract whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets all According to the transaction rules of the transaction voucher data, corresponding transaction operations are executed according to the transaction data.
  • the transaction request includes the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account; the transaction module 504 combines the transaction time and the transaction voucher data
  • the identifier of the transaction account, the amount of the transaction account, the user information of the transfer-in user of the transaction account, and the user information of the transfer-in user are associated and recorded, and the recorded information is used as the transaction record information.
  • the saving module 505 after the generating module 502 generates the identification of the transaction voucher data, further performs the identification of the accounts payable data, the transaction voucher data, and the transaction voucher data Associate records, and write the recorded information into the blockchain.
  • the block chain-based transaction data processing device provided by one or more embodiments of this specification makes the transaction process open, transparent and visible to multiple parties by conducting transactions in the trusted environment of the block chain, ensuring the authenticity and effectiveness of the transaction
  • by writing the transaction record information into the blockchain it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data fraud and other issues, and providing effective transaction query Data basis.
  • FIG. 14 is a schematic structural diagram of a block chain-based transaction query device provided by one or more embodiments of this specification.
  • the blockchain-based transaction query device may have relatively large differences due to different configurations or performances. It may include one or more processors 601 and a memory 602, and the memory 602 may store one or one The above stores applications or data. Among them, the memory 602 may be short-term storage or persistent storage.
  • the application program stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the blockchain-based transaction query device.
  • the processor 601 may be configured to communicate with the memory 602, and execute a series of computer-executable instructions in the memory 602 on a blockchain-based transaction query device.
  • the blockchain-based transaction query device may also include one or more power sources 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, one or more keyboards 606, and the like.
  • the blockchain-based transaction query device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more programs.
  • the above modules, and each module may include a series of computer-executable instructions in a blockchain-based transaction query device, and configured to be executed by one or more processors.
  • the one or more programs include the following: Computer executable instructions: receive a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, from the district Obtain the corresponding target transaction record information with the transaction time within the time to be queried from the block chain; call the first smart contract to generate the account corresponding to the transaction voucher data according to the target transaction record information.
  • a distribution map during the time to be queried wherein the distribution map represents the distribution of the accounts among account holders during the time to be queried; and the distribution diagram is sent to the core enterprise The terminal device of the user, so that the terminal device of the core enterprise user displays the distribution map.
  • the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
  • the obtaining corresponding target transaction record information from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried includes: Match the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and compare the time to be queried with the transaction contained in the transaction record information stored in the blockchain Time is matched; if all matches are successful, the corresponding transaction record information is used as the target transaction record information.
  • the first smart contract is invoked, and according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried is generated , Including: invoking the first smart contract, dividing the time to be queried into at least one time period according to a preset time division rule; obtaining the transaction time, the amount of the transaction account, and the The user information of the transfer-out user and the transfer-in user of the transaction account; the transfer-out user and the transfer-in user are the account holder users, and the transaction time and the transaction account are acquired according to the transaction time and the transaction account.
  • the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account determine the status information of the account held by each of the account holder users in each of the said time periods; Among the preset filling styles, different filling styles used to characterize each of the account holders are selected; in chronological order, according to the selected filling style and the determined state information, all the filling styles are generated.
  • the account payment corresponding to the transaction voucher data is distributed among the account holder users during the time to be queried.
  • the distribution map includes a main body part
  • the method further includes: if it is detected that a cursor is located in the main body part of the distribution map, acquiring the position information of the cursor position Or, if the core enterprise user's triggering operation on the main part of the distribution map is detected, the location information of the operated location is acquired; the target time period closest to the acquired location information is determined; the account is determined The distribution information of the funds among the account holder users within the target time period; the determined distribution information is displayed.
  • the distribution map includes a main body part and an annotation part
  • the annotation part includes the user information of each of the account holder users and the associated information of the filling pattern
  • the method further includes: if it is detected that the cursor is located in the associated information, displaying the filling style corresponding to the associated information where the cursor is located in the main part of the distribution map; or, if the core enterprise user pair is detected For the trigger operation of the associated information, the filling pattern corresponding to the operated associated information is displayed in the distribution diagram.
  • the block chain-based transaction data processing equipment provided by one or more embodiments of this specification, based on the transaction record information stored in the block chain, realizes that the accounts provided by the core enterprise are among the account holders. Effective query of the distribution status between the two; and, by generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, the core enterprise users can clearly and at a glance see that the accounts they provide are within the waiting time Without the need for core enterprise users to manually sort out the distribution of accounts based on transaction record information, the query efficiency and user experience are improved.
  • FIG. 15 is a schematic structural diagram of a blockchain-based transaction data processing device provided by one or more embodiments of this specification.
  • the transaction data processing equipment based on the blockchain may have relatively large differences due to different configurations or performances. It may include one or more processors 701 and a memory 702, and the memory 702 may store one or more More than one store application or data. Among them, the memory 702 may be short-term storage or persistent storage.
  • the application program stored in the memory 702 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in a blockchain-based transaction data processing device.
  • the processor 701 may be configured to communicate with the memory 702, and execute a series of computer-executable instructions in the memory 702 on a transaction data processing device based on the blockchain.
  • the blockchain-based transaction data processing equipment may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706, and the like.
  • a blockchain-based transaction data processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs may include one or more programs. More than one module, and each module may include a series of computer-executable instructions in a blockchain-based transaction data processing device, and is configured to be executed by one or more processors.
  • the one or more programs include Perform the following computer-executable instructions: receive the accounts payable data sent by the terminal device of the core enterprise user; generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; convert the transaction voucher data The identification is sent to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; When a transaction request is sent by a terminal device, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
  • the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information
  • the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • the accounts payable data includes user information of a supplier user
  • the generating transaction voucher data according to the accounts payable data includes: according to the supplier user's user information User information, sending the accounts payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data; if the supplier user is received within a preset time period Based on the approval information sent by the terminal device, transaction voucher data is generated based on the accounts payable data.
  • the execution of the corresponding transaction operation according to the transaction request includes: invoking a second smart contract, and determining the transaction data included in the transaction request based on the second smart contract Whether the transaction rules of the transaction voucher data are met; if the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
  • the transaction request includes the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account; according to the transaction time,
  • the identification of the transaction voucher data generates transaction record information, including: the transaction time, the identification of the transaction voucher data, the amount of the transaction account, the user information of the user who transfers the transaction account, and the transfer user
  • the user information is associated and recorded, and the recorded information is used as transaction record information.
  • the computer-executable instructions when executed, after the generation of the identification of the transaction voucher data, it further includes: adding the identifications of the accounts payable data, the transaction voucher data, and the transaction voucher data Perform associated records, and write the recorded information into the blockchain.
  • the blockchain-based transaction query device in one or more embodiments of this specification, through the transaction in the trusted environment of the blockchain, makes the transaction process open, transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction ; And by writing the transaction record information into the blockchain, it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and providing effective transactions for querying Data basis.
  • one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions.
  • the storage medium may It is a U disk, optical disk, hard disk, etc.
  • the computer executable instructions stored in the storage medium are executed by the processor, the following process can be realized: receiving a transaction query request sent by a terminal device of a core enterprise user, wherein the transaction query request Including the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried; call the first
  • the smart contract generates, according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried, wherein the distribution diagram represents the time for the accounts to be queried
  • the distribution status is internally distributed among account holder users; the distribution map is sent to the terminal device of the core enterprise user, so that
  • the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
  • the corresponding transaction time is obtained from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried.
  • the target transaction record information includes: matching the identifier of the transaction voucher data with the identifier of the transaction voucher data contained in the transaction record information stored in the block chain, and matching the time to be queried with that stored in the block chain The transaction time contained in the transaction record information is matched; if the matching is successful, the corresponding transaction record information is used as the target transaction record information.
  • the first smart contract is invoked, and the account corresponding to the transaction voucher data is generated according to the target transaction record information.
  • the distribution diagram of the time to be queried includes: invoking the first smart contract, dividing the time to be queried into at least one time period according to a preset time division rule; obtaining transaction time and transaction from the target transaction record information
  • the amount of the account, the user information of the transfer-out user and the transfer-in user information of the transaction account; the transfer-out user and the transfer-in user are regarded as account holder users, according to the acquired transaction Time, the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account, determine what each account holder user holds in each of the said time periods
  • the status information of the account among the preset filling patterns, select the different filling patterns used to characterize the account holder users; in chronological order, according to the selected filling pattern and the determined filling pattern
  • the distribution map includes a main part
  • the method further includes: if it is detected that the cursor is located in the main part of the distribution map, obtaining all The position information of the cursor position; or, if the core enterprise user's trigger operation on the main part of the distribution map is detected, the position information of the operated position is acquired; the target closest to the acquired position information is determined Time period; determine the distribution information of the account among the account holder users within the target time period; display the determined distribution information.
  • the distribution map includes a main body part and an annotation part
  • the annotation part includes the user information of each account holder user and the Filling the associated information of the style
  • the method further includes: if it is detected that the cursor is located in the associated information, displaying the fill style corresponding to the associated information where the cursor is located in the main part of the distribution map; or, if it is detected
  • the core enterprise user triggers the operation on the associated information
  • the filling pattern corresponding to the operated associated information is displayed in the distribution map.
  • the accounts provided by the core enterprise are realized in each Effective query of the distribution status between account holders; by generating the circulation path diagram of the accounts corresponding to the transaction voucher data to be queried, and sending the generated circulation path diagram to the terminal equipment of the core enterprise users, the core Enterprise users can clearly and at a glance view all the transfer information of the accounts corresponding to the transaction voucher data to be queried, without the need for core enterprise users to manually sort out the transfer information of the accounts according to each transaction record information, which improves the query Efficiency and user experience.
  • the storage medium may be a U disk, an optical disk, a hard disk, etc.
  • the computer executable instructions stored in the storage medium can realize the following process when being executed by the processor: receiving terminal equipment of core enterprise users The sent accounts payable data; the transaction voucher data is generated according to the accounts payable data, and the identification of the transaction voucher data is generated; the identification of the transaction voucher data is sent to the terminal device of the core enterprise user, so that According to the identification of the transaction voucher data, the core enterprise user queries the distribution status of the accounts corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, executes according to the transaction request Corresponding transaction operations, and generate transaction record information according to the transaction time and the identification of the transaction voucher data; write the transaction record information into the blockchain.
  • the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information
  • the blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
  • the accounts payable data includes user information of a supplier user
  • the generation of transaction voucher data based on the accounts payable data includes: According to the user information of the supplier user, send the accounts payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data; if it is within a preset time period Upon receipt of the approval information sent by the terminal device of the supplier user, transaction voucher data is generated according to the accounts payable data.
  • the execution of the corresponding transaction operation according to the transaction request includes: invoking a second smart contract, and determining the transaction operation based on the second smart contract. Whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
  • the transaction request includes the amount of the transaction account, the user information of the transfer-out user and the transfer-in user information of the transaction account
  • the generating transaction record information according to the transaction time and the identification of the transaction voucher data includes: the transaction time, the identification of the transaction voucher data, the amount of the transaction account, and the user who transfers the transaction account
  • the user information of the user and the user information of the transferred user are associated and recorded, and the recorded information is used as the transaction record information.
  • the computer-executable instructions stored in the storage medium when executed by the processor, after said generating the identification of the transaction voucher data, it further includes: converting the accounts payable data, the transaction voucher data, and The identification of the transaction voucher data is associated and recorded, and the recorded information is written into the blockchain.
  • the transaction is performed in the trusted environment of the blockchain, making the transaction process open, transparent and visible to multiple parties, ensuring the transaction The authenticity and validity of the data; and by writing the transaction record information into the blockchain, it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and for the transaction
  • the query provides an effective data basis.
  • the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) and software improvements (improvements in method flow).
  • hardware improvements for example, improvements in circuit structures such as diodes, transistors, switches, etc.
  • software improvements improvements in method flow
  • the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression Language
  • AHDL Altera Hardware Description Language
  • HDCal JHDL
  • Lava Lava
  • Lola MyHDL
  • PALASM RHDL
  • VHDL Very-High-Speed Integrated Circuit Hardware Description Language
  • Verilog Verilog
  • the controller can be implemented in any suitable manner.
  • the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic.
  • controllers in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded logic.
  • the same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
  • one or more embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent 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 computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • Information can be computer-readable instructions, data structures, program modules, 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, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • One or more embodiments of this specification can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

Abstract

A blockchain-based transaction query method, apparatus and device, and a blockchain-based transaction data processing method, apparatus and device. The transaction query method comprises: a first blockchain node receives a transaction query request sent by a terminal device of a core enterprise user, the transaction query request comprising the time for query and an identifier of transaction certificate data to be queried (S102); according to the identifier of said transaction certificate data, obtains, from a blockchain, corresponding target transaction record information of which the transaction time falls within the time for query (S104); calls a first smart contract to generate, according to the target transaction record information, a distribution map of accounts corresponding to said transaction certificate data within the time for query, the distribution map representing the distribution status of the accounts among account holders within the time for query (S106); and sends the distribution map to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map (S108).

Description

基于区块链的交易查询、交易数据处理方法、装置及设备Block chain-based transaction query and transaction data processing method, device and equipment 技术领域Technical field
本文件涉及区块链技术领域,尤其涉及一种基于区块链的交易查询、交易数据处理方法、装置及设备。This document relates to the field of blockchain technology, in particular to a blockchain-based transaction query and transaction data processing method, device and equipment.
背景技术Background technique
供应链金融,简单的说就是银行等金融机构将核心企业和上下游供应商联系在一起,以提供灵活运用的金融产品和服务的一种金融模式。当前的供应链金融模式由中心化的金融机构存储核心企业与供应商之间的交易数据,存在数据丢失、数据被篡改等数据安全问题,而该数据安全问题进而导致了核心企业无法查询到其所提供账款的准确的分布情况,不利于核心企业掌控其所提供的账款的状况。Supply chain finance is simply a financial model in which banks and other financial institutions link core enterprises with upstream and downstream suppliers to provide flexible use of financial products and services. In the current supply chain finance model, a centralized financial institution stores transaction data between core enterprises and suppliers. There are data security issues such as data loss and data tampering. This data security issue has caused the core enterprises to be unable to query them. The accurate distribution of the accounts provided is not conducive to the core enterprise's control over the status of the accounts provided.
发明内容Summary of the invention
本说明书一个或多个实施例的目的是提供一种基于区块链的交易查询、交易数据处理方法、装置及设备,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款,在各账款持有用户之间的分布状况的有效查询。The purpose of one or more embodiments of this specification is to provide a blockchain-based transaction query, transaction data processing method, device, and equipment. Based on the transaction record information stored in the blockchain, the core enterprise provides The effective query of the distribution status among the account holders of the accounts.
为解决上述技术问题,本说明书一个或多个实施例是这样实现的:In order to solve the above technical problems, one or more embodiments of this specification are implemented as follows:
本说明书一个或多个实施例提供了一种基于区块链的交易查询方法,应用于第一区块链节点,包括:接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。One or more embodiments of this specification provide a blockchain-based transaction query method, applied to a first blockchain node, including: receiving a transaction query request sent by a terminal device of a core enterprise user, wherein the transaction The query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried; call The first smart contract generates, according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried, wherein the distribution diagram indicates that the accounts are in the waiting period. The distribution status among the account holder users within the query time; the distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例提供了一种基于区块链的交易数据处理方法,应用于第二区块链节点,包括:接收核心企业用户的终端设备发送的应付账款数据;根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;将所述交易凭证 数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;将所述交易记录信息写入区块链中。One or more embodiments of this specification provide a blockchain-based transaction data processing method, applied to a second blockchain node, including: receiving accounts payable data sent by a terminal device of a core enterprise user; Accounts payable data generates transaction voucher data, and generates the identification of the transaction voucher data; sends the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can follow the transaction certificate Data identification, query the distribution status of the account corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, the corresponding transaction operation is executed according to the transaction request, and according to the transaction time, The identification of the transaction voucher data generates transaction record information; the transaction record information is written into the blockchain.
本说明书一个或多个实施例提供了一种基于区块链的交易查询装置,应用于第一区块链节点,包括:接收模块,其接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;获取模块,其根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;生成模块,其调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;发送模块,其将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。One or more embodiments of this specification provide a blockchain-based transaction query device, which is applied to a first blockchain node, and includes: a receiving module that receives a transaction query request sent by a terminal device of a core enterprise user, wherein , The transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; the obtaining module obtains the corresponding transaction time from the blockchain according to the identification of the transaction voucher data and the transaction time is within the time to be queried The target transaction record information within; the generation module, which calls the first smart contract, and generates the distribution map of the account corresponding to the transaction voucher data during the time to be queried according to the target transaction record information, where, The distribution map represents the distribution status of the accounts among account holders within the time to be queried; a sending module that sends the distribution map to the terminal devices of the core enterprise users, so that The terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例提供了一种基于区块链的交易数据处理装置,应用于第二区块链节点,包括:接收模块,其接收核心企业用户的终端设备发送的应付账款数据;生成模块,其根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;发送模块,其将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;交易模块,其当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;写入模块,其将所述交易记录信息写入区块链中。One or more embodiments of this specification provide a blockchain-based transaction data processing device, which is applied to a second blockchain node, and includes: a receiving module that receives accounts payable data sent by a terminal device of a core enterprise user Generation module, which generates transaction voucher data according to the accounts payable data, and generates the identification of the transaction voucher data; sending module, which sends the identification of the transaction voucher data to the terminal device of the core enterprise user, In order to enable the core enterprise user to query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; the transaction module, when it receives a transaction request sent by the terminal device of the supplier user, Perform a corresponding transaction operation according to the transaction request, and generate transaction record information according to the transaction time and the identification of the transaction voucher data; a writing module, which writes the transaction record information into the blockchain.
本说明书一个或多个实施例提供了一种基于区块链的交易查询设备,包括:处理器;以及,被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。One or more embodiments of this specification provide a blockchain-based transaction query device, including: a processor; and, a memory arranged to store computer-executable instructions that when executed The processor: receives a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, from the district Obtain the corresponding target transaction record information with the transaction time within the time to be queried from the block chain; call the first smart contract to generate the account corresponding to the transaction voucher data according to the target transaction record information. A distribution map during the time to be queried, wherein the distribution map represents the distribution of the accounts among account holders during the time to be queried; and the distribution diagram is sent to the core enterprise The terminal device of the user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例提供了一种基于区块链的交易数据处理设备,包括:处理器;以及,被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:接收核心企业用户的终端设备发送的应付账款数据;根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;将所述交易记录信息写入区块链中。One or more embodiments of this specification provide a blockchain-based transaction data processing device, including: a processor; and, a memory arranged to store computer-executable instructions that are executed when the computer-executable instructions are executed. Make the processor: receive the accounts payable data sent by the terminal device of the core enterprise user; generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; and transfer the identification of the transaction voucher data The terminal device sent to the core enterprise user, so that the core enterprise user can query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; when the terminal device of the supplier user is received When a transaction request is sent by the device, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
本说明书一个或多个实施例提供了一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现以下流程:接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。One or more embodiments of this specification provide a storage medium for storing computer-executable instructions that, when executed, realize the following process: receiving a transaction query request sent by a terminal device of a core enterprise user, Wherein, the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, the corresponding target whose transaction time is within the time to be queried is obtained from the blockchain Transaction record information; invoking the first smart contract, according to the target transaction record information, generates a distribution map of the account corresponding to the transaction voucher data within the time to be queried, wherein the distribution map represents the account The distribution status of the payment among the account holders within the time to be queried; the distribution map is sent to the terminal equipment of the core enterprise user, so that the terminal equipment of the core enterprise user displays the Distribution.
本说明书一个或多个实施例提供了一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现以下流程:接收核心企业用户的终端设备发送的应付账款数据;根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;将所述交易记录信息写入区块链中。One or more embodiments of this specification provide a storage medium for storing computer-executable instructions that, when executed, implement the following process: Receive accounts payable data sent by a terminal device of a core enterprise user ; Generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; send the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user is based on The identification of the transaction voucher data to query the distribution status of the account corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, the corresponding transaction operation is executed according to the transaction request, and The transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
本说明书一个实施例提供了一种基于区块链的交易查询、交易数据处理方法、装置及设备,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。An embodiment of this specification provides a blockchain-based transaction query, transaction data processing method, device, and equipment. Based on the transaction record information stored in the blockchain, it is possible to realize that the accounts provided by the core enterprise are Effective query of the distribution status among account holders; and, by generating a distribution map of accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the accounts they provide The distribution status of the payment during the waiting period without the need for core enterprise users to manually sort out the distribution of the account based on the transaction record information, which improves the query efficiency and user experience.
附图说明Description of the drawings
为了更清楚地说明本说明书一个或多个实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in one or more embodiments of this specification, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only in this specification. For some of the described embodiments, those of ordinary skill in the art can obtain other drawings based on these drawings without creative work.
图1为本说明书一个或多个实施例提供的一种基于区块链的交易查询方法的场景示意图。FIG. 1 is a schematic diagram of a scenario of a blockchain-based transaction query method provided by one or more embodiments of this specification.
图2为本说明书一个或多个实施例提供的一种基于区块链的交易查询方法的第一种流程示意图。2 is a schematic diagram of the first flow of a blockchain-based transaction query method provided by one or more embodiments of this specification.
图3为本说明书一个或多个实施例提供的步骤S104的细化图。FIG. 3 is a detailed diagram of step S104 provided by one or more embodiments of this specification.
图4为本说明书一个或多个实施例提供的步骤S106的细化图。FIG. 4 is a detailed diagram of step S106 provided by one or more embodiments of this specification.
图5为本说明书一个或多个实施例提供的分布图的示意图。FIG. 5 is a schematic diagram of a distribution diagram provided by one or more embodiments of this specification.
图6为本说明书一个或多个实施例提供的展示分布信息的示意图。FIG. 6 is a schematic diagram of displaying distribution information provided by one or more embodiments of this specification.
图7为本说明书一个或多个实施例提供的区别显示填充样式的示意图。FIG. 7 is a schematic diagram of different display filling styles provided by one or more embodiments of this specification.
图8为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的场景示意图。FIG. 8 is a schematic diagram of a scenario of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
图9为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的第一种流程示意图。FIG. 9 is a schematic diagram of the first flow of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
图10为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的第二种流程示意图。FIG. 10 is a schematic diagram of the second flow of a block chain-based transaction data processing method provided by one or more embodiments of this specification.
图11为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的第三种流程示意图。FIG. 11 is a schematic diagram of a third process of a blockchain-based transaction data processing method provided by one or more embodiments of this specification.
图12为本说明书一个或多个实施例提供的一种基于区块链的交易查询装置的模块组成示意图。FIG. 12 is a schematic diagram of the module composition of a block chain-based transaction query device provided by one or more embodiments of this specification.
图13为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理装置的模块组成示意图。FIG. 13 is a schematic diagram of the module composition of a block chain-based transaction data processing device provided by one or more embodiments of this specification.
图14为本说明书一个或多个实施例提供的一种基于区块链的交易查询设备的结构 示意图。Figure 14 is a schematic structural diagram of a blockchain-based transaction query device provided by one or more embodiments of this specification.
图15为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理设备的结构示意图。FIG. 15 is a schematic structural diagram of a block chain-based transaction data processing device provided by one or more embodiments of this specification.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本说明书一个或多个实施例中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书一个或多个实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本文件的保护范围。In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to compare the technical solutions in one or more embodiments of this specification. The technical solution is described clearly and completely. Obviously, the described embodiments are only a part of the embodiments in this specification, rather than all the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this document.
图1为本说明书一个或多个实施例提供的一种基于区块链的交易查询方法的应用场景示意图,如图1所示,该应用场景包括:第一区块链节点和核心企业用户的终端设备;其中,第一区块链节点为区块链中的节点,核心企业用户的终端设备可以为手机、平板电脑、台式计算机、便携式笔记本式计算机等,核心企业用户的终端设备通过无线网络与第一区块链节点进行通讯连接;Figure 1 is a schematic diagram of an application scenario of a blockchain-based transaction query method provided by one or more embodiments of this specification. As shown in Figure 1, the application scenario includes: the first blockchain node and core enterprise users Terminal equipment; among them, the first blockchain node is a node in the blockchain, and the terminal equipment of core enterprise users can be mobile phones, tablets, desktop computers, portable notebook computers, etc., and the terminal equipment of core enterprise users passes through the wireless network Communicate with the first blockchain node;
具体的,核心企业用户的终端设备,接收核心企业用户发送的待查询时间和待查询的交易凭证数据的标识,根据待查询时间和该待查询的交易凭证数据的标识,生成交易查询请求,并发送交易查询请求给第一区块链节点;第一区块链节点接收核心企业用户的终端设备发送的交易查询请求,根据待查询的交易凭证数据的标识,从区块链中获取对应的且交易时间在待查询时间内的目标交易记录信息;第一区块链节点调用第一智能合约,根据获取的目标交易记录信息,生成待查询的交易凭证数据所对应的账款在待查询时间内的分布图,其中,分布图表征账款在待查询时间内分布于账款持有用户之间的分布状况;第一区块链节点将生成的分布图发送给核心企业用户的终端设备;核心企业用户的终端设备接收第一区块链节点发送的分布图,展示接收的分布图,以使核心企业用户查看其所提供的账款的分布状况。由此,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询。Specifically, the terminal device of the core enterprise user receives the time to be queried and the identification of the transaction voucher data to be queried sent by the core enterprise user, generates a transaction query request according to the time to be queried and the identification of the transaction voucher data to be queried, and Send a transaction query request to the first blockchain node; the first blockchain node receives the transaction query request sent by the terminal device of the core enterprise user, and obtains the corresponding data from the blockchain according to the identification of the transaction voucher data to be queried The target transaction record information when the transaction time is within the time to be queried; the first blockchain node calls the first smart contract, and generates the account corresponding to the transaction voucher data to be queried according to the acquired target transaction record information. Within the time to be queried The distribution map represents the distribution of accounts among account holders within the time to be queried; the first blockchain node sends the generated distribution diagram to the terminal devices of core enterprise users; the core The terminal device of the enterprise user receives the distribution map sent by the first blockchain node, and displays the received distribution map, so that the core enterprise user can view the distribution status of the accounts provided by it. As a result, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts it provides among the account holders.
基于上述应用场景架构,本说明书一个或多个实施例提供了一种基于区块链的交易查询方法,图2为本说明书一个或多个实施例提供的一种基于区块链的交易查询方法的流程示意图,图2中的方法能够由图1中的第一区块链节点执行,如图2所示,该方法包括以下步骤:Based on the above application scenario architecture, one or more embodiments of this specification provide a blockchain-based transaction query method. Figure 2 is a blockchain-based transaction query method provided by one or more embodiments of this specification Schematic diagram of the process, the method in Fig. 2 can be executed by the first blockchain node in Fig. 1, as shown in Fig. 2, the method includes the following steps:
步骤S102,接收核心企业用户的终端设备发送的交易查询请求,其中,交易查询请求包括待查询时间和待查询的交易凭证数据的标识;Step S102, receiving a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
步骤S104,根据交易凭证数据的标识,从区块链中获取对应的且交易时间在待查询时间内的目标交易记录信息;Step S104, according to the identification of the transaction voucher data, obtain corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried;
步骤S106,调用第一智能合约,根据目标交易记录信息,生成待查询的交易凭证数据所对应的账款在待查询时间内的分布图,其中,分布图表征账款在待查询时间内分布于账款持有用户之间的分布状况;Step S106: Invoke the first smart contract to generate a distribution map of the accounts corresponding to the transaction voucher data to be queried during the time to be queried according to the target transaction record information, where the distribution map represents the distribution of the accounts during the time to be queried The distribution of account holders among users;
步骤S108,将分布图发送给核心企业用户的终端设备,以使核心企业用户的终端设备展示分布图。In step S108, the distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例中,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。In one or more embodiments of this specification, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
为了避免供应商用户之间、以及供应商用户与其他机构(如银行)之间,基于核心企业所提供的账款所进行的交易的交易数据丢失或被篡改,本说明书一个或多个实施例中,当第二区块链节点接收到供应商用户的终端设备发送的交易请求时,根据交易请求执行相应的交易操作,并根据交易时间、交易请求包括的交易凭证数据的标识等生成交易记录信息,以及将交易记录信息写入区块链中,以为交易的查询提供有效的数据基础;其中,交易记录信息的具体生成过程在后文中进行详述,第二区块链节点与第一区块链节点可以为相同的区块链节点,也可以为不同的区块链节点。基于此,如图3所示,步骤S104包括:In order to avoid the loss or tampering of transaction data of transactions based on accounts provided by core enterprises between supplier users, and between supplier users and other institutions (such as banks), one or more embodiments of this specification When the second blockchain node receives the transaction request sent by the terminal device of the supplier user, it executes the corresponding transaction operation according to the transaction request, and generates the transaction record according to the transaction time, the identification of the transaction voucher data included in the transaction request, etc. Information, and write transaction record information into the blockchain to provide an effective data basis for transaction query; among them, the specific generation process of transaction record information will be described in detail later, the second blockchain node and the first area The blockchain nodes can be the same blockchain node or different blockchain nodes. Based on this, as shown in FIG. 3, step S104 includes:
步骤S104-2,将待查询的交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将待查询时间与区块链存储的交易记录信息所含有的交易时间进行匹配;Step S104-2: Match the identification of the transaction voucher data to be queried with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and match the time to be queried with the transaction record information stored in the blockchain To match the transaction time;
步骤S104-4,若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。In step S104-4, if the matching is successful, the corresponding transaction record information is used as the target transaction record information.
具体的,将待查询的交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,若匹配失败,则确定匹配失败的交易凭证数据的标识所在的交易记录信息不是待查询的交易凭证数据所对应账款的交易记录信息;若匹配成功, 则确定匹配成功的交易凭证数据的标识所在的交易记录信息是待查询的交易凭证数据所对应账款的交易记录信息,从匹配成功的交易凭证数据的标识所在的交易记录信息中读取交易时间,将读取的交易时间与待查询时间进行匹配,若匹配成功,则将匹配成功的交易时间所在的交易记录信息作为目标交易记录信息。需要指出的是,若未获取到目标交易记录信息,则发送提示信息给核心企业用户的终端设备。Specifically, the identification of the transaction voucher data to be queried is matched with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and if the matching fails, the transaction record where the identification of the failed transaction voucher data is located is determined The information is not the transaction record information of the account corresponding to the transaction voucher data to be queried; if the matching is successful, it is determined that the transaction record information where the identifier of the successfully matched transaction voucher data is located is the transaction record of the account corresponding to the transaction voucher data to be queried Information, the transaction time is read from the transaction record information where the identifier of the successfully matched transaction voucher data is located, and the read transaction time is matched with the time to be queried. If the match is successful, the transaction record where the successful transaction time is located will be matched The information serves as the target transaction record information. It should be pointed out that if the target transaction record information is not obtained, the prompt information is sent to the terminal device of the core enterprise user.
进一步的,本说明书实施例中,待查询时间可以是某一时刻(如2019年8月15日12时0分0秒)、还可以是某一时段(如2019年8月1日至2019年8月15日),核心企业用户可以操作其终端设备进行设定。当待查询时间是某一时刻时,对应的,将读取的交易时间与待查询时间进行匹配包括:确定读取的交易时间是否在待查询时间之前,是则匹配成功,否则匹配失败;例如,读取的交易时间为2019年8月3日3时2分15秒,在2019年8月15日12时0分0秒之前,则确定匹配成功。当待查询时间是某一时段时,对应的,将读取的交易时间与待查询时间进行匹配包括:确定读取的交易时间是否在待查询时间之内,是则匹配成功,否则匹配失败;例如,读取的交易时间为2019年8月10日,其在2019年8月1日至2019年8月15日之内,确定匹配成功。Further, in the embodiment of this specification, the time to be queried can be a certain moment (such as 12: 0: 0 on August 15, 2019), or a certain period of time (such as August 1, 2019 to 2019). August 15), core enterprise users can operate their terminal devices to make settings. When the time to be queried is a certain moment, correspondingly, matching the read transaction time with the time to be queried includes: determining whether the read transaction time is before the time to be queried, if yes, the matching is successful, otherwise the matching fails; for example, , The read transaction time is 3:2:15 on August 3, 2019. Before 12:0:0 on August 15, 2019, the match is determined to be successful. When the time to be queried is a certain period of time, correspondingly, matching the read transaction time with the time to be queried includes: determining whether the read transaction time is within the time to be queried, if yes, the matching is successful, otherwise the matching fails; For example, if the transaction time read is August 10, 2019, it is determined that the matching is successful within August 1, 2019 to August 15, 2019.
考虑到核心企业用户设置的待查询时间可能为跨度较小的时间段,或者仅仅是某一时刻,还可能是跨度较大的时间段,为了提升待生成的分布图的可读性和美观性,本说明书一个或多个实施例中,预先设定时间划分规则,以将待查询时间划分为至少一个时间段,从而统计各个账款持有用户在每个时间段所持有的账款的状态信息,并生成分布图,以避免时间段的跨度较大难以在一张分布图中显示的问题;需要指出的是,当待查询时间为某一时刻时,划分的时间段即为该时刻。具体的,如图4所示,步骤S106中包括步骤S106-2至步骤S106-10。Considering that the query time set by the core enterprise users may be a small span of time, or just a certain moment, it may also be a large span of time, in order to improve the readability and aesthetics of the distribution graph to be generated In one or more embodiments of this specification, the time division rule is preset to divide the time to be queried into at least one time period, so as to count the accounts held by each account holder user in each time period. Status information, and generate a distribution map to avoid the problem that the span of the time period is too large to be displayed in a distribution diagram; it should be pointed out that when the time to be queried is a certain moment, the divided time period is that moment . Specifically, as shown in FIG. 4, step S106 includes step S106-2 to step S106-10.
步骤S106-2,调用第一智能合约,按照预设的时间划分规则,将待查询时间划分为至少一个时间段。Step S106-2: Invoke the first smart contract, and divide the time to be queried into at least one time period according to a preset time division rule.
其中,时间划分规则可以在实际应用中根据需要自行设定,例如当待查询时间不足5天时,可以以12小时为划分单位进行时间划分,即每12小时为一个时间段进行时间划分;当待查询时间在5到30天之间时,可以以24小时为划分单位进行时间划分,即每个时间段为1日;当待查询时间在30天至50天时,可以以48小时为划分单位进行时间划分,即每个时间段为2日。Among them, the time division rule can be set according to the needs in actual applications. For example, when the waiting time is less than 5 days, the time can be divided by 12 hours as the division unit, that is, every 12 hours is a time period for time division; When the query time is between 5 and 30 days, it can be divided by 24 hours, that is, each time period is 1 day; when the query time is between 30 days and 50 days, it can be divided by 48 hours Time division, that is, each time period is 2 days.
步骤S106-4,从目标交易记录信息中获取交易时间、交易账款的金额、交易账款的转出用户的用户信息和转入用户的用户信息。Step S106-4: Obtain the transaction time, the amount of the transaction account, the user information of the outgoing user and the user information of the incoming user from the target transaction record information.
步骤S106-6,将转出用户和转入用户作为账款持有用户,根据获取的交易时间、交易账款的金额、交易账款的转出用户的用户信息和转入用户的用户信息,确定各个账款持有用户在每个时间段所持有的账款的状态信息。Step S106-6: Regard the transfer-out user and transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user and the transfer-in user's user information of the transaction account, Determine the status information of the accounts held by each account holder user in each time period.
具体的,将交易账款的转出用户和转入用户作为账款持有用户,将交易账款的转出用户的用户信息和转入用户的用户信息,作为各账款持有用户的用户信息,以对各账款持有用户进行区分,其中,用户信息包括用户名称、用户联系方式等;根据目标交易记录信息中的交易时间,确定每个时间段所对应的目标交易记录信息;根据每个时间段所对应的目标交易记录信息,统计各个账款持有用户在每个时间段所持有的账款的金额,各个账款持有用户在每个时间段所持有的账款的金额在核心企业所提供的账款总额中占据的比例等信息。Specifically, the transfer-out user and transfer-in user of the transaction account are regarded as account holder users, and the user information of the transfer-out user and the user information of the transfer-in user of the transaction account are regarded as the users of each account holder. Information, which distinguishes users who hold accounts, where user information includes user name, user contact information, etc.; according to the transaction time in the target transaction record information, determine the target transaction record information corresponding to each time period; according to The target transaction record information corresponding to each time period, statistics of the amount of accounts held by each account holder user in each time period, and the accounts held by each account holder user in each time period The proportion of the total amount of accounts provided by the core company and other information.
例如,以24小时为划分单位进行时间划分,即每个时间段为1日,目标交易记录信息包括:For example, using 24 hours as the division unit for time division, that is, each time period is 1 day, and the target transaction record information includes:
交易时间:2019年8月1日6时,账款转出用户的用户信息:核心企业等,账款转入用户的用户信息:供应商甲等,交易账款金额:100万元;Transaction time: at 6 o'clock on August 1, 2019, the user information of the account transfer user: core companies, etc., the user information of the account transfer user: supplier A, the transaction account amount: 1 million yuan;
交易时间:2019年8月4日15时,账款转出用户的用户信息:供应商甲等;账款转入用户的用户信息:供应商乙等,交易账款金额:100万;Transaction time: at 15:00 on August 4, 2019, the user information of the user who transfers the account: supplier A; the user information of the user who transfers the account: supplier B, the transaction account amount: 1 million;
交易时间:2019年8月6日9时,账款转出用户的用户信息:供应商乙等,账款转入用户的用户信息:供应商丙等;交易账款金额:60万;Transaction time: at 9 o'clock on August 6, 2019, the user information of the account transfer-out user: supplier B, the user information of the account transfer user: supplier C; transaction account amount: 600,000;
交易时间:2019年8月6日15时,账款转出用户的用户信息:供应商乙等,账款转入用户的用户信息:向供应商丁等,交易账款金额:20万;Transaction time: At 15:00 on August 6, 2019, the user information of the account transfer-out user: supplier B, etc., the account transfer user's user information: to the supplier D, etc., transaction account amount: 200,000;
交易时间:2019年8月11日12时,账款转出用户的用户信息:供应商丁等,账款转入用户的用户信息:银行1等,交易账款金额:5万;Transaction time: at 12 o'clock on August 11, 2019, the user information of the account transfer user: supplier D, etc., the account transfer user user information: Bank 1, etc., transaction account amount: 50,000;
交易时间:2019年8月14日9时,账款转出用户的用户信息:供应商丙等,账款转入用户的用户信息:供应商戊等,交易账款金额:45万;Transaction time: at 9 o'clock on August 14, 2019, the user information of the account transfer user: supplier C, etc., the user information of the account transfer user: supplier E, the transaction account amount: 450,000;
交易时间:2019年8月14日10时,账款转出用户的用户信息:供应商丙等,账款转入用户的用户信息:银行1等,交易账款金额:15万;Transaction time: at 10 o'clock on August 14, 2019, the user information of the account transfer user: supplier C, etc., the account transfer user user information: Bank 1, the transaction account amount: 150,000;
交易时间:2019年8月14日13时,账款转出用户的用户信息:供应商丁等,账款转入用户的用户信息:银行1等,交易账款金额:5万;Transaction time: at 13:00 on August 14, 2019, the user information of the account transfer user: supplier D, etc., the account transfer user user information: Bank 1, etc., transaction account amount: 50,000;
由上述交易记录信息统计可得各个账款持有用户在每个时间段所持有的账款的状态信息(以持有金额为例)如下:From the above transaction record information statistics, the status information of the accounts held by each account holder user in each time period (taking the holding amount as an example) is as follows:
 To 供应商甲Supplier A 供应商乙Supplier B 供应商丙Supplier C 供应商丁Supplier D 供应商戊 Supplier E 银行1Bank 1
2019.8.12019.8.1 100万元1 million yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan
2019.8.22019.8.2 100万元1 million yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan
2019.8.32019.8.3 100万元1 million yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan
2019.8.42019.8.4 0元0 yuan 100万元1 million yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan
2019.8.52019.8.5 0元0 yuan 100万元1 million yuan 0元0 yuan 0元0 yuan 0元0 yuan 0元0 yuan
2019.8.62019.8.6 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 20万元200,000 yuan 0元0 yuan 0元0 yuan
2019.8.72019.8.7 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 20万元200,000 yuan 0元0 yuan 0元0 yuan
2019.8.92019.8.9 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 20万元200,000 yuan 0元0 yuan 0元0 yuan
2019.8.102019.8.10 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 20万元200,000 yuan 0元0 yuan 0万元0 million
2019.8.112019.8.11 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 15万元150,000 yuan 0元0 yuan 5万元50,000 yuan
2019.8.122019.8.12 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 15万元150,000 yuan 0元0 yuan 5万元50,000 yuan
2019.8.132019.8.13 0元0 yuan 20万元200,000 yuan 60万元600,000 yuan 15万元150,000 yuan 0元0 yuan 5万元50,000 yuan
2019.8.142019.8.14 0元0 yuan 20万元200,000 yuan 0元0 yuan 10万元100,000 yuan 45万元450,000 yuan 25万元250,000 yuan
2019.8.152019.8.15 0元0 yuan 20万元200,000 yuan 0元0 yuan 10万元100,000 yuan 45万元450,000 yuan 25万元250,000 yuan
需要指出的是,根据目标交易记录信息统计的各个账款持有用户在每个时间段所持有的账款的状态信息的形式,不限为上述形式,其在实际应用中可以根据需要自行设定,例如针对每个账款持有用户建立单独的表格等。It should be pointed out that the form of the status information of the accounts held by each account holder user at each time period based on the target transaction record information is not limited to the above forms, and it can be used according to needs in actual applications. Settings, such as creating a separate form for each account holder user.
步骤S106-8,在预设的填充样式中,选取用于表征各个账款持有用户的互不相同的填充样式;In step S106-8, among the preset filling patterns, different filling patterns used to characterize each account holder user are selected;
其中,填充样式可以在实际应用中根据需要自行设定,例如颜色填充、图案填充等。Among them, the filling style can be set according to actual needs, such as color filling, pattern filling, etc.
步骤S106-10,按照时间的先后顺序,根据选取的填充样式和确定的状态信息,生成交易凭证数据所对应的账款在待查询时间内分布于各个账款持有用户之间的分布图。Step S106-10, according to the time sequence, according to the selected filling pattern and the determined status information, generate a distribution map of the accounts corresponding to the transaction voucher data among the account holders within the time to be queried.
其中,根据选取的填充样式和前述确定的状态信息生成的分布图如图5所示,该分布图包括主体部分和注释部分,主体部分展示了账款在各持有用户之间的分布状况, 注释部分包括各个账款持有用户的用户信息(如用户名称)与填充样式的关联信息;进一步的,由图5所示的分布图可以看出:时间段2019年8月1日至时间段2019年8月3日,100万账款均分布于账款持有用户供应商甲处;时间段2019年8月4日和2019年8月5日,100万账款均分布于账款持有用户供应商乙处;时间段8月6日至时间段8月10日,20万账款分布于账款持有用户供应商乙处、60万账款分布于账款持有用户供应商丙处、20万账款分布于账款持有用户供应商丁处;时间段2019年8月11日至时间段2019年8月13日,20万账款分布于账款持有用户供应商乙处、60万账款分布于账款持有用户供应商丙处、15万账款分布于账款持有用户供应商丁处,5万账款分布于账款持有用户银行1处;时间段2019年8月14日和时间段2019年8月15日,20万账款分布于账款持有用户供应商乙处、45万账款分布于账款持有用户供应商戊处,10万账款分布于账款持有用户供应商丁处,25万账款分布于账款持有用户银行1处。Among them, the distribution diagram generated according to the selected filling style and the aforementioned determined status information is shown in Figure 5. The distribution diagram includes a main body part and an annotation part. The main body part shows the distribution of accounts among users. The comment part includes the user information (such as user name) of each account holder and the associated information of the filling style; further, it can be seen from the distribution diagram shown in Figure 5: the time period is August 1, 2019 to the time period On August 3, 2019, the accounts of 1 million were distributed to the account holder user supplier A; during the time period of August 4, 2019 and August 5, 2019, the accounts of 1 million were distributed to the account holders. There is user supplier B; from August 6 to August 10, 200,000 accounts are distributed to the account holder user provider B, and 600,000 accounts are distributed to the account holder user supplier Department C, 200,000 accounts are distributed to account holder user supplier D; from August 11, 2019 to time period August 13, 2019, 200,000 accounts are distributed to account holder user provider D Office B and 600,000 accounts are distributed at the account holding user supplier C, 150,000 accounts are distributed at the account holding user provider D, and 50,000 accounts are distributed at the account holding user’s bank 1. During the time period August 14, 2019 and time period August 15, 2019, 200,000 accounts were distributed to the account holder user supplier B, and 450,000 accounts were distributed to the account holder user supplier E. 100,000 accounts are distributed at the account holder user provider D, and 250,000 accounts are distributed at the account holder 1 bank.
可见,核心企业用户仅需提供待查询时间和待查询的交易凭证数据的标识,即可实现相应账款在各账款持有用户之间的分布状况的有效查询,并且无需核心企业用户对交易记录信息进行整合等操作,即可从分布图中一目了然的看到其所提供的账款在每个时间段的分布状况。It can be seen that the core enterprise users only need to provide the identification of the time to be queried and the transaction voucher data to be queried, and the corresponding accounts can be effectively inquired about the distribution status of the account holders, and there is no need for the core enterprise users to trade Record the information and perform operations such as integration, and you can see the distribution of the accounts it provides in each time period at a glance from the distribution diagram.
考虑到大部分用户在使用鼠标时具有一个习惯,也就是鼠标的光标所在的位置即为用户当前关注的位置,基于此,为了让核心企业用户拥有更好的查询体验,本说明书一个多个实施例中,方法还包括:Considering that most users have a habit of using the mouse, that is, the position of the mouse cursor is the position that the user is currently paying attention to. Based on this, in order to allow core enterprise users to have a better query experience, this manual has multiple implementations. In the example, the method also includes:
步骤A2,若检测到光标位于分布图的主体部分,则获取光标所在位置的位置信息;或者,若检测到核心企业用户对分布图的主体部分的触发操作,则获取被操作位置的位置信息;Step A2, if it is detected that the cursor is located in the main part of the distribution map, then obtain the position information where the cursor is located; or if the core enterprise user's trigger operation on the main part of the distribution map is detected, obtain the position information of the operated position;
步骤A4,确定与获取的位置信息最近的目标时间段;Step A4: Determine the target time period closest to the acquired location information;
具体的,测量获取的位置信息与其相邻的前一个时间段之间的第一距离,以及测量获取的位置信息与其相邻的后一个时间段之间的第二距离,比较第一距离与第二距离的大小,并将小的距离所对应的时间段作为目标时间段。Specifically, the first distance between the position information obtained by measurement and its adjacent time period, and the second distance between the position information obtained by measurement and its adjacent time period, compare the first distance with the first distance Second, the size of the distance, and the time period corresponding to the small distance is regarded as the target time period.
步骤A6,确定账款在目标时间段内在账款持有用户之间的分布信息;Step A6: Determine the distribution information of the account among the account holders within the target time period;
具体的,从前述统计的账款持有用户在每个时间段所持有的账款的状态信息中,获取账款持有用户在目标时间段所持有的账款的状态信息,根据获取的状态信息,生成账款在目标时间段内在账款持有用户之间的分布信息;其中,分布信息的具体内容可在 实际应用中根据需要自行设定,例如分布信息包括时间信息、持有账款的各账款持有用户的用户名称、持有账款的各账款持有用户所持的账款金额等信息。Specifically, from the aforementioned statistics of the status information of the accounts held by the account holders in each time period, the status information of the accounts held by the account holders in the target time period is obtained, and according to the obtained The status information of the account is generated during the target time period among the account holders. Among them, the specific content of the distribution information can be set according to the needs in actual applications. For example, the distribution information includes time information, holdings Each account of the account holds the user name of the user, and each account of the account holds information such as the amount of the account held by the user.
步骤A8,展示确定的分布信息。Step A8, display the determined distribution information.
其中,展示分布信息的示意图可参见图6。Among them, a schematic diagram showing distribution information can be seen in Figure 6.
通过检测鼠标光标的位置,或者检测核心企业用户对分布图的主体部分的触发操作,并展示相应的账款的分布信息,使得核心企业用户能够更清楚的了解到在某一时间段,账款在各账款持有用户之间的分布状况,有利于提升核心企业用户的人机交互体验以及查询体验。By detecting the position of the mouse cursor, or detecting the triggering operation of the core enterprise user on the main part of the distribution map, and displaying the corresponding account distribution information, the core enterprise user can more clearly understand the account payment in a certain period of time. The distribution of account holders among users is conducive to improving the human-computer interaction experience and query experience of core enterprise users.
进一步的,分布图不仅能够体现出账款在各账款持有用户之间的分布状况,还可以体现出账款在某一账款持有用户处的变化状态,即每一个填充方式所对应的区域随时间的变化体现了账款在某一账款持有用户处随时间的变化。然而,当账款持有用户较多时,特别是采用不同的颜色代表不同的账款持有用户时,分布图中不同的填充样式的边界处可能会存在肉眼难以区分的现象,使得核心企业用户想要查阅账款在某一账款持有用户处的变化时,变得困难。基于此,本说明书一个或多个实施例中,还包括:Further, the distribution map can not only reflect the distribution of accounts among the account holders, but also reflect the change status of accounts at a certain account holder, that is, each filling method corresponds to The change of the area over time reflects the change over time of the account at a certain account holder user. However, when there are many account holders, especially when different colors are used to represent different account holders, the borders of different filling patterns in the distribution map may be indistinguishable by the naked eye, making core enterprise users It becomes difficult to check the account changes in a certain account holder user. Based on this, one or more embodiments of this specification further include:
步骤B2,若检测到光标位于注释部分所包括的关联信息,则在分布图的主体部分区别展示光标所在的关联信息所对应的填充样式;或者,Step B2, if it is detected that the cursor is located in the associated information included in the comment part, then the filling pattern corresponding to the associated information where the cursor is located is displayed in the main part of the distribution map; or,
步骤B4,若检测到核心企业用户对关联信息的触发操作,则在分布图中区别展示被操作的关联信息所对应的填充样式。Step B4: If the core enterprise user's triggering operation on the associated information is detected, then the filling pattern corresponding to the operated associated information is displayed in the distribution map.
其中,区别展示的方式,可以为加重显示,如颜色加深、填充图案线条加粗、填充区域边框加粗等;还可以在加重显示的基础上虚化其他填充样式等,其在实际应用中可根据需要自行设定。作为示例,如图7所示,当第一区块链节点检测到光标位于供应商丙对应的关联信息时,对应填充区域的边框加粗显示。由此,通过区别展示光标所在的关联信息所对应的填充样式,或者区别展示被操作的关联信息所对应的填充样式,不仅能够更直观的将账款在某一账款持有用户处的变化状况展示给核心企业用户,而且对于核心企业用户而言,提升了人机交互体验。Among them, the way of distinguishing display can be emphasized display, such as deepening the color, thickening the line of the filling pattern, thickening the border of the filled area, etc.; you can also blur other filling styles on the basis of the emphasized display, which can be used in practical applications. Set according to your needs. As an example, as shown in FIG. 7, when the first blockchain node detects that the cursor is located on the associated information corresponding to supplier C, the border of the corresponding filled area is displayed in bold. Therefore, by distinguishing the filling style corresponding to the associated information where the cursor is located, or distinguishing the filling style corresponding to the operating associated information, it is not only possible to more intuitively display the changes of the account at a certain account holder user. The situation is shown to core enterprise users, and for core enterprise users, the human-computer interaction experience is improved.
需要指出的是,上述图5至图7所示的分布图仅用于示意而不用于限定,在实际应用中可根据需要自行设计分布图的样式。It should be pointed out that the distribution diagrams shown in Figs. 5 to 7 are only used for illustration and not for limitation. In practical applications, the style of the distribution diagrams can be designed according to needs.
本说明书一个或多个实施例中,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款,在各账款持有用户之间的分布状况的有效查询;同时,通过生 成待查询的交易凭证数据所对应的账款的流转路径图,并将生成的流转路径图发送给核心企业用户的终端设备,使得核心企业用户可以清晰的、一目了然的查看到待查询的交易凭证数据所对应的账款的所有流转信息,而无需核心企业用户根据每个交易记录信息对账款的流转信息进行人工梳理,提升了查询效率以及用户体验。In one or more embodiments of this specification, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts provided by the core enterprise among the account holders; at the same time; , By generating the circulation path diagram of the account corresponding to the transaction voucher data to be queried, and sending the generated circulation path diagram to the terminal equipment of the core enterprise user, so that the core enterprise user can clearly and at a glance view the to be queried All the transfer information of the accounts corresponding to the transaction voucher data does not require core enterprise users to manually sort out the transfer information of the accounts according to each transaction record information, which improves query efficiency and user experience.
与上述基于区块链的交易查询方法对应的,本说明书一个或多个实施例还提供一种基于区块链的交易数据处理方法;图8为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的应用场景示意图,如图8所示,该应用场景包括:第二区块链节点、核心企业用户的终端设备和供应商用户的终端设备;其中,第二区块链节点为区块链中的节点,第二区块链节点与前述第一区块链节点可以为相同的区块链节点,也可以为不同的区块链节点;核心企业用户的终端设备和供应商用户的终端设备可以为手机、平板电脑、台式计算机、便携式笔记本式计算机等,核心企业用户的终端设备和供应商用户的终端设备均通过无线网络与第一区块链节点进行通讯连接。Corresponding to the above-mentioned blockchain-based transaction query method, one or more embodiments of this specification also provide a blockchain-based transaction data processing method; FIG. 8 is a method provided by one or more embodiments of this specification A schematic diagram of the application scenario of the transaction data processing method based on the blockchain, as shown in Figure 8, the application scenario includes: the second blockchain node, the terminal equipment of the core enterprise user, and the terminal equipment of the supplier user; among them, the second The blockchain node is a node in the blockchain. The second blockchain node and the aforementioned first blockchain node can be the same blockchain node or different blockchain nodes; the terminal of the core enterprise user The terminal equipment of equipment and supplier users can be mobile phones, tablets, desktop computers, portable notebook computers, etc. The terminal equipment of core enterprise users and the terminal equipment of supplier users communicate with the first blockchain node through the wireless network connection.
具体的,核心企业用户的终端设备,接收核心企业用户发送的应付账款数据,并将该应付账款数据发送给第二区块链节点;其中,应付账款数据包括账款金额、供应商用户的用户信息(如姓名、所在企业的企业名称、联系方式等)、供应商用户的开户银行信息(如农业银行)、供应商用户的开户银行的账户信息(如银行卡的卡号)、付款方式等;Specifically, the terminal device of the core enterprise user receives the accounts payable data sent by the core enterprise user, and sends the accounts payable data to the second blockchain node; among them, the accounts payable data includes the amount of the account, the supplier The user's user information (such as name, company name, contact information, etc.), supplier user's bank information (such as Agricultural Bank), supplier user's bank account information (such as bank card number), payment Way etc.;
第二区块链节点,接收核心企业用户的终端设备发送的应付账款数据,根据应付账款数据包括的供应商用户的用户信息,将应付账款数据发送给供应商用户的终端设备,以使供应商用户对应付账款数据进行审核;并在接收到供应商用户的终端设备发送的审核通过信息时,根据应付账款数据生成交易凭证数据;以及在接收到供应商用户的终端设备发送的基于该交易凭证数据的交易请求时,根据交易请求执行相应的交易操作,并生成交易记录信息,将交易记录信息写入区块链中;The second blockchain node receives the accounts payable data sent by the terminal device of the core enterprise user, and sends the account payable data to the terminal device of the supplier user according to the user information of the supplier user included in the account payable data. Enable the supplier user to review the accounts payable data; and when receiving the approval information sent by the supplier user’s terminal device, generate transaction voucher data based on the accounts payable data; and when the supplier user’s terminal device sends it When the transaction request is based on the transaction voucher data, execute the corresponding transaction operation according to the transaction request, generate transaction record information, and write the transaction record information into the blockchain;
供应商用户的终端设备,接收第二区块链节点发送的应付账款数据,展示该应付账款数据,以使供应商用户进行审核,并在接收到供应商用户发送的审核通过信息时,将该审核通过信息发送给第二区块链节点,以使第二区块链节点根据应付账款数据生成交易凭证数据;以及在接收到供应商用户发送的基于交易凭证数据的交易数据时,根据该交易数据生成交易请求,发送交易请求给第二区块链节点。其中,供应商用户在收到核心企业用户所提供的上述交易凭证数据对应的账款后,可以使用该账款与其他的供应商用户、银行等进行交易,如账款的转出、转入、融资等;对应的,交易数据包括交易 账款的金额,交易账款的转出用户的用户信息和银行账户信息、交易账款的转入用户的用户信息和银行账户信息等。The terminal device of the supplier user receives the accounts payable data sent by the second blockchain node, displays the accounts payable data, so that the supplier user can review it, and when it receives the approval information sent by the supplier user, Send the approved information to the second blockchain node, so that the second blockchain node generates transaction voucher data based on the accounts payable data; and when receiving the transaction data based on the transaction voucher data sent by the supplier user, A transaction request is generated according to the transaction data, and the transaction request is sent to the second blockchain node. Among them, after the supplier user receives the account corresponding to the above-mentioned transaction voucher data provided by the core enterprise user, he can use the account to conduct transactions with other supplier users, banks, etc., such as transfer out and transfer of accounts Correspondingly, the transaction data includes the amount of transaction accounts, the user information and bank account information of the user who transfers the transaction accounts, and the user information and bank account information of the user who transfers the transaction accounts.
上述应用场景中,通过在区块链的可信环境下进行交易数据处理,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In the above application scenarios, the transaction data is processed in the trusted environment of the blockchain to make the transaction process open, transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information into the blockchain It ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
基于上述应用场景架构,本说明书一个或多个实施例还提供了一种基于区块链的交易数据处理方法;图9为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理方法的流程示意图,图9中的方法能够由图8中的第二区块链节点执行,如图9所示,该方法包括步骤S202-S210。Based on the above application scenario architecture, one or more embodiments of this specification also provide a blockchain-based transaction data processing method; Figure 9 is a blockchain-based transaction provided by one or more embodiments of this specification A schematic flow chart of the data processing method. The method in FIG. 9 can be executed by the second blockchain node in FIG. 8. As shown in FIG. 9, the method includes steps S202-S210.
步骤S202,接收核心企业用户的终端设备发送的应付账款数据;Step S202, receiving the accounts payable data sent by the terminal device of the core enterprise user;
步骤S204,根据应付账款数据生成交易凭证数据,以及生成交易凭证数据的标识;Step S204, generating transaction voucher data according to the accounts payable data, and generating an identifier of the transaction voucher data;
步骤S206,将交易凭证数据的标识发送给核心企业用户的终端设备,以使核心企业用户根据交易凭证数据的标识,查询交易凭证数据所对应的账款的分布状况;Step S206, sending the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of accounts corresponding to the transaction voucher data according to the identification of the transaction voucher data;
步骤S208,当接收到供应商用户的终端设备发送的交易请求时,根据交易请求执行相应的交易操作,并根据交易时间、交易凭证数据的标识生成交易记录信息;Step S208: When a transaction request sent by a terminal device of a supplier user is received, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data;
步骤S210,将交易记录信息写入区块链中。In step S210, the transaction record information is written into the blockchain.
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In one or more embodiments of this specification, by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information The blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
由于应付账款数据中包括了账款金额以及供应商的相关信息,为了确保基于应付账款数据所生成的交易凭证数据的准确性,本说明书一个或多个实施例中,步骤S204根据应付账款数据生成交易凭证数据,包括:Since the accounts payable data includes the amount of the accounts and the supplier’s related information, in order to ensure the accuracy of the transaction voucher data generated based on the accounts payable data, in one or more embodiments of this specification, step S204 is based on the accounts payable Payment data generates transaction voucher data, including:
步骤S204-2,根据应付账款数据包括的供应商用户的用户信息,发送应付账款数据给对应的供应商用户的终端设备,以使供应商用户对应付账款数据进行审核;Step S204-2, according to the user information of the supplier user included in the accounts payable data, send the account payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data;
步骤S204-4,若在预设时长内接收到供应商用户的终端设备发送的审核通过信息,则根据应付账款数据生成交易凭证数据。In step S204-4, if the approval information sent by the terminal device of the supplier user is received within the preset time period, the transaction voucher data is generated according to the accounts payable data.
具体的,第二区块链节点根据供应商用户的用户信息所包括的联系方式,将接收的应付账款数据发送给供应商用户的终端设备,并判断预设时长内是否接收到供应商用户的终端设备发送的审核通过信息,当判断结果为是时,根据应付账款数据生成交易凭证数据;当判断结果为否时,发送交易失败信息给核心企业用户的终端设备;其中,联系方式如邮箱、供应商用户在供应链金融平台的账号信息等。由此,通过将应付账款数据发送给供应商用户进行审核,降低了因应付账款数据所包括的信息有误使得所生成的交易凭证数据有误,进而因交易凭证数据有误而引发纠纷的风险。Specifically, the second blockchain node sends the received accounts payable data to the terminal device of the supplier user according to the contact information included in the user information of the supplier user, and determines whether the supplier user is received within the preset time period When the judgment result is yes, the transaction voucher data is generated based on the accounts payable data; when the judgment result is no, the transaction failure information is sent to the terminal device of the core enterprise user; where the contact information is as follows Email, supplier user account information on the supply chain finance platform, etc. As a result, by sending the accounts payable data to the supplier user for review, it is reduced that the information included in the accounts payable data is incorrect and the generated transaction voucher data is incorrect, which in turn causes disputes due to the incorrect transaction voucher data. risks of.
考虑到一些供应商用户在收到核心企业用户所提供的账款后,使用该账款进行非法交易,为避免该现象的发生,本说明书一个或多个实施例中,如图10所示,步骤S208中根据交易请求执行相应的交易操作,包括:Considering that some supplier users use the accounts to conduct illegal transactions after receiving the accounts provided by the core enterprise users. In order to avoid this phenomenon, in one or more embodiments of this specification, as shown in Figure 10, Step S208 executes corresponding transaction operations according to the transaction request, including:
调用第二智能合约,基于第二智能合约确定交易请求包括的交易数据是否满足交易凭证数据的交易规则;若交易数据满足交易凭证数据的交易规则,则根据交易数据执行相应的交易操作。The second smart contract is called, and based on the second smart contract, it is determined whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets the transaction rules of the transaction voucher data, the corresponding transaction operation is performed according to the transaction data.
其中,交易数据包括但不限于交易账款的金额,交易账款的转出用户的用户信息和银行账户信息、交易账款的转入用户的用户信息和银行账户信息。作为示例,当交易请求用于请求账款转移(如转出)操作时,则以交易数据所包括的待转移账款的金额,将待转移账款从转出用户的银行账户信息所对应的银行账户中转出,并转入至转入用户的银行账户信息所对应的银行账户。The transaction data includes, but is not limited to, the amount of the transaction account, the user information and bank account information of the user who transfers the transaction account, and the user information and bank account information of the user who transfers the transaction account. As an example, when a transaction request is used to request an account transfer (such as a transfer out) operation, the amount of the account to be transferred included in the transaction data is used to transfer the account to be transferred from the bank account information of the outgoing user. Transfer out from the bank account and transfer to the bank account corresponding to the bank account information of the transfer-in user.
进一步的,若交易数据不满足交易凭证数据的交易规则,则发送交易失败信息给供应商用户的终端设备。Further, if the transaction data does not meet the transaction rules of the transaction voucher data, the transaction failure information is sent to the terminal device of the supplier user.
由此,基于区块链中的第二智能合约,自动确定交易请求包括的交易数据是否满足交易凭证数据的交易规则,有效的避免了供应商用户使用核心企业用户所提供的账款进行非法交易等现象的发生,促进了供应链金融的稳定发展。Therefore, based on the second smart contract in the blockchain, it is automatically determined whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data, effectively avoiding supplier users from using the accounts provided by core enterprise users for illegal transactions The occurrence of such phenomena has promoted the stable development of supply chain finance.
更进一步的,为了明确核心企业与供应商之间的交易事项,如账款金额、交易规则等,通常的,核心企业与供应商会签订交易合同;而为了确保基于智能合约所确定的交易数据满足的交易规则与合同约定的交易规则一致,本说明书一个或多个实施例中,如图10所示,步骤S208之前,还包括:Furthermore, in order to clarify the transaction items between the core enterprise and the supplier, such as the amount of accounts, transaction rules, etc., usually, the core enterprise and the supplier will sign a transaction contract; and in order to ensure that the transaction data determined based on the smart contract meets The transaction rules are consistent with the transaction rules agreed in the contract. In one or more embodiments of this specification, as shown in Figure 10, before step S208, it further includes:
步骤S207-2,接收核心企业用户的终端设备发送的电子合同;具体的,核心企业用户操作其终端设备,上传核心企业与供应商所签订的电子合同,或者所签订的纸质合 同的电子扫描件,本说明书中统称为电子合同;核心企业用户的终端设备接收核心企业用户上传的电子合同,并将接收的电子合同发送给第二区块链节点,第二区块链节点接收核心企业用户的终端设备发送的电子合同。需要指出的是,电子合同可以由前述核心企业用户与供应商用户签署,还可以由核心企业指定的其他用户与供应商指定的其他用户签署;进一步需要指出的是,核心企业用户可以在提交应付账款数据之前上传电子合同,也可以在提交应付账款数据之后上传电子合同,还可以同时提交应付账款数据和上传电子合同;也即步骤S207-2可以在步骤S202之前执行,也可以在步骤S202之后执行,还可以与步骤S202同时执行。Step S207-2, receiving the electronic contract sent by the terminal device of the core enterprise user; specifically, the core enterprise user operates its terminal device and uploads the electronic contract signed by the core enterprise and the supplier, or an electronic scan of the signed paper contract These documents are collectively referred to as electronic contracts in this manual; the core enterprise user’s terminal device receives the electronic contract uploaded by the core enterprise user, and sends the received electronic contract to the second blockchain node, and the second blockchain node receives the core enterprise user The electronic contract sent by the terminal device. It should be pointed out that the electronic contract can be signed by the aforementioned core enterprise user and supplier user, or signed by other users designated by the core enterprise and other users designated by the supplier; Upload the electronic contract before the account data, or upload the electronic contract after submitting the accounts payable data. You can also submit the accounts payable data and upload the electronic contract at the same time; that is, step S207-2 can be executed before step S202, or in It is executed after step S202, and can also be executed simultaneously with step S202.
步骤S207-4,在电子合同中获取交易凭证数据的交易规则,并根据获取的交易规则在区块链中部署第二智能合约;具体的,第一区块链节点在电子合同中查找预设的关键字段,将包括关键字段的条款作为交易凭证数据的交易规则。其中,关键字段可以在实际应用中根据需要自行设定,例如,关键字段包括融资比,将电子合同中包括融资比字段的条款“融资比不得大于账款金额的50%”作为交易凭证数据的交易规则。Step S207-4: Obtain the transaction rules of the transaction voucher data in the electronic contract, and deploy the second smart contract in the blockchain according to the acquired transaction rules; specifically, the first blockchain node searches for the preset in the electronic contract The key fields of, will include the terms of the key fields as transaction rules for transaction voucher data. Among them, the key fields can be set by themselves in actual applications. For example, the key fields include financing ratio, and the clause in the electronic contract that includes the financing ratio field "the financing ratio shall not be greater than 50% of the account amount" is used as the transaction certificate Data trading rules.
通过在核心企业用户的终端设备发送的电子合同中获取交易规则,并根据获取的交易规则在区块链中部署第二智能合约,不仅确保了智能合约与合同约定的一致性,而且无需用户手动编辑交易规则,减少了用户操作,提升了用户体验。By acquiring the transaction rules from the electronic contract sent by the core enterprise user’s terminal device, and deploying the second smart contract in the blockchain according to the acquired transaction rules, it not only ensures the consistency of the smart contract and the contract agreement, but also does not require the user to manually Editing transaction rules reduces user operations and improves user experience.
由于不同的核心企业与不同的供应商之间约定的交易规则不同,因此第一区块链节点根据不同的交易规则部署的第二智能合约也不同;为了对第二智能合约进行有效区分、以及有效的识别不同的交易凭证数据所对应的第二智能合约,本说明书一个或多个实施例中,步骤S207-4之后,还包括:步骤D2,生成第二智能合约的合约标识;步骤D4,将生成的交易凭证数据的标识与合约标识进行关联记录,得到关联记录信息。Since the transaction rules agreed between different core companies and different suppliers are different, the second smart contract deployed by the first blockchain node according to different transaction rules is also different; in order to effectively distinguish the second smart contract, and Effectively identify the second smart contract corresponding to different transaction voucher data. In one or more embodiments of this specification, after step S207-4, it further includes: step D2, generating the contract identifier of the second smart contract; step D4, The identification of the generated transaction voucher data and the contract identification are associated and recorded to obtain associated record information.
通过将生成的交易凭证数据的标识与合约标识进行关联记录,以在接收到基于交易凭证数据的交易请求时,根据交易请求包括的交易凭证数据的标识,以及得到的关联记录信息,确定需要调用的第二智能合约。即本说明书一个或多个实施例中,前述调用第二智能合约,包括:步骤E2,根据交易请求包括的交易凭证数据的标识,在关联记录信息中获取对应的合约标识;步骤E4,调用获取的合约标识所对应的第二智能合约。By associating and recording the generated transaction voucher data identification with the contract identification, when a transaction request based on the transaction voucher data is received, according to the transaction voucher data identification included in the transaction request and the obtained associated record information, it is determined that the call needs to be called The second smart contract. That is, in one or more embodiments of this specification, the aforementioned invoking the second smart contract includes: step E2, obtaining the corresponding contract ID from the associated record information according to the ID of the transaction voucher data included in the transaction request; step E4, invoking the get The second smart contract corresponding to the contract ID of.
由此,基于得到的关联记录信息,实现了第二智能合约的准确调用。As a result, based on the obtained associated record information, accurate invocation of the second smart contract is realized.
进一步的,为了为核心企业用户查询其所提供的账款在账款持有用户之间的分布状况提供充分有效的信息,本说明书一个或多个实施例中,步骤S208中根据交易时间、 交易凭证数据的标识生成交易记录信息,包括:将交易凭证数据的标识、交易请求包括的交易账款的金额、交易账款的转出供应商用户的用户信息和转入供应商用户的用户信息进行关联记录,并将记录的信息作为交易记录信息。Further, in order to provide sufficient and effective information for core enterprise users to inquire about the distribution status of accounts provided by them among account holders, in one or more embodiments of this specification, in step S208, according to transaction time and transaction The identification of the voucher data generates transaction record information, including: the identification of the transaction voucher data, the amount of the transaction account included in the transaction request, the user information of the user who transfers the transaction account out of the supplier, and the user information of the user who is transferred to the supplier. Associate records and use the recorded information as transaction record information.
更进一步的,为了避免应付账款数据被恶意篡改而与交易凭证数据不一致,本说明书一个或多个实施例中,步骤S204中生成交易凭证数据的标识之后,还包括:将应付账款数据、交易凭证数据、以及交易凭证数据的标识关联记录,并将记录的信息写入区块链中。Furthermore, in order to prevent the accounts payable data from being maliciously tampered with and being inconsistent with the transaction voucher data, in one or more embodiments of this specification, after the identification of the transaction voucher data is generated in step S204, it further includes: converting the accounts payable data, The transaction voucher data and the identification associated record of the transaction voucher data are recorded, and the recorded information is written into the blockchain.
在一个具体的实施例中,以第二区块链节点同时接收核心企业用户的终端设备发送的应付账款数据和电子合同为例进行说明,如图11所示,方法包括步骤S302-S324。In a specific embodiment, the second blockchain node simultaneously receives the accounts payable data and the electronic contract sent by the terminal device of the core enterprise user as an example for description. As shown in FIG. 11, the method includes steps S302-S324.
步骤S302,第二区块链节点接收核心企业用户的终端设备发送的应付账款数据和电子合同。Step S302, the second blockchain node receives the accounts payable data and the electronic contract sent by the terminal device of the core enterprise user.
步骤S304,第二区块链节点根据应付账款数据包括的供应商用户的用户信息,将应付账款数据发送给对应的供应商用户的终端设备。In step S304, the second blockchain node sends the account payable data to the terminal device of the corresponding supplier user according to the user information of the supplier user included in the account payable data.
步骤S306,第二区块链节点判断预设时长内是否接收到供应商用户的终端设备发送的审核通过信息,是则执行步骤S308,否则发送交易失败信息给核心企业用户的终端设备。In step S306, the second blockchain node determines whether the verification passed information sent by the terminal device of the supplier user is received within the preset time period, and if yes, step S308 is executed, otherwise, the transaction failure information is sent to the terminal device of the core enterprise user.
步骤S308,第二区块链节点根据应付账款数据生成交易凭证数据,以及生成交易凭证数据的标识。In step S308, the second blockchain node generates transaction voucher data according to the accounts payable data, and generates an identifier of the transaction voucher data.
步骤S310,第二区块链节点将应付账款数据、交易凭证数据、以及交易凭证数据的标识关联记录,并将记录的信息写入区块链中,以及将应付账款数据与应付账款数据标识对应分别发送给核心企业用户的终端设备和供应商用户的终端设备。In step S310, the second blockchain node records the accounts payable data, transaction voucher data, and the identification associated with the transaction voucher data, writes the recorded information into the blockchain, and associates the accounts payable data with the accounts payable The data identification corresponds to the terminal equipment sent to the core enterprise user and the terminal equipment of the supplier user respectively.
步骤S312,第二区块链节点在电子合同中查找预设的关键字段,将包括关键字段的条款作为交易凭证数据的交易规则。In step S312, the second blockchain node searches for the preset key fields in the electronic contract, and uses the terms including the key fields as the transaction rules of the transaction voucher data.
步骤S314,第二区块链节点根据交易规则在区块链中部署智能合约,并生成智能合约的合约标识。In step S314, the second blockchain node deploys the smart contract in the blockchain according to the transaction rules, and generates a contract identifier of the smart contract.
步骤S316,第二区块链节点将生成的交易凭证数据的标识与合约标识进行关联记录,得到关联记录信息。In step S316, the second blockchain node associates and records the generated transaction voucher data identifier and the contract identifier to obtain associated record information.
步骤S318,当第二区块链节点接收到供应商用户的终端设备发送的基于交易凭证 数据的交易请求时,根据交易请求包括的交易凭证数据的标识,在关联记录信息中获取对应的合约标识。Step S318: When the second blockchain node receives the transaction request based on transaction voucher data sent by the terminal device of the supplier user, it obtains the corresponding contract ID from the associated record information according to the ID of the transaction voucher data included in the transaction request .
步骤S320,第二区块链节点根据获取的合约标识,调用对应的智能合约,基于智能合约确定交易请求包括的交易数据是否满足交易凭证数据的交易规则,是则执行步骤S322,否则发送交易失败信息给供应商用户的终端设备。Step S320, the second blockchain node calls the corresponding smart contract according to the acquired contract identifier, and determines whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data based on the smart contract. If yes, execute step S322, otherwise the sending transaction fails Information to the supplier’s user’s terminal equipment.
步骤S322,第二区块链节点根据交易数据执行相应的交易操作,并将交易数据与交易凭证数据的标识进行关联记录,将记录的信息作为交易记录信息。In step S322, the second blockchain node performs a corresponding transaction operation according to the transaction data, associates the transaction data with the identification of the transaction voucher data, and records the recorded information as the transaction record information.
步骤S324,第二区块链节点将交易记录信息写入区块链中,并发送交易成功信息给供应商用户的终端设备。In step S324, the second blockchain node writes the transaction record information into the blockchain, and sends the transaction success information to the terminal device of the supplier user.
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In one or more embodiments of this specification, by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information The blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
进一步地,对应上述图2至图4描述的基于区块链的交易查询方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易查询装置。图12为本说明书一个或多个实施例提供的基于区块链的交易查询装置的模块组成示意图,该装置用于执行图2至图4描述的基于区块链的交易查询方法,如图12所示,该装置包括:Further, corresponding to the blockchain-based transaction query method described in FIGS. 2 to 4, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based transaction query device. Figure 12 is a schematic diagram of the module composition of a blockchain-based transaction query device provided by one or more embodiments of this specification. The device is used to execute the blockchain-based transaction query method described in Figures 2 to 4, as shown in Figure 12 As shown, the device includes:
接收模块401,其接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;A receiving module 401, which receives a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
获取模块402,其根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;An obtaining module 402, which obtains corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried according to the identifier of the transaction voucher data;
生成模块403,其调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;The generation module 403, which invokes the first smart contract, generates a distribution map of the account corresponding to the transaction voucher data within the time to be queried according to the target transaction record information, wherein the distribution map represents the The distribution status of the accounts among account holders during the time to be queried;
发送模块404,其将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。The sending module 404 sends the distribution map to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例中,基于区块链中存储的交易记录信息,实现了核心 企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。In one or more embodiments of this specification, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
可选地,所述获取模块402,将所述交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将所述待查询时间与所述区块链存储的交易记录信息所含有的交易时间进行匹配;以及,Optionally, the obtaining module 402 matches the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and compares the time to be queried with the block Match the transaction time contained in the transaction record information stored in the chain; and,
若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。If the matching is successful, the corresponding transaction record information is used as the target transaction record information.
可选地,所述生成模块403,调用第一智能合约,按照预设的时间划分规则,将所述待查询时间划分为至少一个时间段;以及,Optionally, the generating module 403 calls the first smart contract, and divides the time to be queried into at least one time period according to a preset time division rule; and,
从所述目标交易记录信息中获取交易时间、交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息;Obtaining the transaction time, the amount of the transaction account, the user information of the transferring user and the user information of the transferring user from the target transaction record information;
将所述转出用户和所述转入用户作为账款持有用户,根据获取的所述交易时间、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息,确定各个所述账款持有用户在每个所述时间段所持有的账款的状态信息;Regarding the transfer-out user and the transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user of the transaction account, and the transfer-in user The user information of the user determines the status information of the accounts held by each of the account holders in each of the said time periods;
在预设的填充样式中,选取用于表征各个所述账款持有用户的互不相同的填充样式;Among the preset filling patterns, different filling patterns used to characterize each of the account holders are selected;
按照时间的先后顺序,根据选取的所述填充样式和确定的所述状态信息,生成所述交易凭证数据所对应的账款在所述待查询时间内分布于各个所述账款持有用户之间的分布图。According to the order of time, according to the selected filling pattern and the determined state information, the account corresponding to the transaction voucher data is generated to be distributed among the account holders within the time to be queried. Distribution map between.
可选地,所述分布图包括主体部分,所述装置还包括:第一检测模块;所述第一检测模块,若检测到光标位于所述分布图的主体部分,则获取所述光标所在位置的位置信息;或者,若检测到所述核心企业用户对所述分布图的主体部分的触发操作,则获取被操作位置的位置信息;以及,确定与获取的所述位置信息最近的目标时间段;确定所述账款在所述目标时间段内在账款持有用户之间的分布信息;展示确定的所述分布信息。Optionally, the distribution map includes a main body part, and the device further includes: a first detection module; the first detection module, if it is detected that a cursor is located in the main body part of the distribution map, acquires the position of the cursor Or, if a trigger operation of the main part of the distribution map by the core enterprise user is detected, obtain the position information of the operated position; and determine the target time period closest to the obtained position information Determine the distribution information of the account among the account holder users within the target time period; display the determined distribution information.
可选地,分布图包括主体部分和注释部分,所述注释部分包括各个所述账款持有用户的用户信息与所述填充样式的关联信息,所述装置还包括:第二检测模块;所述第二检测模块,若检测到光标位于所述关联信息,则在所述分布图的主体部分区别展示所述光标所在的关联信息所对应的填充样式;或者,若检测到所述核心企业用户对所述关 联信息的触发操作,则在所述分布图中区别展示被操作的关联信息所对应的填充样式。Optionally, the distribution map includes a main body part and an annotation part, the annotation part includes the association information between the user information of each of the account holder users and the filling pattern, and the device further includes: a second detection module; The second detection module, if it is detected that the cursor is located in the associated information, the filling pattern corresponding to the associated information where the cursor is located is displayed in the main part of the distribution map; or, if the core enterprise user is detected The triggering operation on the associated information distinguishes and displays the filling style corresponding to the operated associated information in the distribution diagram.
本说明书一个或多个实施例所提供的基于区块链的交易查询装置,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。The block chain-based transaction query device provided by one or more embodiments of this specification, based on the transaction record information stored in the block chain, realizes that the core enterprise can provide the accounts provided by the core enterprise among the users who hold the accounts. Effective query of the distribution status between the two; and, by generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, the core enterprise users can clearly and at a glance see that the accounts they provide are within the waiting time Without the need for core enterprise users to manually sort out the distribution of accounts based on transaction record information, the query efficiency and user experience are improved.
需要说明的是,本说明书中关于基于区块链的交易查询装置的实施例与本说明书中关于基于区块链的交易查询方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易查询方法的实施,重复之处不再赘述。It should be noted that the embodiment of the blockchain-based transaction query device in this specification and the embodiment of the blockchain-based transaction query method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can be found in The implementation of the aforementioned corresponding blockchain-based transaction query method will not be repeated here.
对应上述图9至图11描述的基于区块链的交易数据处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易数据处理装置。图13为本说明书一个或多个实施例提供的基于区块链的交易数据处理装置的模块组成示意图,该装置用于执行图9至图11描述的基于区块链的交易数据处理方法,如图13所示,该装置包括:Corresponding to the block chain-based transaction data processing method described in FIGS. 9 to 11, based on the same technical concept, one or more embodiments of this specification also provide a block chain-based transaction data processing device. Figure 13 is a schematic diagram of the module composition of a blockchain-based transaction data processing device provided by one or more embodiments of this specification. The device is used to execute the blockchain-based transaction data processing method described in Figures 9 to 11, such as As shown in Figure 13, the device includes:
接收模块501,其接收核心企业用户的终端设备发送的应付账款数据;The receiving module 501, which receives the accounts payable data sent by the terminal device of the core enterprise user;
生成模块502,其根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;A generating module 502, which generates transaction voucher data according to the accounts payable data, and generates an identifier of the transaction voucher data;
发送模块503,其将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;The sending module 503, which sends the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the account corresponding to the transaction voucher data according to the identification of the transaction voucher data. The distribution of funds;
交易模块504,其当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;The transaction module 504, when receiving a transaction request sent by a terminal device of a supplier user, executes a corresponding transaction operation according to the transaction request, and generates transaction record information according to the transaction time and the identification of the transaction voucher data;
保存模块505,其将所述交易记录信息写入区块链中。The saving module 505 writes the transaction record information into the blockchain.
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In one or more embodiments of this specification, by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information The blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
可选地,所述应付账款数据包括供应商用户的用户信息;所述生成模块502,根据所述供应商用户的用户信息,发送所述应付账款数据给对应的供应商用户的终端设备,以使所述供应商用户对所述应付账款数据进行审核;以及,若在预设时长内接收到所述供应商用户的终端设备发送的审核通过信息,则根据所述应付账款数据生成交易凭证数据。Optionally, the accounts payable data includes user information of the supplier user; the generating module 502 sends the accounts payable data to the terminal device of the corresponding supplier user according to the user information of the supplier user , So that the supplier user can audit the accounts payable data; and, if the audit passed information sent by the supplier user’s terminal device is received within a preset time period, according to the accounts payable data Generate transaction voucher data.
可选地,所述交易模块504,调用第二智能合约,基于所述第二智能合约确定所述交易请求包括的交易数据是否满足所述交易凭证数据的交易规则;若所述交易数据满足所述交易凭证数据的交易规则,则根据所述交易数据执行相应的交易操作。Optionally, the transaction module 504 invokes a second smart contract, and determines based on the second smart contract whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets all According to the transaction rules of the transaction voucher data, corresponding transaction operations are executed according to the transaction data.
可选地,所述交易请求包括交易账款的金额,所述交易账款的转出用户的用户信息和转入用户的用户信息;所述交易模块504,将交易时间、所述交易凭证数据的标识、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息进行关联记录,并将记录的信息作为交易记录信息。Optionally, the transaction request includes the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account; the transaction module 504 combines the transaction time and the transaction voucher data The identifier of the transaction account, the amount of the transaction account, the user information of the transfer-in user of the transaction account, and the user information of the transfer-in user are associated and recorded, and the recorded information is used as the transaction record information.
可选地,所述保存模块505,在所述生成模块502生成所述交易凭证数据的标识之后,还将所述应付账款数据、所述交易凭证数据、以及所述交易凭证数据的标识进行关联记录,并将记录的信息写入所述区块链中。Optionally, the saving module 505, after the generating module 502 generates the identification of the transaction voucher data, further performs the identification of the accounts payable data, the transaction voucher data, and the transaction voucher data Associate records, and write the recorded information into the blockchain.
本说明书一个或多个实施例提供的基于区块链的交易数据处理装置,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。The block chain-based transaction data processing device provided by one or more embodiments of this specification makes the transaction process open, transparent and visible to multiple parties by conducting transactions in the trusted environment of the block chain, ensuring the authenticity and effectiveness of the transaction In addition, by writing the transaction record information into the blockchain, it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data fraud and other issues, and providing effective transaction query Data basis.
需要说明的是,本说明书中关于基于区块链的交易数据处理装置的实施例与本说明书中关于基于区块链的交易数据处理方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易数据处理方法的实施,重复之处不再赘述。It should be noted that the embodiment of the block chain-based transaction data processing device in this specification and the embodiment of the block chain-based transaction data processing method in this specification are based on the same inventive concept, so the specific implementation of this embodiment You can refer to the implementation of the corresponding blockchain-based transaction data processing method mentioned above, and the repetition will not be repeated.
进一步地,对应上述图2至图4所示的方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于区块链的交易查询设备,该设备用于执行上述的基于区块链的交易查询方法,图14为本说明书一个或多个实施例提供的一种基于区块链的交易查询设备的结构示意图。Further, corresponding to the methods shown in FIGS. 2 to 4, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based transaction query device, which is used to execute the above-mentioned Block chain transaction query method. FIG. 14 is a schematic structural diagram of a block chain-based transaction query device provided by one or more embodiments of this specification.
如图14所示,基于区块链的交易查询设备可因配置或性能不同而产生比较大的差 异,可以包括一个或一个以上的处理器601和存储器602,存储器602中可以存储有一个或一个以上存储应用程序或数据。其中,存储器602可以是短暂存储或持久存储。存储在存储器602的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于区块链的交易查询设备中的一系列计算机可执行指令。更进一步地,处理器601可以设置为与存储器602通信,在基于区块链的交易查询设备上执行存储器602中的一系列计算机可执行指令。基于区块链的交易查询设备还可以包括一个或一个以上电源603、一个或一个以上有线或无线网络接口604、一个或一个以上输入输出接口605、一个或一个以上键盘606等。As shown in Figure 14, the blockchain-based transaction query device may have relatively large differences due to different configurations or performances. It may include one or more processors 601 and a memory 602, and the memory 602 may store one or one The above stores applications or data. Among them, the memory 602 may be short-term storage or persistent storage. The application program stored in the memory 602 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the blockchain-based transaction query device. Furthermore, the processor 601 may be configured to communicate with the memory 602, and execute a series of computer-executable instructions in the memory 602 on a blockchain-based transaction query device. The blockchain-based transaction query device may also include one or more power sources 603, one or more wired or wireless network interfaces 604, one or more input and output interfaces 605, one or more keyboards 606, and the like.
在一个具体的实施例中,基于区块链的交易查询设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的交易查询设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。In a specific embodiment, the blockchain-based transaction query device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more programs. The above modules, and each module may include a series of computer-executable instructions in a blockchain-based transaction query device, and configured to be executed by one or more processors. The one or more programs include the following: Computer executable instructions: receive a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, from the district Obtain the corresponding target transaction record information with the transaction time within the time to be queried from the block chain; call the first smart contract to generate the account corresponding to the transaction voucher data according to the target transaction record information. A distribution map during the time to be queried, wherein the distribution map represents the distribution of the accounts among account holders during the time to be queried; and the distribution diagram is sent to the core enterprise The terminal device of the user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例中,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。In one or more embodiments of this specification, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
可选地,计算机可执行指令在被执行时,所述根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息,包括:将所述交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将所述待查询时间与所述区块链存储的交易记录信息所含有的交易时间进行匹配;若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。Optionally, when the computer-executable instructions are executed, the obtaining corresponding target transaction record information from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried includes: Match the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and compare the time to be queried with the transaction contained in the transaction record information stored in the blockchain Time is matched; if all matches are successful, the corresponding transaction record information is used as the target transaction record information.
可选地,计算机可执行指令在被执行时,所述调用第一智能合约,根据所述目标 交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,包括:调用第一智能合约,按照预设的时间划分规则,将所述待查询时间划分为至少一个时间段;从所述目标交易记录信息中获取交易时间、交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息;将所述转出用户和所述转入用户作为账款持有用户,根据获取的所述交易时间、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息,确定各个所述账款持有用户在每个所述时间段所持有的账款的状态信息;在预设的填充样式中,选取用于表征各个所述账款持有用户的互不相同的填充样式;按照时间的先后顺序,根据选取的所述填充样式和确定的所述状态信息,生成所述交易凭证数据所对应的账款在所述待查询时间内分布于各个所述账款持有用户之间的分布图。Optionally, when the computer-executable instructions are executed, the first smart contract is invoked, and according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried is generated , Including: invoking the first smart contract, dividing the time to be queried into at least one time period according to a preset time division rule; obtaining the transaction time, the amount of the transaction account, and the The user information of the transfer-out user and the transfer-in user of the transaction account; the transfer-out user and the transfer-in user are the account holder users, and the transaction time and the transaction account are acquired according to the transaction time and the transaction account. The amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account, determine the status information of the account held by each of the account holder users in each of the said time periods; Among the preset filling styles, different filling styles used to characterize each of the account holders are selected; in chronological order, according to the selected filling style and the determined state information, all the filling styles are generated. The account payment corresponding to the transaction voucher data is distributed among the account holder users during the time to be queried.
可选地,计算机可执行指令在被执行时,所述分布图包括主体部分,所述方法还包括:若检测到光标位于所述分布图的主体部分,则获取所述光标所在位置的位置信息;或者,若检测到所述核心企业用户对所述分布图的主体部分的触发操作,则获取被操作位置的位置信息;确定与获取的所述位置信息最近的目标时间段;确定所述账款在所述目标时间段内在账款持有用户之间的分布信息;展示确定的所述分布信息。Optionally, when the computer-executable instructions are executed, the distribution map includes a main body part, and the method further includes: if it is detected that a cursor is located in the main body part of the distribution map, acquiring the position information of the cursor position Or, if the core enterprise user's triggering operation on the main part of the distribution map is detected, the location information of the operated location is acquired; the target time period closest to the acquired location information is determined; the account is determined The distribution information of the funds among the account holder users within the target time period; the determined distribution information is displayed.
可选地,计算机可执行指令在被执行时,所述分布图包括主体部分和注释部分,所述注释部分包括各个所述账款持有用户的用户信息与所述填充样式的关联信息,所述方法还包括:若检测到光标位于所述关联信息,则在所述分布图的主体部分区别展示所述光标所在的关联信息所对应的填充样式;或者,若检测到所述核心企业用户对所述关联信息的触发操作,则在所述分布图中区别展示被操作的关联信息所对应的填充样式。Optionally, when the computer-executable instructions are executed, the distribution map includes a main body part and an annotation part, and the annotation part includes the user information of each of the account holder users and the associated information of the filling pattern, so The method further includes: if it is detected that the cursor is located in the associated information, displaying the filling style corresponding to the associated information where the cursor is located in the main part of the distribution map; or, if the core enterprise user pair is detected For the trigger operation of the associated information, the filling pattern corresponding to the operated associated information is displayed in the distribution diagram.
本说明书一个或多个实施例提供的基于区块链的交易数据处理设备,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。The block chain-based transaction data processing equipment provided by one or more embodiments of this specification, based on the transaction record information stored in the block chain, realizes that the accounts provided by the core enterprise are among the account holders. Effective query of the distribution status between the two; and, by generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, the core enterprise users can clearly and at a glance see that the accounts they provide are within the waiting time Without the need for core enterprise users to manually sort out the distribution of accounts based on transaction record information, the query efficiency and user experience are improved.
需要说明的是,本说明书中关于基于区块链的交易查询设备的实施例与本说明书中关于基于区块链的交易查询方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易查询方法的实施,重复之处不再赘述。It should be noted that the embodiment of the blockchain-based transaction query device in this specification and the embodiment of the blockchain-based transaction query method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can be found in The implementation of the aforementioned corresponding blockchain-based transaction query method will not be repeated here.
进一步地,对应上述图9至图11所示的方法,基于相同的技术构思,本说明书一 个或多个实施例还提供一种基于区块链的交易数据处理设备,该设备用于执行上述的基于区块链的交易数据处理方法,图15为本说明书一个或多个实施例提供的一种基于区块链的交易数据处理设备的结构示意图。Further, corresponding to the methods shown in FIGS. 9 to 11, based on the same technical concept, one or more embodiments of this specification also provide a blockchain-based transaction data processing device, which is used to execute the above Blockchain-based transaction data processing method. FIG. 15 is a schematic structural diagram of a blockchain-based transaction data processing device provided by one or more embodiments of this specification.
如图15所示,基于区块链的交易数据处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于区块链的交易数据处理设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在基于区块链的交易数据处理设备上执行存储器702中的一系列计算机可执行指令。基于区块链的交易数据处理设备还可以包括一个或一个以上电源703、一个或一个以上有线或无线网络接口704、一个或一个以上输入输出接口705、一个或一个以上键盘706等。As shown in Figure 15, the transaction data processing equipment based on the blockchain may have relatively large differences due to different configurations or performances. It may include one or more processors 701 and a memory 702, and the memory 702 may store one or more More than one store application or data. Among them, the memory 702 may be short-term storage or persistent storage. The application program stored in the memory 702 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in a blockchain-based transaction data processing device. Furthermore, the processor 701 may be configured to communicate with the memory 702, and execute a series of computer-executable instructions in the memory 702 on a transaction data processing device based on the blockchain. The blockchain-based transaction data processing equipment may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, one or more keyboards 706, and the like.
在一个具体的实施例中,基于区块链的交易数据处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于区块链的交易数据处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:接收核心企业用户的终端设备发送的应付账款数据;根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;将所述交易记录信息写入区块链中。In a specific embodiment, a blockchain-based transaction data processing device includes a memory and one or more programs, wherein one or more programs are stored in the memory, and the one or more programs may include one or more programs. More than one module, and each module may include a series of computer-executable instructions in a blockchain-based transaction data processing device, and is configured to be executed by one or more processors. The one or more programs include Perform the following computer-executable instructions: receive the accounts payable data sent by the terminal device of the core enterprise user; generate transaction voucher data according to the accounts payable data, and generate the identification of the transaction voucher data; convert the transaction voucher data The identification is sent to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of the account corresponding to the transaction voucher data according to the identification of the transaction voucher data; When a transaction request is sent by a terminal device, a corresponding transaction operation is executed according to the transaction request, and transaction record information is generated according to the transaction time and the identification of the transaction voucher data; the transaction record information is written into the blockchain.
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In one or more embodiments of this specification, by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information The blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
可选地,计算机可执行指令在被执行时,所述应付账款数据包括供应商用户的用户信息,所述根据所述应付账款数据生成交易凭证数据,包括:根据所述供应商用户的用户信息,发送所述应付账款数据给对应的供应商用户的终端设备,以使所述供应商用 户对所述应付账款数据进行审核;若在预设时长内接收到所述供应商用户的终端设备发送的审核通过信息,则根据所述应付账款数据生成交易凭证数据。Optionally, when the computer-executable instructions are executed, the accounts payable data includes user information of a supplier user, and the generating transaction voucher data according to the accounts payable data includes: according to the supplier user's user information User information, sending the accounts payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data; if the supplier user is received within a preset time period Based on the approval information sent by the terminal device, transaction voucher data is generated based on the accounts payable data.
可选地,计算机可执行指令在被执行时,所述根据所述交易请求执行相应的交易操作,包括:调用第二智能合约,基于所述第二智能合约确定所述交易请求包括的交易数据是否满足所述交易凭证数据的交易规则;若所述交易数据满足所述交易凭证数据的交易规则,则根据所述交易数据执行相应的交易操作。Optionally, when the computer executable instruction is executed, the execution of the corresponding transaction operation according to the transaction request includes: invoking a second smart contract, and determining the transaction data included in the transaction request based on the second smart contract Whether the transaction rules of the transaction voucher data are met; if the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
可选地,计算机可执行指令在被执行时,所述交易请求包括交易账款的金额,所述交易账款的转出用户的用户信息和转入用户的用户信息;所述根据交易时间、所述交易凭证数据的标识生成交易记录信息,包括:将交易时间、所述交易凭证数据的标识、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息进行关联记录,并将记录的信息作为交易记录信息。Optionally, when the computer-executable instructions are executed, the transaction request includes the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account; according to the transaction time, The identification of the transaction voucher data generates transaction record information, including: the transaction time, the identification of the transaction voucher data, the amount of the transaction account, the user information of the user who transfers the transaction account, and the transfer user The user information is associated and recorded, and the recorded information is used as transaction record information.
可选地,计算机可执行指令在被执行时,所述生成所述交易凭证数据的标识之后,还包括:将所述应付账款数据、所述交易凭证数据、以及所述交易凭证数据的标识进行关联记录,并将记录的信息写入所述区块链中。Optionally, when the computer-executable instructions are executed, after the generation of the identification of the transaction voucher data, it further includes: adding the identifications of the accounts payable data, the transaction voucher data, and the transaction voucher data Perform associated records, and write the recorded information into the blockchain.
本说明书一个或多个实施例中的基于区块链的交易查询设备,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。The blockchain-based transaction query device in one or more embodiments of this specification, through the transaction in the trusted environment of the blockchain, makes the transaction process open, transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction ; And by writing the transaction record information into the blockchain, it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and providing effective transactions for querying Data basis.
需要说明的是,本说明书中关于基于区块链的交易查询设备的实施例与本说明书中关于基于区块链的交易查询方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易查询方法的实施,重复之处不再赘述。It should be noted that the embodiment of the blockchain-based transaction query device in this specification and the embodiment of the blockchain-based transaction query method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can be found in The implementation of the aforementioned corresponding blockchain-based transaction query method will not be repeated here.
进一步地,对应上述描述的方法,基于相同的技术构思,本说明书一个或多个实施例还提供了一种存储介质,用于存储计算机可执行指令,一个具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分 布于账款持有用户之间的分布状况;将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。Further, corresponding to the method described above, based on the same technical concept, one or more embodiments of this specification also provide a storage medium for storing computer-executable instructions. In a specific embodiment, the storage medium may It is a U disk, optical disk, hard disk, etc., when the computer executable instructions stored in the storage medium are executed by the processor, the following process can be realized: receiving a transaction query request sent by a terminal device of a core enterprise user, wherein the transaction query request Including the time to be queried and the identification of the transaction voucher data to be queried; according to the identification of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried; call the first The smart contract generates, according to the target transaction record information, a distribution map of the accounts corresponding to the transaction voucher data during the time to be queried, wherein the distribution diagram represents the time for the accounts to be queried The distribution status is internally distributed among account holder users; the distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
本说明书一个或多个实施例中,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款在各账款持有用户之间的分布状况的有效查询;并且,通过生成待查询的交易凭证数据所对应的账款的分布图,使得核心企业用户可以清晰的、一目了然的查看到其所提供的账款在待查询时间内的分布状况,而无需核心企业用户根据交易记录信息对账款的分布情况进行人工梳理,提升了查询效率和用户体验。In one or more embodiments of this specification, based on the transaction record information stored in the blockchain, the core enterprise can effectively query the distribution status of the accounts it provides among the account holders; and, By generating the distribution map of the accounts corresponding to the transaction voucher data to be queried, core enterprise users can clearly and at a glance view the distribution of the accounts they provide during the time to be queried, without the need for core enterprise users to follow Transaction record information manually sorts out the distribution of accounts, which improves query efficiency and user experience.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息,包括:将所述交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将所述待查询时间与所述区块链存储的交易记录信息所含有的交易时间进行匹配;若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the corresponding transaction time is obtained from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried. The target transaction record information includes: matching the identifier of the transaction voucher data with the identifier of the transaction voucher data contained in the transaction record information stored in the block chain, and matching the time to be queried with that stored in the block chain The transaction time contained in the transaction record information is matched; if the matching is successful, the corresponding transaction record information is used as the target transaction record information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,包括:调用第一智能合约,按照预设的时间划分规则,将所述待查询时间划分为至少一个时间段;从所述目标交易记录信息中获取交易时间、交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息;将所述转出用户和所述转入用户作为账款持有用户,根据获取的所述交易时间、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息,确定各个所述账款持有用户在每个所述时间段所持有的账款的状态信息;在预设的填充样式中,选取用于表征各个所述账款持有用户的互不相同的填充样式;按照时间的先后顺序,根据选取的所述填充样式和确定的所述状态信息,生成所述交易凭证数据所对应的账款在所述待查询时间内分布于各个所述账款持有用户之间的分布图。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the first smart contract is invoked, and the account corresponding to the transaction voucher data is generated according to the target transaction record information. The distribution diagram of the time to be queried includes: invoking the first smart contract, dividing the time to be queried into at least one time period according to a preset time division rule; obtaining transaction time and transaction from the target transaction record information The amount of the account, the user information of the transfer-out user and the transfer-in user information of the transaction account; the transfer-out user and the transfer-in user are regarded as account holder users, according to the acquired transaction Time, the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account, determine what each account holder user holds in each of the said time periods The status information of the account; among the preset filling patterns, select the different filling patterns used to characterize the account holder users; in chronological order, according to the selected filling pattern and the determined filling pattern The status information generates a distribution map of the accounts corresponding to the transaction voucher data among the account holders within the time to be queried.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述分布图包括主体部分,所述方法还包括:若检测到光标位于所述分布图的主体部分,则获取所述光标所在位置的位置信息;或者,若检测到所述核心企业用户对所述分布图的主体部分的触发操作,则获取被操作位置的位置信息;确定与获取的所述位置信息最近的目标时间段;确定所述账款在所述目标时间段内在账款持有用户之间的分布信息;展示确定的所述分布信息。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the distribution map includes a main part, and the method further includes: if it is detected that the cursor is located in the main part of the distribution map, obtaining all The position information of the cursor position; or, if the core enterprise user's trigger operation on the main part of the distribution map is detected, the position information of the operated position is acquired; the target closest to the acquired position information is determined Time period; determine the distribution information of the account among the account holder users within the target time period; display the determined distribution information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述分布图包括主体部分和注释部分,所述注释部分包括各个所述账款持有用户的用户信息与所述填充样式的关联信息,所述方法还包括:若检测到光标位于所述关联信息,则在所述分布图的主体部分区别展示所述光标所在的关联信息所对应的填充样式;或者,若检测到所述核心企业用户对所述关联信息的触发操作,则在所述分布图中区别展示被操作的关联信息所对应的填充样式。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the distribution map includes a main body part and an annotation part, and the annotation part includes the user information of each account holder user and the Filling the associated information of the style, the method further includes: if it is detected that the cursor is located in the associated information, displaying the fill style corresponding to the associated information where the cursor is located in the main part of the distribution map; or, if it is detected When the core enterprise user triggers the operation on the associated information, the filling pattern corresponding to the operated associated information is displayed in the distribution map.
本说明书一个或多个实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,基于区块链中存储的交易记录信息,实现了核心企业对其所提供的账款,在各账款持有用户之间的分布状况的有效查询;通过生成待查询的交易凭证数据所对应的账款的流转路径图,并将生成的流转路径图发送给核心企业用户的终端设备,使得核心企业用户可以清晰的、一目了然的查看到待查询的交易凭证数据所对应的账款的所有流转信息,而无需核心企业用户根据每个交易记录信息对账款的流转信息进行人工梳理,提升了查询效率以及用户体验。When the computer-executable instructions stored in the storage medium provided by one or more embodiments of this specification are executed by the processor, based on the transaction record information stored in the blockchain, the accounts provided by the core enterprise are realized in each Effective query of the distribution status between account holders; by generating the circulation path diagram of the accounts corresponding to the transaction voucher data to be queried, and sending the generated circulation path diagram to the terminal equipment of the core enterprise users, the core Enterprise users can clearly and at a glance view all the transfer information of the accounts corresponding to the transaction voucher data to be queried, without the need for core enterprise users to manually sort out the transfer information of the accounts according to each transaction record information, which improves the query Efficiency and user experience.
在另一个具体的实施例中,该存储介质可以为U盘、光盘、硬盘等,该存储介质存储的计算机可执行指令在被处理器执行时,能实现以下流程:接收核心企业用户的终端设备发送的应付账款数据;根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;将所述交易记录信息写入区块链中。In another specific embodiment, the storage medium may be a U disk, an optical disk, a hard disk, etc., and the computer executable instructions stored in the storage medium can realize the following process when being executed by the processor: receiving terminal equipment of core enterprise users The sent accounts payable data; the transaction voucher data is generated according to the accounts payable data, and the identification of the transaction voucher data is generated; the identification of the transaction voucher data is sent to the terminal device of the core enterprise user, so that According to the identification of the transaction voucher data, the core enterprise user queries the distribution status of the accounts corresponding to the transaction voucher data; when a transaction request sent by the terminal device of the supplier user is received, executes according to the transaction request Corresponding transaction operations, and generate transaction record information according to the transaction time and the identification of the transaction voucher data; write the transaction record information into the blockchain.
本说明书一个或多个实施例中,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。In one or more embodiments of this specification, by conducting transactions in a trusted environment of the blockchain, the transaction process is made transparent and visible to multiple parties, ensuring the authenticity and validity of the transaction; and by writing the transaction record information The blockchain ensures the immutability and openness of the data on the chain, effectively avoids data loss, data falsification and other issues, and provides an effective data basis for transaction inquiries.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述应付账款数据包括供应商用户的用户信息,所述根据所述应付账款数据生成交易凭证数据,包括:根据所述供应商用户的用户信息,发送所述应付账款数据给对应的供应商用户的终端设备,以使所述供应商用户对所述应付账款数据进行审核;若在预设时长内接收到所述供应商用户的终端设备发送的审核通过信息,则根据所述应付账款数据生成交易凭证数据。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the accounts payable data includes user information of a supplier user, and the generation of transaction voucher data based on the accounts payable data includes: According to the user information of the supplier user, send the accounts payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data; if it is within a preset time period Upon receipt of the approval information sent by the terminal device of the supplier user, transaction voucher data is generated according to the accounts payable data.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述根据所述交易请求执行相应的交易操作,包括:调用第二智能合约,基于所述第二智能合约确定所述交易请求包括的交易数据是否满足所述交易凭证数据的交易规则;若所述交易数据满足所述交易凭证数据的交易规则,则根据所述交易数据执行相应的交易操作。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the execution of the corresponding transaction operation according to the transaction request includes: invoking a second smart contract, and determining the transaction operation based on the second smart contract. Whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data; if the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述交易请求包括交易账款的金额,所述交易账款的转出用户的用户信息和转入用户的用户信息;所述根据交易时间、所述交易凭证数据的标识生成交易记录信息,包括:将交易时间、所述交易凭证数据的标识、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息进行关联记录,并将记录的信息作为交易记录信息。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, the transaction request includes the amount of the transaction account, the user information of the transfer-out user and the transfer-in user information of the transaction account The generating transaction record information according to the transaction time and the identification of the transaction voucher data includes: the transaction time, the identification of the transaction voucher data, the amount of the transaction account, and the user who transfers the transaction account The user information of the user and the user information of the transferred user are associated and recorded, and the recorded information is used as the transaction record information.
可选地,该存储介质存储的计算机可执行指令在被处理器执行时,所述生成所述交易凭证数据的标识之后,还包括:将所述应付账款数据、所述交易凭证数据、以及所述交易凭证数据的标识进行关联记录,并将记录的信息写入所述区块链中。Optionally, when the computer-executable instructions stored in the storage medium are executed by the processor, after said generating the identification of the transaction voucher data, it further includes: converting the accounts payable data, the transaction voucher data, and The identification of the transaction voucher data is associated and recorded, and the recorded information is written into the blockchain.
本说明书一个或多个实施例提供的存储介质存储的计算机可执行指令在被处理器执行时,通过在区块链的可信环境下进行交易,使得交易过程公开透明且多方可见,确保了交易的真实性和有效性;而且通过将交易记录信息写入区块链中,确保了上链数据的不可篡改性以及公开可查性,有效的避免了数据丢失、数据造假等问题,并为交易的查询提供了有效的数据基础。When the computer-executable instructions stored in the storage medium provided by one or more embodiments of this specification are executed by the processor, the transaction is performed in the trusted environment of the blockchain, making the transaction process open, transparent and visible to multiple parties, ensuring the transaction The authenticity and validity of the data; and by writing the transaction record information into the blockchain, it ensures the immutability and openness of the data on the chain, effectively avoiding data loss, data falsification and other issues, and for the transaction The query provides an effective data basis.
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于基于区块链的交易查询方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应的基于区块链的交易插叙方法的实施,重复之处不再赘述。It should be noted that the embodiment of the storage medium in this specification and the embodiment of the blockchain-based transaction query method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the corresponding block-based The implementation of the chain's transaction interruption method will not be repeated here.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在20世纪30年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的 硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1930s, the improvement of a technology can be clearly distinguished between hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) and software improvements (improvements in method flow). However, with the development of technology, the improvement of many methods and processes of today can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by the hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (such as a Field Programmable Gate Array (Field Programmable Gate Array, FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device. It is programmed by the designer to "integrate" a digital system on a PLD, without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly realized with "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and there is not only one type of HDL, but many types, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description), etc., currently most commonly used It is VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It should also be clear to those skilled in the art that only a little logic programming of the method flow in the above-mentioned hardware description languages and programming into an integrated circuit can easily obtain the hardware circuit that implements the logic method flow.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of, for example, a microprocessor or a processor and a computer-readable medium storing computer-readable program codes (such as software or firmware) executable by the (micro)processor. , Logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the memory control logic. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code manner, it is entirely possible to program the method steps to make the controller use logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded logic. The same function can be realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the devices included in it for realizing various functions can also be regarded as a structure within the hardware component. Or even, the device for realizing various functions can be regarded as both a software module for realizing the method and a structure within a hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units explained in the above embodiments may be implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cell phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Any combination of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书实施例时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same one or more software and/or hardware.
本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that one or more embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of this specification may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This specification is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent 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 computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数 据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information can be computer-readable instructions, data structures, program modules, 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, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or they also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书的一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of this specification can also be practiced in distributed computing environments. In these distributed computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
以上所述仅为本文件的实施例而已,并不用于限制本文件。对于本领域技术人员来说,本文件可以有各种更改和变化。凡在本文件的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本文件的权利要求范围之内。The above descriptions are only examples of this document, and are not intended to limit this document. For those skilled in the art, this document can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document shall be included in the scope of the claims of this document.

Claims (19)

  1. 一种基于区块链的交易查询方法,应用于第一区块链节点,包括:A blockchain-based transaction query method, applied to the first blockchain node, includes:
    接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;Receiving a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
    根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;According to the identifier of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried;
    调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;Invoke the first smart contract, and generate a distribution map of the account corresponding to the transaction voucher data during the time to be queried according to the target transaction record information, wherein the distribution map represents the distribution of the account in the The distribution status among account holders within the time to be queried;
    将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。The distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  2. 根据权利要求1所述的方法,所述根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息,包括:The method according to claim 1, wherein the obtaining corresponding target transaction record information from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried includes:
    将所述交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将所述待查询时间与所述区块链存储的交易记录信息所含有的交易时间进行匹配;Match the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the blockchain, and compare the time to be queried with the transaction contained in the transaction record information stored in the blockchain Time to match;
    若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。If the matching is successful, the corresponding transaction record information is used as the target transaction record information.
  3. 根据权利要求1或2所述的方法,所述调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,包括:The method according to claim 1 or 2, wherein the invoking the first smart contract, according to the target transaction record information, generating the distribution map of the account corresponding to the transaction voucher data during the time to be queried includes :
    调用第一智能合约,按照预设的时间划分规则,将所述待查询时间划分为至少一个时间段;Invoke the first smart contract, and divide the time to be queried into at least one time period according to a preset time division rule;
    从所述目标交易记录信息中获取交易时间、交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息;Obtaining the transaction time, the amount of the transaction account, the user information of the transferring user and the user information of the transferring user from the target transaction record information;
    将所述转出用户和所述转入用户作为账款持有用户,根据获取的所述交易时间、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息,确定各个所述账款持有用户在每个所述时间段所持有的账款的状态信息;Regarding the transfer-out user and the transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user of the transaction account, and the transfer-in user The user information of the user determines the status information of the accounts held by each of the account holders in each of the said time periods;
    在预设的填充样式中,选取用于表征各个所述账款持有用户的互不相同的填充样式;Among the preset filling patterns, different filling patterns used to characterize each of the account holders are selected;
    按照时间的先后顺序,根据选取的所述填充样式和确定的所述状态信息,生成所述交易凭证数据所对应的账款在所述待查询时间内分布于各个所述账款持有用户之间的分布图。According to the order of time, according to the selected filling pattern and the determined state information, the account corresponding to the transaction voucher data is generated to be distributed among the account holders within the time to be queried. Distribution map between.
  4. 根据权利要求3所述的方法,所述分布图包括主体部分,所述方法还包括:The method according to claim 3, wherein the distribution map includes a main body part, and the method further comprises:
    若检测到光标位于所述分布图的主体部分,则获取所述光标所在位置的位置信息;或者,若检测到所述核心企业用户对所述分布图的主体部分的触发操作,则获取被操作位置的位置信息;If it is detected that the cursor is located in the main part of the distribution map, obtain the position information of the position where the cursor is located; or, if the core enterprise user's trigger operation on the main part of the distribution map is detected, obtain the operated Location information;
    确定与获取的所述位置信息最近的目标时间段;Determine the target time period closest to the acquired position information;
    确定所述账款在所述目标时间段内在账款持有用户之间的分布信息;Determining the distribution information of the account among account holders within the target time period;
    展示确定的所述分布信息。Display the determined distribution information.
  5. 根据权利要求3所述的方法,所述分布图包括主体部分和注释部分,所述注释部分包括各个所述账款持有用户的用户信息与所述填充样式的关联信息,所述方法还包括:The method according to claim 3, wherein the distribution diagram includes a main body part and an annotation part, the annotation part includes the association information between the user information of each of the account holder users and the filling pattern, and the method further comprises :
    若检测到光标位于所述关联信息,则在所述分布图的主体部分区别展示所述光标所在的关联信息所对应的填充样式;或者,If it is detected that the cursor is located in the associated information, the filling style corresponding to the associated information where the cursor is located is displayed in the main part of the distribution map; or,
    若检测到所述核心企业用户对所述关联信息的触发操作,则在所述分布图中区别展示被操作的关联信息所对应的填充样式。If a trigger operation of the associated information by the core enterprise user is detected, the filling pattern corresponding to the operated associated information is displayed in the distribution map.
  6. 一种基于区块链的交易数据处理方法,应用于第二区块链节点,包括:A blockchain-based transaction data processing method, applied to a second blockchain node, includes:
    接收核心企业用户的终端设备发送的应付账款数据;Receive accounts payable data sent by the terminal equipment of core enterprise users;
    根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;Generating transaction voucher data according to the accounts payable data, and generating an identifier of the transaction voucher data;
    将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;Sending the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of accounts corresponding to the transaction voucher data according to the identification of the transaction voucher data;
    当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;When a transaction request sent by a terminal device of a supplier user is received, execute a corresponding transaction operation according to the transaction request, and generate transaction record information according to the transaction time and the identification of the transaction voucher data;
    将所述交易记录信息写入区块链中。Write the transaction record information into the blockchain.
  7. 根据权利要求6所述的方法,所述应付账款数据包括供应商用户的用户信息,所述根据所述应付账款数据生成交易凭证数据,包括:The method according to claim 6, wherein the accounts payable data includes user information of a supplier user, and the generating transaction voucher data according to the accounts payable data includes:
    根据所述供应商用户的用户信息,发送所述应付账款数据给对应的供应商用户的终端设备,以使所述供应商用户对所述应付账款数据进行审核;According to the user information of the supplier user, sending the accounts payable data to the terminal device of the corresponding supplier user, so that the supplier user can review the accounts payable data;
    若在预设时长内接收到所述供应商用户的终端设备发送的审核通过信息,则根据所述应付账款数据生成交易凭证数据。If the approval information sent by the terminal device of the supplier user is received within the preset time period, the transaction voucher data is generated according to the accounts payable data.
  8. 根据权利要求6所述的方法,所述根据所述交易请求执行相应的交易操作,包括:The method according to claim 6, said executing a corresponding transaction operation according to the transaction request, comprising:
    调用第二智能合约,基于所述第二智能合约确定所述交易请求包括的交易数据是否满足所述交易凭证数据的交易规则;Invoking a second smart contract, and determining, based on the second smart contract, whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data;
    若所述交易数据满足所述交易凭证数据的交易规则,则根据所述交易数据执行相应的交易操作。If the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
  9. 根据权利要求6-8中任一项所述的方法,所述交易请求包括交易账款的金额,所述交易账款的转出用户的用户信息和转入用户的用户信息;The method according to any one of claims 6-8, wherein the transaction request includes the amount of the transaction account, the user information of the transfer-out user and the transfer-in user information of the transaction account;
    所述根据交易时间、所述交易凭证数据的标识生成交易记录信息,包括:The generating transaction record information according to the transaction time and the identifier of the transaction voucher data includes:
    将交易时间、所述交易凭证数据的标识、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息进行关联记录,并将记录的信息作为交易记录信息。The transaction time, the identification of the transaction voucher data, the amount of the transaction account, the user information of the user who transfers the transaction account, and the user information of the user who transfers the transaction account are associated and recorded, and the recorded information is used as the transaction record information.
  10. 根据权利要求9所述的方法,所述生成所述交易凭证数据的标识之后,还包括:The method according to claim 9, after said generating the identification of the transaction voucher data, further comprising:
    将所述应付账款数据、所述交易凭证数据、以及所述交易凭证数据的标识进行关联记录,并将记录的信息写入所述区块链中。The accounts payable data, the transaction voucher data, and the identification of the transaction voucher data are associated and recorded, and the recorded information is written into the blockchain.
  11. 一种基于区块链的交易查询装置,应用于第一区块链节点,包括:A block chain-based transaction query device, applied to the first block chain node, includes:
    接收模块,其接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;A receiving module, which receives a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
    获取模块,其根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;An obtaining module, which obtains corresponding target transaction record information from the blockchain according to the identifier of the transaction voucher data and the transaction time is within the time to be queried;
    生成模块,其调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;A generating module, which calls the first smart contract to generate a distribution map of the account corresponding to the transaction voucher data within the time to be queried according to the target transaction record information, wherein the distribution map represents the account The distribution status of the payment among the account holders during the time to be queried;
    发送模块,其将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。A sending module, which sends the distribution map to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  12. 根据权利要求11所述的装置,The device according to claim 11,
    所述获取模块,将所述交易凭证数据的标识与区块链存储的交易记录信息所含有的交易凭证数据的标识进行匹配,以及将所述待查询时间与所述区块链存储的交易记录信息所含有的交易时间进行匹配;The acquiring module matches the identification of the transaction voucher data with the identification of the transaction voucher data contained in the transaction record information stored in the block chain, and compares the time to be queried with the transaction record stored in the block chain Match the transaction time contained in the information;
    若均匹配成功,则将相应的交易记录信息作为目标交易记录信息。If the matching is successful, the corresponding transaction record information is used as the target transaction record information.
  13. 根据权利要求11或12所述的装置,The device according to claim 11 or 12,
    所述生成模块,调用第一智能合约,按照预设的时间划分规则,将所述待查询时间划分为至少一个时间段;以及,The generating module calls the first smart contract, and divides the time to be queried into at least one time period according to a preset time division rule; and,
    从所述目标交易记录信息中获取交易时间、交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息;Obtaining the transaction time, the amount of the transaction account, the user information of the transferring user and the user information of the transferring user from the target transaction record information;
    将所述转出用户和所述转入用户作为账款持有用户,根据获取的所述交易时间、所述交易账款的金额、所述交易账款的转出用户的用户信息和转入用户的用户信息,确定各个所述账款持有用户在每个所述时间段所持有的账款的状态信息;Regarding the transfer-out user and the transfer-in user as account holder users, according to the acquired transaction time, the amount of the transaction account, the user information of the transfer-out user of the transaction account, and the transfer-in user The user information of the user determines the status information of the accounts held by each of the account holders in each of the said time periods;
    在预设的填充样式中,选取用于表征各个所述账款持有用户的互不相同的填充样式;Among the preset filling patterns, different filling patterns used to characterize each of the account holders are selected;
    按照时间的先后顺序,根据选取的所述填充样式和确定的所述状态信息,生成所述交易凭证数据所对应的账款在所述待查询时间内分布于各个所述账款持有用户之间的分布图。According to the order of time, according to the selected filling pattern and the determined state information, the account corresponding to the transaction voucher data is generated to be distributed among the account holders within the time to be queried. Distribution map between.
  14. 一种基于区块链的交易数据处理装置,应用于第二区块链节点,包括:A block chain-based transaction data processing device, applied to a second block chain node, includes:
    接收模块,其接收核心企业用户的终端设备发送的应付账款数据;The receiving module, which receives the accounts payable data sent by the terminal device of the core enterprise user;
    生成模块,其根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;A generating module, which generates transaction voucher data according to the accounts payable data, and generates an identifier of the transaction voucher data;
    发送模块,其将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;A sending module, which sends the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the account corresponding to the transaction voucher data according to the identification of the transaction voucher data Distribution status;
    交易模块,其当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;A transaction module, which, when receiving a transaction request sent by a terminal device of a supplier user, executes a corresponding transaction operation according to the transaction request, and generates transaction record information according to the transaction time and the identification of the transaction voucher data;
    写入模块,其将所述交易记录信息写入区块链中。A writing module, which writes the transaction record information into the blockchain.
  15. 根据权利要14所述的装置,According to the device of claim 14,
    所述交易模块,其调用第二智能合约,基于所述第二智能合约确定所述交易请求包括的交易数据是否满足所述交易凭证数据的交易规则;The transaction module calls a second smart contract, and determines whether the transaction data included in the transaction request meets the transaction rules of the transaction voucher data based on the second smart contract;
    若所述交易数据满足所述交易凭证数据的交易规则,则根据所述交易数据执行相应的交易操作。If the transaction data meets the transaction rules of the transaction voucher data, a corresponding transaction operation is performed according to the transaction data.
  16. 一种基于区块链的交易查询设备,包括:A blockchain-based transaction query device, including:
    处理器;以及,Processor; and,
    被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
    接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;Receiving a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
    根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;According to the identifier of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried;
    调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的 账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;Invoke the first smart contract, and generate a distribution map of the account corresponding to the transaction voucher data during the time to be queried according to the target transaction record information, wherein the distribution map represents the distribution of the account in the The distribution status among account holders within the time to be queried;
    将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。The distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  17. 一种基于区块链的交易数据处理设备,包括:A block chain-based transaction data processing equipment, including:
    处理器;以及,Processor; and,
    被安排成存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions which, when executed, cause the processor to:
    接收核心企业用户的终端设备发送的应付账款数据;Receive accounts payable data sent by the terminal equipment of core enterprise users;
    根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;Generating transaction voucher data according to the accounts payable data, and generating an identifier of the transaction voucher data;
    将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;Sending the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of accounts corresponding to the transaction voucher data according to the identification of the transaction voucher data;
    当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;When a transaction request sent by a terminal device of a supplier user is received, execute a corresponding transaction operation according to the transaction request, and generate transaction record information according to the transaction time and the identification of the transaction voucher data;
    将所述交易记录信息写入区块链中。Write the transaction record information into the blockchain.
  18. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现以下流程:A storage medium used to store computer-executable instructions that, when executed, implement the following processes:
    接收核心企业用户的终端设备发送的交易查询请求,其中,所述交易查询请求包括待查询时间和待查询的交易凭证数据的标识;Receiving a transaction query request sent by a terminal device of a core enterprise user, where the transaction query request includes the time to be queried and the identification of the transaction voucher data to be queried;
    根据所述交易凭证数据的标识,从区块链中获取对应的且交易时间在所述待查询时间内的目标交易记录信息;According to the identifier of the transaction voucher data, obtain the corresponding target transaction record information from the blockchain and the transaction time is within the time to be queried;
    调用第一智能合约,根据所述目标交易记录信息,生成所述交易凭证数据所对应的账款在所述待查询时间内的分布图,其中,所述分布图表征所述账款在所述待查询时间内分布于账款持有用户之间的分布状况;Invoke the first smart contract, and generate a distribution map of the account corresponding to the transaction voucher data during the time to be queried according to the target transaction record information, wherein the distribution map represents the distribution of the account in the The distribution status among account holders within the time to be queried;
    将所述分布图发送给所述核心企业用户的终端设备,以使所述核心企业用户的终端设备展示所述分布图。The distribution map is sent to the terminal device of the core enterprise user, so that the terminal device of the core enterprise user displays the distribution map.
  19. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被执行时实现以下流程:A storage medium used to store computer-executable instructions that, when executed, implement the following processes:
    接收核心企业用户的终端设备发送的应付账款数据;Receive accounts payable data sent by the terminal equipment of core enterprise users;
    根据所述应付账款数据生成交易凭证数据,以及生成所述交易凭证数据的标识;Generating transaction voucher data according to the accounts payable data, and generating an identifier of the transaction voucher data;
    将所述交易凭证数据的标识发送给所述核心企业用户的终端设备,以使所述核心企 业用户根据所述交易凭证数据的标识,查询所述交易凭证数据所对应的账款的分布状况;Sending the identification of the transaction voucher data to the terminal device of the core enterprise user, so that the core enterprise user can query the distribution status of accounts corresponding to the transaction voucher data according to the identification of the transaction voucher data;
    当接收到供应商用户的终端设备发送的交易请求时,根据所述交易请求执行相应的交易操作,并根据交易时间、所述交易凭证数据的标识生成交易记录信息;When a transaction request sent by a terminal device of a supplier user is received, execute a corresponding transaction operation according to the transaction request, and generate transaction record information according to the transaction time and the identification of the transaction voucher data;
    将所述交易记录信息写入区块链中。Write the transaction record information into the blockchain.
PCT/CN2020/098505 2019-09-30 2020-06-28 Blockchain-based transaction query method, apparatus and device, and blockchain-based transaction data processing method, apparatus and device WO2021063045A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910941630.1A CN110648138B (en) 2019-09-30 2019-09-30 Transaction query and transaction data processing method, device and equipment based on block chain
CN201910941630.1 2019-09-30

Publications (1)

Publication Number Publication Date
WO2021063045A1 true WO2021063045A1 (en) 2021-04-08

Family

ID=68993430

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098505 WO2021063045A1 (en) 2019-09-30 2020-06-28 Blockchain-based transaction query method, apparatus and device, and blockchain-based transaction data processing method, apparatus and device

Country Status (2)

Country Link
CN (2) CN113205339B (en)
WO (1) WO2021063045A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095828A (en) * 2021-04-27 2021-07-09 支付宝(杭州)信息技术有限公司 Data evidence storage method and device based on block chain
CN113672784A (en) * 2021-08-13 2021-11-19 支付宝(杭州)信息技术有限公司 Vehicle information processing method, device and system based on block chain
CN113746640A (en) * 2021-09-26 2021-12-03 网易(杭州)网络有限公司 Digital certificate using method and device, computer equipment and storage medium
CN113781230A (en) * 2021-09-24 2021-12-10 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on block chain
CN114429389A (en) * 2022-01-27 2022-05-03 支付宝(杭州)信息技术有限公司 Digital commodity display method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113205339B (en) * 2019-09-30 2023-01-10 支付宝(杭州)信息技术有限公司 Transaction query and transaction data processing method, device and equipment based on block chain
CN110852887B (en) * 2020-01-14 2020-06-12 支付宝(杭州)信息技术有限公司 Method and device for acquiring transaction processing state in decentralized application cluster
CN112000713A (en) * 2020-08-14 2020-11-27 中国银联股份有限公司 Data processing method, device, equipment and medium
CN113222084B (en) * 2021-05-11 2022-07-08 支付宝(杭州)信息技术有限公司 Block chain-based date labeling and querying method and device
CN113722385B (en) * 2021-11-03 2022-02-08 腾讯科技(深圳)有限公司 Data query method, device, equipment and storage medium based on block chain network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160035044A1 (en) * 2014-08-04 2016-02-04 Alibaba Group Holding Limited Account processing method and apparatus
CN106503021A (en) * 2015-09-08 2017-03-15 阿里巴巴集团控股有限公司 A kind of data visualization method and equipment
CN109783699A (en) * 2019-01-29 2019-05-21 众安信息技术服务有限公司 Method and apparatus for monitoring the distributed account book of block chain network
CN109886677A (en) * 2018-12-29 2019-06-14 阿里巴巴集团控股有限公司 A kind of commodity based on block chain purchase method and apparatus
CN110288341A (en) * 2019-05-24 2019-09-27 阿里巴巴集团控股有限公司 Capital chain information tracing method, system, server and readable storage medium storing program for executing
CN110648138A (en) * 2019-09-30 2020-01-03 支付宝(杭州)信息技术有限公司 Transaction query and transaction data processing method, device and equipment based on block chain

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150127527A1 (en) * 2013-11-01 2015-05-07 Knox Payments, Inc. Payment processing system and method
US10475030B2 (en) * 2016-02-22 2019-11-12 Bank Of America Corporation System for implementing a distributed ledger across multiple network nodes
US10402796B2 (en) * 2016-08-29 2019-09-03 Bank Of America Corporation Application life-cycle transition record recreation system
CN113435994A (en) * 2017-03-31 2021-09-24 唐晓领 Method, device and system for sharing transaction metadata information by multiple financial borrowing parties based on block chain
JP6483754B2 (en) * 2017-05-29 2019-03-13 Tis株式会社 Transaction management system, transaction management method, and program thereof
US11132704B2 (en) * 2017-07-06 2021-09-28 Mastercard International Incorporated Method and system for electronic vouchers via blockchain
CN107451204B (en) * 2017-07-10 2021-01-05 创新先进技术有限公司 Data query method, device and equipment
CN110019194B (en) * 2017-09-27 2023-03-03 腾讯科技(深圳)有限公司 Data checking method, device, computer equipment and storage medium
CN108428122B (en) * 2018-02-08 2021-02-12 布比(北京)网络技术有限公司 Trade financing method and system on distributed account book
CN108717602B (en) * 2018-05-15 2021-09-28 创新先进技术有限公司 Method, device and equipment for identifying abnormal transaction behaviors
CN108876332B (en) * 2018-06-04 2020-09-22 清华大学 Block chain safe transaction method and device based on biometric feature mark authentication
CN109598618B (en) * 2018-09-12 2022-12-16 创新先进技术有限公司 Data processing method, and method and device for determining fluidity deadline gap
CN109636144B (en) * 2018-11-28 2021-07-06 优钱付(浙江)信息科技有限公司 Block chain risk assessment supply chain financial method, device, equipment and storage medium
CN109787809B (en) * 2018-12-07 2022-02-11 北京盛世全景科技股份有限公司 Intelligent operation and maintenance system
CN113409143A (en) * 2019-01-03 2021-09-17 创新先进技术有限公司 Asset transfer method and device based on block chain and electronic equipment
CN109785121A (en) * 2019-01-11 2019-05-21 中信梧桐港供应链管理有限公司 Current assets mortgage financing method and device based on block chain framework
CN110175903A (en) * 2019-04-12 2019-08-27 湖南大学 A kind of quotient's ticket financing method and device
CN110223179B (en) * 2019-06-10 2022-07-26 网联清算有限公司 Data processing method, device, system and medium for fund
CN110245868A (en) * 2019-06-18 2019-09-17 财付通支付科技有限公司 A kind of data processing method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160035044A1 (en) * 2014-08-04 2016-02-04 Alibaba Group Holding Limited Account processing method and apparatus
CN106503021A (en) * 2015-09-08 2017-03-15 阿里巴巴集团控股有限公司 A kind of data visualization method and equipment
CN109886677A (en) * 2018-12-29 2019-06-14 阿里巴巴集团控股有限公司 A kind of commodity based on block chain purchase method and apparatus
CN109783699A (en) * 2019-01-29 2019-05-21 众安信息技术服务有限公司 Method and apparatus for monitoring the distributed account book of block chain network
CN110288341A (en) * 2019-05-24 2019-09-27 阿里巴巴集团控股有限公司 Capital chain information tracing method, system, server and readable storage medium storing program for executing
CN110648138A (en) * 2019-09-30 2020-01-03 支付宝(杭州)信息技术有限公司 Transaction query and transaction data processing method, device and equipment based on block chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113095828A (en) * 2021-04-27 2021-07-09 支付宝(杭州)信息技术有限公司 Data evidence storage method and device based on block chain
CN113095828B (en) * 2021-04-27 2023-09-01 支付宝(杭州)信息技术有限公司 Data storage method and device based on blockchain
CN113672784A (en) * 2021-08-13 2021-11-19 支付宝(杭州)信息技术有限公司 Vehicle information processing method, device and system based on block chain
CN113672784B (en) * 2021-08-13 2024-03-29 支付宝(杭州)信息技术有限公司 Vehicle information processing method, device and system based on block chain
CN113781230A (en) * 2021-09-24 2021-12-10 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on block chain
CN113746640A (en) * 2021-09-26 2021-12-03 网易(杭州)网络有限公司 Digital certificate using method and device, computer equipment and storage medium
CN113746640B (en) * 2021-09-26 2024-03-01 网易(杭州)网络有限公司 Digital certificate using method, device, computer equipment and storage medium
CN114429389A (en) * 2022-01-27 2022-05-03 支付宝(杭州)信息技术有限公司 Digital commodity display method and device

Also Published As

Publication number Publication date
CN110648138B (en) 2021-04-30
CN110648138A (en) 2020-01-03
CN113205339B (en) 2023-01-10
CN113205339A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
WO2021063045A1 (en) Blockchain-based transaction query method, apparatus and device, and blockchain-based transaction data processing method, apparatus and device
TWI748175B (en) Data processing method, device and equipment
EP3893180B1 (en) Service data processing method and apparatus
WO2018099319A1 (en) Information presentation method and apparatus
CN110472438B (en) Transaction data processing and transaction inquiring method, device and equipment based on blockchain
CN107424069A (en) A kind of generation method of air control feature, risk monitoring and control method and apparatus
CN107644286A (en) Workflow processing method and device
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN110032598B (en) Method and device for updating field and electronic equipment
CN107026838A (en) The distribution method and device of a kind of electronic certificate
CN113222723B (en) Bill processing method, device, equipment and storage medium
CN107330776A (en) One kind book keeping operation and the detailed detection method and device of abnormal book keeping operation
CN107590205A (en) A kind of service showing method, device and equipment
WO2016004814A1 (en) Service visualization method and system
CN110750530B (en) Service system and data checking method thereof
WO2020248602A1 (en) Blockchain-based relationship binding method, apparatus and device
TW202008267A (en) Bookkeeping method and device, and integrated transaction and finance system
TW201933812A (en) Data processing method, apparatus and device
WO2021239087A1 (en) Data processing method, apparatus and device, and medium
CN110018819A (en) A kind of verification of data scenario generation method, device and equipment
CN110134860A (en) User's portrait generation method, device and equipment
CN110046977B (en) Accounting method, accounting device and server
CN107918863A (en) Preposition processing and collocation method, device and equipment based on financial product
CN114548963B (en) Payment interaction processing method and device
CN110223052A (en) Data processing method, device and machine readable media

Legal Events

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

Ref document number: 20870847

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20870847

Country of ref document: EP

Kind code of ref document: A1