CN111553137A - Report generation method and device, storage medium and computer equipment - Google Patents

Report generation method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111553137A
CN111553137A CN202010234636.8A CN202010234636A CN111553137A CN 111553137 A CN111553137 A CN 111553137A CN 202010234636 A CN202010234636 A CN 202010234636A CN 111553137 A CN111553137 A CN 111553137A
Authority
CN
China
Prior art keywords
data
report
template
display area
generated
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.)
Granted
Application number
CN202010234636.8A
Other languages
Chinese (zh)
Other versions
CN111553137B (en
Inventor
丁毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN202010234636.8A priority Critical patent/CN111553137B/en
Publication of CN111553137A publication Critical patent/CN111553137A/en
Application granted granted Critical
Publication of CN111553137B publication Critical patent/CN111553137B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing

Abstract

The invention discloses a report generation method, a report generation device, a storage medium and computer equipment, relates to the technical field of data processing, and mainly aims to improve the report generation efficiency and reduce the error rate of report data by automatically generating a report template, analyzing and adding data of a corresponding area and detecting the integrity of the data. The method comprises the following steps: receiving a report generation request, wherein the request carries characteristic information of a report to be generated; determining a template of the report to be generated according to the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added. The invention is suitable for generating reports.

Description

Report generation method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a report generation method, an apparatus, a storage medium, and a computer device.
Background
The annual settlement report plays an extremely important role in the enterprise management process, a large amount of data such as people, mechanisms, units and the like need to be introduced in the report grasping and writing process, in an actual business scene, workers often need to consume a large amount of time and manpower to summarize and count data, charts are made according to relevant data, relevant national policies and macro decision files are collected according to expert opinions, and finally professional interpretation and rectification suggestions are provided by combining report data.
At present, when a report is output, data is directly input into the report manually, or the data is inserted into an area where the report should be displayed by using an established report template. However, in the process of inserting data, due to instability of manual operation, the integrity of the inserted data cannot be guaranteed, the generation efficiency of reports is greatly reduced, and the error rate of the reported data is increased.
Disclosure of Invention
In view of the above, the present invention provides a report generating method, apparatus, storage medium and computer device, and mainly aims to improve report generating efficiency and reduce error rate of report data by automatically generating a report template, analyzing and adding data of a corresponding area, and detecting integrity of the data.
According to an aspect of the present invention, there is provided a report generating method including:
receiving a report generation request, wherein the request carries characteristic information of a report to be generated;
determining a template of the report to be generated according to the characteristic information;
correspondingly searching data through the type identification of each display area in the template, and analyzing the data;
and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
Further, the parsing the data includes:
analyzing the information type in the data by using a preset natural language processing method, and matching relevant knowledge data in a preset knowledge base according to the information type; and/or the presence of a gas in the gas,
and acquiring historical data with the same data type as that of the display area in a preset time period, and calling analysis algorithms corresponding to different data types to analyze the historical data.
Further, the historical data includes historical image data, historical character data and historical numerical data, and the invoking of analysis algorithms corresponding to different data types to analyze the historical data includes:
overlapping and comparing the image data of the display area with the historical image data, and marking the image areas corresponding to the image pixel points with differences; and/or the presence of a gas in the gas,
analyzing the character data of the display area by using a preset natural language processing method, extracting trend change words from historical character data according to the obtained keywords, and integrating the trend change words according to a preset sequence; and/or the presence of a gas in the gas,
and processing the numerical data of the display area and the historical numerical data to obtain average value data and probability density data, and arranging the average value data and the probability density data according to a specified sequence.
Further, the determining the template of the report to be generated according to the feature information includes:
searching a matched template in a local database by using the time identifier, the object identifier and the type identifier obtained by analyzing the characteristic information, wherein the local database stores the corresponding relation among the time identifier, the object identifier, the type identifier and the template;
and determining the searched template as the template of the report to be generated.
Further, the method further comprises:
traversing and detecting all databases to judge whether the added data is complete;
if not, searching incomplete data according to the type identification of the data area and adding the incomplete data to a specified display area of the template;
and if so, determining that the added data is complete.
Further, the performing traversal detection on all databases to determine whether the added data is complete includes:
judging whether a data query request and response data exist in the access logs of each database, if so, determining that the added data is complete, and if not, determining that the added data is incomplete; and/or the presence of a gas in the gas,
and judging whether the calling time and the total calling times of each database interface are respectively matched with the data query time and the total data query times, if so, determining that the added data is complete, and if not, determining that the added data is incomplete.
Further, the method further comprises:
when a deleting instruction is received, the generated report is stored in a preset storage structure and is timed, when the timing is greater than a preset time interval, a permanent deleting request is sent, and if the permanent deleting instruction is received, the report is permanently deleted from the specified storage structure.
According to a second aspect of the present invention, there is provided a report generating apparatus comprising:
a receiving unit, configured to receive a report generation request, where the request carries feature information of a report to be generated;
the determining unit is used for determining the template of the report to be generated according to the characteristic information;
the analysis unit is used for correspondingly searching data through the type identification of each display area in the template and analyzing the data;
and the generating unit is used for adding the analyzed data to the specified display area of the template and responding the report generating request by using the report generated after the data is added.
Further, the parsing unit includes:
the matching module is used for analyzing the information type in the data by using a preset natural language processing method and matching related knowledge data in a preset knowledge base according to the information type; and/or the presence of a gas in the gas,
and the calling module is used for acquiring historical data with the same data type as that of the display area in a preset time period and calling analysis algorithms corresponding to different data types to analyze the historical data.
Further, the calling module is specifically configured to perform overlap comparison on the image data of the display area and the historical image data, and mark an image area corresponding to the image pixel point with the difference; and/or the presence of a gas in the gas,
analyzing the character data of the display area by using a preset natural language processing method, extracting trend change words from historical character data according to the obtained keywords, and integrating the trend change words according to a preset sequence; and/or the presence of a gas in the gas,
and processing the numerical data of the display area and the historical numerical data to obtain average value data and probability density data, and arranging the average value data and the probability density data according to a specified sequence.
Further, the determining unit includes:
the searching module is used for searching a matched template in a local database by utilizing the time identifier, the object identifier and the type identifier obtained by analyzing the characteristic information, wherein the local database stores the corresponding relation among the time identifier, the object identifier, the type identifier and the template;
and the determining module is used for determining the searched template as the template of the report to be generated.
For the embodiment of the present invention, the apparatus further includes:
the detection unit is used for performing traversal detection on all databases to judge whether the added data is complete; if not, searching incomplete data according to the type identification of the data area and adding the incomplete data to a specified display area of the template; and if so, determining that the added data is complete.
Further, the detection unit includes:
the first judgment module is used for judging whether a data query request and response data exist in the access logs of each database, if so, the added data is determined to be complete, and if not, the added data is determined to be incomplete; and/or the presence of a gas in the gas,
and the second judgment module is used for judging whether the calling time and the total calling times of each database interface are respectively matched with the data query time and the total data query times, if so, determining that the added data is complete, and if not, determining that the added data is incomplete.
Further, the apparatus further comprises:
and the deleting unit is used for storing the generated report in a preset storage structure and timing when a deleting instruction is received, sending a permanent deleting request when the timing is greater than a preset time interval, and permanently deleting the report from the specified storage structure if the permanent deleting instruction is received.
According to a third aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform the steps of: receiving a report generation request, wherein the request carries characteristic information of a report to be generated; determining a template of the report to be generated according to the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
According to a fourth aspect of the present invention, there is provided a computer device comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus, and the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to perform the following steps: receiving a report generation request, wherein the request carries characteristic information of a report to be generated; determining a template of the report to be generated according to the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
Compared with the prior art that data is directly input into a report manually or the data is inserted into an area where the report should be displayed by utilizing an established report template, the report generation method and device provided by the invention have the advantages that a report generation request is received, and the request carries characteristic information of a report to be generated; determining the template of the report to be generated according to the identification information obtained by analyzing the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added. Therefore, the report template can be automatically generated, the data of the corresponding area can be analyzed and added, and the integrity of the data can be detected, so that the report generation efficiency is improved, and the error rate of the report data is reduced.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a report generation method provided by an embodiment of the invention;
fig. 2 is a schematic structural diagram of a report generation apparatus according to an embodiment of the present invention;
fig. 3 shows a physical structure diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As described in the background art, at present, when a report is output, data is directly entered into the report manually, or the data is inserted into an area where the report should be displayed by using an established report template. However, in the process of inserting data, due to instability of manual operation, the integrity and correctness of the inserted data cannot be guaranteed, the generation efficiency of reports is greatly reduced, and the error rate of the reported data is increased.
In order to solve the above problem, an embodiment of the present invention provides a report generation method, as shown in fig. 1, the method including:
101. receiving a report generation request, wherein the request carries characteristic information of a report to be generated.
The feature information of the report to be generated may include a report time, a report object, and a report type, where the report time may specifically include a statistical month, a quarter, a year, and the like, the report object may specifically include an province, a general area, a business organization, and the like, and the report type may specifically include a settlement report, an improvement report, a detection report, and the like. The report generation request may be specifically sent by a client.
102. And determining the template of the report to be generated according to the characteristic information.
The template of the report to be generated may be used to display all or part of the feature information. For the embodiment of the present invention, the template may be generated according to business requirements, the template includes a plurality of display areas, each display area may correspond to different businesses or different types of data, for example, the display area 1 may be configured to display medical and insurance age summary data, the display area 2 may be configured to display an aging trend graph, and when a report is generated, the two types of data may be displayed simultaneously, or only a single type of data may be displayed. The template may be a template created in advance and stored in a template database, and when the report generation request is received, the corresponding template is matched and extracted from the template database according to the feature information. Specifically, in the process of creating the template, the template may be marked with identification information associated with the feature information, so as to determine the template corresponding to the feature information.
103. And correspondingly searching data through the type identification of each display area in the template, and analyzing the data.
The type identifier of each display area may specifically be a service type identifier, such as medical insurance data, financial data, or a data type identifier, such as numerical data, text data, chart data, or the like, and corresponding data may be searched in a corresponding database according to the type identifier. The process of analyzing the data may include extracting a keyword according to the searched data, where the keyword may be an information type of the data, and acquiring knowledge information in a preset knowledge base by using the information type. In addition, the process may further include obtaining historical data of the same type as the search data, and performing analysis processing on the historical data by using an analysis algorithm corresponding to different data types.
104. And adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
The data obtained by the analysis may specifically include the knowledge information, or the result data obtained by analyzing the historical data by using the analysis algorithms corresponding to different data types. And when the data is added to the execution display area of the template, the corresponding index data or the icon can be called in an interface calling mode. Specifically, the analyzed data is added to the specified display area of the template to generate a complete report template, and the report template is utilized to respond to the report generation request.
Further, in order to better explain the process of the report generating method, as a refinement and an extension of the above embodiment, the embodiment of the present invention provides several alternative embodiments, but is not limited thereto, and specifically, the following embodiments are provided:
in an optional embodiment of the present invention, the step 103 may specifically include: and analyzing the information type in the data by using a preset natural language processing method, and matching the relevant knowledge data in a preset knowledge base according to the information type.
The preset Natural language processing method may specifically be a Natural Language Processing (NLP) technique, and the process of analyzing the information type in the data by using the NLP technique may include: and extracting nouns with similar word senses in the data by using the natural language processing technology, judging whether the number of the nouns reaches a preset noun number threshold value, if so, determining the nouns as information types, and searching relevant knowledge data in a preset knowledge base according to the information types. For example, the display area is configured to purchase user information of the insurance policy for 2 months in 2019, including male customer information, female customer information, purchase quantity information and insurance amount information, wherein the number of the nouns "insurance policy purchase quantity" in the information is extracted to exceed the number of the preset nouns, so that the nouns of the insurance policy purchase quantity can be determined as an information type, related knowledge information can be searched, and the related knowledge information can be displayed in a designated display area, for example, the related knowledge information can be configured to be displayed on one side of the display area, so that the user can provide related knowledge data when reading a report. In addition, another process of parsing information types in the data using natural language processing technology, corresponding to the above process, may include: and detecting the name of the report to be generated and whether the display area of the report contains sentences of words such as conclusion, summary and the like, and extracting the information type from the sentences.
Correspondingly, the step 103 may further include, in parallel with the above process: and acquiring historical data with the same data type as that of the display area in a preset time period, and calling analysis algorithms corresponding to different data types to analyze the historical data.
Specifically, the data types of the display data are acquired, including text data, numerical data, picture data and the like, historical data in a preset time period are respectively called according to different data types, and if the display data is a medical insurance purchase trend graph in 12 months, a medical insurance purchase trend graph in 11 months can be correspondingly called as the historical data according to a preset time period of 30 days. The historical data may be stored in a historical database and marked with identifiers displayed in different areas of different templates, for example, the historical text data ss is marked with an identifier of a report template 2-area 2, which may indicate that the text data ss is displayed in the area 2 of the report template 2.
For the embodiment of the present invention, the invoking of the analysis algorithms corresponding to different data types to analyze the historical data specifically may include: overlapping and comparing the image data of the display area with the historical image data, and marking the image areas corresponding to the image pixel points with differences; and/or analyzing the character data of the display area by using a natural language processing technology, extracting trend change words from historical character data according to the obtained keywords, and integrating the trend change words according to a preset sequence; and/or processing the numerical data of the display area and the historical numerical data to obtain average value data and probability density data, and arranging the average value data and the probability density data according to a specified sequence.
Specifically, according to the obtained different types of history data, the process of calling the corresponding algorithm for parsing may include: for the historical data of the image type, overlapping and comparing the historical image with the display image according to an overlapping mode, marking the image areas corresponding to the image pixel points with differences, and simultaneously displaying the image areas corresponding to the image pixel points with differences if a plurality of historical images exist simultaneously; for the historical data of the character types, the natural language processing technology can be used for analyzing the keywords in the display data, the matched character data in the historical data is extracted by using the keywords, for example, the corresponding character data is sorted according to the time sequence, the preset trend change character library is used for comparing and searching the trend change words in the historical data, for example, the analyzed keywords are insurance amount, the trend change words which are compared and searched from the preset trend change character library in the historical data 1 are insurance amount increased by 1%, and the trend change words which are found in the historical data 2 are insurance amount decreased by 0.5%. Integrating all the searched trend change words according to a time sequence, and displaying the integrated text content; for the historical data of the numerical value type, the average value and the probability density of the historical data, and the average value and the probability density of the data in the display area can be calculated, and the calculated results of the average value and the probability density are displayed according to the data storage sequence, and the probability density can accurately calculate the probability of a certain interval, so that the probability in different ranges, namely the distribution of the numerical values in different numerical value ranges, can be determined by calculating the probability density, and specifically can be the quotient of the numerical value and all the numerical values in the numerical value range.
It should be noted that after the analysis results are obtained according to different analysis algorithms, the analysis results may be displayed on one side of the data display area in a form of a reduced display frame, so that the user may view the display area data and view the related knowledge data and the historical data as references.
In another alternative embodiment of the present invention, the step 102 may specifically include: searching a matched template in a local database by using the time identifier, the object identifier and the type identifier obtained by analyzing the characteristic information, wherein the local database stores the corresponding relation among the time identifier, the object identifier, the type identifier and the template; and determining the searched template as the template of the report to be generated.
Specifically, the feature information is analyzed to obtain a time identifier, an object identifier, and a type identifier, and a matched template is searched locally, and a corresponding relationship between the time identifier, the object identifier, and the type identifier and the template may be pre-established and stored in a local database. The time identifier may be used to identify a date corresponding to the report to be generated, the object identifier may be used to identify an industry or a service type corresponding to the report to be generated, the type identifier may be used to identify a corresponding data type, and a template of the report to be generated may be correspondingly matched according to the type of the identifier. For example, if the time identifier of the template 1 is 9-12 months, the object identifier is financial industry, the type identifier is numerical type, the time identifier of the template 2 is 4-11 months, the object identifier is financial industry, and the type identifier is image type, the template 2 can be determined as the template of the report to be generated according to the financial service trend graph of 10 months, which is the characteristic information carried in the report generation request.
In yet another optional embodiment of the present invention, to ensure the integrity of the added data, the method may further comprise: traversing and detecting all databases to judge whether the added data is complete; if not, searching incomplete data according to the type identification of the data area and adding the incomplete data to a specified display area of the template; and if so, determining that the added data is complete.
For the embodiment of the invention, after the data is added to the specified display area of the template, the data integrity of each display area in the report can be judged. Specifically, whether the added data is complete or not can be judged in a mode of traversing and detecting all preset databases, if the added data is incomplete, a database or an interface which is not subjected to data addition can be output, corresponding data is searched in the database and added to a specified display area, and if the added data is complete, complete information of the data is input.
For the embodiment of the present invention, the traversing and detecting all databases to determine whether the added data is complete specifically may include: and judging whether the access logs of each database have data query requests and response data or not, if so, determining that the added data is complete, and if not, determining that the added data is incomplete.
Specifically, an access log of each database is called, whether a data query request is received or not is searched in the access log, and corresponding response information is fed back. The database may include an internal database, as well as an external database. For example, if the data to be counted in the display area 1 in the report is the total number of premium sales in 10 months, it may be determined whether each of the internal and external databases storing the premium sales in 10 months receives the data query request and feeds back the corresponding response information, and if so, it may be determined that the added data is complete; otherwise, the added data may be determined to be incomplete.
Correspondingly, the traversing and detecting all the databases to judge whether the added data is complete may further include: and judging whether the calling time and the total calling times of each database interface are respectively matched with the data query time and the total data query times, if so, determining that the added data is complete, and if not, determining that the added data is incomplete.
The total calling times of each database interface can be the sum of the calling times of each database interface, and the calling time and the calling times can be searched through the interface calling logs of each database. The database interface may specifically include an inside-system interface and an outside-system interface. Specifically, whether the interface calling time and the report generating time in the database are matched or not and whether the total number of times of interface calling is matched with the number of calling databases are searched through an interface calling log. For example, if the time generated by the report is 12 o 'clock and 11 o' clock, and the data to be counted by the corresponding added display area a is the total number of premium sales in 10 months, then whether the database is called is searched in the interface call log corresponding to each database, and whether the called time is 12 o 'clock and 11 o' clock, if the call time and the call frequency are both matched, it may be determined that the added data is complete, otherwise, it may be determined that the added data is incomplete.
In another optional embodiment of the present invention, to reduce resource energy consumption and release the memory in time, the method may further include: when a deleting instruction is received, the generated report is stored in a preset storage structure and is timed, when the timing is greater than a preset time interval, a permanent deleting request is sent, and if the permanent deleting instruction is received, the report is permanently deleted from the specified storage structure.
The report can be deleted under two conditions in the report generation process, namely, the report generation can be cancelled at any time when the report is generated, and the report can be directly and completely cleared from the database; and secondly, after the report is generated, sending a report deleting instruction, storing the generated report in a preset storage structure, wherein the preset storage structure can be a recycle bin, timing is carried out through a built-in timing module, and when a preset time interval is reached, the report stored in the recycle bin is permanently cleared. Specifically, when a deletion instruction is received, the generated report can be transferred and stored to a recycle bin, and a storage period is set, for example, the report can be stored in the recycle bin for 30 days, when the storage period reaches 30 days, a request for permanently deleting the report is sent to a user, and if the permanent deletion instruction is received, the report is permanently deleted from the recycle bin; if the permanent deletion instruction is not received, the storage life can be prolonged, and if the storage life can be prolonged to 10 days, a permanent deletion request is sent to the user again.
Compared with the prior art that data is directly input into a report manually or the data is inserted into an area where the report should be displayed by utilizing an established report template, the report generation method provided by the invention has the advantages that a report generation request is received, and the request carries characteristic information of a report to be generated; determining the template of the report to be generated according to the identification information obtained by analyzing the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added. Therefore, the report template can be automatically generated, the data of the corresponding area can be analyzed and added, and the integrity of the data can be detected, so that the report generation efficiency is improved, and the error rate of the report data is reduced.
Further, as a specific implementation of fig. 1, an embodiment of the present invention provides a report generation apparatus, as shown in fig. 2, the apparatus includes: a receiving unit 21, a determining unit 22, an analyzing unit 23, and a generating unit 24.
The receiving unit 21 may be configured to receive a report generation request, where the request carries feature information of a report to be generated;
the determining unit 22 may be configured to determine the template of the report to be generated according to the feature information;
the analyzing unit 23 may be configured to correspondingly search data through the type identifier of each display area in the template, and analyze the data;
the generating unit 24 may be configured to add the analyzed data to the specified display area of the template, and respond to the report generation request by using a report generated after the data is added.
The analysis unit 23 includes:
the matching module 231 may be configured to analyze an information type in the data by using a preset natural language processing method, and match related knowledge data in a preset knowledge base according to the information type; and/or the presence of a gas in the gas,
the calling module 232 may be configured to obtain historical data of the same data type as the data type of the display area in a preset time period, and call an analysis algorithm corresponding to different data types to analyze the historical data.
Further, the calling module 232 may be further configured to perform overlap comparison on the image data of the display area and the historical image data, and mark an image area corresponding to the image pixel point with a difference; and/or the presence of a gas in the gas,
analyzing the character data of the display area by using a preset natural language processing method, extracting trend change words from historical character data according to the obtained keywords, and integrating the trend change words according to a preset sequence; and/or the presence of a gas in the gas,
and processing the numerical data of the display area and the historical numerical data to obtain average value data and probability density data, and arranging the average value data and the probability density data according to a specified sequence.
The determination unit 22 includes:
the searching module 221 may be configured to search a matched template in a local database by using the time identifier, the object identifier, and the type identifier obtained by analyzing the feature information, where the local database stores a correspondence between the time identifier, the object identifier, and the type identifier and the template;
the determining module 222 may be configured to determine the found template as the template of the report to be generated.
For the embodiment of the present invention, the apparatus further includes:
the detection unit 25 may be configured to perform traversal detection on all databases to determine whether the added data is complete; if not, searching incomplete data according to the type identification of the data area and adding the incomplete data to a specified display area of the template; and if so, determining that the added data is complete.
Further, the detection unit 25 includes:
the first determining module 251 may be configured to determine whether a data query request and response data exist in an access log of each database, determine that the added data is complete if the data query request and response data exist in the access log, and determine that the added data is incomplete if the data query request and response data do not exist in the access log of each database; and/or the presence of a gas in the gas,
the second determining module 252 may be configured to determine whether the call time and the total call frequency of each database interface are respectively matched with the data query time and the total data query frequency, determine that the added data is complete if the call time and the total call frequency are matched with the data query time and the total data query frequency, and determine that the added data is incomplete if the call time and the total call frequency are not matched with the data query time and the total data query frequency.
For the embodiment of the present invention, the apparatus further includes:
the deleting unit 26 may be configured to, when a deleting instruction is received, store the generated report in a preset storage structure and time, send a permanent deleting request when the time is greater than a preset time interval, and, if a permanent deleting instruction is received, permanently delete the report from the specified storage structure.
Compared with the prior art that data is directly input into a report manually or the data is inserted into an area where the report should be displayed by utilizing an established report template, the report generation device provided by the invention receives a report generation request, wherein the request carries characteristic information of a report to be generated; determining the template of the report to be generated according to the identification information obtained by analyzing the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added. Therefore, the report template can be automatically generated, the data of the corresponding area can be analyzed and added, and the integrity of the data can be detected, so that the report generation efficiency is improved, and the error rate of the report data is reduced.
It should be noted that other corresponding descriptions of the functional modules related to the report generating apparatus provided in the embodiment of the present invention may refer to the corresponding description of the method shown in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present invention further provides a storage medium, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform the following steps: receiving a report generation request, wherein the request carries characteristic information of a report to be generated; determining a template of the report to be generated according to the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
Based on the above-mentioned embodiments of the method shown in fig. 1 and the apparatus shown in fig. 2, the embodiment of the present invention further provides a computer device, as shown in fig. 3, including a processor (processor)31, a communication Interface (communication Interface)32, a memory (memory)33, and a communication bus 34. Wherein: the processor 31, the communication interface 32, and the memory 33 communicate with each other via a communication bus 34. A communication interface 34 for communicating with network elements of other devices, such as clients or other servers. The processor 31 is configured to execute a program, and may specifically execute relevant steps in the above report generation method embodiment. In particular, the program may include program code comprising computer operating instructions. The processor 31 may be a central processing unit CPU or a Specific Integrated circuit asic (application Specific Integrated circuit) or one or more Integrated circuits configured to implement an embodiment of the present invention.
The terminal comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs. And a memory 33 for storing a program. The memory 33 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The program may specifically be adapted to cause the processor 31 to perform the following operations: receiving a report generation request, wherein the request carries characteristic information of a report to be generated; determining a template of the report to be generated according to the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
According to the technical scheme, the report generation request can be received, and the request carries the characteristic information of the report to be generated; determining the template of the report to be generated according to the identification information obtained by analyzing the characteristic information; correspondingly searching data through the type identification of each display area in the template, and analyzing the data; and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added. Therefore, the report template can be automatically generated, the data of the corresponding area can be analyzed and added, and the integrity of the data can be detected, so that the report generation efficiency is improved, and the error rate of the report data is reduced.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in accordance with embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (10)

1. A report generation method, comprising:
receiving a report generation request, wherein the request carries characteristic information of a report to be generated;
determining a template of the report to be generated according to the characteristic information;
correspondingly searching data through the type identification of each display area in the template, and analyzing the data;
and adding the analyzed data into the appointed display area of the template, and responding to the report generation request by using the report generated after the data is added.
2. The method of claim 1, wherein the parsing the data comprises:
analyzing the information type in the data by using a preset natural language processing method, and matching relevant knowledge data in a preset knowledge base according to the information type; and/or the presence of a gas in the gas,
and acquiring historical data with the same data type as that of the display area in a preset time period, and calling analysis algorithms corresponding to different data types to analyze the historical data.
3. The method of claim 2, wherein the historical data comprises historical image data, historical text data and historical numerical data, and the invoking of the parsing algorithm corresponding to different data types to parse the historical data comprises:
overlapping and comparing the image data of the display area with the historical image data, and marking the image areas corresponding to the image pixel points with differences; and/or the presence of a gas in the gas,
analyzing the character data of the display area by using a preset natural language processing method, extracting trend change words from historical character data according to the obtained keywords, and integrating the trend change words according to a preset sequence; and/or the presence of a gas in the gas,
and processing the numerical data of the display area and the historical numerical data to obtain average value data and probability density data, and arranging the average value data and the probability density data according to a specified sequence.
4. The method of claim 1, wherein the determining the template of the report to be generated according to the feature information comprises:
searching a matched template in a local database by using the time identifier, the object identifier and the type identifier obtained by analyzing the characteristic information, wherein the local database stores the corresponding relation among the time identifier, the object identifier, the type identifier and the template;
and determining the searched template as the template of the report to be generated.
5. The method of claim 1, wherein after the adding the parsed data to the designated display area of the template and before the responding to the report generation request with the report generated after the adding the data, the method further comprises:
traversing and detecting all databases to judge whether the added data is complete;
if not, searching incomplete data according to the type identification of the data area and adding the incomplete data to a specified display area of the template;
and if so, determining that the added data is complete.
6. The method of claim 5, wherein the step of performing traversal check on all databases to determine whether the added data is complete comprises:
judging whether a data query request and response data exist in the access logs of each database, if so, determining that the added data is complete, and if not, determining that the added data is incomplete; and/or the presence of a gas in the gas,
and judging whether the calling time and the total calling times of each database interface are respectively matched with the data query time and the total data query times, if so, determining that the added data is complete, and if not, determining that the added data is incomplete.
7. The method of claim 1, further comprising:
when a deleting instruction is received, the generated report is stored in a preset storage structure and is timed, and when the timing is greater than a preset time interval, the report is permanently deleted from the specified storage structure.
8. A report generating apparatus, comprising:
a receiving unit, configured to receive a report generation request, where the request carries feature information of a report to be generated;
the determining unit is used for determining the template of the report to be generated according to the characteristic information;
the analysis unit is used for correspondingly searching data through the type identification of each display area in the template and analyzing the data;
and the generating unit is used for adding the analyzed data to the specified display area of the template and responding the report generating request by using the report generated after the data is added.
9. A storage medium having a computer program stored thereon, the storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the report generating method according to any one of claims 1-7.
10. A computer device comprising a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus, and the memory is configured to store at least one executable instruction that causes the processor to perform operations corresponding to the report generation according to any one of claims 1-7.
CN202010234636.8A 2020-03-30 2020-03-30 Report generation method and device, storage medium and computer equipment Active CN111553137B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010234636.8A CN111553137B (en) 2020-03-30 2020-03-30 Report generation method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010234636.8A CN111553137B (en) 2020-03-30 2020-03-30 Report generation method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111553137A true CN111553137A (en) 2020-08-18
CN111553137B CN111553137B (en) 2023-03-21

Family

ID=72004195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010234636.8A Active CN111553137B (en) 2020-03-30 2020-03-30 Report generation method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111553137B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527870A (en) * 2020-12-03 2021-03-19 北京百度网讯科技有限公司 Electronic report generation method and device, electronic equipment and storage medium
CN113778944A (en) * 2021-08-25 2021-12-10 上海派森诺医学检验所有限公司 Analysis report generation method and device and electronic equipment
CN115048915A (en) * 2022-08-17 2022-09-13 国网浙江省电力有限公司 Data processing method and system of electric power file based on operation platform
CN115796140A (en) * 2022-11-03 2023-03-14 广州天维信息技术股份有限公司 Report automatic generation method and device and report template configuration method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959229A (en) * 2018-07-17 2018-12-07 深圳市艾贝比品牌管理咨询有限公司 Planning report generation method, terminal and storage medium based on customer information
CN109471890A (en) * 2018-10-16 2019-03-15 深圳壹账通智能科技有限公司 Generation method, terminal device and the medium of report file
CN109669853A (en) * 2018-10-23 2019-04-23 深圳壹账通智能科技有限公司 Test report generation method and device, storage medium, electric terminal
CN110147541A (en) * 2019-05-23 2019-08-20 北京神州泰岳软件股份有限公司 A kind of generation method and device of economic report
US20200065387A1 (en) * 2018-08-24 2020-02-27 Royal Bank Of Canada Systems and methods for report processing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959229A (en) * 2018-07-17 2018-12-07 深圳市艾贝比品牌管理咨询有限公司 Planning report generation method, terminal and storage medium based on customer information
US20200065387A1 (en) * 2018-08-24 2020-02-27 Royal Bank Of Canada Systems and methods for report processing
CN109471890A (en) * 2018-10-16 2019-03-15 深圳壹账通智能科技有限公司 Generation method, terminal device and the medium of report file
CN109669853A (en) * 2018-10-23 2019-04-23 深圳壹账通智能科技有限公司 Test report generation method and device, storage medium, electric terminal
CN110147541A (en) * 2019-05-23 2019-08-20 北京神州泰岳软件股份有限公司 A kind of generation method and device of economic report

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527870A (en) * 2020-12-03 2021-03-19 北京百度网讯科技有限公司 Electronic report generation method and device, electronic equipment and storage medium
CN112527870B (en) * 2020-12-03 2023-09-12 北京百度网讯科技有限公司 Electronic report generation method, device, electronic equipment and storage medium
CN113778944A (en) * 2021-08-25 2021-12-10 上海派森诺医学检验所有限公司 Analysis report generation method and device and electronic equipment
CN115048915A (en) * 2022-08-17 2022-09-13 国网浙江省电力有限公司 Data processing method and system of electric power file based on operation platform
CN115796140A (en) * 2022-11-03 2023-03-14 广州天维信息技术股份有限公司 Report automatic generation method and device and report template configuration method and device
CN115796140B (en) * 2022-11-03 2023-09-05 广州天维信息技术股份有限公司 Report automatic generation and report template configuration method and device

Also Published As

Publication number Publication date
CN111553137B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN111553137B (en) Report generation method and device, storage medium and computer equipment
US8577884B2 (en) Automated analysis and summarization of comments in survey response data
EP1053527B1 (en) Mapping compliance information into useable format
US8880440B2 (en) Automatic combination and mapping of text-mining services
US11921737B2 (en) ETL workflow recommendation device, ETL workflow recommendation method and ETL workflow recommendation system
CN113934868A (en) Government affair big data management method and system
US10579651B1 (en) Method, system, and program for evaluating intellectual property right
CN113836131B (en) Big data cleaning method and device, computer equipment and storage medium
CN113420057A (en) Account checking data processing method and related device
CN115098440A (en) Electronic archive query method, device, storage medium and equipment
CN111191046A (en) Method, device, computer storage medium and terminal for realizing information search
CN111027832A (en) Tax risk determination method, apparatus and storage medium
CN112328868A (en) Credit evaluation and credit granting application system and method based on information data
CN109409091B (en) Method, device and equipment for detecting Web page and computer storage medium
CN115098766B (en) Bidding information recommendation method and system for electronic bidding transaction platform
CN114398562B (en) Shop data management method, device, equipment and storage medium
CN113626558B (en) Intelligent recommendation-based field standardization method and system
CN115756486A (en) Data interface analysis method and device
CN114495138A (en) Intelligent document identification and feature extraction method, device platform and storage medium
CN111045983A (en) Nuclear power station electronic file management method and device, terminal equipment and medium
CN110956552A (en) Insurance problem processing method, device, equipment and storage medium
CN111311329B (en) Tag data acquisition method, device, equipment and readable storage medium
Goossens et al. From OCEL to DOCEL–Datasets and Automated Transformation
Huang et al. Research on Publisher Topic Selection Based on Data Mining
CN114880573A (en) Free-job employee task recommendation method, electronic device and storage medium

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
TA01 Transfer of patent application right

Effective date of registration: 20220527

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Area H, 666 Beijing East Road, Huangpu District, Shanghai 200001

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

GR01 Patent grant
GR01 Patent grant