[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107818074A - A kind of generation method of data report, device and electronic equipment - Google Patents

A kind of generation method of data report, device and electronic equipment Download PDF

Info

Publication number
CN107818074A
CN107818074A CN201710889964.XA CN201710889964A CN107818074A CN 107818074 A CN107818074 A CN 107818074A CN 201710889964 A CN201710889964 A CN 201710889964A CN 107818074 A CN107818074 A CN 107818074A
Authority
CN
China
Prior art keywords
tag
reporting
report
result
parameter
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
Application number
CN201710889964.XA
Other languages
Chinese (zh)
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710889964.XA priority Critical patent/CN107818074A/en
Publication of CN107818074A publication Critical patent/CN107818074A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Subject description discloses a kind of generation method of data report, this method includes:Obtain the global parameter and reporting tag of report template and this report template corresponding to report generation instruction;Parse tag processor corresponding to reporting tag and then acquisition;The tag parameter of reporting tag and the global parameter of report template got is based further on, tag processor is performed to obtain business datum and processing is carried out to the business datum and obtains result;Result is finally based on to generate target labels and export, the automation of data report generation is realized, improves execution efficiency.

Description

A kind of generation method of data report, device and electronic equipment
Technical field
This specification is related to software technology field, and the more particularly to a kind of generation method of data report, device and electronics are set It is standby.
Background technology
With the continuous development of scientific technology, more and more thinner, the mutual contact such as platform, company, department of the division of labor Increasingly closer, mutual contact is generally realized by the form of report.Such as:One network company can be periodically to it Cooperative institution (such as bank) provides the report of flexible, quick, powerful business, mechanism, channel, to show the operation of its project Situation.
The report of object platform, company, department generally has complexity and uncertainty, every time the work by being proficient in professional work Carry out being manually entered data, formatting as personnel, exhibition method etc. is set, whole manufacturing process takes time and effort, makes effect Rate is low, also, it is also uneven to make the report quality obtained every time.As the demand that various reports make is increasing, Need a kind of preparation method of new data report badly, the problem of producing efficiency is low is reported in the prior art to improve.
The content of the invention
This specification embodiment provides a kind of generation method of data report, device and electronic equipment, existing for solving Report producing efficiency low technical problem in technology, improve the efficiency that report makes.
In a first aspect, this specification embodiment provides a kind of generation method of data report, methods described includes:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain in the report template Reporting tag and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, is obtained Business datum simultaneously carries out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
Optionally, it is described to perform the tag processor, based on tag parameter corresponding to the reporting tag and described complete Office's parameter, obtain business datum and processing acquisition result is carried out to the business datum, including:
The tag processor is performed, is obtained based on data acquisition address corresponding to the reporting tag and data acquisition type Take the business datum;
The business processing logic according to corresponding to the reporting tag obtains the reporting tag;
Based on the tag parameter and the global parameter, the business datum is carried out according to the business processing logic Processing obtains result.
Optionally, the tag parameter based in the reporting tag and the global parameter, at the business Reason logic carries out processing to the business datum and obtains result, including:
Judge the target component whether being configured with the tag parameter in the global parameter;
If so, using the value of the target component according to the business processing during the tag processor is performed Logic carries out processing to the business datum and obtains result.
Optionally, the business processing logic includes:The processing logic of pie chart, the processing logic of line chart and The processing logic of statistical graph.
Optionally, the reporting tag is the placeholder of variable element in the report template;
It is described that target reporting is generated according to the result and exported, including:
The reporting tag in the report template is replaced with into the result, generates the target reporting and defeated Go out.
Optionally, the reporting tag by the report template replaces with the result, described in generation Target reporting simultaneously exports, including:
Obtain the position related information between reporting tag in the report template;
The reporting tag in the report template is replaced with into the result, and is associated and believed according to the position Breath generates the target reporting and exported.
Optionally, it is described to perform the tag processor, based on tag parameter corresponding to the reporting tag and described complete Office's parameter, obtain business datum and processing acquisition result is carried out to the business datum, including:
The tag processor is performed, judge to whether there is in the report template has processing to associate with the reporting tag Correlation tag;
If so, obtain the result of the correlation tag;
Based on the result of the tag parameter, the global parameter and the correlation tag, the business is obtained Data simultaneously carry out processing acquisition result to the business datum.
Optionally, methods described also includes:
Configuration operation of the user to report template is responded, obtains and shows in report template corresponding to the configuration operation Reporting tag;
First configuration of the user to the reporting tag is obtained to operate;
Respond the first configuration operation to configure the reporting tag, and the report is updated based on configuration result Label.
Optionally, methods described also includes:
Configuration operation of the user to report template is responded, obtains and shows global parameter corresponding to the configuration operation;
Second configuration of the user to the global parameter is obtained to operate;
The second configuration operation is responded to configure the global parameter in the reporting objectives.
Second aspect, this specification embodiment also provide a kind of generating means of data report, and described device includes:
Acquiring unit, for responding report generation instruction, report template corresponding to the instruction is obtained, and described in acquisition Reporting tag and global parameter in report template;
Resolution unit, for parsing the reporting tag, obtain tag processor corresponding to the reporting tag;
Processing unit, for performing the tag processor, based on tag parameter corresponding to the reporting tag and described Global parameter, obtain business datum and processing acquisition result is carried out to the business datum;
Generation unit, for generating target reporting according to the result and exporting.
Optionally, the processing unit, is used for:
The tag processor is performed, is obtained based on data acquisition address corresponding to the reporting tag and data acquisition type Take the business datum;
The business processing logic according to corresponding to the reporting tag obtains the reporting tag;
Based on the tag parameter and the global parameter, the business datum is carried out according to the business processing logic Processing obtains result.
Optionally, the processing unit is used for, including:
Judge the target component whether being configured with the tag parameter in the global parameter;
If so, using the value of the target component according to the business processing during the tag processor is performed Logic carries out processing to the business datum and obtains result.
Optionally, the business processing logic includes:The processing logic of pie chart, the processing logic of line chart and The processing logic of statistical graph.
Optionally, the reporting tag is the placeholder of variable element in the report template;
The generation unit is used for:The reporting tag in the report template is replaced with into the result, it is raw Into the target reporting and export.
Optionally, the generation unit is used for:Obtain the position related information between reporting tag in the report template; The reporting tag in the report template is replaced with into the result, and institute is generated according to the position related information State target reporting and export.
Optionally, the processing unit is used for:The tag processor is performed, judges to whether there is in the report template Have with the reporting tag and handle the correlation tag associated;If so, obtain the result of the correlation tag;Based on the mark The result of parameter, the global parameter and the correlation tag is signed, obtains the business datum and to the business number Result is obtained according to processing is carried out.
Optionally, described device also includes:
Label dispensing unit, for responding configuration operation of the user to report template, obtain and show the configuration operation Reporting tag in corresponding report template;First configuration of the user to the reporting tag is obtained to operate;Respond described first Configuration operation configures to the reporting tag, and updates the reporting tag based on configuration result.
Optionally, described device also includes:
Global parameter dispensing unit, for responding configuration operation of the user to report template, obtain and show the configuration Global parameter corresponding to operation;Second configuration of the user to the global parameter is obtained to operate;Respond the second configuration operation The global parameter in the reporting objectives is configured.
The third aspect, this specification embodiment also provide a kind of computer-readable recording medium, are stored thereon with computer Program, the program realize following steps when being executed by processor:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain in the report template Reporting tag and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, is obtained Business datum simultaneously carries out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
Fourth aspect, this specification embodiment also provide a kind of electronic equipment, include memory, and one or one Program more than individual, one of them or more than one program storage are configured to by one or one in memory Above computing device is one or more than one program bag contains the instruction for being used for being operated below:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain in the report template Reporting tag and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, is obtained Business datum simultaneously carries out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
Said one or multiple technical schemes in this specification embodiment, at least have the following technical effect that:
This specification embodiment provides a kind of generation method of data report, response report generation instruction, obtains report life Into report template corresponding to instruction, and obtain the reporting tag and global parameter in report template;The reporting tag is parsed, Obtain tag processor corresponding to the reporting tag;The tag processor is performed, based on mark corresponding to the reporting tag Parameter and the global parameter are signed, business datum is obtained and processing acquisition result is carried out to the business datum;According to institute State result generation target reporting and export.Business is obtained by electronic equipment by way of report template and reporting tag Data, business datum is handled and generates final report according to the form of template, substantially increase the making of report Efficiency, improve the quality that report makes.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in this specification embodiment, embodiment or prior art will be retouched below The required accompanying drawing used is briefly described in stating, it should be apparent that, drawings in the following description are the one of this specification A little embodiments, for those of ordinary skill in the art, without having to pay creative labor, can also be according to this A little accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of configuration flow figure for report template that this specification embodiment provides;
Fig. 2 is a kind of flow chart of the generation method for data report that this specification embodiment provides;
Fig. 3 is the structural representation for the tag processor that this specification embodiment provides;
Fig. 4 provides a kind of schematic diagram of the generating means of data report for this specification embodiment;
Fig. 5 is the schematic diagram for a kind of electronic equipment that this specification embodiment provides.
Embodiment
It is real below in conjunction with this specification to make the purpose, technical scheme and advantage of this specification embodiment clearer The accompanying drawing in example is applied, the technical scheme in this specification embodiment is clearly and completely described, it is clear that described reality It is this specification part of the embodiment to apply example, rather than whole embodiments.It is general based on the embodiment in this specification, this area The every other embodiment that logical technical staff is obtained under the premise of creative work is not made, belong to this specification protection Scope.
A kind of generation method of data report, device and electronic equipment are provided in this specification embodiment, it is existing for solving Have and report producing efficiency low technical problem in technology, improve the efficiency that report makes.
In order to facilitate understanding, this specification embodiment is first said to the everyday expressions being related in this specification embodiment It is bright:
Report:A kind of set of the contents such as data, word, form, figure, reflect the synthesis of a special scenes or work Situation.
Report template:Form, content, the element of mark and solidification report composition, report can be converted to after template parsing.
Reporting tag:Represent that variable element (includes but is not limited in report template:Data, word, form, figure etc.) Placeholder.These placeholders are read when parsing report template, call the tag processor (being introduced below) of label to carry out at content Reason (includes but is not limited to:Data calculating, picture and text conversion, chart production etc.), the result of processing (includes but is not limited to:Data, text Word, form, figure etc.) placeholder is replaced, turn into a part for report.
Tag definition:The processing logic of a kind of reporting tag is characterized, at abstract name, label comprising a kind of label example Parameter, output result type required for reason device, tag processor.Generally there are multiple similar label examples in one report, For example can have multiple pie charts, the processing logic of these pie charts is probably similar, then input, the output of these label examples It is exactly similar, a type of label is defined as this, is easy to manage and uses.
Template parameter:Also known as global parameter, sphere of action are labels all in report template, and reporting tag can use The tag parameter (being introduced below) of itself, template parameter can also be used.
Tag parameter:The parameter that i.e. reporting tag uses.The sphere of action of tag parameter is only in this label, if reporting mould Template parameter is configured with plate, label can also preferentially use template parameter, otherwise using tag parameter.
Tag processor:The corresponding tag processor of one tag definition, the effect of this processor is according to input Parameter, computing is carried out according to specific processing logic, is obtained a result.Tag processor is the core of tag definition.
Below in conjunction with the accompanying drawings to the main realization principle of this specification embodiment technical scheme, embodiment and its right The beneficial effect that should be able to reach is explained in detail.
This specification embodiment provides a kind of new report template, and this report template is by reporting tag and solidification element group Into.Solidify the contents such as the overall style, segment word, picture, form that element can be report template, being can not in report template The element of change.For element variable in report template, this specification embodiment is by reporting tag come to each variable element Carry out occupy-place.The corresponding tag definition of one reporting tag is business processing logic and performs the mark of the business processing logic Sign processor.Wherein, this specification embodiment is not intended to limit the specific presentation mode of tag definition, can by method function, The forms such as class are presented.Tag definition is that business processing logic can include:The processing logic of pie chart (pei chart), line The processing logic of shape chart (line chart) and the processing logic of statistical graph (table chart) etc..User is making When making data report, it is only necessary to carry out reporting tag, global parameter configuration, the typing of business datum, calculating, conversion etc. by Tag processor is completed, and greatly improves producing efficiency.
Fig. 1 is refer to, the configuration process configured for user to report template:
S11:The report template that parsing user chooses.When parsing report template, mainly variable element in report template is entered Row parses and obtains these variable elements, including:Reporting tag, tag parameter, global parameter etc..
S12:Reporting tag is configured.The configuration of reporting tag includes:Configuration to tag parameter, delete report mark Label, the position replaced reporting tag, adjust reporting tag, association reporting tag etc..Wherein, association reporting tag includes position Association associates with processing.Position is associated as position of the reporting tag in report template and existed to specify on such as adjacent, at a distance of N Individual label etc..Processing is associated as the place of tag processor label when handling business datum corresponding to two labels It is related to another result to manage result.
Specifically, it can respond user configuration operation when user performs configuration operation to report template, obtain and open up In existing report template reporting tag (can with all reporting tags in report template or one or more Reporting tag), a reporting tag configured for user to needs configures.Further, user is obtained to reporting tag First configuration operation, the including but not limited to operation such as deletion, addition, replacement, association.After getting the first configuration operation, response The first configuration operation configures to reporting tag corresponding to the operation, and then based on configuration result updating record template. In specific implementation process, user may configure respectively to multiple reporting tags, now need to only repeat S12.
S13:The global parameter of report template is configured.The global parameter of global report's template includes but is not limited to report Accuse the color of background, picture, form etc..
Specifically, configuration operation of the response user to report template, obtains and shows global parameter corresponding to configuration operation; Second configuration of the user to global parameter is obtained to operate;The configuration operation of response second configures to its corresponding global parameter. When being configured to global parameter, the occurrence of global parameter can be changed, the rgb value X1 of background color is such as revised as X2. Likewise, global parameter may also include multiple parameters, user can configure to multiple global parameter branches, electronic equipment The global parameter configured to needs repeats S13.
Specification is needed, in no particular order, user first can configure to reporting tag for S12 and S13 execution, First global parameter can be configured.Global parameter can be quoted during tag parameter in configuration report label.
In completion report template with postponing, user can be to perform generation operation to report template, and electronic equipment can ring Using report generation instruction corresponding to the generation operation generation at family.Certainly, user can also configure without report template, directly Generation operation is performed, the corresponding volume report generation instruction of now electronic equipment generation, based on the initial parameter next life in report template Into report.
Fig. 2 is refer to, the embodiment of the present application provides a kind of generation method of data report, including:
S21:Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain the report template In reporting tag and global parameter;
S22:The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
S23:The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, Obtain business datum and processing is carried out to the business datum and obtain result;
S24:Target reporting is generated according to the result and exported.
In specific implementation process, report template can be realized by html language, can also by java language come Realize, this specification embodiment is not intended to limit the programming language of report template.Report template can be stored in data after editting In order to calling in the table of storehouse.As shown in following table one, the table structure of the report template to be stored in database table defines example:
Table one
Template content template_content in report template includes multiple reporting tags and global parameter.Each report Accusing label can be directly stored in report template, can also store and report template in database table and corresponding reporting tag Id (identity, identity) is associated, as label id is included in template_content:377、387、389、392 Etc..The mode associated using report template with reporting tag id, the flexibility of report template can be effectively improved, to reporting mould When reporting tag in plate carries out the operation such as deletion addition, replacement, directly reporting tag id can be operated, it is simple fast It is prompt.Reporting tag is directly stored in database table, and the definition of its table result can be as shown in following table two:
Table two
Likewise, global parameter is stored in report template or database table.Global parameter is stored in database When in table, the definition of its table structure can be as shown in following table three:
Table three
The reporting tag and global parameter in report template corresponding to S21 acquisition report generation instructions are performed, from report mould Reporting tag and global parameter are directly obtained in plate, or, the id of reporting tag and global parameter in report template from Reporting tag and global parameter are obtained in database table.
Further, S22 parsing reporting tags are performed, obtain tag processor corresponding to reporting tag.Tag processor It is stored in tag definition, such as the table structure of four tag definitions of following table.When reporting tag is parsed for this, first parsing is reported Tag definition corresponding to label, then obtains tag processor from tag definition.
Table four
Tag processor uses standard interface, encapsulates the business processing logic code of reporting tag, for handling engine calling Finishing service data processing.The structure of tag processor is as shown in figure 3, tag processor uses standard interface ReportTagProcessor and business processing logic doBusiness mode realize that specific business processing logic method exists Realized in doBusiness.According to the demand of data reporting, define different tag definitions and handle logic, also just have different Tag processor, the implementation of tag processor is simplified, improve the execution efficiency of tag processor.
After S22 gets tag processor, S23 is performed:Tag processor is performed, is joined based on label corresponding to reporting tag Number and global parameter, obtain business datum and processing acquisition result is carried out to business datum.Label corresponding to reporting tag Parameter can obtain when parsing reporting tag, can also be obtained when performing tag processor, the table structure of tag parameter is determined Justice is as shown in following table five:
Table five
When performing tag processor, first obtained based on data acquisition address corresponding to reporting tag and data acquisition type Business datum;Then, the business processing logic according to corresponding to reporting tag obtains reporting tag is tag definition;Marked based on report The global parameter of tag parameter corresponding to label and report template, it is business processing logic to perform tag processor according to tag definition Processing is carried out to the business datum got and obtains result.Industry is realized based on data acquisition address and data acquisition type The automatic acquisition for data of being engaged in, realize the automatic input of business datum, it is no longer necessary to which user is manually entered, and is greatly reduced The time cost of data report is made, improves production effect.Data acquisition address can point to database, can also point to it Some server on the specified folder of its storage location, such as electronic equipment, internet.
In specific implementation process, the processing to business network data needs to refer to following factor:The value of tag parameter, association mark The interrelational form of label.Tag parameter can quote global parameter, and whether the value of tag parameter can then have using global parameter with it Close.When being handled according to tag definition business datum, the target whether being configured with tag parameter in global parameter is judged Parameter;If so, using the value of target component according to business processing corresponding to reporting tag during tag processor is performed Logic carries out processing to business datum and obtains result.If it is not, then using the value of tag parameter come to business datum Reason obtains result.
The interrelational form of correlation tag includes position association and associated with processing.Shadow will be produced to result by handling association Ring, because when handling business datum, it is necessary to which judge to whether there is in report template has processing to associate with reporting tag Correlation tag;If so, obtain the result of correlation tag;Place based on tag parameter, global parameter and correlation tag Result is managed, processing is carried out to business datum corresponding to reporting tag and obtains result.Such as:By the result of correlation tag Input parameter when being handled as associated tagged traffic is handled together with business datum.The energy by way of handling and associating The enough repeatability for effectively reducing business data processing so that when the tag processor of associated reporting tag performs, eliminate The implementation procedure of the tag processor of correlation tag, and then improve treatment effeciency.
After S23 obtains result, perform S24 and target reporting is generated according to the result of acquisition and exported.This theory The reporting tag that bright book embodiment provides is the placeholder of variable element in report template, marks report when generating target reporting Label replace with the result of corresponding label processor.When having performed the replacement of all absolute altitude labels, that is, complete mesh Mark the making of report.The reporting tag included in report template there is likely to be position association, during target reporting is exported, First obtain the position related information in report template between reporting tag;According to its position related information output target reporting, make Position in the target reporting that must be exported between each result meets the position incidence relation between reporting tag.Target report The output of announcement can be shown by electronic equipment, can also be shown by browser.
In the above-described embodiments, by way of template+label, allow the form of report, the access of data and processing logic All it is fixed up, only need to once configures, subsequently only need to trigger, can just generates complete report, substitute manual mode completely, Substantially increase producing efficiency.Also, the above-mentioned unlimited application scenarios of data report generation method that this specification embodiment provides, Also unlimited data source, realize simply, repeat using the report made particularly with periodicity, substantially increase and make effect Rate.Further, in above-described embodiment by way of tag processor, by standard interface and tag definition come finishing service number According to processing, no matter user want to make the report of what pattern, can be by simply with postponing life using what kind of data Into flexibility is strong.
Fig. 4 is refer to, a kind of generation method for data report that this specification embodiment is provided based on above-described embodiment, is gone back Corresponding to provide a kind of generating means of data report, the device includes:
Acquiring unit 41, for responding report generation instruction, report template corresponding to the instruction is obtained, and obtain institute State the reporting tag and global parameter in report template;
Resolution unit 42, for parsing the reporting tag, obtain tag processor corresponding to the reporting tag;
Processing unit 43, for performing the tag processor, based on tag parameter corresponding to the reporting tag and institute Global parameter is stated, business datum is obtained and processing acquisition result is carried out to the business datum;
Generation unit 44, for generating target reporting according to the result and exporting.
As an alternative embodiment, the process that the processing unit 43 carries out business data processing can be:Hold The row tag processor, the business is obtained based on data acquisition address corresponding to the reporting tag and data acquisition type Data;The business processing logic according to corresponding to the reporting tag obtains the reporting tag;Based on the tag parameter and institute Global parameter is stated, processing is carried out to the business datum according to the business processing logic and obtains result.
As an alternative embodiment, the processing unit 43 carries out the process of business data processing, it can be determined that The target component whether being configured with the tag parameter in the global parameter;If so, performing the tag processor During the business datum handled according to the business processing logic using the value of the target component As a result.Wherein, the business processing logic includes:The processing logic of pie chart, the processing logic of line chart and statistics The processing logic of chart.
The reporting tag that this specification embodiment provides is the placeholder of variable element in the report template.Generation Unit 44 can generate target reporting in the following way and export:The reporting tag in the report template is replaced with The result, generate the target reporting and export.
As an alternative embodiment, the generation unit 44 can also obtain reporting tag in the report template Between position related information;The reporting tag in the report template is replaced with into the result, and according to institute Rheme puts related information and generates the target reporting and export.
As an alternative embodiment, the processing unit 43 is used for:The tag processor is performed, described in judgement It whether there is the correlation tag for thering is processing to associate with the reporting tag in report template;If so, obtain the correlation tag Result;Based on the result of the tag parameter, the global parameter and the correlation tag, the business is obtained Data simultaneously carry out processing acquisition result to the business datum.
As an alternative embodiment, described device also includes:Label dispensing unit 45, global parameter dispensing unit 46.Label dispensing unit 45 is used for:Configuration operation of the user to report template is responded, obtains and shows that the configuration operation is corresponding Report template in reporting tag;First configuration of the user to the reporting tag is obtained to operate;Respond first configuration Operation configures to the reporting tag, and updates the reporting tag based on configuration result.Global parameter dispensing unit 46 For:Configuration operation of the user to report template is responded, obtains and shows global parameter corresponding to the configuration operation;Obtain and use Second configuration of the family to the global parameter operates;The second configuration operation is responded to the overall situation in the reporting objectives Parameter is configured.
On the device in above-described embodiment, wherein unit performs the concrete mode of operation in method It is described in detail in embodiment, no longer elaborates herein.
Fig. 5 is refer to, is a kind of generation method for being used to realize data report according to an exemplary embodiment The block diagram of electronic equipment 500.For example, electronic equipment 500 can be computer, and database console, tablet device, individual digital Assistant etc..
Reference picture 5, electronic equipment 500 can include following one or more assemblies:Processing component 502, memory 504, Power supply module 506, multimedia groupware 508, the interface 510 of input/output (I/O), and communication component 512.
The integrated operation of the usual control electronics 500 of processing component 502, such as grasped with display, data communication, and record Make associated operation.Treatment element 502 can carry out execute instruction including one or more processors 520, above-mentioned to complete The all or part of step of method.In addition, processing component 502 can include one or more modules, it is easy to the He of processing component 502 Interaction between other assemblies.
Memory 504 is configured as storing various types of data to support the operation in equipment 500.These data are shown Example includes the instruction of any application program or method for being operated on electronic equipment 500, contact data, telephone directory number According to, message, picture, video etc..Memory 504 can by any kind of volatibility or non-volatile memory device or they Combination realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, quick flashing Memory, disk or CD.
Power supply module 506 provides electric power for the various assemblies of electronic equipment 500.Power supply module 506 can include power supply pipe Reason system, one or more power supplys, and other components associated with generating, managing and distributing electric power for electronic equipment 500.
I/O interfaces 510 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Communication component 512 is configured to facilitate the communication of wired or wireless way between electronic equipment 500 and other equipment. Electronic equipment 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Show at one In example property embodiment, communication component 512 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, the communication component 512 also includes near-field communication (NFC) module, short to promote Cheng Tongxin.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, electronic equipment 500 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 520 of electronic equipment 500.Example Such as, the non-transitorycomputer readable storage medium can be ROM, it is random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that electronic equipment is able to carry out a kind of generation method of data report, and methods described includes:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain in the report template Reporting tag and global parameter;The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;Described in execution Tag processor, based on tag parameter corresponding to the reporting tag and the global parameter, obtain business datum and to described Business datum carries out processing and obtains result;Target reporting is generated according to the result and exported.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (20)

1. a kind of generation method of data report, including:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain the report in the report template Label and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, obtains business Data simultaneously carry out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
2. the method as described in claim 1, described to perform the tag processor, based on label corresponding to the reporting tag Parameter and the global parameter, obtain business datum and processing acquisition result is carried out to the business datum, including:
The tag processor is performed, institute is obtained based on data acquisition address corresponding to the reporting tag and data acquisition type State business datum;
The business processing logic according to corresponding to the reporting tag obtains the reporting tag;
Based on the tag parameter and the global parameter, the business datum is handled according to the business processing logic Obtain result.
3. method as claimed in claim 2, the tag parameter based in the reporting tag and the global parameter, are pressed Processing is carried out to the business datum according to the business processing logic and obtains result, including:
Judge the target component whether being configured with the tag parameter in the global parameter;
If so, using the value of the target component according to the business processing logic during the tag processor is performed Processing is carried out to the business datum and obtains result.
4. method as claimed in claim 2, the business processing logic includes:The processing logic of pie chart, line chart Processing logic and statistical graph processing logic.
5. the method as described in claim 1, the reporting tag is the placeholder of variable element in the report template;
It is described that target reporting is generated according to the result and exported, including:
The reporting tag in the report template is replaced with into the result, the target reporting is generated and exports.
6. method as claimed in claim 5, the reporting tag by the report template replace with the processing As a result, generate the target reporting and export, including:
Obtain the position related information between reporting tag in the report template;
The reporting tag in the report template is replaced with into the result, and given birth to according to the position related information Into the target reporting and export.
7. the method as described in claim 1~6 is any, described to perform the tag processor, based on the reporting tag pair The tag parameter and the global parameter answered, obtain business datum and processing acquisition result carried out to the business datum, Including:
The tag processor is performed, judges to whether there is the pass for having processing to associate with the reporting tag in the report template Join label;
If so, obtain the result of the correlation tag;
Based on the result of the tag parameter, the global parameter and the correlation tag, the business datum is obtained And processing is carried out to the business datum and obtains result.
8. the method as described in claim 1~6 is any, methods described also include:
Configuration operation of the user to report template is responded, obtains and shows the report in report template corresponding to the configuration operation Label;
First configuration of the user to the reporting tag is obtained to operate;
The first configuration operation is responded to configure the reporting tag, and based on the configuration result renewal report mark Label.
9. method as claimed in claim 8, methods described also include:
Configuration operation of the user to report template is responded, obtains and shows global parameter corresponding to the configuration operation;
Second configuration of the user to the global parameter is obtained to operate;
The second configuration operation is responded to configure the global parameter in the reporting objectives.
10. a kind of generating means of data report, including:
Acquiring unit, for responding report generation instruction, report template corresponding to the instruction is obtained, and obtain the report Reporting tag and global parameter in template;
Resolution unit, for parsing the reporting tag, obtain tag processor corresponding to the reporting tag;
Processing unit, for performing the tag processor, based on tag parameter corresponding to the reporting tag and the overall situation Parameter, obtain business datum and processing acquisition result is carried out to the business datum;
Generation unit, for generating target reporting according to the result and exporting.
11. device as claimed in claim 10, the processing unit, are used for:
The tag processor is performed, institute is obtained based on data acquisition address corresponding to the reporting tag and data acquisition type State business datum;
The business processing logic according to corresponding to the reporting tag obtains the reporting tag;
Based on the tag parameter and the global parameter, the business datum is handled according to the business processing logic Obtain result.
12. device as claimed in claim 11, the processing unit is used for, including:
Judge the target component whether being configured with the tag parameter in the global parameter;
If so, using the value of the target component according to the business processing logic during the tag processor is performed Processing is carried out to the business datum and obtains result.
13. device as claimed in claim 11, the business processing logic includes:The processing logic of pie chart, Line Chart The processing logic of table and the processing logic of statistical graph.
14. device as claimed in claim 10, the reporting tag is the placeholder of variable element in the report template;
The generation unit is used for:The reporting tag in the report template is replaced with into the result, generates institute State target reporting and export.
15. device as claimed in claim 14, the generation unit is used for:
Obtain the position related information between reporting tag in the report template;
The reporting tag in the report template is replaced with into the result, and given birth to according to the position related information Into the target reporting and export.
16. the device as described in claim 10~15 is any, the processing unit is used for:
The tag processor is performed, judges to whether there is the pass for having processing to associate with the reporting tag in the report template Join label;
If so, obtain the result of the correlation tag;
Based on the result of the tag parameter, the global parameter and the correlation tag, the business datum is obtained And processing is carried out to the business datum and obtains result.
17. the device as described in claim 10~15 is any, described device also include:
Label dispensing unit, for responding configuration operation of the user to report template, obtain and show that the configuration operation is corresponding Report template in reporting tag;First configuration of the user to the reporting tag is obtained to operate;Respond first configuration Operation configures to the reporting tag, and updates the reporting tag based on configuration result.
18. device as claimed in claim 17, described device also include:
Global parameter dispensing unit, for responding configuration operation of the user to report template, obtain and show the configuration operation Corresponding global parameter;Second configuration of the user to the global parameter is obtained to operate;The second configuration operation is responded to institute The global parameter stated in reporting objectives is configured.
Realized 19. a kind of computer-readable recording medium, is stored thereon with computer program, when the program is executed by processor with Lower step:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain the report in the report template Label and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, obtains business Data simultaneously carry out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
20. a kind of electronic equipment, include memory, and one or more than one program, one of them or one Procedure above is stored in memory, and be configured to by one either more than one computing device it is one or one Procedure above includes the instruction for being used for being operated below:
Report generation instruction is responded, obtains report template corresponding to the instruction, and obtain the report in the report template Label and global parameter;
The reporting tag is parsed, obtains tag processor corresponding to the reporting tag;
The tag processor is performed, based on tag parameter corresponding to the reporting tag and the global parameter, obtains business Data simultaneously carry out processing acquisition result to the business datum;
Target reporting is generated according to the result and exported.
CN201710889964.XA 2017-09-27 2017-09-27 A kind of generation method of data report, device and electronic equipment Pending CN107818074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710889964.XA CN107818074A (en) 2017-09-27 2017-09-27 A kind of generation method of data report, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710889964.XA CN107818074A (en) 2017-09-27 2017-09-27 A kind of generation method of data report, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN107818074A true CN107818074A (en) 2018-03-20

Family

ID=61607493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710889964.XA Pending CN107818074A (en) 2017-09-27 2017-09-27 A kind of generation method of data report, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107818074A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762732A (en) * 2018-05-30 2018-11-06 南京焦点领动云计算技术有限公司 A kind of inline CSS of HTML and inline JavaScript merging methods
CN109299446A (en) * 2018-08-03 2019-02-01 新华三大数据技术有限公司 Report-generating method and device
CN109658999A (en) * 2018-11-30 2019-04-19 平安医疗健康管理股份有限公司 Slow disease audit report generation method, device, equipment and storage medium
CN109783480A (en) * 2018-12-19 2019-05-21 深圳供电局有限公司 Method and system for generating scheduling annual report, electronic device and medium
CN110046335A (en) * 2019-04-03 2019-07-23 江苏科技大学 A kind of rapid generation of profile measurement report
CN110287470A (en) * 2019-06-28 2019-09-27 天津中车机辆装备有限公司 Urban rail transit vehicles structure buffering apparatus detects form generation system, method, server and storage medium
CN110430022A (en) * 2019-08-19 2019-11-08 深圳市鹏海运电子数据交换有限公司 Data transmission method and device
CN110852053A (en) * 2019-10-18 2020-02-28 平安医疗健康管理股份有限公司 Report generation method and device based on suffix stack technology
CN110969003A (en) * 2018-09-29 2020-04-07 北京国双科技有限公司 Text content generation method and device
CN111125204A (en) * 2019-12-17 2020-05-08 中科鼎富(北京)科技发展有限公司 Analysis report obtaining method and device, electronic equipment and storage medium
CN114398226A (en) * 2021-12-28 2022-04-26 绿盟科技集团股份有限公司 Network asset report generation method and device
CN116227452A (en) * 2023-01-05 2023-06-06 易方达基金管理有限公司 Method, apparatus, device and storage medium for analyzing templates using assembled cards

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697393A (en) * 2004-05-12 2005-11-16 华为技术有限公司 Automatic method for generating report of optimizing network
CN101192947A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Method for dynamic report generation
CN101202647A (en) * 2006-12-13 2008-06-18 中兴通讯股份有限公司 Dynamic generating report method for generating network report used in network planning and optimizing process
CN101976235A (en) * 2010-09-21 2011-02-16 天津神舟通用数据技术有限公司 Extensible Word report automatically-generating method based on dynamic web page
CN104572597A (en) * 2015-01-12 2015-04-29 浪潮通用软件有限公司 Automatic word analysis report generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1697393A (en) * 2004-05-12 2005-11-16 华为技术有限公司 Automatic method for generating report of optimizing network
CN101192947A (en) * 2006-11-27 2008-06-04 中兴通讯股份有限公司 Method for dynamic report generation
CN101202647A (en) * 2006-12-13 2008-06-18 中兴通讯股份有限公司 Dynamic generating report method for generating network report used in network planning and optimizing process
CN101976235A (en) * 2010-09-21 2011-02-16 天津神舟通用数据技术有限公司 Extensible Word report automatically-generating method based on dynamic web page
CN104572597A (en) * 2015-01-12 2015-04-29 浪潮通用软件有限公司 Automatic word analysis report generation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘鹏 等: "基于动态网页的Word报告自动生成方法", 《计算机工程》 *
蒋宗礼: "《FORTRAN 77结构化程序设计》", 31 December 1994 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762732B (en) * 2018-05-30 2019-06-11 南京焦点领动云计算技术有限公司 A kind of inline CSS of HTML and inline JavaScript merging method
CN108762732A (en) * 2018-05-30 2018-11-06 南京焦点领动云计算技术有限公司 A kind of inline CSS of HTML and inline JavaScript merging methods
CN109299446B (en) * 2018-08-03 2022-08-12 新华三大数据技术有限公司 Report generation method and device
CN109299446A (en) * 2018-08-03 2019-02-01 新华三大数据技术有限公司 Report-generating method and device
CN110969003A (en) * 2018-09-29 2020-04-07 北京国双科技有限公司 Text content generation method and device
CN109658999B (en) * 2018-11-30 2023-02-03 深圳平安医疗健康科技服务有限公司 Chronic disease inspection report generation method, device, equipment and storage medium
CN109658999A (en) * 2018-11-30 2019-04-19 平安医疗健康管理股份有限公司 Slow disease audit report generation method, device, equipment and storage medium
CN109783480A (en) * 2018-12-19 2019-05-21 深圳供电局有限公司 Method and system for generating scheduling annual report, electronic device and medium
CN110046335A (en) * 2019-04-03 2019-07-23 江苏科技大学 A kind of rapid generation of profile measurement report
CN110046335B (en) * 2019-04-03 2023-05-19 江苏科技大学 Method for rapidly generating appearance detection report
CN110287470A (en) * 2019-06-28 2019-09-27 天津中车机辆装备有限公司 Urban rail transit vehicles structure buffering apparatus detects form generation system, method, server and storage medium
CN110287470B (en) * 2019-06-28 2023-07-07 天津中车机辆装备有限公司 Urban rail transit vehicle hook buffer device detection form generation system
CN110430022A (en) * 2019-08-19 2019-11-08 深圳市鹏海运电子数据交换有限公司 Data transmission method and device
CN110852053A (en) * 2019-10-18 2020-02-28 平安医疗健康管理股份有限公司 Report generation method and device based on suffix stack technology
CN111125204A (en) * 2019-12-17 2020-05-08 中科鼎富(北京)科技发展有限公司 Analysis report obtaining method and device, electronic equipment and storage medium
CN114398226A (en) * 2021-12-28 2022-04-26 绿盟科技集团股份有限公司 Network asset report generation method and device
CN116227452A (en) * 2023-01-05 2023-06-06 易方达基金管理有限公司 Method, apparatus, device and storage medium for analyzing templates using assembled cards
CN116227452B (en) * 2023-01-05 2024-03-22 易方达基金管理有限公司 Method, apparatus, device and storage medium for analyzing templates using assembled cards

Similar Documents

Publication Publication Date Title
CN107818074A (en) A kind of generation method of data report, device and electronic equipment
US20190050812A1 (en) Project management and activity tracking methods and systems
CN111626744B (en) Traceability method and system for configurable and identification interconnection
CN108536459A (en) Update method, device, equipment and the computer storage media of financial product
CN107609153A (en) A kind of book management system
CN102486730A (en) Workflow realization method and workflow system capable of customizing flow in user-defined manner
CN106993089A (en) The method and apparatus that voice menu is shown
CN109635271A (en) A kind of user's intension recognizing method, customer service system, device and electronic equipment
CN109829679A (en) Project management method, device, computer installation and storage medium
CN111340447A (en) Configuration-based business process management method and device
WO2019233289A1 (en) Commodity traceability link information processing method and apparatus, and electronic device
CN110825807A (en) Data interaction conversion method, device, equipment and medium based on artificial intelligence
CN107861933A (en) The method and apparatus for generating O&M form
CN112988752A (en) Resource management method, device, storage medium and electronic equipment
CN112527250A (en) Software development platform based on visualization
CN109472015A (en) Model production resume based on Worksheet self-defining function generate system
CN109918067B (en) Report customization method, device, client and storage medium
CN110083685B (en) Data configuration method and device for intention recognition
CN110825354A (en) Intellectual property agency service management system based on SOA system
CN110019136A (en) Report generating system and report form generation method
CN115544146A (en) Service platform suitable for rapidly adjusting service node interface and service data acquisition method
CN104574098B (en) Application program type electronic shop system and its transaction method and application program generator
CN107943564B (en) Fine management system and management method for animation design task
KR100743150B1 (en) Customized and Automated Technology Roadmapping System
CN112256778A (en) Data import method, device and 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
TA01 Transfer of patent application right

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200924

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180320

RJ01 Rejection of invention patent application after publication