Report generation method, device and electronic equipment

By dividing topics based on business scenarios in the field of data analysis and automatically setting filtering conditions and configuration pages, it solves the problem in the existing technology that reports need to be regenerated every time the data filtering conditions are changed, achieving operational flexibility and convenience.

CN118227674BActive Publication Date: 2024-10-18四川中仑数科科技有限责任公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410640355.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-10-18
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

In the prior art, every time the data filtering conditions are changed, a new fetching report needs to be regenerated or the original fetching report needs to be modified, which makes the operation inflexible.

Method used

By dividing multiple topics based on business scenarios, each topic corresponds to a data system table in the data service layer, integrating all dimensions and indicators, responding to the dimensions and indicators selected by the user, automatically setting filtering conditions, and configuring the topic page according to the filtering conditions. Support users to switch to view reports of different dimensions on the same theme page.

Benefits of technology

It realizes the flexibility and convenience of operation. Users can generate reports of different dimensions under the same theme and support arbitrarily modifying filter conditions to view reports, solving the problem of inflexible operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227674B_ABST
    Figure CN118227674B_ABST
Patent Text Reader

Abstract

The present disclosure provides a report generation method, device and electronic device, which relate to the field of data analysis technology, wherein the method includes: dividing multiple topics based on business scenarios, wherein each topic corresponds to a data system table of the data service layer, and each data system table integrates all dimensions and indicators under each topic; in response to a topic selected by a user from multiple topics, displaying all dimensions and indicators under the topic; receiving multiple dimensions and indicators selected by the user under the topic, automatically setting filtering conditions under the topic, and configuring the topic page according to the multiple dimensions, indicators and filtering conditions; in response to the dimensions and indicators selected by the user on the topic page, querying the data that meets the filtering conditions from the topic table corresponding to the topic, generating a report for the data and displaying it. The present disclosure can generate reports of different dimensions under the same topic, and supports users to switch to view reports of different dimensions under the same topic page, with convenient operation and clear structure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data analysis, and in particular to a report generation method, device and electronic device. Background Art

[0002] In the field of data analysis, it is often necessary to retrieve data from the database, that is, to extract the data required by the user from the database and present the data in the form of a report. Currently, users can generate data retrieval reports after setting the data filtering conditions, and can save each filtering condition, and then directly view the report by clicking the report name.

[0003] However, in the related art, each time the data screening conditions are changed, a new data acquisition report must be regenerated or the original data acquisition report must be modified and saved to take effect, which is inflexible.

[0004] In view of the problem that each time the data screening conditions are changed in the related technology, a new data acquisition report must be regenerated or the original data acquisition report must be modified, which is inflexible in operation, no effective technical solution has been proposed so far. Summary of the invention

[0005] The main purpose of the present disclosure is to provide a report generation method, device and electronic device to solve the problem in the related art that each time the data screening conditions are changed, a new data acquisition report must be regenerated or the original data acquisition report must be modified, resulting in inflexible operation.

[0006] In order to achieve the above object, the first aspect of the present disclosure provides a method for generating a report, comprising:

[0007] Multiple topics are divided based on business scenarios. Each topic corresponds to a data system table in the data service layer. Each data system table integrates all dimensions and indicators under each topic.

[0008] In response to a topic selected by a user from among the multiple topics, all dimensions and indicators under the topic are displayed;

[0009] receiving multiple dimensions and indicators selected by a user under the topic, automatically setting filtering conditions under the topic, and configuring a topic page according to the multiple dimensions, indicators and filtering conditions; and

[0010] In response to the dimensions and indicators selected by the user on the topic page, data that meets the screening conditions is queried from the topic table corresponding to the topic, and a report is generated and displayed for the data.

[0011] Optionally, the multiple topics are divided based on the business scenarios, including:

[0012] Based on the application scenarios of the people-goods-store model in the retail industry, different business scenarios of people, goods and stores are obtained;

[0013] According to different business scenarios of personnel, commodities and stores, multiple topics are divided, including member sales, member asset statistics, commodity sales, commodity gross profit statistics, wholesale gross profit statistics and store operations.

[0014] Optionally, in response to a topic selected by the user from multiple topics, all dimensions and indicators under the topic are displayed, including:

[0015] Receive a topic selected by a user from multiple topics, and display all dimensions and indicators under the topic according to the data system table corresponding to the topic;

[0016] The dimensions include product dimensions, employee dimensions, store dimensions, suppliers, payment and date; the product dimensions include product, specification, brand, category and color; the employee dimensions include cashier and shopping guide; the store dimensions include store, shipping store and department;

[0017] The indicators include gross profit, gross profit margin, rounding off, retail amount, discount amount, recharge amount, order amount and actual amount collected.

[0018] Optionally, the receiving of multiple dimensions and indicators selected by the user under the topic includes:

[0019] receiving a plurality of dimensions selected by a user under the topic;

[0020] Setting the layout of the dimension fields on the topic page, displaying the multiple dimensions and the topic on the same page, and configuring the multiple dimensions at a level below the topic, wherein the multiple dimensions are at the same level, and the dimensions are in a logical OR relationship;

[0021] receiving a plurality of indicators selected by a user under the topic;

[0022] The layout of the indicator field on the subject page is set, and the multiple indicators selected by the user are used as the indicators of the report to be generated.

[0023] Optionally, the automatically setting of the screening conditions under the topic includes:

[0024] Automatically set the default filter conditions under the said topic;

[0025] Use the filter conditions as query fields and set the layout of the query fields on the topic page;

[0026] The screening condition is provided with attributes and corresponding attribute values, and the attributes include condition name, whether to display, condition type and matching principle;

[0027] In the default screening conditions, the attribute values ​​corresponding to the condition names include transaction time, store or online store, store name, store code, store business type, transaction channel, shopping guide or waiter, cashier, product library supplier and transaction source by default;

[0028] Whether to display the corresponding attribute value includes display and non-display, the attribute value corresponding to the condition type includes single value, multiple values ​​and interval, and the attribute value corresponding to the matching principle includes exact match and fuzzy match.

[0029] Furthermore, after automatically setting the default screening condition under the topic, the method further includes:

[0030] receiving the user's adjustment of the screening condition under the topic, and updating the adjusted screening condition;

[0031] The adjustment of the screening condition under the subject includes: adjustment of the attribute value corresponding to the condition name, modification of whether to display the corresponding attribute value, modification of the attribute value corresponding to the condition type and / or modification of the attribute value corresponding to the matching principle;

[0032] The adjustment of the attribute value corresponding to the condition name includes: adding, deleting and / or modifying the attribute value corresponding to the condition name.

[0033] Furthermore, configuring the topic page according to the multiple dimensions, indicators and screening conditions includes:

[0034] Configure the topic page according to the layout of dimension fields on the topic page, the layout of indicator fields on the topic page, and the layout of query fields on the topic page.

[0035] Optionally, in response to the dimension and indicator selected by the user on the topic page, querying the data that meets the screening condition from the topic table corresponding to the topic, generating a report for the data and displaying it, includes:

[0036] receiving a dimension selected by a user from multiple dimensions included in the same topic on a topic page, and receiving a configuration of a filtering condition by the user on the same topic page;

[0037] Query the data that meets the filtering condition from the topic table corresponding to the topic, aggregate the data according to the dimension, generate a report based on the aggregated data according to the indicator, and display the report on the topic page.

[0038] A second aspect of the present disclosure provides a report generation device, comprising:

[0039] The division unit is used to divide multiple topics based on business scenarios. Each topic corresponds to a data system table in the data service layer. Each data system table integrates all dimensions and indicators under each topic.

[0040] A display unit, configured to respond to a topic selected by a user from among multiple topics and display all dimensions and indicators under the topic;

[0041] A setting unit, configured to receive multiple dimensions and indicators selected by a user under the topic, automatically set filtering conditions under the topic, and configure a topic page according to the multiple dimensions, indicators and filtering conditions; and

[0042] The query unit is used to respond to the dimensions and indicators selected by the user on the topic page, query the data that meets the screening conditions from the topic table corresponding to the topic, generate a report for the data and display it.

[0043] A third aspect of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the report generation method provided by any one of the first aspects.

[0044] The fourth aspect of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the report generation method provided in any one of the first aspects.

[0045] In the report generation method provided by the present disclosure, multiple topics are divided based on business scenarios, wherein each topic corresponds to a data system table of the data service layer, and each data system table integrates all dimensions and indicators under each topic; in response to a topic selected by a user from multiple topics, all dimensions and indicators under the topic are displayed;

[0046] Receive multiple dimensions and indicators selected by the user under the topic, automatically set the filtering conditions under the topic, and configure the topic page according to the multiple dimensions, indicators and filtering conditions; respond to the dimensions and indicators selected by the user on the topic page, query the data that meets the filtering conditions from the topic table corresponding to the topic, generate a report for the data and display it. The present disclosure can generate reports of different dimensions under the same topic, and supports users to switch to view reports of different dimensions on the same topic page. It is easy to operate and has a clear structure. It solves the problem of inflexible operation in the related art that each time the filtering conditions of the data are changed, a new data acquisition report must be regenerated or the original data acquisition report must be modified. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0048] Figure 1 A flow chart of a method for generating a report provided in an embodiment of the present disclosure;

[0049] Figure 2 A block diagram of a report generation device provided in an embodiment of the present disclosure;

[0050] Figure 3 A block diagram of an electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

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

[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0054] In the field of data analysis, it is often necessary to extract data from a database, that is, to extract the data required by the user from the database and present the data in the form of a report. Currently, users can generate a data extraction report after setting the data filtering conditions, and can save the filtering conditions each time, and then directly view the report by clicking the report name. However, in the related art, each time the data filtering conditions are changed, a new data extraction report must be regenerated or the original data extraction report must be modified, and it will take effect after saving, which is inflexible.

[0055] In order to solve the above problems, the present disclosure provides a method for generating a report. Figure 1 As shown, the method includes the following steps S11 to S14:

[0056] Step S11: Divide multiple topics based on business scenarios, where each topic corresponds to a data system table in the data service layer, and each data system table integrates all dimensions and indicators under each topic; for example, business scenarios may include online sales, product brands, and shipping stores, and the data system table may be divided into a consumer data system table, a product data system table, and a store data system table according to different topics;

[0057] In an optional implementation of the present disclosure, step S11 includes:

[0058] Based on the application scenarios of the people-goods-store model in the retail industry, different business scenarios of people, goods and stores are obtained;

[0059] According to different business scenarios of personnel, goods and stores, multiple topics are divided, including member sales, member asset statistics, product sales, product gross profit statistics, wholesale gross profit statistics and store operations. According to the specific business scenarios of the people-goods-store model in the retail industry, all dimensions and indicators of sales, goods and other topics can be integrated, which is conducive to a comprehensive understanding of sales.

[0060] Step S12: in response to a user selecting a topic from multiple topics, displaying all dimensions and indicators under the topic;

[0061] In an optional implementation of the present disclosure, step S12 includes:

[0062] Receive a topic selected by a user from multiple topics, and display all dimensions and indicators under the topic according to the data system table corresponding to the topic; a topic includes multiple dimensions and multiple indicators, and all dimensions and indicators are used to describe detailed information of the corresponding topic in various aspects;

[0063] The dimensions include product dimensions, employee dimensions, store dimensions, suppliers, payment and date; the product dimensions include product, specification, brand, category and color; the employee dimensions include cashier and shopping guide; the store dimensions include store, shipping store and department;

[0064] The indicators include gross profit, gross profit margin, rounding off, retail amount, discount amount, recharge amount, order amount and actual amount collected.

[0065] Step S13: receiving multiple dimensions and indicators selected by the user under the topic, automatically setting filtering conditions under the topic, and configuring the topic page according to the multiple dimensions, indicators and filtering conditions;

[0066] The disclosed embodiments can help users categorize topics. Users select dimensions and indicators under corresponding topics. After receiving the dimensions and indicators selected by users under corresponding topics, filtering conditions under the corresponding topics are automatically set. Users do not need to set filtering conditions. The operation is simple and facilitates the subsequent generation of reports required by users.

[0067] In an optional implementation manner of the present disclosure, the receiving of multiple dimensions and indicators selected by the user under the topic in step S13 includes:

[0068] receiving multiple dimensions selected by a user under the topic; setting dimension fields in the topic page according to the multiple dimensions selected by the user under the topic;

[0069] Setting the layout of the dimension fields on the topic page, displaying the multiple dimensions and the topic on the same page, and configuring the multiple dimensions at a level below the topic, wherein the multiple dimensions are at the same level, and the dimensions are in a logical OR relationship;

[0070] receiving multiple indicators selected by the user under the topic; setting the indicator fields in the topic page according to the multiple indicators selected by the user under the topic;

[0071] The layout of the indicator field on the subject page is set, and the multiple indicators selected by the user are used as the indicators of the report to be generated.

[0072] The present disclosure displays dimensions of the same multiple levels on a topic page and configures the dimensions at the next level of the topic, so that users can view reports of different dimensions under the same topic conveniently. The structure is clear, and when users switch between different dimensions, they only need to operate within the same topic page without switching back and forth between different pages. The operation is simple and convenient.

[0073] In an optional implementation of the present disclosure, the automatically setting of the screening conditions under the topic in step S13 includes:

[0074] Automatically set the default filter conditions under the said topic;

[0075] Use the filter conditions as query fields and set the layout of the query fields on the topic page; automatically set the query fields on the topic page using the default filter conditions under the topic given by the system;

[0076] The screening condition is provided with attributes and corresponding attribute values, and the attributes include condition name, whether to display, condition type and matching principle;

[0077] In the default screening conditions, the attribute values ​​corresponding to the condition names include transaction time, store or online store, store name, store code, store business type, transaction channel, shopping guide or waiter, cashier, product library supplier and transaction source by default;

[0078] Whether to display the corresponding attribute value includes display and non-display, the attribute value corresponding to the condition type includes single value, multiple values ​​and interval, and the attribute value corresponding to the matching principle includes exact match and fuzzy match.

[0079] Under each topic of the embodiment of the present disclosure, filtering conditions for all dimension fields are provided. The user can choose whether to display the conditions, the attribute values ​​corresponding to the condition type, and the attribute values ​​corresponding to the matching principle. If the user needs to modify or adjust the filtering conditions, the query will take effect immediately after the modification or adjustment of the filtering conditions, and there is no need to re-save the plan.

[0080] In a preferred embodiment of the present disclosure, after automatically setting the default screening conditions under the topic, the method further includes:

[0081] Receive the user's adjustment to the filtering conditions under the topic, and update the adjusted filtering conditions; for the same report, the user can adjust the filtering conditions at will, and after receiving the user's adjusted filtering conditions, different reports can be created according to the filtering conditions without modifying the data acquisition plan, and the operation is simple and flexible.

[0082] The adjustment of the screening condition under the subject includes: adjustment of the attribute value corresponding to the condition name, modification of whether to display the corresponding attribute value, modification of the attribute value corresponding to the condition type and / or modification of the attribute value corresponding to the matching principle;

[0083] The adjustment of the attribute value corresponding to the condition name includes: adding, deleting and / or modifying the attribute value corresponding to the condition name.

[0084] In the embodiment of the present disclosure, for the same report, the user can modify the filtering conditions at will to view the report without having to modify the data acquisition plan each time. This solves the problem in the related art that each time the data filtering conditions are changed, a new data acquisition report must be regenerated or the original data acquisition report must be modified, resulting in inflexible operation.

[0085] In a preferred implementation of the present disclosure, configuring the topic page according to the multiple dimensions, indicators and screening conditions in step S13 includes:

[0086] Configure the topic page according to the layout of the dimension fields, the layout of the indicator fields, and the layout of the query fields on the topic page. The layout of the dimension fields, indicator fields, and query fields on the topic page constitute the entire topic page, which configures the entire topic page.

[0087] Step S14: In response to the dimensions and indicators selected by the user on the topic page, query the data that meets the screening conditions from the topic table corresponding to the topic, generate a report for the data and display it.

[0088] The disclosed embodiment can generate reports of different dimensions under the same theme, and supports users to switch to view reports of different dimensions on the same theme page, which is easy to operate and has a clear structure.

[0089] In an optional implementation of the present disclosure, step S14 includes:

[0090] receiving a dimension selected by a user from multiple dimensions included in the same topic on a topic page, and receiving a configuration of a filtering condition by the user on the same topic page; if the user does not adjust the filtering condition, the filtering condition is a default filtering condition, and if the user adjusts the filtering condition on the same topic page, the filtering condition is the filtering condition adjusted by the user;

[0091] Query the data that meets the screening condition from the topic table corresponding to the topic, aggregate the data according to the dimension, generate a report based on the aggregated data according to the indicator, and display the report on the topic page. Data can be aggregated according to any dimension selected by the user on the topic page, and a report can be generated and displayed.

[0092] From the above description, it can be seen that the present disclosure achieves the following technical effects:

[0093] This disclosure can help users categorize topics. Users only need to select dimensions and indicators under the corresponding topics to generate the required reports, which is simple to operate;

[0094] Moreover, for the same report, users can modify the filter conditions to view the report at will, without having to modify the data acquisition plan each time;

[0095] In addition, reports of different dimensions can be generated under the same topic, supporting users to switch to view reports of different dimensions on the same topic page. It is easy to operate and has a clear structure. It solves the problem of inflexible operation in related technologies where each time the data filtering conditions are changed, a new data acquisition report must be regenerated or the original data acquisition report must be modified, resulting in inflexible operation.

[0096] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0097] The present disclosure also provides a report generation device for implementing the above method embodiment. Figure 2 As shown, the generating device 20 includes:

[0098] A division unit 21 is used to divide multiple topics based on business scenarios, wherein each topic corresponds to a data system table of the data service layer, and each data system table integrates all dimensions and indicators under each topic;

[0099] A display unit 22, configured to respond to a user selecting a topic from a plurality of topics and display all dimensions and indicators under the topic;

[0100] A setting unit 23, configured to receive multiple dimensions and indicators selected by a user under the topic, automatically set filtering conditions under the topic, and configure a topic page according to the multiple dimensions, indicators and filtering conditions; and

[0101] The query unit 24 is used to respond to the dimensions and indicators selected by the user on the topic page, query the data that meets the screening conditions from the topic table corresponding to the topic, generate a report for the data and display it.

[0102] The specific manner in which each unit in the above device embodiment performs operations has been described in detail in the embodiment of the method, and will not be elaborated on here.

[0103] The present disclosure also provides an electronic device, such as Figure 3 As shown, the electronic device includes one or more processors 31 and a memory 32. Figure 3 A processor 31 is taken as an example.

[0104] The controller may further include: an input device 33 and an output device 34 .

[0105] The processor 31, the memory 32, the input device 33 and the output device 34 may be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0106] The processor 31 may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips. The general-purpose processor may be a microprocessor or any conventional processor.

[0107] The memory 32 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the control method in the embodiment of the present disclosure. The processor 31 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 32, that is, the report generation method of the above method embodiment is realized.

[0108] The memory 32 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of a processing device operated by the server, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 32 may optionally include a memory remotely arranged relative to the processor 31, and these remote memories may be connected to a network connection device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0109] The input device 33 can receive input digital or character information, and generate key signal input related to user settings and function control of the processing device of the server. The output device 34 can include display devices such as a display screen.

[0110] One or more modules are stored in the memory 32, and when executed by one or more processors 31, the execution is as follows: Figure 1 The method shown.

[0111] Those skilled in the art can understand that the implementation of all or part of the processes in the above method embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above method embodiments. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FM), a hard disk (HDD), or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0112] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for generating a report, characterized in that: include: Multiple topics are divided based on business scenarios. Each topic corresponds to a data system table in the data service layer. Each data system table integrates all dimensions and indicators under each topic. In response to a topic selected by a user from among the multiple topics, all dimensions and indicators under the topic are displayed; receiving multiple dimensions and indicators selected by a user under the topic, automatically setting filtering conditions under the topic, and configuring a topic page according to the multiple dimensions, indicators and filtering conditions; and In response to the dimension and indicator selected by the user on the topic page, query the data that meets the screening condition from the topic table corresponding to the topic, generate a report for the data and display it; The multiple topics are divided based on business scenarios, including: Based on the application scenarios of the people-goods-store model in the retail industry, different business scenarios of people, goods and stores are obtained; According to different business scenarios of personnel, commodities and stores, multiple topics are divided, including member sales, member asset statistics, commodity sales, commodity gross profit statistics, wholesale gross profit statistics and store operations; In response to a topic selected by the user from multiple topics, all dimensions and indicators under the topic are displayed, including: Receive a topic selected by a user from multiple topics, and display all dimensions and indicators under the topic according to the data system table corresponding to the topic; The dimensions include product dimensions, employee dimensions, store dimensions, suppliers, payment and date; the product dimensions include product, specification, brand, category and color; the employee dimensions include cashier and shopping guide; the store dimensions include shipping store and department; The indicators include gross profit, gross profit margin, rounding off, retail amount, discount amount, recharge amount, order amount and actual amount received; The receiving of multiple dimensions and indicators selected by the user under the topic includes: receiving a plurality of dimensions selected by a user under the topic; Setting the layout of the dimension fields on the topic page, displaying the multiple dimensions and the topic on the same page, and configuring the multiple dimensions at a level below the topic, wherein the multiple dimensions are at the same level, and the dimensions are in a logical OR relationship; receiving a plurality of indicators selected by a user under the topic; Setting the layout of the indicator field on the subject page, and using the multiple indicators selected by the user as the indicators of the report to be generated; The automatically setting of the screening conditions under the topic includes: Automatically set the default filter conditions under the said topic; Use the filter conditions as query fields and set the layout of the query fields on the topic page; The screening condition is provided with attributes and corresponding attribute values, and the attributes include condition name, whether to display, condition type and matching principle; In the default screening conditions, the attribute values ​​corresponding to the condition names include transaction time, store or online store, store name, store code, store business type, transaction channel, shopping guide or waiter, cashier, product library supplier and transaction source by default; Whether to display the corresponding attribute value includes display and non-display, the attribute value corresponding to the condition type includes single value, multiple values ​​and interval, and the attribute value corresponding to the matching principle includes exact match and fuzzy match; The configuring of the topic page according to the multiple dimensions, indicators and screening conditions includes: Configure the topic page according to the layout of dimension fields on the topic page, the layout of indicator fields on the topic page, and the layout of query fields on the topic page; The step of responding to the dimension and indicator selected by the user on the topic page, querying the data that meets the screening condition from the topic table corresponding to the topic, generating a report for the data and displaying it includes: receiving a dimension selected by a user from multiple dimensions included in the same topic on a topic page, and receiving a configuration of a filtering condition by the user on the same topic page; Query the data that meets the filtering condition from the topic table corresponding to the topic, aggregate the data according to the dimension, generate a report based on the aggregated data according to the indicator, and display the report on the topic page.

2. The method according to claim 1, characterized in that After automatically setting the default screening condition under the topic, the method further includes: receiving the user's adjustment of the screening condition under the topic, and updating the adjusted screening condition; The adjustment of the screening condition under the subject includes: adjustment of the attribute value corresponding to the condition name, modification of whether to display the corresponding attribute value, modification of the attribute value corresponding to the condition type and / or modification of the attribute value corresponding to the matching principle; The adjustment of the attribute value corresponding to the condition name includes: adding, deleting and / or modifying the attribute value corresponding to the condition name.

3. A report generation device, characterized in that: include: The division unit is used to divide multiple topics based on business scenarios. Each topic corresponds to a data system table in the data service layer. Each data system table integrates all dimensions and indicators under each topic. A display unit, configured to respond to a topic selected by a user from among a plurality of topics and display all dimensions and indicators under the topic; A setting unit, configured to receive multiple dimensions and indicators selected by a user under the topic, automatically set filtering conditions under the topic, and configure a topic page according to the multiple dimensions, indicators and filtering conditions; and A query unit, configured to respond to the dimension and indicator selected by the user on the topic page, query the data that meets the screening condition from the topic table corresponding to the topic, generate a report for the data and display it; The multiple topics are divided based on business scenarios, including: Based on the application scenarios of the people-goods-store model in the retail industry, different business scenarios of people, goods and stores are obtained; According to different business scenarios of personnel, commodities and stores, multiple topics are divided, including member sales, member asset statistics, commodity sales, commodity gross profit statistics, wholesale gross profit statistics and store operations; In response to a topic selected by the user from multiple topics, all dimensions and indicators under the topic are displayed, including: Receive a topic selected by a user from multiple topics, and display all dimensions and indicators under the topic according to the data system table corresponding to the topic; The dimensions include product dimensions, employee dimensions, store dimensions, suppliers, payment and date; the product dimensions include product, specification, brand, category and color; the employee dimensions include cashier and shopping guide; the store dimensions include shipping store and department; The indicators include gross profit, gross profit margin, rounding off, retail amount, discount amount, recharge amount, order amount and actual amount received; The receiving of multiple dimensions and indicators selected by the user under the topic includes: receiving a plurality of dimensions selected by a user under the topic; Setting the layout of the dimension fields on the topic page, displaying the multiple dimensions and the topic on the same page, and configuring the multiple dimensions at a level below the topic, wherein the multiple dimensions are at the same level, and the dimensions are in a logical OR relationship; receiving a plurality of indicators selected by a user under the topic; Setting the layout of the indicator field on the subject page, and using the multiple indicators selected by the user as the indicators of the report to be generated; The automatically setting of the screening conditions under the topic includes: Automatically set the default filter conditions under the said topic; Use the filter conditions as query fields and set the layout of the query fields on the topic page; The screening condition is provided with attributes and corresponding attribute values, and the attributes include condition name, whether to display, condition type and matching principle; In the default screening conditions, the attribute values ​​corresponding to the condition names include transaction time, store or online store, store name, store code, store business type, transaction channel, shopping guide or waiter, cashier, product library supplier and transaction source by default; Whether to display the corresponding attribute value includes display and non-display, the attribute value corresponding to the condition type includes single value, multiple values ​​and interval, and the attribute value corresponding to the matching principle includes exact match and fuzzy match; The configuring of the topic page according to the multiple dimensions, indicators and screening conditions includes: Configure the topic page according to the layout of dimension fields on the topic page, the layout of indicator fields on the topic page, and the layout of query fields on the topic page; The step of responding to the dimension and indicator selected by the user on the topic page, querying the data that meets the screening condition from the topic table corresponding to the topic, generating a report for the data and displaying it includes: receiving a dimension selected by a user from multiple dimensions included in the same topic on a topic page, and receiving a configuration of a filtering condition by the user on the same topic page; Query the data that meets the filtering condition from the topic table corresponding to the topic, aggregate the data according to the dimension, generate a report based on the aggregated data according to the indicator, and display the report on the topic page.

4. An electronic device, characterized in that: The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the report generation method described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Intelligent report tool of data management platform

    CN114118037A

  • Analytical report generation method and device, electronic equipment and storage medium

    CN117669514A

  • Report generation method and device based on self-configuration, medium and equipment

    CN117851404A

  • Automated report building system

    US20040117731A1