WO2021012909A1 - 数据导出方法、装置、计算机设备和存储介质 - Google Patents

数据导出方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2021012909A1
WO2021012909A1 PCT/CN2020/099396 CN2020099396W WO2021012909A1 WO 2021012909 A1 WO2021012909 A1 WO 2021012909A1 CN 2020099396 W CN2020099396 W CN 2020099396W WO 2021012909 A1 WO2021012909 A1 WO 2021012909A1
Authority
WO
WIPO (PCT)
Prior art keywords
data file
information
data
export
instruction
Prior art date
Application number
PCT/CN2020/099396
Other languages
English (en)
French (fr)
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 WO2021012909A1 publication Critical patent/WO2021012909A1/zh

Links

Images

Classifications

    • 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/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the technical field of distributed ledgers, and in particular to blockchain-based data export methods, devices, computer equipment and storage media.
  • Blockchain is a new application model of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain is an important concept of Bitcoin. It is essentially a decentralized database. At the same time, as the underlying technology of Bitcoin, it is also a series of data blocks generated using cryptographic methods. Each data block Contains a batch of Bitcoin network transaction information, used to verify the validity of the information and generate the next block.
  • the main purpose of this application is to solve the technical problem of low work efficiency due to the large information of the included data files and the single way of traditional file export and viewing during large-scale organization or node deployment.
  • the first aspect of the present application provides a blockchain-based data export method, including: when a start instruction of the data file export function is received, parsing the start instruction to obtain the corresponding start instruction Identification information; read the target category information corresponding to the identification information, and obtain the data export rules corresponding to the data file based on the target category information; when it is determined that there is data file screening information in the startup instruction, based on the The identification information and the data file screening information are queried in a preset database to obtain the corresponding target data file; the target data file is exported according to the data export rule.
  • the second aspect of this application provides a blockchain-based data export device, including a memory, a processor, and computer-readable instructions stored on the memory and running on the processor, and the processor executes
  • the computer-readable instruction implements the following steps: when a start instruction of the data file export function is received, the start instruction is parsed to obtain the identification information corresponding to the start instruction; and the target category information corresponding to the identification information is read , And obtain the data export rule corresponding to the data file based on the target category information; when it is determined that there is data file screening information in the startup instruction, based on the identification information and the data file screening information in a preset database The query is performed to obtain the corresponding target data file; the target data file is exported according to the data export rule.
  • the third aspect of the present application provides a computer-readable storage medium in which computer instructions are stored.
  • the computer executes the following steps: when a data file is received When deriving the start instruction of the function, analyze the start instruction to obtain the identification information corresponding to the start instruction; read the target category information corresponding to the identification information, and obtain the data corresponding to the data file based on the target category information Export rules; when it is determined that there is data file screening information in the startup instruction, query in a preset database based on the identification information and the data file screening information to obtain the corresponding target data file; and convert the target data file Export according to the data export rules.
  • the fourth aspect of the present application provides a block chain-based data export device, including: an instruction receiving module, configured to parse the file export start instruction to obtain the file export start instruction when receiving the file export start instruction Corresponding identification information; rule acquisition module, used to read the target category information corresponding to the identification information, and obtain the data export rules corresponding to the data file based on the target category information; data acquisition module, used when it is determined to exist When data file screening information, query in a preset database based on the identification information and the data file screening information to obtain the corresponding target data file; the data export module is used to export the target data file according to the data The rules are exported.
  • an instruction receiving module configured to parse the file export start instruction to obtain the file export start instruction when receiving the file export start instruction Corresponding identification information
  • rule acquisition module used to read the target category information corresponding to the identification information, and obtain the data export rules corresponding to the data file based on the target category information
  • data acquisition module used when it is determined to exist When data file screening information, query in a
  • the start instruction issued by the staff through the corresponding operation to start the data export function is first received, and the start instruction will be analyzed at this time Obtain the identification information corresponding to the startup instruction, read the target category information corresponding to the identification information, and then obtain the corresponding data export template according to the obtained identification information, and then when it is determined that there is data file filtering information in the startup instruction, it is The obtained identification information and data file screening information are queried in the preset database to obtain the corresponding target data file, and finally the obtained data file is exported according to the obtained data export template.
  • the data file corresponding to the organization or node is exported, which is convenient to operate and improves efficiency, and can effectively manage and maintain the organization or node.
  • FIG. 1 is a schematic flowchart of a data export method based on blockchain in an embodiment
  • FIG. 2 is a schematic flowchart of a data file uploading step in an embodiment
  • FIG. 3 is a schematic flowchart of steps after determining that there is no data file screening information in the startup instruction in an embodiment
  • FIG. 4 is a schematic flowchart of a data file acquisition step in an embodiment
  • FIG. 5 is a schematic flowchart of a data file export step in an embodiment
  • Figure 6 is a block diagram of a block chain-based data export device in an embodiment
  • Figure 7 is a block diagram of a block chain-based data export device in another embodiment
  • Fig. 8 is a structural block diagram of a block chain-based data export device in another embodiment.
  • the embodiments of the application provide a blockchain-based data export method, device, equipment, and storage medium, which are used to export data files corresponding to organizations or nodes during large-scale organization or node deployment, which is convenient and easy to operate. Improve efficiency, and can effectively manage and maintain organizations or nodes.
  • An embodiment of the blockchain-based data export method in the embodiment of the present application includes:
  • the blockchain-based data export method includes:
  • Step S10 When the start instruction of the data file export function is received, the start instruction is parsed to obtain the identification information corresponding to the start instruction.
  • Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • blockchains are mainly divided into public chains, private chains, and alliance chains.
  • the alliance chain is still a kind of private chain in essence, but it is larger than the private chain developed by a single small organization.
  • the public chain There is not such a large scale as the public chain, which can be understood as a kind of blockchain between the private chain and the public chain.
  • the private chain scenario is mainly described, which can be a completely private chain or a consortium chain.
  • the identification information is the characteristic information associated with the data export instruction, which can be a text description or a digital number, and there is no restriction here.
  • the data export device When the data export device performs batch export of data files, it will first receive the input file export instruction, and then identify the identification information corresponding to the received file export instruction, and then perform the data file according to the obtained identification information Batch export.
  • the staff when the data file is exported, the staff triggers the file export instruction through the corresponding operation.
  • the data export device When the staff performs the corresponding operation and the data export instruction is everywhere, the data export device will first identify the location of the received file export instruction. The corresponding identification information.
  • it can include all the data files that a node or organization in the blockchain needs to use when configuring, such as configuration files.
  • Step S20 Read the target category information corresponding to the identification information, and obtain the data export rule corresponding to the data file based on the target category information.
  • the categories are mainly divided into blockchain organizations and blockchain nodes, and category information is the category attributes corresponding to the blockchain organization and nodes.
  • the identification information contains the category information of the file that needs to be exported. Since the information contained in the data files corresponding to different categories is different, the data files corresponding to different categories of information can have different file export rules, which are specifically reflected in different The file export template corresponding to the type of data file is different.
  • the data export device obtains corresponding data export rules by identifying the target category information contained in the identification information, and different data export rules correspond to different data export templates.
  • data export rules correspond to different data export templates.
  • the data file of is the information corresponding to the organization or node.
  • the category information is the node identifier
  • the content of the exported data file includes: the blockchain network, the name of the organization, and the service
  • the address, time service address, node status, node type, peer node role, member service provider (MSP) name, client access address, creation time, and description information are summarized in the corresponding table.
  • MSP member service provider
  • client access address creation time
  • description information are summarized in the corresponding table.
  • the specific content included is also different. Therefore, different data export templates can be configured to adapt to data files of different formats.
  • Step S30 When it is determined that there is data file screening information in the startup instruction, a query is performed in a preset database based on the identification information and the data file screening information to obtain the corresponding target data file.
  • the data file filter rules are used to filter the exported data files in the database.
  • the data file filter rules can be set when the data file export function is started, which is included in the data file export start instruction. It can also be set after the data file export function is activated.
  • the data export device When analyzing the received data file export instruction, the data export device will not only obtain the identification information corresponding to the data file export start instruction, but also determine whether there are data file screening rules in the data file export start instruction. Since the data file filtering information can be set in advance or after the function is activated, it is necessary to determine whether there is a data file filtering instruction in the startup instruction when starting the data file export function.
  • the data export device When acquiring the data file, acquires the target data file corresponding to the identification information in the preset database according to the identification information corresponding to the data export instruction.
  • the preset database contains different types of data files, such as configuration files corresponding to blockchain nodes or organizations.
  • the identification information is used to determine the current data files that need to be obtained. Specifically, in the identification information When it refers to the node identification, the data file of the category belonging to the node will be obtained, and when the value of the identification information is the organization identification, the data file of the category belonging to the organization will be obtained.
  • it may further include: when it is detected that the file export instruction has failed to be parsed, sending out an instruction exception prompt message.
  • the data file export failed. Specifically, when it is determined that there is an abnormality in the data export, an abnormality prompt message will be issued, and the reason for the abnormality will be fed back.
  • the parsing failure may exist in any data parsing process, so in fact, the issuing stage of the prompt message of the instruction abnormality exists during the entire data export process.
  • Step S40 Export the target data file according to the data export rule.
  • the data export device After the data export device obtains the corresponding target data file and the corresponding data export rule, it will summarize the obtained data file and fill it in the corresponding position in the data export template corresponding to the data export rule, so as to add The obtained summary table information is exported.
  • the start instruction issued by the staff through the corresponding operation to start the data export function is first received, and the start instruction will be analyzed at this time to obtain the start instruction
  • the corresponding identification information while reading the target category information corresponding to the identification information, and then obtain the corresponding data export template according to the obtained identification information, and then when it is determined that there is data file filtering information in the startup instruction, according to the obtained identification
  • the information and data file screening information is queried in the preset database to obtain the corresponding target data file, and finally the obtained data file is exported according to the obtained data export template.
  • the data file corresponding to the organization or node is exported, which is convenient to operate and improves efficiency, and can effectively manage and maintain the organization or node.
  • the data file screening information contained in the starting instruction is required.
  • the number of data files contained in the blockchain alliance chain is huge, so when exporting data, the staff can set the corresponding data filtering conditions, and then export the data files that meet the needs more. Specifically, when the data export device receives the data export instruction, it will identify the data file screening information contained in the data export instruction.
  • the information contained in different files is different.
  • the information included includes: the blockchain network, organization name, organization type, MSP logo, MSP root certificate, MSP administrator certificate, creation time, and description information;
  • the included The information includes: owning blockchain network, owning organization name, service address, time service address, node status, node type, peer node role, MSP name, client access address, creation time and description information, etc.
  • the staff can select the appropriate data file filtering conditions according to actual needs. For example, if you need to view all configuration files under a certain blockchain network, the input data file filtering conditions can be the name of the blockchain network.
  • the data file obtained is the configuration file associated with this blockchain network; if you need to view the information of a certain organization, the data file filtering condition that can be input is the name of a certain organization, and the data file obtained at this time is Is the profile associated with this organization information.
  • FIG. 2 is a schematic flowchart of a data file upload step in an embodiment.
  • step S10 when the start instruction of the data file export function is received, before the start instruction is analyzed to obtain the identification information corresponding to the start instruction, the method further includes:
  • Step S50 When the uploaded data file to be stored is received, the category information corresponding to the data file to be stored is read.
  • Step S60 Correspondingly associate the category information with the data file to be stored, and store according to the mark corresponding to the category information.
  • the data files to be stored are data files that need to be uploaded and stored in the preset database. Different data files correspond to different types of information, which is specifically reflected in the data files including the blockchain organization and the data files corresponding to the blockchain nodes. .
  • the data export device When the data export device receives the uploaded data file to be stored, it identifies the category information corresponding to the uploaded data file to be stored, and then classifies the data file to be stored according to the identified category information, and then when the marking is completed Store the data file to be stored.
  • data files that need to be exported are stored in the preset database, so the data files need to be uploaded and stored in advance.
  • the data export device uploads and stores data files in advance
  • the data files to be stored can also be classified into categories. Specifically, when the data export device receives the data file to be stored, it identifies the category information corresponding to the data file to be stored, and then performs category marking on the data file to be stored according to the obtained category information. When marking the category, it can be marked with words or numbers.
  • the configuration file of the blockchain usually includes the configuration file of the organization and the node.
  • the data file with the category information as the organization can be marked as "organization” or "1", and the category information as the node data
  • the file is marked as "node” or "2”, and then when the file needs to be viewed, the required data file can be obtained more quickly according to the mark export and filter conditions.
  • the uploaded data file is classified and marked, and then when the data file is exported, the world can quickly search the data file according to different category information. In turn, the data file can be exported more quickly.
  • FIG. 3 is a flowchart of steps after it is determined that there is no data file screening information in the startup instruction in an embodiment.
  • step S20 the target category information corresponding to the identification information is read, and the data export rule corresponding to the data file is obtained based on the target category information, and further includes:
  • Step S70 When it is determined that there is no data file screening information in the startup instruction, a prompt message for data file screening is issued;
  • Step S80 when receiving the instruction information for setting the data file filtering information, display the corresponding filtering information setting frame in the target area;
  • Step S90 When a selection instruction input based on the filter condition setting box is received, the selection information corresponding to the selection instruction is identified and summarized to obtain the corresponding data file filtering information.
  • the data export device When the data export device determines that there is no data file screening information in the startup instruction, it will send out corresponding prompt information so that the staff can set the data file screening information. After the data export device sends out the prompt information, the staff will follow The prompt information sent by the data export device performs corresponding operations. Specifically, when the data export device receives the instruction information for setting the data file screening information, it displays the corresponding screening information setting box in the target area, and receives the staff based on When the selection instruction entered in the selection information setting box is selected, the selection information corresponding to the selection instruction will be identified, and the information will be summarized to obtain the corresponding data file filtering information.
  • the data export device When the data export device determines that there is no data file screening information in the startup instruction, it will prompt the staff that there is no screening rule corresponding to the data file and need to make corresponding settings by themselves, that is, the data file screening information needs to be set, specifically including Whether the data file to be filtered belongs to the organization or the node, or the data file is the organization or the data information in the node. Since there are a lot of data information contained in organizations and nodes, it is necessary to accurately set the corresponding data file filtering information.
  • the data export device can display the corresponding filtering information setting box on the corresponding position of the display interface, and selecting and customizing the filtering information in the filtering information setting box.
  • the staff can The information provided is used to select the information you need, and you can also customize the settings, that is, you can set certain filtering information by yourself, but the filtering information you set is necessary for the existence of no actual filtering significance
  • Custom settings the data export device can automatically filter, that is, automatically ignore irrelevant or useless custom filter information. After determining the selected and input screening information, all the information is summarized to form the final data file screening information.
  • FIG. 4 is a schematic flowchart of a data file acquisition step in an embodiment.
  • step S30 when it is determined that there is data file screening information in the startup instruction, querying a preset database based on the identification information and the data file screening information to obtain the corresponding target data file includes:
  • Step 31 When it is determined that there is data file screening information in the startup instruction, obtain a corresponding data file list in a preset database according to the identification information.
  • Step 32 According to the screening information contained in the data file screening information, query and screen the data file list to obtain the corresponding target data file.
  • step 32 specifically includes: when the identification information is a node identification, query according to the data file screening information in the node file list contained in the preset database to obtain the corresponding data file; when the identification information is an organization identification, according to the data The file screening information is queried in the organization file list contained in the preset database to obtain the corresponding data file.
  • the data export device stores data files with the same identification information as the same category, and The corresponding data files of such data files are summarized. When acquiring data information, you can directly query in the corresponding summary list, so that the data files that need to be viewed and exported can be obtained more quickly.
  • the data file can be exported more quickly, avoiding exceptional data Files affect the overall export efficiency of data files.
  • the exception data files are those that do not meet the data export standards.
  • FIG. 5 is a schematic flowchart of a data file export step in an embodiment.
  • step S40 the data file is exported according to the data export rule, including:
  • step S41 the data files are summarized according to the data export template corresponding to the data export rule to obtain a corresponding summary list;
  • Step S42 when it is detected that the summary is completed, the summary list is displayed
  • Step S43 receiving a selection instruction input based on the summary list, and obtaining a target data file line for export for export.
  • the staff can also be prompted to input the screening information after obtaining the data file to be exported, so as to determine the final export target data files.
  • the data export device After obtaining the data export template corresponding to the data export rule, the data export device first summarizes the required data files obtained more according to the obtained data export template to obtain the corresponding summary list, and then the obtained summary list The display is performed so that the data file that needs to be exported is selected in the summary list, and finally the data file that needs to be exported is obtained according to the received selection instruction to export the data file.
  • the data export device identifies and determines the data export template corresponding to the data export rule, and then fills in the relevant information corresponding to the obtained data file according to the data export template, and then fills in the obtained data when the filling is completed.
  • the list is previewed and displayed, and finally when the selection instruction input by the user is received, the selected data file to be exported is determined to export the data file.
  • the data file list displayed at this time contains all the data files corresponding to the identification information.
  • different operation buttons can be set, and the data files corresponding to the organization or node can be exported through different buttons. After getting the summary list, you can choose to export and view the data file corresponding to a certain organization or node.
  • the data export instruction issued by the staff through the corresponding operation will be received, and the corresponding identification contained in the received data export instruction will be identified Information, and then obtain the corresponding data export template according to the category information corresponding to the obtained identification information, and then obtain the corresponding data export template according to the obtained category information. Finally, after receiving the input data file, according to the obtained data export template, the received data export template To export the data file.
  • the data file corresponding to the organization or node is exported, which is convenient to operate and improves efficiency, and can effectively manage and maintain the organization or node.
  • This application further provides a data export device based on blockchain.
  • FIG. 6 is a block diagram of a block chain-based data export device in an embodiment.
  • the block chain-based data export device 60 includes an instruction receiving module 61, a rule acquisition module 62, a data acquisition module 63, and a data export module 64.
  • the instruction receiving module 61 is configured to, when receiving the file export start instruction, parse the file export start instruction to obtain the identification information corresponding to the file export start instruction;
  • the rule obtaining module 62 is configured to read the target category information corresponding to the identification information, and obtain the data export rule corresponding to the data file based on the target category information;
  • the data acquisition module 63 is configured to, when it is determined that there is data file screening information, query in a preset database based on the identification information and the data file screening information to obtain the corresponding target data file;
  • the data export module 64 is used to export data files according to data export rules.
  • FIG. 7 is a structural block diagram of a block chain-based data export device in another embodiment.
  • the block chain-based data export device 60 further includes:
  • the information reading module 65 is configured to read the category information corresponding to the data file to be stored when the uploaded data file to be stored is received;
  • the mark storage module 66 is used to correlate the category information with the data file to be stored, and store according to the mark corresponding to the category information.
  • FIG. 8 is a block diagram of a block chain-based data exporting device in another embodiment.
  • the block chain-based data export device 60 further includes:
  • the information prompt module 67 is used to send out a prompt message for data file screening when it is determined that there is no data file screening information in the startup instruction;
  • the information feedback module 68 is configured to display a corresponding filter condition setting frame in the target area when receiving instruction information for setting data file filter conditions;
  • the information summary module 69 is used for identifying the selection information corresponding to the selection instruction and summarizing to obtain the corresponding data file filtering information when a selection instruction input based on the filtering condition setting box is received.
  • the data acquisition module 63 is specifically further configured to:
  • the data acquisition module 63 is specifically further configured to:
  • the identification information is a node identification
  • the identification information is an organization identification
  • a query is performed in the organization file list contained in the preset database according to the data file screening information to obtain the corresponding data file.
  • the data export module 64 is specifically further configured to:
  • block chain-based data export device 60 is specifically used to:
  • This application also provides a blockchain-based data export device, including: a memory and at least one processor, the memory stores instructions, the memory and the at least one processor are interconnected by wires; the at least A processor calls the instructions in the memory, so that the intelligent path planning device executes the steps in the blockchain-based data export method.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
  • the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the computer, the computer executes the following steps:
  • the target data file is exported according to the data export rule.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Abstract

一种基于区块链的数据导出方法、装置、设备及存储介质,涉及区块链技术领域。基于区块链的数据导出方法包括:当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息(S10);读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则(S20);当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件(S30);将所述目标数据文件按照所述数据导出规则进行导出(S40)。上述方法在进行区块链中大规模数据的导出时可以批量进行处理,提高管理和维护的便捷性且工作效率高。

Description

数据导出方法、装置、计算机设备和存储介质
本申请要求于2019年7月23日提交中国专利局、申请号为201910665814.X、发明名称为“数据导出方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及分布式账本技术领域,尤其涉及基于区块链的数据导出方法、装置、计算机设备和存储介质。
背景技术
区块链(Block chain)是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链是比特币的一个重要概念,它本质上是一个去中心化的数据库,同时作为比特币的底层技术,又是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次比特币网络交易的信息,用于验证其信息的有效性和生成下一个区块。
发明人意识到,当前区块链中的联盟链各大平台,都有自己组织和节点的部署和管理系统,但是大多数部署组织和节点都是单一组织和节点进行,在将个组织和节点的配置文件以及相关信息进行上传之后,在进行配置文件获取相关信息的查看时,需要一个一个进行查看,由于所包含的数据文件的信息大,且传统的文件导出查看方式单一,使得工作效率之低。
发明内容
本申请的主要目的在于解决在进行大规模组织或者节点部署时,需要一个一个进行查看,由于所包含的数据文件的信息大,且传统的文件导出查看方式单一,造成工作效率低的技术问题。
为实现上述目的,本申请第一方面提供了一种基于区块链的数据导出方法,包括:当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;将所述目标数据文件按照所述数据导出规则进行导出。
本申请第二方面提供了一种基于区块链的数据导出设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;将所述目标数据文件按照所述数据导出规则进行导出。
本申请第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;将所述目标数据文件按照所述数据导出规则进行导出。
本申请第四方面提供了一种基于区块链的数据导出装置,包括:指令接收模块,用于 当接收到文件导出启动指令时,解析所述文件导出启动指令得到所述文件导出启动指令所对应的标识信息;规则获取模块,用于读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;数据获取模块,用于当确定存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;数据导出模块,用于将所述目标数据文件按照所述数据导出规则进行导出。
本申请提供的技术方案中,在对于区块链中的数据进行批量导出时,首先会接收到工作人员通过相应操作而发出的数据导出功能启动的启动指令,此时将会对启动指令进行解析得到启动指令所对应的标识信息,同时读取标识信息对应的目标类别信息,然后根据所得到的标识信息获取对应的数据导出模板,进而在确定启动指令中存在有数据文件筛选信息时,根据所得到的标识信息以及数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件,最后根据所得到的数据导出模板将所获取到的数据文件进行导出。实现在进行大规模组织或者节点部署时,将组织或者节点对应的数据文件进行导出,操作方便且提高效率,并且可以有效地对组织或者节点进行管理和维护。
附图说明
图1为一个实施例中基于区块链的数据导出方法的流程示意图;
图2为一个实施例中进行数据文件上传步骤的流程示意图;
图3为一个实施例中确定启动指令中不存在数据文件筛选信息之后的步骤的流程示意图;
图4为一个实施例中进行数据文件获取步骤的流程示意图;
图5为一个实施例中进行数据文件导出步骤的流程示意图;
图6为一个实施例中基于区块链的数据导出装置的结构框图;
图7为另一实施例中基于区块链的数据导出装置的结构框图;
图8为又一实施例中基于区块链的数据导出装置的结构框图。
具体实施方式
本申请实施例提供了一种基于区块链的数据导出方法、装置、设备及存储介质,用于在进行大规模组织或者节点部署时,将组织或者节点对应的数据文件进行导出,操作方便且提高效率,并且可以有效地对组织或者节点进行管理和维护。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例进行描述。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为便于理解,下面对本申请实施例的具体流程进行描述,请参阅图1,本申请实施例中基于区块链的数据导出方法的一个实施例包括:
在一实施例中,该基于区块链的数据导出方法包括:
步骤S10,当接收到数据文件导出功能的启动指令时,解析启动指令得到启动指令所对应的标识信息。
区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应 用模式。对于区块链而言,区块链主要分为公有链、私有链以及联盟链,其中,联盟链本质上仍然是一种私有链,只不过它比单个小组织开发的私有链更大,却又没有公有链这么大的规模,可以理解为它是介于私有链和公有链之间的一种区块链。在本实施例中进行数据文件的批量导出时,主要针对的私有链场景进行描述,可以是完全的私有链,也可以是联盟链。
其中,标识信息是与数据导出指令所关联的特征信息,可以是文字描述,也可以是数字编号,在此不作任何限制。
数据导出装置在进行数据文件的批量导出时,首先会接收到所输入的文件导出指令时,然后将识别所接收到的文件导出指令所对应的标识信息,进而根据所得到的标识信息进行数据文件的批量导出。
具体地,在进行数据文件的导出时,工作人员通过相应的操作触发文件导出指令,在工作人员进行相应的操作而到处数据导出指令时,数据导出装置首先会识别所接收到的文件导出指令所对应的标识信息。在实际应用中,由于所需要导出的数据文件的种类繁多,可以包括区块链中个节点或者组织进行配置时所需要使用的所有数据文件,比如配置文件,为了对相应的数据文件进行查看,则需要将区块链组织和节点的配置文件进行批量导出。由于种类的不同,使得在进行数据文件导出时对应的数据导出的方式有所不同,具体体现在进行数据文件的批量导出时的数据导出模板有所不同。将区块链组织和节点的配置文件信息进行批量的导出,避免了配置文件信息一一导出而带来的不方便,使得在对大批量的需要进行配置的组织或者节点而言,可以利用批量导出完成组织或者节点对应的配置文件信息的导出和查看。
步骤S20,读取标识信息对应的目标类别信息,并基于目标类别信息获取数据文件对应的数据导出规则。
其中,类别主要分为区块链组织和区块链节点,类别信息是区块链组织组织和节点对应的类别属性。标识信息中包含有需要进行导出的文件的类别信息,由于不同类别对应的数据文件中所包含的信息有所不同,因此不同类别信息对应的数据文件可以存在不同的文件导出规则,具体体现在不同类型的数据文件对应的文件导出模板有所不同。
数据导出装置通过识别标识信息中所包含的目标类别信息,得到对应的数据导出规则,且不同的数据导出规则对应着不同的数据导出模板。在实际应用中,在进行组织或者节点的信息查询时,进行了解的是组织或者节点的实际配置信息,比如,节点属于哪一个组织,或者组织属于哪一个块,因此在进行数据导出时所获取的数据文件是组织或者节点对应的信息,比如,当类别信息为节点标识时,在选定了某一个节点时,所导出的数据文件内容包括有:所属区块链网络、所属组织名称、服务地址、时间服务地址、节点状态、节点类型、peer节点角色、成员服务提供者(member service provider,MSP)名称、客户端访问地址、创建时间以及描述信息等,通过相应的表格形式进行汇总。在不同的信息中,所包含的具体内容也有所不同,因此,可以配置有不同的数据导出模板以适配不同格式的数据文件。
步骤S30,当确定启动指令中存在数据文件筛选信息时,基于标识信息以及数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件。
其中,数据文件筛选规则用于在数据库进行导出数据文件的筛选,在实际应用中,数据文件筛选规则可以在数据文件导出功能启动的时候设定好,也就是包含在数据文件导出启动指令中,还可以是在数据文件导出功能启动之后再进行设定。
数据导出装置在对所接收到的数据文件导出指令进行解析时,除了得到数据文件导出启动指令所对应的标识信息之外,还将确定数据文件导出启动指令中是否存在有数据文件 筛选规则。由于数据文件筛选信息可以预先设定阿红,也可以在功能启动之后进行设定,因此在进行数据文件导出功能的启动时,需要确定是否在启动指令中存在有数据文件筛选指令。
在进行数据文件的获取时,数据导出装置根据数据导出指令所对应的标识信息,在预置数据库中获取与标识信息相对应的目标数据文件。在实际应用中,预置数据库中包含有不同种类的数据文件,比如区块链节点或组织所对应的配置文件,标识信息用于确定当前所需要进行获取的数据文件,具体地,在标识信息所指的是节点标识时,将会获取类别属于节点的数据文件,在标识信息所值的是组织标识时,将会获取类别属于组织的数据文件。另外,在进行数据文件的导出时,可以对所导出的数据文件进行相应的标记,比如将属于组织类别的所有配置文件标记为“1”,将属于节点类别的所有配置文件标记为“2”。
进一步地,在上述步骤之后还可以包括:当检测到对文件导出指令解析失败时,发出指令异的常提示信息。在实际操作工程中,由于存在系统异常或者其他的问题,因此存在数据文件导出失败的情况。具体地,在确定数据导出出现异常时,将会发出异常提示信息,并将异常原因进行反馈。在实际应用中,解析失败可能存在于任何的数据解析过程中,因此实际上指令异常的提示信息的发出阶段是在整个数据导出过程中都存在的。
步骤S40,将目标数据文件按照数据导出规则进行导出。
数据导出装置在得到对应的目标数据文件以及对应的数据导出规则之后,将会将所得到的数据文件进行汇总填写至数据导出规则所对应的数据导出模板中的对应位置,以在汇总完成时将所得到的汇总表格信息进行导出。
本实施例中,在对于区块链中的数据进行批量导出时,首先会接收到工作人员通过相应操作而发出的数据导出功能启动的启动指令,此时将会对启动指令进行解析得到启动指令所对应的标识信息,同时读取标识信息对应的目标类别信息,然后根据所得到的标识信息获取对应的数据导出模板,进而在确定启动指令中存在有数据文件筛选信息时,根据所得到的标识信息以及数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件,最后根据所得到的数据导出模板将所获取到的数据文件进行导出。实现在进行大规模组织或者节点部署时,将组织或者节点对应的数据文件进行导出,操作方便且提高效率,并且可以有效地对组织或者节点进行管理和维护。
进一步地,在一个实施例中,在确定启动指令中存在有数据文件筛选信息之后,需要启动指令中所包含的数据文件筛选信息。
区块链联盟链中所包含的数据文件的数量是巨大的,因此在进行数据导出时,工作人员可以设置相应的数据筛选条件,进而可以导出更加符合需求的数据文件。具体地,在数据导出装置接收到数据导出指令时,将会识别数据导出指令中所包含的数据文件筛选信息。
针对于不同的文件(组织与节点分别对应的配置文件)所包含的信息有所不同。对于组织而言,所包含的信息包括有:所属区块链网络、组织名称、组织类型、MSP标识、MSP根证书、MSP管理员证书、创建时间以及描述信息等;对于节点而言,所包含的信息包括有:所属区块链网络、所属组织名称、服务地址、时间服务地址、节点状态、节点类型、peer节点角色、MSP名称、客户端访问地址、创建时间以及描述信息等。工作人员可以根据实际的需求选择适当的数据文件筛选条件,比如在需要查看某一个区块链网络下的所有配置文件,则输入的数据文件筛选条件可以是区块链网络的名称,此时所得到的数据文件则是与此区块链网络相关联的配置文件;若需要查看某一个组织的信息,则可以输入的数据文件筛选条件是某一个组织的名称,此时所得到的数据文件则是与此组织信息相关联的配置文件。
需要说明的是,除了可以导出某一组织或者某一节点对应的数据文件之外,还可以按 照其他不同的规则进行导出,比如在进行节点的数据信息导出时,可以选择将数据同一个组织的所有节点的数据文件进行导出,或者将数据相同节点类型的节点的数据文件进行导出等。具体根据工作人员的实际需求可以设定不同的数据文件导出规则。
参照图2,图2为一个实施例中进行数据文件上传步骤的流程示意图。
进一步地,步骤S10,当接收到数据文件导出功能的启动指令时,解析启动指令得到启动指令所对应的标识信息之前,该方法还包括:
步骤S50,当接收到所上传的待存储数据文件时,读取待存储数据文件对应的类别信息。
步骤S60,将类别信息与对待存储数据文件进行对应关联,并按照类别信息对应的标记进行存储。
其中,待存储数据文件是需要上传并存储在预置数据库中的数据文件,不同的数据文件对应不同的类别信息,具体体现在数据文件包括有区块链组织和区块链节点对应的数据文件。
当数据导出装置接收到所上传的到存储数据文件时,识别所上传的待存储数据文件所对应的类别信息,然后根据所识别得到的类别信息对待存储数据文件进行类别标记,进而在标记完成时对待存储数据文件进行存储。
在实际应用中,预置数据库中存储有需要进行导出的数据文件,因此数据文件预先需要进行上传和存储。在数据导出装置预先对数据文件进行上传存储时,除了将待存储数据文件进行存储之外,还可以对待存储数据文件进行类别划分。具体地,数据导出装置在接收到待存储数据文件时,识别待存储数据文件所对应的类别信息,然后根据所得到的类别信息对待存储数据文件进行类别标记。在进行类别标记时,可以用文字标记,也可以用数字标记。在实际应用中,区块链的配置文件通常包括的是组织以及节点的配置文件,此时可以将类别信息为组织的数据文件标记为“组织”或“1”,将类别信息为节点的数据文件标记为“节点”或“2”,进而在需要进行文件的查看时,可以直接根据标记导出以及筛选条件更快速的得到所需要的数据文件。
在本实施例中,在预先进行数据文件的上传存储时,对所上传的数据文件进行分类标记,进而在进行数据文件的导出时,可以世界根据不同的类别信息实现快速进行数据文件的查找,进而可以更加快速的将数据文件进行导出。
参照图3,图3为一个实施例中确定启动指令中不存在数据文件筛选信息之后的步骤的流程示意图。
具体地,步骤S20,读取标识信息对应的目标类别信息,并基于目标类别信息获取数据文件对应的数据导出规则,之后还包括:
步骤S70,当确定启动指令中不存在数据文件筛选信息时,发出进行数据文件筛选的提示信息;
步骤S80,当接收到进行数据文件筛选信息设定的指令信息时,在目标区域显示对应的筛选信息设定框;
步骤S90,当接收到基于筛选条件设定框输入的选择指令时,识别选择指令对应的选择信息并进行汇总得到对应的数据文件筛选信息。
在数据导出装置确定启动指令中不存在数据文件筛选信息时,将会发出相应的提示信息,以使得工作人员进行数据文件筛选信息的设置,数据导出装置在发出提示信息之后,工作人员将会根据数据导出装置所发出的提示信息进行相应的操作,具体地数据导出装置在接收到进行数据文件筛选信息设定的指令信息时,在目标区域显示相应的筛选信息设定框,并接收工作人员基于筛选信息设定框输入的选择指令时,将识别选择指令对应的选择 信息,进而进行信息汇总得到对应的数据文件筛选信息。
在实际应用中,除了数据导出装置中预先设定好数据文件筛选信息,且数据文件筛选信息包含在数据导出功能的启动指令中,也就是在工作人员启动数据导出装置的数据导出功能时,通过选择默认的若干固定的数据文件筛选信息之外,还可以进行自定义设定,也就是在启动数据文件导出功能时没有设定好数据文件筛选信息。在数据导出装置确定启动指令中不存在数据文件筛选信息时,将会提示工作人员没有数据文件对应的筛选规则,需要自己进行相应的设定,也就是需要设定数据文件筛选信息,具体地包括有进行筛选的数据文件属于组织还是节点,或者数据文件是组织或者节点中的哪些数据信息。由于对于组织和节点而言,分别包含的数据信息有很多,因此需要准确的设定好对应的数据文件筛选信息。
在进行数据文件筛选信息的选择时,数据导出装置可以在显示界面的相应位置上显示对应的筛选信息设定框,在筛选信息设定框中进行筛选信息的选择以及自定义,工作人员可以根据所提供的信息来选择所需要的信息,同时还可以进行自定义设置,也就是自己设定一定的筛选信息,但自己所设定的筛选信息是有存在的必要的,对于没有实际筛选意义的自定义设置,数据导出装置可以进行自动过滤,也就是自动忽略无关或者无用的自定义筛选信息。在确定了所选择以及所输入的筛选信息之后,将所有的信息进行汇总以形成得到最终的数据文件筛选信息。
参照图4,图4为一个实施例中进行数据文件获取步骤的流程示意图。
具体地,步骤S30,当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件,包括:
步骤31,当确定所述启动指令中存在数据文件筛选信息时,根据所述标识信息在预置数据库中获取对应的数据文件列表。
步骤32,根据所述数据文件筛选信息所包含的筛选信息,在所述数据文件列表进行查询筛选得到对应的目标数据文件。
其中,步骤32具体包括:当标识信息为节点标识时,根据数据文件筛选信息在预置数据库所包含的节点文件列表中进行查询,得到对应的数据文件;当标识信息为组织标识时,根据数据文件筛选信息在预置数据库所包含的组织文件列表中进行查询,得到对应的数据文件。
在从预置数据库中获取对应的需要进行导出的数据文件时,需要根据所识别得到的标识信息以及数据文件筛选信息在预置数据库中进行查询获取。区块链联盟链中包含的大量的组织以及节点,在对数据文件进行存储时,可以对数据文件进行分类保存,具体地,数据导出装置将标识信息相同的数据文件存储为同一类,并将此类数据文件分别对应的数据文件进行汇总。在进行数据信息的获取时,可以直接在对应的汇总列表中进行查询,可以更快速的获取需要进行查看导出的数据文件。
在本实施例中,通过对进行导出的数据文件的文件信息进行相应的限制,其中文件信息包括有数据文件的文件格式以及文件大小,可以更快速的将数据文件进行导出,避免出现例外的数据文件而影响数据文件的整体导出效率,例外的数据文件即为不满足数据导出标准的数据文件。
参照图5,图5为一个实施例中进行数据文件导出步骤的流程示意图。
进一步地,步骤S40,将数据文件按照数据导出规则进行导出,包括:
步骤S41,将数据文件按照数据导出规则所对应的数据导出模板进行汇总,得到对应的汇总列表;
步骤S42,当检测到汇总完成时,将汇总列表进行展示;
步骤S43,接收基于汇总列表所输入的选择指令,得到进行导出的目标数据文件行进行导出。
在进行数据文件的筛选时,除了工作人员在输入文件导出指令时进行筛选信息的输入,还可以在得到了待导出数据文件之后提示工作人员进行数筛选信息的输入,进而确定最终需要导出的目标数据文件。
具体地,数据导出装置在得到数据导出规则所对应的数据导出模板之后,首先将多得到的需要数据文件按照所得到的数据导出模板进行汇总,得到对应的汇总列表,然后将所得到的汇总列表进行展示,以使得在汇总列表中选择需要进行导出的数据文件,最后根据接收到的选择指令得到需要进行导出的数据文件,以进行数据文件的导出。
在实际应用中,数据导出装置识别并确定数据导出规则所对应的数据导出模板,然后将所得到的数据文件所对应的相关信息按照数据导出模板进行信息填写,进而在填写完成时将所得到的列表进行预览展示,最后在接收到用户输入的选择指令时,确定所选择的需要进行导出的数据文件以将数据文件进行导出。此时所展示出来的数据文件列表中包含有标识信息所对应的所有数据文件,在工作人员触发数据导出指令时,可以设置不同的操作按钮,通过不同的按钮可以导出组织或者节点对应的数据文件,在得到汇总列表之后,可以选择对某一个组织或者节点所对应的数据文件进行导出查看。
在本实施例中,在对于区块链中的数据进行批量导出时,首先会接收到工作人员通过相应操作而发出的数据导出指令,并识别所接收到的数据导出指令中所包含对应的标识信息,然后根据所得到的标识信息所对应的类别信息,进而根据所得到的类别信息获取对应的数据导出模板,最后在接收到所输入的数据文件之后,根据所得到的数据导出模板将所接收到的数据文件进行导出。实现在进行大规模组织或者节点部署时,将组织或者节点对应的数据文件进行导出,操作方便且提高效率,并且可以有效地对组织或者节点进行管理和维护。
本申请进一步提供一种基于区块链的数据导出装置。
参照图6,图6为一个实施例中基于区块链的数据导出装置的结构框图。
在一实施例中,该基于区块链的数据导出装置60包括指令接收模块61、规则获取模块62、数据获取模块63以及数据导出模块64。
指令接收模块61,用于当接收到文件导出启动指令时,解析文件导出启动指令得到文件导出启动指令所对应的标识信息;
规则获取模块62,用于读取标识信息对应的目标类别信息,并基于目标类别信息获取数据文件对应的数据导出规则;
数据获取模块63,用于当确定存在数据文件筛选信息时,基于标识信息以及数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
数据导出模块64,用于将数据文件按照数据导出规则进行导出。
在一个实施例中,参照图7,图7为另一实施例中基于区块链的数据导出装置的结构框图。
所述基于区块链的数据导出装置60还包括:
信息读取模块65,用于当接收所上传的待存储数据文件时,读取待存储数据文件对应的类别信息;
标记存储模块66,用于将类别信息与待存储数据文件进行对应关联,并按照类别信息对应的标记进行存储。
在一个实施例中,参照图8,图8为又一实施例中基于区块链的数据导出装置的结构 框图。
所述基于区块链的数据导出装置60还包括:
信息提示模块67,用于当确定启动指令中不存在数据文件筛选信息时,发出进行数据文件筛选的提示信息;
信息反馈模块68,用于当接收到进行数据文件筛选条件设定的指令信息时,在目标区域显示对应的筛选条件设定框;
信息汇总模块69,用于当接收到基于筛选条件设定框输入的选择指令时,识别选择指令对应的选择信息并进行汇总得到对应的数据文件筛选信息。
在一个实施例中,所述数据获取模块63具体还用于:
当确定启动指令中存在数据文件筛选信息时,根据标识信息在预置数据库中获取对应的数据文件列表;
根据数据文件筛选信息所包含的筛选信息,在数据文件列表进行查询筛选得到对应的目标数据文件。
在一个实施例中,所述数据获取模块63具体还用于:
当标识信息为节点标识时,根据数据文件筛选信息在预置数据库所包含的节点文件列表中进行查询,得到对应的数据文件;
当标识信息为组织标识时,根据数据文件筛选信息在预置数据库所包含的组织文件列表中进行查询,得到对应的数据文件。
在一个实施例中,所述数据导出模块64具体还用于:
将数据文件按照数据导出规则所对应的数据导出模板进行汇总,得到对应的汇总列表;
当检测到汇总完成时,将汇总列表进行展示;
接收基于汇总列表所输入的选择指令,得到进行导出的数据文件并进行导出。
在一个实施例中,基于区块链的数据导出装置60具体还用于:
当检测到导出指令解析失败时,发出指令异常的提示信息。
本申请还提供一种基于区块链的数据导出设备,包括:存储器和至少一个处理器,所述存储器中存储有指令,所述存储器和所述至少一个处理器通过线路互连;所述至少一个处理器调用所述存储器中的所述指令,以使得所述智能化路径规划设备执行上述基于区块链的数据导出方法中的步骤。
本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,也可以为易失性计算机可读存储介质。计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:
当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;
读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;
当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
将所述目标数据文件按照所述数据导出规则进行导出。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组 件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种基于区块链的数据导出方法,其中,包括:
    当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;
    读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;
    当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
    将所述目标数据文件按照所述数据导出规则进行导出。
  2. 根据权利要求1所述的基于区块链的数据导出方法,其中,所述当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息之前,所述方法还包括:
    当接收所上传的待存储数据文件时,读取所述待存储数据文件对应的类别信息;
    将所述类别信息与所述待存储数据文件进行对应关联,并按照所述类别信息对应的标记进行存储。
  3. 根据权利要求1所述的基于区块链的数据导出方法,其中,所述确定所述启动指令中是否包含有数据文件筛选信息之后,所述方法还包括:
    当确定所述启动指令中不存在数据文件筛选信息时,发出进行数据文件筛选的提示信息;
    当接收到进行数据文件筛选条件设定的指令信息时,在目标区域显示对应的筛选条件设定框;
    当接收到基于所述筛选条件设定框输入的选择指令时,识别所述选择指令对应的选择信息并进行汇总得到对应的数据文件筛选信息。
  4. 根据权利要求3所述的基于区块链的数据导出方法,其中,所述当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件,包括:
    当确定所述启动指令中存在数据文件筛选信息时,根据所述标识信息在预置数据库中获取对应的数据文件列表;
    根据所述数据文件筛选信息所包含的筛选信息,在所述数据文件列表进行查询筛选得到对应的目标数据文件。
  5. 根据权利要求4所述的基于区块链的数据导出方法,其中,所述根据所述数据文件筛选信息所包含的筛选信息,在所述数据文件列表进行查询筛选得到对应的目标数据文件,包括:
    当所述标识信息为节点标识时,根据所述数据文件筛选信息在所述预置数据库中存储有节点信息的节点文件列表中进行查询,得到对应的目标数据文件;
    当所述标识信息为组织标识时,根据所述数据文件筛选信息在所述预置数据库中存储有组织信息的组织文件列表中进行查询,得到对应的目标数据文件。
  6. 根据权利要求1所述的基于区块链的数据导出方法,其中,所述将所述目标数据文件按照所述数据导出规则进行导出,包括:
    将所述数据文件按照所述数据导出规则所对应的数据导出模板进行汇总,得到对应的汇总列表;
    当检测到汇总完成时,将所述汇总列表进行展示;
    接收基于所述汇总列表所输入的选择指令,得到进行导出的目标数据文件并进行导出。
  7. 根据权利要求1至6中任意一项所述的基于区块链的数据导出方法,其中,所述方法还包括:
    当检测到所述导出启动指令解析失败时,发出指令异常的提示信息。
  8. 一种基于区块链的数据导出设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
    当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;
    读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;
    当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
    将所述目标数据文件按照所述数据导出规则进行导出。
  9. 根据权利要求8所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当接收所上传的待存储数据文件时,读取所述待存储数据文件对应的类别信息;
    将所述类别信息与所述待存储数据文件进行对应关联,并按照所述类别信息对应的标记进行存储。
  10. 根据权利要求8所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当确定所述启动指令中不存在数据文件筛选信息时,发出进行数据文件筛选的提示信息;
    当接收到进行数据文件筛选条件设定的指令信息时,在目标区域显示对应的筛选条件设定框;
    当接收到基于所述筛选条件设定框输入的选择指令时,识别所述选择指令对应的选择信息并进行汇总得到对应的数据文件筛选信息。
  11. 根据权利要求10所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当确定所述启动指令中存在数据文件筛选信息时,根据所述标识信息在预置数据库中获取对应的数据文件列表;
    根据所述数据文件筛选信息所包含的筛选信息,在所述数据文件列表进行查询筛选得到对应的目标数据文件。
  12. 根据权利要求11所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当所述标识信息为节点标识时,根据所述数据文件筛选信息在所述预置数据库中存储有节点信息的节点文件列表中进行查询,得到对应的目标数据文件;
    当所述标识信息为组织标识时,根据所述数据文件筛选信息在所述预置数据库中存储有组织信息的组织文件列表中进行查询,得到对应的目标数据文件。
  13. 根据权利要求8所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    将所述数据文件按照所述数据导出规则所对应的数据导出模板进行汇总,得到对应的汇总列表;
    当检测到汇总完成时,将所述汇总列表进行展示;
    接收基于所述汇总列表所输入的选择指令,得到进行导出的目标数据文件并进行导出。
  14. 根据权利要求8所述的基于区块链的数据导出设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当检测到所述导出启动指令解析失败时,发出指令异常的提示信息。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:
    当接收到数据文件导出功能的启动指令时,解析所述启动指令得到所述启动指令所对应的标识信息;
    读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;
    当确定所述启动指令中存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
    将所述目标数据文件按照所述数据导出规则进行导出。
  16. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    当接收所上传的待存储数据文件时,读取所述待存储数据文件对应的类别信息;
    将所述类别信息与所述待存储数据文件进行对应关联,并按照所述类别信息对应的标记进行存储。
  17. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    当确定所述启动指令中不存在数据文件筛选信息时,发出进行数据文件筛选的提示信息;
    当接收到进行数据文件筛选条件设定的指令信息时,在目标区域显示对应的筛选条件设定框;
    当接收到基于所述筛选条件设定框输入的选择指令时,识别所述选择指令对应的选择信息并进行汇总得到对应的数据文件筛选信息。
  18. 根据权利要求17所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    当确定所述启动指令中存在数据文件筛选信息时,根据所述标识信息在预置数据库中获取对应的数据文件列表;
    根据所述数据文件筛选信息所包含的筛选信息,在所述数据文件列表进行查询筛选得到对应的目标数据文件。
  19. 根据权利要求18所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    当所述标识信息为节点标识时,根据所述数据文件筛选信息在所述预置数据库中存储有节点信息的节点文件列表中进行查询,得到对应的目标数据文件;
    当所述标识信息为组织标识时,根据所述数据文件筛选信息在所述预置数据库中存储有组织信息的组织文件列表中进行查询,得到对应的目标数据文件。
  20. 一种基于区块链的数据导出装置,其中,所述装置包括:
    指令接收模块,用于当接收到文件导出启动指令时,解析所述文件导出启动指令得到所述文件导出启动指令所对应的标识信息;
    规则获取模块,用于读取所述标识信息对应的目标类别信息,并基于所述目标类别信息获取所述数据文件对应的数据导出规则;
    数据获取模块,用于当确定存在数据文件筛选信息时,基于所述标识信息以及所述数据文件筛选信息在预置数据库中进行查询,得到对应的目标数据文件;
    数据导出模块,用于将所述目标数据文件按照所述数据导出规则进行导出。
PCT/CN2020/099396 2019-07-23 2020-06-30 数据导出方法、装置、计算机设备和存储介质 WO2021012909A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910665814.X 2019-07-23
CN201910665814.XA CN110502558B (zh) 2019-07-23 2019-07-23 数据导出方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2021012909A1 true WO2021012909A1 (zh) 2021-01-28

Family

ID=68586745

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099396 WO2021012909A1 (zh) 2019-07-23 2020-06-30 数据导出方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN110502558B (zh)
WO (1) WO2021012909A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502558B (zh) * 2019-07-23 2023-11-28 平安科技(深圳)有限公司 数据导出方法、装置、计算机设备和存储介质
CN111460773A (zh) * 2020-03-30 2020-07-28 京东数字科技控股有限公司 一种数据处理方法、装置、系统、电子设备及存储介质
CN112447274B (zh) * 2020-11-17 2024-02-20 北京全域医疗技术集团有限公司 放疗剂量的验证方法、装置及计算机设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370897A1 (en) * 2014-06-18 2015-12-24 Alibaba Group Holding Limited Data query method and apparatus
CN105426465A (zh) * 2015-11-13 2016-03-23 中国建设银行股份有限公司 联机导出报表的方法及装置
CN109299157A (zh) * 2018-08-27 2019-02-01 杭州安恒信息技术股份有限公司 一种分布式大单表的数据导出方法及装置
CN109446155A (zh) * 2018-11-12 2019-03-08 山东鲁能智能技术有限公司 智能站描述文件导入导出配置方法及系统
CN110502558A (zh) * 2019-07-23 2019-11-26 平安科技(深圳)有限公司 数据导出方法、装置、计算机设备和存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8275742B2 (en) * 2003-05-19 2012-09-25 Sap Aktiengesellschaft Data importation and exportation for computing devices
JP2005050149A (ja) * 2003-07-29 2005-02-24 Nec Soft Ltd データベース表データの管理方式と方法、データベースシステムとサーバ、端末、及びプログラム
US7979793B2 (en) * 2007-09-28 2011-07-12 Microsoft Corporation Graphical creation of a document conversion template
CN108427697A (zh) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 基于bim的装配式建筑数据导出方法及装置
CN109947789B (zh) * 2019-01-28 2023-12-19 平安科技(深圳)有限公司 一种多数据库的数据处理的方法、装置、计算机设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150370897A1 (en) * 2014-06-18 2015-12-24 Alibaba Group Holding Limited Data query method and apparatus
CN105426465A (zh) * 2015-11-13 2016-03-23 中国建设银行股份有限公司 联机导出报表的方法及装置
CN109299157A (zh) * 2018-08-27 2019-02-01 杭州安恒信息技术股份有限公司 一种分布式大单表的数据导出方法及装置
CN109446155A (zh) * 2018-11-12 2019-03-08 山东鲁能智能技术有限公司 智能站描述文件导入导出配置方法及系统
CN110502558A (zh) * 2019-07-23 2019-11-26 平安科技(深圳)有限公司 数据导出方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN110502558B (zh) 2023-11-28
CN110502558A (zh) 2019-11-26

Similar Documents

Publication Publication Date Title
WO2021012909A1 (zh) 数据导出方法、装置、计算机设备和存储介质
US11792291B1 (en) Proxying hypertext transfer protocol (HTTP) requests for microservices
US11366686B1 (en) Managing user data in a multitenant deployment
US11044179B1 (en) Service monitoring interface controlling by-service mode operation
US10965559B1 (en) Automatic creation of related event groups for an IT service monitoring system
US11080641B1 (en) Graphical user interface for enabling association of timestamped machine-generated data and human-generated data
US11836148B1 (en) Data source correlation user interface
US10417108B2 (en) Portable control modules in a machine data driven service monitoring system
CN110928772B (zh) 一种测试方法及装置
US11347577B1 (en) Monitoring features of components of a distributed computing system
CN102571403B (zh) 通用数据质量管控适配器的实现方法和装置
US20220309076A1 (en) Computer Network Controlled Data Orchestration System And Method For Data Aggregation, Normalization, For Presentation, Analysis And Action/Decision Making
US11138191B1 (en) Multi-field search query of result data set generated from event data
US8930303B2 (en) Discovering pivot type relationships between database objects
WO2014079304A1 (zh) 一种报表创建方法、装置和系统
US10628603B1 (en) Graphical user interface for configuring a cross-silo enterprise data acquisition, reporting and analysis system
US11436116B1 (en) Recovering pre-indexed data from a shared storage system following a failed indexer
CN111078695B (zh) 计算企业内元数据关联关系的方法及装置
US11144336B1 (en) Customization tool for dashboards
US20120072589A1 (en) Information Processing Apparatus and Method of Operating the Same
WO2021012910A1 (zh) 数据导入方法、装置、计算机设备和存储介质
CN115576950A (zh) 一种基于json配置文件的报表生成方法
US11574429B1 (en) Automated generation of display layouts
CN114268569B (zh) 一种可配置的网络运维验收测试方法及装置
WO2022253054A1 (zh) 一种故障处理方法、装置、服务器及存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1