CN115857929A - Resource data processing method and device, computer equipment and storage medium - Google Patents
Resource data processing method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115857929A CN115857929A CN202211587317.0A CN202211587317A CN115857929A CN 115857929 A CN115857929 A CN 115857929A CN 202211587317 A CN202211587317 A CN 202211587317A CN 115857929 A CN115857929 A CN 115857929A
- Authority
- CN
- China
- Prior art keywords
- data
- data visualization
- visualization
- resource data
- tasks
- 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
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The application relates to a resource data processing method, a resource data processing device, a computer device and a storage medium. The method comprises the following steps: acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information; acquiring a data visualization template aiming at a plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task; generating data display page elements corresponding to the data visualization tasks based on the target resource data corresponding to the data visualization tasks; and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks. By adopting the method, independent development of each service system is not needed, the system coupling degree can be reduced, and the resource data processing efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource data processing method, apparatus, computer device, storage medium, and computer program product.
Background
As the business types of the resource data are gradually increased, the data can be visualized as a presentation form of a business system. In the traditional method, data of each system needs to be processed respectively, a chart is drawn for each system independently, and the charts are combined into a view for display.
In the face of a large number of business systems, development cost for individually customizing and visualizing each system is high, the system coupling degree is relatively high, later maintenance cost is correspondingly increased, and due to different operating logics for independent development of different systems, learning and memory cost of related personnel is high, resource data processing efficiency is low, and the effect is poor.
Disclosure of Invention
In view of the above, it is necessary to provide a resource data processing method, an apparatus, a computer device, a storage medium, and a computer program product, which can solve the above problems.
In a first aspect, the present application provides a resource data processing method, including:
acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information;
acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In one embodiment, the obtaining data call information corresponding to each of the multiple data visualization tasks includes:
and responding to configuration operation aiming at a task configuration page, and acquiring database connection information and data table storage information corresponding to each data visualization task as data calling information corresponding to each data visualization task.
In one embodiment, the invoking, according to each piece of data invocation information, original resource data corresponding to each piece of data visualization task from a plurality of business systems includes:
establishing connection relation with databases in a plurality of service systems according to the connection information of each database;
and according to the data table storage information, performing data reading on the databases in the plurality of service systems to obtain the original resource data corresponding to each data visualization task.
In one embodiment, the adjusting, according to a target type set for each original resource data in the data visualization template, each original resource data to obtain target resource data corresponding to each data visualization task includes:
adjusting the data type corresponding to each original resource data according to the target type set for each original resource data in the data visualization template to obtain adjusted resource data corresponding to each original resource data;
and obtaining target resource data corresponding to each data visualization task according to a data analysis result corresponding to each adjusted resource data.
In one embodiment, the generating data presentation page elements corresponding to each data visualization task based on target resource data corresponding to each data visualization task includes:
determining a data visualization library corresponding to each data visualization task;
and generating data display page elements corresponding to the data visualization tasks according to the data visualization library corresponding to the data visualization tasks and the target resource data.
In one embodiment, the generating a data presentation page element corresponding to each data visualization task according to the data visualization library corresponding to each data visualization task and the target resource data includes:
and assigning the target resource data corresponding to each data visualization task to a data visualization library corresponding to each data visualization task, and generating a data display page element corresponding to each data visualization task.
In one embodiment, the displaying a resource data visualization page according to the data display page element corresponding to each data visualization task includes:
acquiring preset page information; the preset page information is used for representing the area position corresponding to each display area in the preset page;
and introducing data display page elements corresponding to the data visualization tasks into the display areas in the preset page to obtain and display the resource data visualization page.
In a second aspect, the present application further provides a resource data processing apparatus, including:
the system comprises an original resource data acquisition module, a data processing module and a data processing module, wherein the original resource data acquisition module is used for acquiring data calling information corresponding to a plurality of data visualization tasks and calling original resource data corresponding to each data visualization task from a plurality of service systems according to each data calling information;
the resource data adjusting module is used for acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
the page element generation module is used for generating data display page elements corresponding to the data visualization tasks based on the target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and the resource data page display module is used for displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the resource data processing method as described above when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the resource data processing method as described above.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the resource data processing method as described above.
According to the resource data processing method, the device, the computer equipment, the storage medium and the computer program product, the data calling information corresponding to the data visualization tasks is obtained, the original resource data corresponding to the data visualization tasks are called from the service systems according to the data calling information, the data visualization templates corresponding to the data visualization tasks are obtained, the original resource data are adjusted according to the target type set for the original resource data in the data visualization templates, the target resource data corresponding to the data visualization tasks are obtained, then the data presentation page elements corresponding to the data visualization tasks are generated based on the target resource data corresponding to the data visualization tasks, the data presentation page elements are used for presenting statistical information corresponding to the corresponding target resource data, the resource data visualization pages are presented according to the data presentation page elements corresponding to the data visualization tasks, the resource data visualization optimization is achieved, the original resource data can be called and adjusted according to the data visualization templates, the resource data presentation page can be presented based on the generated data presentation page elements, independent development of each service system is not needed, maintenance can be avoided, the data processing efficiency is improved, and the repeatability of the data processing is improved.
Drawings
FIG. 1 is a flow diagram illustrating a method for processing resource data according to one embodiment;
FIG. 2a is a schematic diagram of a resource data visualization process flow in one embodiment;
FIG. 2b is a diagram of a data adjustment process, according to one embodiment;
FIG. 2c is a schematic diagram of data cockpit generation in one embodiment;
FIG. 3 is a schematic view of a data cockpit in one embodiment;
FIG. 4 is a flowchart illustrating another resource data processing method according to an embodiment;
FIG. 5 is a block diagram of an apparatus for resource data processing according to an embodiment;
FIG. 6 is a diagram of the internal structure of a computer device, in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in this application are information and data authorized by the user or sufficiently authorized by each party; correspondingly, the application also provides a corresponding user authorization entrance for the user to select authorization or to select denial.
In an embodiment, as shown in fig. 1, a resource data processing method is provided, and this embodiment is illustrated by applying the method to a terminal, and it is to be understood that the method may also be applied to a server, and may also be applied to a system including a terminal and a server, and is implemented by interaction between the terminal and the server. In this embodiment, the method includes the steps of:
as an example, the resource data may be data for a portfolio resource, such as asset hosting portfolio fund data in a financial institution; the data visualization task may be a task for performing visualization display on different combination resources, for example, rendering a pie chart of different combination fund purchase proportions, and the different data visualization tasks may correspond to different visualization styles, for example, data display charts of different styles, and may also adopt other visualization display modes, which is not specifically limited in this embodiment.
The data call information may include database connection information that may be used to connect to a database in the service system and data table storage information that may be used to read data from the database to call the original resource data.
In practical application, data calling information corresponding to each data visualization task can be acquired for a plurality of configured data visualization tasks, and then original resource data corresponding to each data visualization task can be called from a plurality of service systems according to each data calling information.
For example, taking a data visualization task of rendering a pie chart of purchasing proportions of different combined resources as an example, by obtaining data call information, the data call information can be connected to a database in a service system according to database connection information, and the purchase amount corresponding to each combined resource can be queried from the database according to data table storage information to serve as original resource data.
In an example, as shown in fig. 2a, a user may configure a plurality of data visualization tasks by entering a task configuration page, for example, a data cockpit generation tool interface of a unified combined resource, and may acquire database connection information and data table storage information corresponding to each data visualization task as data call information in response to a configuration operation for the task configuration page.
102, acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
in a specific implementation, after the original resource data is obtained for each data visualization task, a pre-configured data visualization template may be obtained, where the data visualization template may include a target type set for the original resource data, such as a data type corresponding to a field, and then the original resource data may be adjusted according to the target type to obtain the target resource data.
In an example, as shown in fig. 2a, the resource data processing method of this embodiment mainly involves two functional modules: the data standardization processing module and the unified data cockpit generation module can perform data processing on each original resource data through the data standardization processing module to obtain standardized combined resource data, and then the standardized combined resource data can be input into the unified data cockpit generation module to further generate the unified combined resource data cockpit for data visual display based on target resource data obtained by the standardized combined resource data.
In another example, because table structures in databases of different business systems are different, but data indexes of important interest of each business system are essentially uniform, and the contents to be presented in the data cockpit also have universality, such as unit net worth, yield and other data corresponding to the combined resources, through a data standardization processing process, the templating of data in databases of multiple business systems can be realized, and the processed resource data can have the capability and basis of automatically generating the data cockpit.
103, generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks;
as an example, the data presentation page element may be used to present statistical information corresponding to the corresponding target resource data, such as a graph rendered according to the resource data of different combination resources.
After the target resource data are obtained, the target resource data corresponding to each data visualization task are used as a data source, a chart with a specified style can be generated based on any target resource data in a rendering mode, and the chart generated in the rendering mode can be used as a data display page element corresponding to each data visualization task.
Specifically, as shown in fig. 2a, after the related data of each business system is processed into standardized combined resource data, the standardized combined resource data is transmitted to the unified data cockpit generation module, and then the data information can be displayed in a chart form by using the same set of front-end visualization codes, that is, the data display page elements corresponding to each data visualization task.
In one example, based on the unified data cockpit generation module, only the data visualization code involved needs to be maintained and adjusted each time a chart style or logic in the combined resource data cockpit is optimized or adjusted. Compared with the traditional method, repeated maintenance is not needed for related codes such as similar chart styles, logic processing and the like in the data cockpit corresponding to each system, so that the system coupling degree and the maintenance cost can be effectively reduced.
And 104, displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In practical application, data display page elements corresponding to the data visualization tasks can be introduced into different display areas in a preset page based on the preset page, and then the resource data visualization page can be obtained for display.
In an example, a user can obtain and view a unified combined resource data cockpit page only by configuring related information of a service system database, and compared with the conventional method, the unified corresponding data cockpit page can be obtained without independently developing a data cockpit for each service system, so that the development cost is reduced, the implementation cost is low, the maintenance cost is low, and the learning cost of related personnel is low.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present application, but it should be understood that the embodiments of the present application are not limited thereto.
Taking a data visualization task for rendering a pie chart of purchasing proportions of different combined resources as an example, a front-end page can receive a database address, a database port number and object information (namely database connection information) of an authorized access right of a combined resource related service system input by a user, so as to connect and access the database of the related service system, and because purchase quantity data of each combined resource needs to be queried, identification field names and purchase quantity data corresponding to the combined resources in an original service system database can be determined based on data table storage information, such as identification field names fundd and purchase quantity amuunt, and a corresponding data table is a purchase, and then the needed data (namely original resource data) can be queried through a constructed query statement, such as select fundd and amunt from purchase group by fundd; then, for the obtained identification field names and purchase amount data corresponding to different combined resources, conversion may be performed according to a preset standard data format and field (i.e., a target type set for the original resource data in the data visualization template), so as to obtain a standard data set (i.e., target resource data), for example, a list may include a plurality of object pairs formed by a fundld and an amount, and then the list may be used as a data source for generating a pie chart, and a corresponding data visualization library (e.g., echarts) is used to assign the sorted list to a data value of echarts, so as to implement rendering of the pie chart, that is, to generate a data display page element.
Compared with the traditional method, due to the fact that the number of the combined resource related systems is large, and the table structures in the system databases are different, the development cost of individually customizing the visual data cockpit for each system is high; in the process of generating the data cockpit, the code repetition degree of the data visualization part is high, the system coupling degree is high, and the later maintenance cost is correspondingly increased; and the data cockpit independently developed by related systems of different combined resources relates to different fields and different operation logics, so that the learning and memory costs of related business personnel are higher.
According to the technical scheme of the embodiment, the cost for repeatedly developing the visual view by multiple systems can be reduced by automatically generating the combined resource data cockpit; the use and maintenance cost of the independent data cockpit of multiple systems can be reduced by uniformly maintaining the visual chart and the related logic codes in the unified data cockpit generation module; through unified view, unified field, unified operation, can help the business personnel to look over more simply, directly perceived, clearly and analyze the resource data, reduced the high learning cost that a plurality of system data cockpit brought, help service ability to promote.
According to the resource data processing method, the data calling information corresponding to the multiple data visualization tasks is obtained, the original resource data corresponding to the data visualization tasks are called from the multiple service systems according to the data calling information, the data visualization templates corresponding to the multiple data visualization tasks are obtained, the original resource data are adjusted according to the target types set for the original resource data in the data visualization templates, the target resource data corresponding to the data visualization tasks are obtained, then the data display page elements corresponding to the data visualization tasks are generated based on the target resource data corresponding to the data visualization tasks, the resource data visualization pages are displayed according to the data display page elements corresponding to the data visualization tasks, visualization optimization of the resource data is achieved, the original resource data can be called and adjusted according to the data visualization templates, the resource data visualization pages can be displayed based on the generated data display page elements, independent development of each service system is not needed, repeated maintenance can be avoided, the system coupling degree is reduced, and the resource data processing efficiency is improved.
In an embodiment, the obtaining of the data call information corresponding to each of the multiple data visualization tasks may include the following steps:
and responding to configuration operation aiming at a task configuration page, and acquiring database connection information and data table storage information corresponding to each data visualization task as data calling information corresponding to each data visualization task.
In practical application, as shown in fig. 2a, a user may configure a plurality of data visualization tasks by entering a task configuration page, and may obtain, in response to a configuration operation for the task configuration page, database configuration information of a system related to a combined resource, such as a database address, a database port number, and object information having a certain access right, which is input by the user, as database connection information; and the field names of the original database of the service system corresponding to each column of combined resources in the user input template can be obtained and used as data table storage information.
In the embodiment, the database connection information and the data table storage information corresponding to each data visualization task are acquired by responding to the configuration operation aiming at the task configuration page and are used as the data calling information corresponding to each data visualization task, so that data support is provided for further data calling.
In an embodiment, the invoking, from a plurality of business systems, original resource data corresponding to each of the data visualization tasks according to each of the data invocation information may include:
establishing connection relation with databases in a plurality of service systems according to the connection information of each database; and according to the data table storage information, performing data reading on the databases in the plurality of service systems to obtain the original resource data corresponding to each data visualization task.
In an example, the database of the related service system may be connected and accessed according to the obtained database connection information, such as the database address, the database port number, and the authorized access right object information of the combined resource related service system, and the corresponding resource data in the database may be dynamically read according to the obtained data table structure information (i.e., data table storage information), so as to obtain the original resource data corresponding to each data visualization task.
In this embodiment, a connection relationship is established with databases in the multiple service systems according to the connection information of the databases, and further, the data in the databases in the multiple service systems is read according to the storage information of the data tables, so as to obtain original resource data corresponding to the visual tasks of the data.
In an embodiment, the adjusting, according to a target type set for each original resource data in the data visualization template, each original resource data to obtain target resource data corresponding to each data visualization task may include the following steps:
adjusting the data type corresponding to each original resource data according to the target type set for each original resource data in the data visualization template to obtain adjusted resource data corresponding to each original resource data; and obtaining target resource data corresponding to each data visualization task according to a data analysis result corresponding to each adjusted resource data.
In practical application, the identification field names and the related resource data (i.e., the original resource data) corresponding to the acquired different combination resources can be converted according to a preset standard data format and field, that is, the data type corresponding to each original resource data is adjusted according to the target type set for each original resource data in the data visualization template, so as to obtain the standardized combination resource data (i.e., the adjusted resource data) after the related data of each service system is processed, and then the processed standardized combination resource data can be transmitted to the unified data cockpit generation module, and by reading and traversing the standardized combination resource data, data analysis and sorting processing can be performed, so that the standardized combination resource data become a data set (i.e., the target resource data) corresponding to each chart in the data cockpit.
Specifically, as shown in fig. 2b, it may be determined whether the data type of the data read from the original database (i.e., the original resource data) is consistent with the data type of the corresponding field in the template, and when the data types are inconsistent, the read data may be converted into the data type of the corresponding field in the template; when the data types are consistent, or after the data types of the corresponding fields are unified, the read data or the data after the conversion can be assigned to the corresponding fields in the template, and further the standardized combined resource data can be obtained.
In this embodiment, the data type corresponding to each original resource data is adjusted according to the target type set for each original resource data in the data visualization template to obtain adjusted resource data corresponding to each original resource data, and then the target resource data corresponding to each data visualization task is obtained according to the data analysis result corresponding to each adjusted resource data.
In an embodiment, the generating a data presentation page element corresponding to each data visualization task based on the target resource data corresponding to each data visualization task may include the following steps:
determining a data visualization library corresponding to each data visualization task; and generating data display page elements corresponding to the data visualization tasks according to the data visualization library corresponding to the data visualization tasks and the target resource data.
In an example, as shown in fig. 2c, by assigning the processed data set (i.e., the target resource data) to a data value of a data visualization library such as echarts or d3, a rendering process of each chart can be performed based on the data set, and then each data display chart (i.e., a data display page element) in the combined resource data cockpit can be obtained, wherein a specific rendering process of each chart can be maintained in a unified manner, for example, a style and logic change of the unified data cockpit can be performed, so that a user does not need to write related codes for rendering different charts in the data cockpit.
In the embodiment, the data visualization databases corresponding to the data visualization tasks are determined, and then the data display page elements corresponding to the data visualization tasks are generated according to the data visualization databases corresponding to the data visualization tasks and the target resource data, so that the resource data combination cockpit can be automatically generated, and the cost for repeatedly developing visualization views by multiple systems is reduced.
In an embodiment, the generating a data presentation page element corresponding to each data visualization task according to the data visualization library corresponding to each data visualization task and the target resource data may include the following steps:
and assigning the target resource data corresponding to each data visualization task to a data visualization library corresponding to each data visualization task, and generating a data display page element corresponding to each data visualization task.
In specific implementation, the target resource data may be used as a data source for rendering a chart, and a corresponding data visualization library (e.g., echarts) is used to assign the target resource data to a data value of echarts, so as to implement chart rendering, that is, generating a data display page element.
In this embodiment, the target resource data corresponding to each data visualization task is assigned to the data visualization library corresponding to each data visualization task, so as to generate the data display page element corresponding to each data visualization task, thereby providing data support for automatically generating the combined resource data cockpit.
In an embodiment, the displaying the resource data visualization page according to the data display page element corresponding to each data visualization task may include the following steps:
acquiring preset page information; the preset page information is used for representing the area position corresponding to each display area in the preset page; and introducing data display page elements corresponding to the data visualization tasks into the display areas in the preset page to obtain and display the resource data visualization page.
In practical application, according to the area position corresponding to each display area in the preset page, each chart component (i.e., the data display page element corresponding to each data visualization task) is introduced into different display areas in a preset page, so that a resource data visualization page can be obtained for display, as shown in fig. 3.
In an example, by means of low code generation, the combined resource data of multiple business systems can be displayed based on a unified visual data cockpit (i.e., a resource data visualization page), as shown in fig. 3, so that the unified data cockpit corresponding to the multiple business systems has similar views, consistent fields, and consistent operation logics, processes of understanding, researching, and familiarizing the data cockpit of each business system by related business personnel are avoided, and the learning and use costs of multiple systems can be effectively reduced.
In the embodiment, the preset page information is obtained, and then the data display page elements corresponding to the data visualization tasks are introduced into the display areas in the preset page, so that the resource data visualization page is obtained and displayed, a user can check and analyze the resource data more simply, intuitively and clearly, and the resource data processing efficiency is improved.
In one embodiment, as shown in FIG. 4, a flow diagram of another resource data processing method is provided. In this embodiment, the method includes the steps of:
in step 401, in response to the configuration operation for the task configuration page, database connection information and data table storage information corresponding to each data visualization task are acquired as data call information corresponding to each data visualization task. In step 402, a connection relationship is established with databases in the multiple service systems according to the connection information of the databases, data is read from the databases in the multiple service systems according to the storage information of the data tables, and the original resource data corresponding to the data visualization tasks is obtained. In step 403, a data visualization template for a plurality of data visualization tasks is obtained, and a data type corresponding to each original resource data is adjusted according to a target type set for each original resource data in the data visualization template, so as to obtain adjusted resource data corresponding to each original resource data. In step 404, target resource data corresponding to each data visualization task is obtained according to the data analysis result corresponding to each adjusted resource data. In step 405, a data visualization library corresponding to each data visualization task is determined, and a data display page element corresponding to each data visualization task is generated according to the data visualization library corresponding to each data visualization task and the target resource data. In step 406, preset page information is acquired; the preset page information is used for representing the area position corresponding to each display area in the preset page. In step 407, data presentation page elements corresponding to the data visualization tasks are introduced into the presentation areas in the preset page, so as to obtain and present a resource data visualization page. It should be noted that, for the specific limitations of the above steps, reference may be made to the above specific limitations of a resource data processing method, which is not described herein again.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a resource data processing apparatus for implementing the above-mentioned resource data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the resource data processing device provided below may refer to the limitations on the resource data processing method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 5, there is provided a resource data processing apparatus including:
an original resource data obtaining module 501, configured to obtain data call information corresponding to each of a plurality of data visualization tasks, and call, according to each of the data call information, original resource data corresponding to each of the data visualization tasks from a plurality of business systems;
a resource data adjusting module 502, configured to obtain a data visualization template for the multiple data visualization tasks, and adjust each original resource data according to a target type set in the data visualization template for each original resource data, to obtain target resource data corresponding to each data visualization task;
a page element generating module 503, configured to generate a data display page element corresponding to each data visualization task based on target resource data corresponding to each data visualization task; the data display page element is used for displaying statistical information corresponding to the target resource data;
and a resource data page display module 504, configured to display a resource data visualization page according to the data display page elements corresponding to each data visualization task.
In one embodiment, the raw resource data acquisition module 501 includes:
and the data calling information acquisition submodule is used for responding to configuration operation aiming at the task configuration page, and acquiring database connection information and data table storage information corresponding to each data visualization task as data calling information corresponding to each data visualization task.
In one embodiment, the raw resource data acquisition module 501 includes:
the database connection submodule is used for establishing a connection relation with databases in a plurality of service systems according to the connection information of each database;
and the data reading submodule is used for reading data of the databases in the plurality of business systems according to the stored information of each data table to obtain original resource data corresponding to each data visualization task.
In one embodiment, the resource data adjustment module 502 includes:
the data type adjusting submodule is used for adjusting the data type corresponding to each original resource data according to the target type set for each original resource data in the data visualization template to obtain adjusted resource data corresponding to each original resource data;
and the target resource data obtaining submodule is used for obtaining target resource data corresponding to each data visualization task according to a data analysis result corresponding to each adjusted resource data.
In one embodiment, the page element generation module 503 includes:
the data visualization database determining submodule is used for determining a data visualization database corresponding to each data visualization task;
and the page element generation submodule is used for generating data display page elements corresponding to the data visualization tasks according to the data visualization library corresponding to the data visualization tasks and the target resource data.
In one embodiment, the page element generation sub-module includes:
and the data assignment unit is used for assigning the target resource data corresponding to each data visualization task to the data visualization library corresponding to each data visualization task and generating the data display page element corresponding to each data visualization task.
In one embodiment, the resource data page presentation module 504 includes:
the preset page information acquisition sub-module is used for acquiring preset page information; the preset page information is used for representing the area position corresponding to each display area in the preset page;
and the resource data page obtaining submodule is used for introducing data display page elements corresponding to the data visualization tasks into the display areas in the preset page to obtain and display the resource data visualization pages.
The respective modules in the resource data processing apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource data processing method.
It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information;
acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In one embodiment, the processor, when executing the computer program, also implements the steps of the resource data processing method in the other embodiments described above.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information;
acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In one embodiment, the computer program, when executed by the processor, further implements the steps of the resource data processing method in the other embodiments described above.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information;
acquiring data visualization templates for the plurality of data visualization tasks, according to a target type set for each of the original resource data in the data visualization templates, adjusting each original resource data to obtain target resource data corresponding to each data visualization task;
generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
In one embodiment, the computer program, when executed by the processor, further implements the steps of the resource data processing method in the other embodiments described above.
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 hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims (10)
1. A method for processing resource data, the method comprising:
acquiring data calling information corresponding to a plurality of data visualization tasks, and calling original resource data corresponding to the data visualization tasks from a plurality of service systems according to the data calling information;
acquiring a data visualization template for the plurality of data visualization tasks, and adjusting each original resource data according to a target type set for each original resource data in the data visualization template to obtain target resource data corresponding to each data visualization task;
generating data display page elements corresponding to the data visualization tasks based on target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
2. The method according to claim 1, wherein the obtaining data call information corresponding to each of the plurality of data visualization tasks comprises:
and responding to configuration operation aiming at a task configuration page, and acquiring database connection information and data table storage information corresponding to each data visualization task as data calling information corresponding to each data visualization task.
3. The method according to claim 2, wherein the invoking of the raw resource data corresponding to each of the data visualization tasks from a plurality of business systems according to each of the data invocation information comprises:
establishing connection relation with databases in a plurality of service systems according to the connection information of each database;
and according to the data table storage information, performing data reading on the databases in the plurality of service systems to obtain the original resource data corresponding to each data visualization task.
4. The method according to claim 1, wherein the adjusting each of the original resource data according to the target type set for each of the original resource data in the data visualization template to obtain target resource data corresponding to each of the data visualization tasks includes:
adjusting the data type corresponding to each original resource data according to the target type set for each original resource data in the data visualization template to obtain adjusted resource data corresponding to each original resource data;
and obtaining target resource data corresponding to each data visualization task according to a data analysis result corresponding to each adjusted resource data.
5. The method according to claim 1, wherein the generating data presentation page elements corresponding to each of the data visualization tasks based on the target resource data corresponding to each of the data visualization tasks comprises:
determining a data visualization library corresponding to each data visualization task;
and generating data display page elements corresponding to the data visualization tasks according to the data visualization library corresponding to the data visualization tasks and the target resource data.
6. The method according to claim 5, wherein the generating data presentation page elements corresponding to each of the data visualization tasks according to the data visualization library corresponding to each of the data visualization tasks and the target resource data comprises:
and assigning the target resource data corresponding to each data visualization task to a data visualization library corresponding to each data visualization task, and generating a data display page element corresponding to each data visualization task.
7. The method according to any one of claims 1 to 6, wherein the displaying a resource data visualization page according to the data display page element corresponding to each data visualization task comprises:
acquiring preset page information; the preset page information is used for representing the area position corresponding to each display area in the preset page;
and introducing data display page elements corresponding to the data visualization tasks into the display areas in the preset page to obtain and display the resource data visualization page.
8. An apparatus for resource data processing, the apparatus comprising:
the system comprises an original resource data acquisition module, a data processing module and a data processing module, wherein the original resource data acquisition module is used for acquiring data calling information corresponding to a plurality of data visualization tasks and calling original resource data corresponding to each data visualization task from a plurality of service systems according to each data calling information;
a resource data adjusting module, configured to obtain a data visualization template for the multiple data visualization tasks, and adjust each original resource data according to a target type set in the data visualization template for each original resource data, to obtain target resource data corresponding to each data visualization task;
the page element generation module is used for generating data display page elements corresponding to the data visualization tasks based on the target resource data corresponding to the data visualization tasks; the data display page element is used for displaying statistical information corresponding to the target resource data;
and the resource data page display module is used for displaying the resource data visualization page according to the data display page elements corresponding to the data visualization tasks.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211587317.0A CN115857929A (en) | 2022-12-09 | 2022-12-09 | Resource data processing method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211587317.0A CN115857929A (en) | 2022-12-09 | 2022-12-09 | Resource data processing method and device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115857929A true CN115857929A (en) | 2023-03-28 |
Family
ID=85671968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211587317.0A Pending CN115857929A (en) | 2022-12-09 | 2022-12-09 | Resource data processing method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115857929A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116383299A (en) * | 2023-03-31 | 2023-07-04 | 国任财产保险股份有限公司 | Data display system based on distributed database |
-
2022
- 2022-12-09 CN CN202211587317.0A patent/CN115857929A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116383299A (en) * | 2023-03-31 | 2023-07-04 | 国任财产保险股份有限公司 | Data display system based on distributed database |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140114822A1 (en) | Method and system for creating tax configuration templates | |
CN106557307B (en) | Service data processing method and system | |
CN111061475A (en) | Software code generation method and device, computer equipment and storage medium | |
CN112433712A (en) | Report display method and device, computer equipment and storage medium | |
CN115857929A (en) | Resource data processing method and device, computer equipment and storage medium | |
Ferreira et al. | Integration of Business Intelligence with e-commerce | |
CN111753203A (en) | Card number recommendation method, device, equipment and medium | |
CN114237871A (en) | Arranging method and device of cloud resources, computer equipment and storage medium | |
CN112231377A (en) | Data mapping method, system, device, server and storage medium | |
CN115687310A (en) | Data cleaning method and device | |
CN112506944B (en) | Data standard conversion access method, device, equipment and medium between service systems | |
CN117555521A (en) | Business requirement development method, device, computer equipment and storage medium | |
CN116738953A (en) | Report generation method, report generation device, computer equipment and computer readable storage medium | |
CN117216164A (en) | Financial data synchronous processing method, apparatus, device, medium and program product | |
CN114661803A (en) | Database service interface publishing method, system, computer equipment and storage medium | |
CN115878929A (en) | Webpage rendering method and device | |
CN117130606A (en) | Front-end page configuration method, front-end page configuration device, computer equipment and storage medium | |
CN116860576A (en) | Method, device, computer equipment and storage medium for recording operation log | |
CN116128616A (en) | Method and device for calculating data processing of resource risk trial calculation and computer equipment | |
CN116433422A (en) | Service processing method, device and computer equipment | |
CN118396361A (en) | Flow instance processing method, apparatus, device, storage medium and program product | |
CN117389605A (en) | Service interface configuration method, device, equipment, storage medium and program product | |
CN114237580A (en) | Visualization scheme design method and device based on cloud computing and computer equipment | |
CN117612192A (en) | Electronic drawing information identification method, system, electronic equipment and storage medium | |
CN116701178A (en) | Interface test method, device, computer 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 |