Report generation method and device, equipment, storage medium and program product
By introducing a message receiving cluster and a job access cluster into the report generation system, and parsing and routing the report generation job to the target business processing cluster, the problem of long response time caused by the complexity of high-frequency clusters is solved, and more efficient report generation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-26
- Publication Date
- 2026-04-10
AI Technical Summary
Existing technologies result in long response times and low efficiency when performing message relay and task triggering in high-frequency clusters.
By introducing a message receiving cluster to parse report generation requests, outbound call jobs access the cluster to initiate connection report generation jobs, and route them to the target business processing cluster, thus avoiding excessive complexity of high-frequency clusters and reducing data transmission network time.
It shortens the response time for report generation, improves generation efficiency, and ensures the orderliness and reliability of the processing flow.
Smart Images

Figure CN121835628A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data processing, and in particular to a report generation method and device, equipment, a storage medium and a program product. BACKGROUND
[0002] In a core business system of a large commercial bank, generating and printing a report (often referred to as an online report) during an online period is a key and frequent business requirement. Such a business requires the system to quickly and reliably generate a report file in a specified format and deliver it to the user after receiving the user's application.
[0003] In a known online report generation scheme, a high-frequency cluster uses a polling process to call a report generation program to generate an online report return file.
[0004] However, the prior art requires message transfer and task triggering in a high-frequency cluster, resulting in long response time and low efficiency. SUMMARY
[0005] The embodiments of the present application provide a report generation method, device, equipment, storage medium and program product to reduce the report generation response time and improve the efficiency.
[0006] In a first aspect, the embodiments of the present application provide a report generation method applied to a report generation system, the report generation system comprising a business processing cluster, a message receiving cluster and a batch job access cluster, and the method comprising:
[0007] receiving an online report application sent by a user end through a first business processing cluster, wherein the first business processing cluster belongs to the business processing cluster;
[0008] generating a report generation request according to the online report application through the first business processing cluster;
[0009] parsing the report generation request through the message receiving cluster to obtain report request parameters;
[0010] calling the batch job access cluster according to the report request parameters through the message receiving cluster to generate an online report generation job;
[0011] sending the online report generation job to a target business processing cluster according to the report request parameters through the batch job access cluster, wherein the target business processing cluster belongs to the business processing cluster;
[0012] executing the online report generation job through the target business processing cluster to generate an online report file.
[0013] In a possible implementation, the report request parameter comprises a business source identifier; accordingly, the sending, by the batch job access cluster, of the online report generation job to the target business processing cluster according to the report request parameter comprises: matching, by the batch job access cluster, the business source identifier with a preset routing strategy to obtain the target business processing cluster; and sending, by the batch job access cluster, the online report generation job to the target business processing cluster.
[0014] In a possible implementation, the report generation system further comprises a business database, wherein the business database comprises a report application file; accordingly, the executing, by the target business processing cluster, of the online report generation job to generate an online report file comprises: obtaining, by the target business processing cluster, the report application file; wherein the report application file comprises a report processing state; and executing, by the target business processing cluster, the online report generation job according to the report processing state to generate an online report file.
[0015] In a possible implementation, the report request parameter comprises a business type identifier; accordingly, the executing, by the target business processing cluster, of the online report generation job according to the report processing state to generate an online report file comprises: obtaining, by the target business processing cluster, an attribute file; wherein the attribute file comprises a business type identifier and a report generation program, and the business type identifier and the report generation program are in a corresponding relationship; if the report processing state is a first processing state, then matching, by the target business processing cluster, the business type identifier with the attribute file to obtain a corresponding report generation program, and updating the report processing state to a second processing state; generating, by the target business processing cluster, the online report file by using the corresponding report generation program; and if the online report file is generated successfully, then updating, by the target business processing cluster, the report processing state to a third processing state.
[0016] In a possible implementation, the report generation system further comprises a file transmission node; the business database further comprises a report transmission file; and correspondingly, after the report processing state is updated to the third processing state by the target business processing cluster, the method further comprises: acquiring, by the target business processing cluster, the report transmission file, wherein the report transmission file comprises a report transmission record, and the report transmission record comprises a report transmission state; creating, by the target business processing cluster, the report transmission record of the online report file in the report transmission file, and setting the report transmission state to the first transmission state; sending, by the target business processing cluster, the online report file to the file transmission node; updating, by the target business processing cluster, the report transmission state according to a first sending result of the online report file; if the first sending result is a sending success, sending, by the target business processing cluster, a file arrival message to the user end to notify a user of the user end to acquire the online report file from the file transmission node; and updating, by the target business processing cluster, the report transmission state according to a second sending result of the file arrival message.
[0017] In a possible implementation, the report generation system further comprises an event-driven architecture; and correspondingly, the sending, by the target business processing cluster, of the file arrival message to the user end comprises: sending, by the target business processing cluster, the file arrival message to the event-driven architecture; and sending, by the event-driven architecture, the file arrival message to the user end.
[0018] In a possible implementation, after the updating, by the target business processing cluster, of the report transmission state according to the second sending result of the file arrival message, the method further comprises: acquiring the report transmission state of the report transmission file; and if the report transmission state indicates that the first sending result is a sending failure or the second sending result is a sending failure, starting a retransmission instruction; wherein the retransmission instruction is used to instruct to send, by the target business processing cluster, the online report file to the file transmission node, or to send, by the target business processing cluster, the file arrival message to the user end.
[0019] In a second aspect, an embodiment of the present application provides a report generation device, comprising:
[0020] a receiving module configured to receive, by a first business processing cluster, an online report application sent by a user end, wherein the first business processing cluster belongs to a business processing cluster;
[0021] a generating module configured to generate, by the first business processing cluster, a report generation request according to the online report application;
[0022] The parsing module is used to parse the report generation request through the message receiving cluster to obtain the report request parameters;
[0023] The calling module is used to call the batch job access cluster through the message receiving cluster according to the report request parameters in order to generate a connected report generation job;
[0024] The sending module is used to send the connected report generation job to the target business processing cluster according to the report request parameters through the batch job access cluster, wherein the target business processing cluster belongs to the business processing cluster;
[0025] The execution module is used to execute the connection report generation job through the target business processing cluster to generate connection report files.
[0026] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0027] The memory stores computer-executed instructions;
[0028] The processor executes computer execution instructions stored in the memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0029] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0030] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0031] The report generation method, apparatus, device, storage medium, and program product provided in this application embodiment parse the report generation request by introducing a message receiving cluster, and then the outbound call operation accesses the cluster to initiate the connection report generation operation. By calling the operation access cluster, the connection report generation operation is routed to the target business processing cluster and the connection report operation is run. This avoids excessive complexity of high-frequency clusters, reduces data transmission network consumption, shortens response time, and improves report generation efficiency. Attached Figure Description
[0032] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0033] Figure 1A schematic diagram illustrating a scenario for the report generation method provided in this application embodiment;
[0034] Figure 2 A flowchart illustrating the report generation method provided in this application embodiment;
[0035] Figure 3 This is a schematic diagram of the architecture of another report generation system provided in an embodiment of this application;
[0036] Figure 4 This is a schematic diagram of the structure of the report generation device provided in the embodiments of this application;
[0037] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0038] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0039] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0040] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0041] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0042] First, let me explain the terms used in this application:
[0043] Online reporting function: This refers to a special transaction form on the new generation platform, mainly used for report printing needs during online hours.
[0044] Public data cluster: This is a special type of server cluster that deploys public data, public parameters, configuration files, etc.
[0045] Message receiving cluster: refers to a system cluster specifically responsible for receiving, buffering, and initially processing data from various message sources.
[0046] Batch jobs are connected to the cluster, and online batch report transactions are initiated to generate online reports.
[0047] Kafka refers to a high-throughput distributed publish-subscribe messaging system that can handle all action streams of data from consumers on a website.
[0048] Event-driven architecture (EDA) adopts a publish / subscribe messaging pattern to solve the problem of processing data generated in transactions that do not have high consistency requirements asynchronously without affecting the operation of the main transaction logic, and to transmit events to different subscription systems.
[0049] In existing technologies, high-frequency clusters are used as relay stations for message relay and task triggering. During peak traffic periods, high-frequency clusters not only have to handle core business but also integrate message relay and task triggering tasks at the same time, which leads to technical problems such as long response time and slow processing efficiency.
[0050] The report generation method provided in this application introduces a message receiving cluster to parse the report generation request, and then the outbound call job accesses the cluster to initiate the connection report generation job. By calling the job access cluster, the connection report generation job is routed to the target business processing cluster and the connection report job is run. This avoids excessive complexity in high-frequency clusters, reduces data transmission network time, shortens response time, and improves report generation efficiency.
[0051] Figure 1 This is a schematic diagram of a scenario for the report generation method provided in the embodiments of this application, such as... Figure 1 As shown, the specific application scenarios of this application include: application terminal 101 and report generation system 102.
[0052] The report generation system 102 includes: a business processing cluster, a message receiving cluster, and a batch job access cluster.
[0053] Among them, the application terminal 101 can be a mobile phone or a computer, etc.
[0054] Specifically, application 101 sends a connection report request to report generation system 102; report generation system 102 processes the connection report request to generate a connection report file and a file arrival message; report generation system 102 sends the connection report file and the file arrival message to application 101.
[0055] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0056] Figure 2 This is a flowchart illustrating the report generation method provided in this application embodiment. The execution entity in this embodiment can be... Figure 1 The report generation system 102 shown can also be other computer devices, and this embodiment does not impose any particular limitations on it. Figure 2 As shown, the method includes:
[0057] S201: Receive connection report requests sent by the user terminal through the first service processing cluster, wherein the first service processing cluster is a service processing cluster.
[0058] Among them, the business processing cluster can be a public cluster.
[0059] Optionally, a connection report request may include report request parameters.
[0060] S202: Generate a report generation request based on the connection report application through the first business processing cluster.
[0061] Optionally, a Kafka message is generated based on the connection report request through the first business processing set to obtain the report generation request.
[0062] Optionally, the report generation request can be a Kafka message.
[0063] Optionally, after generating a report generation request based on the connection report application through the first business processing cluster, the process further includes: obtaining a report application file through the first business processing cluster; wherein the report application file includes a report processing record, and the report processing record includes a report processing status; creating a report processing record corresponding to the report generation request in the report application file through the first business processing cluster; and setting the report processing status corresponding to the report processing record to pending processing through the first business processing cluster.
[0064] S203: Parse the report generation request through the message receiving cluster to obtain the report request parameters.
[0065] Optionally, the report request parameters include business source identifier, partition identifier, and business type identifier, etc.
[0066] Optionally, the report generation request field information is parsed through the message receiving cluster to obtain multiple fields; identification processing is performed from the multiple fields to obtain the report request parameters.
[0067] S204: The message receiving cluster calls a batch job to access the cluster based on the report request parameters to generate a connected report generation job.
[0068] Optionally, the message receiving cluster matches the business type identifier of the report request parameters from predefined mapping rules to determine the target job identifier; the message receiving cluster encapsulates the report request parameters and the target job identifier into a report request instruction; the message receiving cluster calls the batch job access cluster according to the report request instruction; and the batch job access cluster executes the report request instruction.
[0069] Optionally, after executing the report request instruction through the batch job access cluster, the process further includes: if the execution of the report request instruction fails, returning a failure response to the message receiving cluster through the batch job access cluster; and updating the report processing status of the corresponding report processing record to processing exception through the message receiving cluster.
[0070] S205: Access the cluster via batch job and send the connection report generation job to the target business processing cluster according to the report request parameters, where the target business processing cluster belongs to the business processing cluster.
[0071] Optionally, the batch job access cluster sends a connection report generation job to the target business processing cluster according to the report request parameters, including: matching from a preset routing strategy according to the business source identifier to obtain the target business processing cluster; and sending the connection report generation job to the target business processing cluster through the batch job access cluster.
[0072] By using a preset routing strategy and business source identifier, the connection report generation job is sent to the target business processing cluster. The target business processing cluster can be dynamically selected based on the load status of the business cluster and the business source identifier, ensuring that the task is processed within a single cluster. Through a unified routing mechanism, the intermediate link of high-frequency clusters is eliminated, and the connection report generation job is directly processed by the business cluster, reducing process complexity and improving processing efficiency.
[0073] S206: Execute a connection report generation job through the target business processing cluster to generate connection report files.
[0074] Optionally, the target business processing cluster executes a connection report generation job according to a preset application report job configuration file to generate a connection report file.
[0075] Optionally, before step S206, the method further includes: detecting whether there are old connection report files through the target business processing cluster; if old connection report files are detected, deleting the old connection report files.
[0076] Optionally, the report generation system also includes a business database, which includes report request files.
[0077] Accordingly, step S206 includes: obtaining a report application file through the target business processing cluster; wherein the report application file includes a report processing status; and executing a connection report generation job through the target business processing cluster according to the report processing status to generate a connection report file.
[0078] The report processing status allows for clear tracking of the real-time processing progress of any connected report. The status lock mechanism of the report processing status ensures that the same report is not processed by multiple processes simultaneously.
[0079] Optionally, the report request file may also include a connection report service name, which indicates the type of connection report.
[0080] Optionally, the report processing status can be pending, processing, processing completed, processing error, cancellation, or termination.
[0081] Optionally, the primary key of the report application file can be a business source identifier, a partition identifier, or a business type identifier, etc.
[0082] Optionally, the target business processing cluster executes a connection report generation job based on the report processing status to generate a connection report file, including: obtaining an attribute file through the target business processing cluster; wherein the attribute file includes a business type identifier and a report generation program, and the business type identifier and the report generation program are in a corresponding relationship; if the report processing status is a first processing status, the target business processing cluster matches the corresponding report generation program from the attribute file based on the business type identifier and updates the report processing status to a second processing status; the target business processing cluster uses the corresponding report generation program to generate the connection report file; if the connection report file is successfully generated, the target business processing cluster updates the report processing status to a third processing status.
[0083] Optionally, the attribute file can be stored in the business database.
[0084] Optionally, the attribute file includes a print module field, which includes a business type identifier and a report generation program storage.
[0085] The first processing state indicates that the connection report generation job is pending processing, the second processing state indicates that the connection report generation job is being processed, and the third processing state indicates that the connection report generation job has been completed.
[0086] The first processing state can be pending processing, the second processing state can be processing, and the third processing state can be processing completed.
[0087] Optionally, if the connection report file generation fails, the report processing status is updated to the fourth processing status through the target business processing cluster.
[0088] The fourth processing status is used to indicate an error in the online report generation job.
[0089] Optionally, if the report processing status indicates an error in the connected report generation job, an error message is generated through the target business processing cluster, and the connected report generation job is terminated.
[0090] The attribute file enables flexible mapping between business types and generation programs, improving the scalability and maintenance efficiency of report generation methods. By automating and standardizing the state control and transition of the report generation startup, execution and completion stages through report processing status, the orderliness, reliability and anomaly traceability of the entire processing flow are ensured.
[0091] Optionally, the report generation system may also include a file transfer node; the business database may also include report transfer files.
[0092] Accordingly, after updating the report processing status to the third processing status through the target business processing cluster, the process further includes: obtaining a report transmission file through the target business processing cluster, wherein the report transmission file includes a report transmission record, and the report transmission record includes a report transmission status; creating a report transmission record for connecting report files in the report transmission file through the target business processing cluster, and setting the report transmission status to the first transmission status; sending the connected report files to the file transmission node through the target business processing cluster; updating the report transmission status through the target business processing cluster based on the first sending result of the connected report files; if the first sending result is successful, sending a file arrival message to the user terminal through the target business processing cluster to notify the user terminal to obtain the connected report files from the file transmission node; and updating the report transmission status through the target business processing cluster based on the second sending result of the file arrival message.
[0093] Optionally, the report transfer record may also include the connection report service name, which indicates the connection report type.
[0094] Optionally, the report transmission status can be pending transmission, in transmission, transmission completed, transmission error, message sent completed, message sent error, retransmission or resend message, etc.
[0095] Optionally, the primary key of the report application file can be a business source identifier, a partition identifier, or a business type identifier, etc.
[0096] The first transmission status is used to indicate that the connection report file is being transmitted.
[0097] Optionally, the target service processing cluster updates the report transmission status based on the first sending result of the connected report file, including: if the first sending result is successful, then the target service processing cluster updates the report transmission status to transmission completed; if the first sending result is failed, then the target service processing cluster updates the report transmission status to transmission error.
[0098] Optionally, the report transmission status is updated by the target service processing cluster based on the second sending result of the file arrival message, including: if the second sending result is successful, the report transmission status is updated to message sending completed by the target service processing cluster; if the second sending result is failed, the report transmission status is updated to message sending error by the target service processing cluster.
[0099] By automating and standardizing the status control and transformation of the transmission of connected report files through report transmission files, the orderliness, reliability and traceability of the entire transmission process are ensured.
[0100] Optionally, the report generation system may also include an event-driven architecture.
[0101] Accordingly, sending file arrival messages to the user terminal via the target business processing cluster includes: sending file arrival messages to the event-driven architecture via the target business processing cluster; and sending file arrival messages to the user terminal via the event-driven architecture.
[0102] Sending file arrival messages via an event-driven architecture ensures reliable message delivery, enables immediate responses to state changes and proactive notifications to users, and greatly enhances user experience and the real-time nature of message sending.
[0103] Optionally, the report transmission status of the report transmission file is obtained; if the report transmission status indicates that the first sending result is a sending failure or the second sending result is a sending failure, a retransmission job instruction is initiated; wherein, the retransmission job instruction is used to instruct the connection report file to be sent to the file transmission node through the target service processing cluster, or to send a file arrival message to the user terminal through the target service processing cluster.
[0104] Optionally, the retransmission job instruction is used to instruct the target service processing cluster to resend the connection report file to the file transfer node according to the preset retransmission job configuration file, or to resend the file arrival message to the user terminal according to the preset retransmission job configuration file.
[0105] By monitoring the report transmission status in real time, the system automatically triggers retransmission commands when file transmission or message notification failures are detected, thus establishing a self-healing closed-loop management mechanism. This improves the final success rate of file and message delivery and ensures the ultimate consistency of business processes.
[0106] Optionally, after initiating the retransmission job instruction, the process also includes: updating the report transmission status to retransmission or resending the message through the target business processing cluster according to the retransmission job instruction.
[0107] Optionally, after the target business processing cluster updates the report transmission status to retransmission according to the retransmission job instruction, the process further includes: determining, through the target business processing cluster, that the report processing status is completed and the report transmission status is retransmission; if the report processing status is completed and the report transmission status is retransmission, then the target business processing cluster resends the connection report file to the file transmission node and resends the file arrival message to the user terminal; if the report processing status is not completed or the report transmission status is not retransmission, then the connection report generation job is terminated or the connection report file transmission is terminated.
[0108] Optionally, resending the connection report file to the file transfer node via the target service processing cluster and resending the file arrival message to the user terminal includes: updating the report transmission status to pending transmission via the target service processing cluster; resending the connection report file to the file transfer node via the target service processing cluster according to the report transmission status and updating the report transmission status to transmission in progress; if the connection report file is successfully sent, updating the report transmission status to transmission completed; and sending the file arrival message to the user terminal via the target service processing cluster.
[0109] Optionally, after the target service processing cluster updates the report transmission status to retransmission message according to the retransmission job instruction, the process further includes: determining, through the target service processing cluster, that the report processing status is completed and the report transmission status is retransmission message; if the report processing status is completed and the report transmission status is retransmission message, then retransmit the file arrival message to the user terminal through the target service processing cluster; if the report processing status is not completed or the report transmission status is not retransmission message, then terminate the connected report generation job or terminate the file arrival message sending.
[0110] The report generation method provided in this application introduces a message receiving cluster to parse the report generation request, and then the outbound call job access cluster initiates the connection report generation job. By calling the job access cluster, the connection report generation job is routed to the target business processing cluster and the connection report job is run. This avoids excessive complexity of high-frequency clusters, reduces data transmission network time, shortens response time, and improves report generation efficiency.
[0111] Optionally, in one embodiment of this application, based on the above embodiments, after executing the connection report generation job through the target business processing cluster to generate the connection report file, a connection report processing process is further included, as detailed below:
[0112] In response to a report query operation from the user, the system determines the corresponding business processing cluster based on the user identifier. Then, it reads the corresponding connection report data from the report request file and report transmission file using the user identifier from the target business processing cluster and outputs the connection report data. The user identifier and the business source identifier are correlated.
[0113] In response to a report cancellation operation from the user, the system reads the report processing status from the report application file. If the report processing status is pending, it updates the report processing status to cancel; otherwise, it generates an error message.
[0114] In response to a report retry operation from the user, the report processing status of the report request file is read. If the report processing status is "processed and completed", the report transmission status is updated to "retransmit or resend message". If the report processing status is not "processed and completed", an error message is generated.
[0115] The user experience was improved through interaction with the user's device.
[0116] In one embodiment of this application, based on the above embodiments, an exception handling process is further included, detailed as follows: Anomaly information regarding connection report generation, connection report file transmission, and file arrival message transmission is collected; these anomaly information is stored in the report application file and the report transmission file. The batch processing job is queried through the job scheduling platform to monitor the anomaly data in real time.
[0117] By collecting and monitoring abnormal information, anomalies can be handled in a timely manner, improving the reliability and stability of report generation.
[0118] Figure 3 This is a schematic diagram of the architecture of another report generation system provided in an embodiment of this application. For example... Figure 3 As shown, the system includes: a business processing cluster, a message receiving cluster, a business database, a batch job access cluster, a file transfer node, and an event-driven architecture.
[0119] The business processing cluster includes a first business processing cluster and a target business processing cluster; the business database includes report application files and report transmission files.
[0120] The first business processing cluster is used to receive connection report requests sent by users; and to generate report generation requests based on the connection report requests. The report generation requests can be Kafka messages.
[0121] The message receiving cluster, including Kafka consumer threads, is used to parse report generation requests to obtain report request parameters; based on the report request parameters, it calls batch jobs to access the cluster to generate connected report generation jobs.
[0122] Batch job access cluster is used to send connected report generation jobs to the target business processing cluster based on report request parameters.
[0123] The business database is used to provide report request files and report transfer files.
[0124] The target business processing cluster is used to call the preset application report job configuration file, first delete the old connected report file, and then generate the connected report file.
[0125] The generated connection report file includes:
[0126] Read the report request file and attribute file. If the report processing status is pending, change the report processing status to processing. If the report processing status is any other, generate an error message and terminate the online report generation job.
[0127] The report generation program is invoked based on the printing module field in the property file. The report generation program then calls the platform's components to write data line by line, generating a connected report file.
[0128] If the report generation program encounters an error, the error code and error message are collected and stored in the report application file; the report processing status is updated to processing exception, the error code is output, and the online report generation job is terminated.
[0129] If the report processing status is "Processing", then generate the connected report file and update the report processing status to "Processed". Add a new report transfer file and set the report transfer status to "Transferring". If the report processing status is not "Processing", then generate an error message and terminate the connected report generation job.
[0130] Generate an EDA message indicating file arrival. Call the transmission component to send the connected report file to the file transmission node. If the transmission is successful, change the report transmission status to "Transmission Completed"; if the transmission fails, change the report transmission status to "Transmission Error". Send an EDA message to the user. If the transmission is successful, change the report transmission status to "Message Sent Successfully"; if the transmission fails, change the report transmission status to "Message Sent Error".
[0131] If the connection report file fails to be sent, the preset retransmission job configuration file is invoked. If the report processing status is not completed or the report transmission status is not retransmission, the connection report generation job or connection report file sending is terminated. Otherwise, the report transmission status is changed to pending transmission, and the transmission component is invoked to send the report file to the file transmission node again.
[0132] If the pre-defined resend job configuration file is invoked, and the report processing status is not "processed complete" or the report transmission status is not "resend message," the connection to the report generation job will be terminated or the file arrival message sending will be terminated. If the EDA message is sent successfully, the report transmission status will be changed to "message sent successfully." If the EDA message is sent unsuccessfully, the report transmission status will be changed to "message sent unsuccessfully."
[0133] The file transfer node is used to receive connection report files sent by the target business processing cluster and send the connection report files to the user terminal.
[0134] An event-driven architecture is used to receive file arrival messages from the target business processing cluster and send the file arrival messages to the user terminal.
[0135] Figure 4 A schematic diagram of the report generation device provided in this application is shown below. Figure 4 As shown, the report generation device provided in this embodiment includes: a receiving module 401, a generation module 402, a parsing module 403, a calling module 404, a sending module 405, and an execution module 406.
[0136] The receiving module 401 is used to receive a connection report request sent by the user terminal through the first service processing cluster, wherein the first service processing cluster is a service processing cluster.
[0137] The generation module 402 is used to generate a report generation request based on the connection report application through the first business processing cluster;
[0138] The parsing module 403 is used to parse the report generation request through the message receiving cluster to obtain the report request parameters;
[0139] Module 404 is invoked to call a batch job to access the cluster based on the report request parameters via a message receiving cluster, in order to generate a connected report generation job.
[0140] The sending module 405 is used to send the connection report generation job to the target business processing cluster according to the report request parameters through the batch job access cluster, wherein the target business processing cluster belongs to the business processing cluster.
[0141] The execution module 406 is used to execute a connection report generation job through the target business processing cluster to generate connection report files.
[0142] In one possible implementation, the report request parameters include a business source identifier; correspondingly, the sending module 405 is specifically used to: match the target business processing cluster from a preset routing strategy based on the business source identifier through the batch job access cluster; and send the connection report generation job to the target business processing cluster through the batch job access cluster.
[0143] In one possible implementation, the report generation system further includes a business database, which includes report request files; correspondingly, the execution module 406 is specifically used to: obtain the report request files through the target business processing cluster; wherein the report request files include report processing status; and execute a connected report generation job through the target business processing cluster according to the report processing status to generate connected report files.
[0144] In one possible implementation, the report request parameters include a business type identifier; correspondingly, the execution module 406 is further specifically used to: obtain an attribute file through the target business processing cluster; wherein the attribute file includes a business type identifier and a report generation program, and the business type identifier and the report generation program are in a corresponding relationship; if the report processing status is a first processing status, the target business processing cluster matches the corresponding report generation program from the attribute file according to the business type identifier and updates the report processing status to a second processing status; the target business processing cluster uses the corresponding report generation program to generate a connected report file; if the connected report file is successfully generated, the target business processing cluster updates the report processing status to a third processing status.
[0145] In one possible implementation, the report generation system further includes a file transfer node; the business database also includes a report transfer file; correspondingly, the execution module 406 is further specifically configured to: obtain the report transfer file through the target business processing cluster, wherein the report transfer file includes a report transfer record, and the report transfer record includes a report transfer status; create a report transfer record for connecting report files in the report transfer file through the target business processing cluster, and set the report transfer status to a first transfer status; send the connected report files to the file transfer node through the target business processing cluster; update the report transfer status through the target business processing cluster according to the first sending result of the connected report files; if the first sending result is successful, send a file arrival message to the user terminal through the target business processing cluster to notify the user terminal to obtain the connected report files from the file transfer node; and update the report transfer status through the target business processing cluster according to the second sending result of the file arrival message.
[0146] In one possible implementation, the report generation system also includes an event-driven architecture; correspondingly, the execution module 406 is also specifically used to: send file arrival messages to the event-driven architecture through the target business processing cluster; and send file arrival messages to the user terminal through the event-driven architecture.
[0147] In one possible implementation, the execution module 406 is further specifically used to: obtain the report transmission status of the report transmission file; if the report transmission status indicates that the first sending result is a sending failure or the second sending result is a sending failure, then initiate a retransmission job instruction; wherein, the retransmission job instruction is used to instruct the connection report file to be sent to the file transmission node through the target service processing cluster, or to send a file arrival message to the user terminal through the target service processing cluster.
[0148] The report generation device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0149] Figure 5 A schematic diagram of the structure of the electronic device provided in this application. Figure 5 As shown, the electronic device provided in this embodiment includes at least one processor 501 and a memory 502. Optionally, the electronic device further includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.
[0150] In a specific implementation, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to perform the above-described method.
[0151] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0152] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0153] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0154] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0155] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0156] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0157] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0158] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0159] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0160] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0161] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0162] If a function is implemented as 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 this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0163] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0164] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A report generation method, characterized in that, The method is applied to a report generation system, which includes a business processing cluster, a message receiving cluster, and a batch job access cluster. The system receives connection report requests from user terminals through a first service processing cluster, wherein the first service processing cluster is part of the service processing cluster. The first business processing cluster generates a report generation request based on the connection report application. The report generation request is parsed by the message receiving cluster to obtain the report request parameters; The message receiving cluster calls the batch job access cluster according to the report request parameters to generate a connected report generation job. The batch job access cluster sends the connected report generation job to the target business processing cluster according to the report request parameters, wherein the target business processing cluster belongs to the business processing cluster; The connection report generation job is executed through the target business processing cluster to generate connection report files.
2. The method according to claim 1, characterized in that, The report request parameters include the business source identifier; Accordingly, the step of sending the connected report generation job to the target business processing cluster through the batch job access cluster according to the report request parameters includes: The batch job access cluster matches the target service processing cluster based on the service source identifier from a preset routing strategy. The batch job access cluster sends the connection report generation job to the target business processing cluster.
3. The method according to claim 1 or 2, characterized in that, The report generation system also includes a business database, wherein the business database includes report request files; Accordingly, the step of executing the connection report generation job through the target business processing cluster to generate connection report files includes: The report request file is obtained through the target business processing cluster; wherein the report request file includes the report processing status. The target business processing cluster executes the connection report generation job according to the report processing status to generate a connection report file.
4. The method according to claim 3, characterized in that, The report request parameters include a business type identifier; Accordingly, the step of executing the connection report generation job through the target business processing cluster according to the report processing status to generate a connection report file includes: The attribute file is obtained through the target business processing cluster; wherein the attribute file includes a business type identifier and a report generation program, and the business type identifier and the report generation program are in a corresponding relationship. If the report processing status is the first processing status, the target business processing cluster will match the corresponding report generation program from the attribute file according to the business type identifier, and update the report processing status to the second processing status. The connection report file is generated by the target business processing cluster using the corresponding report generation program. If the connection report file is successfully generated, the report processing status is updated to the third processing status through the target business processing cluster.
5. The method according to claim 4, characterized in that, The report generation system also includes a file transfer node; the business database also includes report transfer files; Accordingly, after updating the report processing status to the third processing status through the target business processing cluster, the process further includes: The report transmission file is obtained through the target business processing cluster, wherein the report transmission file includes a report transmission record, and the report transmission record includes a report transmission status. The target business processing cluster creates a report transmission record for the connected report file in the report transmission file and sets the report transmission status to the first transmission status. The connection report file is sent to the file transfer node through the target business processing cluster; The target service processing cluster updates the report transmission status based on the first transmission result of the connected report file; If the first sending result is successful, a file arrival message is sent to the user terminal through the target service processing cluster to notify the user terminal to obtain the connection report file from the file transfer node; The target service processing cluster updates the report transmission status based on the second sending result of the file arrival message.
6. The method according to claim 5, characterized in that, The report generation system also includes an event-driven architecture; Accordingly, sending the file arrival message to the user terminal through the target service processing cluster includes: The file arrival message is sent to the event-driven architecture via the target business processing cluster. The file arrival message is sent to the user terminal through the event-driven architecture.
7. The method according to claim 5, characterized in that, After updating the report transmission status through the target service processing cluster based on the second sending result of the file arrival message, the method further includes: Obtain the report transmission status of the report transmission file; If the report transmission status indicates that the first transmission result is a transmission failure or the second transmission result is a transmission failure, then a retransmission job instruction is initiated; wherein, the retransmission job instruction is used to instruct the connection report file to be sent to the file transmission node through the target service processing cluster, or to send the file arrival message to the user terminal through the target service processing cluster.
8. A report generation device, characterized in that, include: The receiving module is used to receive connection report requests sent by the user terminal through the first service processing cluster, wherein the first service processing cluster is a service processing cluster. The generation module is used to generate a report generation request based on the connection report application through the first business processing cluster; The parsing module is used to parse the report generation request through the message receiving cluster to obtain the report request parameters; The calling module is used to call the batch job access cluster through the message receiving cluster according to the report request parameters in order to generate a connected report generation job; The sending module is used to send the connected report generation job to the target business processing cluster according to the report request parameters through the batch job access cluster, wherein the target business processing cluster belongs to the business processing cluster; The execution module is used to execute the connection report generation job through the target business processing cluster to generate connection report files.
9. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
11. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-7.