CN115081413A - Report generation method, device, system, equipment and medium - Google Patents

Report generation method, device, system, equipment and medium Download PDF

Info

Publication number
CN115081413A
CN115081413A CN202210697391.1A CN202210697391A CN115081413A CN 115081413 A CN115081413 A CN 115081413A CN 202210697391 A CN202210697391 A CN 202210697391A CN 115081413 A CN115081413 A CN 115081413A
Authority
CN
China
Prior art keywords
data
displayed
report
server
client
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
CN202210697391.1A
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN202210697391.1A priority Critical patent/CN115081413A/en
Publication of CN115081413A publication Critical patent/CN115081413A/en
Pending legal-status Critical Current

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/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • 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/174Form filling; Merging

Abstract

The invention discloses a report generation method, a report generation device, a report generation system, equipment and a medium. The method comprises the following steps: acquiring data identification of at least one item of data to be displayed input by a user, and detecting whether all the data to be displayed are stored in a client side according to the data identification of each item of data to be displayed; if the target data to be displayed is not stored, sending an information acquisition request to the server so that the server feeds back a report or the target data to be displayed corresponding to all the data to be displayed according to the current load state; if a report corresponding to each data to be displayed is received, providing the report to the user; and if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report for a user. The embodiment of the invention can dynamically generate the report according to the data loss condition of the client and the load state of the server.

Description

Report generation method, device, system, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, a device, and a medium for generating a report.
Background
With the rapid development of the internet, online users are increasing. Various data information can be presented to a user through the electronic equipment in a report mode, so that the user can intuitively and quickly master the data information.
In the related art, a report generation method is generally used in which each client sends a report generation request to a server, and then the server generates a report according to data, or each client generates a report according to the data. The report generation mode of the server generating the report according to the data has the defects that: if all data are already in the client, the data still need to be transmitted back to the server, then a report can be generated, and the data are transmitted back and forth, so that resource waste is caused; under the condition of high load, the server cannot respond to the report generation request in time, and the server has ultra-long waiting time and may influence other operations of the user. The report generation mode that each client generates a report according to the data has the defects that: the data of the client is incomplete, and necessary data for generating a report form are lost; the client has poor performance, possibly resulting in slow report generation speed, page blocking and poor experience.
Disclosure of Invention
The invention provides a report generation method, a report generation device, a report generation system, equipment and a report generation medium, which are used for solving the problems that a report generation mode in the related technology may cause resource waste, ultra-long waiting time occurs, or necessary data for generating a report is lost, the report generation speed is low, a page is blocked, and the experience is poor.
According to an aspect of the present invention, a report generation method is provided, which is applied to a client, and includes:
acquiring data identification of at least one item of data to be displayed input by a user, and detecting whether all the data to be displayed are stored in a client side according to the data identification of each item of data to be displayed;
if the target data to be displayed is not stored, sending an information acquisition request to a server so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed;
if a report corresponding to all the data to be displayed is received, providing the report to the user;
and if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report for the user.
According to another aspect of the present invention, there is provided a report generating method applied in a server, including:
receiving an information acquisition request sent by a client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client;
and feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
According to another aspect of the present invention, there is provided a report generating apparatus, configured in a client, including:
the data detection module is used for acquiring data identifications of at least one item of data to be displayed input by a user and detecting whether all the data to be displayed are stored in the client side according to the data identifications of the data to be displayed;
the request sending module is used for sending an information acquisition request to a server if target data to be displayed are not stored, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed;
the report receiving module is used for providing the report to the user if the report corresponding to all the data to be displayed is received;
and the data receiving module is used for merging the target data to be displayed and the stored data to be displayed into all data to be displayed if the target data to be displayed is received, generating a report according to all the data to be displayed, and providing the report for the user.
According to another aspect of the present invention, there is provided a report generation apparatus, configured in a server, including:
the request receiving module is used for receiving an information acquisition request sent by a client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client;
and the information feedback module is used for feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
According to another aspect of the present invention, there is provided a report generating system including:
the system comprises a client and a server corresponding to the client;
the client is used for acquiring data identification of at least one item of data to be displayed input by a user and detecting whether all the data to be displayed are stored in the client according to the data identification of each item of data to be displayed; if the target data to be displayed is not stored, sending an information acquisition request to the server so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed; if a report corresponding to all the data to be displayed is received, providing the report to the user; if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report to the user;
the server is used for receiving an information acquisition request sent by the client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client; and feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the report generating method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the report generation method according to any embodiment of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, whether all data to be displayed are stored in a client side is detected by acquiring the data identifier of at least one item of data to be displayed input by a user and according to the data identifier of each item of data to be displayed; under the condition that target data to be displayed are not stored, sending an information acquisition request to a server, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; then, under the condition that the report corresponding to all the data to be displayed is received, the report is provided for the user; under the condition of receiving target data to be displayed, combining the target data to be displayed and stored data to be displayed into all the data to be displayed, generating a report according to all the data to be displayed, and providing the report to a user, so that the problems that resource waste is possibly caused by a report generation mode in the related technology, ultra-long waiting time is generated, or necessary data for generating the report is lost, the report generation speed is low, page blocking is caused, and experience is poor are solved, when data which needs to be displayed in a report form is lost at a client, the report or the lost data is fed back to the client through a server according to a load state, so that the client can directly provide the report fed back by the server to the user, or generate the report according to the lost data and the stored data and provide the user with the report according to the data loss condition of the client, and the load state of the server are realized, the method has the advantages that the report forms are dynamically generated, and the calculation pressure for generating the report forms is dynamically distributed, so that the problems that resource waste, ultra-long waiting time, necessary data for generating the report forms are lost, the report forms are generated at a low speed, the page is blocked, the experience is poor and the like which are possibly caused by the fact that lists are generated through a server or a client side fixedly are avoided; when the client has complete data to be displayed in a report form, the report can be directly generated through the client, so that resource waste caused by data resource transmission between the client and the server back and forth is avoided; the report can be conveniently generated through a report engine arranged in the client, and the report template can be stored through a report template server, so that the data storage pressure of the server is reduced; when the client side lacks data which needs to be displayed in a report form and the server is in a high-load state, the client side generates the report according to the missing data returned by the server, when the client side lacks the data which needs to be displayed in the report form and the server is in a low-load state, the report is generated by the server, the report is dynamically generated according to the data missing condition of the client side and the load state of the server, the calculation pressure of generating the report is dynamically distributed, and the data processing pressure of the server can be relieved by the client side when the server is in the high-load state; the report can be conveniently generated through a report engine arranged in the server, and the report template can be stored through the report template server, so that the data storage pressure of the server is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a report generation method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a report generating method according to a second embodiment of the present invention.
Fig. 3A is a flowchart of a report generating method according to a third embodiment of the present invention.
Fig. 3B is a schematic diagram of a report generation process provided in the third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a report generating apparatus according to a fourth embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a report generating apparatus according to a fifth embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a report generating system according to a sixth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an electronic device implementing the report generation method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "object," "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a report generation method according to an embodiment of the present invention. The embodiment of the invention can be suitable for the situation that the client and the server dynamically generate the corresponding report according to the report generation request input by the user. The method can be executed by the report generation device provided by the embodiment of the invention, and the report generation device can be realized in a software and/or hardware mode and can be generally integrated in a client.
Optionally, the client is disposed in a terminal device of the user, and is configured to interact with the user and provide a report service for the user. The server is a background server corresponding to the client, establishes communication connection with the client, can perform information interaction with the client, and provides corresponding data or reports for the client.
As shown in fig. 1, the method includes:
step 101, acquiring a data identifier of at least one item of data to be displayed input by a user, and detecting whether all the data to be displayed are stored in a client according to the data identifier of each item of data to be displayed.
Optionally, the data to be displayed is data specified by the user and required to be displayed in a report form. The data which is specified by the user and needs to be displayed in a report form can be specified service index data and can also be specified performance index data.
Optionally, the obtaining of the data identifier of the at least one item of data to be displayed, which is input by the user, includes: and acquiring the data identifier of at least one item of data to be displayed input by the user through the report processing page.
Optionally, the report processing page is a page in the client for interacting with the user, acquiring various types of information input by the user and related to the report, and displaying the generated report to the user. The user can input the data identifier of at least one item of data to be displayed by filling or selecting the data identifier of at least one item of data to be displayed in the report processing page. The data identification is identification information for distinguishing different data. Different data corresponds to different data identifications.
Optionally, detecting whether all the data to be displayed are stored in the client according to the data identifier of each data to be displayed includes: inquiring data identifications identical to the data identifications of the data to be displayed in data identifications of various data stored in a local database of a client; if the data identification which is the same as the data identification of each piece of data to be displayed is inquired, determining that all pieces of data to be displayed are stored in the client; and if the target data to be displayed with the same data identification cannot be inquired exists in the data to be displayed, determining that the target data to be displayed is not stored in the client. The target data to be displayed is data to be displayed which is not stored in the client.
Alternatively, a local database of the client may be used to store a plurality of items of data associated with the client. And the local database of the client correspondingly stores the data and the data identification of the data.
Optionally, for each item of data to be displayed: if the data identifier identical to the data identifier of the data to be displayed is found in the data identifiers of the various data stored in the local database of the client, it is indicated that the data to be displayed is stored in the local database of the client, that is, the data to be displayed is stored in the client. If the data identifier identical to the data identifier of the data to be displayed is not found in the data identifiers of the various data stored in the local database of the client, it is indicated that the data to be displayed is not stored in the local database of the client, that is, the data to be displayed is not stored in the client.
And 102, if the target data to be displayed is not stored, sending an information acquisition request to a server so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request.
The information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed.
Optionally, the information obtaining request is used to request the server to feed back a report corresponding to all the data to be displayed or the target data to be displayed. The information acquisition request carries the data identification of the target data to be displayed and the stored data to be displayed. The stored data to be shown is the data to be shown stored in the client in each data to be shown.
Optionally, if the target data to be displayed is not stored, the client sends an information acquisition request to the server. And the server receives an information acquisition request sent by the client. And then the server feeds back the report corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
Optionally, the step of feeding back, by the server, the report corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request includes: the server detects the current load state of the server; if the current load state is a low load state, the server acquires the target data to be displayed according to the data identification of the target data to be displayed, combines the target data to be displayed and the stored data to be displayed into all data to be displayed, generates a report corresponding to all the data to be displayed according to all the data to be displayed, and feeds the report back to the client; and if the current load state is a high load state, the server acquires the target data to be displayed according to the data identification of the target data to be displayed and feeds the target data to be displayed back to the client.
Optionally, the current load state of the server is a load state of the server at the current time. The current load state of the server is a high load state or a low load state. The current load state of the server is a high load state, which indicates that many processes are running on the server at the current time, the load is high, the information acquisition request may not be responded in time, and the overlong waiting time may occur. The current load state of the server is a low load state, which indicates that the number of processes running on the server at the current moment is small, the load is low, and the information acquisition request can be responded in time.
Optionally, the server may determine the current load state of the server according to index data related to the load condition of the server, such as the utilization rate of a Central Processing Unit (CPU) of the server at the current time, the number of requests being processed, and the like.
Optionally, detecting the current load state of the server includes: acquiring the CPU utilization rate of a server at the current moment, and judging whether the CPU utilization rate is greater than a preset CPU utilization rate threshold value or not; if the request processing quantity is larger than a preset CPU utilization rate threshold value, determining that the current load state of the server is a high load state; and if the CPU utilization rate is less than or equal to a preset CPU utilization rate threshold value, determining that the current load state of the server is a low load state.
Optionally, if the current load state is a low load state, the server acquires the target data to be displayed according to the data identifier of the target data to be displayed, merges the target data to be displayed and the stored data to be displayed into all data to be displayed, generates a report corresponding to all the data to be displayed according to all the data to be displayed, and feeds the report back to the client.
Optionally, each item of data that can be viewed by the user is stored in a preset database in the server. The preset database correspondingly stores the data and the data identification of the data. The server acquires the target data to be displayed according to the data identifier of the target data to be displayed, and the method comprises the following steps: and acquiring data with the data identification same as that of the target data to be displayed in a preset database in the server. The data is the target data to be displayed.
Optionally, the target data to be displayed is data to be displayed that is not stored in the client in each piece of data to be displayed. The stored data to be shown is the data to be shown stored in the client in each data to be shown. The target data to be displayed and the stored data to be displayed form all data to be displayed. The server may merge the target data to be presented and the stored data to be presented into all data to be presented.
Optionally, the server generates a report corresponding to all the data to be displayed according to all the data to be displayed, including: the server sends the all data to be displayed to a report engine in the server, the report engine in the server is called to acquire a target report template corresponding to the all data to be displayed from a report template server, the all data to be displayed are filled into the target report template, and a report corresponding to the all data to be displayed is generated.
Optionally, the report engine in the server is an engine tool written by a developer and set in the server for generating a report. The reporting engine may be a JavaScript (JS) engine for generating reports. The server can call the report engine in the server by sending all the data to be displayed to the report engine in the server. After receiving all data to be displayed sent by the server, a report engine in the server acquires a target report template corresponding to all the data to be displayed from a report template server, fills all the data to be displayed into the target report template, and generates a report corresponding to all the data to be displayed.
Optionally, the server sends all the data to be displayed to a report engine in the server, calls the report engine in the server, and executes the following operations through the report engine in the server: acquiring a target report template corresponding to all the data to be displayed from all the report templates stored in the report template server according to the data identifiers of all the data to be displayed and the data identifiers corresponding to all the report templates stored in the report template server; and filling all the data to be displayed into the target report template, and generating a report corresponding to all the data to be displayed.
Optionally, the report template server is a server for storing the report template. The report template server may be a Content Delivery Network (CDN) server.
Optionally, the report template server stores a plurality of report templates of different report types. The report template is a template for generating a report. The report template may include a plurality of report cells for populating the data to be presented. And each report form cell is provided with a corresponding data identifier. The data identification corresponding to the report form cell is the data identification of the data to be displayed, which can be filled into the report form cell. And determining the data to be displayed which can be filled into each report cell according to the data identifier corresponding to each report cell in the report template, and then filling each data to be displayed into the corresponding report cell, thereby generating a report for displaying each data to be displayed.
Optionally, the data identifier corresponding to all report cells of the report template is the data identifier corresponding to the report template. The data identification corresponding to the report template is the data identification of each data to be displayed, which can be filled into the report template for display.
Optionally, obtaining a target report template corresponding to all the data to be displayed from each report template stored in the report template server according to the data identifier of all the data to be displayed and the data identifier corresponding to each report template stored in the report template server, includes: inquiring a report template containing data identifications of all the data to be displayed in corresponding data identifications in each report template stored in a report template server; and determining the inquired report template as a target report template corresponding to all the data to be displayed.
And the target report template corresponding to all the data to be displayed is a report template containing report cells for filling all the data to be displayed. The data identification corresponding to the report template comprises the data identification of all the data to be displayed, and the data identification indicates that all report cells of the report template comprise report cells for filling all the data to be displayed. And filling each data to be displayed in the all data to be displayed into the corresponding report form cell in the target report form template, thereby generating a report form for displaying all the data to be displayed.
Optionally, the step of filling all the data to be displayed into the target report template, and the report corresponding to all the data to be displayed includes: executing the following operations for each data to be displayed in all the data to be displayed: determining a target report form cell with the data identifier corresponding to the report form cell being the same as the data identifier of the data to be displayed in each report form cell of the target report form template; and filling the data to be displayed into the target report form cell.
Optionally, if the current load state is a high load state, the server obtains the target data to be displayed according to the data identifier of the target data to be displayed, and feeds the target data to be displayed back to the client.
And 103, if a report corresponding to all the data to be displayed is received, providing the report to the user.
Optionally, the client receives a report corresponding to all the data to be displayed, which is fed back by the server, and provides the report to the user.
Optionally, providing the report to the user includes: and the client provides the report to the user through a report processing page. And the client displays the report in a report display area provided by a report processing page, so that all the data to be displayed specified by the user are presented to the user in a report mode, and the user can intuitively and quickly master all the data to be displayed. The report display area is a page area for displaying reports in the report processing page.
And 104, if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report for the user.
Optionally, the client receives the target data to be displayed fed back by the server, merges the target data to be displayed and the stored data to be displayed into all data to be displayed, generates a report according to all the data to be displayed, and provides the report to the user.
Optionally, the target data to be displayed is data to be displayed that is not stored in the client in each piece of data to be displayed. The stored data to be shown is the data to be shown stored in the client in each data to be shown. The target data to be displayed and the stored data to be displayed form all data to be displayed. The client may merge the target data to be presented and the stored data to be presented into all data to be presented.
Optionally, the generating a report according to all the data to be displayed includes: and sending all the data to be displayed to a report engine in the client, calling the report engine in the client to acquire a target report template corresponding to all the data to be displayed from a report template server, and filling all the data to be displayed into the target report template to generate a report.
Therefore, the report can be conveniently generated through the report engine arranged in the client, the report template can be stored through the report template server, and the data storage pressure of the server is reduced.
Optionally, the report engine in the client is an engine tool written by a developer and set in the client for generating a report. The reporting engine may be a javascript (js) engine for generating reports. The client side can call the report engine in the client side by sending all the data to be displayed to the report engine in the client side. After receiving all data to be displayed sent by the client, a report engine in the client acquires a target report template corresponding to all the data to be displayed from a report template server, fills all the data to be displayed into the target report template, and generates a report.
Optionally, the client sends the all data to be displayed to a report engine in the client, calls the report engine in the client, and executes the following operations through the report engine in the client: acquiring a target report template corresponding to all the data to be displayed from all the report templates stored in the report template server according to the data identifiers of all the data to be displayed and the data identifiers corresponding to all the report templates stored in the report template server; and filling all the data to be displayed into the target report template to generate a report.
Optionally, obtaining a target report template corresponding to all the data to be displayed from each report template stored in the report template server according to the data identifier of all the data to be displayed and the data identifier corresponding to each report template stored in the report template server, includes: inquiring a report template containing data identifications of all the data to be displayed in corresponding data identifications in each report template stored in a report template server; and determining the inquired report template as a target report template corresponding to all the data to be displayed.
And the target report template corresponding to all the data to be displayed is a report template containing report cells for filling all the data to be displayed. The data identification corresponding to the report template comprises the data identification of all the data to be displayed, and the data identification indicates that all report cells of the report template comprise report cells for filling all the data to be displayed. And filling each data to be displayed in all the data to be displayed into the corresponding report form cell in the target report form template, thereby generating a report form for displaying all the data to be displayed.
Optionally, the step of filling all the data to be displayed into the target report template to generate a report includes: executing the following operations for each data to be displayed in all the data to be displayed: determining a target report form cell with the data identifier corresponding to the report form cell being the same as the data identifier of the data to be displayed in each report form cell of the target report form template; and filling the data to be displayed into the target report form cell.
Optionally, after detecting whether all the data to be displayed are stored in the client according to the data identifier of each data to be displayed, the method further includes: and if all the data to be displayed are stored, generating a report according to all the data to be displayed, and providing the report for the user.
Optionally, if all the data to be displayed are stored in the client, that is, all the data specified by the user and needing to be displayed in the form of a report are stored in the local database of the client, the client directly generates a report according to all the data to be displayed, and provides the report to the user.
Therefore, when the client has complete data which needs to be displayed in a report form, the report can be generated directly through the client, and resource waste caused by data resource transmission back and forth between the client and the server is avoided.
According to the technical scheme of the embodiment of the invention, whether all data to be displayed are stored in a client side is detected by acquiring the data identifier of at least one item of data to be displayed input by a user and according to the data identifier of each item of data to be displayed; under the condition that target data to be displayed are not stored, sending an information acquisition request to a server, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; then, under the condition that the report corresponding to all the data to be displayed is received, the report is provided for the user; under the condition of receiving target data to be displayed, combining the target data to be displayed and stored data to be displayed into all the data to be displayed, generating a report according to all the data to be displayed, and providing the report to a user, so that the problems that resource waste is possibly caused by a report generation mode in the related technology, ultra-long waiting time is generated, or necessary data for generating the report is lost, the report generation speed is low, page blocking is caused, and experience is poor are solved, when data which needs to be displayed in a report form is lost at a client, the report or the lost data is fed back to the client through a server according to a load state, so that the client can directly provide the report fed back by the server to the user, or generate the report according to the lost data and the stored data and provide the user with the report according to the data loss condition of the client, and the load state of the server are realized, the report is dynamically generated, and the calculation pressure for generating the report is dynamically distributed, so that the problems that a list is generated by a server or a client fixedly, the resource waste is possibly caused, the ultra-long waiting time is generated, the necessary data for generating the report is lost, the report generation speed is low, the page is blocked, the experience is poor and the like are avoided.
Example two
Fig. 2 is a flowchart of a report generating method according to a second embodiment of the present invention. The embodiment of the invention can be suitable for the situation that the server and the client dynamically generate the corresponding report according to the report generation request input by the user. The method can be executed by the report generation device provided by the embodiment of the invention, and the report generation device can be realized in a software and/or hardware mode and can be generally integrated in a server.
As shown in fig. 2, the method includes:
step 201, receiving an information acquisition request sent by a client.
The information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client.
Optionally, the information obtaining request is used to request the server to feed back a report corresponding to all the data to be displayed or the target data to be displayed. The information acquisition request carries the data identification of the target data to be displayed and the stored data to be displayed. The stored data to be shown is the data to be shown stored in the client in each data to be shown.
Step 202, according to the current load state of the server and the information acquisition request, feeding back the report corresponding to all the data to be displayed or the target data to be displayed to the client.
Optionally, the feeding back, according to the current load state of the server and the information acquisition request, the report corresponding to all the data to be displayed or the target data to be displayed to the client includes: detecting a current load state of the server; if the current load state is a low load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, merging the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report corresponding to all the data to be displayed according to all the data to be displayed, and feeding the report back to the client; and if the current load state is a high load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, and feeding back the target data to be displayed to the client.
Therefore, when the client side lacks data which needs to be displayed in a report form mode and the server is in a high-load state, the client side generates the report according to the missing data returned by the server, when the client side lacks the data which needs to be displayed in the report form mode and the server is in a low-load state, the report is generated through the server, the report is dynamically generated according to the data missing condition of the client side and the load state of the server, the calculation pressure of generating the report is dynamically distributed, and the data processing pressure of the server can be relieved through the client side when the server is in the high-load state.
Optionally, the current load state of the server is a load state of the server at the current time. The current load state of the server is a high load state or a low load state. The current load state of the server is a high load state, which indicates that many processes are running on the server at the current time, the load is high, the information acquisition request may not be responded in time, and the overlong waiting time may occur. The current load state of the server is a low load state, which indicates that the number of processes running on the server at the current moment is small, the load is low, and the information acquisition request can be responded in time.
Optionally, the server may determine the current load state of the server according to the CPU utilization of the server at the current time, the number of requests being processed, and other index data related to the load condition of the server.
Optionally, detecting the current load state of the server includes: acquiring the CPU utilization rate of a server at the current moment, and judging whether the CPU utilization rate is greater than a preset CPU utilization rate threshold value or not; if the request processing quantity is larger than a preset CPU utilization rate threshold value, determining that the current load state of the server is a high load state; and if the CPU utilization rate is less than or equal to a preset CPU utilization rate threshold value, determining that the current load state of the server is a low load state.
Optionally, if the current load state is a low load state, the server acquires the target data to be displayed according to the data identifier of the target data to be displayed, merges the target data to be displayed and the stored data to be displayed into all data to be displayed, generates a report corresponding to all the data to be displayed according to all the data to be displayed, and feeds the report back to the client.
Optionally, each item of data that can be viewed by the user is stored in a preset database in the server. The preset database correspondingly stores the data and the data identification of the data. The server acquires the target data to be displayed according to the data identifier of the target data to be displayed, and the method comprises the following steps: and acquiring data with the data identification same as that of the target data to be displayed in a preset database in the server. The data is the target data to be displayed.
Optionally, the target data to be displayed is data to be displayed that is not stored in the client in each piece of data to be displayed. The stored data to be shown is the data to be shown stored in the client in each data to be shown. The target data to be displayed and the stored data to be displayed form all data to be displayed. The server may merge the target data to be presented and the stored data to be presented into all data to be presented.
Optionally, the server generates a report corresponding to all the data to be displayed according to all the data to be displayed, including: the server sends the all data to be displayed to a report engine in the server, the report engine in the server is called to acquire a target report template corresponding to the all data to be displayed from a report template server, the all data to be displayed are filled into the target report template, and a report corresponding to the all data to be displayed is generated.
Therefore, the report can be conveniently generated through the report engine arranged in the server, the report template can be stored through the report template server, and the data storage pressure of the server is reduced
Optionally, the report engine in the server is an engine tool written by a developer and set in the server for generating a report. The reporting engine may be a JavaScript (JS) engine for generating reports. The server can call the report engine in the server by sending all the data to be displayed to the report engine in the server. After receiving all data to be displayed sent by the server, a report engine in the server acquires a target report template corresponding to all the data to be displayed from a report template server, fills all the data to be displayed into the target report template, and generates a report corresponding to all the data to be displayed.
Optionally, the server sends all the data to be displayed to a report engine in the server, calls the report engine in the server, and executes the following operations through the report engine in the server: acquiring a target report template corresponding to all the data to be displayed from all the report templates stored in the report template server according to the data identifiers of all the data to be displayed and the data identifiers corresponding to all the report templates stored in the report template server; and filling all the data to be displayed into the target report template, and generating a report corresponding to all the data to be displayed.
Optionally, the report template server is a server for storing the report template. The report template server may be a CDN server.
Optionally, the report template server stores a plurality of report templates of different report types. The report template is a template for generating a report. The report template may include a plurality of report cells for populating the data to be presented. And each report form cell is provided with a corresponding data identifier. The data identification corresponding to the report form cell is the data identification of the data to be displayed, which can be filled into the report form cell. And determining the data to be displayed which can be filled into each report cell according to the data identifier corresponding to each report cell in the report template, and then filling each data to be displayed into the corresponding report cell, thereby generating a report for displaying each data to be displayed.
Optionally, the data identifier corresponding to all report cells of the report template is the data identifier corresponding to the report template. The data identification corresponding to the report template is the data identification of each data to be displayed, which can be filled into the report template for display.
Optionally, obtaining a target report template corresponding to all the data to be displayed from each report template stored in the report template server according to the data identifier of all the data to be displayed and the data identifier corresponding to each report template stored in the report template server, includes: inquiring a report template containing data identifications of all the data to be displayed in corresponding data identifications in each report template stored in a report template server; and determining the inquired report template as a target report template corresponding to all the data to be displayed.
And the target report template corresponding to all the data to be displayed is a report template containing report cells for filling all the data to be displayed. The data identification corresponding to the report template comprises the data identification of all the data to be displayed, and the data identification indicates that all report cells of the report template comprise report cells for filling all the data to be displayed. And filling each data to be displayed in the all data to be displayed into the corresponding report form cell in the target report form template, thereby generating a report form for displaying all the data to be displayed.
Optionally, the step of filling all the data to be displayed into the target report template, and the report corresponding to all the data to be displayed includes: executing the following operations for each data to be displayed in all the data to be displayed: determining a target report form cell with the data identifier corresponding to the report form cell being the same as the data identifier of the data to be displayed in each report form cell of the target report form template; and filling the data to be displayed into the target report form cell.
Optionally, if the current load state is a high load state, the server obtains the target data to be displayed according to the data identifier of the target data to be displayed, and feeds the target data to be displayed back to the client.
The technical scheme of the embodiment of the invention comprises the steps of receiving an information acquisition request sent by a client, wherein the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed, the target data to be displayed is data to be displayed which is not stored in the client, then feeding back a report or the target data to be displayed corresponding to all the data to be displayed to the client according to the current load state of a server and the information acquisition request, solving the problems that resource waste is possibly caused by a report generation mode in the related technology, the ultra-long waiting time is caused, or necessary data for generating the report is lacked, the report generation speed is slow, page blocking is caused, and the experience is poor, feeding back the report or the lacked data to the client through the server according to the load state when the client lacks the data to be displayed in a report form, therefore, the client can directly provide the report fed back by the server to the user or generate the report according to the missing data and the stored data and provide the report to the user, so that the report is dynamically generated according to the data missing condition of the client and the load state of the server, and the calculation pressure for generating the report is dynamically distributed, thereby avoiding the problems of resource waste, overlong waiting time, missing necessary data for generating the report, low report generation speed, page jamming, poor experience and the like caused by the fact that a list is generated by the server or the client fixedly.
EXAMPLE III
Fig. 3A is a flowchart of a report generating method provided in the third embodiment of the present invention, including the following steps:
301, the client obtains a data identifier of at least one item of data to be displayed, which is input by a user, and detects whether all the data to be displayed are stored in the client according to the data identifier of each item of data to be displayed: if all the data to be displayed are stored, executing step 302; if the target data to be displayed is not stored, step 303 is executed.
And step 302, the client generates a report according to all the data to be displayed and provides the report to the user.
Step 303, the client sends an information acquisition request to the server.
The information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed.
Step 304, the server receives the information acquisition request sent by the client.
The information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client.
Step 305, the server detects the current load state of the server: if the current load state is a low load state, executing step 306; if the current load status is a high load status, go to step 308.
Step 306, the server acquires the target data to be displayed according to the data identifier of the target data to be displayed, combines the target data to be displayed and the stored data to be displayed into all data to be displayed, generates a report corresponding to all the data to be displayed according to all the data to be displayed, and feeds the report back to the client.
And 307, the client receives the report corresponding to all the data to be displayed fed back by the server, and provides the report to the user.
And 308, the server acquires the target data to be displayed according to the data identifier of the target data to be displayed and feeds the target data to be displayed back to the client.
Step 309, the client receives the target data to be displayed fed back by the server, merges the target data to be displayed and the stored data to be displayed into all the data to be displayed, generates a report according to all the data to be displayed, and provides the report to the user.
In a specific example, as shown in fig. 3B, if all the data to be displayed are stored in the client 311, the client 311 sends all the data to be displayed to the report engine 316 in the client, invokes the report engine 316 in the client to obtain a target report template corresponding to all the data to be displayed from the report template server 317, fills all the data to be displayed in the target report template, and generates the report 315. If the client 311 does not store the target data to be displayed, an information acquisition request is sent to the server 312, so that the server 312 feeds back a report or the target data to be displayed corresponding to all the data to be displayed according to the current load state 313 of the server and the information acquisition request. The server 312 receives the information acquisition request sent by the client 311. The server 312 detects the current load status 313 of the server. If the current load state 313 of the server is a low load state, the server 312 obtains the target data to be displayed according to the data identifier of the target data to be displayed, merges the target data to be displayed and the stored data to be displayed into all the data to be displayed, then sends all the data to be displayed to the report engine 314 in the server, and invokes the report engine 314 in the server to generate a report 315. If the current load state 313 of the server is a high load state, the server 312 obtains target data to be displayed according to the data identifier of the target data to be displayed, feeds the target data to be displayed back to the client 311, so that the client 311 merges the target data to be displayed and the stored data to be displayed into all data to be displayed, then sends all the data to be displayed to the report engine 316 in the client, calls the report engine 316 in the client to obtain a target report template corresponding to all the data to be displayed from the report template server 317, fills all the data to be displayed into the target report template, and generates a report 315.
According to the technical scheme of the embodiment of the invention, the report is dynamically generated according to the data loss condition of the client and the load state of the server, and the calculation pressure for generating the report is dynamically distributed as follows: when the client has complete data which needs to be displayed in a report form, generating a report directly through the client; when the client side lacks data which needs to be displayed in a report form and the server is in a high-load state, generating a report form according to the missing data returned by the server through the client side; when the client lacks data to be displayed in a report form and the server is in a low-load state, generating a report through the server; the data processing pressure of the server can be reduced through the client when the server is in a high-load state, the report can be generated directly through the client when the client has complete data which needs to be displayed in a report form, and the beneficial effect that resource waste caused by back-and-forth transmission of data resources between the client and the server is avoided.
Example four
Fig. 4 is a schematic structural diagram of a report generating apparatus according to a fourth embodiment of the present invention. The apparatus may be configured in a client. As shown in fig. 4, the apparatus includes: a data detection module 401, a request sending module 402, a report receiving module 403 and a data receiving module 404.
The data detection module 401 is configured to obtain a data identifier of at least one item of data to be displayed, which is input by a user, and detect whether all the data to be displayed are stored in a client according to the data identifier of each item of data to be displayed; a request sending module 402, configured to send an information obtaining request to a server if target data to be displayed is not stored, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to a current load state of the server and the information obtaining request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed; a report receiving module 403, configured to provide a report to the user if the report corresponding to all the data to be displayed is received; the data receiving module 404 is configured to, if the target data to be displayed is received, merge the target data to be displayed and the stored data to be displayed into all data to be displayed, generate a report according to all the data to be displayed, and provide the report to the user.
According to the technical scheme of the embodiment of the invention, whether all data to be displayed are stored in a client side is detected by acquiring the data identifier of at least one item of data to be displayed input by a user and according to the data identifier of each item of data to be displayed; under the condition that target data to be displayed are not stored, sending an information acquisition request to a server, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; then, under the condition that the report corresponding to all the data to be displayed is received, the report is provided for the user; under the condition of receiving target data to be displayed, combining the target data to be displayed and stored data to be displayed into all the data to be displayed, generating a report according to all the data to be displayed, and providing the report to a user, so that the problems that resource waste is possibly caused by a report generation mode in the related technology, ultra-long waiting time is generated, or necessary data for generating the report is lost, the report generation speed is low, page blocking is caused, and experience is poor are solved, when data which needs to be displayed in a report form is lost at a client, the report or the lost data is fed back to the client through a server according to a load state, so that the client can directly provide the report fed back by the server to the user, or generate the report according to the lost data and the stored data and provide the user with the report according to the data loss condition of the client, and the load state of the server are realized, the report is dynamically generated, and the calculation pressure for generating the report is dynamically distributed, so that the problems that a list is generated by a server or a client fixedly, the resource waste is possibly caused, the ultra-long waiting time is generated, the necessary data for generating the report is lost, the report generation speed is low, the page is blocked, the experience is poor and the like are avoided.
In an optional implementation manner of the embodiment of the present invention, optionally, the report generating apparatus further includes: and the report generation module is used for generating a report according to all the data to be displayed and providing the report for the user if all the data to be displayed are stored.
In an optional implementation manner of the embodiment of the present invention, optionally, when the data receiving module 404 or the report generating module executes an operation of generating a report according to all the data to be displayed, the data receiving module or the report generating module is specifically configured to: and sending all the data to be displayed to a report engine in the client, calling the report engine in the client to acquire a target report template corresponding to all the data to be displayed from a report template server, and filling all the data to be displayed into the target report template to generate a report.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a report generating apparatus according to a fifth embodiment of the present invention. The apparatus may be configured in a server. As shown in fig. 5, the apparatus includes: a request receiving module 501 and an information feedback module 502.
The request receiving module 501 is configured to receive an information obtaining request sent by a client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client; the information feedback module 502 is configured to feed back, to the client, a report corresponding to all data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request.
The technical scheme of the embodiment of the invention comprises the steps of receiving an information acquisition request sent by a client, wherein the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed, the target data to be displayed is data not stored in the client, then feeding back a report or target data to be displayed corresponding to all the data to be displayed to the client according to the current load state of a server and the information acquisition request, solving the problems that resource waste, ultra-long waiting time or necessary data for generating the report are lacked in a report generation mode in the related technology, the report generation speed is slow, page blocking and poor experience are caused, and feeding back the report or the lacked data to the client through the server according to the load state when the client lacked the data to be displayed in a report form, therefore, the client can directly provide the report fed back by the server to the user or generate the report according to the missing data and the stored data and provide the report to the user, so that the report is dynamically generated according to the data missing condition of the client and the load state of the server, and the calculation pressure for generating the report is dynamically distributed, thereby avoiding the problems of resource waste, overlong waiting time, missing necessary data for generating the report, low report generation speed, page jamming, poor experience and the like caused by the fact that a list is generated by the server or the client fixedly.
In an optional implementation manner of the embodiment of the present invention, optionally, the information feedback module 502 is specifically configured to: detecting a current load state of the server; if the current load state is a low load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, merging the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report corresponding to all the data to be displayed according to all the data to be displayed, and feeding the report back to the client; and if the current load state is a high load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, and feeding back the target data to be displayed to the client.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a report generating system according to a sixth embodiment of the present invention. As shown in fig. 6, the system includes: the system comprises a client 601 and a server 602 corresponding to the client 601.
The client 601 is configured to obtain a data identifier of at least one item of data to be displayed, which is input by a user, and detect whether all the data to be displayed are stored in the client 601 according to the data identifier of each item of data to be displayed; if the target data to be displayed is not stored, sending an information acquisition request to the server 602, so that the server 602 feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server 602 and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed; if a report corresponding to all the data to be displayed is received, providing the report to the user; if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report to the user; the server 602 is configured to receive an information acquisition request sent by the client 601; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client 601; and feeding back a report corresponding to all the data to be displayed or the target data to be displayed to the client 601 according to the current load state of the server 602 and the information acquisition request.
According to the technical scheme of the embodiment of the invention, whether all data to be displayed are stored in a client side is detected by acquiring the data identifier of at least one item of data to be displayed input by a user and according to the data identifier of each item of data to be displayed; under the condition that target data to be displayed are not stored, sending an information acquisition request to a server, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; then, under the condition that the report corresponding to all the data to be displayed is received, providing the report for a user; under the condition of receiving target data to be displayed, combining the target data to be displayed and stored data to be displayed into all the data to be displayed, generating a report according to all the data to be displayed, and providing the report to a user, so that the problems that resource waste is possibly caused by a report generation mode in the related technology, ultra-long waiting time is generated, or necessary data for generating the report is lost, the report generation speed is low, page blocking is caused, and experience is poor are solved, when data which needs to be displayed in a report form is lost at a client, the report or the lost data is fed back to the client through a server according to a load state, so that the client can directly provide the report fed back by the server to the user, or generate the report according to the lost data and the stored data and provide the user with the report according to the data loss condition of the client, and the load state of the server are realized, the report is dynamically generated, and the calculation pressure for generating the report is dynamically distributed, so that the problems that a list is generated by a server or a client fixedly, the resource waste is possibly caused, the ultra-long waiting time is generated, the necessary data for generating the report is lost, the report generation speed is low, the page is blocked, the experience is poor and the like are avoided.
EXAMPLE seven
Fig. 7 shows a schematic structural diagram of an electronic device 10 that can be used to implement the report generation method according to the embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 7, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program built from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the report generation method.
In some embodiments, the report generation method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the report generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the report generation method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Computer programs for implementing the report generation methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A report generation method is applied to a client and comprises the following steps:
acquiring data identification of at least one item of data to be displayed input by a user, and detecting whether all the data to be displayed are stored in a client side according to the data identification of each item of data to be displayed;
if the target data to be displayed is not stored, sending an information acquisition request to a server so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed;
if a report corresponding to all the data to be displayed is received, providing the report to the user;
and if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report for the user.
2. The method according to claim 1, after detecting whether all the data to be displayed are stored in the client according to the data identifier of each data to be displayed, further comprising:
and if all the data to be displayed are stored, generating a report according to all the data to be displayed, and providing the report for the user.
3. The method according to claim 1 or 2, wherein the generating a report according to the all data to be displayed comprises:
and sending all the data to be displayed to a report engine in the client, calling the report engine in the client to acquire a target report template corresponding to all the data to be displayed from a report template server, and filling all the data to be displayed into the target report template to generate a report.
4. A report generation method is applied to a server and comprises the following steps:
receiving an information acquisition request sent by a client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client;
and feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
5. The method according to claim 4, wherein the feeding back, to the client, the report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request comprises:
detecting a current load state of the server;
if the current load state is a low load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, merging the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report corresponding to all the data to be displayed according to all the data to be displayed, and feeding the report back to the client;
and if the current load state is a high load state, acquiring the target data to be displayed according to the data identification of the target data to be displayed, and feeding back the target data to be displayed to the client.
6. A report generation device, configured in a client, comprising:
the data detection module is used for acquiring data identifications of at least one item of data to be displayed input by a user and detecting whether all the data to be displayed are stored in the client side according to the data identifications of the data to be displayed;
the request sending module is used for sending an information acquisition request to a server if target data to be displayed are not stored, so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed;
the report receiving module is used for providing the report to the user if the report corresponding to all the data to be displayed is received;
and the data receiving module is used for merging the target data to be displayed and the stored data to be displayed into all data to be displayed if the target data to be displayed is received, generating a report according to all the data to be displayed, and providing the report for the user.
7. A report generation device, which is provided in a server, comprising:
the request receiving module is used for receiving an information acquisition request sent by a client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client;
and the information feedback module is used for feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
8. A report generation system, comprising:
the system comprises a client and a server corresponding to the client;
the client is used for acquiring data identification of at least one item of data to be displayed input by a user and detecting whether all the data to be displayed are stored in the client according to the data identification of each item of data to be displayed; if the target data to be displayed is not stored, sending an information acquisition request to the server so that the server feeds back a report corresponding to all the data to be displayed or the target data to be displayed according to the current load state of the server and the information acquisition request; the information acquisition request carries a data identifier of the target data to be displayed and stored data to be displayed; if a report corresponding to all the data to be displayed is received, providing the report to the user; if the target data to be displayed is received, combining the target data to be displayed and the stored data to be displayed into all data to be displayed, generating a report according to all the data to be displayed, and providing the report to the user;
the server is used for receiving an information acquisition request sent by the client; the information acquisition request carries a data identifier of target data to be displayed and stored data to be displayed; the target data to be displayed is data to be displayed which is not stored in the client; and feeding back a report form corresponding to all the data to be displayed or the target data to be displayed to the client according to the current load state of the server and the information acquisition request.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the report generating method of any of claims 1-3 or the report generating method of any of claims 4-5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor, when executed, to implement the report generation method of any of claims 1-3 or the report generation method of any of claims 4-5.
CN202210697391.1A 2022-06-20 2022-06-20 Report generation method, device, system, equipment and medium Pending CN115081413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210697391.1A CN115081413A (en) 2022-06-20 2022-06-20 Report generation method, device, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210697391.1A CN115081413A (en) 2022-06-20 2022-06-20 Report generation method, device, system, equipment and medium

Publications (1)

Publication Number Publication Date
CN115081413A true CN115081413A (en) 2022-09-20

Family

ID=83252793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210697391.1A Pending CN115081413A (en) 2022-06-20 2022-06-20 Report generation method, device, system, equipment and medium

Country Status (1)

Country Link
CN (1) CN115081413A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329733A (en) * 2022-10-10 2022-11-11 深圳高灯计算机科技有限公司 Report form statistical method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115329733A (en) * 2022-10-10 2022-11-11 深圳高灯计算机科技有限公司 Report form statistical method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115081413A (en) Report generation method, device, system, equipment and medium
CN112860401B (en) Task scheduling method, device, electronic equipment and storage medium
CN115103024B (en) Sequence number generation method and device, electronic equipment and storage medium
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN115509714A (en) Task processing method and device, electronic equipment and storage medium
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
CN111555894B (en) Data processing method, device, equipment and storage medium
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN115577958A (en) Risk processing method, device, equipment and storage medium
CN114584605B (en) Service distribution method and device, electronic equipment and storage medium
CN113313196B (en) Labeling data processing method, related device and computer program product
CN114416040A (en) Page construction method, device, equipment and storage medium
CN115344637A (en) Data management system, method, device, electronic equipment and storage medium
CN115034927A (en) Data processing method and device, electronic equipment and storage medium
CN117493000A (en) Task processing method, device, equipment and medium
CN116801001A (en) Video stream processing method and device, electronic equipment and storage medium
CN115203139A (en) Log query method and device, electronic equipment and storage medium
CN115665256A (en) Task processing method and device, electronic equipment and storage medium
CN115587137A (en) Data batch operation method, device and equipment based on zabbix and storage medium
CN116312917A (en) Inspection report generation method and device, electronic equipment and storage medium
CN113612679A (en) Message verification method and device, electronic equipment and storage medium
CN115168760A (en) Data query method, device and storage medium
CN115599734A (en) Data acquisition method and device, electronic equipment and storage medium
CN116089499A (en) Data statistics method, device and medium based on kafka data volume
CN117119064A (en) Request data processing method, device, equipment 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