Transaction report generation method, system and device, storage medium and electronic equipment

By obtaining the airline's sales data and report requirements information, determining the configuration parameters and generating transaction reports, the problem that airlines cannot accurately generate transaction reports is solved, and the improvement of market dynamic analysis and management is achieved.

CN119761325AActive Publication Date: 2025-04-04TRAVELSKY TECHNOLOGY LIMITED
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411972205.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-04
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

Due to the privacy protection responsibilities of airlines for customer data, they are unable to accurately generate transaction reports, resulting in difficulties in market dynamic analysis and management.

Method used

By obtaining sales data and report requirements information, determining configuration parameters, triggering request instructions, executing generation tasks, calling generation strategies, and generating target transaction reports.

Benefits of technology

It has achieved accurate generation of transaction reports, helping airlines better grasp market dynamics, respond to market challenges, and enhance competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119761325A_ABST
    Figure CN119761325A_ABST
Patent Text Reader

Abstract

The invention discloses a transaction report generation method, system and device, a storage medium and electronic equipment. The method comprises the steps of obtaining sales data of a to-be-generated transaction report and report demand information corresponding to a target account of the to-be-generated transaction report; based on the report demand information, configuration parameters of the to-be-generated transaction report are determined, and the configuration parameters are used for representing data sources and / or data types in the to-be-generated transaction report; on the basis of the configuration parameters, a request instruction of the to-be-generated transaction report is triggered, and the request instruction is used for representing and executing a generation task of the to-be-generated transaction report; and in response to the request instruction, executing the generation task to call a generation strategy of a to-be-generated transaction report, and generating a target transaction report from the sales data and the configuration parameters, the generation strategy being used for representing a rule of executing the generation task to generate the target transaction report. The technical problem that the transaction report cannot be accurately generated is solved.
Need to check novelty before this filing date? Find Prior Art

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] An airline's transaction report is an important basis for its business management. By analyzing and understanding sales data, an airline can better grasp market trends and effectively respond to various market challenges. However, since airlines have a privacy protection obligation for customer-related data, technical problems arise that prevent them from accurately generating transaction reports.

[0003] Currently, no effective solution has been proposed for the above-mentioned technical problem of being unable to accurately generate transaction reports. Summary of the invention

[0004] The embodiments of the present invention provide a method, system, device, storage medium and electronic device for generating a transaction report, so as to at least solve the technical problem that the transaction report cannot be accurately generated.

[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 of a transaction report to be generated, and report requirement information corresponding to a target account number of the transaction report to be generated, wherein the report requirement information is used to characterize the requirement of 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 the data source and / or data type in the transaction report to be generated; triggering 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 of the transaction report to be generated; in response to the request instruction, executing the generation task to call the generation strategy of the transaction report to be generated, and generating a target transaction report with the sales data and the configuration parameters, wherein the generation strategy is used to characterize the execution of 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 characterize 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 the 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; in response to the target account having permission to download the target transaction report, downloading 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, and the device also includes: a first acquisition unit, used to acquire sales data of the transaction report to be generated, and report requirement information corresponding to the target account of the transaction report to be generated, wherein the report requirement information is used to characterize the demand for the transaction report to be generated; a first determination unit, used to determine the 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 of 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 the 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 used to run a program, wherein the method in the embodiment of the present invention is executed when the program is run.

[0014] According to another aspect of the embodiments 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 in the embodiments of the present invention is implemented.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, the electronic device 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 in 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 of the transaction report to be generated are obtained, wherein the report requirement information is used to characterize the requirement 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 of 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 of the transaction report to be generated is triggered according to 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 the 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 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 It is a schematic diagram of a transaction report generation device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments 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 creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification 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 data 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 that are 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 explanations:

[0026] Offline reports are reports generated at predetermined intervals, usually for analyzing and displaying large amounts of historical data. This type of report generation does not require real-time data updates, but batches data 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 the program running, and make the changed code take effect immediately without having to recompile the entire application or restart the server.

[0028] Task scheduling is a 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 push means that when a specific event occurs within a predetermined time, the system automatically sends the generated report to the designated recipient in some way without manually triggering the report sending process. This function is usually used in business reporting, data analysis, data monitoring and other scenarios of the enterprise to ensure that relevant personnel can obtain and view key business information in a timely manner.

[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 is an introduction to 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, 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.

[0034] In the technical solution provided in step S101 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 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 characterize the demand for transaction reports 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 only examples are given here for the information types of the report requirement information, and no specific limitations are imposed on the information types of the report requirement information.

[0037] For example, obtain sales data such as transaction time, transaction amount, and payment method when the user selects a flight, as well as report demand information such as seat selection, meal selection, frequent flight routes, etc. 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 the above 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, wherein the report engine client module can be referred to as the report engine client, and 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 a flight reservation system or a physical ticket office, etc.

[0040] Optionally, 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.

[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 it is based on the report requirement information, the method and process for determining the configuration parameters of the transaction report to be generated are within the protection scope of the present invention and will not be repeated 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 the above step S103 of the present invention, according to the configuration parameters of the transaction report to be generated, the report engine request processing module is used to trigger the request instruction of the transaction report to be generated, wherein the request instruction is used to represent 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 may be triggered so as 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 are based on configuration parameters, they are within the scope of protection of the present invention and are not listed here.

[0047] Step S104, in response to the request instruction, execute the generation task 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.

[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 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 referred to as report engine task processing.

[0050] For example, in response to a request instruction, a task of generating a transaction report to be generated is executed. At this time, the scheduler corresponding to the transaction report to be generated needs to generate a target personalized sales transaction report based on the load of the current flight system using a scheduling algorithm to combine sales data such as transaction time, transaction amount, and payment method, as well as configuration parameters. The flight system can be 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 for 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 to generate the process and method of the target transaction report are 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 of 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 of the transaction report to be generated is triggered according to 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 the 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 implementation mode, 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 characterize 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 the transaction report to be generated can be obtained, and then the initial account number is authenticated according to the preset identity information of the initial account number to obtain a verification result, and when the initial account number successfully passes the identity authentication, the initial account number at this time is determined as the target account.

[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 in 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, the target detection mechanism (JWT detection mechanism) is used to authenticate the user of the initial account, that is, when the user submits the credentials through the login interface, the flight system will verify its identity and generate a token, where the token contains the tenant identifier (tenant ID) and user role information, so that subsequent requests can 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 according to the tenant ID to ensure that users can only access limited data of the tenant to which they belong.

[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 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.

[0059] In this embodiment, after receiving the request instruction, the generation strategy can be called to obtain the resource information of the scheduling system corresponding to the transaction report to be generated, as well as the priority of the generation task, and then the target execution time of the transaction report to be generated can be determined according to the resource information and the priority, and the purpose of generating the target transaction report from the sales data and the configuration parameters can be achieved according to the target execution time. Among them, the priority is used to characterize 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, wherein the scheduling algorithm can be a dynamic call algorithm, such as a shortest job first algorithm, a first arrival first algorithm, etc. It should be noted that the scheduling algorithm is only illustrated here by way of example, and no specific limitation is imposed on the scheduling algorithm.

[0061] Optionally, the scheduler executes the generated tasks according to 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 to arrive 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, and through reasonable dynamic scheduling algorithms, the system can achieve efficient execution of tasks and effective utilization of resources.

[0062] As an optional implementation mode, 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 for characterizing the file type requirement of the target account to download the target transaction report can be obtained, and a download instruction of the target transaction report can be generated according to the download requirement information, and the download instruction can be responded to to achieve the purpose of downloading the target transaction report of the target file type. The download instruction can be called 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 only examples are given here to illustrate the types of target file types, and the types of target file types are not specifically limited.

[0065] For example, based on the user's download demand information, the server can receive a report download request, and when receiving the request, the server can create a corresponding pending report download task and pass it to the report scheduling center, which can download the transaction report required by the user.

[0066] As an optional implementation method, 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; in response to the target account having permission to download the target transaction report, downloading 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 will authenticate the user and perform a permission check to ensure that the user has the right to download the requested report. That is, if the user passes the authentication and permission check, the user can download the required transaction report.

[0069] As an optional implementation manner, 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 authority, a download link can be generated according to the target file type, and the user can click the download link to download the target transaction report. The download link can be a link that has passed security detection.

[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 authority; based on the download link, the process and method of downloading the target transaction report are within the protection scope 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 of 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 of the transaction report to be generated can be triggered according to 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 the 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 solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0075] The transaction report of an airline is an important basis for the airline's operation and management. By analyzing and understanding the sales data, the airline can better grasp the market dynamics, effectively respond to various market challenges and enhance its competitiveness. Since the airline has the responsibility to protect the privacy of the customer's relevant data, the technical problem of being unable to accurately generate the transaction report arises.

[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: 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 offline report downloads, periodic report generation, historical data analysis, batch processing, scheduled automatic push and other services can be provided in the aviation system, so that business users can independently configure and generate reports without writing code, so as to efficiently help airlines to better respond to market challenges and improve 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 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, a report engine request processing, a report engine task scheduling, a report engine task processing, a report engine report download, a report engine report push and a report engine configuration management. Among them, the report engine request processing, the report engine task scheduling, the report engine task processing, the report engine report download, the report engine report push and the report engine configuration management may constitute a report engine. The obtained configuration data and sales data may be input into the report engine for further processing.

[0078] The report engine client is used to provide a software development kit (SDK) for the report client for the airline's self-built system, so as to quickly integrate the report service into the airline's self-built application, achieve easy integration, and seamlessly connect with the airline's business processing. It can also support multi-tenancy, realize data isolation in a multi-tenant environment, ensure that each tenant can only access their own data, and be fair and reasonable in resource allocation to prevent a tenant from affecting the service quality of other tenants due to excessive occupation of system resources. The report engine client can include: submitting tasks, querying tasks, and downloading reports.

[0079] The offline report management module is implemented through the background management system, and is used to manage offline reports, providing the airline administrator with offline report download, report task progress query, report download and other functions. The offline report management module can include: submitting tasks, querying tasks and downloading reports.

[0080] Report engine request processing is used to process multiple requests simultaneously using multiple threads to improve concurrency performance. The request processing logic is designed to ensure that the server responds to requests quickly. By using efficient algorithms and data structures, blocking operations can be avoided and unnecessary calculations and input and output operations (IO operations) can be reduced. The report engine request processing can include: task reception and task creation.

[0081] Report engine task scheduling is used to automatically execute specific tasks according to the predetermined task plan or trigger conditions without manual intervention. It can support functions such as timing configuration and event triggering. It can also support distributed processing tasks, that is, it can be executed in parallel on multiple nodes to improve the overall task processing efficiency. The report engine task scheduling can include: scheduling processing and exception handling.

[0082] 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 the user's requirements based on the configuration information so that the user can download it. The report engine task processing can include data query, data analysis, and report generation.

[0083] Report engine report download is used to ensure the security of data and aviation systems during the report download process, that is, to perform identity authentication and authorization checks on users to prevent potential security threats. This module can include: report retrieval and report cleanup.

[0084] Report engine report push is used to configure the push task that needs to be pushed to the third-party system, so that after the 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 is used to adopt the pipeline design concept to decompose the report generation process into multiple independent steps, each step as a task node, thus forming a pipeline. This can improve the flexibility and maintainability of the system, because each link can be optimized or replaced separately. This module can include: configuration initialization, thread configuration and report implementation 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 to meet the flexibility and security in a multi-tenant environment. Users can set up automatic report generation based on event-driven 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, such as Figure 3 As shown, the personalized report generation and downloading method may include the following steps:

[0088] Step S301, configuring a report task.

[0089] In this embodiment, log in to the configuration management interface of the report engine (TRE) background to configure the report task. The implementation principle of the report task configuration is based on the multi-tenant architecture and process orchestration technology to meet the personalized data reporting needs of different airlines. First, the flight system can provide an independent configuration space for each tenant to ensure the security and isolation of its data and configuration data settings. Through the user identity authentication mechanism, the flight system can effectively identify and authorize different tenants to access the 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 database, RESTful API, file system, etc.). In addition, users are also 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 (such as timing, data update, etc.) through an event-driven mechanism, and the generated reports can be shared with users through a secure download link or email.

[0091] Optionally, the report task configuration completed by logging into the background management interface of the report engine can configure single report tasks and periodic report tasks. 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 the update and modification of reports more flexible and efficient. The configuration process also includes some report processing monitoring data to timely monitor the performance and operation status of the report generation process to ensure the accuracy and stability of report generation.

[0092] Optionally, the process of configuring the report task mainly includes: multi-tenant architecture support, user interface configuration, data source management and orchestration of the report generation process. Among them, multi-tenant architecture support is to support different customers to use the report configuration management module independently and securely on the same platform, that is, the database isolation mode is adopted for the database design, and an independent database instance or database architecture is allocated to each tenant to achieve higher security. The main implementation process is: when a user registers or a new tenant is created, the system automatically creates a new database or architecture, and configures a data source pool to dynamically manage and connect to the user's independent database to ensure that queries and operations are only for specific tenants. The JWT detection mechanism is used to authenticate the user, that is, when the user submits the credentials through the login interface, the flight system will verify its identity and generate a token, wherein the token contains the tenant ID and user role information, so that subsequent requests can identify the specific tenant. When processing user requests, the flight system sets the tenant ID information in the request local thread, and when processing business, filters data according to the tenant ID to ensure that users can only access limited data of the tenant to which they belong. For example, tenants can customize the report generation template in their independent space, including data format, data field settings, etc., and store these configurations in tenant-specific database tables. When the system generates a report, it dynamically loads the corresponding configuration according to the tenant ID to ensure that the generated report meets the needs of the tenant.

[0093] Optionally, the user interface configuration can be implemented by using a visual workflow designer. For example, a report task can be configured by creating an intuitive visual workflow designer. The designer uses a drag-and-drop library to implement the drag-and-drop function, and then the user can select modules such as data source, field mapping, format configuration, etc. from the component library, add components to the workflow by dragging, and define the processing logic by connecting lines.

[0094] Optionally, the implementation process of data source management is as follows: Support connection to multiple data sources, including database systems such as relational databases. The system can dynamically create data source connections based on database connection information (e.g., user name and password) provided by tenants. Data source management can obtain raw data through multiple protocol request methods, and perform data cleaning and conversion when necessary.

[0095] Optionally, the implementation process of the orchestration of the report generation process is: based on the process orchestration engine, an automated process for report generation is implemented. When the user designs the workflow, the system will automatically generate executable report tasks. During the report generation process, data extraction, processing, formatting and output will be performed according to the order configured by the user. Specific operations include: data extraction: according to the configured trigger event, 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 format 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 the corresponding formatting library 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 customer.

[0098] Optionally, the purpose of submitting a report request is completed by sending a protocol request to the report engine server through the airline's user in the background management system or third-party client. These requests usually contain relevant parameters for report downloading, such as report type, time range, data format, etc. After receiving the request, the server will authenticate the user and check the permissions 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. In the process of request submission, network security, data transmission encryption, and legitimacy verification of request parameters need to be considered to ensure the security and reliability of report download requests.

[0099] Step S303, executing the report task and generating 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, and 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 will create a corresponding pending report download task and pass it to the report scheduling center. The report scheduling center will determine when to execute the report task based on the current system load and task priority. This process may involve the application of task queue management, load balancing, and scheduling algorithms. By dynamically adjusting the task execution time, the system can effectively balance resource utilization to ensure efficient completion of report task generation. At the same time, the priority of the report task needs to be considered to ensure that important report tasks are processed in a timely manner.

[0102] Step S304, scheduling report tasks.

[0103] In this embodiment, the scheduler schedules the task execution using a specific algorithm according to the task execution load of the current system.

[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 to arrive 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 CPU, memory, and network bandwidth, to determine the best 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 execution of tasks and effective utilization of resources.

[0105] Step S305: Process the report task.

[0106] In this embodiment, the flight system configures the report task and automatically expands the execution process according to 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 activates the report generation process according to 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 according to 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 the execution is completed, the report will be automatically sent to the corresponding user, and a log will be generated at the same time for the user to provide feedback and optimization later.

[0107] Optionally, through the task type, the reflection mechanism is used to generate reports. This process includes report query, data analysis, report generation according to report specifications, and return 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. The report query obtains data through database query or interface call, and the 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 according to the configured trigger event to obtain the required data. In terms of trigger mechanism, report generation can be started through a variety of trigger mechanisms, including scheduled tasks, user manual triggers, and business events.

[0109] Data processing: After extracting data, the system converts and cleans the data to ensure that the output meets the style and field requirements defined by the user. According to the requirements in the report configuration, the extracted data is formatted to ensure that the data meets the output format and the user's visual requirements.

[0110] Report output, the system supports the generation of report files in multiple formats, which can be implemented using the corresponding formatting library. According to the tenant's report configuration, the system can dynamically load the defined report template 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 the self-service download type, the system can store the generated report in the server and return a download link to the client. The client user can manually download the report by clicking the link. This process usually involves generating a unique download link and ensuring the validity and security of the download link, usually using encryption technology and access tokens to protect the security of 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 according to 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 completed, 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 of 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 of the transaction report to be generated can be triggered according to 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 the 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, such as 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 a terminal device used by a user.

[0120] The backend management system 403 is used to realize personalized reports of airlines by configuring parameters, and can query and download offline reports.

[0121] Database 404 is used to store relevant data of the report.

[0122] The report engine service system 405 may 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 running thread status; configuration management is composed of customer single configuration, report configuration, tenant configuration, report service configuration, and cache refresh configuration; data management is used to provide the function of clearing report files; the hot deployment module may be composed of uploaded deployment files and deployment file management submodules. The system security module is mainly responsible for monitoring the request access volume and displaying it through views.

[0123] The enterprise's self-built business system 406 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 achieve the delivery of report files to customers 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 of 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 of the transaction report to be generated can be triggered according to 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 the 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, such as 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 used 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 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.

[0129] The first generating unit 503 is used 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 generation task of executing 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 characterize 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 characterize 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, to 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 acquire 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 task of executing the download of 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 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 a 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 acquired by the first acquisition unit, wherein the report requirement information is used to characterize the requirement 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 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, 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 also 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 being used to run a program, wherein the method for generating a transaction report in the embodiment is executed when the program is run.

[0139] According to an embodiment of the present invention, a computer program product is also provided, including a computer program, and 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 also provided, the electronic device 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 for generating a transaction report in the embodiment of the present invention.

[0141] The serial numbers of the above embodiments of the present invention are only for description 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 emphasis. 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 only schematic, for example, the division of units can be a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, 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, which can be electrical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0145] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of 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, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform 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 and other 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 characterize the requirement for the transaction report to be generated; Based on the report requirement information, determining 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; Based on the configuration parameters, triggering a request instruction for the transaction report to be generated, wherein the request instruction is used to represent the task of executing 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 a target transaction report, wherein the generation strategy is used to characterize the rules for executing the generation task to generate the target transaction report.

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; Based on the preset identity information of the initial account, the initial account is authenticated 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 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 a target transaction report, including: In response to the request instruction, the generation strategy is called to 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; Determining a target execution time of the transaction report to be generated based on the resource information and the priority; Based on the target execution time, the sales data and the configuration parameters are used to generate the target transaction report.

4. 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; Based on the download requirement information, generating a download instruction for the target transaction report, wherein the download instruction is used to represent a task for executing the download task for the target transaction report; In response to the download instruction, the target transaction report of the target file type is downloaded.

5. The method according to claim 4, 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 of the target transaction report; In response to the target account having the download authority for the target transaction report, the target transaction report is downloaded.

6. The method according to claim 5, characterized in that In response to the target account having the download authority of the target transaction report, downloading the target transaction report includes: In response to the target account having the download authority, generating a download link; Based on the download link, the target transaction report is downloaded.

7. A transaction report generation device, characterized in that: include: A first acquisition unit is used to acquire sales data of a transaction report to be generated, and report requirement information corresponding to a target account of the transaction report to be generated, wherein the report requirement information is used to represent the requirement of the transaction report to be generated; A first determining unit, 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; A first generating unit, 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 generation task of executing the transaction report to be generated; The second generation unit 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 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.

8. 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 6.

9. 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 described in any one of claims 1 to 6.

10. 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 6 are implemented.

Citation Information

Patent Citations

  • Method for caching report

    CN101226542A

  • Data processing method and device, nonvolatile storage medium and processor

    CN113139835A

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

    CN115374761A

  • Transaction analysis report generation method and device, storage medium and electronic equipment

    CN116484824A

  • Report generation method and device, terminal equipment and storage medium

    CN117033444A