Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a report pushing method, a report pushing device, a terminal device, and a storage medium, which can push report data in a report system to an exchange group corresponding to an enterprise and prompt abnormal data, and facilitate management personnel to know business data of the enterprise in time.
In order to solve the above problem, a first aspect of the embodiments of the present application provides a report pushing method, which at least includes the following steps:
acquiring a configuration file of a report system, and extracting to obtain first report configuration data;
acquiring report data of each user in the report system in real time through a server;
merging the report data of each user according to the report rules in the first report configuration data to generate a corresponding first report graph;
monitoring the first report chart in real time according to a preset report operation index rule, and judging whether a report operation index in the first report chart is normal or not;
if yes, the first report form image is uploaded to a server and then pushed to normal group chat of enterprise office software;
and if not, pushing the first report form picture to the abnormal pushing group chat of the enterprise office software.
In a possible implementation manner of the first aspect, the report pushing method further includes:
and configuring report generation content, a timing push rule, a push target and a report log of the report system by setting a configuration file of the report system in a visual page.
In a possible implementation manner of the first aspect, the obtaining a configuration file of a reporting system further includes:
and analyzing the API development document of the enterprise office software to obtain second report configuration data.
In a possible implementation manner of the first aspect, the method further includes:
and combining the report data of each user according to the report rules in the first report configuration data and the second report configuration data to generate a corresponding second report graph.
In one possible implementation form of the first aspect, the reporting diagram includes employee performance, an employee representation, and a customer representation.
In a possible implementation manner of the first aspect, the report pushing method further includes:
and checking the report log generated by the report system through the visual page, and confirming the number of tasks required to be completed and the number of failed tasks on the same day.
In a possible implementation manner of the first aspect, before the generating the corresponding report graph, the method further includes:
analyzing and generating the execution time of the report chart task through a Cron expression, and adding the task into a task queue to wait for the report system to execute when the trigger time is reached.
A second aspect of the embodiments of the present application provides a report pushing apparatus, including:
the report configuration data acquisition module is used for acquiring a configuration file of a report system and extracting to obtain first report configuration data;
the user report data acquisition module is used for acquiring report data of each user in the report system in real time through the server;
the report graph generating module is used for combining the report data of each user according to the report rules in the first report configuration data to generate a corresponding first report graph;
the report index monitoring module is used for monitoring the first report chart in real time according to a preset report operation index rule and judging whether the report operation index in the first report chart is normal or not;
the report pushing module is used for uploading the first report graph to a server and then pushing the report graph to normal group chat of enterprise office software when the report operation index in the first report graph is judged to be normal; and when the report operation index in the first report graph is judged to be abnormal, pushing the first report graph to abnormal pushing group chat of enterprise office software.
A third aspect of the embodiments of the present application provides a terminal device for pushing a report, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the report pushing method as described above when executing the computer program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the above report pushing method.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a report pushing method, a report pushing device, a terminal device and a storage medium, wherein the method comprises the following steps: acquiring a configuration file of a report system, and extracting to obtain first report configuration data; acquiring report data of each user in a report system in real time through a server; merging the report data of each user according to the report rules in the first report configuration data to generate a corresponding first report graph; monitoring the first report chart in real time according to a preset report operation index rule, and judging whether the report operation index in the first report chart is normal or not; if yes, the first report form image is uploaded to a server and then pushed to normal group chat of enterprise office software; and if not, pushing the first report form picture to the abnormal pushing group chat of the enterprise office software.
Compared with the prior art, the embodiment of the invention can realize the pushing of the report data in the report system to the corresponding communication group of the enterprise and the reminding of abnormal data, is convenient for leaders at all levels of the company to check data such as achievement, employee portrait, client portrait and the like, is convenient for managers to know the business data of the enterprise in time, improves the management efficiency of the enterprise, and shortens the maintenance cost and the time cost; through API document development of a report system or enterprise office software, the report data is pushed to a corresponding group chat, and related operations are realized in a scheduling system, so that related personnel can conveniently perform visual operations, the learning cost is reduced, and the operation efficiency is improved; in addition, when the report data is abnormal or the indexes are not in the normal range, related abnormal reminding is carried out, and the maintenance cost of an enterprise is reduced.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below by combining the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all 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 application.
In the description of the present application, it is to be understood that the terms "first", "second", and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
First, the application scenarios that can be provided by the present invention are introduced, for example, a method for pushing report data and reminding an exception is provided.
The first embodiment of the present invention:
please refer to fig. 1-2.
As shown in fig. 1, this embodiment provides a report pushing method, which at least includes the following steps:
and S1, acquiring the configuration file of the report system, and extracting to obtain first report configuration data.
Specifically, in step S1, first, the local configuration files of the reporting systems corresponding to different enterprises are obtained, and the corresponding first reporting configuration data is extracted from the configuration files.
In a preferred embodiment, before step S1, the report pushing method further includes:
and configuring report generation content, a timing push rule, a push target and a report log of the report system by setting a configuration file of the report system in a visual page.
And S2, collecting report data of each user in the report system in real time through the server.
Specifically, in step S2, the server collects, in real time, first report data of all users generated according to the first report configuration data in the enterprise report system, and stores the first report data in the local database of the report system.
And S3, merging the report data of each user according to the report rules in the first report configuration data, and generating a corresponding first report graph.
Specifically, for step S3, the first report data of each user is merged according to the relevant report rule in the first report configuration data, so as to generate the corresponding first report graph according to the report rule.
S4, monitoring the first report chart in real time according to a preset report operation index rule, and judging whether the report operation index in the first report chart is normal or not.
S41, if yes, the first report form image is uploaded to a server and then pushed to normal group chat of enterprise office software;
and S42, if not, pushing the first report form picture to the abnormal push group chat of the enterprise office software.
Specifically, firstly, a manager sets a report operation index rule in advance in a report system, so that after a first report graph is generated, report operation indexes in the first report graph are monitored according to the report operation index rule to judge whether the report operation indexes are normal or not. If the judgment is normal, the first report form image is uploaded to a server for storage, and the report form image is pushed to normal group chat of enterprise office software where the corresponding user is located through the server. If the report is judged to be abnormal, the report is directly pushed to the abnormal pushing group chat of the enterprise office software, so that related personnel can process the report in time according to the pushed error information, and the maintenance cost is reduced.
In a preferred embodiment, the reporting diagram includes employee performance, an employee representation, and a customer representation.
Specifically, the report graph in this embodiment includes, but is not limited to, employee performance, employee portrait, and customer portrait, and the content in the report graph may be set according to the user's needs.
In a preferred embodiment, the report pushing method further includes:
and checking the report log generated by the report system through the visual page, and confirming the number of tasks required to be completed and the number of failed tasks on the same day.
Specifically, the embodiment further provides a visual operation page, so that a user can check the report log page generated by the report system, confirm the number of tasks that need to be completed and the number of failed tasks on the same day, and directly perform visual operation on the current page, thereby improving the efficiency of editing the report.
In addition, the user can also set the report generation and pushing tasks on the configuration page of the report system through the visual operation page, so that the flexibility and the practicability of the report system are improved; and the report can be pushed again on the visual operation page, and the updated report data is pushed again after the report is edited and modified. The method can solve the problems of invisible processing and poor interactivity of the nail report form pushing background, performs visual operation on functions of nail pushing such as configuration, operation scheduling and log query, and realizes related pushing operation on a page by combining the front end with the background interface.
In a preferred embodiment, before the generating the corresponding report graph, the method further includes:
analyzing and generating the execution time of the report chart task through a Cron expression, and adding the task into a task queue to wait for the report system to execute when the trigger time is reached.
Specifically, in this embodiment, a task of pushing a report at regular time can be set, the execution time of the task of generating and pushing a report graph is analyzed through a Cron expression, and when the trigger time is reached, the task is added into a task queue to wait for the execution of the report system, so that the orderliness and the stability of the report system are ensured.
In a preferred embodiment, the obtaining the configuration file of the reporting system further includes:
analyzing the API development document of the enterprise office software to obtain second report configuration data;
and then, combining the report data of each user according to the report rules in the first report configuration data and the second report configuration data to generate a corresponding second report graph.
Specifically, the embodiment further provides a second report configuration data obtained by analyzing the API development document of the enterprise office software, and combines the first report configuration data obtained from the report system, so as to combine the report data of each user with the report rules in the two types of report configuration data, and generate a second report graph with higher comprehensiveness and comprehensiveness; after the second report graph is generated, the subsequent index monitoring and pushing steps are similar to those of the first report graph described above and will not be described in detail herein.
As shown in fig. 2, this embodiment provides a specific implementation of a report pushing method, taking nailing software as an example, first analyzing a report system and a nailing API development document, obtaining configuration of the nailing software, and generating a picture according to report data generated by the nailing configuration; monitoring the report pushing operation indexes, monitoring whether the report pushing operation indexes are normal or not, if the report pushing operation indexes are normal, uploading the report pushing operation indexes to a nail server, and pushing the report pushing operation indexes to a nail group chat; if not, the nail is directly pushed to the abnormal nail pushing group, so that the related personnel can conveniently and timely handle the nail.
The report pushing method provided by the embodiment comprises the following steps: acquiring a configuration file of a report system, and extracting to obtain first report configuration data; acquiring report data of each user in a report system in real time through a server; merging the report data of each user according to the report rules in the first report configuration data to generate a corresponding first report graph; monitoring the first report chart in real time according to a preset report operation index rule, and judging whether the report operation index in the first report chart is normal or not; if yes, the first report form image is uploaded to a server and then pushed to normal group chat of enterprise office software; and if not, pushing the first report form picture to the abnormal pushing group chat of the enterprise office software.
The embodiment can realize the pushing of the report data in the report system to the corresponding communication group of the enterprise and the reminding of abnormal data, is convenient for leaders at all levels of the enterprise to check data such as achievement, employee portrait, client portrait and the like, is convenient for managers to know the business data of the enterprise in time, improves the management efficiency of the enterprise, and shortens the maintenance cost and the time cost; through API document development of a report system or enterprise office software, the report data is pushed to a corresponding group chat, and related operations are realized in a scheduling system, so that related personnel can conveniently perform visual operations, the learning cost is reduced, and the operation efficiency is improved; in addition, when the report data is abnormal or the index is not in the normal range, related abnormal reminding is carried out, and the maintenance cost of an enterprise is reduced; and directly performing the operation of re-pushing on the visual operation page after the abnormal report is processed, thereby improving the efficiency of correcting the report.
Second embodiment of the invention:
please refer to fig. 3.
As shown in fig. 3, this embodiment provides a report pushing apparatus, including:
the report configuration data obtaining module 100 is configured to obtain a configuration file of the report system, and extract to obtain first report configuration data.
Specifically, for the report configuration data obtaining module 100, the local configuration files of the report systems corresponding to different enterprises are obtained first, and the corresponding first report configuration data is extracted from the configuration files.
And the user report data acquisition module 200 is used for acquiring the report data of each user in the report system in real time through the server.
Specifically, for the user report data collection module 200, the first report data of all users generated according to the first report configuration data in the enterprise report system is collected in real time by the server and stored in the local database of the report system.
And the report map generation module 300 is configured to combine the report data of each user according to the report rule in the first report configuration data, and generate a corresponding first report map.
Specifically, for the report graph generating module 300, the first report data of each user is merged according to the related report rule in the first report configuration data, so as to generate the corresponding first report graph according to the report rule.
The report index monitoring module 400 is configured to monitor the first report graph in real time according to a preset report operation index rule, and determine whether a report operation index in the first report graph is normal.
The report pushing module 500 is configured to, when it is determined that the report operation index in the first report graph is normal, upload the first report graph to a server and then push the report graph to a normal group chat of the enterprise office software; and when the report operation index in the first report graph is judged to be abnormal, pushing the first report graph to abnormal pushing group chat of enterprise office software.
Specifically, for the report index monitoring module 400 and the report pushing module 500, firstly, a manager sets a report operation index rule in advance in the report system, so that after a first report graph is generated, the report operation index in the first report graph is monitored according to the report operation index rule to determine whether the report operation index is normal. If the judgment is normal, the first report form image is uploaded to a server for storage, and the report form image is pushed to normal group chat of enterprise office software where the corresponding user is located through the server. If the report is judged to be abnormal, the report is directly pushed to the abnormal pushing group chat of the enterprise office software, so that related personnel can process the report in time according to the pushed error information, and the maintenance cost is reduced.
The report pushing device provided by this embodiment includes: the report configuration data acquisition module 100 is configured to acquire a configuration file of a report system and extract to obtain first report configuration data; the user report data acquisition module 200 is used for acquiring report data of each user in the report system in real time through a server; the report graph generating module 300 is configured to combine the report data of each user according to the report rule in the first report configuration data, and generate a corresponding first report graph; the report index monitoring module 400 is configured to monitor the first report drawing in real time according to a preset report operation index rule, and determine whether a report operation index in the first report drawing is normal; the report pushing module 500 is configured to, when it is determined that the report operation index in the first report graph is normal, upload the first report graph to a server and then push the report graph to a normal group chat of the enterprise office software; and when the report operation index in the first report graph is judged to be abnormal, pushing the first report graph to abnormal pushing group chat of enterprise office software.
The embodiment can realize the pushing of the report data in the report system to the corresponding communication group of the enterprise and the reminding of abnormal data, is convenient for leaders at all levels of the enterprise to check data such as achievement, employee portrait, client portrait and the like, is convenient for managers to know the business data of the enterprise in time, improves the management efficiency of the enterprise, and shortens the maintenance cost and the time cost; through API document development of a report system or enterprise office software, the report data is pushed to a corresponding group chat, and related operations are realized in a scheduling system, so that related personnel can conveniently perform visual operations, the learning cost is reduced, and the operation efficiency is improved; in addition, when the report data is abnormal or the index is not in the normal range, related abnormal reminding is carried out, and the maintenance cost of an enterprise is reduced; and directly performing the operation of re-pushing on the visual operation page after the abnormal report is processed, thereby improving the efficiency of correcting the report.
The embodiment also provides a terminal device for pushing a report, which includes a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, and the processor implements the report pushing method as described above when executing the computer program.
The embodiment also provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, where when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the report pushing method described above.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules may be a logical division, and in actual implementation, there may be another division, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is directed to the preferred embodiment of the present invention, and it is understood that various changes and modifications may be made by one skilled in the art without departing from the spirit of the invention, and it is intended that such changes and modifications be considered as within the scope of the invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.