Real-time detail reconciliation method, device, medium and system
By sending detailed reconciliation applications in the banking system, receiving messages to determine the status and performing pre-set reconciliation tasks, the inefficiency problem caused by the repetition of detailed reconciliation processes in the existing technology is solved, and efficient and flexible reconciliation process management is achieved.
Patent Information
- Application Number
- CN202510411949.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-02
- Publication Date
- 2025-07-04
AI Technical Summary
The existing detailed reconciliation method directly conducts reconciliation results in duplication of the process and is less efficient.
By sending a detailed reconciliation application, receiving messages to determine the current reconciliation status, and performing pre-set reconciliation tasks based on the status, assigning tasks to the processing unit for asynchronous processing, generating reconciliation results and updating the status.
Improves the efficiency and flexibility of the reconciliation process, reduces repetitive operations, ensures that tasks at each stage are handled correctly, and enhances the controllability and transparency of the system.
Smart Images

Figure CN120259007A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of bank data processing. Specifically, it relates to a real-time detailed reconciliation method, a real-time detailed reconciliation device, a computer-readable storage medium, and a real-time detailed reconciliation system. Background Technique
[0002] There are three methods for detailed reconciliation in existing solutions. The first method solves the problem of inaccurate reconciliation results by increasing the reconciliation dimension, and does not mention the reconciliation solution after the data is distributed in multiple databases. The second method uses big data-related technologies independent of the business system to build a reconciliation system. After the online transaction details need to be imported into this system, reconciliation is completed through technologies such as data splitting, which increases the system complexity and the timeliness of reconciliation. The third method provides a transaction matching method and a verification method between the transaction initiator and the transaction provider during the online transaction process, and does not mention the verification of all the detailed data of this period issued after a transaction cycle.
[0003] The detailed reconciliation method of the existing solution directly performs detailed reconciliation, making the process of detailed reconciliation start from scratch, resulting in a relatively repetitive execution process, and thus the efficiency of detailed reconciliation is low. Summary of the Invention
[0004] The main purpose of this application is to provide a real-time detailed reconciliation method, a real-time detailed reconciliation device, a computer-readable storage medium, and a real-time detailed reconciliation system, so as to at least solve the problem that the detailed reconciliation method of the existing solution directly performs detailed reconciliation, making the process of detailed reconciliation start from scratch, resulting in a relatively repetitive execution process, and thus the efficiency of detailed reconciliation is low.
[0005] To achieve the above object, according to one aspect of this application, a real-time detailed reconciliation method is provided. The method includes: sending a detailed reconciliation application to a target system and receiving a detailed reconciliation message of the application synchronization response, and determining a detailed reconciliation message record based on the detailed reconciliation message, and determining the current reconciliation status, where the current reconciliation status is the status represented by the unique identifier of the pre-set reconciliation task corresponding to the detailed reconciliation message record; performing the corresponding pre-set reconciliation task based on the current reconciliation status of the detailed reconciliation message record to allocate the reconciliation task to the corresponding processing unit, and performing reconciliation processing according to the reconciliation task in the processing unit to obtain a reconciliation result, where the processing unit is the unit in the real-time detailed reconciliation total system for performing reconciliation processing, and the source system is the system in the real-time detailed reconciliation total system for interacting and responding with the target system; updating the reconciliation status of the overall detailed reconciliation work according to the reconciliation result.
[0006] Optionally, perform the corresponding pre-set reconciliation task based on the current reconciliation status recorded in the detailed reconciliation message, including: determining the reconciliation status identifier of the current reconciliation status; performing one of the following: the first processing method, the second processing method, the third processing method, and the fourth processing method according to the reconciliation status identifier, where the first processing method includes: determining the corresponding pre-configured rule according to the current reconciliation status, generating the corresponding reconciliation detail file according to the pre-configured rule, and registering the reconciliation task detail table, and updating the current reconciliation status to the second reconciliation status identifier after all are generated; the second processing method includes: calling the file sending service according to the reconciliation task detail table to upload the reconciliation detail file to the file server, and updating the current reconciliation status to the third reconciliation status identifier after all the file sending services send the files successfully; the third processing method includes: first calling the file sending notification message service according to the reconciliation task detail table, and then updating the current reconciliation status to the fourth reconciliation status identifier to notify the processing unit that the reconciliation task detail table has been stored in the file server; the fourth processing method includes an update step: receiving the reconciliation result of the business flow of the reconciliation detail tables of each processing unit, updating the reconciliation task detail table, and determining whether the overall detailed reconciliation work task has been completed, and updating the current reconciliation status to the fifth reconciliation status identifier when it is determined that the overall detailed reconciliation work task has been completed.
[0007] Optionally, perform one of the following: the first processing method, the second processing method, the third processing method, and the fourth processing method according to the reconciliation status identifier, including: performing the first processing method when the reconciliation status identifier is the first reconciliation status identifier; performing the second processing method when the reconciliation status identifier is the second reconciliation status identifier; performing the third processing method when the reconciliation status identifier is the third reconciliation status identifier; performing the fourth processing method when the reconciliation status identifier is the fourth reconciliation status identifier.
[0008] Optionally, the step in the first processing method: generating the corresponding reconciliation detail file according to the pre-configured rule includes: determining the processing unit usage bitmap according to the pre-configured rule, where the processing unit usage bitmap represents the mapping relationship between the usage status of the processing unit and the unique identifier of the processing unit; generating the corresponding reconciliation detail file according to the processing unit usage bitmap.
[0009] Optionally, during the execution of the fourth processing method, the method further includes: repeatedly executing the update step until it is determined that the overall detailed reconciliation work task has been completed.
[0010] Optionally, after executing the step in the third processing step: invoking the sending file notification message service according to the reconciliation task detail list, the method further includes: downloading the reconciliation detail file from the file server in the processing unit; line by line reconciling the reconciliation messages in the reconciliation detail file with the local database business transactions according to the reconciliation detail records, and generating a local business transaction reconciliation result according to the reconciliation result; and uploading the local business transaction reconciliation result to the file server.
[0011] Optionally, allocating the reconciliation task to the corresponding processing unit includes: determining the processing unit to be allocated according to the parameters of the processing unit, where the parameters of the processing unit include the current number of processing threads of the processing unit; and allocating the reconciliation task to the processing unit to be allocated.
[0012] According to another aspect of the present application, there is provided a real-time detail reconciliation device, which includes: a sending unit, configured to send a detail reconciliation application to a target system and receive a detail reconciliation message of an application synchronization response, and determine a detail reconciliation message record based on the detail reconciliation message, and determine the current reconciliation status, where the current reconciliation status represents a unique identifier of a pre-set reconciliation task corresponding to the detail reconciliation message record; a first reconciliation unit, configured to execute the corresponding pre-set reconciliation task based on the current reconciliation status of the detail reconciliation message record to allocate the reconciliation task to the corresponding processing unit, and perform reconciliation processing according to the reconciliation task in the processing unit to obtain a reconciliation result, where the processing unit is a unit in the real-time detail reconciliation total system for obtaining the reconciliation result, and the source system is a system in the real-time detail reconciliation total system for interacting and responding with the target system; and a second reconciliation unit, configured to update the reconciliation status of the overall detail reconciliation work according to the reconciliation result.
[0013] According to still another aspect of the present application, there is provided a computer-readable storage medium, where the computer-readable storage medium includes a stored program, and when the program runs, it controls the device where the computer-readable storage medium is located to execute any one of the methods.
[0014] According to yet another aspect of the present application, there is provided a real-time detail reconciliation system, which includes: one or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include those for executing any one of the methods.
[0015] Applying the technical solution of the present application, by executing the corresponding pre-set reconciliation tasks based on the current reconciliation status of the detailed reconciliation message record, the long reconciliation process is segmented and executed asynchronously, which can greatly shorten the execution time of error retry during the reconciliation process, and can execute certain steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solutions, it will not cause the execution process to be relatively repetitive. Furthermore, it solves the problem that the detailed reconciliation method of the existing solution directly performs detailed reconciliation, making the detailed reconciliation process start from scratch, resulting in a relatively repetitive execution process and thus a low efficiency of detailed reconciliation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings forming a part of this application are used to provide a further understanding of this application. The schematic embodiments and descriptions thereof of this application are used to explain this application and do not constitute an improper limitation to this application. In the drawings:
[0017] Figure 1 shows a flowchart of a real-time detailed reconciliation method provided according to an embodiment of this application;
[0018] Figure 2 shows a schematic diagram of the principle of corresponding processing for the change of the reconciliation status of the detailed reconciliation message table provided according to an embodiment of this application;
[0019] Figure 3 shows a flowchart of the reconciliation main control executing the reconciliation task provided according to an embodiment of this application;
[0020] Figure 4 shows a structural block diagram of a real-time detailed reconciliation device provided according to an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0021] It should be noted that, without conflict, the embodiments in this application and the features in the embodiments can be combined with each other. The following will refer to the accompanying drawings and combine the embodiments to detail this application.
[0022] In order to enable those skilled in the art to better understand the solution of this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
[0023] It should be noted that the terms "first", "second", etc. in the description, claims and above-mentioned drawings of this application are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so as to implement the embodiments of this application described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0024] As introduced in the background art, there are three methods for detailed reconciliation in the existing solutions. The first method solves the problem of inaccurate reconciliation results by increasing the reconciliation dimension, and does not mention the reconciliation solution after the data is distributed in multiple databases; the second method builds a reconciliation system using big data-related technologies independent of the business system. After the online transaction details need to be imported into this system, the reconciliation is completed through technologies such as data splitting, which increases the system complexity and the timeliness of reconciliation; the third method provides a transaction matching method and a verification method between the transaction initiator and the transaction provider during the online transaction process, and does not mention the verification of all the details of this period issued after a transaction cycle. To solve the problem of the detailed reconciliation method in the existing solutions, only direct detailed reconciliation is performed, so that the process of detailed reconciliation has to start from scratch, resulting in a relatively repetitive execution process, and thus the efficiency of detailed reconciliation is low. Embodiments of this application provide a real-time detailed reconciliation method, a real-time detailed reconciliation device, a computer-readable storage medium, and a real-time detailed reconciliation system.
[0025] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention.
[0026] In this embodiment, a real-time detailed reconciliation method running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0027] Figure 1 It is a schematic flowchart of a real-time detailed reconciliation method provided according to an embodiment of this application. As Figure 1 shown, the method includes the following steps:
[0028] Step S101: Send a detailed reconciliation application to the target system, receive the detailed reconciliation message of the application synchronization response, determine the detailed reconciliation message record based on the above-mentioned detailed reconciliation message, and determine the current reconciliation status, where the above-mentioned current reconciliation status is the status represented by the unique identifier of the pre-set reconciliation task corresponding to the above-mentioned detailed reconciliation message record;
[0029] Real-time detailed reconciliation: The destination system, in accordance with the agreement, online issues all business transaction details within a specific time period to the source system. The source system reconciles the same transaction data in its own system in real time and item by item based on the allocated detailed data, and generates an error result.
[0030] Step S102: Execute the corresponding pre-set reconciliation task based on the above-mentioned current reconciliation status of the above-mentioned detailed reconciliation message record, so as to allocate the reconciliation task to the corresponding processing unit, and perform reconciliation processing according to the above-mentioned reconciliation task in the above-mentioned processing unit to obtain a reconciliation result. The above-mentioned processing unit is the unit in the real-time detailed reconciliation total system for performing reconciliation processing, and the source system is the system in the above-mentioned real-time detailed reconciliation total system for interacting and responding with the above-mentioned target system;
[0031] Among them, executing the corresponding pre-set reconciliation task based on the above-mentioned current reconciliation status of the above-mentioned detailed reconciliation message record in Step S102 includes: determining the reconciliation status identifier of the above-mentioned current reconciliation status; performing one of the following: the first processing method, the second processing method, the third processing method, and the fourth processing method according to the above-mentioned reconciliation status identifier. Among them, the above-mentioned first processing method includes: determining the corresponding pre-configured rule according to the above-mentioned current reconciliation status, generating the corresponding reconciliation detailed file according to the above-mentioned pre-configured rule, and registering the reconciliation task detailed list, and updating the above-mentioned current reconciliation status to the second reconciliation status identifier after all are generated; the above-mentioned second processing method includes: calling the send file service according to the above-mentioned reconciliation task detailed list to upload the above-mentioned reconciliation detailed file to the file server, and updating the above-mentioned current reconciliation status to the third reconciliation status identifier after all the send file services of the above-mentioned send file service are successful; the above-mentioned third processing method includes: first calling the send file notification message service according to the above-mentioned reconciliation task detailed list, and then updating the above-mentioned current reconciliation status to the fourth reconciliation status identifier to notify the above-mentioned processing unit that the above-mentioned reconciliation task detailed list has been stored in the above-mentioned file server; the above-mentioned fourth processing method includes an update step: receiving the business transaction reconciliation results of the reconciliation detailed lists of each above-mentioned processing unit, updating the above-mentioned reconciliation task detailed list, and determining whether the overall detailed reconciliation work task has been completed. In the case of determining that the overall detailed reconciliation work task has been completed, updating the above-mentioned current reconciliation status to the fifth reconciliation status identifier.
[0032] Through predefined reconciliation status identifiers and corresponding processing methods, the system can automatically identify the current reconciliation steps and execute the corresponding processing procedures based on these identifiers. This avoids manual operations, reduces human errors, and significantly improves the execution efficiency of the reconciliation process. Each reconciliation status identifier corresponds to a specific processing method, which means that the system can perform fine-grained control over each link of the reconciliation process, ensuring that the tasks at each stage are correctly processed, enhancing the controllability and accuracy of the reconciliation process. The introduction of reconciliation status identifiers makes it easy to track the status of the reconciliation process. Managers and operators can clearly see which stage the reconciliation task is currently in, which helps to quickly locate and solve problems, and also improves the transparency of the reconciliation process. Each processing method is targeted at a specific reconciliation status, which enables the system to adopt corresponding error handling strategies according to the current reconciliation status identifier when encountering reconciliation errors or anomalies, such as regenerating the reconciliation detail file, resending the file, or notifying the operator to intervene, improving the robustness and exception handling ability of the system. By dividing the reconciliation process into multiple stages and specifying different processing methods for each stage, the system can more reasonably allocate resources and schedule tasks. For example, it gives priority to using network resources during the file upload stage, while it may focus on optimizing computing resources during the reconciliation result processing stage.
[0033] Execute one of the following according to the above reconciliation status identifier: A specific usage scenario of the first processing method, the second processing method, the third processing method, and the fourth processing method: In the daily operation of a bank, cross-system reconciliation is a complex and important task, involving the verification of transaction data between different business systems to ensure the accuracy and consistency of financial records. The reconciliation process management mechanism proposed in this application based on reconciliation status identifiers and pre-configured processing methods can be effectively applied to the cross-system reconciliation scenario of banks, significantly improving the reconciliation efficiency and accuracy.
[0034] The first processing method: When the reconciliation task is started, the system determines the corresponding pre-configured rules according to the current reconciliation status (assuming the initial status is the preparation stage), such as data format, field mapping rules, etc. Then, the system generates a reconciliation detail file according to these rules, registers the reconciliation task detail table, and marks that the task is in the file generation stage. After completion, the current reconciliation status is updated to the pending upload status (the second reconciliation status identifier). The second processing method: The system enters the file upload stage, calls the send file service according to the reconciliation task detail table, and uploads the reconciliation detail file to the file server. After the file is successfully uploaded, the current reconciliation status is updated to the pending notification status (the third reconciliation status identifier). The third processing method: After the file server confirms that the file is received correctly, the system calls the send file notification message service to notify all relevant processing units (such as the financial systems of each branch of the bank) that the reconciliation task detail table has been stored in the file server. Immediately, the current reconciliation status is updated to the reconciliation result waiting stage (the fourth reconciliation status identifier). The fourth processing method: Each processing unit starts to perform reconciliation and feeds back the business transaction reconciliation result of the reconciliation detail table to the system. The system collects and updates the reconciliation task detail table, continuously monitors the reconciliation progress until all processing units complete the reconciliation, and confirms that the overall detailed reconciliation work task has been completed. At this time, the current reconciliation status is updated to the completed status (the fifth reconciliation status identifier).
[0035] Execute one of the following according to the above reconciliation status identifiers: Benefits of a specific usage scenario of the first processing method, the second processing method, the third processing method, and the fourth processing method: The reconciliation work has achieved a high degree of automation. From file generation, upload, notification to result collection, each link is automatically executed by the system's preset rules without manual intervention, greatly improving the reconciliation efficiency. The introduction of the reconciliation status identifier makes the reconciliation progress clear at a glance. Bank management and the audit department can track the reconciliation status in real time, improving the transparency of cross-system reconciliation and facilitating monitoring and management. Each processing method has built-in error handling logic, such as a retry mechanism when the file upload fails, ensuring the robustness of the reconciliation process and reducing reconciliation delays caused by technical failures. The phased execution of the reconciliation process enables the system to optimize resource allocation. For example, network resources are concentratedly used in the file upload stage, reducing resource waste and cost expenditure during reconciliation. The standardization and automation of the reconciliation process help the bank comply with relevant regulatory requirements, such as the audit trail of data consistency, ensuring the compliance of reconciliation records. The system can automatically detect possible anomalies during the reconciliation process, such as data mismatches and format errors, and take corresponding measures for adjustment or notify relevant departments, improving the response speed and processing efficiency for abnormal situations.
[0036] Among them, one of the following is executed according to the above reconciliation status identifier: the first processing method, the second processing method, the third processing method, and the fourth processing method, including: when the above reconciliation status identifier is the first reconciliation status identifier, the above first processing method is executed; when the above reconciliation status identifier is the above second reconciliation status identifier, the above second processing method is executed; when the above reconciliation status identifier is the above third reconciliation status identifier, the above third processing method is executed; when the above reconciliation status identifier is the above fourth reconciliation status identifier, the above fourth processing method is executed.
[0037] The first reconciliation status identifier can be 0, the second reconciliation status identifier can be 1, the third reconciliation status identifier can be 2, the fourth reconciliation status identifier can be 3, and the fifth reconciliation status identifier can be 4.
[0038] Specifically, the introduction of the reconciliation status identifier enables the reconciliation process to flow automatically without manual intervention. From the generation of the initial reconciliation detail file, to file upload, notification confirmation, until the final reconciliation result collection and status update, the entire process is smoothly connected, improving the processing efficiency and reducing human errors. Each reconciliation stage has a clear status identifier, enabling operators and managers to clearly understand the exact stage where the reconciliation task is located, enhancing the transparency of the reconciliation operation and facilitating the monitoring and management of the reconciliation process. During the reconciliation process, if an error or failure occurs at any stage, the system can automatically perform error handling or retry according to the current reconciliation status identifier, such as automatic retry after file upload failure, ensuring the stability and reliability of the reconciliation process. The processing method based on the reconciliation status can intelligently allocate and use resources. For example, during the file upload stage, the system will give priority to using network resources; while during the reconciliation result analysis stage, it may focus more on the optimized utilization of CPU computing resources, ensuring the high efficiency of resource use in different stages.
[0039] Among them, the steps in the above first processing method: generating a corresponding reconciliation detail file according to the above pre-configured rules, including: determining the processing unit usage bitmap according to the above pre-configured rules, where the processing unit usage bitmap represents the mapping relationship between the usage status of the processing unit and the unique identifier of the processing unit; generating the corresponding above reconciliation detail file according to the processing unit usage bitmap.
[0040] A bitmap is an extremely compact data structure, especially suitable for recording and querying the usage status of a large number of processing units. Compared with traditional database queries or text file records, the bitmap has higher efficiency in status recording and status query because its query operations can usually be converted into bit operations, and bit operations are extremely fast on a computer. Each bit can represent the usage status of a processing unit (such as in use or not in use), which means that for thousands of processing units, the bitmap only needs a small amount of storage space to record all status information, greatly saving storage resources and reducing storage costs. When generating the reconciliation detail file, the bitmap provides a method to quickly obtain the usage status and unique identifier of the processing unit, avoiding complex queries on large databases, significantly accelerating the file generation speed, and improving the efficiency of the reconciliation preparation stage. The introduction of the bitmap simplifies the management complexity of the reconciliation process, especially in scenarios involving large-scale data and multiple processing units. Managers can quickly understand which processing units have been allocated and which are still in the idle state through the bitmap, and thus make more efficient scheduling decisions. During the reconciliation process, if a processing unit fails or goes offline, the system can quickly locate the processing unit through the bitmap and take appropriate exception handling measures, such as reallocating tasks or notifying the maintenance team, thereby improving the stability of the system and the completion rate of the reconciliation task.
[0041] Wherein, during the execution of the above fourth processing method, the above method further includes: repeatedly executing the update step until it is determined that the above overall detailed reconciliation work task has been completed.
[0042] Repeatedly executing the update step can ensure the comprehensive collection and accurate analysis of the reconciliation results. Even if the feedback of a certain processing unit is delayed or lost during the reconciliation process, the system can identify and compensate for this omission through the loop update mechanism, so as to ensure that the feedback of all processing units participating in the reconciliation is included and ensure the integrity of the reconciliation data. During the reconciliation result collection stage, any processing unit that fails to return the result as expected will be repeatedly checked and urged by the system. This method helps to timely identify and handle problems such as system failures and network delays, ensuring the robustness and stability of the reconciliation process. By looping and updating the reconciliation status identifier until the reconciliation results of all processing units are collected and analyzed, this helps to improve the accuracy of the reconciliation process. Any omitted or inconsistent reconciliation information can be discovered and corrected during this process, thereby reducing reconciliation errors.
[0043] In addition, after executing the step in the third processing step: invoking the sending file notification message service according to the above reconciliation task detail list, the above method further includes: downloading the above reconciliation detail file from the above file server in the above processing unit; line by line according to the reconciliation messages in the above reconciliation detail file, reconciling with the local database business transactions, and generating a local business transaction reconciliation result according to the reconciliation result; uploading the above local business transaction reconciliation result to the above file server.
[0044] The processing unit directly downloads the reconciliation detail file from the file server, reducing the intermediate links of data transmission and accelerating the data acquisition speed. The processing unit can immediately start the reconciliation operation, greatly improving the overall efficiency of the reconciliation process. Each processing unit independently downloads and processes the reconciliation detail file, which means that the system can process multiple reconciliation tasks in parallel without being affected by a single-point bottleneck. This parallel processing ability enhances the flexibility and response speed of the reconciliation system. By downloading the latest reconciliation detail file from the file server, the processing unit can ensure that the data being reconciled is the latest and consistent version, avoiding inaccurate reconciliations or abnormal situations caused by data version differences. If a problem occurs during the download or reconciliation process of a certain processing unit, the reconciliation work of other processing units is not affected and can continue. The system can be configured with a retry mechanism so that the processing unit with problems can redownload the file from the file server and redo the reconciliation, enhancing the fault tolerance of the system.
[0045] Among them, allocating the reconciliation task to the corresponding processing unit includes: determining the processing unit to be allocated according to the parameters of the above processing unit, and the parameters of the above processing unit include the current number of processing threads of the above processing unit; allocating the above reconciliation task to the above processing unit to be allocated.
[0046] By monitoring the current number of processing threads of the processing unit, the system can determine which processing units have sufficient resources to undertake more reconciliation tasks, thereby realizing the optimal allocation of resources. This means that the system can execute the reconciliation task at the moment when the resources are most abundant, avoiding resource waste and overloading. The dynamic allocation mechanism enables the processing unit to receive new reconciliation tasks when its thread resources are not saturated, ensuring that each processing unit can work in the best state, thereby improving the processing speed of the reconciliation task and the overall processing efficiency of the system.
[0047] Step S103, updating the reconciliation status of the overall detailed reconciliation work according to the above reconciliation result.
[0048] In the above steps, by executing the corresponding pre-set reconciliation tasks based on the above current reconciliation status of the above detailed reconciliation message records, the long reconciliation process is segmented and executed asynchronously, which can greatly shorten the execution time of error retry during the reconciliation process, and can execute some steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solutions, the execution process will not be relatively repetitive, thus solving the problem of the detailed reconciliation method in the existing solutions, which directly performs detailed reconciliation, making the detailed reconciliation process start from scratch, resulting in a relatively repetitive execution process and thus a low efficiency of detailed reconciliation.
[0049] The method of splitting the reconciliation detailed file according to the business transaction element sub-library rule in this application can greatly compress the number of business transaction details processed by a single database, shorten the reconciliation time, and the sub-library rule can be flexibly configured according to the change of data distribution, which can fully adapt to the change of horizontal expansion of business online applications. This application proposes a method for the reconciliation master to asynchronously execute the pre-configured reconciliation according to the change of the reconciliation status, segment and asynchronously execute the long reconciliation process, which can greatly shorten the execution time of error retry during the reconciliation process, and can execute some steps separately according to the actual situation, improving the flexibility of reconciliation. This application proposes a method for the reconciliation master to dynamically generate the reconciliation task details according to the database usage bitmap configuration, which can dynamically generate concurrent tasks according to the current actual database usage status and adapt to business scenarios such as system disaster recovery switchover and single-center operation. That is to say, this application completes the verification of a large number of business detail data by using pre-customized configuration, developing different status processing tasks, segmenting the long reconciliation process, sharding a large number of reconciliation files, and combining parallel calls. At the same time, this application does not independently use big data-related processing technologies, which reduces the technical difficulties of development and operation and maintenance.
[0050] In order to enable those skilled in the art to more clearly understand the technical solution of this application, the implementation process of the real-time detailed reconciliation method of this application will be described in detail below in combination with specific embodiments.
[0051] This embodiment relates to a specific real-time detailed reconciliation method, including:
[0052] The source system sends a business detail application message to the target system;
[0053] The target system receives the request from the source system and sends a business transaction detail message to the source system;
[0054] The source system receives the business transaction detail message and registers it in the database and also registers the detailed reconciliation message table;
[0055] The reconciliation master message processing program receives the detailed reconciliation message and starts to execute the reconciliation program according to the pre-configured tasks;
[0056] The reconciliation master program receives the detailed reconciliation results of each database. After all the results are received, it summarizes and generates the reconciliation result, and updates the reconciliation status in the detailed reconciliation message table.
[0057] The reconciliation master message processing program determines whether to reapply or restart the reconciliation based on the reconciliation status in the detailed reconciliation message table.
[0058] The following elaborates in detail from two aspects: the processing process corresponding to the change of the reconciliation status in the detailed reconciliation message table and the reconciliation master executing the reconciliation task.
[0059] Explanation of the processing corresponding to the change of the reconciliation status in the detailed reconciliation message table, as Figure 2 shown:
[0060] The source system initiates a detailed reconciliation application and receives the application synchronization response; the target system receives the detailed reconciliation application and responds to the source system synchronization response; the target system issues a detailed reconciliation message; the source system receives the detailed reconciliation message, registers the transaction details in the database, and simultaneously registers the detailed reconciliation message record, with the reconciliation status being: 0 not reconciled; the reconciliation master message processing program loops to read the detailed reconciliation messages and executes the pre-set reconciliation tasks according to the reconciliation status; for the specific reconciliation execution tasks, refer to the specific description part of the reconciliation master executing the reconciliation task below; the reconciliation master program determines the reconciliation result and updates the reconciliation status according to different results. If the reconciliation status is 9, the reconciliation is completed; if the reconciliation status is E, the reconciliation fails (this status can be updated by the administrator to restart different reconciliation tasks).
[0061] Specific description of the reconciliation master executing the reconciliation task, as Figure 3 shown:
[0062] The reconciliation master executes the pre-configured corresponding tasks according to different reconciliation statuses:
[0063] When the reconciliation status is 0, the reconciliation task generates the corresponding sub-database transaction detail file according to the pre-configured sub-database rules and the sub-database usage bitmap (this configuration can be modified after adding or reducing databases), and registers it in the reconciliation task detail table. After all are generated, the reconciliation status is updated to 1.
[0064] When the reconciliation status is 1, the reconciliation task concurrently calls the file sending service according to the records in the reconciliation task detail table. After all the files are successfully sent by the file sending service, the reconciliation status is updated to 2.
[0065] When the reconciliation status is 2, the reconciliation task concurrently calls the file sending notification message service according to the records in the reconciliation task detail table. After all are successfully sent, the reconciliation status is updated to 3.
[0066] When the reconciliation status is 3, the reconciliation task receives the notification message of the detailed reconciliation results of each sub-database, and asynchronously calls the reconciliation task to complete the file acquisition and update the business flow reconciliation results of the main database reconciliation detail table one by one according to the content of the result file. After the reconciliation is completed, the reconciliation task detail table is updated, and it is checked whether all the reconciliation tasks of this reconciliation are completed. If all are completed, the reconciliation status is updated to 4, otherwise continue to step 4.
[0067] When the reconciliation status is 4, the reconciliation task updates the reconciliation status of the overall reconciliation work according to the reconciliation results of the business flow details of the master control database. If the reconciliation is successful, it is updated to 9, and if the reconciliation fails, it is updated to E.
[0068] Reconciliation The reconciliation service of each database sub-library performs the pre-configured corresponding tasks according to the reconciliation status of the local database: each database sub-library service receives the reconciliation file notification message sent by the reconciliation master reconciliation task and registers the local message table. Each database sub-library reconciliation message receiving service cyclically reads the local message table. According to the file notification message, it obtains the reconciliation detail file sent by the master. After successful acquisition, the message status is updated to completed. Otherwise, the processing continues (according to the configured number of executions). Each database sub-library reconciliation message receiving service cyclically reads the local message table. According to the file notification message, it obtains the reconciliation detail file sent by the master. After successful acquisition, the message status is updated to completed. Otherwise, the processing continues (according to the configured number of executions). Each database sub-library reconciliation task blends the reconciliation detail record with the local database business flow line by line according to the reconciliation message, and reconciles the local business flow according to the blending result. After all the business flow details of each database sub-library reconciliation task are blended, the database reconciliation result file is generated and sent to the file server. After successful sending, the local file notification message table is updated. Each database sub-library reconciliation task calls the reconciliation master reconciliation file notification receiving program to send a file notification message based on the local file notification message table, and updates the local file notification message table.
[0069] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0070] The embodiment of the present application also provides a real-time detailed reconciliation device. It should be noted that the real-time detailed reconciliation device of the embodiment of the present application can be used to execute the real-time detailed reconciliation method provided by the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0071] The following introduces the real-time detailed reconciliation device provided by the embodiments of the present application.
[0072] Figure 4 It is a structural block diagram of a real-time detailed reconciliation device provided according to an embodiment of the present application. As Figure 4 shown, the device includes:
[0073] A sending unit 41, configured to send a detailed reconciliation application to a target system, receive a detailed reconciliation message of an application synchronization response, determine a detailed reconciliation message record based on the above-mentioned detailed reconciliation message, and determine the current reconciliation status, where the current reconciliation status represents a unique identifier of a pre-set reconciliation task corresponding to the above-mentioned detailed reconciliation message record;
[0074] A first reconciliation unit 42, configured to execute the corresponding pre-set reconciliation task based on the current reconciliation status of the above-mentioned detailed reconciliation message record, so as to allocate the reconciliation task to a corresponding processing unit, and perform a reconciliation process in the above-mentioned processing unit according to the above-mentioned reconciliation task to obtain a reconciliation result, where the processing unit is a unit in the real-time detailed reconciliation total system for obtaining the above-mentioned reconciliation result, and the source system is a system in the real-time detailed reconciliation total system for interacting and responding with the above-mentioned target system;
[0075] A second reconciliation unit 43, configured to update the reconciliation status of the overall detailed reconciliation work according to the above-mentioned reconciliation result.
[0076] In the above device, by executing the corresponding pre-set reconciliation task based on the current reconciliation status of the above-mentioned detailed reconciliation message record, the long reconciliation process is segmented and executed asynchronously, which can greatly shorten the execution time of error retry in the reconciliation process, and can execute some steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solution, it will not cause the execution process to be relatively repetitive, thus solving the problem of the detailed reconciliation method in the existing solution, which directly performs detailed reconciliation, resulting in the need to start the detailed reconciliation process from the beginning, causing the execution process to be relatively repetitive, and thus the detailed reconciliation efficiency is low.
[0077] In an embodiment of the present application, the first reconciliation unit includes a determination module and a first processing module. The determination module is used to determine the reconciliation status identifier of the current reconciliation status. The first processing module is used to perform one of the following: a first processing method, a second processing method, a third processing method, and a fourth processing method. Among them, the first processing method includes: determining the corresponding pre-configured rule according to the current reconciliation status, generating the corresponding reconciliation detail file according to the pre-configured rule, and registering the reconciliation task detail table, and updating the current reconciliation status to the second reconciliation status identifier after all are generated. The second processing method includes: calling the send file service according to the reconciliation task detail table to upload the reconciliation detail file to the file server, and updating the current reconciliation status to the third reconciliation status identifier after all the send file services successfully send the files. The third processing method includes: first calling the send file notification message service according to the reconciliation task detail table, and then updating the current reconciliation status to the fourth reconciliation status identifier to notify the processing unit that the reconciliation task detail table has been stored in the file server. The fourth processing method includes an update step: receiving the reconciliation result of the business flow of the reconciliation detail tables of each processing unit, updating the reconciliation task detail table, and determining whether the overall detailed reconciliation work task has been completed. If it is determined that the overall detailed reconciliation work task has been completed, the current reconciliation status is updated to the fifth reconciliation status identifier.
[0078] Through predefined reconciliation status identifiers and corresponding processing methods, the system can automatically identify the current reconciliation steps and execute the corresponding processing processes according to these identifiers. This avoids manual operations, reduces human errors, and significantly improves the execution efficiency of the reconciliation process. Each reconciliation status identifier corresponds to a specific processing method, which means that the system can perform fine-grained control over each link of the reconciliation process to ensure that the tasks at each stage are correctly processed, enhancing the controllability and accuracy of the reconciliation process. The introduction of reconciliation status identifiers makes it easy to track the status of the reconciliation process. Managers and operators can clearly see which stage the reconciliation task is currently in, which helps to quickly locate and solve problems, and also improves the transparency of the reconciliation process. Each processing method is targeted at a specific reconciliation status, which enables the system to adopt corresponding error handling strategies according to the current reconciliation status identifier when encountering reconciliation errors or exceptions, such as regenerating the reconciliation detail file, resending the file, or notifying the operator to intervene, improving the robustness and exception handling ability of the system. By dividing the reconciliation process into multiple stages and specifying different processing methods for each stage, the system can more reasonably allocate resources and schedule tasks. For example, network resources are preferentially used in the file upload stage, while computational resources may be focused on optimization in the reconciliation result processing stage.
[0079] In an embodiment of the present application, the first processing module includes a first processing sub-module, a second processing sub-module, a third processing sub-module, and a fourth processing sub-module. The first processing sub-module is configured to execute the above-mentioned first processing method when the above-mentioned reconciliation status identifier is the first reconciliation status identifier; the second processing sub-module is configured to execute the above-mentioned second processing method when the above-mentioned reconciliation status identifier is the above-mentioned second reconciliation status identifier; the third processing sub-module is configured to execute the above-mentioned third processing method when the above-mentioned reconciliation status identifier is the above-mentioned third reconciliation status identifier; the fourth processing sub-module is configured to execute the above-mentioned fourth processing method when the above-mentioned reconciliation status identifier is the above-mentioned fourth reconciliation status identifier.
[0080] The introduction of the reconciliation status identifier enables the reconciliation process to flow automatically without manual intervention. From the generation of the initial reconciliation detail file, to file upload, notification confirmation, until the final collection of reconciliation results and status update, the entire process is smoothly connected, improving processing efficiency and reducing human errors. Each reconciliation stage has a clear status identifier, enabling operators and managers to clearly understand the exact stage of the reconciliation task, enhancing the transparency of the reconciliation operation and facilitating the monitoring and management of the reconciliation process. During the reconciliation process, if an error or failure occurs at any stage, the system can automatically perform error handling or retry according to the current reconciliation status identifier, such as automatic retry after file upload failure, ensuring the stability and reliability of the reconciliation process. The processing method based on the reconciliation status can intelligently allocate and use resources. For example, during the file upload stage, the system will give priority to using network resources; while during the reconciliation result analysis stage, it may focus more on the optimized utilization of CPU computing resources, ensuring the high efficiency of resource use in different stages.
[0081] In an embodiment of the present application, the first processing module includes a fifth processing sub-module and a sixth processing sub-module. The fifth processing sub-module is configured to determine the processing unit usage bitmap according to the above-mentioned pre-configured rules, and the processing unit usage bitmap represents the mapping relationship between the usage status of the processing unit and the unique identifier of the processing unit; the sixth processing sub-module is configured to generate the corresponding above-mentioned reconciliation detail file according to the above-mentioned processing unit usage bitmap.
[0082] A bitmap is an extremely compact data structure, especially suitable for recording and querying the usage status of a large number of processing units. Compared with traditional database queries or text file records, the bitmap has higher efficiency in status recording and status querying because its query operations can usually be converted into bit operations, and bit operations are extremely fast on a computer. Each bit can represent the usage status of a processing unit (such as in use or not in use), which means that for thousands of processing units, the bitmap only requires a small amount of storage space to record all the status information, greatly saving storage resources and reducing storage costs. When generating the reconciliation detail file, the bitmap provides a method to quickly obtain the usage status and unique identifier of the processing unit, avoiding complex queries on large databases, significantly accelerating the file generation speed, and improving the efficiency of the reconciliation preparation stage. The introduction of the bitmap simplifies the management complexity of the reconciliation process, especially in scenarios involving large-scale data and multiple processing units. Managers can quickly understand which processing units have been allocated and which are still in the idle state through the bitmap, thus making more efficient scheduling decisions. During the reconciliation process, if a processing unit fails or goes offline, the system can quickly locate the processing unit through the bitmap and take appropriate exception handling measures, such as reallocating tasks or notifying the maintenance team, thereby improving the stability of the system and the completion rate of the reconciliation task.
[0083] In an embodiment of the present application, the first processing module includes a seventh processing sub-module, which is used to repeatedly execute the update step during the execution of the above fourth processing method until it is determined that the above overall detailed reconciliation work task has been completed.
[0084] Repeatedly executing the update step can ensure the comprehensive collection and accurate analysis of the reconciliation results. Even if the feedback of a certain processing unit is delayed or lost during the reconciliation process, the system can identify and compensate for this omission through the loop update mechanism, thereby ensuring that the feedback of all processing units participating in the reconciliation is included and ensuring the integrity of the reconciliation data. During the reconciliation result collection stage, any processing unit that fails to return the result as expected will be repeatedly checked and urged by the system. This method helps to promptly identify and handle problems such as system failures and network delays, ensuring the robustness and stability of the reconciliation process. By looping and updating the reconciliation status identifier until the reconciliation results of all processing units are collected and analyzed, this helps to improve the accuracy of the reconciliation process. Any omitted or inconsistent reconciliation information can be discovered and corrected during this process, thereby reducing reconciliation errors.
[0085] In an embodiment of the present application, the first processing module includes an eighth processing sub-module, a ninth processing sub-module, and a tenth processing sub-module. The eighth processing sub-module is configured to download the reconciliation detail file from the file server in the processing unit after completing the step in the third processing step: invoking the sending file notification message service according to the above-mentioned reconciliation task list. The ninth processing sub-module is configured to reconcile the reconciliation messages of the above-mentioned reconciliation detail file line by line with the local database business transactions, and generate a local business transaction reconciliation result according to the reconciliation result. The tenth processing sub-module is configured to upload the above-mentioned local business transaction reconciliation result to the above-mentioned file server.
[0086] The processing unit directly downloads the reconciliation detail file from the file server, reducing the intermediate links of data transmission and accelerating the data acquisition speed. The processing unit can immediately start the reconciliation operation, greatly improving the overall efficiency of the reconciliation process. Each processing unit independently downloads and processes the reconciliation detail file, which means that the system can process multiple reconciliation tasks in parallel without being affected by a single-point bottleneck. This parallel processing ability enhances the flexibility and response speed of the reconciliation system. By downloading the latest reconciliation detail file from the file server, the processing unit can ensure that the data being reconciled is the latest and consistent version, avoiding inaccuracies or anomalies in reconciliation caused by data version differences. If a problem occurs during the download or reconciliation process of a certain processing unit, the reconciliation work of other processing units is not affected and can continue. The system can be configured with a retry mechanism so that the processing unit with problems can re-download the file from the file server and re-perform the reconciliation, enhancing the fault tolerance of the system.
[0087] In an embodiment of the present application, allocating the reconciliation task to the corresponding processing unit includes: determining the processing unit to be allocated according to the parameters of the above-mentioned processing unit, where the parameters of the above-mentioned processing unit include the current number of processing threads of the above-mentioned processing unit; and allocating the above-mentioned reconciliation task to the above-mentioned processing unit to be allocated.
[0088] By monitoring the current number of processing threads of the processing unit, the system can determine which processing units have sufficient resources to undertake more reconciliation tasks, thereby achieving optimal allocation of resources. This means that the system can execute the reconciliation task at the moment when the resources are most abundant, avoiding resource waste and overloading. The dynamic allocation mechanism enables the processing unit to receive new reconciliation tasks when its thread resources are not saturated, ensuring that each processing unit can work in the best state, thereby improving the processing speed of the reconciliation task and the overall processing efficiency of the system.
[0089] The above real-time detailed reconciliation device includes a processor and a memory. The above sending unit, first reconciliation unit, second reconciliation unit, etc. are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program units stored in the memory. The above modules are all located in the same processor; or, the above modules are respectively located in different processors in any combination form.
[0090] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set. By adjusting the kernel parameters, the detailed reconciliation method of the existing solution can be solved. However, only direct detailed reconciliation is performed, so that the process of detailed reconciliation has to start from scratch, resulting in a relatively repetitive execution process, and thus the problem of low efficiency of detailed reconciliation.
[0091] The memory may include non-permanent memory in a computer-readable medium, forms such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.
[0092] The embodiment of the present invention provides a computer-readable storage medium. The above computer-readable storage medium includes a stored program. Among them, when the above program runs, it controls the device where the above computer-readable storage medium is located to execute the above real-time detailed reconciliation method.
[0093] The embodiment of the present invention provides a device. The device includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, it realizes at least the following steps: sending a detailed reconciliation application to the target system and receiving the detailed reconciliation message of the application synchronization response, and determining the detailed reconciliation message record based on the above detailed reconciliation message, and determining the current reconciliation status, where the above current reconciliation status is the status characterized by the unique identifier of the pre-set reconciliation task corresponding to the above detailed reconciliation message record; executing the corresponding above pre-set reconciliation task based on the above current reconciliation status of the above detailed reconciliation message record to allocate the reconciliation task to the corresponding processing unit, and performing reconciliation processing according to the above reconciliation task in the above processing unit to obtain a reconciliation result. The above processing unit is the unit used for reconciliation processing in the real-time detailed reconciliation total system, and the source system is the system used for interacting and responding with the above target system in the above real-time detailed reconciliation total system; updating the reconciliation status of the overall detailed reconciliation work according to the above reconciliation result. The device in this article can be a server, PC, PAD, mobile phone, etc.
[0094] The present application also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with at least the steps of the allocation method: sending a detailed reconciliation application to a target system and receiving a detailed reconciliation message for the application synchronization response, determining a detailed reconciliation message record based on the above-mentioned detailed reconciliation message, and determining the current reconciliation status, where the above-mentioned current reconciliation status is the status characterized by the unique identifier of a pre-set reconciliation task corresponding to the above-mentioned detailed reconciliation message record; executing the corresponding above-mentioned pre-set reconciliation task based on the above-mentioned current reconciliation status of the above-mentioned detailed reconciliation message record to allocate the reconciliation task to a corresponding processing unit, and performing a reconciliation process according to the above-mentioned reconciliation task in the above-mentioned processing unit to obtain a reconciliation result, where the above-mentioned processing unit is a unit in the real-time detailed reconciliation general system for performing a reconciliation process, and the source system is a system in the above-mentioned real-time detailed reconciliation general system for interacting and responding with the above-mentioned target system; updating the reconciliation status of the overall detailed reconciliation work according to the above-mentioned reconciliation result.
[0095] The present application also provides a real-time detailed reconciliation system, which includes: one or more processors, a memory, and one or more programs, where the above-mentioned one or more programs are stored in the above-mentioned memory and are configured to be executed by the above-mentioned one or more processors, and the above-mentioned one or more programs include those for executing any one of the above-mentioned methods. By executing the corresponding above-mentioned pre-set reconciliation task based on the above-mentioned current reconciliation status of the above-mentioned detailed reconciliation message record, the long reconciliation process is segmented and executed asynchronously, which can greatly shorten the execution time of retrying in case of errors in the reconciliation process, and can execute certain steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solutions, it will not cause the execution process to be relatively repetitive, thus solving the problem that the existing detailed reconciliation method only directly performs detailed reconciliation, making the detailed reconciliation process start from scratch, resulting in a relatively repetitive execution process and thus a lower detailed reconciliation efficiency.
[0096] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device, so that they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described herein can be executed in a different order, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. Thus, the present invention is not limited to any specific combination of hardware and software.
[0097] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0098] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0099] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, thereby providing steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0101] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0102] The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
[0103] A computer-readable medium includes permanent and non-permanent, removable and non-removable media and can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, disk storage or other magnetic storage devices, or any other non-transitory media that can be used to store information accessible by a computing device. As defined herein, computer-readable media do not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0104] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0105] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0106] 1) The real-time detailed reconciliation method of the present application executes the corresponding pre-set reconciliation tasks based on the current reconciliation status of the above-mentioned detailed reconciliation message records, thereby segmenting and asynchronously executing the long reconciliation process, which can greatly shorten the execution time of error retry during the reconciliation process, and can execute certain steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solutions, it will not cause the execution process to be more repetitive. Furthermore, it solves the problem that the detailed reconciliation method of the existing solution only directly performs detailed reconciliation, making the detailed reconciliation process start from scratch, resulting in a more repetitive execution process and thus a lower detailed reconciliation efficiency.
[0107] 2) The real-time detailed reconciliation device of the present application executes the corresponding pre-set reconciliation tasks based on the above current reconciliation status recorded in the above detailed reconciliation message record, thereby segmenting and asynchronously executing the long reconciliation process, which can greatly shorten the execution time of error retry during the reconciliation process, and can execute certain steps separately according to the actual situation, improving the flexibility of reconciliation. Compared with the existing solutions, it will not cause the execution process to be relatively repetitive. Furthermore, it solves the problem of the detailed reconciliation method of the existing solutions, which only directly performs detailed reconciliation, making the detailed reconciliation process start from scratch, resulting in a relatively repetitive execution process, and thus the efficiency of detailed reconciliation is low.
[0108] The foregoing are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A real-time detailed reconciliation method, characterized in that, Including: Sending a detailed reconciliation application to the target system and receiving a detailed reconciliation message of the application synchronization response, determining a detailed reconciliation message record based on the detailed reconciliation message, and determining the current reconciliation status, where the current reconciliation status is the status characterized by the unique identifier of the pre-set reconciliation task corresponding to the detailed reconciliation message record; Executing the corresponding pre-set reconciliation task based on the current reconciliation status of the detailed reconciliation message record to allocate the reconciliation task to the corresponding processing unit, and performing a reconciliation process according to the reconciliation task in the processing unit to obtain a reconciliation result, where the processing unit is the unit in the real-time detailed reconciliation general system for performing the reconciliation process, and the source system is the system in the real-time detailed reconciliation general system for interacting and responding with the target system; Updating the reconciliation status of the overall detailed reconciliation work according to the reconciliation result.
2. The method according to claim 1, wherein Executing the corresponding pre-set reconciliation task based on the current reconciliation status of the detailed reconciliation message record includes: Determining the reconciliation status identifier of the current reconciliation status; Executing one of the following: the first processing method, the second processing method, the third processing method, and the fourth processing method according to the reconciliation status identifier, where the first processing method includes: determining the corresponding pre-configured rule according to the current reconciliation status, generating the corresponding reconciliation detailed file according to the pre-configured rule and registering the reconciliation task detailed list, and updating the current reconciliation status to the second reconciliation status identifier after all are generated; The second processing method includes: calling the send file service according to the reconciliation task detailed list to upload the reconciliation detailed file to the file server, and updating the current reconciliation status to the third reconciliation status identifier after all the send file services send the files successfully; The third processing method includes: first calling the send file notification message service according to the reconciliation task detailed list, and then updating the current reconciliation status to the fourth reconciliation status identifier to notify the processing unit that the reconciliation task detailed list has been stored in the file server; The fourth processing method includes an update step: receiving the reconciliation result of the business flow of the reconciliation detailed list of each processing unit, updating the reconciliation task detailed list, and determining whether the overall detailed reconciliation work task has been completed. If it is determined that the overall detailed reconciliation work task has been completed, updating the current reconciliation status to the fifth reconciliation status identifier.
3. The method according to claim 2, wherein Executing one of the following: the first processing method, the second processing method, the third processing method, and the fourth processing method according to the reconciliation status identifier includes: Executing the first processing method when the reconciliation status identifier is the first reconciliation status identifier; Executing the second processing method when the reconciliation status identifier is the second reconciliation status identifier; Executing the third processing method when the reconciliation status identifier is the third reconciliation status identifier; Executing the fourth processing method when the reconciliation status identifier is the fourth reconciliation status identifier.
4. The method according to claim 2, wherein Steps in the first processing method: generating a corresponding reconciliation detail file according to the pre-configured rules, including: Determining a processing unit usage bitmap according to the pre-configured rules, where the processing unit usage bitmap represents the mapping relationship between the usage status of the processing unit and the unique identifier of the processing unit; Generating the corresponding reconciliation detail file according to the processing unit usage bitmap.
5. The method according to claim 2, wherein During the execution of the fourth processing method, the method further includes: Repeatedly executing the update step until it is determined that the overall detailed reconciliation task has been completed.
6. The method according to claim 2, characterized in that After executing the step in the third processing step: calling the send file notification message service according to the reconciliation task detail table, the method further includes: Downloading the reconciliation detail file from the file server in the processing unit; Line by line, matching the reconciliation messages in the reconciliation detail file with the local database business transactions according to the reconciliation detail records, and generating a local business transaction reconciliation result according to the matching result; Uploading the local business transaction reconciliation result to the file server.
7. The method according to any one of claims 1 to 6, characterized in that Allocating a reconciliation task to a corresponding processing unit, including: Determining a processing unit to be allocated according to the parameters of the processing unit, where the parameters of the processing unit include the current number of processing threads of the processing unit; Allocating the reconciliation task to the processing unit to be allocated.
8. A real-time detailed reconciliation device, characterized in that, Including: A sending unit, configured to send a detailed reconciliation application to a target system and receive a detailed reconciliation message of an application synchronization response, and determine a detailed reconciliation message record based on the detailed reconciliation message, and determine the current reconciliation status, where the current reconciliation status represents the unique identifier of a pre-set reconciliation task corresponding to the detailed reconciliation message record; A first reconciliation unit, configured to execute the corresponding pre-set reconciliation task based on the current reconciliation status of the detailed reconciliation message record, so as to allocate the reconciliation task to a corresponding processing unit, and perform reconciliation processing according to the reconciliation task in the processing unit to obtain a reconciliation result, where the processing unit is a unit in the real-time detailed reconciliation total system for obtaining the reconciliation result, and the source system is a system in the real-time detailed reconciliation total system for interacting and responding with the target system; A second reconciliation unit, configured to update the reconciliation status of the overall detailed reconciliation work according to the reconciliation result.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, where, when the program runs, it controls the device where the computer-readable storage medium is located to execute the method according to any one of claims 1 to 7.
10. A real-time detailed reconciliation system, characterized in that, Including: One or more processors, a memory, and one or more programs, where the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing the method according to any one of claims 1 to 7.