Report generation method, device and equipment, readable storage medium and program product

By obtaining and parsing user's report custom data, adjusting the content of the initial report, and generating target reports that match the demand users, it solves the problem of inconsistent report requirements for different users, and improves the flexibility and user experience of report generation.

CN119476229APending Publication Date: 2025-02-18SHENZHEN COMTOP INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411526728.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Different types of users in the enterprise have different needs for viewing the same report. How to generate reports that match user needs is an urgent problem that needs to be solved.

Method used

By obtaining the report custom data of the demand user, analyzing this data to determine the demand header type and header arrangement order of the demand user, adjusting the content of the initial report, and generating a target report that matches the demand user.

Benefits of technology

It realizes the flexibility of report generation, so that the generated target reports better match the needs of demand users, and improves the personalization and user experience of reports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119476229A_ABST
    Figure CN119476229A_ABST
Patent Text Reader

Abstract

The invention relates to a report generation method and device, equipment, a readable storage medium and a program product. The method comprises the steps of obtaining report customization data corresponding to a demand user in response to a report generation operation; wherein the demand user is a current login user; and according to the report customization data, adjusting report contents of the initial report, and generating a target report corresponding to the demand user. By adopting the method, the flexibility of report generation can be improved, so that the report displayed to the user can be matched with the user demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a report generation method, apparatus, device, readable storage medium and program product. Background Art

[0002] With the advent of the big data era, the management model of traditional enterprises will change accordingly. In order to maintain steady development in the market competition, all enterprises have made technical reforms in their management models. In the process of technological reform and development, the importance of reports as the main carrier of enterprise data statistics is self-evident.

[0003] However, users who need to view reports in an enterprise may play different roles in the enterprise, and different types of users may have different viewing requirements for the same report. In this case, how to generate reports that match user needs is an urgent problem to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide a report generation method, apparatus, device, readable storage medium and program product that can improve the flexibility of report generation in response to the above technical problems.

[0005] In a first aspect, the present application provides a report generation method, comprising:

[0006] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0007] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0008] In one embodiment, the report content of the initial report is adjusted according to the report customization data to generate a target report corresponding to the required user, including:

[0009] Parse the report customization data to obtain the parsing result; wherein the parsing result includes the demand header type corresponding to the demand user;

[0010] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the target report corresponding to the required user.

[0011] In one embodiment, the parsing result also includes the table header arrangement order corresponding to the demand user; accordingly, the column fields corresponding to the initial table header items that do not match the demand table header type in the initial report are deleted to obtain the target report corresponding to the demand user, including:

[0012] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the report to be processed;

[0013] Based on the order of the table headers, the column fields of the report to be processed are sorted to obtain the target report corresponding to the required user.

[0014] In one embodiment, based on the order of table headers, the column fields of the report to be processed are sorted to obtain a target report corresponding to the required user, including:

[0015] Based on the first order in the header sorting sequence, sort the column fields corresponding to the first-level header in the report to be processed;

[0016] For a first-level table header having at least two second-level table headers deployed therein, based on a second order in the table header arrangement order, the column fields corresponding to each second-level table header are sorted to obtain a target report corresponding to the required user;

[0017] The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

[0018] In one embodiment, the method further comprises:

[0019] Pre-display target report;

[0020] During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly and the adjusted target report is displayed.

[0021] In one embodiment, in response to a report generation operation, obtaining report customization data corresponding to a requesting user includes:

[0022] In response to the report generation operation, obtaining a user ID of a requesting user;

[0023] Obtaining report customization data associated with the user ID from a report customization database;

[0024] Accordingly, the method further includes:

[0025] If there is no report customization data associated with the user ID, the initial report is displayed.

[0026] In a second aspect, the present application also provides a report generation device, comprising:

[0027] A data acquisition module, used to obtain report customization data corresponding to a requesting user in response to a report generation operation; wherein the requesting user is a currently logged-in user;

[0028] The report generation module is used to adjust the report content of the initial report according to the report customization data and generate a target report corresponding to the required user.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0031] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0033] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0034] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0035] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0036] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0037] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0038] The report generation method, apparatus, device, readable storage medium and program product described above, in response to a report generation operation, obtains report customization data corresponding to the user in need, and adjusts the report content of the initial report according to the report customization data to generate a target report corresponding to the user in need. In the process of generating the target report described above, the report customization data corresponding to the user in need is introduced, so that the generated target report can better match the needs of the user in need. Furthermore, compared with directly generating the initial report in the prior art, the process described above introduces the report customization data corresponding to the user in need, which can improve the flexibility of report generation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0040] Figure 1 An application environment diagram of a report generation method in an embodiment;

[0041] Figure 2 A flowchart of a report generation method in one embodiment;

[0042] Figure 3 A flowchart of target report generation steps in one embodiment;

[0043] Figure 4A A flowchart of a report adjustment step in an embodiment;

[0044] Figure 4B A schematic diagram of a pre-display operation interface in an embodiment;

[0045] Figure 5 A flowchart of steps for obtaining report customization data in an embodiment;

[0046] Figure 6 It is a flowchart of a report generation method in another embodiment;

[0047] Figure 7 is a structural block diagram of a report generating device in one embodiment;

[0048] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0050] Before introducing the report generation method provided by the present application, it should be noted that in the traditional technology, since the user's needs are uncertain or may change, after the software system is released, if the user wants to change the content and style of the report, the developer needs to modify the code logic and re-release the version, and the code logic modification will inevitably cause a waste of manpower and material resources, and the report generation efficiency is low and the accuracy is not high. In order to solve the above problems, some software systems pre-set a limited number of templates for users to choose from, and generate specific reports based on the user's choice, but this method is still not flexible enough, because it is impossible to pre-set an unlimited number of templates, and the user can only make a second choice, export the report as an Excel table, perform secondary processing offline, or require the developer to modify the code and re-release the version. This application is a method that can improve the flexibility of report generation proposed to solve the above problems.

[0051] The report generation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Specifically, the server 104 responds to the report generation operation on the terminal 102, and obtains the report customization data corresponding to the demand user; wherein the demand user is the current logged-in user; the server 104 adjusts the report content of the initial report according to the report customization data, and generates a target report corresponding to the demand user. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0052] In an exemplary embodiment, Figure 2 As shown, a report generation method is provided, which is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:

[0053] S210, in response to the report generation operation, obtaining report customization data corresponding to the requesting user.

[0054] The report generation operation may be an operation for generating a report, and the report generation operation may be an operation triggered by a user or an operation automatically generated by a terminal. This application does not impose any restrictions on the source of the report generation operation. The report customization data is used to characterize different customization requirements of different users for report generation.

[0055] The user in need is the currently logged-in user. It is understandable that when a user logs in to a system account through a terminal to view business data, the user can generate a report by triggering a report generation operation, which is convenient for the user to view business data. Therefore, in this case, the currently logged-in user can be regarded as the user in need, and accordingly, the obtained report customization data is the report customization data corresponding to the currently logged-in user.

[0056] Optionally, the user can pre-set report customization data applicable to all types of reports; the user can also set report customization data for the current report to be generated when there is a report generation requirement. Accordingly, in an optional implementation, each user can pre-set report customization data, and when a report generation requirement is detected, the report customization data corresponding to the user in need is obtained.

[0057] In an optional implementation, in response to a report generation operation, a report customization data input interface is displayed to the user in need, and then the report customization data input by the user in the data input interface is obtained as the report customization data corresponding to the current report to be generated.

[0058] S220, adjusting the report content of the initial report according to the report customization data, and generating a target report corresponding to the user in need.

[0059] The initial report may be a standard report corresponding to the current business data; the target report may be a report generated based on the current business data and matching the report customization requirements of the user.

[0060] In an optional implementation, the report customization data and the initial report may be input into a pre-trained report generation model to obtain a target report corresponding to the required user.

[0061] In an optional implementation, the report customization data may represent a report adjustment rule corresponding to the demanding user. Based on the report customization data, the report content of the initial report is adjusted, for example, deleted or modified, to obtain a target report corresponding to the demanding user.

[0062] In the above report generation method, in response to the report generation operation, the report customization data corresponding to the demand user is obtained, and according to the report customization data, the report content of the initial report is adjusted to generate a target report corresponding to the demand user. In the above process of generating the target report, the report customization data corresponding to the demand user is introduced, so that the generated target report can better match the demand of the demand user. Furthermore, compared with directly generating the initial report in the prior art, the above process introduces the report customization data corresponding to the demand user, which can improve the flexibility of report generation.

[0063] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the process of adjusting the report content of the initial report according to the report customization data to generate a target report corresponding to the required user is refined.

[0064] See also Figure 3 The target report generation steps shown include:

[0065] S310, parsing the report customization data to obtain parsing results.

[0066] The parsing result includes the demand header type corresponding to the demand user, and the demand header type is used to describe the header type that the demand user needs to view. For example, the header type may include project name, participants, cost, income, and total, etc. If the demand user only needs to know the project name and total, the corresponding demand header type is the project name and total; if the demand user needs to know the entire content of the project, the corresponding demand header type is the entire header type.

[0067] Exemplarily, in this embodiment, the report customization data can be input into a pre-trained data analysis model to obtain an analysis result. The data analysis model can be constructed based on a common neural network, which will not be described in detail here. Further, in the process of training the data analysis model, the sample customization data can be input into the data analysis model to obtain a sample analysis result corresponding to the sample customization data. Further, according to the sample analysis result and the analysis result label corresponding to the sample customization data, the model parameters of the data analysis model are adjusted.

[0068] S320, deleting the column fields corresponding to the initial header items that do not match the required header type in the initial report, and obtaining a target report corresponding to the required user.

[0069] Exemplarily, different header types correspond to different header items. Optionally, the correspondence between the reference header type and the reference header item can be predetermined. Further, according to the correspondence, the initial header item in the correspondence that does not correspond to the required header type is used as a column field to be deleted, and the column field to be deleted is deleted to obtain a target report corresponding to the required user.

[0070] For example, see the following initial report 1:

[0071]

[0072] It can be seen that the initial report 1 is set with header item 1, header item 2, header item 3, ..., header item 10. If the column fields to be deleted are header item 3, header item 8 and header item 10, the target report 2 is as follows:

[0073]

[0074] In order to improve the matching degree between the target report and the report customization data so that the target report can better meet the report viewing needs of the required users, the parsing result also includes the header arrangement order corresponding to the required users, wherein the header arrangement order is used to characterize the header order of the target report.

[0075] Accordingly, the column fields corresponding to the initial header items that do not match the required header type in the initial report are deleted to obtain the report to be processed; based on the header arrangement order, the column fields of the report to be processed are sorted to obtain the target report corresponding to the required user.

[0076] That is to say, the target report 2 is used as the report to be processed, and the header arrangement order of the report to be processed is sorted to obtain the target report.

[0077] Exemplarily, the header arrangement order may record a specific header arrangement order. For example, if the header arrangement order is represented by: sorting in the order of headers in the initial report, then the report to be processed is the target report. If the header arrangement order is represented by: sorting in the order of header item 1, header item 4, header item 2, header item 6, header item 5, header item 7, and header item 9, then the target report 3 is as follows:

[0078]

[0079] For example, the header arrangement order can also record the order of arrangement of different header types. For example, if the header arrangement order indicates: arrange the header items related to the amount behind all header items. If header item 2 and header item 4 indicate the amount, the target report 4 is as follows:

[0080]

[0081] Optionally, based on the first order in the header arrangement order, the column fields corresponding to the first-level header in the to-be-processed report are sorted; for the first-level header with at least two second-level headers deployed, based on the second order in the header arrangement order, the column fields corresponding to each second-level header are sorted to obtain a target report corresponding to the required user; wherein the first order is used to sort the first-level header; and the second order is used to sort the second-level header. Exemplarily, the target report 5 is shown below:

[0082]

[0083] It can be seen that in the target report 5, header item 1, header item 2 and header item 3 are all first-level headers; header item 3 1 and header item 3 2 Two second-level headers are deployed for header item 3.

[0084] Taking target report 5 as an example, the first order is the arrangement rule for header item 1, header item 2, and header item 3; the second order is the arrangement rule for header item 3 1 and header item 3 2 The arrangement order rules.

[0085] Optionally, when there is a first-level header with at least two second-level headers in the report to be processed, the header arrangement order in the report customization data can mark the level corresponding to each header. For the second-level header, its corresponding first-level header also needs to be marked.

[0086] In the above embodiment, the process of generating the target report is refined. Specifically, the initial report is adjusted according to the required header type corresponding to the required user, and further, the adjusted report is adjusted again according to the header arrangement order corresponding to the required user to obtain the target report, so that the target report is more compatible with the report viewing requirements of the required user.

[0087] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, after the target report is generated and before the target report is displayed, a report adjustment method can be provided to enable the user to adjust the target report again, so as to further match the displayed target report with the needs of the user.

[0088] See also Figure 4A The steps for adjusting the report shown include:

[0089] S410, pre-displaying a target report.

[0090] It should be noted that after generating the target report, the server can output the target report to the terminal through the front-end web interface so that the user can preview the target report or customize it.

[0091] S420: During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly, and the adjusted target report is displayed.

[0092] Optionally, the user can adjust the target report by dragging or deleting column fields in the target report.

[0093] Optionally, the target report can be Figure 4B The operation interface shown in the figure is pre-displayed. The operation interface is provided with adjustment buttons, and the user can make different adjustments by touching different buttons. Specifically, the functions of different buttons are introduced as follows:

[0094] Add a new column: Add a new column. The new column is displayed in the list to the right of the button. The new column can only be selected from the initial report returned by the server.

[0095] Delete column: Select a column to delete in the list on the right.

[0096] Move forward: Select a column in the list on the right and move it forward one position in the report order. The minimum value is 1.

[0097] Move right: Select a column in the list on the right and move it one position backward in the report order, up to the maximum number of selected columns.

[0098] Promote: Select a column in the list on the right to raise its level in the report by one level, with a minimum value of 1.

[0099] Demote: Select a column in the list on the right to lower its level in the report by one level. The maximum value is that the difference with other values ​​does not exceed 1, otherwise there will be a gap.

[0100] In the above embodiment, after the target report is generated, a report adjustment window is also provided so that the target report finally displayed on the terminal can better match the report viewing requirements of the user in need.

[0101] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the process of obtaining report customization data corresponding to the user in response to the report generation operation is refined.

[0102] See also Figure 5 The steps for obtaining report customization data shown include:

[0103] S510: In response to the report generation operation, obtain a user identifier of a requesting user.

[0104] There are different user IDs corresponding to users with different needs.

[0105] In this embodiment, the report generation operation corresponds to a report generation request, and the report generation request carries a user identifier of the requesting user.

[0106] S520: Acquire report customization data associated with the user identifier from a report customization database.

[0107] The report customization database stores report customization data corresponding to different users, and different customization data are stored in association with user identifiers of corresponding users.

[0108] Correspondingly, if there is no report customization data associated with the user ID, the initial report is displayed.

[0109] In the above embodiment, a specific process of acquiring customized report data corresponding to a user with a requirement is provided, so that the efficiency of acquiring customized report data is higher.

[0110] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the report generation method provided by the present application is introduced in detail.

[0111] See also Figure 6 The report generation method shown includes:

[0112] S601, the terminal generates a report generation request in response to a report generation operation of a requesting user, and sends the report generation request to a server; wherein the requesting user is a currently logged-in user;

[0113] S602, the server responds to the report generation request and obtains the user ID of the requesting user;

[0114] S603, the server obtains the report customization data associated with the user identifier from the report customization database;

[0115] S604A, if there is no report customization data associated with the user identifier, the server generates an initial report and sends the initial report to the terminal;

[0116] S605A, the terminal displays the initial report;

[0117] S604B, if the user identifier has associated report customization data, the server parses the report customization data to obtain a parsing result;

[0118] The parsing result includes the demand header type corresponding to the demand user;

[0119] S605B, the server deletes the column fields corresponding to the initial header items that do not match the required header type in the initial report, and obtains the report to be processed;

[0120] S606B, the server sorts the column fields corresponding to the first-level header in the report to be processed based on the first order in the header arrangement order;

[0121] S607B, the server sorts the column fields corresponding to the second-level headers for the first-level headers deployed with at least two second-level headers based on the second order in the header arrangement order, to obtain a target report corresponding to the required user;

[0122] The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

[0123] S608B, the server sends the target report to the terminal;

[0124] S609B, the terminal pre-displays the target report;

[0125] S610B, during the process of pre-displaying the target report, if the server detects an adjustment operation on the target report, the target report is adjusted accordingly, and the adjusted target report is sent to the terminal;

[0126] S611B, the terminal displays the adjusted target report.

[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0128] Based on the same inventive concept, the embodiment of the present application also provides a report generation device for implementing the report generation method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more report generation device embodiments provided below can refer to the limitations on the report generation method above, and will not be repeated here.

[0129] In an exemplary embodiment, Figure 7 As shown, a report generation device is provided, including: a data acquisition module 710 and a report generation module 720, wherein:

[0130] The data acquisition module 710 is used to obtain report customization data corresponding to the user in need in response to the report generation operation.

[0131] The required user is the currently logged in user.

[0132] The report generation module 720 is used to adjust the report content of the initial report according to the report customization data, and generate a target report corresponding to the user in need.

[0133] In one embodiment, the report generation module 720 includes a data parsing unit, which is used to parse the report customization data to obtain a parsing result; wherein the parsing result includes a demand header type corresponding to the demand user; and the report generation unit is used to delete the column fields corresponding to the initial header items in the initial report that do not match the demand header type, and obtain a target report corresponding to the demand user.

[0134] In one embodiment, the parsing result also includes a header arrangement order corresponding to the demand user; accordingly, the report generation unit includes a field deletion subunit, which is used to delete the column fields corresponding to the initial header items in the initial report that do not match the demand header type, so as to obtain a report to be processed; the report generation subunit is used to sort the column fields of the report to be processed based on the header arrangement order, so as to obtain a target report corresponding to the demand user.

[0135] In one embodiment, the report generation sub-unit is specifically used to sort the column fields corresponding to the first-level header in the report to be processed based on the first order in the header arrangement order; for the first-level header deployed with at least two second-level headers, based on the second order in the header arrangement order, the column fields corresponding to each second-level header are sorted to obtain a target report corresponding to the required user; wherein the first order is used to sort the first-level header; and the second order is used to sort the second-level header.

[0136] In one embodiment, the report generating device includes a report display module, including a pre-display unit for pre-displaying a target report; a report display unit for adjusting the target report accordingly and displaying the adjusted target report if an adjustment operation for the target report is detected during the pre-display of the target report.

[0137] In one embodiment, the data acquisition module 710 includes an identification acquisition unit for acquiring a user identification of a requesting user in response to a report generation operation; a data acquisition unit for acquiring report customization data associated with the user identification from a report customization database; and a report display module for displaying an initial report if there is no report customization data associated with the user identification.

[0138] Each module in the above-mentioned report generation device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0139] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile 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 the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a report generation method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0140] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0141] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0142] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0143] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0145] Parse the report customization data to obtain the parsing result; wherein the parsing result includes the demand header type corresponding to the demand user;

[0146] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the target report corresponding to the required user.

[0147] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0148] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the report to be processed;

[0149] Based on the order of the table headers, the column fields of the report to be processed are sorted to obtain the target report corresponding to the required user.

[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0151] Based on the first order in the header sorting sequence, sort the column fields corresponding to the first-level header in the report to be processed;

[0152] For a first-level table header having at least two second-level table headers deployed therein, based on a second order in the table header arrangement order, the column fields corresponding to each second-level table header are sorted to obtain a target report corresponding to the required user;

[0153] The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

[0154] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0155] Pre-display target report;

[0156] During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly and the adjusted target report is displayed.

[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0158] In response to the report generation operation, obtaining a user ID of a requesting user;

[0159] Obtaining report customization data associated with the user ID from a report customization database;

[0160] Accordingly, the method further includes:

[0161] If there is no report customization data associated with the user ID, the initial report is displayed.

[0162] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0163] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0164] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0165] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0166] Parse the report customization data to obtain the parsing result; wherein the parsing result includes the demand header type corresponding to the demand user;

[0167] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the target report corresponding to the required user.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0169] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the report to be processed;

[0170] Based on the order of the table headers, the column fields of the report to be processed are sorted to obtain the target report corresponding to the required user.

[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0172] Based on the first order in the header sorting sequence, sort the column fields corresponding to the first-level header in the report to be processed;

[0173] For a first-level table header having at least two second-level table headers deployed therein, based on a second order in the table header arrangement order, the column fields corresponding to each second-level table header are sorted to obtain a target report corresponding to the required user;

[0174] The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

[0175] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0176] Pre-display target report;

[0177] During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly and the adjusted target report is displayed.

[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0179] In response to the report generation operation, obtaining a user ID of a requesting user;

[0180] Obtaining report customization data associated with the user ID from a report customization database;

[0181] Accordingly, the method further includes:

[0182] If there is no report customization data associated with the user ID, the initial report is displayed.

[0183] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0184] In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user;

[0185] According to the report customization data, the report content of the initial report is adjusted to generate the target report corresponding to the required users.

[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0187] Parse the report customization data to obtain the parsing result; wherein the parsing result includes the demand header type corresponding to the demand user;

[0188] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the target report corresponding to the required user.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the report to be processed;

[0191] Based on the order of the table headers, the column fields of the report to be processed are sorted to obtain the target report corresponding to the required user.

[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0193] Based on the first order in the header sorting sequence, sort the column fields corresponding to the first-level header in the report to be processed;

[0194] For a first-level table header having at least two second-level table headers deployed therein, based on a second order in the table header arrangement order, the column fields corresponding to each second-level table header are sorted to obtain a target report corresponding to the required user;

[0195] The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0197] Pre-display target report;

[0198] During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly and the adjusted target report is displayed.

[0199] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0200] In response to the report generation operation, obtaining a user ID of a requesting user;

[0201] Obtaining report customization data associated with the user ID from a report customization database;

[0202] Accordingly, the method further includes:

[0203] If there is no report customization data associated with the user ID, the initial report is displayed.

[0204] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0205] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0206] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A report generation method, characterized in that: The method comprises: In response to the report generation operation, obtaining report customization data corresponding to the requesting user; wherein the requesting user is the currently logged-in user; According to the report customization data, the report content of the initial report is adjusted to generate a target report corresponding to the required user.

2. The method according to claim 1, characterized in that The step of adjusting the report content of the initial report according to the report customization data to generate a target report corresponding to the user in need includes: Parsing the report customization data to obtain a parsing result; wherein the parsing result includes a demand header type corresponding to the demand user; Delete the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain the target report corresponding to the required user.

3. The method according to claim 2, characterized in that The parsing result also includes the table header arrangement order corresponding to the demand user; accordingly, deleting the column fields corresponding to the initial table header items that do not match the demand table header type in the initial report to obtain the target report corresponding to the demand user includes: Deleting the column fields corresponding to the initial header items that do not match the required header type in the initial report to obtain a report to be processed; Based on the table header arrangement order, the column fields of the report to be processed are sorted to obtain a target report corresponding to the user in need.

4. The method according to claim 3, characterized in that: The step of sorting the column fields of the report to be processed based on the table header arrangement order to obtain a target report corresponding to the user in need includes: Sort the column fields corresponding to the first level header in the report to be processed based on the first order in the header arrangement order; For a first-level header having at least two second-level headers deployed therein, based on a second order in the header arrangement order, the column fields corresponding to each second-level header are sorted to obtain a target report corresponding to the demand user; The first order is used to sort the first-level headers; the second order is used to sort the second-level headers.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Pre-displaying the target report; During the process of pre-displaying the target report, if an adjustment operation on the target report is detected, the target report is adjusted accordingly, and the adjusted target report is displayed.

6. The method according to any one of claims 1 to 4, characterized in that The step of obtaining report customization data corresponding to the requesting user in response to the report generation operation includes: In response to the report generation operation, obtaining a user ID of a requesting user; Acquiring report customization data associated with the user identifier from a report customization database; Accordingly, the method further includes: If there is no report customization data associated with the user identification, the initial report is displayed.

7. A report generation device, characterized in that: The device comprises: A data acquisition module, used to obtain report customization data corresponding to a requesting user in response to a report generation operation; wherein the requesting user is a currently logged-in user; The report generation module is used to adjust the report content of the initial report according to the report customization data to generate a target report corresponding to the user in need.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.