CN110502557B - Data importing method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN110502557B
CN110502557B CN201910665687.3A CN201910665687A CN110502557B CN 110502557 B CN110502557 B CN 110502557B CN 201910665687 A CN201910665687 A CN 201910665687A CN 110502557 B CN110502557 B CN 110502557B
Authority
CN
China
Prior art keywords
data
file
imported
information
importing
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
CN201910665687.3A
Other languages
Chinese (zh)
Other versions
CN110502557A (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 CN201910665687.3A priority Critical patent/CN110502557B/en
Publication of CN110502557A publication Critical patent/CN110502557A/en
Priority to PCT/CN2020/099417 priority patent/WO2021012910A1/en
Application granted granted Critical
Publication of CN110502557B publication Critical patent/CN110502557B/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/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • G06F16/1794Details of file format conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • 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
    • G06F16/258Data format conversion from or to a database
    • 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 importing method based on a block chain, which relates to the field of block databases, and comprises the following steps: when a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import starting instruction; identifying category information contained in the identification information; inquiring and matching in a list of the record template and the category information associated information according to the category information to obtain a data import template matched with the category information; and when receiving the input data file to be imported, importing the data file to be imported based on the data importing template. The invention also provides a data importing device, computer equipment and a storage medium based on the blockchain. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are imported, the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.

Description

Data importing method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of block databases, and more particularly, to a block chain-based data import method, a block chain-based data import apparatus, a computer device, and a storage medium storing computer-readable instructions.
Background
The large platforms of the alliance chains 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, configuration files of the organizations or nodes needing deployment are uploaded one by one, when large-scale organizations and node deployment is needed in the blockchain network, for example, hundreds of organizations and nodes exist in the blockchain network, because the information of the files needing to be imported is large, and the traditional file importing mode is single, the working efficiency is low, and the maintenance and management are inconvenient.
Disclosure of Invention
Based on this, it is necessary to provide a data importing method, device, computer equipment and storage medium based on a blockchain for importing data files corresponding to an organization or a node when a large-scale organization or node deployment is performed, so that the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.
In order to achieve the above object, the present invention provides a data importing method based on a blockchain, the data importing method based on a blockchain includes:
when a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import starting instruction;
identifying category information contained in the identification information;
inquiring and matching in a list of the record template and the category information associated information according to the category information to obtain a data import template matched with the category information;
and when receiving the input data file to be imported, importing the data file to be imported based on the data importing template.
Optionally, when receiving the input data file to be imported, importing the data file to be imported based on the data importing template, including:
when an input data file to be imported is received, acquiring file information corresponding to the data file to be imported;
when the data file to be imported meets the preset data import standard based on the file information, summarizing the data file to be imported according to the data import template to obtain corresponding summarized data information;
And when a data import instruction is received, importing the summarized data information.
Optionally, after obtaining the file information corresponding to the data file to be imported when the input data file to be imported is received, the method further includes:
reading the file size and the file format corresponding to the data file to be imported contained in the file information;
comparing the file size with a preset file size threshold value to obtain a comparison result;
judging whether the data file to be imported meets a data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold and the file format is a standard file format, determining that the data file to be imported meets a data import standard;
and when the comparison result is that the file size is larger than the file size threshold or the file format is not in the standard file format, determining that the data file to be imported does not meet the data import standard.
Optionally, when the comparison result is that the file size is greater than the file size threshold or the file format is not the standard file format, after determining that the data file to be imported does not meet the data import standard, the method further includes:
When the comparison result is that the file size is larger than the file size threshold, sending out first prompt information of file import abnormality, wherein the first prompt information comprises that the file size is overlarge;
when the file format of the data file to be imported is not a standard file format and the comparison result is that the file size is larger than the file size threshold, sending second prompt information of file import abnormality, wherein the second prompt information comprises file format abnormality;
and when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold, converting the file format of the data file to be imported into the standard file format.
Optionally, when the data file to be imported meets a preset data import standard based on the file information, after summarizing the data file to be imported according to the data import template, the method further includes:
when receiving a preview viewing instruction, identifying data object information contained in the preview viewing instruction;
acquiring associated data from the data file to be imported according to the data object information;
And summarizing and displaying according to the summarizing format associated with the data object information.
In addition, in order to achieve the above object, the present invention also provides a blockchain-based data import apparatus, the blockchain-based data import apparatus including:
the instruction receiving module is used for analyzing the data import starting instruction to obtain the identification information corresponding to the data import starting instruction when receiving the data import starting instruction;
the category identification module is used for identifying category information corresponding to the identification information;
the template acquisition module is used for carrying out query matching in a list of the record template and the category information association information according to the category information to obtain a data import template matched with the category information;
and the data importing module is used for importing the data file to be imported based on the data importing template when receiving the input data file to be imported.
Optionally, the data importing module includes:
the information acquisition unit is used for acquiring file information corresponding to an input data file to be imported when the input data file to be imported is received;
the data summarizing unit is used for summarizing the data files to be imported according to the data importing templates when judging that the data files to be imported meet preset data importing standards based on the file information;
And the data importing unit is used for importing the data file to be imported when receiving the data importing instruction.
Optionally, the blockchain-based data importing device further includes:
the file reading module is used for reading the file size and the file format corresponding to the data file to be imported contained in the file information;
the information comparison module is used for comparing the file size with a preset file size threshold value to obtain a comparison result;
the result determining module is used for judging whether the data file to be imported meets the data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold and the file format is a standard file format, determining that the data file to be imported meets a data import standard;
and when the comparison result is that the file size is larger than the file size threshold or the file format is not in the standard file format, determining that the data file to be imported does not meet the data import standard.
Optionally, the blockchain-based data importing device further includes:
the first information prompt module is used for sending out first prompt information of file import abnormality when the comparison result is that the file size is larger than the file size threshold, wherein the first prompt information comprises the file size which is overlarge;
The second information prompt module is used for sending out second prompt information of file import abnormality when the file format of the data file to be imported is not a standard file format and the comparison result is that the file size is larger than the file size threshold, wherein the second prompt information comprises file format abnormality;
and the file format conversion module is used for converting the file format of the data file to be imported into the standard file format when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold value.
Optionally, the instruction receiving module is further configured to identify data object information included in the preview viewing instruction when the preview viewing instruction is received;
the blockchain-based data importing device further includes:
the data acquisition module is used for acquiring associated data from the data file to be imported according to the data object information;
and the data display module is used for summarizing and displaying according to the summarizing format associated with the data object information.
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 above blockchain-based data import 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 above blockchain-based data import method.
According to the data importing method, the device, the computer equipment and the storage medium based on the blockchain, when a data importing starting instruction sent based on user operation is received, the data importing starting instruction is analyzed to obtain identification information contained in the instruction, category information contained in the identification information is identified, query matching is carried out in a corresponding list according to the obtained identification information and the category information, a data importing template matched with the category information is obtained, and finally, when an input data file to be imported is received, the received data file is imported according to the obtained data importing template. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are imported, 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 import in one embodiment;
FIG. 2 is a flowchart illustrating a step of importing a data file to be imported according to one embodiment;
FIG. 3 is a flowchart illustrating steps for determining whether data to be imported meets data import criteria according to one embodiment;
FIG. 4 is a block diagram of a block chain based data importation apparatus in one embodiment;
FIG. 5 is a block diagram of the data import module in one embodiment;
FIG. 6 is a block diagram of another embodiment of a blockchain-based data import device.
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 flowchart of a data importing method based on a blockchain in an embodiment.
In one embodiment, the blockchain-based data import method includes:
step S10, when a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import 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 import 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 import instruction, and may be written description or number, which is not limited in any way.
When the data importing device firstly receives the input data importing instruction during batch importing of the data files, then analyzes the data importing starting instruction to obtain the identification information corresponding to the received data importing starting instruction, and further importing the data files in batches according to the obtained identification information.
Specifically, when the data file is imported, the worker triggers the data importing instruction through corresponding operation, and when the worker triggers the data importing instruction through corresponding operation, the data importing device firstly identifies the identification information corresponding to the received data importing instruction. In practical application, for all data files in the blockchain, the corresponding data import can be performed, and because of the variety of the data files, the variety of the data files to be imported is various, and based on the structural characteristics of the blockchain, the data files that are imported in batches in the embodiment can be divided into related configuration files of the blockchain organization and nodes, and because of the variety, the corresponding data import modes when the data files are imported are different, and the data import templates are specifically shown to be different when the data files are imported in batches. The configuration file information of the block chain organization and the nodes is imported in batches, so that the configuration file information is prevented from being imported one by one, and the configuration file information corresponding to the organization or the nodes can be imported in batches when the organization or the nodes needing to be configured in batches.
Step S20, identifying category information included in the identification 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.
After analyzing to obtain the received data import starting instruction to obtain the identification information, the data import device acquires the category information contained in the identification information, so that the corresponding data import template can be acquired according to the category information. Specifically, when the data files are imported in batches, configuration files corresponding to block chain organizations or nodes to be configured are mainly imported, so that when a data import starting instruction is received, the type information of the data files to be imported currently is determined according to the received data import starting instruction, the specific type information comprises an organization type and a node type, and a corresponding usable data import template can be obtained according to the obtained type information.
And step S30, carrying out query matching in a list of the record templates and the category information associated information according to the category information to obtain a data import template matched with the category information.
The template list stores the corresponding relation between the category and the data import template, and a certain corresponding relation exists between the category and the category information, so that the required data import template can be determined based on the category information.
After receiving and recognizing the identification information corresponding to the data importing instruction, the data importing apparatus obtains a data importing template corresponding to a data file to be imported currently.
Specifically, when the data file is imported, since the data files to be imported have a plurality of formats, the data import template used for importing the data file is determined according to the format of the data file to be imported when the data file is imported, and the data files using the same data import template can be imported uniformly. In this embodiment, the data files to be imported are configuration files corresponding to the blockchain organization or the nodes, and for the organization and the nodes, the configuration files required by the configuration files in different formats are different, so that different data import templates can implement batch import of the data files more quickly.
For example, for a data file corresponding to a blockchain organization, the included information includes organization information, fabric CA certificate information, and third party digital certificate information, that is, the information needs to be recorded in a data import template corresponding to the blockchain organization; for the data file corresponding to the block chain link point, the included information includes node information and digital certificate information, that is, the information needs to be recorded in the data import template corresponding to the block chain node. The specific content contained in the different information is also different, and thus, different data import templates may be configured to adapt to data files of different formats.
Step S40, when the input data file to be imported is received, the data file to be imported is imported based on the data import template.
The data importing device imports the received data file according to the obtained data importing template after the obtained corresponding data importing template. Specifically, when the data import template is obtained, the received data files are associated with the data files according to the data import template, and the corresponding positions in the data import template are filled in according to the data formats respectively to which the data files contained in the data files belong and are stored in the corresponding memories.
In this embodiment, when data in a blockchain is batch-imported, a data import instruction sent by a worker through a corresponding operation is received first, corresponding identification information included in the received data import instruction is identified, then corresponding data import templates are obtained according to the obtained category information, and finally, after an input data file is received, the received data file is imported according to the obtained data import templates. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are imported, the operation is convenient, the efficiency is improved, and the organization or the node can be effectively managed and maintained.
Referring to fig. 2, fig. 2 is a flowchart illustrating a step of importing a data file to be imported according to an embodiment.
Further, step S40, when receiving the input data file to be imported, imports the data file to be imported based on the data importation template, including:
step S41, when receiving the input data file to be imported, acquiring file information corresponding to the data file to be imported.
And step S42, when the data file to be imported meets the preset data import standard based on the file information, summarizing the data file to be imported according to the data import template to obtain corresponding summarized data information.
Step S43, when receiving the data import instruction, importing the summarized data information.
When the data importing device starts a batch importing function of the device, workers are prompted to upload data files to be imported, the uploaded data files to be imported are received, then judgment processing is carried out on the received data files to be imported, whether the received data files can be imported or not is determined, data files meeting preset data importing standards are imported, and particularly whether data importing can be carried out or not is judged according to file information of the received data files to be imported, wherein the file information comprises file formats and file sizes of the data files to be imported.
In practical application, the formats of the data files can be various, and the sizes of the files can be very small or very large, but when the data files are imported in batches, a unified standard is needed, so when the data files are imported, file information of the data files needs to be acquired first, and then whether the corresponding data files can be imported according to the acquired file information is determined. In this embodiment, when determining whether data can be imported according to the file information, there are two specific criteria, one is to determine whether the file format of the data file is a standard file format, and the other is to determine whether the file size of the data file satisfies a preset size condition. In practical application, the file size may be set to be 5M, and the standard file format is "cxv", and only when the file size of the data file to be imported is smaller than 5M and the file format of the data file is "cxv", the data file to be imported may be imported according to the corresponding data import template, and the data import standard is not satisfied for any other case.
In this embodiment, by limiting the file information of the data file to be imported, where the file information includes the file format and the file size of the data file, the data file can be imported more quickly, so that the overall importing efficiency of the data file is prevented from being affected by the exceptional data file, and the exceptional data file is a data file that does not meet the data importing standard.
Referring to fig. 3, fig. 3 is a flowchart illustrating a step of determining whether data to be imported meets a data import standard according to an embodiment.
Further, in step S41, when the input data file to be imported is received, after obtaining the file information corresponding to the data file to be imported, the method further includes:
step S44, reading the file size and the file format corresponding to the data file to be imported contained in the file information.
And step S45, comparing the file size with a preset file size threshold value to obtain a comparison result.
Step S46, judge whether the data file to be imported meets the data importing standard based on the file format and the comparison result.
The step S46 specifically includes:
and a step a of determining that the data file to be imported meets the data importing standard when the comparison result is that the file size is smaller than the file size threshold and the file format is the standard file format.
And b, when the comparison result is that the file size is larger than the file size threshold value or the file format is not the standard file format, determining that the data file to be imported does not meet the data importing standard.
It should be noted that, step a and step b are parallel steps, that is, for a data file to be imported, step b is not executed when step a is executed; when step b is instructed, step a is not performed.
When the data importing device receives the input data file to be imported, identifying and obtaining file information corresponding to the data file to be imported, and determining whether the data file to be imported meets the data importing standard according to the information such as the file size, the file format and the like contained in the file information. Specifically, for a data file to be imported, the file format of which is not the standard file format, it is determined that the data import standard is not satisfied, and when the file format is the standard file format, it is determined whether the data import standard is satisfied according to the file size.
In practical applications, not all data files may be imported when the data files are imported. Different data files may have different corresponding file formats, and the file sizes of the different data files are also different, so that when uploading the data files, the data files with file formats which cannot be uploaded are not allowed to be imported due to the problems of compatibility and the like, and in order to ensure the stable smoothness of uploading the data files, the data files with too large file sizes are not allowed to be imported. Therefore, a file size threshold for file import is set in advance, and only data files whose file size is smaller than or equal to the set file size threshold are possible to be imported.
In this embodiment, determining whether the data file to be imported meets the data import standard according to the comparison result of the file format and the file size includes: when the file format is a standard file format and the file size is smaller than or equal to a file size threshold, determining that the data file to be imported meets the data importing standard; when the file format is a standard file format and the file size is larger than a file size threshold, determining that the data file to be imported does not meet the data importing standard; when the file format is a non-standard file format, the data file to be imported is determined to not meet the data import standard.
Further, after step S46, the method may optionally further include: and acquiring a preset file judgment list, and storing the judgment result of the data file to be imported in the file judgment list.
After judging whether the data file to be imported meets the data importing standard, summarizing the obtained judging result. Specifically, a preset file judgment list is firstly obtained, and then a judgment result corresponding to the data file to be imported is filled in the file judgment list, wherein the judgment result comprises a judgment result of whether the data import standard is met, a reason for not meeting the data import standard and the like. In practical application, the number of data files to be imported, which are selected and uploaded at one time, is not limited, and after judging the data files to be imported, visual result information needs to be obtained, so that after judging each data file to be imported, the corresponding judging result and the reasons when the corresponding judging result fail are counted and summarized in a preset file judging list. In addition, when summarizing, the status of the importing results of all the data files to be imported can be numbered and marked.
Further, when judging whether the data file meets the preset data import standard, the data file can be modified in addition to the summary record of the files which do not meet the data import standard, so that the modified data file can be uploaded.
Specifically, when it is determined that the file format of the data file to be imported is not a standard format and the file size is equal to or less than the file size threshold, converting the file format of the data file to be imported into the standard file format, and importing the data file after format conversion based on the data import template. In practical application, for the data file to be imported which does not meet the data importing standard, the data file to be imported is not directly marked as the data file to be imported which can not be imported, for the data file to be imported which is not in the standard file format but in which the file size is smaller than or equal to the file size threshold value, the conversion of the file format can be performed, when the detection and judgment are determined, the conversion of the file format can be directly performed, and the corresponding prompt can be performed when the whole data importing process is completed, so that whether the conversion of the file format is performed or not is determined, and when the conversion is determined, the conversion of the file format is performed. The importation of the data file may be resumed after conversion to the standard file format.
Further, in practical application, the method further comprises: when receiving the preview viewing instruction, identifying data object information contained in the preview viewing instruction; acquiring associated data from a data file to be imported according to the data object information; and summarizing and displaying according to a summarizing format associated with the data object information.
For the data files to be imported which meet the data importing standards, after summarizing the data files, the staff can preview and check through corresponding operations. Specifically, when the preview instruction is received, it is first required to determine what the data file is currently desired to view, specifically by identifying the data object information contained in the preview instruction, where the data object information includes, but is not limited to, internal CA certificate file content, fabric CA certificate file content format, and third party digital certificate file content format, and so on, and specifically the viewable file information of the organization and the node is different, and then summarizing and displaying the data information according to the summary format associated with the viewed file.
Specifically, when viewing the data information, the displayed preview interface may be shown in the following table, where table 1 is a display form for summarizing the content of the internal CA certificate file in the organization information; table 2 is a display form for summarizing the content format of the Fabric CA certificate file in the organization information; table 3 is a presentation form for summarizing the content format of the third party digital certificate file in the organization information. The presentation of other data information about the organization and related data information about the nodes is not described here, and is specifically set according to the actual content of the data information, similarly to the summary presentation of tables 1 to 3.
TABLE 1
TABLE 2
TABLE 3 Table 3
In this embodiment, when a data import initiation instruction issued based on a user operation is received, the data import initiation instruction is parsed to obtain identification information included in the instruction, category information included in the identification information is identified, then query matching is performed in a corresponding list according to the obtained identification information and the category information, a data import template matching with the category information is obtained, and finally, when an input data file to be imported is received, the received data file is imported according to the obtained data import template. When large-scale organization or node deployment is carried out, the data files corresponding to the organization or the node are imported, 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 terminal network testing device.
Referring to FIG. 4, FIG. 4 is a block diagram of a block chain based data import apparatus in one embodiment.
In one embodiment, the blockchain-based data importing device 40 includes an instruction receiving module 41, a category identifying module 42, a template obtaining module 43, and a data importing module 44.
The instruction receiving module 41 is configured to, when receiving a data import start instruction, parse the data import start instruction to obtain identification information corresponding to the data import start instruction;
a category identifying module 42, configured to identify category information corresponding to the identification information;
the template obtaining module 43 is configured to perform query matching in a list of the record template and the category information association information according to the category information, so as to obtain a data import template matched with the category information;
the data import module 44 is configured to import the data file to be imported based on the data import template when receiving the input data file to be imported.
Referring to fig. 5, fig. 5 is a block diagram illustrating a structure of a data import module in one embodiment.
The data importing module 44 includes:
an information obtaining unit 441, configured to obtain file information corresponding to an input data file to be imported when receiving the data file;
a data summarizing unit 442, configured to summarize the data file to be imported according to the data import template when it is determined that the data file to be imported meets a preset data import standard based on the file information;
the data importing unit 443 is configured to import a data file to be imported when receiving a data importing instruction.
Referring to fig. 6, fig. 6 is a block diagram illustrating a block chain based data importing apparatus according to another embodiment.
The blockchain-based data import 40 specifically further includes:
the file reading module 50 is configured to read a file size and a file format corresponding to a data file to be imported, where the file size and the file format are included in the file information;
the information comparison module 60 is configured to compare the file size with a preset file size threshold value to obtain a comparison result;
a result determining module 70, configured to determine whether the data file to be imported meets the data importing standard based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold value and the file format is the standard file format, determining that the data file to be imported meets the data importing standard;
and when the comparison result is that the file size is larger than the file size threshold value or the file format is not the standard file format, determining that the data file to be imported does not meet the data importing standard.
In one embodiment, the blockchain-based data importing device 40 further includes:
the first information prompt module is used for sending out first prompt information of file import abnormality when the comparison result is that the file size is larger than a file size threshold value, wherein the first prompt information comprises the file size which is overlarge;
The second information prompt module is used for sending out second prompt information of file import abnormality when the file format of the data file to be imported is not the standard file format and the comparison result is that the file size is larger than the file size threshold value, wherein the second prompt information comprises file format abnormality;
the file format conversion module is used for converting the file format of the data file to be imported into the standard file format when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold value.
In one embodiment, the instruction receiving module 41 is further configured to identify, when receiving the preview viewing instruction, data object information included in the preview viewing instruction;
the blockchain-based data importing device 40 further includes:
the data acquisition module is used for acquiring the associated data from the data file to be imported according to the data object information;
and the data display module is used for summarizing and displaying according to a summarizing format associated with the data object information.
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 a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import starting instruction;
identifying category information contained in the identification information;
inquiring and matching in a list of the record template and the category information associated information according to the category information to obtain a data import template matched with the category information;
and when the input data file to be imported is received, importing the data file to be imported based on the data importing template.
In one embodiment, the processor when executing the computer program further performs the steps of:
when an input data file to be imported is received, acquiring file information corresponding to the data file to be imported;
when the data file to be imported meets the preset data import standard based on the file information, summarizing the data file to be imported according to the data import template to obtain corresponding summarized data information;
and when receiving the data import instruction, importing the summarized data information.
In one embodiment, the processor when executing the computer program further performs the steps of:
reading the file size and the file format corresponding to the data file to be imported contained in the file information;
Comparing the file size with a preset file size threshold value to obtain a comparison result;
judging whether the data file to be imported meets the data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold value and the file format is the standard file format, determining that the data file to be imported meets the data importing standard;
and when the comparison result is that the file size is larger than the file size threshold value or the file format is not the standard file format, determining that the data file to be imported does not meet the data importing standard.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the comparison result shows that the file size is larger than the file size threshold, sending out first prompt information of file import abnormality, wherein the first prompt information comprises that the file size is too large;
when the file format of the data file to be imported is not the standard file format and the comparison result is that the file size is larger than the file size threshold, sending out second prompt information of file import abnormality, wherein the second prompt information comprises file format abnormality;
and when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold, converting the file format of the data file to be imported into the standard file format.
In one embodiment, the processor when executing the computer program further performs the steps of:
when receiving the preview viewing instruction, identifying data object information contained in the preview viewing instruction;
acquiring associated data from a data file to be imported according to the data object information;
and summarizing and displaying according to a summarizing format associated with the data object information.
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 a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import starting instruction;
identifying category information contained in the identification information;
inquiring and matching in a list of the record template and the category information associated information according to the category information to obtain a data import template matched with the category information;
and when the input data file to be imported is received, importing the data file to be imported based on the data importing template.
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 an input data file to be imported is received, acquiring file information corresponding to the data file to be imported;
when the data file to be imported meets the preset data import standard based on the file information, summarizing the data file to be imported according to the data import template to obtain corresponding summarized data information;
and when receiving the data import instruction, importing the summarized data 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:
reading the file size and the file format corresponding to the data file to be imported contained in the file information;
comparing the file size with a preset file size threshold value to obtain a comparison result;
judging whether the data file to be imported meets the data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold value and the file format is the standard file format, determining that the data file to be imported meets the data importing standard;
and when the comparison result is that the file size is larger than the file size threshold value or the file format is not the standard file format, determining that the data file to be imported does not meet the data importing standard.
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 comparison result shows that the file size is larger than the file size threshold, sending out first prompt information of file import abnormality, wherein the first prompt information comprises that the file size is too large;
when the file format of the data file to be imported is not the standard file format and the comparison result is that the file size is larger than the file size threshold, sending out second prompt information of file import abnormality, wherein the second prompt information comprises file format abnormality;
and when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold, converting the file format of the data file to be imported into the standard file format.
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 receiving the preview viewing instruction, identifying data object information contained in the preview viewing instruction;
acquiring associated data from a data file to be imported according to the data object information;
And summarizing and displaying according to a summarizing format associated with the data object information.
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 blockchain-based data import method, the method comprising:
when a data import starting instruction is received, analyzing the data import starting instruction to obtain identification information corresponding to the data import starting instruction;
identifying category information contained in the identification information;
inquiring and matching in a list of the record template and the category information associated information according to the category information to obtain a data import template matched with the category information;
when an input data file to be imported is received, importing the data file to be imported based on the data importing template;
when receiving an input data file to be imported, importing the data file to be imported based on the data importing template, including:
when an input data file to be imported is received, acquiring file information corresponding to the data file to be imported;
when the data file to be imported meets the preset data import standard based on the file information, summarizing the data file to be imported according to the data import template to obtain corresponding summarized data information;
when a data import instruction is received, importing the summarized data information;
When the input data file to be imported is received, after the file information corresponding to the data file to be imported is obtained, the method further comprises:
reading the file size and the file format corresponding to the data file to be imported contained in the file information;
comparing the file size with a preset file size threshold value to obtain a comparison result;
judging whether the data file to be imported meets a data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold and the file format is a standard file format, determining that the data file to be imported meets a data import standard;
and when the comparison result is that the file size is larger than the file size threshold or the file format is not in the standard file format, determining that the data file to be imported does not meet the data import standard.
2. The blockchain-based data import method of claim 1, wherein the method further comprises, after determining that the data file to be imported does not satisfy a data import standard when the comparison result is that the file size is greater than the file size threshold or the file format is not a standard file format:
When the comparison result is that the file size is larger than the file size threshold, sending out first prompt information of file import abnormality, wherein the first prompt information comprises that the file size is overlarge;
when the file format of the data file to be imported is not a standard file format and the comparison result is that the file size is larger than the file size threshold, sending second prompt information of file import abnormality, wherein the second prompt information comprises file format abnormality;
and when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold, converting the file format of the data file to be imported into the standard file format.
3. The blockchain-based data import method of claim 1, wherein when the to-be-imported data file is judged to meet a preset data import standard based on the file information, after summarizing the to-be-imported data file according to the data import template, the method further comprises:
when receiving a preview viewing instruction, identifying data object information contained in the preview viewing instruction;
Acquiring associated data from the data file to be imported according to the data object information;
and summarizing and displaying according to the summarizing format associated with the data object information.
4. A blockchain-based data importing device, wherein the blockchain-based data importing device comprises:
the instruction receiving module is used for analyzing the data import starting instruction to obtain the identification information corresponding to the data import starting instruction when receiving the data import starting instruction;
the category identification module is used for identifying category information corresponding to the identification information;
the template acquisition module is used for carrying out query matching in a list of the record template and the category information association information according to the category information to obtain a data import template matched with the category information;
the data importing module is used for importing the data file to be imported based on the data importing template when receiving the input data file to be imported;
the data importing module comprises:
the information acquisition unit is used for acquiring file information corresponding to an input data file to be imported when the input data file to be imported is received;
The data summarizing unit is used for summarizing the data files to be imported according to the data importing templates when judging that the data files to be imported meet preset data importing standards based on the file information;
the data importing unit is used for importing the data file to be imported when receiving a data importing instruction;
the blockchain-based data importing device further includes:
the file reading module is used for reading the file size and the file format corresponding to the data file to be imported contained in the file information;
the information comparison module is used for comparing the file size with a preset file size threshold value to obtain a comparison result;
the result determining module is used for judging whether the data file to be imported meets the data importing standard or not based on the file format and the comparison result; wherein, the liquid crystal display device comprises a liquid crystal display device,
when the comparison result is that the file size is smaller than the file size threshold and the file format is a standard file format, determining that the data file to be imported meets a data import standard;
and when the comparison result is that the file size is larger than the file size threshold or the file format is not in the standard file format, determining that the data file to be imported does not meet the data import standard.
5. The blockchain-based data importing device of claim 4, further comprising:
the first information prompt module is used for sending out first prompt information of file import abnormality when the comparison result is that the file size is larger than the file size threshold, wherein the first prompt information comprises the file size which is overlarge;
the second information prompt module is used for sending out second prompt information of file import abnormality when the file format of the data file to be imported is not a standard file format and the comparison result is that the file size is larger than the file size threshold, wherein the second prompt information comprises file format abnormality;
and the file format conversion module is used for converting the file format of the data file to be imported into the standard file format when the file format of the data file to be imported is not the standard file format and the file size is smaller than or equal to the file size threshold value.
6. The blockchain-based data importing device of claim 4, wherein the instruction receiving module is further configured to identify data object information included in the preview viewing instruction when the preview viewing instruction is received;
The blockchain-based data importing device further includes:
the data acquisition module is used for acquiring associated data from the data file to be imported according to the data object information;
and the data display module is used for summarizing and displaying according to the summarizing format associated with the data object information.
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 import method of any of claims 1 to 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 import method of any of claims 1 to 3.
CN201910665687.3A 2019-07-23 2019-07-23 Data importing method, device, computer equipment and storage medium Active CN110502557B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910665687.3A CN110502557B (en) 2019-07-23 2019-07-23 Data importing method, device, computer equipment and storage medium
PCT/CN2020/099417 WO2021012910A1 (en) 2019-07-23 2020-06-30 Data import method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910665687.3A CN110502557B (en) 2019-07-23 2019-07-23 Data importing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110502557A CN110502557A (en) 2019-11-26
CN110502557B true CN110502557B (en) 2023-07-21

Family

ID=68586744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910665687.3A Active CN110502557B (en) 2019-07-23 2019-07-23 Data importing method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110502557B (en)
WO (1) WO2021012910A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502557B (en) * 2019-07-23 2023-07-21 平安科技(深圳)有限公司 Data importing method, device, computer equipment and storage medium
CN112035412A (en) * 2020-08-31 2020-12-04 北京奇虎鸿腾科技有限公司 Data file importing method, device, storage medium and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8023142B2 (en) * 2004-07-13 2011-09-20 International Business Machines Corporation System, method and program product for electronically filing documents
US20170124497A1 (en) * 2015-10-28 2017-05-04 Fractal Industries, Inc. System for automated capture and analysis of business information for reliable business venture outcome prediction
US10311076B1 (en) * 2016-10-26 2019-06-04 Open Invention Network, Llc Automated file acquisition, identification, extraction and transformation
CN107436917A (en) * 2017-06-16 2017-12-05 浙江百世技术有限公司 One kind imports template configuration method, batch data introduction method and system
CN109741192A (en) * 2018-11-15 2019-05-10 深圳壹账通智能科技有限公司 Date storage method, device, equipment and readable storage medium storing program for executing based on block chain
CN109783572A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 Block chain multichain creation method, device, equipment and storage medium
CN110502557B (en) * 2019-07-23 2023-07-21 平安科技(深圳)有限公司 Data importing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
WO2021012910A1 (en) 2021-01-28
CN110502557A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN109726103B (en) Test report generation method, device, equipment and storage medium
CN109508352B (en) Report data output method, device, equipment and storage medium
CN111342992B (en) Method and system for processing equipment information change record
CN110502557B (en) Data importing method, device, computer equipment and storage medium
CN109657216B (en) Contract generation method, device, equipment and storage medium
CN110633198A (en) Block chain-based software test data storage method and system
CN110502558B (en) Data export method, device, computer equipment and storage medium
CN111782492A (en) Page first screen loading duration testing method and device, computer equipment and medium
CN112256318B (en) Construction method and equipment for dependent product
CN109062807B (en) Method and device for testing application program, storage medium and electronic device
CN109670091A (en) A kind of metadata intelligent maintenance method and apparatus based on data standard
CN111338693A (en) Target file generation method based on model construction, server and storage medium
CN105653674B (en) File management method and system of intelligent terminal
WO2019085591A1 (en) Intelligent hardware device, intelligent disk data processing method, and storage medium
CN111400289B (en) Intelligent user classification method, server and storage medium
CN113242254B (en) Communication message processing method, device, terminal equipment and storage medium
CN114968696A (en) Index monitoring method, electronic equipment and chip system
CN111343502A (en) Video processing method, electronic device and computer readable storage medium
CN111382306B (en) Method and device for inquiring video frame
CN107766233B (en) Management method for test authentication, intelligent terminal and device with storage function
CN112308172B (en) Identification method and device and electronic equipment
CN111898640B (en) Method and device for pushing pictures by analog snapshot machine, test system and electronic equipment
CN116225338B (en) Data processing method and device based on time sequence information and storage information
CN110837458B (en) Method, equipment and storage medium for data balance verification
CN114968455B (en) Report generation method and device of application interface and electronic equipment

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