Data report processing method and device, equipment, storage medium and program product
By introducing the use of target interface and extended attribute element data table in data report processing, users can flexibly select and configure data elements and generate target reports containing hierarchical relationships, which solves the problem of poor readability of reports in the existing technology and achieves Customized and personalized data presentation.
Patent Information
- Application Number
- CN202410754467.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-18
AI Technical Summary
The existing data report splitting method is difficult to visually display the relationship between companies, which reduces the readability and practicality of the report. Especially in the processing of financial data of multi-level subsidiaries, it is difficult for users to perform personalized statistics and integration according to needs.
By displaying the target interface, users can select and configure split data elements in data reports, obtain extended attribute element data tables, generate target reports containing hierarchical relationships and connections, and improve the readability and customization of reports.
It realizes the generation of highly customized target reports based on user needs, enhances the readability and practicality of the reports, and adapts to different application scenarios and user needs.
Smart Images

Figure CN118798144A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular, relates to a data report processing method, device, equipment, storage medium and program product. Background Art
[0002] In the technical field of data processing and report splitting, splitting a large data report into several sub-tables is a common task. It can, to a certain extent, help users split complex raw data into sub-tables that are easier to operate and understand, thereby meeting diverse data extraction needs.
[0003] Take the financial information of a large group company as an example. Its data report may integrate the financial data of subsidiaries at all levels, where the first column lists the names of each company. The group may include multiple subsidiaries, and these subsidiaries may each include their own sub-subsidiaries.
[0004] However, if the split is based only on the data report, the resulting sub-table may only contain the company name and the corresponding financial information. It is difficult for users to intuitively understand the relationship between the companies through the sub-table, which reduces the practicality and readability of the report. Summary of the invention
[0005] The embodiments of the present invention provide a data report processing method, device, equipment, storage medium and program product, which can improve the readability and practicality of the report.
[0006] In a first aspect, an embodiment of the present application provides a data report processing method, the method comprising:
[0007] Displaying a target interface, the target interface includes a data report and a preset control, the data report includes a plurality of report units, the plurality of report units include a first report unit with associated relationships between content items within the report unit and a second report unit with no associated relationships between content items within the report unit; the first report unit is associated with an extended attribute element data table obtained by extending attributes of data elements of the first report unit according to a plurality of different levels;
[0008] In response to a first user input to a preset control, displaying candidate split data element options;
[0009] In response to a second input of a user configuring a target split data element option from candidate split data element options, extracting target data corresponding to the target split data element option from the data report form and the extended attribute element data table;
[0010] Generate target reports based on target data.
[0011] As a possible implementation manner, before displaying the target interface, the method further includes:
[0012] For each first report unit in the data report, perform the following operations respectively to obtain the extended attribute element data table associated with each first report unit:
[0013] Get the properties of the data element of the first report unit;
[0014] Determine the hierarchical relationship between the attributes of each data element;
[0015] Based on the hierarchical relationship, each data element is divided according to the level to which it belongs, and an extended attribute element data table is obtained.
[0016] As a possible implementation, the target split data element option includes a first target split data element option for selecting each header information of the data report, a second target split data element option for selecting the hierarchical information of the first header information, and a third target split data element option; wherein the first header information is header information determined based on the first target split data element option selected by the user; the second input includes a first sub-input, a second sub-input, and a third sub-input, and in response to the second input of the user configuring the target split data element option from the candidate split data element options, extracting target data corresponding to the target split data element option from the data report and the extended attribute element data table, including:
[0017] In response to a first sub-input of a first target split data element option by a user, obtaining first data content corresponding to the first sub-input from a data report;
[0018] In response to a second sub-input of the user for the second target split data element option, obtaining second data content corresponding to the second sub-input from the extended attribute element data table corresponding to the first header information;
[0019] In response to a third sub-input of the user for a third target split data element option, obtaining third data content corresponding to the third sub-input from the data report;
[0020] The first data content, the second data content, and the third data content are determined as target data.
[0021] As a possible implementation manner, the method further includes:
[0022] In the case where the first header information is header information of the first report unit, the third target split data element option is an option for selecting target information in a target level;
[0023] In the case where the first header information is the header information of the second report unit, the third target split data element option is an option for selecting a statistical object of the first data content.
[0024] As a possible implementation manner, before generating a target report according to the target data, the method further includes:
[0025] Obtain the user's identity information;
[0026] Determine the user's access rights based on identity information;
[0027] Deleting data that is not within the user's access permissions from the target data to obtain modified target data;
[0028] Generate target reports based on target data, including:
[0029] Generate a target report based on the modified target data.
[0030] As a possible implementation manner, before extracting the target data corresponding to the target split data element option from the data report and the extended attribute element data table, the method further includes:
[0031] Obtain the user's identity information;
[0032] Determine the user's access rights based on identity information;
[0033] Deleting target split data element options that are not within the user's access permissions from the target data to obtain modified target split data element options;
[0034] Extract target data corresponding to target split data element options from the data report and extended attribute element data table, including:
[0035] Target data corresponding to the modified target split data element options are extracted from the data report and the extended attribute element data table.
[0036] In a second aspect, an embodiment of the present application provides a data report processing device, the device comprising:
[0037] A display module is used to display a target interface, the target interface includes a data report and a preset control, the data report includes a plurality of report units, the plurality of report units include a first report unit in which content items within the report unit have an association relationship, and a second report unit in which content items within the report unit do not have an association relationship; the first report unit is associated with an extended attribute element data table obtained by extending the attributes of the data elements of the first report unit according to a plurality of different levels;
[0038] A first response module, for displaying candidate split data element options in response to a first input of a user to a preset control;
[0039] A second response module, configured to extract target data corresponding to the target split data element option from the data report and the extended attribute element data table in response to a second input of the user configuring the target split data element option from the candidate split data element options;
[0040] The generation module is used to generate target reports based on target data.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0042] When the processor executes the computer program instructions, the data report processing method as described in any one of the first aspects is implemented.
[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, a data report processing method as described in any one of the first aspects is implemented.
[0044] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is processed and executed, it implements the data report processing method as any one of the first aspects.
[0045] The data report processing method, device, equipment, storage medium and program product of the embodiment of the present application can browse data reports and preset controls through a display interface. When the user's second input to the preset control is received, the data report is processed, that is, the target split data elements required by the user are extracted from the data report, thereby generating content items that meet the user's needs. Furthermore, if the data elements to be split include a first report unit, the extended attribute element data table corresponding to these first report units will be obtained. Subsequently, the extracted content items are merged with these extended attribute element data tables to generate a richer and more comprehensive target report. Among them, the target report not only contains the content of the target split data elements, but also includes the hierarchical relationship and connection between each target split data element, thereby improving the readability of the target report.
[0046] In addition, through the user's first input and second input to the preset control, the user can flexibly select and configure the desired target split data element from multiple candidate split data element options, thereby generating a highly customized target report. This flexibility and customization enables the data report processing method provided in the embodiment of the present application to adapt to different application scenarios and meet the personalized needs of different users. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0048] Figure 1 It is a flowchart of a data report processing method provided in an embodiment of the present application;
[0049] Figure 2 It is a flowchart of a specific implementation method of constructing an extended attribute element data table provided in an embodiment of the present application;
[0050] Figure 3 It is a flowchart of a specific implementation method of S103 provided in an embodiment of the present application;
[0051] Figure 4 It is a flowchart of another data report processing method provided in an embodiment of the present application;
[0052] Figure 5 It is a flowchart of another data report processing method provided in an embodiment of the present application;
[0053] Figure 6 It is a structural diagram of a data report processing device provided by an embodiment of the present application;
[0054] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0055] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0056] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0057] In order to facilitate those skilled in the art to further understand the technical solution of the present application, the technical issues raised in the above background technology will be specifically explained below in combination with a specific scenario.
[0058] Table 1 shows an exemplary financial form, specifically including examples of financial forms of all companies in each province, and the financial information of all companies at the city level, district level, and county level are all displayed in the form.
[0059] Company Name Company Number category Amount state XX1 001 Stationery 11 Processing XX2 002 book 22 Passed XX3 003 ticket 33 Failed XX4 004 stay 44 Processing XX5 005 Have a meal 55 Processing XX6 006 travel 66 Passed XX7 007 communication 77 Passed XX8 008 Meeting 88 Processing XX9 009 law 99 Passed X10 010 Stationery 111 Failed X11 011 Stationery 222 Processing X12 012 stay 333 Passed X13 013 book 444 Processing X14 014 travel 555 Passed
[0060] Table 1
[0061] The financial spreadsheet shown in Table 1 contains financial information for a large group of companies, which may include a parent company, subsidiaries, and their subsidiaries, etc. The names of these companies are not always directly related. However, regardless of the company hierarchy, they all generate financial information independently.
[0062] For the heads of provincial companies, what they are concerned about is the financial situation of each district-level company under their jurisdiction. If they face the raw data directly, they may find a company name in the report, but it is difficult to quickly determine which parent company the company belongs to, or which province the financial information belongs to. In this case, the unprocessed raw data table is much less readable for the heads of provincial companies.
[0063] Similarly, the financial staff responsible for the company's travel reimbursement will also face similar problems when seeking travel expenses in various provinces this year. The original form contains a variety of financial information, including office supplies, legal expenses, conference expenses, etc., and even travel expenses are recorded in different ways, such as high-speed rail, train, express and airplane. This complexity and inconsistency of information makes it difficult for financial staff to quickly obtain effective travel expense data.
[0064] In summary, different roles and responsibilities determine that users focus on different data. Taking financial data as an example, provincial company leaders may only care about the financial overview of each city, without having to deeply understand the specific information at the district or county level; while city-level company leaders may pay more attention to the situation in each district. In addition, people with different responsibilities, such as travel expense specialists, will also pay attention to different financial information according to their own needs.
[0065] Therefore, if the split form cannot count and integrate data according to the user's personalized needs, it will be less readable for users.
[0066] In order to solve the above technical problems, the embodiments of the present application provide a data report processing method, device, equipment, storage medium and program product. The data report processing method provided by the embodiments of the present application is first introduced below.
[0067] Figure 1 1 is a flow chart of a data report processing method 100 provided in an embodiment of the present application. The data report processing method may include: S101 to S104.
[0068] S101: Displaying a target interface, the target interface including a data report and a preset control, the data report including a plurality of report units, the plurality of report units including a first report unit in which content items within the report unit have an association relationship and a second report unit in which content items within the report unit have no association relationship; the first report unit is associated with an extended attribute element data table obtained by extending the attributes of data elements of the first report unit according to a plurality of different levels;
[0069] S102: In response to a first input of a user to a preset control, displaying candidate split data element options;
[0070] S103: In response to a second input of the user configuring a target split data element option from the candidate split data element options, extracting target data corresponding to the target split data element option from the data report form and the extended attribute element data table;
[0071] S104: Generate a target report based on the target data.
[0072] In an embodiment of the present application, a user can browse data reports and preset controls through a display interface. When a second input to the preset control is received from the user, the data report is processed, that is, the target split data elements required by the user are extracted from the data report, thereby generating content items that meet the user's needs. Furthermore, if the data elements to be split include a first report unit, the extended attribute element data table corresponding to these first report units will be obtained. Subsequently, the extracted content items are merged with these extended attribute element data tables to generate a richer and more comprehensive target report. Among them, the target report not only contains the content of the target split data elements, but also includes the hierarchical relationship and connection between each target split data element, thereby improving the readability of the target report.
[0073] In addition, through the user's first input and second input to the preset control, the user can flexibly select and configure the desired target split data element from multiple candidate split data element options, thereby generating a highly customized target report. This flexibility and customization enables the data report processing method provided in the embodiment of the present application to adapt to different application scenarios and meet the personalized needs of different users.
[0074] The specific implementation of each of the above steps will be described in detail below.
[0075] In some embodiments, in S101, the target interface is a user-oriented interface for display and interaction. The preset control is a pre-designed interface element for users to interact with data reports, such as filtering, sorting, splitting data, etc. The report unit is a basic element constituting a data report, which can be a single data item, a data row, a data column, or a data block. The first report unit and the second report unit are two types of report units, and the first report unit and the second report are relative.
[0076] There may be a hierarchical relationship between the content items in the first report unit, which can be a classification relationship, affiliation relationship, inclusion relationship, sequence relationship, level relationship, weight relationship, spatial relationship or time relationship. The content items in the second report unit are independent content items without direct logical connection. As an example, the first report unit may include company name, category, status. The second report unit may include amount, transaction date, quantity, invoice number, etc.
[0077] The extended attribute element data table is associated with the data report, and is used to extend the attributes of the data element of the first report unit, and organize the extended attributes into a hierarchical data table according to different levels. Through this extension, users can view more related information between data elements based on the first report unit, increasing the richness and depth of the data report.
[0078] It is worth emphasizing here that the extended attribute element data table is maintained as system data in a user-invisible manner by the application corresponding to the data report processing method.
[0079] Figure 2 It is a flowchart of a specific implementation method 200 of constructing an extended attribute element data table provided in an embodiment of the present application.
[0080] In some possible implementations of the embodiments of the present application, in order to improve the efficiency of determining the extended attribute element data table, before displaying the target interface, the aforementioned data report processing method may include: for each first report unit in the data report, performing the following operations S201 to S203 respectively to obtain the extended attribute element data table associated with each first report unit:
[0081] S201: Acquire the attributes of the data element of the first report unit;
[0082] S202: Determine the hierarchical relationship between the attributes of each data element;
[0083] S203: Based on the hierarchical relationship, each data element is divided according to the level to which each data element belongs, and an extended attribute element data table is obtained.
[0084] In the embodiment of the present application, the pre-constructed multiple extended attribute element data tables already include the attributes of each data element. Therefore, when these attributes need to be accessed, there is no need for real-time calculation and construction, which significantly improves the query efficiency of the extended attribute element data table.
[0085] As an example, the company name is expanded according to the level to obtain the extended attribute element data table related to the company name. Taking the table shown in Table 1 as an example, the method for obtaining the extended attribute element data table is as follows:
[0086] The extended attribute element data table can be in the form of:
[0087] Original data sequence #1→first-level extended sequence of original data sequence #1→second-level extended sequence of original data sequence #1→original data sequence #2→first-level extended sequence of original data sequence #2→second-level extended sequence of original data sequence #2….
[0088] That is, the extended column is appended to the original data column to provide more detailed context or classification information. Taking the company name as an example, the extended column can refine the company's geographical hierarchy information and split it into three levels: province, district, and county, so that users can more clearly understand the specific geographical location of each company. Similarly, for the original column of category, the extended column can further refine its classification, first into first-level categories (such as transportation, conferences, legal affairs, etc.), and then further refine each first-level category into second-level categories (such as trains, airplanes, indoor transportation, etc. under the transportation category).
[0089] In some embodiments, an expander can be used to generate an extended attribute element data table, and the corresponding functions of the expander can be implemented using a classifier, which can be trained based on company-level expansion logic. In the context of machine learning, a classifier is able to classify input data according to learned patterns. The introduction of a classifier can significantly improve the efficiency and accuracy of the expander during execution. However, it should be emphasized that this implementation method is not an additional limitation on the core idea or basic framework of this solution, but an optimization and supplement to the means of implementing the solution.
[0090] Table 2 exemplarily shows an extended attribute element data table determined based on the company name in Table 1.
[0091]
[0092] Table 2
[0093] As an example, the category is expanded according to the level to obtain the extended attribute element data table related to the category. The method of obtaining the extended attribute element data table related to the category is similar to the aforementioned extended attribute element data table related to the company name, but the specific number of levels can be adjusted according to the actual application scenario and requirements, whether it is two levels, three levels or four levels, which is not specifically limited here.
[0094] Taking the table shown in Table 1 as an example, when splitting the report, the user can select the split level according to actual needs. For example, when the first level is selected, the report will only display high-level financial statistics such as office supplies, travel, and services; if the second level is selected, it will be further refined to display more detailed financial statistics such as stationery, books, tickets, air tickets, accommodation, catering, travel, legal fees, conference expenses, and communication expenses.
[0095] Table 3 exemplarily shows an extended attribute element data table determined based on the category in Table 1.
[0096]
[0097] Table 3
[0098] Furthermore, in obtaining Table 2 and Table 3, Table 2 and Table 3 can be merged into the original table shown in Table 1 to obtain the underlying split version table of the report split.
[0099] In some embodiments, in S102, the first input is a user's operation on a preset control, which may include a variety of interaction methods, including but not limited to clicking, selecting, dragging, sliding, inputting text, etc. The candidate split data element options are for users to choose how to split multiple report units or data elements in a data report. The candidate split data element options are a series of options for users to choose from, aiming to provide users with a flexible and intuitive way to choose how to split or reorganize data elements in a data report, and to achieve customized splitting and display.
[0100] It is worth emphasizing here that the data report processing method provided by the present application is not limited to the layout style of the target interface and candidate split data element options provided exemplarily in the embodiments of the present application. Both the overall layout of the target interface and the display method of the candidate split data element options can be personalized according to user preferences and specific application scenarios.
[0101] In some embodiments, in S103, the second input is the user's operation on the candidate split data element option, which may include a variety of interaction methods, including but not limited to clicking, selecting, dragging, sliding, inputting text, etc. The target split data element option is the data splitting standard or condition selected by the user through a preset control (such as a drop-down list, a radio button, etc.), indicating which data elements the user needs to extract from the data report, and from which extended attribute element data tables to obtain relevant information.
[0102] As an example, the target split data element options include a first target split data element option for selecting each header information of a data report, a second target split data element option for selecting hierarchical information of the first header information, and a third target split data element option; wherein the first header information is the header information determined based on the first target split data element option selected by the user.
[0103] In some embodiments, the first target split data element option, the second target split data element option and the third target split data element option are elements of a user interface. Specifically, they can be drop-down menus, check boxes or other input controls for users to select or input specific data screening conditions or identifiers.
[0104] Figure 3 It is a flowchart of a specific implementation method 300 of S103 provided in an embodiment of the present application.
[0105] In some embodiments, the second input includes a first sub-input, a second sub-input, and a third sub-input, wherein the first sub-input, the second sub-input, and the third sub-input are operations or inputs performed by the user on the first target split data element option, the second target split data element option, and in sequence, such as selecting an option or inputting a piece of information. Figure 3 As shown, the aforementioned S103 may include: S1031~S1034.
[0106] S1031: In response to a first sub-input of a user to a first target split data element option, first data content corresponding to the first sub-input is acquired from a data report.
[0107] S1032: In response to the user's second sub-input for the second target split data element option, obtain second data content corresponding to the second sub-input from the extended attribute element data table.
[0108] S1033: In response to the user's third sub-input for the third target split data element option, obtain third data content corresponding to the third sub-input from the data report.
[0109] S1034: Determine the first data content, the second data content, and the third data content as target data.
[0110] The data retrieved or filtered from the data report and the extended attribute element data table (ie, the first data content, the second data content and the third data content) are combined together to form a new data set, which is called "target data".
[0111] In the embodiment of the present application, the user can select specific data content according to their needs, that is, configure the target split data elements through the first sub-input, the second sub-input and the third sub-input, which helps to allow the user to display data in a customized manner according to their own analysis purposes and preferences, so that the data is more in line with the user's actual application scenario. In addition, by selectively displaying data, the user can see the data content of concern more clearly, thereby improving the readability of the target report.
[0112] Further, in some embodiments, when the first header information is the header information of the first report unit, the third target split data element option is an option for selecting target information in the target level; when the first header information is the header information of the second report unit, the third target split data element option is an option for selecting the statistical object of the first data content.
[0113] The target information in the target level includes the attributes of the data elements in the extended attribute element data table, that is, the target level corresponding to the first report unit. The statistical object may also correspond to the attributes of the data elements in the extended attribute element data table.
[0114] Next, the above data report processing method will be exemplified in combination with a specific implementation scenario.
[0115] Exemplarily, the candidate split data element options in the display interface are shown in Table 4.
[0116]
[0117] Table 4
[0118] As shown in Table 4, correspondingly, "Primary column" corresponds to the first target split data element option, and the first sub-input corresponds to the user's input in "Select primary column (drop-down menu)"; "Primary column level" corresponds to the second target split data element option, and the second sub-input corresponds to the user's input in "Select primary column (select primary column level (drop-down menu))"; "Selected value / dependent column setting" corresponds to the third target split data element option, and the third sub-input corresponds to the user's input in "Select filter item (drop-down menu)".
[0119] When processing data reports, users have customization options to meet their diverse data needs. First, users can select the primary column, which is the primary information displayed after the report is split. Different user groups may choose different primary columns due to different concerns. For example, the head of the group may be more concerned about the company name, while the financial staff may focus more on the category.
[0120] In addition to the main columns, users can also select and set other information in the remaining columns as auxiliary columns as needed to enrich the report content. These auxiliary columns can be sorted and filtered according to the actual needs of users. For columns that are not of interest, users can choose to omit them, thereby ensuring the simplicity and pertinence of the report. As an example, the number of remaining columns can be set to the maximum allowed, for example, up to 5 columns.
[0121] When selecting columns, users can also specify the display level for each column, such as statistics at the city level or statistics at the district level, so that users can view and analyze data at a more detailed level.
[0122] Furthermore, to enhance the targeting and filtering effect of the report, users can set selected values or dependent columns after selecting the primary and secondary columns. These selected values allow users to filter out specific values of interest from the selected level, such as a specific company or a specific category, so as to focus on the required information more accurately.
[0123] For example, the leader of District D may only be interested in the financial statistics of office supplies in the counties under District D. In this case, the user can set it up as follows:
[0124] 1. Main column settings
[0125] (1) Select "Company Name" from the drop-down menu in the main column (the options in the drop-down menu come from the header of Table 1);
[0126] (2) Select “District Level” in the drop-down menu at the main column level (the options in the drop-down menu are derived from the hierarchical information in Table 2);
[0127] (3) Select "Company B, C, and D (District D)" from the drop-down menu in the selected value / dependent column setting (the options in this drop-down menu are derived from the attribute values of the corresponding data elements at the district level in Table 2, and only the data of interest is considered. If not selected, the default is all).
[0128] 2. Second column settings
[0129] (1) Select "Category" from the drop-down menu in the second column (the options in the drop-down menu come from the header of Table 1);
[0130] (2) Select “Category Level 1” from the drop-down menu at the second column level (the options in this drop-down menu are from the header of Table 3);
[0131] (3) Select “Office Supplies” from the drop-down menu in the Selected Value / Dependent Column setting (the options in the drop-down menu are derived from the attributes of the data elements corresponding to the Category Level 1 column in Table 3).
[0132] 3. The third column settings
[0133] (1) Select “Amount” from the drop-down menu in the second column (the options in the drop-down menu come from the header of Table 1);
[0134] (2) Because Amount is a dependent column, its statistics need to rely on other columns. Therefore, do not select it in the drop-down menu at the second column level.
[0135] (3) Select "Second Column" from the drop-down menu of the selected value / dependent column setting (which means that the amount will be calculated based on the statistical results of the second column setting).
[0136] Through the above settings, the financial statistics of office supplies of companies in counties of District D can be split out. In addition, if the user needs to display more columns, other display columns can be set, such as status, company code, etc. These columns will be counted and displayed according to the settings of the main column and auxiliary column after the report is split.
[0137] As a specific example, when the user is the leader of a provincial company and focuses on the financial information of each city, the following selections can be made: select the company as the main column and the city level as the level; the category as the second column and the level as the first level; the amount as the third column, and the selected value dependent column as the second column; and the status as the fourth column. The report after the split based on Table 1 is the target report, as shown in Table 5 below, which allows a clear view of the financial statistics of office supplies in each city.
[0138]
[0139] Table 5
[0140] When the user is the person in charge of finance and focuses on the financial information of each district, he can make the following choices: select the main column as category and the level as level 1; the second column as company and the level as district; the third column as amount, and the selected value dependent column is set as the second column; the fourth column is status. The report after splitting based on Table 1, that is, the target report, is shown in Table 6 below. Figure 6 As shown, the financial statistical information of each district in City A under the first-level category can be clearly viewed.
[0141]
[0142] Table 6
[0143] In addition, if the dependent column is the status column, the status column is displayed in the third column, the amount column is displayed in the fourth column, and the amount column corresponds to the items in the status column one by one, respectively displaying the detailed amounts of the items in process, passed, and failed.
[0144] Figure 4 4 is a flow chart of another data report processing method 400 provided in an embodiment of the present application. In order to improve data security. Before the aforementioned S104, the method may also include:
[0145] S401~S403.
[0146] S401, obtaining user identity information.
[0147] The identity information is the user's unique identification information, which can be a user name, employee number, or ID number, etc., to confirm the user's identity.
[0148] S402: Determine the user's access rights based on the identity information.
[0149] Among them, access rights are specific data access and operation rights granted to users based on their user identities. Specifically, the access rights can define which data the user can view, modify or delete.
[0150] S403, deleting data that is not within the user's access rights from the target data to obtain modified target data.
[0151] In some embodiments, the target data constitutes a target data set, and each target data in the target data set is traversed to check whether it is data within the user's access rights. If it is not data within the user's access rights, it is removed from the target data set. All data contained in the target data set finally obtained is the modified target data.
[0152] Based on this, the aforementioned S104 may specifically include: generating a target report according to the modified target data.
[0153] The target report generated based on the modified target data ensures that the target report only displays the data that the user has access to. Deleting the data that the user does not have access to can significantly reduce the risk of data leakage. Only authorized users can access the required data, which helps protect sensitive information from being obtained by unauthorized users.
[0154] Figure 5 1 is a flow chart of another data report processing method 500 provided in an embodiment of the present application. In addition, in order to further reduce the amount of processed data, the permission check process can be placed before the aforementioned S103. Correspondingly, before the aforementioned S103, the aforementioned method can also include:
[0155] S501~S503.
[0156] S501: Obtaining user identity information;
[0157] S502: Determine the user's access rights based on the identity information;
[0158] S503: Delete the target split data element options that are not within the user's access rights from the target data to obtain modified target split data element options.
[0159] Based on this, extracting target data corresponding to the target split data element option from the data report and the extended attribute element data table may specifically include:
[0160] Target data corresponding to the modified target split data element options are extracted from the data report and the extended attribute element data table.
[0161] In the embodiment of the present application, while enhancing the security of the data, a user permission check is performed before extracting the target data, and options for target split data elements that are not within the user's access permissions are deleted, which can ensure that only data that the user has the right to access is extracted, effectively avoiding the process of screening and deleting after extracting a large amount of data, thereby significantly improving data processing efficiency.
[0162] It should be noted that the data report processing method provided in the embodiment of the present application can be executed by a data report processing device, or a control module in the data report processing device for executing data report processing. In the embodiment of the present application, the data report processing device provided in the embodiment of the present application is described by taking the data report processing device executing the aforementioned data report processing method as an example.
[0163] Figure 6 : is a schematic diagram of the structure of a data report processing device 600 provided in one embodiment of the present application. The data report processing device 600 may include:
[0164] Display module 601, used to display a target interface, the target interface includes a data report and preset controls, the data report includes multiple report units, the multiple report units include a first report unit with associated relationships between content items within the report unit and a second report unit with no associated relationships between content items within the report unit; the first report unit is associated with an extended attribute element data table obtained by extending the attributes of the data elements of the first report unit according to multiple different levels;
[0165] A first response module 602, for displaying candidate split data element options in response to a first input of a user to a preset control;
[0166] The second response module 603 is used to extract target data corresponding to the target split data element option from the data report and the extended attribute element data table in response to the second input of the user configuring the target split data element option from the candidate split data element options;
[0167] The generating module 604 is used to generate a target report according to the target data.
[0168] In an embodiment of the present application, a user can browse data reports and preset controls through a display module 601. When receiving a second input to a preset control from a user, the first response module 602 and the second response module 603 process the data report, that is, extract the target split data elements required by the user from the data report, thereby generating content items that meet the user's needs. Furthermore, if the data elements to be split include a first report unit, the extended attribute element data table corresponding to these first report units will be obtained. Subsequently, the generation module 604 merges the extracted content items with these extended attribute element data tables to generate a richer and more comprehensive target report. Among them, the target report not only contains the content of the target split data elements, but also includes the hierarchical relationship and connection between each target split data element, thereby improving the readability of the target report.
[0169] In addition, through the user's first input and second input to the preset control, the user can flexibly select and configure the desired target split data element from multiple candidate split data element options, thereby generating a highly customized target report. This flexibility and customization enables the data report processing method provided in the embodiment of the present application to adapt to different application scenarios and meet the personalized needs of different users.
[0170] In a possible implementation of the embodiment of the present application, the time for searching and filtering in a large amount of data is reduced. The data report processing device 600 provided in the embodiment of the present application may also include:
[0171] The first acquisition module is used to perform the following operations for each first report unit in the data report to obtain the extended attribute element data table associated with each first report unit: obtain the attribute of the data element of the first report unit;
[0172] A first determination module, used to determine the hierarchical relationship between the attributes of each data element;
[0173] The division module is used to divide each data element according to the level to which each data element belongs based on the hierarchical relationship to obtain an extended attribute element data table.
[0174] In a possible implementation of an embodiment of the present application, the efficiency of determining the extended attribute element data table is improved. The target split data element option includes a first target split data element option for selecting each header information of the data report, a second target split data element option for selecting the hierarchical information of the first header information, and a third target split data element option; wherein the first header information is the header information determined based on the first target split data element option selected by the user; the second input includes a first sub-input, a second sub-input, and a third sub-input. The second response module 603 provided in the embodiment of the present application may include:
[0175] A first response submodule, configured to respond to a first sub-input of a first target split data element option by a user, and obtain first data content corresponding to the first sub-input from a data report;
[0176] A second response submodule is used to respond to the user's second sub-input of the second target split data element option, and obtain second data content corresponding to the second sub-input from the extended attribute element data table corresponding to the first header information;
[0177] A third response submodule is used to respond to a third sub-input of a third target split data element option by a user, and obtain a third data content corresponding to the third sub-input from the data report; wherein, when the first header information is the header information of the first report unit, the third target split data element option is an option for selecting target information in the target hierarchy; and when the first header information is the header information of the second report unit, the third target split data element option is an option for selecting a statistical object of the first data content;
[0178] The first determination submodule is used to determine the first data content, the second data content and the third data content as target data.
[0179] In a possible implementation of the embodiment of the present application, the data report processing device 600 provided in the embodiment of the present application may further include:
[0180] The second acquisition module is used to obtain the user's identity information;
[0181] A second determination module is used to determine the user's access rights based on the identity information;
[0182] A first deletion module is used to delete data that is not within the user's access permission from the target data to obtain modified target data;
[0183] Based on this, the aforementioned generating module 604 can also be used to generate a target report according to the modified target data.
[0184] In a possible implementation of the embodiment of the present application, the data report processing device 600 provided in the embodiment of the present application may further include:
[0185] The third acquisition module is used to obtain the user's identity information;
[0186] A third determination module is used to determine the user's access rights based on the identity information;
[0187] A second deleting module is used to delete target split data element options that are not within the user's access rights from the target data to obtain modified target split data element options;
[0188] The aforementioned second response module 603 is also used to extract target data corresponding to the modified target split data element option from the data report and the extended attribute element data table.
[0189] Figure 7 A schematic diagram of the hardware structure of an electronic device 700 provided in an embodiment of the present application is shown.
[0190] The electronic device 700 may include a processor 701 and a memory 702 storing computer program instructions.
[0191] Specifically, the processor 701 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0192] The memory 702 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 702 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 702 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory.
[0193] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present disclosure.
[0194] The processor 701 implements any one of the data report processing methods in the above embodiments by reading and executing the computer program instructions stored in the memory 702 .
[0195] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0196] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0197] Bus 710 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0198] The electronic device can execute the data report processing method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 6 The invention discloses a data report processing method and device.
[0199] In addition, in combination with the data report processing method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the data report processing methods in the above embodiment is implemented.
[0200] An embodiment of the present application also provides a computer program product, which includes a computer program, and when the computer program is processed and executed, it implements any of the aforementioned data report processing methods.
[0201] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0202] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0203] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0204] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable device to produce a machine so that these instructions executed by the processor of the computer or other programmable device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0205] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data report processing method, characterized in that: The method comprises: Displaying a target interface, the target interface including a data report and a preset control, the data report including a plurality of report units, the plurality of report units including a first report unit having associated relationships between content items within the report unit and a second report unit having no associated relationships between content items within the report unit; the first report unit is associated with an extended attribute element data table obtained by extending attributes of data elements of the first report unit according to a plurality of different levels; In response to a first user input to the preset control, displaying candidate split data element options; In response to a second input of a user configuring a target split data element option from the candidate split data element options, extracting target data corresponding to the target split data element option from the data report and the extended attribute element data table; A target report is generated according to the target data.
2. The method according to claim 1, characterized in that Before displaying the target interface, the method further includes: For each of the first report units in the data report, the following operations are performed respectively to obtain the extended attribute element data table associated with each of the first report units: Obtaining the attributes of the data element of the first report unit; Determining a hierarchical relationship between the attributes of each of the data elements; Based on the hierarchical relationship, each of the data elements is divided according to the hierarchy to which each of the data elements belongs, to obtain the extended attribute element data table.
3. The method according to claim 1, characterized in that The target split data element options include a first target split data element option for selecting each header information of the data report, a second target split data element option for selecting hierarchical information of the first header information, and a third target split data element option; wherein the first header information is the header information determined based on the first target split data element option selected by the user; the second input includes a first sub-input, a second sub-input, and a third sub-input, and in response to the second input of the user configuring the target split data element option from the candidate split data element options, extracting target data corresponding to the target split data element option from the data report and the extended attribute element data table includes: In response to a first sub-input of the user to the first target split data element option, acquiring first data content corresponding to the first sub-input from the data report; In response to a second sub-input of the user for the second target split data element option, acquiring second data content corresponding to the second sub-input from the extended attribute element data table corresponding to the first header information; In response to a third sub-input of the user to the third target split data element option, obtaining third data content corresponding to the third sub-input from the data report; The first data content, the second data content, and the third data content are determined as target data.
4. The method according to claim 3, characterized in that The method further comprises: In the case where the first header information is the header information of the first report unit, the third target split data element option is an option for selecting target information in a target level; In the case where the first header information is the header information of the second report unit, the third target split data element option is an option for selecting a statistical object of the first data content.
5. The method according to any one of claims 1 to 4, characterized in that: Before generating a target report according to the target data, the method further includes: Obtaining identity information of the user; Determining the access rights of the user according to the identity information; deleting data that is not within the access permission of the user from the target data to obtain modified target data; Generating a target report according to the target data includes: A target report is generated according to the modified target data.
6. The method according to any one of claims 1 to 4, characterized in that: Before extracting the target data corresponding to the target split data element option from the data report and the extended attribute element data table, the method further includes: Obtaining identity information of the user; Determining the access rights of the user according to the identity information; deleting target split data element options that are not within the user's access rights from the target data to obtain modified target split data element options; The step of extracting target data corresponding to the target split data element option from the data report and the extended attribute element data table includes: Target data corresponding to the modified target split data element option is extracted from the data report and the extended attribute element data table.
7. A data report processing device, characterized in that: The device comprises: A display module is used to display a target interface, the target interface includes a data report and a preset control, the data report includes a plurality of report units, the plurality of report units include a first report unit in which content items within the report unit have an association relationship and a second report unit in which content items within the report unit do not have an association relationship; the first report unit is associated with an extended attribute element data table obtained by extending the attributes of the data elements of the first report unit according to a plurality of different levels; A first response module, configured to display candidate split data element options in response to a first input of a user to the preset control; A second response module, configured to extract target data corresponding to the target split data element option from the data report and the extended attribute element data table in response to a second input of a user configuring a target split data element option from the candidate split data element options; A generating module is used to generate a target report according to the target data.
8. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data report processing method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data report processing method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that It includes a computer program, which, when executed, implements the data report processing method according to any one of claims 1 to 6.
