CN110209714A - Report form generation method, device, computer equipment and computer readable storage medium - Google Patents
Report form generation method, device, computer equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN110209714A CN110209714A CN201910319430.2A CN201910319430A CN110209714A CN 110209714 A CN110209714 A CN 110209714A CN 201910319430 A CN201910319430 A CN 201910319430A CN 110209714 A CN110209714 A CN 110209714A
- Authority
- CN
- China
- Prior art keywords
- data
- report
- target
- block
- block chain
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of report form generation method, device, computer equipment and computer readable storage mediums, it is related to Internet technical field, target data can be extracted in block chain according to Data Identification, and target data is organized into data sheet according to default report template, data sheet also is stored in block chain, data are made to be all based on block chain with data sheet to store, utilize the decentralization of block chain, while guaranteeing that data are not tampered, the accuracy for also assuring data sheet, enhances safety.The described method includes: extracting target data in block chain when receiving report generation request;Target report template is extracted in multiple report templates;The subtitle of data group is compared with project name, by the position of subdata filling and the consistent project name instruction of subtitle, generates data sheet;Multiple subtitles are extracted, using multiple subtitles as report mark, and are stored report mark is corresponding with data sheet into block chain.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of report form generation method, device, computer equipment and
Computer readable storage medium.
Background technique
With the rapid development of Internet technology, in order to meet the daily demand to data sheet of enterprise, big data fortune
Platform is calculated to come into being.Data sheet is the tool table for superior and external agency's report request, is generallyd use
The formats such as table, chart show all data.Big data operation platform storing data is typically based in enterprise, and by big data
Operation platform carries out operation to the data of storage, generates operation result, according to the operation result of generation, generates such as living using day
The data sheet of jump amount report, product clicking rate report and product trading volume report etc..
In the related technology, big data operation platform generallys use MongoDB (Mongo Data in storing data
Base, distribution type file storing data library) the either traditional databases such as Mysql (Relational DBMS) store number
According to, and the data sheet generated based on traditional database storage.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
There is the risk being tampered in traditional database, in this way, what big data operation platform was generated according to the data being tampered
Data sheet inaccuracy, safety are poor.
Summary of the invention
In view of this, the present invention provides a kind of report form generation method, device, computer equipment and computer-readable storages
Medium, main purpose are to solve the data sheet inaccuracy that current big data operation platform is generated according to the data being tampered,
The poor problem of safety.
According to the present invention in a first aspect, providing a kind of report form generation method, this method comprises:
When receiving report generation request, according to the Data Identification that report generation request carries, in block chain
Extract the target data of Data Identification instruction, the target data includes multiple data groups, every in the multiple data group
A data group is made of subtitle and subdata;
Multiple report templates are obtained, the corresponding target report mould of the Data Identification is extracted in the multiple report template
Plate includes multiple project names in the target report template;
For any data group in the multiple data group, by the subtitle of the data group and the multiple entry name
Title is compared, and by the position of subdata filling and the consistent project name instruction of the subtitle, generates data sheet;
The multiple subtitle is extracted in data sheet, using the multiple subtitle as report mark, and will be described
Report mark is corresponding with the data sheet to be stored into the block chain.
In another embodiment, when receiving report generation request, according to the number of report generation request carrying
According to mark, before the target data that the Data Identification instruction is extracted in block chain, comprising:
The target data for receiving user's transmission, extracts the keyword in the target data as the target data
Data Identification;
It stores the Data Identification is corresponding with the target data into the block chain, and the Data Identification is returned
Back to the user.
In another embodiment, described to store the Data Identification is corresponding with the target data to the block chain
In, and the Data Identification is returned into the user, comprising:
The last one block for determining presently described block chain, in the last one described block extract head feature value and
Body feature value;
The object feature value for calculating the target data, by the object feature value, the body feature value, the target
Data and the Data Identification are packaged, and generate target block main body;
Using the head feature value as target block head, by the target block head and the target block main body
It is combined, generates target block in the block chain;
The Data Identification is returned into the user.
In another embodiment, described when receiving report generation request, it requests to carry according to the report generation
Data Identification, the target data of Data Identification instruction is extracted in block chain, comprising:
When receiving report generation request, the report generation is requested to carry out reading data, in the report
It generates in request and extracts Data Identification;
It identifies based on the data, the Data Identification that at least one block includes is read in the block chain, described
The target block including the Data Identification is determined at least one block;
Data extraction is carried out to the target block, the target data is obtained in the target block.
In another embodiment, described that the multiple subtitle is extracted in data sheet, by the multiple subtitle
As report mark, and by the report mark is corresponding with the data sheet store into the block chain after, the side
Method further include:
The last one block for determining presently described block chain, in the last one described block extract head feature value and
Body feature value;
The report characteristic value for calculating the data sheet, by the report characteristic value, the body feature value, the data
Report and the report mark are packaged, and generate report band block main body;
Using the head feature value as report band block header, by the report band block header and the report band block main body
It is combined, report block is generated in the block chain;
The report mark is returned into user;
The whole nodes for including in the storage system where the block chain are determined, by the report mark and the data
Report is broadcasted to whole nodes.
In another embodiment, the method also includes:
When receiving data modification request, reading data is carried out to the data modification request, in the data modification
Data to be modified are extracted in request;
Extract to be modified Data Identification of the keyword of the data to be modified as the data to be modified;
Store the Data Identification to be modified is corresponding with the data to be modified into the block chain, and will it is described to
Modification Data Identification returns to user;
At least one node for including in the storage system where the block chain is determined, by the Data Identification to be modified
With the data broadcasting to be modified at least one described node.
Second aspect according to the present invention provides a kind of report generation device, which includes:
First extraction module, the number for being carried according to report generation request when receiving report generation request
According to mark, the target data of the Data Identification instruction is extracted in block chain, the target data includes multiple data groups, institute
Each data group in multiple data groups is stated to be made of subtitle and subdata;
It obtains module and extracts the Data Identification pair in the multiple report template for obtaining multiple report templates
The target report template answered includes multiple project names in the target report template;
Sorting module, for for any data group in the multiple data group, by the subtitle of the data group with
The multiple project name is compared, by the position of subdata filling and the consistent project name instruction of the subtitle
It sets, generates data sheet;
First memory module, for extracting the multiple subtitle in data sheet, using the multiple subtitle as
Report mark, and store the report mark is corresponding with the data sheet into the block chain.
In another embodiment, described device includes:
First receiving module receives the target data of user's transmission, and the keyword extracted in the target data is made
For the Data Identification of the target data;
Second memory module, for storing the Data Identification is corresponding with the target data into the block chain,
And the Data Identification is returned into the user.
In another embodiment, second memory module, comprising:
Extraction unit mentions in the last one described block for determining the last one block of presently described block chain
Take head feature value and body feature value;
Packaged unit, it is for calculating the object feature value of the target data, the object feature value, the main body is special
Value indicative, the target data and the Data Identification are packaged, and generate target block main body;
Assembled unit is used for using the head feature value as target block head, by the target block head and institute
It states target block main body to be combined, generates target block in the block chain;
Return unit, for the Data Identification to be returned to the user.
In another embodiment, first extraction module, comprising:
Reading unit, for requesting the report generation to carry out data reading when receiving report generation request
It takes, extracts Data Identification in report generation request;
Determination unit reads the number that at least one block includes for identifying based on the data in the block chain
According to mark, the target block including the Data Identification is determined at least one described block;
Extraction unit obtains the target for carrying out data extraction to the target block in the target block
Data.
In another embodiment, described device further include:
Second extraction module, for determining the last one block of presently described block chain, in the last one described block
Middle extraction head feature value and body feature value;
Packetization module, it is for calculating the report characteristic value of the data sheet, the report characteristic value, the main body is special
Value indicative, the data sheet and the report mark are packaged, and generate report band block main body;
Composite module is used for using the head feature value as report band block header, by the report band block header and institute
It states report band block main body to be combined, report block is generated in the block chain;
Return module, for the report mark to be returned to user;
First broadcast module will be described for determining the whole nodes for including in the storage system where the block chain
Report mark and the data sheet are broadcasted to whole nodes.
In another embodiment, described device further include:
Second receiving module, for carrying out data reading to the data modification request when receiving data modification request
It takes, data to be modified is extracted in the data modification request;
Third extraction module, for extracting the keyword of the data to be modified as the to be modified of the data to be modified
Data Identification;
Third memory module, for storing the Data Identification to be modified is corresponding with the data to be modified to the area
In block chain, and the Data Identification to be modified is returned into user;
Second broadcast module will for determining at least one node for including in the storage system where the block chain
The Data Identification to be modified and the data broadcasting to be modified at least one described node.
The third aspect according to the present invention provides a kind of computer equipment, including memory and processor, the memory
It is stored with computer program, which is characterized in that the processor realizes above-mentioned first aspect institute when executing the computer program
The step of stating method.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, is stored thereon with computer program,
It is characterized in that, the computer program realizes the step of method described in above-mentioned first aspect when being executed by processor.
By above-mentioned technical proposal, a kind of report form generation method, device, computer equipment and computer provided by the invention
Readable storage medium storing program for executing, compared at present using traditional database storing data by the way of, the present invention requests to take according to report generation
The Data Identification of band extracts target data in block chain, and target data is organized into datagram according to default report template
Data sheet also is stored in block chain by table, so that data are all based on block chain with data sheet to store, utilizes block chain
Decentralization, while guaranteeing that data are not tampered, it is ensured that the accuracy of data sheet enhances safety.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of report form generation method flow diagram provided in an embodiment of the present invention;
Fig. 2 shows a kind of report form generation method flow diagrams provided in an embodiment of the present invention;
Fig. 3 A shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 3 B shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 3 C shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 3 D shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 3 E shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 3 F shows a kind of structural schematic diagram of report generation device provided in an embodiment of the present invention;
Fig. 4 shows a kind of apparatus structure schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of report form generation methods, can request the Data Identification carried according to report generation
Target data is extracted in block chain, and target data is organized into data sheet according to default report template, by data sheet
It also is stored in block chain, so that data with data sheet are all based on block chain to store, using the decentralization of block chain,
Guarantee data while be not tampered, it is ensured that the accuracy of data sheet has achieved the purpose that enhance safety, such as Fig. 1
It is shown, this method comprises:
101, when receiving report generation request, according to the Data Identification that report generation request carries, in block chain
The target data of Data Identification instruction is extracted, target data includes multiple data groups, and each data group is by son in multiple data groups
Title and subdata composition.
102, multiple report templates are obtained, the corresponding target report template of Data Identification is extracted in multiple report templates,
It include multiple project names in target report template.
103, for any data group in multiple data groups, the subtitle of data group and multiple project names are compared
It is right, by the position of subdata filling and the consistent project name instruction of subtitle, generate data sheet.
104, multiple subtitles are extracted in data sheet, using multiple subtitles as report mark, and by report mark
It is corresponding with data sheet to store into block chain.
Method provided by the invention extracts number of targets in block chain according to the Data Identification that report generation request carries
According to, and target data is organized into data sheet according to default report template, data sheet also is stored in block chain, so that
Data are all based on block chain with data sheet to store, and using the decentralization of block chain, are guaranteeing that it is same that data are not tampered
When, it is ensured that the accuracy of data sheet enhances safety.
The embodiment of the invention provides a kind of report form generation methods, can request the Data Identification carried according to report generation
Target data is extracted in block chain, and target data is organized into data sheet according to default report template, by data sheet
It also is stored in block chain, so that data with data sheet are all based on block chain to store, using the decentralization of block chain,
Guarantee data while be not tampered, it is ensured that the accuracy of data sheet has achieved the purpose that enhance safety, such as Fig. 2
It is shown, this method comprises:
201, the target data of user's transmission is received, data mark of the keyword in target data as target data is extracted
Know, stores Data Identification is corresponding with target data into block chain, and Data Identification is returned into user.
In embodiments of the present invention, it was recognized by the inventor that carrying out the storage of data using traditional database is that there are numbers
It is difficult to be found according to the behavior of the risk being tampered, and this altered data, leads to the data stored in database not
Accurately, and then the subsequent data sheet generated according to data is also inaccuracy.In order to improve the safety of database, avoid counting
According to being tampered, the daily data received are stored using block chain in the present invention, using the characteristic of block chain decentralization, are come
Improve safety when data storage.Block chain is made of multiple blocks, and originating includes block in block (namely first block)
Head and block main body originate next block of block with original block as father's block, equally include block head and block in next block
Main body, and the block head related data of father's block can be stored in block main body, and so on, so that in block chain in each block
The block data of storage, which exists with the block data stored in father's block, to be associated with, and ensure that the safety that information is inputted in block
Property, avoid the data in block from being tampered.
In view of the data volume of storing data in block chain is larger, a large amount of progress data storage is likely to will be different
Data obfuscation, in order to which the mass data stored in block chain is distinguished, so as to subsequent when user requests to generate data sheet,
It can determine that user specifically wishes which data to generate data sheet according to, it is raw for target data when receiving target data
It at the Data Identification for being only used for instruction target data, is stored in target data is corresponding with Data Identification in block chain, reality
The now differentiation based on Data Identification to data.Wherein, it when generating the Data Identification of target data, can be mentioned in target data
Data Identification of the keyword as the target data is taken, or the topic of target data can be extracted as Data Identification.For example,
Assuming that target data is the Workload Account of employee in company, the entitled Workload Account of target data then can be by " workload
Data Identification of the statistics " as the target data.During practical application, it is contemplated that the topic of many target datas and
Keyword may be all consistent, and therefore, when generating Data Identification, can also be determined the time for receiving target data, be adopted
The Data Identification of target data is generated with the mode of " time+keyword/topic ".Continue by taking above-mentioned example as an example, it is assumed that receive
Into company, the time of the target data of the Workload Account of employee is on December 25th, 2018, then the data mark of the target data
Knowledge can be " 2018.12.25+ Workload Account ".The embodiment of the present invention is to the mode of generation Data Identification without specifically limiting.
After generating the Data Identification of target data, it can store the target data is corresponding with Data Identification to area
In block chain.It specifically, can be by the way of generating new block in block chain when storing target data and Data Identification
To store.Due to be between each block there are associated, when generating block, firstly, determining current block chain
The last one block extracts head feature value and body feature value in the last one block;Then, the mesh of target data is calculated
Characteristic value is marked, object feature value, body feature value, target data and Data Identification are packaged, generates target block main body.Its
In, when calculating the object feature value of target data, Hash calculation can be carried out to target data using hash algorithm, thus
To object feature value.Finally, using head feature value as target block head, by target block head and target block main body into
Row combination, generates target block, and add target block into block chain.
Furthermore, it is contemplated that there is also remaining memory spaces for some blocks in block chain, there are residual memory spaces for these
Block can store target data, therefore, can first in block chain statistics there are each areas of residual memory space
The idle storage space of block, and idle storage space is chosen greater than the block of the data volume of target data to store target data.
If there is do not have in the block of residual memory space idle storage space be greater than target data data volume block, then
Storage of the target data in block chain is realized to generate a new block based on the target data and Data Identification.
It should be noted that after completing the storage of target data, in order to guarantee block chain institute each section in systems
The consistency of data in point needs target data and Data Identification being synchronized to other nodes, so as to other nodes by itself
Data in block chain are updated.
202, when receiving report generation request, report generation is requested to carry out reading data, is requested in report generation
Middle extraction Data Identification.
In embodiments of the present invention, it when receiving report generation request, is all deposited by generating the data that report is relied on
Storage in block chain, and in block chain the data volume of storing data be it is huge, generated to clearly be specifically based on which data
Required data sheet is requested in report generation, can carry Data Identification in report generation request, in this way, raw when receiving report
When at request, just needs that the report generation is requested to carry out reading data, extract Data Identification in report generation request, with
Just in the subsequent extraction for carrying out data based on the Data Identification, and then data sheet is generated according to the data extracted.
Wherein, since the Data Identification carried in report generation request can be to return after the storage of completion data in step 201
Back to the Data Identification of user, it is also possible to the Data Identification for being used to extract single data that user voluntarily provides.For example, data
Mark, which can be using A, employee B, or also, to be the mark of time form.
203, it is based on Data Identification, the Data Identification that at least one block includes is read in block chain, at least one
The target block including the Data Identification is determined in block, and data extraction is carried out to target block, is obtained in target block
Target data.
In embodiments of the present invention, after extracting Data Identification, due to being all to use when storing target data every time
Storage is marked in Data Identification, therefore, can be based on the Data Identification, it is raw that this data sheet is extracted in block chain
The data for needing to rely on during.In particular it is required that first reading each block packet at least one block in block chain
The Data Identification included;Then, at least one block determination include the Data Identification block as target block, in mesh
The corresponding data of the Data Identification are extracted in mark block as target data, and then are realized and obtained number of targets in target block
According to.
Wherein, if Data Identification is the form of such as " Workload Account ", the Data Identification can be directly acquired and referred to
The whole statistical results shown are as target data;If Data Identification is such as " applying A ", " employee B " that user voluntarily provides
Form, then directly acquire using A, employee B total data as target data;Or if Data Identification is the time
The mark of form, for example, on April 5th, 2018, in this way, directly acquiring block chain when extracting target data according to Data Identification
The total data about on April 5th, 2018 of middle storage is as target data;Or if Data Identification be title+when
Between form mark, for example, using A+2018 April 5, in this way, directly being obtained when extracting target data according to Data Identification
Take stored in block chain about application A on April 5th, 2018 total data as target data.The present invention is implemented
Example is to the concrete form of Data Identification without limiting.
204, multiple report templates are obtained, the corresponding target report template of Data Identification is extracted in multiple report templates,
For any data group in multiple data groups, the subtitle of data group is compared with multiple project names, by subdata
The position of filling and the consistent project name instruction of subtitle, generates data sheet.
In embodiments of the present invention, after getting target data, data sheet can be generated according to target data.By
There is format in data sheet, all usually in order to guarantee that the data sheet generated meets format, the data embodied in data sheet
It is unlikely to chaotic, multiple report templates can be set, and determine suitable report template according to target data, and then according to the report
Each item data of target data is inserted to this and is preset in report template, to generate data sheet by the instruction of table template.Separately
Outside, it can also voluntarily be selected to need template to be applied by user, and provide template customized service, make user can customized mould
Plate.
Include multiple data groups in target data due to being, can respectively by the subtitle of data group with it is multiple
Project name is compared, and by the position of subdata filling and the consistent project name instruction of subtitle, and then generates datagram
Table.For example, set in target data including data group subtitle as " name ", then by the corresponding subdata of subtitle " name "
It is filled into the position of project in target report template entitled " name " instruction.
During practical application, it may be mesh that report generation request, which needs data included by the data sheet generated,
At this moment the operation result that mark data obtain after series of computation just needs first to carry out operation to target data, generates operation
As a result, and be based on target report template, operation result is arranged, generate data sheet.For example, if necessary to the number generated
According to the average access amount that data included by report are using A every month, then the amount of access using A in every day is being got
Afterwards, the average access amount for applying A every month is calculated separately, and is based on target report template, the average access of A is applied to every month
Amount is arranged, and data sheet is generated.
205, multiple subtitles are extracted in data sheet, using multiple subtitles as report mark, and by report mark
It is corresponding with data sheet to store into block chain.
In embodiments of the present invention, after generating data sheet, in order to obtain user directly in block chain
To data sheet, data sheet can be stored in block chain.Wherein, it is contemplated that the subtitle for including in multiple data sheets
Quantity and subtitle content be difficult it is completely the same, be have it is monistic, therefore, can be using multiple subtitles as report
Mark realizes the differentiation to data sheet.For example, setting the multiple subtitles for including in data sheet is respectively " name ", " work
It is " name+workload+month ", the embodiment of the present invention pair that amount " and " month ", which then can be the report mark of data sheet setting,
Determine the method for report mark without specifically limiting.
It, can be by report mark storage corresponding with data sheet after getting the report mark of data sheet.Its
In, it will be corresponding with target data by Data Identification in the process of report mark storage corresponding with data sheet and above-mentioned steps 201
The process of storage is consistent, is no longer repeated herein.
206, report mark is returned into user, determines at least one section for including in the storage system where block chain
Point broadcasts report mark and data sheet at least one node.
In embodiments of the present invention, after completing the generation of data sheet, in order to guarantee storage system where block chain
In in each node data consistency, it is thus necessary to determine that at least one node for including in the storage system where block chain, will
Report mark and data sheet are broadcasted at least one node, so that other nodes carry out the data in itself block chain more
Newly, so that user is based on, which of storage system node is available to arrive the data sheet, without carrying out data again
The transmission of report.
Furthermore, it is contemplated that not only storing a large amount of data in block chain, a large amount of data sheet is also stored, in order to make
User is subsequent can to inquire data sheet in block chain, need the report mark of generation returning to user, after user
The continuous inquiry that data sheet can be carried out based on the report mark.
It should be noted that two block chains, respectively data block chain and report block can be set in storage system
Chain, and the target data received is stored based on data block chain, the data sheet of generation is stored based on report block chain;
Or a block chain can also be set, target data and data sheet are stored in a block chain.The present invention is implemented
Whether example is stored in same block chain without specifically limiting target data and data sheet.
During practical application, user be exist the data in block chain are modified it is possible, in this way, just
Data modification request can be received.When receiving data modification request, since number to be modified can be carried in data modification request
According to therefore, firstly, extracting data to be modified in data modification request to data modification request progress reading data.In order to subtract
Workload when light data modification avoids the data that inquiry needs are modified for a long time in block chain, can be directly to be repaired by this
Change data to be stored according to normal processes, the modification process in initial data is omitted, in this way, then needing to extract to be repaired
Change to be modified Data Identification of the keyword as data to be modified of data, and by Data Identification to be modified and data pair to be modified
It should store into block chain, at least one node for including in the storage system where block chain be determined, by data mark to be modified
Know with data broadcasting to be modified at least one node, and Data Identification to be modified returned into user, so as to user is subsequent can
To inquire the data of this modification based on the Data Identification to be modified.
Method provided by the invention extracts number of targets in block chain according to the Data Identification that report generation request carries
According to, and target data is organized into data sheet according to default report template, data sheet also is stored in block chain, so that
Data are all based on block chain with data sheet to store, and using the decentralization of block chain, are guaranteeing that it is same that data are not tampered
When, it is ensured that the accuracy of data sheet enhances safety.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of report generation dresses
It sets, as shown in Figure 3A, described device includes: the first extraction module 301, obtains module 302, sorting module 303 and the first storage
Module 304.
First extraction module 301, for requesting to carry according to the report generation when receiving report generation request
Data Identification, the target data of Data Identification instruction is extracted in block chain, the target data includes multiple data
Group, each data group is made of subtitle and subdata in the multiple data group;
The acquisition module 302 extracts the data mark for obtaining multiple report templates in the multiple report template
Know corresponding target report template, includes multiple project names in the target report template;
The sorting module 303, for for any data group in the multiple data group, the son of the data group to be marked
Topic is compared with the multiple project name, by subdata filling and the consistent project name instruction of the subtitle
Position generates data sheet;
First memory module 304, for extracting the multiple subtitle in data sheet, by the multiple subtitle
It stores as report mark, and by the report mark is corresponding with the data sheet into the block chain.
In specific application scenarios, as shown in Figure 3B, which includes: the first receiving module 305 and the second storage mould
Block 306.
First receiving module 305 extracts in the target data for receiving the target data of user's transmission
Data Identification of the keyword as the target data;
Second memory module 306, for storing the Data Identification is corresponding with the target data to the block
In chain, and the Data Identification is returned into the user.
In specific application scenarios, as shown in Figure 3 C, second memory module 306, comprising: extraction unit 3061 is beaten
Packet unit 3062, assembled unit 3063 and adding unit 3064.
The extraction unit 3061, for determining the last one block of presently described block chain, in the last one described area
Head feature value and body feature value are extracted in block;
The packaged unit 3062, for calculating the object feature value of the target data, by the object feature value, described
Body feature value, the target data and the Data Identification are packaged, and generate target block main body;
The assembled unit 3063 is used for using the head feature value as target block head, by the target area build
Portion is combined with the target block main body, generates target block in the block chain;
The adding unit 3064, for the Data Identification to be returned to the user.
In specific application scenarios, as shown in Figure 3D, first extraction module 301, comprising: reading unit 3011, really
Order member 3012 and extraction unit 3013.
The reading unit 3011, for requesting to carry out to the report generation when receiving report generation request
Reading data extracts Data Identification in report generation request;
The determination unit 3012 reads at least one block packet for identifying based on the data in the block chain
The Data Identification included determines the target block including the Data Identification at least one described block;
The extraction unit 3013 obtains institute for carrying out data extraction to the target block in the target block
State target data.
In specific application scenarios, as shown in FIGURE 3 E, the device further include: the second extraction module 307, packetization module
308, composite module 309, return module 310 and the first broadcast module 311.
Second extraction module 307, for determining the last one block of presently described block chain, it is described the last one
Head feature value and body feature value are extracted in block;
The packetization module 308, for calculating the report characteristic value of the data sheet, by the report characteristic value, described
Body feature value, the data sheet and the report mark are packaged, and generate report band block main body;
The composite module 309 is used for using the head feature value as report band block header, by the report band block header
It is combined with the report band block main body, report block is generated in the block chain;
The return module 310, for the report mark to be returned to user;
First broadcast module 311 will for determining the whole nodes for including in the storage system where the block chain
The report mark and the data sheet are broadcasted to whole nodes.
In specific application scenarios, as illustrated in Figure 3 F, the device further include: the second receiving module 312, second extracts mould
Block 313, third memory module 314 and the second broadcast module 315.
Second receiving module 312, for being counted to the data modification request when receiving data modification request
According to reading, data to be modified are extracted in the data modification request;
The third extraction module 313, for extracting the keyword of the data to be modified as the data to be modified
Data Identification to be modified;
The third memory module 314, for by the Data Identification to be modified it is corresponding with the data to be modified store to
In the block chain, and the Data Identification to be modified is returned into user;
Second broadcast module 315, for determining at least one section for including in the storage system where the block chain
Point, by the Data Identification to be modified and the data broadcasting to be modified at least one described node.
Device provided in an embodiment of the present invention extracts mesh in block chain according to the Data Identification that report generation request carries
Data are marked, and target data is organized into data sheet according to default report template, data sheet also is stored in block chain,
So that data are all based on block chain with data sheet to store, using the decentralization of block chain, it is not tampered in guarantee data
While, it is ensured that the accuracy of data sheet enhances safety.
It should be noted that other of each functional unit involved by a kind of report generation device provided in an embodiment of the present invention
Corresponding description, can be with reference to the corresponding description in Fig. 1 and Fig. 2, and details are not described herein.
In the exemplary embodiment, referring to fig. 4, a kind of equipment is additionally provided, which includes communication bus, processing
Device, memory and communication interface, can also include, input/output interface and display equipment, wherein can between each functional unit
To complete mutual communication by bus.The memory is stored with computer program, processor, for executing institute on memory
The program of storage executes the report form generation method in above-described embodiment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
The step of report form generation method is realized when row.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into
Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene
In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben
What the technical staff in field can think variation should all fall into the protection scope of the application.
Claims (10)
1. a kind of report form generation method characterized by comprising
When receiving report generation request, according to the Data Identification that report generation request carries, extracted in block chain
The target data of the Data Identification instruction, the target data includes multiple data groups, every number in the multiple data group
It is made of according to group subtitle and subdata;
Multiple report templates are obtained, the corresponding target report template of the Data Identification is extracted in the multiple report template,
It include multiple project names in the target report template;
For any data group in the multiple data group, by the subtitle of the data group and the multiple project name into
Row compares, and by the position of subdata filling and the consistent project name instruction of the subtitle, generates data sheet;
The multiple subtitle is extracted in data sheet, using the multiple subtitle as report mark, and by the report
Identify store into the block chain corresponding with the data sheet.
2. the method according to claim 1, wherein it is described when receive report generation request when, according to described
The Data Identification carried is requested in report generation, before the target data that the Data Identification instruction is extracted in block chain, comprising:
The target data for receiving user's transmission, extracts number of the keyword as the target data in the target data
According to mark;
It stores the Data Identification is corresponding with the target data into the block chain, and the Data Identification is returned to
The user.
3. according to the method described in claim 2, it is characterized in that, described that the Data Identification is corresponding with the target data
It stores into the block chain, and the Data Identification is returned into the user, comprising:
The last one block for determining presently described block chain extracts head feature value and main body in the last one described block
Characteristic value;
The object feature value for calculating the target data, by the object feature value, the body feature value, the target data
And the Data Identification is packaged, and generates target block main body;
Using the head feature value as target block head, the target block head and the target block main body are carried out
Combination, generates target block in the block chain;
The Data Identification is returned into the user.
4. the method according to claim 1, wherein it is described when receive report generation request when, according to described
The Data Identification that report generation request carries extracts the target data of the Data Identification instruction in block chain, comprising:
When receiving report generation request, the report generation is requested to carry out reading data, in the report generation
Data Identification is extracted in request;
Identify based on the data, the Data Identification that at least one block includes read in the block chain, it is described at least
The target block including the Data Identification is determined in one block;
Data extraction is carried out to the target block, the target data is obtained in the target block.
5. the method according to claim 1, wherein described extract the multiple subtitle in data sheet,
Using the multiple subtitle as report mark, and store the report mark is corresponding with the data sheet to the block
After in chain, the method also includes:
The last one block for determining presently described block chain extracts head feature value and main body in the last one described block
Characteristic value;
The report characteristic value for calculating the data sheet, by the report characteristic value, the body feature value, the data sheet
And the report mark is packaged, and generates report band block main body;
Using the head feature value as report band block header, the report band block header and the report band block main body are carried out
Combination generates report block in the block chain;
The report mark is returned into user;
The whole nodes for including in the storage system where the block chain are determined, by the report mark and the data sheet
It broadcasts to whole nodes.
6. the method according to claim 1, wherein the method also includes:
When receiving data modification request, reading data is carried out to the data modification request, in the data modification request
It is middle to extract data to be modified;
Extract to be modified Data Identification of the keyword of the data to be modified as the data to be modified;
It stores the Data Identification to be modified is corresponding with the data to be modified into the block chain, and will be described to be modified
Data Identification returns to user;
At least one node for including in the storage system where the block chain is determined, by the Data Identification to be modified and institute
Data broadcasting to be modified is stated at least one described node.
7. a kind of report generation device characterized by comprising
First extraction module, the data mark for being carried according to report generation request when receiving report generation request
Know, the target data of the Data Identification instruction is extracted in block chain, the target data includes multiple data groups, described more
Each data group is made of subtitle and subdata in a data group;
It obtains module and it is corresponding to extract the Data Identification in the multiple report template for obtaining multiple report templates
Target report template includes multiple project names in the target report template;
Sorting module, for for any data group in the multiple data group, by the subtitle of the data group with it is described
Multiple project names are compared, raw by the position of subdata filling and the consistent project name instruction of the subtitle
At data sheet;
First memory module, for extracting the multiple subtitle in data sheet, using the multiple subtitle as report
Mark, and store the report mark is corresponding with the data sheet into the block chain.
8. device according to claim 7, which is characterized in that described device includes:
First receiving module receives the target data of user's transmission, extracts the keyword in the target data as institute
State the Data Identification of target data;
Second memory module, for storing the Data Identification is corresponding with the target data into the block chain, and will
The Data Identification returns to the user.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910319430.2A CN110209714A (en) | 2019-04-19 | 2019-04-19 | Report form generation method, device, computer equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910319430.2A CN110209714A (en) | 2019-04-19 | 2019-04-19 | Report form generation method, device, computer equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209714A true CN110209714A (en) | 2019-09-06 |
Family
ID=67786023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910319430.2A Pending CN110209714A (en) | 2019-04-19 | 2019-04-19 | Report form generation method, device, computer equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209714A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765750A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Report data entry method and terminal equipment |
CN111859882A (en) * | 2020-07-30 | 2020-10-30 | 深圳市元征科技股份有限公司 | Report generation method, system, equipment and readable storage medium |
CN111953779A (en) * | 2020-08-13 | 2020-11-17 | 拉扎斯网络科技(上海)有限公司 | Data transmission method and device, computer equipment and computer readable storage medium |
CN113297849A (en) * | 2021-05-17 | 2021-08-24 | 济南森维网络科技有限公司 | Financial pre-proposed charge management method based on block chain technology |
CN114676190A (en) * | 2022-05-27 | 2022-06-28 | 太平金融科技服务(上海)有限公司深圳分公司 | Data display method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699618A (en) * | 2013-12-16 | 2014-04-02 | 广东威创视讯科技股份有限公司 | Data report generation method and system |
CN107194666A (en) * | 2017-05-19 | 2017-09-22 | 中链科技有限公司 | Report Server Management method and terminal device based on block chain technology |
CN107861933A (en) * | 2017-11-29 | 2018-03-30 | 北京百度网讯科技有限公司 | The method and apparatus for generating O&M form |
CN108734028A (en) * | 2018-05-24 | 2018-11-02 | 中国联合网络通信集团有限公司 | Data managing method, block chain node based on block chain and storage medium |
CN109522330A (en) * | 2018-10-18 | 2019-03-26 | 上海达家迎信息科技有限公司 | Cloud platform data processing method, device, equipment and medium based on block chain |
-
2019
- 2019-04-19 CN CN201910319430.2A patent/CN110209714A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699618A (en) * | 2013-12-16 | 2014-04-02 | 广东威创视讯科技股份有限公司 | Data report generation method and system |
CN107194666A (en) * | 2017-05-19 | 2017-09-22 | 中链科技有限公司 | Report Server Management method and terminal device based on block chain technology |
CN107861933A (en) * | 2017-11-29 | 2018-03-30 | 北京百度网讯科技有限公司 | The method and apparatus for generating O&M form |
CN108734028A (en) * | 2018-05-24 | 2018-11-02 | 中国联合网络通信集团有限公司 | Data managing method, block chain node based on block chain and storage medium |
CN109522330A (en) * | 2018-10-18 | 2019-03-26 | 上海达家迎信息科技有限公司 | Cloud platform data processing method, device, equipment and medium based on block chain |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110765750A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Report data entry method and terminal equipment |
CN110765750B (en) * | 2019-09-16 | 2024-03-15 | 平安科技(深圳)有限公司 | Report data input method and terminal equipment |
CN111859882A (en) * | 2020-07-30 | 2020-10-30 | 深圳市元征科技股份有限公司 | Report generation method, system, equipment and readable storage medium |
CN111953779A (en) * | 2020-08-13 | 2020-11-17 | 拉扎斯网络科技(上海)有限公司 | Data transmission method and device, computer equipment and computer readable storage medium |
CN113297849A (en) * | 2021-05-17 | 2021-08-24 | 济南森维网络科技有限公司 | Financial pre-proposed charge management method based on block chain technology |
CN114676190A (en) * | 2022-05-27 | 2022-06-28 | 太平金融科技服务(上海)有限公司深圳分公司 | Data display method and device, computer equipment and storage medium |
CN114676190B (en) * | 2022-05-27 | 2022-10-11 | 太平金融科技服务(上海)有限公司深圳分公司 | Data display method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209714A (en) | Report form generation method, device, computer equipment and computer readable storage medium | |
JP5980311B2 (en) | Video signature | |
US10140351B2 (en) | Method and apparatus for processing database data in distributed database system | |
CN106407207B (en) | Real-time newly-added data updating method and device | |
CN110222920A (en) | Performance data storage method, device, equipment and readable storage medium storing program for executing | |
CN109857803B (en) | Data synchronization method, device, equipment, system and computer readable storage medium | |
CN109213758B (en) | Data access method, device, equipment and computer readable storage medium | |
CN106547646B (en) | Data backup and recovery method and data backup and recovery device | |
CN111008521A (en) | Method and device for generating wide table and computer storage medium | |
CN108470039A (en) | Data processing method and device in block chain | |
CN106354587A (en) | Mirror image server and method for exporting mirror image files of virtual machine | |
CN104778252A (en) | Index storage method and index storage device | |
CN113986828A (en) | Method and device for storing mass files, electronic equipment and storage medium | |
CN114372060A (en) | Data storage method, device, equipment and storage medium | |
CN112199885B (en) | Distributed model training system and application method | |
CN111488349A (en) | Data query method and device based on service data block chain | |
CN115496044A (en) | Online table data generation method, equipment and medium | |
CN110019357B (en) | Database query script generation method and device | |
CN113448876B (en) | Service testing method, device, computer equipment and storage medium | |
CN109063201B (en) | Impala online interactive query method based on mixed storage scheme | |
CN106469086B (en) | Event processing method and device | |
CN108345699A (en) | Obtain the method, apparatus and storage medium of multi-medium data | |
CN114564501A (en) | Database data storage and query methods, devices, equipment and medium | |
CN109783559B (en) | Method and device for acquiring real estate transaction data, electronic equipment and storage medium | |
CN116662606B (en) | Method and system for determining new video event, storage medium and electronic device |
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 |