Transaction report generation method, system, device, storage medium and electronic equipment
By acquiring sales data and reporting requirements, determining configuration parameters, and generating transaction reports, the problem of airlines being unable to accurately generate transaction reports due to privacy protection was solved. This enabled accurate generation and download of transaction reports, improving market dynamics and competitiveness.
Patent Information
- Application Number
- CN202411972205.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2044-12-30
AI Technical Summary
Airlines are unable to accurately generate transaction reports due to their responsibility to protect the privacy of customer data.
By acquiring sales data and report requirements, determining configuration parameters, triggering a generation request command, invoking the generation strategy, generating the target transaction report, and downloading it according to permission information.
It has enabled the accurate generation of transaction reports, enhancing airlines' understanding of market dynamics and their competitiveness.
Smart Images

Figure CN119761325B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a method, system, device, storage medium and electronic device for generating a transaction report. Background Art
[0002] Airline transaction reports are an important basis for airline operations and management. By analyzing and understanding sales data, airlines can better grasp market dynamics and effectively respond to various market challenges. However, due to the airlines' privacy protection obligations for customer-related data, technical issues arise that prevent accurate transaction reports from being generated.
[0003] Currently, no effective solution has been proposed to the above-mentioned technical problem of being unable to accurately generate transaction reports. Summary of the Invention
[0004] Embodiments of the present invention provide a method, system, device, storage medium, and electronic device for generating a transaction report, which at least solve the technical problem of being unable to accurately generate a transaction report.
[0005] According to one aspect of an embodiment of the invention, a method for generating a transaction report is provided. The method includes: obtaining sales data for a transaction report to be generated, and report requirement information corresponding to a target account for the transaction report to be generated, wherein the report requirement information is used to represent the requirements for the transaction report to be generated; determining configuration parameters for the transaction report to be generated based on the report requirement information, wherein the configuration parameters are used to represent the data source and / or data type in the transaction report to be generated; triggering a request instruction for generating the transaction report to be generated based on the configuration parameters, wherein the request instruction is used to represent the execution of a generation task for the transaction report to be generated; and executing the generation task in response to the request instruction to invoke a generation strategy for the transaction report to be generated, generating a target transaction report using the sales data and the configuration parameters, wherein the generation strategy is used to represent the rules for executing the generation task to generate the target transaction report.
[0006] Optionally, before obtaining the sales data of the transaction report to be generated and the report requirement information corresponding to the target account of the transaction report to be generated, the method also includes: obtaining the initial account of the transaction report to be generated; based on the preset identity information of the initial account, authenticating the initial account to obtain a verification result, wherein the verification result is used to indicate that the initial account has successfully passed the identity authentication; in response to the verification result, determining the initial account as the target account.
[0007] Optionally, in response to a request instruction, a generation task is executed to call a generation strategy for a transaction report to be generated, and generate a target transaction report using sales data and configuration parameters, including: in response to a request instruction, calling a generation strategy, obtaining resource information of a scheduling system corresponding to the transaction report to be generated, and a priority of the generation task, wherein the resource information is used to characterize the allocatable resources for executing the generation task; determining a target execution time for the transaction report to be generated based on the resource information and priority; and generating a target transaction report using sales data and configuration parameters based on the target execution time.
[0008] Optionally, the method also includes: obtaining download requirement information of the target account, wherein the download requirement information is used to characterize the file type requirement of the target account for downloading the target transaction report; based on the download requirement information, generating a download instruction for the target transaction report, wherein the download instruction is used to characterize the task of executing the download of the target transaction report; and in response to the download instruction, downloading the target transaction report of the target file type.
[0009] Optionally, in response to a download instruction, downloading a target transaction report of a target file type includes: in response to the download instruction, obtaining permission information of a target account, wherein the permission information is used to characterize the target account's permission to download the target transaction report; testing the permission information to obtain a test result of the target account, wherein the test result is used to characterize whether the target account has permission to download the target transaction report; and downloading the target transaction report in response to the target account having permission to download the target transaction report.
[0010] Optionally, in response to the target account having the download authority for the target transaction report, downloading the target transaction report includes: generating a download link in response to the target account having the download authority; and downloading the target transaction report based on the download link.
[0011] According to one aspect of an embodiment of the present invention, a device for generating a transaction report is provided, which further includes: a first acquisition unit, used to acquire sales data of a transaction report to be generated, and report requirement information corresponding to a target account number for the transaction report to be generated, wherein the report requirement information is used to characterize the requirements of the transaction report to be generated; a first determination unit, used to determine configuration parameters of the transaction report to be generated based on the report requirement information, wherein the configuration parameters are used to characterize the data source and / or data type in the transaction report to be generated; a first generation unit, used to trigger a request instruction for the transaction report to be generated based on the configuration parameters, wherein the request instruction is used to characterize the execution of a generation task for the transaction report to be generated; a second generation unit, used to execute the generation task in response to the request instruction, so as to call the generation strategy of the transaction report to be generated, and generate a target transaction report with the sales data and the configuration parameters, wherein the generation strategy is used to characterize the rules for executing the generation task to generate the target transaction report.
[0012] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method in the embodiment of the present invention.
[0013] According to another aspect of an embodiment of the present invention, a processor is provided. The processor is configured to run a program, wherein the program executes the method in the embodiment of the present invention when running.
[0014] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method according to the embodiment of the present invention is implemented.
[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement the method of the embodiment of the present invention.
[0016] In an embodiment of the present invention, sales data of a transaction report to be generated and report requirement information corresponding to a target account number for the transaction report to be generated are obtained, wherein the report requirement information is used to characterize the requirements for the transaction report to be generated; based on the report requirement information, configuration parameters of the transaction report to be generated are determined, wherein the configuration parameters are used to characterize the data source and / or data type in the transaction report to be generated; based on the configuration parameters, a request instruction for the transaction report to be generated is triggered, wherein the request instruction is used to characterize the execution of a generation task for the transaction report to be generated; in response to the request instruction, the generation task is executed to call a generation strategy for the transaction report to be generated, and generate a target transaction report using the sales data and the configuration parameters, wherein the generation strategy is used to characterize the rules for executing the generation task to generate the target transaction report. That is to say, in this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated can be obtained first, and then the configuration parameters of the transaction report to be generated can be determined based on the report requirement information obtained above, and then the request instruction for the transaction report to be generated is triggered based on the configuration parameters, so that the generation task of the transaction report to be generated can be executed, and finally, in response to the request instruction obtained above, the generation task is executed to call the generation strategy of the transaction report to be generated, so as to achieve the purpose of generating the target transaction report with the sales data and configuration parameters, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 is a flow chart of a method for generating a transaction report according to an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram of a system for generating personalized sales reports for airlines according to an embodiment of the present invention;
[0020] Figure 3 is a flow chart of a flexible and configurable personalized report generation and downloading method according to an embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of a functional module for implementing a report downloading function or a report pushing function according to an embodiment of the present invention;
[0022] Figure 5 2 is a schematic diagram of a device for generating a transaction report according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or 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.
[0025] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0026] Offline reports are generated at predetermined intervals and are typically used to analyze and present large amounts of historical data. This type of report generation doesn't require real-time data updates, but instead processes data in batches in offline mode to generate reports containing statistics, charts, and other visualization elements.
[0027] Hot loading is used to dynamically modify the code of certain classes without interrupting program operation, and make the changed code take effect immediately without having to recompile the entire application or restart the server.
[0028] Task scheduling is the process of arranging and executing various tasks, jobs, or processes according to certain rules and plans. The purpose of task scheduling is to effectively utilize system resources and improve system performance and efficiency.
[0029] Automatic report delivery means that when a specific event occurs within a predetermined timeframe, the system automatically sends a generated report to a designated recipient via some method, eliminating the need for manual report delivery. This feature is commonly used in enterprise business reporting, data analysis, and data monitoring scenarios to ensure that relevant personnel have timely access to and review of critical business information.
[0030] According to an embodiment of the present invention, a method for generating a transaction report is provided. It should be noted that in the flowchart of the accompanying drawings, the steps shown therein can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0031] The following describes a method for generating a transaction report according to an embodiment of the present invention.
[0032] Figure 1 is a flow chart of a method for generating a transaction report according to an embodiment of the present invention. Figure 1 As shown, the method for generating the transaction report may include the following steps:
[0033] Step S101: Acquire sales data for a transaction report to be generated, and report requirement information corresponding to a target account for the transaction report to be generated.
[0034] In the technical solution provided in step S101 of the present invention, sales data for generating a transaction report and report requirement information corresponding to a target account for generating the transaction report can be obtained. The target account can be a preset account of the user, such as a mobile phone number, an email account, etc.
[0035] Optionally, the transaction report to be generated may be referred to as a personalized sales transaction report to be generated. The sales data may be referred to as sales transaction data, such as transaction time, transaction amount, and payment method.
[0036] Optionally, the report requirement information is used to represent the requirements for the transaction report to be generated, which can be called personalized report requirement information, such as the user's seat selection, the user's meal selection, the user's frequent flight routes, and the language used by the user. It should be noted that the information types of the report requirement information are only exemplified here, and no specific limitation is imposed on the information types of the report requirement information.
[0037] For example, obtaining sales data such as transaction time, transaction amount, and payment method when a user selects a flight, as well as reporting requirements such as seat selection, meal selection, and frequent flight routes of the user account.
[0038] Step S102: determining configuration parameters of the transaction report to be generated based on the report requirement information.
[0039] In the technical solution provided in step S102 of the present invention, after obtaining the report requirement information, the report engine client module is used to determine the configuration parameters of the transaction report to be generated. The report engine client module can be simply referred to as the report engine client. The configuration parameters are used to characterize the data source and / or data type in the transaction report to be generated. For example, the data source can come from an airline reservation system or a physical ticket office.
[0040] Alternatively, users can freely construct report generation processes using a visual workflow designer. By dragging and dropping components displayed on the configuration system (such as data source selection, field configuration, formatting options, etc.), users can set configuration parameters to generate workflow instances in real time.
[0041] It should be noted that this is only a preferred implementation method for determining the configuration parameters of the transaction report to be generated, and does not specifically limit the process and method for determining the configuration parameters of the transaction report to be generated. As long as the method and process for determining the configuration parameters of the transaction report to be generated are based on the report requirement information, they are within the scope of protection of the present invention and will not be further described here.
[0042] Step S103: triggering a request instruction for generating a transaction report based on the configuration parameters.
[0043] In the technical solution provided in step S103 of the present invention, a request instruction for generating the transaction report to be generated is triggered by utilizing the report engine request processing module according to the configuration parameters of the transaction report to be generated, wherein the request instruction is used to represent the execution of the generation task of the transaction report to be generated.
[0044] Optionally, the report engine request processing module includes multiple threads or a single thread, which can be referred to as report engine request processing.
[0045] For example, after the user sets configuration parameters by dragging and dropping different components displayed on the configuration system, a request instruction can be triggered to achieve the purpose of executing the task of generating a transaction report to be generated.
[0046] It should be noted that this is only a preferred implementation method for obtaining a request instruction for a transaction report to be generated, and does not specifically limit the process and method for obtaining a request instruction for a transaction report to be generated. As long as the process and method for triggering a request instruction for a transaction report to be generated is based on configuration parameters, it is within the scope of protection of the present invention and will not be listed here.
[0047] Step S104, in response to the request instruction, executing the generation task to call the generation strategy of the transaction report to be generated, and generating the target transaction report with the sales data and configuration parameters.
[0048] In the technical solution provided in the above step S104 of the present invention, the report engine task processing module can execute the generation task according to the obtained request instruction, thereby calling the generation strategy of the transaction report to be generated, so as to generate the target transaction report with the sales data and configuration parameters.
[0049] Optionally, the generation strategy is used to represent the rules for executing the generation task to generate the target transaction report. The target transaction report can be called a target personalized sales transaction report. The report engine task processing module can be simply referred to as the report engine task processing module.
[0050] For example, in response to a request instruction, a task to generate a transaction report to be generated is executed. At this time, the scheduler corresponding to the transaction report to be generated needs to use a scheduling algorithm based on the current load of the flight system to combine sales data such as transaction time, transaction amount, and payment method, as well as configuration parameters, to generate a targeted personalized sales transaction report. The flight system can be simply referred to as the system.
[0051] It can be understood that this is only a preferred implementation method for generating a target transaction report, and the process and method of generating the target transaction report are not specifically limited. As long as the generation task is executed in response to the request instruction to call the generation strategy of the transaction report to be generated, the sales data and configuration parameters are used, and the process and method of generating the target transaction report are all within the scope of protection of the present invention and are not listed here.
[0052] In the above steps S101 to S104 of the present invention, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account of the transaction report to be generated are obtained, wherein the report requirement information is used to characterize the demand for the transaction report to be generated; based on the report requirement information, the configuration parameters of the transaction report to be generated are determined, wherein the configuration parameters are used to characterize the data source and / or data type in the transaction report to be generated; based on the configuration parameters, a request instruction for the transaction report to be generated is triggered, wherein the request instruction is used to characterize the execution of the generation task of the transaction report to be generated; in response to the request instruction, the generation task is executed to call the generation strategy of the transaction report to be generated, and the sales data and the configuration parameters are used to generate the target transaction report, wherein the generation strategy is used to characterize the rules for executing the generation task to generate the target transaction report. That is to say, in this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated can be obtained first, and then the configuration parameters of the transaction report to be generated can be determined based on the report requirement information obtained above, and then the request instruction for the transaction report to be generated is triggered based on the configuration parameters, so that the generation task of the transaction report to be generated can be executed, and finally, in response to the request instruction obtained above, the generation task is executed to call the generation strategy of the transaction report to be generated, so as to achieve the purpose of generating the target transaction report with the sales data and configuration parameters, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report.
[0053] The above method of this embodiment is further introduced below.
[0054] As an optional embodiment, before obtaining the sales data of the transaction report to be generated and the report requirement information corresponding to the target account of the transaction report to be generated, the method also includes: obtaining the initial account of the transaction report to be generated; based on the preset identity information of the initial account, authenticating the initial account to obtain a verification result, wherein the verification result is used to indicate that the initial account has successfully passed the identity authentication; in response to the verification result, determining the initial account as the target account.
[0055] In this embodiment, in the flight system, the initial account number for which the transaction report is to be generated can be obtained, and then the initial account number is authenticated based on the preset identity information of the initial account number to obtain a verification result. When the initial account number successfully passes the identity authentication, the initial account number at this time is determined as the target account number.
[0056] Optionally, the architecture of the flight system is a multi-tenant architecture, which can support different customers to use the report configuration management module independently and securely on the same platform, and the database is designed using a database isolation mode, so that each tenant can be assigned an independent database instance or database architecture to achieve higher security and customization capabilities.
[0057] For example, a target detection mechanism (JWT detection mechanism) is used to authenticate the user of the initial account. That is, when a user submits credentials through the login interface, the flight system verifies their identity and generates a token. The token contains the tenant identifier (tenant ID) and user role information, allowing subsequent requests to identify the specific tenant. When processing user requests, the flight system sets the tenant ID information in the request local thread. When processing business, it filters data based on the tenant ID to ensure that users can only access limited data of their tenant.
[0058] As an optional implementation method, in response to a request instruction, a generation task is executed to call a generation strategy for a transaction report to be generated, and generate a target transaction report using sales data and configuration parameters, including: in response to a request instruction, calling the generation strategy, obtaining resource information of a scheduling system corresponding to the transaction report to be generated, and the priority of the generation task, wherein the resource information is used to characterize the allocatable resources for executing the generation task; determining a target execution time for the transaction report to be generated based on the resource information and priority; and generating a target transaction report using sales data and configuration parameters based on the target execution time.
[0059] In this embodiment, after receiving a request instruction, a generation strategy can be invoked to obtain resource information of the scheduling system corresponding to the transaction report to be generated, as well as the priority of the generation task. Based on the resource information and priority, a target execution time for the transaction report to be generated can be determined. Based on the target execution time, the target transaction report can be generated from the sales data and configuration parameters. Priority represents the urgency or importance of the generation task; that is, the higher the priority, the more quickly the generation task needs to be processed.
[0060] Optionally, after obtaining resource information and priority, the scheduling algorithm set in the scheduler of the flight system is used to determine the target execution time of the transaction report to be generated. The scheduling algorithm can be a dynamic call algorithm, such as the shortest job first algorithm, the first arrival first algorithm, etc. It should be noted that the scheduling algorithm is only illustrated here as an example, and no specific limitation is imposed on the scheduling algorithm.
[0061] Optionally, the scheduler executes the generated tasks based on the current system's task execution load and the priority of other tasks. This process may involve dynamic scheduling algorithms, such as shortest job first, first arrival first, etc., to ensure that tasks can be completed on time and that resources in the system are effectively utilized. The scheduler monitors the usage of system resources, such as the Central Processing Unit (CPU), memory, and network bandwidth, to determine the best time to execute the generated tasks. In addition, the dependencies and priorities between tasks can also be considered to ensure that high-priority tasks can be executed in a timely manner. Through reasonable dynamic scheduling algorithms, the system can achieve efficient execution of tasks and effective utilization of resources.
[0062] As an optional embodiment, the method also includes: obtaining download requirement information of the target account, wherein the download requirement information is used to characterize the file type requirement of the target account for downloading the target transaction report; based on the download requirement information, generating a download instruction for the target transaction report, wherein the download instruction is used to characterize the task of executing the download of the target transaction report; and in response to the download instruction, downloading the target transaction report of the target file type.
[0063] In this embodiment, download requirement information indicating the file type requirement for downloading a target transaction report by a target account can be obtained. Based on the download requirement information, a download instruction for the target transaction report can be generated. In response to the download instruction, the target transaction report of the target file type is downloaded. The download instruction can be referred to as a download request.
[0064] Optionally, the target file type may be a file type required by a user using the target account, such as a spreadsheet file (Excel file), a web page file (HTML file), etc. It should be noted that the target file type is merely exemplified herein and is not specifically limited to the target file type.
[0065] For example, based on the user's download demand information, the server can receive a report download request. When receiving the request, the server can create a corresponding pending report download task and pass it to the report scheduling center. The report scheduling center can download the transaction report required by the user.
[0066] As an optional embodiment, in response to a download instruction, a target transaction report of a target file type is downloaded, including: in response to the download instruction, obtaining permission information of a target account, wherein the permission information is used to characterize the target account's permission to download the target transaction report; testing the permission information to obtain a test result of the target account, wherein the test result is used to characterize whether the target account has permission to download the target transaction report; and downloading the target transaction report in response to the target account having permission to download the target transaction report.
[0067] In this embodiment, after receiving the download instruction, the permission information of the target account can be obtained, and the permission information can be tested to obtain the test result of the target account, so as to determine whether the target account at this time has the download permission of the target transaction report. If the target account has the download permission of the target transaction report, the target transaction report can be downloaded.
[0068] For example, after receiving a download request, the server performs user authentication and permission checks to ensure that the user has the authority to download the requested report. In other words, if the user passes both authentication and permission checks, the user can download the requested transaction report.
[0069] As an optional embodiment, in response to the target account having download authority for the target transaction report, downloading the target transaction report includes: generating a download link in response to the target account having download authority; and downloading the target transaction report based on the download link.
[0070] In this embodiment, when the target account has download permission, a download link can be generated based on the target file type, and the user can click on the download link to download the target transaction report. The download link can be a link that has passed security testing.
[0071] For example, when the target account has download permissions, based on the report download type, if the report download type at this time is a self-service download type, a download link can be provided and returned to the client for the user to download manually.
[0072] It can be understood that this is only a preferred implementation method for downloading the target transaction report, and the process and method of downloading the target transaction report are not specifically limited. As long as the download link is generated in response to the target account having download permission; based on the download link, the process and method of downloading the target transaction report are within the scope of protection of the present invention and are not listed here.
[0073] In this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated can be obtained first, and then the configuration parameters of the transaction report to be generated can be determined based on the report requirement information obtained above, and then the request instruction for the transaction report to be generated is triggered based on the configuration parameters, so that the generation task of the transaction report to be generated can be executed, and finally, in response to the request instruction obtained above, the generation task is executed to call the generation strategy of the transaction report to be generated, so as to achieve the purpose of generating the target transaction report with the sales data and configuration parameters, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report.
[0074] The technical solutions of the embodiments of the present invention are described below with reference to preferred implementation methods.
[0075] Airline transaction reports are a crucial foundation for airline operations and management. By analyzing and understanding sales data, airlines can better grasp market dynamics, effectively respond to various market challenges, and enhance their competitiveness. However, due to airlines' privacy obligations regarding customer data, technical issues arise, such as the inability to accurately generate transaction reports.
[0076] Therefore, in order to solve the above problems, the present invention proposes a flexible and configurable personalized report generation and downloading method. The implementation process of the method is as follows: the airline can configure various types of report requirements in the aviation system, so that personalized reports can be generated according to the report requirements, and the aviation system can provide offline report downloads, periodic report generation, historical data analysis, batch processing, scheduled automatic push and other services, so that business users can independently configure and generate reports without writing code, so as to efficiently help airlines better respond to market challenges and enhance their competitiveness, thereby solving the technical problem of being unable to accurately generate transaction reports and achieving the technical effect of accurately generating transaction reports.
[0077] Figure 2 FIG. 1 is a schematic diagram of a system for generating personalized sales reports for airlines according to an embodiment of the present invention. Figure 2 As shown, the airline personalized sales report generation system may include: a report engine client, an offline report management module, report engine request processing, report engine task scheduling, report engine task processing, report engine report downloading, report engine report push, and report engine configuration management. The report engine comprises report engine request processing, report engine task scheduling, report engine task processing, report engine report downloading, report engine report push, and report engine configuration management. The configuration data and sales data obtained can be input into the report engine for further processing.
[0078] The reporting engine client provides a software development kit (SDK) for airlines' in-house systems, facilitating the rapid integration of reporting services into their own applications, enabling easy integration and seamless integration with airline business processes. It also supports multi-tenancy, enabling data isolation in a multi-tenant environment, ensuring that each tenant can only access their own data and ensuring fair and reasonable resource allocation to prevent one tenant from excessively occupying system resources and impacting the service quality of other tenants. The reporting engine client includes capabilities for submitting tasks, querying tasks, and downloading reports.
[0079] The offline report management module is implemented through the backend management system and is used to manage offline reports. It provides airline administrators with functions such as offline report download, report task progress query, and report download. The offline report management module can include: submitting tasks, querying tasks, and downloading reports.
[0080] Report engine request processing uses multithreading to handle multiple requests simultaneously, improving concurrency. Designed request processing logic ensures rapid server response times. By utilizing efficient algorithms and data structures, it avoids blocking operations and reduces unnecessary computation and input / output (IO) operations. Report engine request processing includes both task reception and task creation.
[0081] Report engine task scheduling automatically executes specific tasks according to pre-defined schedules or trigger conditions without requiring human intervention. It supports features such as timer configuration and event triggering. It also supports distributed processing, allowing tasks to be executed in parallel across multiple nodes to improve overall task efficiency. Report engine task scheduling includes both scheduling and exception handling.
[0082] The report engine task processing is used to load the implementation instance of a specific report, read and analyze sales data according to the report generation logic, and generate a report file and download link that meets user requirements based on the configuration information for users to download. This report engine task processing can include data query, data analysis, and report generation.
[0083] The report engine's report download module ensures data and aviation system security during the report download process, specifically by performing user authentication and authorization checks to prevent potential security threats. This module includes report retrieval and report cleanup.
[0084] Report engine report push is used to configure push tasks that need to be pushed to third-party systems, so that after regular report generation is completed, the report will be pushed to the server provided by the third party. This module can include: report push.
[0085] Report engine configuration management utilizes a pipeline design philosophy, breaking down the report generation process into multiple independent steps, with each step acting as a task node, thus forming a pipeline. This improves system flexibility and maintainability, as each step can be independently optimized or replaced. This module includes configuration initialization, thread configuration, and report loading.
[0086] In this embodiment, through the visual workflow designer, users can seamlessly build a personalized report generation process, and can also support dynamic data source management, componentized service selection, and real-time field formatting configuration. At the same time, it is necessary to provide strict permissions and security controls for tenants to ensure that each tenant can only access and operate its own data and configuration, meeting the flexibility and security requirements in a multi-tenant environment. Users can set up automatic report generation based on event-driven settings according to their own needs, and the user feedback mechanism can promote intelligent optimization of the system to ensure that the generated reports always meet the specific needs of users, thereby providing airlines with an efficient, flexible, and configurable multi-tenant reporting solution.
[0087] Figure 3 is a flow chart of a flexible and configurable personalized report generation and downloading method according to an embodiment of the present invention. Figure 3 As shown, the personalized report generation and downloading method may include the following steps:
[0088] Step S301: Configure the report task.
[0089] In this embodiment, report tasks are configured by logging into the configuration management interface of the reporting engine (TRE) backend. This reporting task configuration is based on a multi-tenant architecture and process orchestration technology to meet the personalized data reporting needs of different airlines. First, the flight system provides each tenant with an independent configuration space, ensuring the security and isolation of their data and configuration settings. Through user authentication mechanisms, the flight system effectively identifies and authorizes different tenants to access corresponding functional data.
[0090] Optionally, in specific implementation, users can freely build the report generation process through the visual workflow designer. Users can set configuration parameters by dragging and dropping different components displayed on the configuration system (such as data source selection, field configuration, formatting options, etc.) to generate workflow instances in real time. With the help of the process orchestration engine, the flight system can dynamically parse the user's configuration parameters and generate executable report tasks. Each task can be connected to multiple data sources and support data from multiple data sources (SQL databases, RESTful APIs, and file systems, etc.). In addition, users are supported to configure preset internationalization and localization options to ensure that the generated reports meet the needs of different regions and languages. Finally, the report generation process can be automatically triggered through an event-driven mechanism (such as timing, data updates, etc.), and the generated reports can be shared with users through secure download links or emails.
[0091] Optionally, report task configuration can be completed by logging into the background management interface of the report engine. Single report tasks and periodic report tasks can be configured. For single report tasks, users need to manually trigger the generation of reports, while periodic report tasks can be set to generate reports regularly according to time. In the configuration, the number of threads for managing report processing can be set, which helps to optimize the efficiency and resource utilization of report generation. In addition, the design logic components can be implemented by hot loading reports, making report updates and modifications more flexible and efficient. The configuration process also includes some report processing monitoring data to timely monitor the performance and operating status of the report generation process to ensure the accuracy and stability of report generation.
[0092] Optionally, the process of configuring a report task primarily includes multi-tenant architecture support, user interface configuration, data source management, and report generation process orchestration. Multi-tenant architecture support enables different customers to independently and securely use the report configuration management module on the same platform. Specifically, the database design utilizes database isolation, assigning each tenant a separate database instance or schema for enhanced security. The main implementation process involves automatically creating a new database or schema upon user registration or tenant creation, configuring a data source pool to dynamically manage and connect to the user's independent database, ensuring that queries and operations are tenant-specific. User authentication utilizes a JWT detection mechanism. When a user submits credentials through the login interface, the flight system verifies their identity and generates a token containing the tenant ID and user role information, enabling subsequent requests to identify the specific tenant. When processing user requests, the flight system sets the tenant ID information in the request-local thread. During transaction processing, data is filtered based on the tenant ID, ensuring that users only access limited data within their tenant. For example, tenants can customize report generation templates within their independent space, including data formats and field settings, and store these configurations in tenant-specific database tables. When generating a report, the system dynamically loads the corresponding configuration based on the tenant ID to ensure that the generated report meets the needs of the tenant.
[0093] Optionally, user interface configuration can be implemented using a visual workflow designer. For example, report tasks can be configured through the intuitive visual workflow designer. The designer uses a drag-and-drop library to implement drag-and-drop functionality. Users can select modules such as data sources, field mappings, and format configurations from the component library, add components to the workflow by dragging them, and define processing logic by connecting them.
[0094] Optionally, data source management can be implemented to support connections to multiple data sources, including relational databases and other database systems. The system can dynamically create data source connections based on database connection information provided by tenants (e.g., username and password). Data source management can retrieve raw data through various protocol requests and perform data cleansing and conversion as needed.
[0095] Optionally, the report generation process can be orchestrated by automating the report generation process based on a process orchestration engine. When users design workflows, the system automatically generates executable report tasks. During the report generation process, data is extracted, processed, formatted, and output according to the sequence configured by the user. Specific operations include: data extraction: Based on configured trigger events, the system automatically calls the corresponding data source to obtain the required data; data processing: After extracting the data, the system converts and cleans the data to ensure that the output meets the user-defined style and field requirements; report output: The system supports the generation of report files in multiple formats and uses corresponding formatting libraries for implementation.
[0096] Step S302: Submit a report request.
[0097] In this embodiment, a user in an airline company submits a report download request to a report engine server in a target backend management system, or a third-party client submits a report download request to a report engine server.
[0098] Alternatively, airline users can submit report requests by sending a protocol request to the report engine server through the backend management system or a third-party client. These requests typically contain parameters related to report downloading, such as report type, time range, and data format. After receiving the request, the server authenticates the user and performs a permissions check to ensure that the user has the right to download the requested report. The server then extracts the corresponding data from the database or other data source based on the request parameters and returns the report data to the user through a protocol response. The request submission process requires consideration of network security, data transmission encryption, and verification of the legitimacy of the request parameters to ensure the security and reliability of the report download request.
[0099] Step S303: Execute the report task and generate a report.
[0100] In this embodiment, after receiving the request, the server can generate a pending report download task and hand it over to the report scheduling center. The report scheduling center can schedule and execute the report task according to the load of the current task resources.
[0101] Optionally, when the server receives a report download request, it creates a corresponding pending report download task and passes it to the report scheduling center. The report scheduling center then determines when to execute the report task based on the current system load and task priority. This process may involve task queue management, load balancing, and the application of scheduling algorithms. By dynamically adjusting task execution times, the system can effectively balance resource utilization to ensure efficient report generation. At the same time, the priority of report tasks must be considered to ensure that important report tasks are processed promptly.
[0102] Step S304: Schedule the report task.
[0103] In this embodiment, the scheduler schedules task execution using a specific algorithm based on the current system's task execution load.
[0104] Optionally, the scheduler executes the generated tasks based on the current system's task execution load and the priority of other tasks. This process may involve dynamic scheduling algorithms, such as shortest job first, first arrival first, etc., to ensure that tasks can be completed on time and that system resources are effectively utilized. The scheduler monitors the usage of system resources, such as the CPU, memory, and network bandwidth, to determine the optimal time to execute the generated tasks. In addition, the dependencies and priorities between tasks can be considered to ensure that high-priority tasks can be executed in a timely manner. Through reasonable dynamic scheduling algorithms, the system can achieve efficient task execution and effective resource utilization.
[0105] Step S305: Process the report task.
[0106] In this embodiment, the flight system automatically expands the execution process based on the report task configured by the user in the visual workflow designer. A multi-tenant architecture can be adopted to ensure that the task execution logic of each tenant is independent of each other in order to ensure data security. First, the flight system will activate the report generation process based on the set trigger event (such as a scheduled task or data update). When executing the report generation process, the flight system dynamically connects to the data source based on the pre-configured connection information to obtain the required data, where the data source includes a relational database and other databases. Next, the acquired data will be cleaned and formatted to ensure that the output data meets the field and style requirements set by the user. Then, the flight system will convert the format of the report file to be generated according to the user's configuration parameters (for example, Excel file, PDF file, etc.). After execution is completed, the report will be automatically sent to the corresponding user, and a log will be generated for the user to provide feedback and optimization later.
[0107] Optionally, reports can be generated using the reflection mechanism based on the task type. This process includes report query, data analysis, report generation according to report specifications, and returning a download link. At the same time, the report file will be stored on the server. Technically, the reflection mechanism is used to dynamically load and execute the implementation class of the report task. Report query obtains data through database query or interface call. Data analysis is processed using the corresponding algorithm. Finally, the report is generated according to the specifications and stored on the server. This ensures the flexibility, efficiency, and reliability of report task processing. The above processing flow includes:
[0108] Data extraction is used to automatically call the corresponding data source based on the configured trigger event to obtain the required data. In terms of trigger mechanisms, report generation can be initiated through various trigger mechanisms, including scheduled tasks, manual user triggers, and business events.
[0109] After extracting data, the system converts and cleans the data to ensure that the output conforms to the user-defined style and field requirements. The extracted data is formatted according to the requirements of the report configuration to ensure that the data meets the output format and user's visual requirements.
[0110] Report output: The system supports generating report files in multiple formats, which can be implemented using the corresponding formatting library. Based on the tenant's report configuration, the system can dynamically load the defined report templates to ensure that the format and style meet the customer's standards.
[0111] Step S306: Download or push the report.
[0112] In this embodiment, the report is downloaded or pushed according to the report download type. If the report download type is a self-service download type, a download link can be provided and returned to the client for the user to download manually; if the report download type is a push report type, it is pushed to the server designated by the airline according to the configuration of the report, and the data in the report is processed by a third-party system.
[0113] Optionally, the report download or push process can vary depending on the report download type. For self-service downloads, the system can store the generated report on the server and return a download link to the client. Client users can manually download the report by clicking the link. This process typically involves generating a unique download link and ensuring its validity and security, typically using encryption and access tokens to protect the download link.
[0114] Optionally, for push report types, the system will push the report to the File Transfer Protocol (FTP) service specified by the airline based on the report configuration. In this case, the system will first establish a connection with the FTP server and upload the report file to the specified location according to the configured target path. This process may involve the use of an FTP client and the implementation of the File Transfer Protocol. During the upload process, the system will monitor the transmission status in real time and ensure the integrity and accuracy of the file transfer. Once the file upload is complete, the system will send a notification to the airline or third-party system to ensure that they can obtain the report data in a timely manner.
[0115] In this embodiment, the technical details of report downloading or pushing include steps such as generating a secure download link, establishing an FTP client and file transfer protocol, monitoring the transmission status, and sending notifications to ensure that the report data can be safely and reliably transmitted and processed.
[0116] In this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated can be obtained first, and then the configuration parameters of the transaction report to be generated can be determined based on the report requirement information obtained above, and then the request instruction for the transaction report to be generated is triggered based on the configuration parameters, so that the generation task of the transaction report to be generated can be executed, and finally, in response to the request instruction obtained above, the generation task is executed to call the generation strategy of the transaction report to be generated, so as to achieve the purpose of generating the target transaction report with the sales data and configuration parameters, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report.
[0117] Figure 4 is a schematic diagram of a functional module for implementing a report download function or a report push function according to an embodiment of the present invention. Figure 4 As shown, the functional module may include: enterprise users 401 , terminals 402 , background management systems 403 , databases 404 , report engine service systems 405 and enterprise self-built business systems 406 .
[0118] Enterprise user 401 is used to represent a user of an airline company.
[0119] Terminal 402 is used to represent the terminal device used by the user.
[0120] The backend management system 403 is used to implement personalized reports for airlines by configuring parameters, and can query and download offline reports.
[0121] The database 404 is used to store data related to the report.
[0122] The report engine service system 405 can be composed of five modules: monitoring center, configuration management, data management, hot deployment, and system security. The monitoring center is responsible for monitoring and controlling the status of running threads; configuration management consists of client configuration, report configuration, tenant configuration, report service configuration, and cache refresh configuration; data management provides report file cleanup functionality; the hot deployment module can be composed of uploaded deployment files and a deployment file management submodule. The system security module is primarily responsible for monitoring request traffic and displaying it through views.
[0123] The enterprise builds its own business system 406, which is used to integrate the corresponding services provided by the report engine and can also call the report service to quickly achieve business integration; the report can be configured for scheduled push to deliver the report file to the customer at a preset time.
[0124] In this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated can be obtained first, and then the configuration parameters of the transaction report to be generated can be determined based on the report requirement information obtained above, and then the request instruction for the transaction report to be generated is triggered based on the configuration parameters, so that the generation task of the transaction report to be generated can be executed, and finally, in response to the request instruction obtained above, the generation task is executed to call the generation strategy of the transaction report to be generated, so as to achieve the purpose of generating the target transaction report with the sales data and configuration parameters, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report.
[0125] According to an embodiment of the present invention, a device for generating a transaction report is provided. It should be noted that the device for generating a transaction report can be used to execute a method for generating a transaction report in an embodiment.
[0126] Figure 5 is a schematic diagram of a transaction report generation device according to an embodiment of the present invention. Figure 5 As shown, a transaction report generation device 500 may include: a first acquisition unit 501 , a first determination unit 502 , a first generation unit 503 and a second generation unit 504 .
[0127] The first acquisition unit 501 is configured to acquire sales data for a transaction report to be generated and report requirement information corresponding to a target account for the transaction report to be generated, wherein the report requirement information is used to represent the requirement for the transaction report to be generated.
[0128] The first determining unit 502 is configured to determine configuration parameters of the transaction report to be generated based on the report requirement information, wherein the configuration parameters are used to characterize data sources and / or data types in the transaction report to be generated.
[0129] The first generating unit 503 is configured to trigger a request instruction for generating a transaction report to be generated based on the configuration parameters, wherein the request instruction is used to represent the execution of a generation task of the transaction report to be generated.
[0130] The second generation unit 504 is used to execute the generation task in response to the request instruction to call the generation strategy of the transaction report to be generated, and generate the target transaction report with the sales data and configuration parameters, wherein the generation strategy is used to represent the rules for executing the generation task to generate the target transaction report.
[0131] Optionally, before obtaining the sales data of the transaction report to be generated and the report requirement information corresponding to the target account of the transaction report to be generated, the device also includes: a second acquisition unit, used to obtain the initial account of the transaction report to be generated; a third acquisition unit, used to authenticate the initial account based on the preset identity information of the initial account, and obtain a verification result, wherein the verification result is used to indicate that the initial account has successfully passed the identity authentication; a second determination unit, used to determine the initial account as the target account in response to the verification result.
[0132] Optionally, the second generation unit 504 may include: a first acquisition module, used to call the generation strategy in response to a request instruction, obtain resource information of the scheduling system corresponding to the transaction report to be generated, and the priority of the generation task, wherein the resource information is used to characterize the allocatable resources for executing the generation task; a determination module, used to determine the target execution time of the transaction report to be generated based on the resource information and priority; and a generation module, used to generate a target transaction report based on the sales data and configuration parameters based on the target execution time.
[0133] Optionally, the device also includes: a fourth acquisition unit, used to obtain download requirement information of the target account, wherein the download requirement information is used to characterize the file type requirement of the target account for downloading the target transaction report; a third generation unit, used to generate a download instruction for the target transaction report based on the download requirement information, wherein the download instruction is used to characterize the download task of executing the target transaction report; and a download unit, used to download the target transaction report of the target file type in response to the download instruction.
[0134] Optionally, the download unit may include: a second acquisition module, used to obtain the permission information of the target account in response to a download instruction, wherein the permission information is used to characterize the target account's download permission for the target transaction report; a third acquisition module, used to detect the permission information and obtain a detection result of the target account, wherein the detection result is used to characterize whether the target account has the download permission for the target transaction report; a download module, used to download the target transaction report in response to the target account having the download permission for the target transaction report.
[0135] Optionally, the download module may include: a generation submodule for generating a download link in response to the target account having download authority; and a download submodule for downloading the target transaction report based on the download link.
[0136] In this embodiment, the sales data of the transaction report to be generated and the report requirement information corresponding to the target account of the transaction report to be generated are obtained by the first acquisition unit, wherein the report requirement information is used to characterize the requirements of the transaction report to be generated; the configuration parameters of the transaction report to be generated are determined by the first determination unit based on the report requirement information, wherein the configuration parameters are used to characterize the data source and / or data type in the transaction report to be generated; the request instruction of the transaction report to be generated is triggered by the first generation unit based on the configuration parameters, wherein the request instruction is used to characterize the execution of the generation task of the transaction report to be generated; the generation task is executed by the second generation unit in response to the request instruction to call the generation strategy of the transaction report to be generated, and the sales data and configuration parameters are used to generate the target transaction report, wherein the generation strategy is used to characterize the rules for executing the generation task to generate the target transaction report, thereby solving the technical problem of not being able to accurately generate the transaction report and achieving the technical effect of accurately generating the transaction report.
[0137] According to an embodiment of the present invention, a computer-readable storage medium is further provided, which includes a stored program, wherein when the program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for generating a transaction report in the embodiment.
[0138] According to an embodiment of the present invention, a processor is further provided. The processor is configured to run a program. When the program is run, the method for generating a transaction report in the embodiment is executed.
[0139] According to an embodiment of the present invention, a computer program product is further provided, including a computer program. When the computer program is executed by a processor, the method for generating a transaction report in the embodiment of the present invention is implemented.
[0140] According to an embodiment of the present invention, an electronic device is further provided, comprising a processor and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the transaction report generation method according to the embodiment of the present invention.
[0141] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0142] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0143] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are merely illustrative. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, and can be electrical or other forms.
[0144] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.
[0145] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk, etc. Various media that can store program codes.
[0147] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for generating a transaction report, characterized in that: include: Acquire sales data for a transaction report to be generated, and report requirement information corresponding to a target account number for the transaction report to be generated, wherein the report requirement information is used to represent the requirement for the transaction report to be generated; Determining configuration parameters of the transaction report to be generated based on the report requirement information, wherein the configuration parameters are used to characterize data sources and / or data types in the transaction report to be generated; triggering a request instruction for generating the transaction report to be generated based on the configuration parameters, wherein the request instruction is used to represent the execution of a task for generating the transaction report to be generated; In response to the request instruction, executing the generation task to call a generation strategy for the transaction report to be generated, and generating a target transaction report using the sales data and the configuration parameters, wherein the generation strategy is used to represent a rule for executing the generation task to generate the target transaction report; Wherein, in response to the request instruction, the generation task is executed to call the generation strategy of the transaction report to be generated, and generate the target transaction report with the sales data and the configuration parameters, including: in response to the request instruction, calling the generation strategy, obtaining the resource information of the scheduling system corresponding to the transaction report to be generated, and the priority of the generation task, wherein the resource information is used to characterize the allocatable resources for executing the generation task; based on the resource information and the priority, determining the target execution time of the transaction report to be generated; based on the target execution time, generating the target transaction report with the sales data and the configuration parameters.
2. The method according to claim 1, characterized in that Before obtaining the sales data for the transaction report to be generated and the report requirement information corresponding to the target account number for the transaction report to be generated, the method further includes: Obtaining the initial account number for the transaction report to be generated; Performing identity authentication on the initial account based on the preset identity information of the initial account to obtain a verification result, wherein the verification result is used to indicate that the initial account has successfully passed the identity authentication; In response to the verification result, the initial account is determined as the target account.
3. The method according to claim 1, characterized in that The method further comprises: Obtaining download requirement information of the target account, wherein the download requirement information is used to represent the file type requirement of the target account for downloading the target transaction report; generating a download instruction for the target transaction report based on the download requirement information, wherein the download instruction is used to represent the execution of a download task for the target transaction report; In response to the download instruction, the target transaction report of the target file type is downloaded.
4. The method according to claim 3, characterized in that In response to the download instruction, downloading the target transaction report of the target file type includes: In response to the download instruction, obtaining permission information of the target account, wherein the permission information is used to represent the download permission of the target account for the target transaction report; Testing the permission information to obtain a test result of the target account, wherein the test result is used to indicate whether the target account has the download permission for the target transaction report; In response to the target account having the download permission for the target transaction report, the target transaction report is downloaded.
5. The method according to claim 4, characterized in that In response to the target account having the download permission for the target transaction report, downloading the target transaction report includes: In response to the target account having the download permission, generating a download link; The target transaction report is downloaded based on the download link.
6. A device for generating a transaction report, characterized in that: include: A first acquisition unit is configured to acquire sales data for a transaction report to be generated, and report requirement information corresponding to a target account number for the transaction report to be generated, wherein the report requirement information is used to represent a requirement for the transaction report to be generated; a first determining unit, configured to determine, based on the report requirement information, configuration parameters of the transaction report to be generated, wherein the configuration parameters are used to characterize data sources and / or data types in the transaction report to be generated; A first generating unit is configured to trigger a request instruction for generating the transaction report to be generated based on the configuration parameters, wherein the request instruction is used to represent the execution of a task for generating the transaction report to be generated; a second generating unit, configured to execute the generating task in response to the request instruction, so as to call a generating strategy for the transaction report to be generated, and generate a target transaction report using the sales data and the configuration parameters, wherein the generating strategy is used to represent a rule for executing the generating task to generate the target transaction report; Among them, the second generation unit is also used to call the generation strategy in response to the request instruction, obtain the resource information of the scheduling system corresponding to the transaction report to be generated, and the priority of the generation task, wherein the resource information is used to characterize the allocatable resources for executing the generation task; based on the resource information and the priority, determine the target execution time of the transaction report to be generated; based on the target execution time, generate the target transaction report with the sales data and the configuration parameters.
7. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 5.
8. An electronic device, characterized in that: The method comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
9. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method for caching report
CN101226542A
Data processing method and device, nonvolatile storage medium and processor
CN113139835A