Data processing method and related device

Through the combination of timing tasks and objective functions, data is automatically converted into pictures and sent to the enterprise WeChat group, solving the problems of low efficiency and low accuracy in the existing technology, and achieving more efficient and accurate data processing and image sending.

CN119946006APending Publication Date: 2025-05-06BEIJING SHANGYIN MICRO CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510018625.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, when frequently sending pictures generated based on data to the enterprise WeChat group, there are problems of low efficiency and low accuracy, especially when the amount of data is large.

Method used

Automatically query and obtain target data through timing tasks, use the pre-encapsulated objective function to process data to generate pictures, and automatically send pictures through the API interface of the robot assistant of the enterprise WeChat group.

Benefits of technology

It realizes that data can be automatically converted into pictures and sent to the enterprise WeChat group without manual operations, improving data processing efficiency and accuracy, as well as the efficiency and accuracy of image sending.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119946006A_ABST
    Figure CN119946006A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and a related device, and relates to the technical field of data processing. Comprising the steps of querying and obtaining target data through a timed task; processing the target data through a target function called by the timed task to generate a target picture; and sending the target picture to the enterprise WeChat group through an API interface of a robot assistant of the enterprise WeChat group called by the target function. According to the scheme, the target data can be automatically converted into the target picture without manual operation, and the target picture is sent to the enterprise WeChat group; compared with a scheme of processing the target data through manual operation and then sending the target picture generated based on the target data to the enterprise WeChat group, the scheme in the application is higher in data processing efficiency, higher in data processing accuracy and higher in picture sending efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and related devices. Background Art

[0002] With the widespread use of enterprise WeChat groups, it is often necessary to frequently send pictures generated based on data to the enterprise WeChat group for analysis and use by employees in the group. Currently, the above work is usually done manually. For example, manually fill the target data into an EXCEL table, manually generate pictures through functions or tools in the EXCEL table, and then distribute the generated pictures to the enterprise WeChat group. Since a large amount of manual operations are involved, there are problems of low efficiency and low accuracy when the amount of data is large. Therefore, how to efficiently and accurately convert data into pictures and send them to the enterprise WeChat group has become one of the technical problems that need to be solved in the field of data processing technology. Summary of the invention

[0003] Based on the above problems, the present application provides a data processing method and related devices. The embodiments of the present application disclose the following technical solutions:

[0004] The first aspect of the present application discloses a data processing method, comprising:

[0005] Query and obtain target data through scheduled tasks; the scheduled tasks are program files that automatically execute preset tasks at preset time points;

[0006] The target function retrieved by the scheduled task processes the target data to generate a target image; the target function is a pre-encapsulated function for processing data to generate an image;

[0007] The target image is sent to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

[0008] In an optional implementation, the step of constructing the objective function includes:

[0009] Create a ChartsService interface and a ChartsServiceImpl implementation class in the development environment; the ChartsService interface is used to declare the method of constructing a function and is used for the scheduled task to call; the ChartsServiceImpl implementation class is used to implement the method of constructing a function defined in the ChartsService interface;

[0010] In the creation of the ChartsServiceImpl implementation class, the objective function is constructed through the underlying interface of the chart library corresponding to the development environment; the underlying interface of the chart library is used to set the picture title, axis labels and data series.

[0011] In an optional implementation, the development environment is a Java development environment, and the steps of constructing the scheduled task include:

[0012] Based on the Java development environment and Spring Boot project, build the first task;

[0013] Introduce the Java chart library into the first task to obtain the second task;

[0014] A Java timer is created in the second task, and the preset time point is set in the Java timer to obtain the scheduled task.

[0015] In an optional implementation, the method for obtaining the API interface of the robot assistant includes:

[0016] Obtaining a Webhook address corresponding to the number of the robot assistant from a configuration file of the development environment;

[0017] The API interface of the robot assistant of the enterprise WeChat group is called through the Webhook address.

[0018] In an optional implementation, after acquiring the target data, the method further includes:

[0019] Preprocessing the target data to obtain assembled data; the preprocessing operation includes an operation of screening out target data in a target time period and / or a data formatting operation;

[0020] The target function retrieved by the scheduled task processes the target data to generate a target image, including:

[0021] The target image is generated by processing the assembly data through the target function called by the scheduled task.

[0022] In an optional implementation, after obtaining the target image, the method further includes:

[0023] The target image is stored in a server, and a storage address and a storage name of the target image in the server are obtained.

[0024] In an optional implementation, the target function is a bar chart function, a line chart function, a pie chart function, a scatter chart function, a radar chart function, a donut chart function or a dashboard function.

[0025] The second aspect of the present application discloses a data processing device, comprising:

[0026] A data acquisition module is used to query and acquire target data through a scheduled task; the scheduled task is a program file that automatically executes a preset task at a preset time point;

[0027] An image acquisition module, used to process the target data through the target function called by the scheduled task to generate a target image; the target function is a pre-encapsulated function used to process data to generate an image;

[0028] The picture sending module is used to send the target picture to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

[0029] A third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method introduced in any implementation manner of the first aspect.

[0030] A fourth aspect of the present application provides an electronic device, including:

[0031] a memory having a computer program stored thereon;

[0032] A processor is used to execute the computer program in the memory to implement the steps of the method introduced in any implementation manner of the first aspect.

[0033] Compared with the prior art, this application has the following beneficial effects:

[0034] The present application discloses a data processing method, specifically: after a preset time point, automatically query and obtain target data through a scheduled task; automatically process the target data through the target function retrieved by the scheduled task to generate a target image; automatically send the target image to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group retrieved by the target function. Without manual operation, the target data can be automatically converted into a target image and sent to the enterprise WeChat group; compared with the solution of manually processing the target data and then sending the target image generated based on the target data to the enterprise WeChat group, the solution in this application has higher data processing efficiency, higher data processing accuracy, and higher efficiency and accuracy in image sending. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0036] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of a histogram function provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of a bar graph provided for an embodiment of the application;

[0039] Figure 4 A schematic diagram of a stacked graph function provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of a stacked graph provided for an embodiment of the application;

[0041] Figure 6 A schematic diagram of a timed task provided in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of another timed task provided in an embodiment of the present application;

[0043] Fig. 8A A schematic diagram of the interaction between various participants in a data processing method provided in an embodiment of the present application;

[0044] Figure 8B A schematic diagram of another data processing method provided in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] With the widespread use of enterprise WeChat groups, it is often necessary to frequently send pictures generated based on data to the enterprise WeChat group for analysis and use by employees in the group. Currently, the above work is usually done manually. For example, manually fill the target data into an EXCEL table, manually generate pictures through functions or tools in the EXCEL table, and then distribute the generated pictures to the enterprise WeChat group. Since a large amount of manual operations are involved, there are problems of low efficiency and low accuracy when the amount of data is large. Therefore, how to efficiently and accurately convert data into pictures and send them to the enterprise WeChat group has become one of the technical problems that need to be solved in the field of data processing technology.

[0047] The present application discloses a data processing method, including: querying and obtaining target data through a scheduled task; processing the target data through a target function retrieved by the scheduled task to generate a target image; sending the target image to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group retrieved by the target function. The solution in the present application does not require manual operation, that is, it can automatically convert the target data into a target image and send it to the enterprise WeChat group; compared with the solution of processing the target data through manual operation and then sending the target image generated based on the target data to the enterprise WeChat group, the solution in the present application has higher data processing efficiency, higher data processing accuracy, and higher efficiency and accuracy in sending images.

[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0049] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application. Figure 1 The data processing method disclosed in this application includes:

[0050] S101, query and obtain target data through a scheduled task.

[0051] The target data in this application is data that is stored in a storage object such as a database, a file system (hard disk or solid state drive), a cloud storage, a memory storage, or an external storage device (tape storage or optical disk storage) and is continuously updated.

[0052] The target data in this application may be of various types, for example, basic data types (integer type or floating point type), complex data types (array or collection), etc.

[0053] The scheduled task in this application is a program file that is pre-built in the target development environment and can automatically execute the preset task at a preset time point. The target development environment refers to the development environment corresponding to any programming language such as Java, Python, C++ or JavaScript.

[0054] For easier understanding, we will take the Java development environment as an example to introduce the construction steps of scheduled tasks. They include:

[0055] First, based on the Java development environment and Spring Boot project, build the first task; that is, create the SringBootjava project.

[0056] Secondly, introduce the Java chart library in the first task to get the second task; that is, introduce the jfreechart package.

[0057] Finally, a Java timer is created in the second task, and a preset time point is set in the Java timer to obtain a scheduled task; that is, a scheduled task SendMsgScheduled class is created, and different scheduled task execution methods are created.

[0058] Among them, the Spring Boot project is an open source Java project based on the Spring framework, which aims to simplify the development process of Spring applications.

[0059] Java chart libraries are libraries written in Java and used to generate various types of charts. These chart libraries provide a series of APIs and tools that enable developers to create and customize charts in Java applications. Common Java chart libraries include JFreeChart and ECharts-Java.

[0060] Exemplarily, the preset time and preset task in the scheduled task are: send a bar chart to work group A at 18:50 every Monday to Friday; then at 18:50 every day from Monday to Friday, the scheduled task will automatically query and obtain the target data stored in the database.

[0061] S102, processing the target data through the target function called by the scheduled task to generate a target image.

[0062] The target function in this application is a pre-packaged function in the target development environment that is used to process data and generate images. As mentioned above, the specific type of the target development environment is not limited in this application. The target development environment can be a development environment corresponding to any programming language such as Java, Python, C++ or JavaScript.

[0063] For ease of understanding, the following steps are used to construct the target function using the Java development environment as an example. Specifically, they include:

[0064] First, create a ChartsService interface and a ChartsServiceImpl implementation class in the development environment. The ChartsService interface is used to declare the method of constructing a function and is used for the scheduled task to call; the ChartsServiceImpl implementation class is used to implement the method of constructing a function defined in the ChartsService interface.

[0065] In other words, ChartsService is used as an interface for upper-level method calls, such as scheduled task calls; the ChartsServiceImpl class implements the specific methods of ChartsService, which is a specific implementation and encapsulation of graphics generation, storage, and sending, and is not exposed to the outside world.

[0066] Then, in the creation of the ChartsServiceImpl implementation class, the target function is constructed through the underlying interface of the chart library corresponding to the development environment. Among them, the underlying interface of the chart library is used to set the picture title, axis label and data series. The target function is a bar chart function, a line chart function, a pie chart function, a radar chart function, a stacked chart function, a donut chart function or a dashboard function.

[0067] That is, in the target development environment, a pre-packaged target function for processing data to generate images is constructed. It can be summarized as: creating a ChartsService interface and a ChartsServiceImpl implementation class, and calling the underlying interface of jfreechart to implement method encapsulation of statistical graphics such as bar charts, line charts, pie charts, stacked charts, scatter charts, radar charts, doughnut charts, and dashboards.

[0068] For ease of understanding, the form and construction process of the objective function are explained again below, taking the case where the objective function is a bar chart function and the case where the objective function is a stacked chart function as an example.

[0069] Figure 2 A schematic diagram of a histogram function provided in an embodiment of the present application. Figure 2 The docking method and parameter annotations of the histogram function are given in . Figure 2 As shown, in this application, the barChart() method is defined through the ChartsService interface to realize the generation, storage and sending of the bar chart.

[0070] Figure 3 A schematic diagram of a bar graph provided for an application embodiment. Figure 3 The bar chart in is based on Figure 2 The histogram function in is generated. Figure 3 In the ChartFactory.createBarChart() method, you can set the font format, image color, and necessary parameter information for the generated bar chart.

[0071] Figure 4 A schematic diagram of a stacked graph function provided in an embodiment of the present application. Figure 4 The stacking function docking method and parameter annotations are given in . Figure 4 As shown, in this application, the stackedBarChart() method is defined through the ChartsService interface to realize the generation, storage and sending of the stacked chart.

[0072] Figure 5 A schematic diagram of a stacked graph provided for an embodiment of the application. Figure 5 The stacked graph in Figure 4 Generated by the stacked graph function. Figure 5 Use ChartFactory.createStackedBarChart() to set the font format, image color, and necessary parameter information for the generated stacked chart.

[0073] After querying and obtaining the target data through the scheduled task, the target function corresponding to the target data can also be called through the scheduled task, and the target data can be processed using the target function to generate a target image.

[0074] S103, sending the target image to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

[0075] The robot assistant of the enterprise WeChat group in this application refers to an intelligent program with the capabilities of intelligent interaction, service provision, group management, personalization, and continuous learning and optimization; it aims to improve the efficiency of information exchange in WeChat groups, enrich the life experience of group members and maintain good order in the group.

[0076] After creating a WeChat Enterprise group, you need to create a WeChat Enterprise robot, i.e. a robot assistant, in the WeChat Enterprise group. Get the webhook address of the robot assistant of the WeChat Enterprise group and configure it in the configuration file in the development environment. If the development environment is a Java development environment, configure the webhook address of the robot assistant of the WeChat Enterprise group in the application.yml file.

[0077] When the target function calls the API interface of the robot assistant of the enterprise WeChat group, the Webhook address corresponding to the number of the robot assistant is obtained from the configuration file of the development environment; through the Webhook address, the API interface of the robot assistant of the enterprise WeChat group is called.

[0078] It should be noted that the webhook address of the robot assistant of the enterprise WeChat group is essentially a URL address. In this application, the webhook address of the robot assistant of the enterprise WeChat group is placed in the configuration file in the development environment, so that developers can easily modify and update this address without modifying the code itself, thereby improving the flexibility and maintainability of the system.

[0079] It should be noted that, in an optional implementation method, after the scheduled task automatically queries the target data stored in the database, it can first filter and format the target function called by the scheduled task to obtain data that meets the required time window and the required format requirements as assembled data; then, the assembled data is processed by the target function called by the scheduled task to generate a target image.

[0080] It should be noted that after obtaining the target image, the target image can also be stored in the server to obtain the storage address and storage name of the target image in the server. This is conducive to analyzing and utilizing a large amount of target data.

[0081] After creating a new SpringBoot project, create a Java timer SendMsgScheduled and set the code file for the execution time of the scheduled task.

[0082] Figure 6 A schematic diagram of a timed task provided in an embodiment of the present application. Figure 6 The scheduled task shown in the instruction sends the latest generated bar chart to the enterprise WeChat group A (referred to as work group A) every Monday to Friday at 18:50. Figure 6 The specific process of calling the target data of the corresponding data source, processing the target data using the bar chart function, generating a bar chart, and sending the bar chart to the enterprise WeChat group A is given in FIG. Figure 6 The bar chart generated by the scheduled task shown in Figure 3 shown.

[0083] Figure 7 A schematic diagram of another scheduled task provided in an embodiment of the present application. Figure 7 The scheduled task shown in instructs to send a layered chart (i.e., a stacked chart) to the enterprise WeChat group B (referred to as work group B) every Monday to Friday at 17:50. Figure 7The specific process of calling the target data of the corresponding data source, processing the target data using the stacking chart function, generating a stacking chart, and sending the stacking chart to the enterprise WeChat group B is given in the figure. Figure 7 The stacked diagram generated by the scheduled task shown in Figure 5 shown.

[0084] From the introduction of the above embodiments, it can be seen that to implement the data processing method in this application, it involves scheduled tasks, databases, target functions, servers, API interfaces of robot assistants in enterprise WeChat groups, and enterprise WeChat groups. The following is a further explanation of the data processing method in this application from the perspective of interaction between the participants and the calls of the participants.

[0085] Fig. 8A A schematic diagram of the interaction between the various participants in a data processing method provided in an embodiment of the present application. Fig. 8A As shown, when the scheduled task reaches the specified execution time, the scheduled task queries the database for the corresponding target data, and performs preprocessing operations on the target data to obtain assembled data. Specifically, the target data of the target time period is obtained by filtering using the filtering operation in the preprocessing operation, and the filtered data of the target time period is formatted to obtain assembled data, which is the parameter format required by the objective function.

[0086] Then, call the interface layer method of the target function that generates the target image. If you want to generate a bar chart, call the ChartsService interface layer method that generates a bar chart; if you want to generate a stacked chart, call the ChartsService interface layer method that generates a stacked chart. The ChartsServiceImpl implementation class will generate the corresponding image and save it on the file server according to the method of generating a bar chart or a stacked chart and the parameters passed by the ChartsService. After storing the generated target image, the file server will feed back the storage address and name of the image on the file server to the ChartsServiceImpl implementation class.

[0087] At the same time, the ChartsServiceImpl implementation class calls the API interface of the robot assistant, that is, according to the number of the robot assistant of the passed enterprise WeChat group, it obtains the Webhook address recorded in the configuration file of the development environment, which has a one-to-one correspondence with the number of the robot assistant. Through the Webhook address, it calls the API interface of the robot assistant of the enterprise WeChat group to send the target picture to the specified enterprise WeChat group.

[0088] Figure 8B A schematic diagram of another data processing method provided in an embodiment of the present application. Figure 8BAs shown, when the scheduled task reaches the specified execution time, the scheduled task will query the database to find the target data, and then assemble the queried target data into the parameter format required to generate a bar chart or a stacked chart; then call the ChartsService interface layer method to generate a bar chart or a stacked chart. The ChartsServiceImpl implementation class will generate the corresponding statistical chart and save it on the file server according to the called ChartsService method and the passed parameters. At the same time, it will get the storage address and name of the generated image on the file server, and then call the robot assistant API of the enterprise WeChat group to send the target image to the specified enterprise WeChat group.

[0089] From the introduction of the aforementioned embodiments, it can be seen that the data processing method disclosed in this application can generate different target images according to different target data, adapt to various data statistical scenarios, and avoid the cumbersome process of manually generating statistical charts through Excel and then manually copying and sending them to the corresponding enterprise WeChat group; it also avoids the situation where errors exist in manual calculations. The data processing method in this application automatically generates target images without manual operation, and puts the generated target images in a specified directory of the file server, which is convenient for viewing trend changes in the future; and sends them to the specified enterprise WeChat group in the form of enterprise WeChat messages, which is convenient for members in the group to view the images and perform personalized processing.

[0090] It should be emphasized that the data processing method in this application is mainly applicable to the scenario of using EXCEL to summarize data and generate pictures in daily work. After the robot assistant is deployed in the enterprise WeChat group and the encapsulation of the target function is completed in the development environment, the scheduled task can query the target data and obtain the assembled data at the preset time; the scheduled task calls the interface method for generating different statistical graphics, and according to the interface method, the target data, graphic name, axis name, enterprise WeChat group robot number, etc. need to be passed in to automatically generate a customized target image, that is, the target graphic, and automatically store it on the file server; the configured scheduled task will automatically send the generated target image to the corresponding configured enterprise WeChat message group. The data processing method in this application can meet the use requirements of various data scenarios without the need for secondary development, greatly improving the efficiency and accuracy of data processing, and the efficiency and accuracy of picture sending.

[0091] Based on the data processing method adopted in the aforementioned embodiment, the present application also discloses a data processing device. Fig. 9 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application. Fig. 9 As shown, the data processing device 900 disclosed in the present application includes:

[0092] The data acquisition module 901 is used to query and acquire target data through a scheduled task; the scheduled task is a program file that automatically executes a preset task at a preset time point;

[0093] The image acquisition module 902 is used to process the target data through the target function retrieved by the scheduled task to generate a target image; the target function is a pre-encapsulated function used to process data to generate an image;

[0094] The picture sending module 903 is used to send the target picture to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

[0095] In an optional implementation, the data processing device 900 further includes an objective function construction module; the objective function construction module specifically includes:

[0096] A parameter setting unit, used to create a ChartsService interface and a ChartsServiceImpl implementation class in a development environment; the ChartsService interface is used to declare a method of constructing a function and is used for calling by the scheduled task; the ChartsServiceImpl implementation class is used to implement the method of constructing a function defined in the ChartsService interface;

[0097] The objective function construction unit is used to construct the objective function in the creation of the ChartsServiceImpl implementation class through the underlying interface of the chart library corresponding to the development environment; the underlying interface of the chart library is used to set the picture title, coordinate axis label and data series.

[0098] In an optional implementation, the data processing device 900 further includes a scheduled task construction module; the scheduled task construction module specifically includes:

[0099] A first task construction unit, used to construct a first task based on the Java development environment and the Spring Boot project;

[0100] A second task construction unit, used for introducing a Java chart library into the first task to obtain a second task;

[0101] The scheduled task construction unit is used to create a Java timer in the second task and set the preset time point in the Java timer to obtain the scheduled task.

[0102] In an optional implementation, the data processing device 900 further includes an API acquisition module; the API acquisition module specifically includes:

[0103] An address acquisition unit, used to acquire a Webhook address corresponding to the number of the robot assistant from a configuration file of the development environment;

[0104] The API acquisition unit is used to call the API interface of the robot assistant of the enterprise WeChat group through the Webhook address.

[0105] In an optional implementation, the data processing device 900 further includes:

[0106] An assembly data acquisition module is used to preprocess the target data to obtain assembly data; the preprocessing operation includes an operation of screening out target data in a target time period and / or a data formatting operation;

[0107] The target image generation module is used to process the assembly data through the target function called by the scheduled task to generate the target image.

[0108] In an optional implementation, the data processing device 900 further includes:

[0109] The information storage module is used to store the target image in the server and obtain the storage address and storage name of the target image in the server.

[0110] Based on the data processing method and device provided in the aforementioned embodiments, accordingly, the present application also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements some or all of the steps in the aforementioned data processing method.

[0111] Based on the data processing method and device provided in the above embodiments, the present application further provides an electronic device, including:

[0112] a memory having a computer program stored thereon;

[0113] The processor is used to execute the computer program in the memory to implement part or all of the steps in the data processing method provided in the above embodiment.

[0114] It should be noted that each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described above is merely schematic, in which the unit described as a separate component may or may not be physically separated, and the component prompted as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data processing method, characterized in that: The method comprises: Query and obtain target data through scheduled tasks; the scheduled tasks are program files that automatically execute preset tasks at preset time points; The target function retrieved by the scheduled task processes the target data to generate a target image; the target function is a pre-encapsulated function for processing data to generate an image; The target image is sent to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

2. The method according to claim 1, characterized in that The steps of constructing the objective function include: Create a ChartsService interface and a ChartsServiceImpl implementation class in the development environment; the ChartsService interface is used to declare the method of constructing a function and is used for the scheduled task to call; the ChartsServiceImpl implementation class is used to implement the method of constructing a function defined in the ChartsService interface; In the creation of the ChartsServiceImpl implementation class, the objective function is constructed through the underlying interface of the chart library corresponding to the development environment; the underlying interface of the chart library is used to set the picture title, axis labels and data series.

3. The method according to claim 2, characterized in that The development environment is a Java development environment, and the steps for constructing the scheduled task include: Based on the Java development environment and Spring Boot project, build the first task; Introduce the Java chart library into the first task to obtain the second task; A Java timer is created in the second task, and the preset time point is set in the Java timer to obtain the scheduled task.

4. The method according to claim 2, characterized in that: The method for obtaining the API interface of the robot assistant includes: Obtaining a Webhook address corresponding to the number of the robot assistant from a configuration file of the development environment; The API interface of the robot assistant of the enterprise WeChat group is called through the Webhook address.

5. The method according to claim 1, characterized in that After acquiring the target data, the method further includes: Preprocessing the target data to obtain assembled data; the preprocessing operation includes an operation of screening out target data in a target time period and / or a data formatting operation; The target function retrieved by the scheduled task processes the target data to generate a target image, including: The target image is generated by processing the assembly data through the target function called by the scheduled task.

6. The method according to claim 1, characterized in that After obtaining the target image, the method further includes: The target image is stored in a server, and a storage address and a storage name of the target image in the server are obtained.

7. The method according to any one of claims 1 to 6, characterized in that The target function is a bar chart function, a line chart function, a pie chart function, a scatter chart function, a radar chart function, a doughnut chart function or a dashboard function.

8. A data processing device, characterized in that: The device comprises: A data acquisition module is used to query and acquire target data through a scheduled task; the scheduled task is a program file that automatically executes a preset task at a preset time point; An image acquisition module, used to process the target data through the target function called by the scheduled task to generate a target image; the target function is a pre-encapsulated function used to process data to generate an image; The picture sending module is used to send the target picture to the enterprise WeChat group through the API interface of the robot assistant of the enterprise WeChat group called by the target function.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 7.