CN110502558B - Data export method, device, computer equipment and storage medium - Google Patents

Data export method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110502558B
CN110502558B CN201910665814.XA CN201910665814A CN110502558B CN 110502558 B CN110502558 B CN 110502558B CN 201910665814 A CN201910665814 A CN 201910665814A CN 110502558 B CN110502558 B CN 110502558B
Authority
CN
China
Prior art keywords
data file
information
data
screening
export
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910665814.XA
Other languages
Chinese (zh)
Other versions
CN110502558A (en
Inventor
冯承勇
张松松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910665814.XA priority Critical patent/CN110502558B/en
Publication of CN110502558A publication Critical patent/CN110502558A/en
Priority to PCT/CN2020/099396 priority patent/WO2021012909A1/en
Application granted granted Critical
Publication of CN110502558B publication Critical patent/CN110502558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Abstract

The invention discloses a data export method based on a block chain, which relates to the field of block chains, and comprises the following steps: when a starting instruction of a data file export function is received, analyzing the starting instruction to obtain identification information corresponding to the starting instruction; reading target category information corresponding to the identification information, and acquiring a data export rule corresponding to the data file based on the target category information; when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file; and exporting the target data file according to the data export rule. The invention also provides a data export device based on the blockchain, computer equipment and a storage medium. The method can realize batch processing when the large-scale data in the block chain is exported, improves convenience of management and maintenance, and has high working efficiency.

Description

Data export method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of blockchain, and more particularly, to a blockchain-based data export method, a blockchain-based data export device, a computer device, and a storage medium storing computer readable instructions.
Background
Blockchain (blockchain) is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms and the like. A blockchain is a decentralised database, which is a series of data blocks generated by association using a cryptography method, and each data block contains information of a batch of network transactions for verifying the validity of the information and generating a next block.
The large platforms of the alliance chain in the current blockchain are provided with deployment and management systems of own organizations and nodes, but most of deployment organizations and nodes are single organizations and nodes, after configuration files and related information of the individual organizations and nodes are uploaded, when the configuration files are checked to acquire the related information, the configuration files need to be checked one by one, and as the information of the contained data files is large, and the traditional file export checking mode is single, the working efficiency is low.
Disclosure of Invention
Based on this, it is necessary to provide a data export method, apparatus, computer device and storage medium based on blockchain for exporting data files corresponding to organizations or nodes when large-scale organization or node deployment is performed, so that the operation is convenient and the efficiency is improved, and the organization or node can be effectively managed and maintained.
In order to achieve the above object, the present invention provides a data export method based on a blockchain, the data export method based on a blockchain including:
when a starting instruction of a data file export function is received, analyzing the starting instruction to obtain identification information corresponding to the starting instruction;
reading target category information corresponding to the identification information, and acquiring a data export rule corresponding to the data file based on the target category information;
when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file;
and exporting the target data file according to the data export rule.
Optionally, before the step of analyzing the start-up instruction to obtain the identification information corresponding to the start-up instruction when the start-up instruction of the data file export function is received, the method further includes:
when receiving the uploaded data file to be stored, reading category information corresponding to the data file to be stored;
and correspondingly associating the category information with the data file to be stored, and storing according to the mark corresponding to the category information.
Optionally, after determining whether the start instruction includes data file screening information, the method further includes:
when the starting instruction is determined to not have a data file screening instruction, sending prompt information for data file screening;
when receiving instruction information for setting screening conditions of the data file, displaying a corresponding screening condition setting frame in a target area;
when receiving a selection instruction input based on the screening condition setting box, identifying selection information corresponding to the selection instruction and summarizing to obtain corresponding data file screening information.
Optionally, when determining that the data file screening information exists in the start instruction, querying in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file, including:
when the data file screening information exists in the starting instruction, acquiring a corresponding data file list from a preset database according to the identification information;
and according to the screening information contained in the data file screening information, inquiring and screening the data file list to obtain a corresponding target data file.
Optionally, the querying and filtering the data file list according to the filtering information included in the data file filtering information to obtain a corresponding target data file includes:
when the identification information is node identification, inquiring in a node file list stored with node information in the preset database according to the data file screening information to obtain a corresponding target data file;
and when the identification information is an organization identification, inquiring in an organization file list stored with organization information in the preset database according to the data file screening information to obtain a corresponding target data file.
Optionally, the exporting the target data file according to the data export rule includes:
summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying the summary list;
and receiving a selection instruction input based on the summary list, obtaining a data file to be exported and exporting the data file.
Optionally, the method further comprises:
and when detecting that the analysis of the derived starting instruction fails, sending out prompt information of instruction abnormality.
In addition, in order to achieve the above object, the present invention also provides a blockchain-based data exporting apparatus, including:
the instruction receiving module is used for analyzing the file export starting instruction to obtain the identification information corresponding to the file export starting instruction when receiving the file export starting instruction;
the rule acquisition module is used for reading the target category information corresponding to the identification information and acquiring the data export rule corresponding to the data file based on the target category information;
the data acquisition module is used for inquiring in a preset database based on the identification information and the data file screening information when the data file screening information is determined to exist, so as to obtain a corresponding target data file;
and the data export module is used for exporting the target data file according to the data export rule.
Optionally, the blockchain-based data deriving device further includes:
the information reading module is used for reading category information corresponding to the data file to be stored when the uploaded data file to be stored is received;
and the mark storage module is used for correspondingly associating the category information with the data file to be stored and storing the category information according to the mark corresponding to the category information.
Optionally, the blockchain-based data deriving device further includes:
the information prompt module is used for sending prompt information for screening the data files when the data file screening information does not exist in the starting instruction;
the information feedback module is used for displaying a corresponding screening condition setting frame in the target area when receiving instruction information for setting the screening conditions of the data file;
and the information summarizing module is used for identifying the selection information corresponding to the selection instruction and summarizing the selection information to obtain the corresponding data file screening information when the selection instruction input based on the screening condition setting box is received.
Optionally, the data acquisition module is specifically further configured to:
when the data file screening information exists in the starting instruction, a corresponding data file list is obtained from a preset database according to the identification information;
and according to the screening information contained in the data file screening information, inquiring and screening in the data file list to obtain the corresponding target data file.
Optionally, the data acquisition module is specifically further configured to:
when the identification information is node identification, inquiring in a node file list contained in a preset database according to the data file screening information to obtain a corresponding data file;
And when the identification information is an organization identification, inquiring in an organization file list contained in a preset database according to the data file screening information to obtain a corresponding data file.
Optionally, the data export module is specifically further configured to:
summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying a summary list;
and receiving a selection instruction input based on the summary list, obtaining a data file to be exported and exporting the data file.
Optionally, the blockchain-based data deriving device is specifically further configured to:
and when detecting that the derived instruction fails to analyze, sending out prompt information of instruction abnormality.
In addition, to achieve the above object, the present invention further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, which when executed by the processor, cause the processor to perform the steps of the block chain based data derivation method.
In addition, to achieve the above object, the present invention also provides a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain-based data derivation method described above.
When the data in the blockchain is exported in batches, the starting instruction of starting the data export function sent by a worker through corresponding operation is received, the starting instruction is analyzed to obtain the identification information corresponding to the starting instruction, the target category information corresponding to the identification information is read, the corresponding data export template is obtained according to the obtained identification information, when the existence of the data file screening information in the starting instruction is determined, the data file screening information is queried in the preset database according to the obtained identification information, the corresponding target data file is obtained, and finally the obtained data file is exported according to the obtained data export template. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are exported, the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.
Drawings
FIG. 1 is a flow diagram of a method for blockchain-based data export in one embodiment;
FIG. 2 is a flow chart illustrating a data file uploading process according to one embodiment;
FIG. 3 is a flowchart illustrating steps after determining that no data file screening information is present in the startup instruction in one embodiment;
FIG. 4 is a flow chart illustrating a data file acquisition step performed in one embodiment;
FIG. 5 is a flow chart illustrating a data file export process in one embodiment;
FIG. 6 is a block diagram of a block chain based data derivation device in one embodiment;
FIG. 7 is a block diagram of a block chain based data derivation device in another embodiment;
FIG. 8 is a block diagram of a block chain based data derivation device in yet another embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Referring to fig. 1, fig. 1 is a flow chart illustrating a block chain based data export method in one embodiment.
In one embodiment, the blockchain-based data derivation method includes:
step S10, when a starting instruction of the data file export function is received, analyzing the starting instruction to obtain identification information corresponding to the starting instruction.
Blockchains are novel application modes of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. For blockchains, blockchains are largely divided into public chains, private chains, and federated chains, where a federated chain is still a type of private chain in nature, except that it is larger than a private chain developed by a single small organization, but not as large as a public chain, which is understood to be a type of blockchain that is intermediate between a private chain and a public chain. In this embodiment, when the batch export of the data files is performed, the description is mainly directed to the private chain scene, which may be a complete private chain or a federation chain.
The identification information is feature information associated with the data export instruction, and may be written description or number, which is not limited in this regard.
When the data export device carries out batch export of the data files, firstly, when the input file export instruction is received, then, identification information corresponding to the received file export instruction is identified, and further, batch export of the data files is carried out according to the obtained identification information.
Specifically, when the operator performs the data file export instruction, the operator triggers the file export instruction through the corresponding operation, and when the operator performs the corresponding operation to process the data export instruction, the data export device first identifies the identification information corresponding to the received file export instruction. In practical applications, due to the variety of data files to be exported, all data files, such as configuration files, needed for configuration of individual nodes or organizations in a blockchain may be included, and for viewing the corresponding data files, blockchain organization and node configuration files need to be exported in batches. The data export method is different in the data export mode, and the data export templates are different when the data files are exported in batches. The configuration file information of the block chain organization and the nodes is exported in batches, so that inconvenience caused by one-to-one export of the configuration file information is avoided, and the configuration file information corresponding to the organization or the nodes can be exported and checked by using batch export when the organization or the nodes needing to be configured in batches.
Step S20, reading target category information corresponding to the identification information, and acquiring data export rules corresponding to the data files based on the target category information.
The category is mainly divided into a blockchain organization and a blockchain node, and the category information is a category attribute corresponding to the blockchain organization and the node. The identification information contains category information of files to be exported, and because the information contained in the data files corresponding to different categories is different, different file export rules can exist for the data files corresponding to different categories, and the file export templates corresponding to different types of data files are different.
The data deriving means obtains corresponding data deriving rules by identifying the target category information contained in the identification information, and different data deriving rules correspond to different data deriving templates. In practical application, when information query of an organization or a node is performed, it is known to which organization or which block the organization belongs to, for example, the actual configuration information of the organization or the node belongs to, so that when data export is performed, the data file acquired is information corresponding to the organization or the node, for example, when category information is node identification, and when a certain node is selected, the content of the exported data file includes: the blockchain network, the organization name, the service address, the time service address, the node status, the node type, the peer node role, the member service provider (member service provider, MSP) name, the client access address, the creation time, the description information, and the like are summarized by corresponding table forms. The specific content contained in the different information is also different, and thus, different data export templates may be configured to adapt to data files of different formats.
And step S30, when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file.
The data file screening rule is used for screening the exported data file in the database, and in practical application, the data file screening rule can be set when the data file exporting function is started, that is, the data file screening rule is included in a data file exporting starting instruction, or can be set after the data file exporting function is started.
When analyzing the received data file export instruction, the data export device obtains the identification information corresponding to the data file export start instruction and determines whether the data file export start instruction has a data file screening rule. Since the data file screening information may be preset or may be set after the function is started, it is necessary to determine whether or not the data file screening instruction exists in the start instruction when the data file export function is started.
When the data file is acquired, the data deriving device acquires the target data file corresponding to the identification information from the preset database according to the identification information corresponding to the data deriving instruction. In practical application, the preset database includes different kinds of data files, such as configuration files corresponding to blockchain nodes or organizations, and the identification information is used for determining the data files currently required to be acquired, specifically, when the identification information refers to the node identifier, the data files with the category belonging to the node are acquired, and when the identification information refers to the organization identifier, the data files with the category belonging to the organization are acquired. In addition, when the data file is exported, the exported data file may be marked correspondingly, for example, all configuration files belonging to the organization category are marked as "1", and all configuration files belonging to the node category are marked as "2".
Further, after the above steps, the method may further include: when detecting that the analysis of the file export instruction fails, the method sends out abnormal prompt information of the instruction. In actual operation engineering, there are cases where export of data files fails due to system anomalies or other problems. Specifically, when it is determined that the data export is abnormal, an abnormality prompt message is sent out, and an abnormality cause is fed back. In practical applications, the parsing failure may exist in any data parsing process, so that the sending stage of the instruction exception prompt message exists in the whole data export process.
Step S40, exporting the target data file according to the data export rule.
After obtaining the corresponding target data file and the corresponding data export rule, the data export device performs summarization filling on the obtained data file to the corresponding position in the data export template corresponding to the data export rule, so as to export the obtained summarized form information when summarization is completed.
In this embodiment, when data in a blockchain is exported in batches, a start instruction for starting a data export function sent by a worker through corresponding operations is received first, at this time, the start instruction is analyzed to obtain identification information corresponding to the start instruction, target category information corresponding to the identification information is read at the same time, then a corresponding data export template is obtained according to the obtained identification information, when it is determined that data file screening information exists in the start instruction, the obtained identification information and the data file screening information are queried in a preset database to obtain a corresponding target data file, and finally the obtained data file is exported according to the obtained data export template. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are exported, the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.
Further, in one embodiment, after determining that the data file screening information is present in the startup instruction, the data file screening information contained in the startup instruction is required.
The number of data files contained in the blockchain alliance chain is huge, so that when data export is performed, a worker can set corresponding data screening conditions, and further data files meeting requirements can be exported. Specifically, when the data deriving device receives the data deriving instruction, the data file filtering information contained in the data deriving instruction is identified.
The information contained for the different files (the configuration files respectively corresponding to the organization and the nodes) is different. For an organization, the included information includes: the system comprises a block chain network, an organization name, an organization type, an MSP identifier, an MSP root certificate, an MSP manager certificate, creation time, description information and the like; for a node, the included information includes: the system comprises a block chain network, an organization name, a service address, a time service address, a node state, a node type, a peer node role, an MSP name, a client access address, creation time, descriptive information and the like. The staff can select proper data file screening conditions according to actual requirements, for example, when all configuration files under a certain blockchain network need to be checked, the input data file screening conditions can be names of the blockchain network, and the obtained data files are configuration files associated with the blockchain network; if the information of a certain organization needs to be checked, the screening condition of the data file which can be input is the name of the certain organization, and the obtained data file is the configuration file associated with the organization information.
In addition to the data files corresponding to a certain organization or a certain node, the data files may be derived according to other different rules, for example, when the data information of the nodes is derived, the data files of all nodes of the same organization may be selectively derived, or the data files of nodes of the same node type may be derived. Different data file export rules can be set according to actual demands of staff.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data file uploading procedure in one embodiment.
Further, in step S10, when receiving the start-up instruction of the data file export function, before analyzing the start-up instruction to obtain the identification information corresponding to the start-up 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, the category information is correspondingly associated with the data file to be stored, and the data file to be stored is stored according to the marks corresponding to the category information.
The data files to be stored are data files which need to be uploaded and stored in a preset database, different data files correspond to different types of information, and the data files comprise data files corresponding to block chain organizations and block chain link points.
When the data export device receives the uploaded data files to be stored, identifying the category information corresponding to the uploaded data files to be stored, and then marking the categories of the data files to be stored according to the identified category information, and further storing the data files to be stored when marking is completed.
In practical application, the preset database stores data files to be exported, so that the data files need to be uploaded and stored in advance. When the data export device uploads and stores the data files in advance, the data files to be stored can be classified in addition to the data files to be stored. Specifically, when receiving a data file to be stored, the data export device identifies 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. In the case of category marking, the category may be marked by text or by numerals. In practical applications, the configuration files of the blockchain generally include configuration files of organizations and nodes, at this time, data files with class information being organized may be marked as "organization" or "1", data files with class information being nodes may be marked as "node" or "2", and further, when the files need to be checked, the required data files may be derived and screened directly according to the marking conditions more quickly.
In this embodiment, when uploading and storing data files in advance, the uploaded data files are classified and marked, and when exporting the data files, the data files can be quickly searched in the world according to different types of information, and then the data files can be exported more quickly.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps after determining that no data file screening information exists in the startup instruction in one embodiment.
Specifically, in step S20, target category information corresponding to the identification information is read, and a data export rule corresponding to the data file is obtained based on the target category information, and then the method further includes:
step S70, when the fact that the data file screening information does not exist in the starting instruction is determined, prompt information for data file screening is sent out;
step S80, when instruction information for setting screening information of the data file is received, a corresponding screening information setting frame is displayed in a target area;
step S90, when receiving the selection instruction input based on the screening condition setting box, identifying the selection information corresponding to the selection instruction and summarizing to obtain the corresponding data file screening information.
When the data deriving device determines that the data file screening information does not exist in the starting instruction, corresponding prompt information is sent out, so that a worker can set the data file screening information, after the data deriving device sends the prompt information, the worker can perform corresponding operation according to the prompt information sent out by the data deriving device, specifically, when the data deriving device receives instruction information for setting the data file screening information, a corresponding screening information setting frame is displayed in a target area, and when the selection instruction input by the worker based on the screening information setting frame is received, selection information corresponding to the identification selection instruction is further collected to obtain the corresponding data file screening information.
In practical application, besides the data file screening information preset in the data export device, the data file screening information is included in the starting instruction of the data export function, that is, when the worker starts the data export function of the data export device, by selecting a default of a plurality of fixed data file screening information, the user-defined setting can be performed, that is, the data file screening information is not set when the data file export function is started. When the data deriving device determines that the data file screening information does not exist in the starting instruction, the data deriving device prompts the staff that the screening rule corresponding to the data file does not exist, and the staff needs to set the data file screening information correspondingly, namely the data file screening information is required to be set, and specifically comprises whether the data file subjected to screening belongs to an organization or a node, or which data files belong to the organization or the node. Since there is a lot of data information contained in each of the organization and the node, it is necessary to accurately set the corresponding data file screening information.
When selecting the screening information of the data file, the data deriving device can display a corresponding screening information setting frame at a corresponding position of the display interface, select and customize the screening information in the screening information setting frame, and a worker can select required information according to the provided information, and also can perform custom setting, namely, set certain screening information by himself, but the screening information set by himself is necessary, and for custom setting without practical screening significance, the data deriving device can perform automatic filtering, namely, automatically ignore irrelevant or useless custom screening information. After the selected and entered screening information is determined, all of the information is aggregated to form the final data file screening information.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data file obtaining step according to an embodiment.
Specifically, step S30, when determining that the data file screening information exists in the start instruction, queries in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file, which includes:
Step 31, when it is determined that the data file screening information exists in the starting instruction, a corresponding data file list is obtained from a preset database according to the identification information.
And step 32, according to the screening information contained in the data file screening information, inquiring and screening the data file list to obtain the corresponding target data file.
The step 32 specifically includes: when the identification information is node identification, inquiring in a node file list contained in a preset database according to the data file screening information to obtain a corresponding data file; and when the identification information is an organization identification, inquiring in an organization file list contained in a preset database according to the data file screening information to obtain a corresponding data file.
When the corresponding data file to be exported is obtained from the preset database, the data file is required to be inquired and obtained in the preset database according to the identification information and the data file screening information which are obtained through identification. The data files can be classified and stored when the data files are stored, and particularly, the data files with the same identification information are stored as the same class by the data export device, and the data files corresponding to the data files are summarized respectively. When the data information is acquired, the query can be directly performed in the corresponding summary list, and the data file needing to be checked and exported can be acquired more quickly.
In this embodiment, the file information of the data file to be exported is limited correspondingly, where the file information includes the file format and the file size of the data file, so that the data file can be exported more quickly, and the problem that the overall export efficiency of the data file is affected due to the occurrence of an exceptional data file is avoided, and the exceptional data file is a data file that does not meet the data export standard.
Referring to fig. 5, fig. 5 is a flowchart illustrating a data file export procedure in one embodiment.
Further, step S40, exporting the data file according to the data export rule, includes:
step S41, summarizing the data files according to the data export templates corresponding to the data export rules to obtain a corresponding summarizing list;
step S42, when the summary is detected to be completed, displaying a summary list;
step S43, receiving the selection instruction input based on the summary list, obtaining the target data file line for export and exporting.
When screening the data files, besides inputting screening information when a worker inputs a file export instruction, the worker can be prompted to input a plurality of screening information after obtaining the data files to be exported, and then the target data files to be exported finally are determined.
Specifically, after obtaining a data export template corresponding to a data export rule, the data export device firstly gathers a plurality of obtained required data files according to the obtained data export template to obtain a corresponding summarized list, then displays the obtained summarized list so as to select the data files required to be exported from the summarized list, and finally obtains the data files required to be exported according to a received selection instruction so as to export the data files.
In practical application, the data export device identifies and determines a data export template corresponding to the data export rule, then fills in relevant information corresponding to the obtained data file according to the data export template, further previews the obtained list when filling in is completed, and finally determines the selected data file to be exported when receiving a selection instruction input by a user so as to export the data file. At this time, the displayed data file list contains all data files corresponding to the identification information, when a worker triggers a data export instruction, different operation buttons can be set, data files corresponding to an organization or a node can be exported through the different buttons, and after the summarized list is obtained, the data files corresponding to a certain organization or node can be exported and checked.
In this embodiment, when performing batch export on data in the blockchain, a data export instruction sent by a worker through a corresponding operation is received first, identification information corresponding to the received data export instruction is identified, then corresponding data export templates are obtained according to the obtained category information, and finally, after receiving an input data file, the received data file is exported according to the obtained data export templates. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are exported, the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.
The invention further provides a data deriving device based on the block chain.
Referring to fig. 6, fig. 6 is a block diagram of a block chain based data derivation device in one embodiment.
In one embodiment, the blockchain-based data deriving device 60 includes an instruction receiving module 61, a rule obtaining module 62, a data obtaining module 63, and a data deriving module 64.
The instruction receiving module 61 is configured to, when receiving a file export start instruction, parse the file export start instruction to obtain identification information corresponding to the file export start instruction;
the rule obtaining module 62 is configured to read target category information corresponding to the identification information, and obtain a data export rule corresponding to the data file based on the target category information;
the data obtaining module 63 is configured to, when determining that the data file screening information exists, query in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file;
the data export module 64 is configured to export the data file according to a data export rule.
In one embodiment, referring to FIG. 7, FIG. 7 is a block diagram of a blockchain-based data export device in another embodiment.
The blockchain-based data deriving device 60 further includes:
the information reading module 65 is configured to, when receiving the uploaded data file to be stored, read category information corresponding to the data file to be stored;
the tag storage module 66 is configured to correspondingly associate the category information with the data file to be stored, and store the category information according to the tag corresponding to the category information.
In one embodiment, referring to FIG. 8, FIG. 8 is a block diagram of a blockchain-based data export device in yet another embodiment.
The blockchain-based data deriving device 60 further includes:
the information prompt module 67 is configured to send prompt information for data file screening when it is determined that the data file screening information does not exist in the startup instruction;
the information feedback module 68 is configured to display a corresponding screening condition setting frame in the target area when receiving instruction information for setting screening conditions of the data file;
and the information summarizing module 69 is configured to identify, when receiving a selection instruction input based on the screening condition setting box, selection information corresponding to the selection instruction and summarize the selection information to obtain corresponding data file screening information.
In one embodiment, the data acquisition module 63 is specifically further configured to:
when the data file screening information exists in the starting instruction, a corresponding data file list is obtained from a preset database according to the identification information;
and according to the screening information contained in the data file screening information, inquiring and screening in the data file list to obtain the corresponding target data file.
In one embodiment, the data acquisition module 63 is specifically further configured to:
When the identification information is node identification, inquiring in a node file list contained in a preset database according to the data file screening information to obtain a corresponding data file;
and when the identification information is an organization identification, inquiring in an organization file list contained in a preset database according to the data file screening information to obtain a corresponding data file.
In one embodiment, the data export module 64 is specifically further configured to:
summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying a summary list;
and receiving a selection instruction input based on the summary list, obtaining a data file to be exported and exporting the data file.
In one embodiment, the blockchain-based data derivation device 60 is specifically further configured to:
and when detecting that the derived instruction fails to analyze, sending out prompt information of instruction abnormality.
In one embodiment, a computer device is provided, the computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of:
When receiving a starting instruction of the data file export function, analyzing the starting instruction to obtain identification information corresponding to the starting instruction;
reading target category information corresponding to the identification information, and acquiring a data export rule corresponding to the data file based on the target category information;
when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file;
and exporting the data file according to a data export rule.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the uploaded data file to be stored is received, reading category information corresponding to the data file to be stored;
and correspondingly associating the category information with the data file to be stored, and storing according to the mark corresponding to the category information.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the fact that the data file screening information does not exist in the starting instruction is determined, prompt information for data file screening is sent out;
when receiving instruction information for setting screening conditions of the data file, displaying a corresponding screening condition setting frame in a target area;
When a selection instruction input based on the screening condition setting box is received, identifying selection information corresponding to the selection instruction and summarizing to obtain corresponding data file screening information.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the data file screening information exists in the starting instruction, a corresponding data file list is obtained from a preset database according to the identification information;
and according to the screening information contained in the data file screening information, inquiring and screening in the data file list to obtain the corresponding target data file.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the identification information is node identification, inquiring in a node file list contained in a preset database according to the data file screening information to obtain a corresponding data file;
and when the identification information is an organization identification, inquiring in an organization file list contained in a preset database according to the data file screening information to obtain a corresponding data file.
In one embodiment, the processor when executing the computer program further performs the steps of:
Summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying a summary list;
and receiving a selection instruction input based on the summary list, obtaining a data file to be exported and exporting the data file.
In one embodiment, the processor when executing the computer program further performs the steps of:
and when detecting that the analysis of the derived starting instruction fails, sending out prompt information of instruction abnormality.
In one embodiment, a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of:
when receiving a starting instruction of the data file export function, analyzing the starting instruction to obtain identification information corresponding to the starting instruction;
reading target category information corresponding to the identification information, and acquiring a data export rule corresponding to the data file based on the target category information;
when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file;
And exporting the data file according to a data export rule.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
when the uploaded data file to be stored is received, reading category information corresponding to the data file to be stored;
and correspondingly associating the category information with the data file to be stored, and storing according to the mark corresponding to the category information.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
when the fact that the data file screening information does not exist in the starting instruction is determined, prompt information for data file screening is sent out;
when receiving instruction information for setting screening conditions of the data file, displaying a corresponding screening condition setting frame in a target area;
when a selection instruction input based on the screening condition setting box is received, identifying selection information corresponding to the selection instruction and summarizing to obtain corresponding data file screening information.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
When the data file screening information exists in the starting instruction, a corresponding data file list is obtained from a preset database according to the identification information;
and according to the screening information contained in the data file screening information, inquiring and screening in the data file list to obtain the corresponding target data file.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
when the identification information is node identification, inquiring in a node file list contained in a preset database according to the data file screening information to obtain a corresponding data file;
and when the identification information is an organization identification, inquiring in an organization file list contained in a preset database according to the data file screening information to obtain a corresponding data file.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying a summary list;
And receiving a selection instruction input based on the summary list, obtaining a data file to be exported and exporting the data file.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to further perform the steps of:
and when detecting that the analysis of the derived starting instruction fails, sending out prompt information of instruction abnormality.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM), comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server or a network device, etc.) to perform the method according to the embodiments of the present invention.
While the embodiments of the present invention have been described above with reference to the drawings, the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many modifications may be made thereto by those of ordinary skill in the art without departing from the spirit of the present invention and the scope of the appended claims, which are to be accorded the full scope of the present invention as defined by the following description and drawings, or by any equivalent structures or equivalent flow changes, or by direct or indirect application to other relevant technical fields.

Claims (8)

1. A method of blockchain-based data export, the method comprising:
when a starting instruction of a data file export function is received, analyzing the starting instruction to obtain identification information corresponding to the starting instruction, wherein the identification information comprises a node identification and/or an organization identification;
reading target category information corresponding to the identification information, and acquiring a data export rule corresponding to the data file based on the target category information;
when the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file;
exporting the target data file according to the data export rule;
when the fact that the data file screening information does not exist in the starting instruction is determined, prompt information for data file screening is sent out;
when receiving instruction information for setting screening conditions of the data file, displaying a corresponding screening condition setting frame in a target area;
when receiving a selection instruction input based on the screening condition setting box, identifying selection information corresponding to the selection instruction and summarizing to obtain corresponding data file screening information;
When determining that the data file screening information exists in the starting instruction, inquiring in a preset database based on the identification information and the data file screening information to obtain a corresponding target data file, wherein the method comprises the following steps:
when the data file screening information exists in the starting instruction, acquiring a corresponding data file list from a preset database according to the identification information;
inquiring and screening in the data file list according to screening information contained in the data file screening information to obtain a corresponding target data file;
and according to the filtering information contained in the data file filtering information, inquiring and filtering the data file list to obtain a corresponding target data file, wherein the method comprises the following steps:
when the identification information is node identification, inquiring in a node file list stored with node information in the preset database according to the data file screening information to obtain a corresponding target data file;
when the identification information is an organization identification, inquiring in an organization file list stored with organization information in the preset database according to the data file screening information to obtain a corresponding target data file;
The exporting the target data file according to the data export rule includes:
summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying the summary list;
and receiving a selection instruction input based on the summary list, obtaining a target data file to be exported, and exporting the target data file.
2. The blockchain-based data export method of claim 1, wherein when an activation instruction of a data file export function is received, before parsing the activation instruction to obtain identification information corresponding to the activation instruction, the method further comprises:
when receiving the uploaded data file to be stored, reading category information corresponding to the data file to be stored;
and correspondingly associating the category information with the data file to be stored, and storing according to the mark corresponding to the category information.
3. The blockchain-based data export method of claim 1 or claim 2, further comprising:
and when detecting that the analysis of the derived starting instruction fails, sending out prompt information of instruction abnormality.
4. A blockchain-based data exporting apparatus, the apparatus comprising:
the instruction receiving module is used for analyzing the file export starting instruction to obtain the identification information corresponding to the file export starting instruction when receiving the file export starting instruction, wherein the identification information comprises a node identification and/or an organization identification;
the rule acquisition module is used for reading the target category information corresponding to the identification information and acquiring a data export rule corresponding to the data file based on the target category information;
the data acquisition module is used for inquiring in a preset database based on the identification information and the data file screening information when the data file screening information is determined to exist, so as to obtain a corresponding target data file;
the data export module is used for exporting the target data file according to the data export rule;
the information prompt module is used for sending prompt information for screening the data files when the data file screening information does not exist in the starting instruction;
the information feedback module is used for displaying a corresponding screening condition setting frame in the target area when receiving instruction information for setting the screening conditions of the data file;
The information summarizing module is used for identifying the selection information corresponding to the selection instruction and summarizing the selection information to obtain the corresponding data file screening information when receiving the selection instruction input based on the screening condition setting box;
the data acquisition module is specifically configured to:
when the data file screening information exists in the starting instruction, acquiring a corresponding data file list from a preset database according to the identification information;
inquiring and screening in the data file list according to screening information contained in the data file screening information to obtain a corresponding target data file;
the data acquisition module is specifically configured to:
when the identification information is node identification, inquiring in a node file list stored with node information in the preset database according to the data file screening information to obtain a corresponding target data file;
when the identification information is an organization identification, inquiring in an organization file list stored with organization information in the preset database according to the data file screening information to obtain a corresponding target data file;
the data export module is specifically configured to:
Summarizing the data files according to the data export templates corresponding to the data export rules to obtain corresponding summarizing lists;
when the summary is detected to be completed, displaying the summary list;
and receiving a selection instruction input based on the summary list, obtaining a target data file to be exported, and exporting the target data file.
5. The blockchain-based data export device of claim 4, further comprising:
the information reading module is used for reading category information corresponding to the data file to be stored when the uploaded data file to be stored is received;
and the mark storage module is used for correspondingly associating the category information with the data file to be stored and storing the category information according to the mark corresponding to the category information.
6. The blockchain-based data exporting device of claim 4 or claim 5, wherein the blockchain-based data exporting device is specifically configured to:
and when detecting that the derived instruction fails to analyze, sending out prompt information of instruction abnormality.
7. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the blockchain-based data derivation method of any of claims 1-3.
8. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the blockchain-based data derivation method of any of claims 1 to 3.
CN201910665814.XA 2019-07-23 2019-07-23 Data export method, device, computer equipment and storage medium Active CN110502558B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910665814.XA CN110502558B (en) 2019-07-23 2019-07-23 Data export method, device, computer equipment and storage medium
PCT/CN2020/099396 WO2021012909A1 (en) 2019-07-23 2020-06-30 Data export method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910665814.XA CN110502558B (en) 2019-07-23 2019-07-23 Data export method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110502558A CN110502558A (en) 2019-11-26
CN110502558B true CN110502558B (en) 2023-11-28

Family

ID=68586745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910665814.XA Active CN110502558B (en) 2019-07-23 2019-07-23 Data export method, device, computer equipment and storage medium

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502558B (en) * 2019-07-23 2023-11-28 平安科技(深圳)有限公司 Data export method, device, computer equipment and storage medium
CN111460773A (en) * 2020-03-30 2020-07-28 京东数字科技控股有限公司 Data processing method, device and system, electronic equipment and storage medium
CN112447274B (en) * 2020-11-17 2024-02-20 北京全域医疗技术集团有限公司 Verification method and device for radiotherapy dosage and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050149A (en) * 2003-07-29 2005-02-24 Nec Soft Ltd System and method for managing database table data, database system, server, terminal, and program
CN105426465A (en) * 2015-11-13 2016-03-23 中国建设银行股份有限公司 Method and device for online exporting statements
CN108427697A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 Assembled architecture data export method based on BIM and device
CN109947789A (en) * 2019-01-28 2019-06-28 平安科技(深圳)有限公司 A kind of method, apparatus, computer equipment and the storage medium of the data processing of multiple database

Family Cites Families (6)

* 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
US7979793B2 (en) * 2007-09-28 2011-07-12 Microsoft Corporation Graphical creation of a document conversion template
CN105183735B (en) * 2014-06-18 2019-02-19 阿里巴巴集团控股有限公司 The querying method and inquiry unit of data
CN109299157B (en) * 2018-08-27 2021-11-23 杭州安恒信息技术股份有限公司 Data export method and device for distributed big single table
CN109446155B (en) * 2018-11-12 2021-03-09 山东鲁能软件技术有限公司智能电气分公司 Intelligent station description file import and export configuration method and system
CN110502558B (en) * 2019-07-23 2023-11-28 平安科技(深圳)有限公司 Data export method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005050149A (en) * 2003-07-29 2005-02-24 Nec Soft Ltd System and method for managing database table data, database system, server, terminal, and program
CN105426465A (en) * 2015-11-13 2016-03-23 中国建设银行股份有限公司 Method and device for online exporting statements
CN108427697A (en) * 2017-08-12 2018-08-21 中民筑友科技投资有限公司 Assembled architecture data export method based on BIM and device
CN109947789A (en) * 2019-01-28 2019-06-28 平安科技(深圳)有限公司 A kind of method, apparatus, computer equipment and the storage medium of the data processing of multiple database

Also Published As

Publication number Publication date
WO2021012909A1 (en) 2021-01-28
CN110502558A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110502558B (en) Data export method, device, computer equipment and storage medium
CN102571403B (en) The implementation method of general data quality control adapter and device
WO2020220638A1 (en) Method and apparatus for associating link system with log system, and storage medium
US9411673B2 (en) Management server, management system, and management method
US20220309076A1 (en) Computer Network Controlled Data Orchestration System And Method For Data Aggregation, Normalization, For Presentation, Analysis And Action/Decision Making
CN112631913B (en) Method, device, equipment and storage medium for monitoring operation faults of application program
CN109657216B (en) Contract generation method, device, equipment and storage medium
CN111342992B (en) Method and system for processing equipment information change record
CN109272215B (en) Project development quality monitoring method and device, computer equipment and storage medium
CN110932918A (en) Log data acquisition method and device and storage medium
US20120072589A1 (en) Information Processing Apparatus and Method of Operating the Same
CN110502557B (en) Data importing method, device, computer equipment and storage medium
CN112988780A (en) Data checking method and device, storage medium and electronic equipment
CN112182025A (en) Log analysis method, device, equipment and computer readable storage medium
CN114268569B (en) Configurable network operation and maintenance acceptance test method and device
CN115629919A (en) Method and device for fast switching fault system
CN111985188A (en) Data conversion method, device, terminal and storage medium
CN113094088A (en) Database configuration information acquisition method and device, computer equipment and storage medium
CN109412861B (en) Method for establishing security association display of terminal network
CN113887754A (en) Construction method and system of power distribution terminal unified operation and maintenance platform and constructed platform
CN106708862A (en) Large image management method and system
CN111352824A (en) Test method and device and computer equipment
CN111078949A (en) Product knowledge storage method and device, computer equipment and readable storage medium
CN115065681B (en) System for generating rock plate processing order
CN114281541A (en) Equipment analysis system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant