Transaction data processing method, device and accounting server

Through the distributed deployment of transaction data processing method, combined with fixed and real-time transaction data, the business interruption caused by online transactions between transaction servers and accounting servers in batch processing of banking services is solved, and the continuity and user experience of the business server are improved.

CN115760408BActive Publication Date: 2024-11-26CLP JINXIN SOFTWARE (SHANGHAI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211469470.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2024-11-26
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

During batch processing of banking business, online transactions between the transaction server and the accounting server cause account balance to be updated, resulting in the business being unable to proceed continuously, affecting the user experience.

Method used

Using distributed deployment transaction data processing method, by receiving transaction accounting requests from the business server, determine the fixed transaction date, balance and direction based on historical accounted transaction records and transaction records to be recorded, perform accounting operations, and obtain the latest 交易余额和方向,结合实时交易数据,提供日终交易数据,确保业务服务器的连续性。

Benefits of technology

It realizes that the business server does not need to stop online transactions when executing batch services, ensuring continuous operation of 7 by 24 hours, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115760408B_ABST
    Figure CN115760408B_ABST
Patent Text Reader

Abstract

The present application provides a transaction data processing method, device and accounting server, which relates to the field of computer technology. The method includes: receiving a transaction record to be recorded sent by a business server; determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction according to historical recorded transaction records and the date of the transaction to be recorded; determining fixed transaction data according to the fixed transaction balance and the direction of the fixed transaction balance; performing a recording operation on the transaction request to be recorded according to the last recorded transaction record in the historical recorded transaction records, and obtaining the latest recorded transaction record, the latest recorded transaction record includes: the date of the transaction to be recorded, the new transaction balance and the direction of the new transaction balance; determining real-time transaction data according to the new transaction balance and the direction of the new transaction balance. The present application can adopt a method in which fixed data and real-time data coexist to ensure the continuity of business handling by the business server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a transaction data processing method, device and accounting server. Background Art

[0002] With the continuous development and growth of banking business, when the transaction server performs batch processing of business at night, the processing of some batch businesses needs to rely on the end-of-day balance of the account, so the end-of-day balance needs to remain static. However, during the batch processing of business, the online transaction between the transaction server and the accounting server needs to update the account balance, which causes the bank to stop online transactions during the batch processing of business, resulting in the inability to handle business, and the inability to guarantee business continuity, which reduces the user experience. Summary of the invention

[0003] The purpose of the present invention is to provide a transaction data processing method, device and accounting server to address the deficiencies in the above-mentioned prior art, so as to ensure the continuity of business processing of the business server by adopting a coexistence of fixed data and real-time data.

[0004] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0005] In a first aspect, an embodiment of the present application provides a transaction data processing method, which is applied to a calculation server, wherein the calculation server and the business server are distributedly deployed to perform calculation and transaction respectively, and the method includes:

[0006] Receiving a transaction accounting request sent by a business server, wherein the transaction accounting request includes: a transaction record to be accounted for;

[0007] Determine the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records;

[0008] Determining fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, wherein the fixed transaction data remains unchanged during the transaction date to be recorded;

[0009] According to the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the transaction request to be recorded to obtain the latest recorded transaction record;

[0010] The real-time transaction data is determined according to the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server.

[0011] Optionally, determining the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records includes:

[0012] Acquire the last recorded transaction record from the historical recorded transaction records;

[0013] According to the recorded transaction date in the last recorded transaction record and the pending transaction date, determining whether the pending transaction record is a transaction record generated after a transaction date cut, wherein the transaction date cut refers to a transaction date switch performed by the business server;

[0014] If the to-be-billed transaction record is a transaction record generated after the transaction date, the to-be-billed transaction date, the accounted transaction balance in the last accounted transaction record, and the direction of the accounted transaction balance in the last accounted transaction record are determined to be the fixed transaction date, the fixed transaction balance, and the fixed transaction balance direction, respectively.

[0015] Optionally, judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes:

[0016] If the accounted transaction date is less than the to-be-accounted transaction date, the to-be-accounted transaction record is determined to be a transaction record generated after the transaction date.

[0017] Optionally, judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes:

[0018] If the accounted transaction date is equal to the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date;

[0019] The method of determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction based on the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records further includes:

[0020] According to the cut-off date of the most recent transaction, obtain the last accounted transaction record before the cut-off date;

[0021] Determine that the accounted transaction balance and the direction of the accounted transaction balance in the last accounted transaction record before the day cut date are the fixed transaction balance and the fixed transaction balance direction respectively, and the fixed transaction date is the date of the most recent transaction day cut.

[0022] Optionally, judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes:

[0023] If the accounted transaction date is greater than the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date;

[0024] The method of determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction based on the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records further includes:

[0025] According to the cut-off date of the most recent transaction, obtain the last accounted transaction record before the cut-off date;

[0026] The fixed transaction balance and the fixed transaction balance direction are determined according to the last accounted transaction record before the day-cut date and the to-be-accounted transaction record, and the fixed transaction date is the date of the most recent transaction day-cut.

[0027] Optionally, the method further includes:

[0028] Determining the end-of-day transaction data from the real-time transaction data and the fixed transaction data according to a preset end-of-day data selection rule;

[0029] The end-of-day transaction data is sent to the business server so that the business server executes business transactions based on the end-of-day transaction data.

[0030] Optionally, determining the end-of-day transaction data from the real-time transaction data and the fixed transaction data according to a preset end-of-day data selection rule includes:

[0031] If the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date, determining that the fixed transaction data is the end-of-day transaction data;

[0032] If the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date, the real-time transaction data is determined to be the end-of-day transaction data.

[0033] Optionally, after receiving the transaction accounting request sent by the business server, the method further includes:

[0034] According to the transaction type to which the to-be-billed transaction record belongs, determining that the accounting sub-account for accounting the to-be-billed transaction record is a transaction sub-account, wherein different accounting sub-accounts correspond to different transaction types;

[0035] The step of performing a bookkeeping operation on the to-be-booked transaction request according to the last bookkeeping transaction record in the historical bookkeeping transaction records to obtain the latest bookkeeping transaction record includes:

[0036] According to the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the to-be-recorded transaction request in the transaction sub-account to obtain the latest recorded transaction record.

[0037] In a second aspect, an embodiment of the present application further provides a transaction data processing device, which is applied to a calculation server, wherein the calculation server and the business server are distributedly deployed to perform calculations and transactions respectively, and the device includes:

[0038] The accounting request receiving module is used to receive a transaction accounting request sent by the business server, wherein the transaction accounting request includes: a transaction record to be accounted;

[0039] A transaction data acquisition module, used to determine a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records;

[0040] A fixed data determination module, configured to determine fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, wherein the fixed transaction data remains unchanged within the transaction date to be recorded;

[0041] An accounting operation execution module, configured to execute an accounting operation on the to-be-accounted transaction request according to the last accounted transaction record in the historical accounted transaction records, so as to obtain the latest accounted transaction record;

[0042] A real-time data determination module is used to determine the real-time transaction data according to the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server.

[0043] Optionally, the transaction data acquisition module includes:

[0044] A first transaction record acquisition unit, configured to acquire the last recorded transaction record from the historical recorded transaction records;

[0045] a transaction date determination unit, configured to determine whether the to-be-accounted transaction record is a transaction record generated after a transaction date cut according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date, wherein the transaction date cut refers to the switching of the transaction date by the business server;

[0046] The first transaction data determining unit is configured to determine, if the to-be-billed transaction record is a transaction record generated after the transaction date, that the to-be-billed transaction date, the accounted transaction balance in the last accounted transaction record, and the direction of the accounted transaction balance in the last accounted transaction record are the fixed transaction date, the fixed transaction balance, and the fixed transaction balance direction, respectively.

[0047] Optionally, the transaction date determination unit is specifically configured to determine that the transaction record to be recorded is a transaction record generated after the transaction date if the recorded transaction date is less than the to-be-recorded transaction date.

[0048] Optionally, the transaction date determination unit is further configured to determine that the transaction record to be recorded is not a transaction record generated after the transaction date if the recorded transaction date is equal to the transaction date to be recorded;

[0049] The transaction data acquisition module further includes:

[0050] A second transaction record acquisition unit, configured to acquire, according to the date of the most recent transaction date, the last accounted transaction record before the date of ...

[0051] The second transaction data determination unit is used to determine that the accounted transaction balance and the direction of the accounted transaction balance in the last accounted transaction record before the day cut date are the fixed transaction balance and the fixed transaction balance direction respectively, and the fixed transaction date is the date of the most recent transaction day cut.

[0052] Optionally, the transaction data acquisition module is further configured to determine that the transaction record to be recorded is not a transaction record generated after the transaction date if the recorded transaction date is greater than the transaction date to be recorded;

[0053] The transaction data acquisition module further includes:

[0054] A third transaction record acquisition unit is used to acquire the last accounted transaction record before the date of the latest transaction date according to the date of the latest transaction date;

[0055] The third transaction data determination unit is used to determine the fixed transaction balance and the fixed transaction balance direction according to the last accounted transaction record before the day cut date and the to-be-accounted transaction record, wherein the fixed transaction date is the date of the most recent transaction day cut.

[0056] Optionally, the device further comprises:

[0057] A day-end data selection module, used to determine the day-end transaction data from the real-time transaction data and the fixed transaction data according to a preset day-end data selection rule;

[0058] The end-of-day data sending module is used to send the end-of-day transaction data to the business server, so that the business server executes business transactions based on the end-of-day transaction data.

[0059] Optionally, the end-of-day data selection module is specifically used to determine that the fixed transaction data is the end-of-day transaction data if the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date; or, to determine that the real-time transaction data is the end-of-day transaction data if the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date.

[0060] Optionally, the device further comprises:

[0061] An accounting sub-account determination module, used to determine, according to the transaction type to which the transaction record to be accounted belongs, that the accounting sub-account for accounting the transaction record to be accounted is a transaction sub-account, wherein different transaction types correspond to different accounting sub-accounts;

[0062] The accounting operation execution module is specifically used to execute the accounting operation on the to-be-accounted transaction request in the transaction sub-account according to the last accounted transaction record in the historical accounted transaction records, so as to obtain the latest accounted transaction record.

[0063] In the third aspect, an embodiment of the present application also provides an accounting server, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the accounting server is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the transaction data processing method as described in any one of the first aspects.

[0064] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the transaction data processing method as described in any one of the first aspects are executed.

[0065] The beneficial effects of this application are:

[0066] The present application provides a transaction data processing method, device and accounting server, which determines the fixed transaction date, fixed transaction balance and fixed transaction balance direction according to the transaction date of the historical accounted transaction records and the pending accounted transaction records, and performs accounting operation on the pending accounted transaction request according to the last accounted transaction record in the historical accounted transaction records, obtains the new accounted transaction date, new transaction balance and new transaction balance direction, obtains the fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, and obtains the real-time transaction data according to the new transaction balance and the new transaction balance direction, so as to provide the business server with the end-of-day transaction data required for processing batch business according to the fixed transaction data and the real-time transaction data. Based on the dual data mechanism of fixed transaction data and real-time transaction data, when the business server executes batch business, since the real-time transaction data can still be updated, the business server can continue to provide online transactions, that is, there is no need to stop the online transactions of the business server, so that the business server can provide continuous operation services 24 hours a day, 7 days a week, to ensure the continuity of the business server's business handling and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0068] Figure 1 An architectural diagram of an application scenario provided in an embodiment of the present application;

[0069] Figure 2 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 1 ;

[0070] Figure 3 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 2 ;

[0071] Figure 4 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 3 ;

[0072] Figure 5 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 4 ;

[0073] Figure 6 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 5 ;

[0074] Figure 7 Schematic diagram of the transaction data processing method provided in the embodiment of the present application Figure 6 ;

[0075] Figure 8 A schematic diagram of the structure of a transaction data processing device provided in an embodiment of the present application;

[0076] Fig. 9 A schematic diagram of an accounting server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0078] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

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

[0080] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0081] Before introducing the transaction data processing method provided by this application, the application scenarios involved in this application are first explained.

[0082] Please refer to Figure 1 , is an architecture diagram of an application scenario provided in an embodiment of the present application, such as Figure 1As shown, the application scenario includes: a business server 100 and an accounting server 200. The business server 100 provides a transaction service system for providing transaction services to users, and the accounting server 200 provides an accounting system for performing accounting operations on transaction accounting requests generated by the transaction service system.

[0083] Among them, after receiving the transaction accounting record sent by the business server 100, the accounting server 200 determines the fixed transaction date, fixed transaction balance and fixed transaction balance direction according to the transaction date of the historical accounted transaction record and the pending accounted transaction record, and performs accounting operation on the pending accounted transaction request according to the last accounted transaction record in the historical accounted transaction record, obtains the new accounting transaction date, new transaction balance and new transaction balance direction, obtains the fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, and obtains the real-time transaction data according to the new transaction balance and the new transaction balance direction, so as to provide the business server 100 with the end-of-day transaction data according to the fixed transaction data and the real-time transaction number. Based on the dual data mechanism of fixed transaction data and real-time transaction data, when the business server 100 executes batch business, since the real-time transaction data can still be updated, the business server 100 can continue to provide online transactions, that is, there is no need to stop the online transaction of the business server 100, so that the business server 100 can provide continuous operation services 24 hours a day, 7 days a week, to ensure the continuity of the business handling of the business server 100 and improve the user experience.

[0084] Based on the above application scenario, a transaction data processing method applied to the accounting server 200 is proposed. Figure 2 , which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method may include:

[0085] S10: receiving a transaction accounting request sent by a business server, wherein the transaction accounting request includes: transaction records to be accounted for.

[0086] In this embodiment, the business server processes the transaction request sent by the user through the transaction system. After successfully processing the transaction request, it generates a transaction accounting request and sends the transaction accounting request to the accounting server. After receiving the transaction accounting request, the accounting server parses the transaction accounting request and determines the pending accounting transaction record in the transaction accounting request. The pending accounting transaction record may at least include: a pending accounting transaction date, a pending accounting transaction amount, and a pending accounting transaction amount direction. Among them, the pending accounting transaction date is the date on which the business server processes the transaction request, the pending accounting transaction amount is the transaction amount involved in the transaction request, and the pending accounting transaction amount direction is the direction in which the transaction request processes the transaction amount. The transaction amount direction includes: an expenditure direction and an income direction.

[0087] S20: Determine a fixed transaction date, a fixed transaction balance, and a fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records.

[0088] In this embodiment, the historical accounted transaction records include: multiple accounted transaction records, each accounted transaction record includes: an accounted transaction date, an accounted transaction balance and an accounted transaction balance direction, wherein the accounted transaction balance is the transaction amount of the accounted transaction record and the sum of the transaction amounts of all previous accounted transaction records.

[0089] According to historical accounted transaction records and the to-be-accounted transaction dates of the to-be-accounted transaction records, the fixed transaction balance and the fixed transaction balance direction are determined from the accounted transaction balances and the accounted transaction balance directions of multiple accounted transaction records, and the fixed transaction date is determined according to the accounted transaction date and the to-be-accounted transaction date. The fixed transaction date, the fixed transaction balance and the fixed transaction balance direction are fixed data of the business server within the to-be-accounted transaction date, and must remain unchanged within a transaction date of the business server until the business server switches to the next transaction date.

[0090] S30: Determine the fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, and the fixed transaction data remains unchanged within the transaction date to be recorded.

[0091] In this embodiment, since the business server only needs to refer to the transaction balance and transaction balance direction when performing business batch processing, the fixed transaction balance and fixed transaction balance direction are used as fixed transaction data. During the transaction date to be recorded, the fixed transaction data remains unchanged until the business server switches to the next transaction date.

[0092] In some implementations, since the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction remain unchanged within a transaction date, the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction may also be referred to as static transaction date, static transaction balance and static transaction balance direction. Similarly, fixed transaction data may also be referred to as static transaction data.

[0093] S40: According to the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the recording transaction request to obtain the latest recording transaction record.

[0094] In this embodiment, the last accounted transaction record in the historical accounted transaction records includes: the date of the last accounted transaction, the balance of the last accounted transaction, and the direction of the balance of the last accounted transaction, and the latest accounted transaction record includes: the date of the pending accounted transaction, the new transaction balance, and the direction of the new transaction balance. Among them, performing an accounting operation on the pending accounted transaction request includes: registering the accounting date of the latest accounted transaction record as the pending accounted transaction date in the pending accounted transaction record, calculating the new transaction balance according to the last accounted transaction balance and the pending accounted transaction amount, and determining the direction of the new transaction balance according to the new transaction balance.

[0095] In some embodiments, the transaction amount to be recorded is the transaction amount, and the balance of the last recorded transaction is the original balance. According to the direction of the transaction amount and the direction of the original balance, the balance of the last recorded transaction and the transaction amount to be recorded are calculated to obtain a new transaction balance.

[0096] For example, if the direction of the original balance is the same as the direction of the amount transacted, the new transaction balance is the original balance plus the amount transacted, and the direction of the new transaction balance is the same as the direction of the original balance and the amount transacted; if the direction of the original balance is opposite to the direction of the amount transacted, the new transaction balance is the original balance minus the amount transacted; if the new transaction balance is less than zero, and the balance control direction is two-way or netting, the new transaction balance is a positive value, and the direction of the new transaction balance is opposite to the direction of the original balance; if the new transaction balance is greater than zero, the direction of the new transaction balance is the same as the direction of the original balance.

[0097] S50: Determine the real-time transaction data according to the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server.

[0098] In this embodiment, the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record are used as real-time transaction data. The real-time transaction data will be continuously updated according to the pending accounting transaction request sent by the business server. After each pending accounting transaction request is processed and a new pending accounting transaction request is received, the original new transaction balance becomes the accounted transaction balance, and the original direction of the new transaction balance becomes the direction of the accounted transaction balance.

[0099] Fixed transaction data and real-time transaction data serve as dual balance transaction data of the business server, and are used to select the end-of-day transaction data required for the business server to process batch business from the fixed transaction data and real-time transaction data according to the daily status of the business server. Based on the dual data mechanism of fixed transaction data and real-time transaction data, when the business server is executing batch business, the real-time transaction data can still be updated, so that the business server can continue to provide online transactions, that is, there is no need to stop the online transactions of the business server, so that the business server can provide continuous operation services 24 hours a day, 7 days a week, to ensure the continuity of the business server's business processing, improve the user experience, and avoid the loss of bank customers.

[0100] The following combination Figure 3 A specific implementation method for determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction is described in detail.

[0101] Please refer to Figure 3 , which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the process of determining the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records in S20 may include:

[0102] S21: Obtain the last recorded transaction record from the historical recorded transaction records.

[0103] In this embodiment, the historical accounted transaction records include: multiple accounted transaction records, and the last accounted transaction record is obtained from the multiple accounted transaction records. The last accounted transaction record includes: the last accounted transaction date, the last accounted transaction balance, and the direction of the last accounted transaction balance.

[0104] S22: judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date is switched based on the recorded transaction date and the to-be-accounted transaction date in the last recorded transaction record. The transaction date switching refers to the switching of the transaction date by the business server.

[0105] In this embodiment, the transaction dates recorded in the accounted transaction date and the transaction date to be accounted are both the dates when the business server processes the transaction business. It can be determined whether the transaction record to be accounted is a transaction record generated by the business server after the transaction date is cut based on the accounted transaction date and the transaction date to be accounted, wherein the transaction date is when the business date of the business server is switched to the next day.

[0106] In some embodiments, if the accounted transaction date is less than the to-be-accounted transaction date, the to-be-accounted transaction record is determined to be a transaction record generated after the transaction date.

[0107] In this embodiment, if the accounted transaction date is less than the to-be-accounted transaction date, that is, the to-be-accounted transaction date is greater than the accounted transaction date, then it is determined that the to-be-accounted transaction record is the first transaction record generated after the business server has a transaction date cut, that is, the business server has a transaction date cut.

[0108] S23: If the transaction record to be recorded is a transaction record generated after the transaction date, the transaction date to be recorded, the recorded transaction balance in the last recorded transaction record, and the direction of the recorded transaction balance in the last recorded transaction record are determined to be a fixed transaction date, a fixed transaction balance, and a fixed transaction balance direction, respectively.

[0109] In this embodiment, if the transaction record to be recorded is a transaction record generated after the transaction day cut, that is, the business server has a transaction day cut, then new fixed transaction data needs to be generated. Within a transaction date after the transaction day cut occurs on the business server, the fixed transaction data will not change. The fixed transaction data is used to represent the transaction data at the end of the day within a transaction date before the transaction day cut occurs.

[0110] Among them, since the transaction record to be recorded is the first transaction record of the business server after the transaction date is cut, the last recorded transaction record is the recorded transaction record generated by processing the last transaction record of the business server before the transaction date is cut, the recorded transaction balance in the last recorded transaction record is the end-of-day balance of the business server before the transaction date is cut, and the direction of the recorded transaction balance in the last recorded transaction record is the direction of the end-of-day balance of the business server before the transaction date is cut.

[0111] The accounted transaction balance in the last accounted transaction record is used as the fixed transaction balance, the direction of the accounted transaction balance in the last accounted transaction record is used as the fixed transaction balance direction, and the transaction date to be accounted is used as the fixed transaction date. It is possible to determine whether a day cut has occurred on the business server based on the fixed transaction date, thereby selecting the end-of-day transaction data from the fixed transaction data and the real-time transaction data.

[0112] In one possible implementation, see Figure 4 , which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, judging whether the to-be-booked transaction record is a transaction record generated after the transaction date is cut off according to the recorded transaction date and the to-be-booked transaction date in the last recorded transaction record may include:

[0113] S24: If the accounted transaction date is equal to the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date.

[0114] In this embodiment, if the accounted transaction date is equal to the to-be-accounted transaction date, it is determined that the business server has not yet had a transaction date cut, the to-be-accounted transaction record and the last accounted transaction record are records of transactions that occurred on the same transaction date of the business server, and the to-be-accounted transaction record is not the first transaction record after the business server has a date cut.

[0115] The above-mentioned determination of the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction based on the historical accounted transaction records and the pending accounted transaction date of the pending accounted transaction records may also include:

[0116] S25: According to the cut-off date of the most recent transaction, the last recorded transaction record before the cut-off date is obtained.

[0117] In this embodiment, if the transaction record to be recorded and the last recorded transaction record are records of transactions occurring on the same transaction date of the business server, that is, no transaction date cut occurs on the business server, then there is no need to generate new fixed transaction data, and only the old fixed transaction data needs to remain unchanged. The old fixed transaction data is the fixed transaction data determined when the last transaction date cut occurs.

[0118] In some embodiments, based on the transaction dates of multiple recorded transaction records in the historical recorded transaction records, the most recent transaction date is determined from the multiple transaction dates to determine the last recorded transaction before the most recent transaction date.

[0119] S26: Determine that the accounted transaction balance and the direction of the accounted transaction balance in the last accounted transaction record before the day cut date are the fixed transaction balance and the fixed transaction balance direction respectively, and the fixed transaction date is the date of the most recent transaction day cut.

[0120] In this embodiment, the last accounted transaction record before the day cut date records the end-of-day transaction data within a business date before the day cut date, the accounted transaction balance in the last accounted transaction record before the day cut date is used as the fixed transaction balance, the direction of the accounted transaction balance in the last accounted transaction record before the day cut date is used as the fixed transaction balance direction, and the date of the most recent transaction day cut is used as the fixed transaction date, so as to indicate that the fixed transaction data remains unchanged within a transaction date after the most recent transaction day cut.

[0121] In one possible implementation, see Figure 5, which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 4 ,like Figure 5 As shown, in the above-mentioned last recorded transaction record, according to the recorded transaction date and the to-be-recorded transaction date, judging whether the to-be-recorded transaction record is a transaction record generated after the transaction date is cut off may include:

[0122] S27: If the accounted transaction date is greater than the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date.

[0123] In this embodiment, under normal circumstances, the date of the accounted transaction will not be greater than the date of the transaction to be accounted. However, due to the information exchange between the transaction server and the accounting server, some transaction accounting requests may not be sent to the accounting server before the day cut due to network delays and other reasons. After receiving the transaction accounting request, the accounting server determines that the transaction date to be accounted of the transaction record to be accounted is less than the accounted transaction date of the last accounted transaction record in the historical accounted transaction records, and then determines that the transaction record to be accounted is actually a transaction record generated before the transaction day cut, but is only sent to the accounting server after the transaction day cut.

[0124] The above-mentioned determination of the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction based on the historical accounted transaction records and the pending accounted transaction date of the pending accounted transaction records may also include:

[0125] S28: According to the cut-off date of the most recent transaction, the last recorded transaction record before the cut-off date is obtained.

[0126] In this embodiment, if the transaction record to be recorded is a transaction record generated before the trading day is cut, the fixed transaction data generated after the trading day does not include the transaction record to be recorded, that is, the fixed transaction data is incomplete, and the transaction record to be recorded needs to be supplemented in the fixed transaction data generated after the trading day is cut.

[0127] In some embodiments, based on the transaction dates of multiple recorded transaction records in the historical recorded transaction records, the most recent transaction date is determined from the multiple transaction dates to determine the last recorded transaction before the most recent transaction date.

[0128] S29: Determine the fixed transaction balance and the fixed transaction balance direction according to the last accounted transaction record and the pending accounted transaction record before the day cut date, and the fixed transaction date is the date of the most recent transaction day cut.

[0129] In this embodiment, after the transaction date is cut, the accounted transaction balance in the last accounted transaction record before the date of the date cut is used as the fixed transaction balance, and the direction of the accounted transaction balance in the last accounted transaction record before the date of the date cut is used as the direction of the fixed transaction balance. After receiving a to-be-accounted transaction record whose to-be-accounted transaction date is less than the accounted transaction date, the fixed transaction balance and the fixed transaction balance direction are recalculated according to the to-be-accounted transaction amount in the to-be-accounted transaction record and the accounted transaction balance in the last accounted transaction record before the date of the date cut, as well as the direction of the to-be-accounted transaction amount and the direction of the accounted transaction amount, and the date of the most recent transaction date cut is used as the fixed transaction date, so as to indicate that the fixed transaction data remains unchanged within a transaction date after the most recent transaction date cut.

[0130] For example, if the historical accounted transaction records include: multiple accounted transaction records on November 7, multiple accounted transaction records on November 8, and if the to-be-accounted transaction date of the to-be-accounted transaction record is November 9, then the to-be-accounted transaction record is determined to be the first transaction record after the transaction date cut occurs on the business server, and the accounted transaction balance in the last accounted transaction record on November 8 is used as the fixed transaction balance, and the direction of the accounted transaction balance in the last accounted transaction record on November 8 is used as the fixed transaction balance direction, and the fixed transaction date is recorded as November 9.

[0131] If the pending transaction date of the pending transaction record is November 8, the pending transaction record is determined to be the transaction record before the transaction date on the business server, and the most recent transaction date is determined to be November 8. The accounted transaction balance in the last accounted transaction record before November 8, that is, November 7, is used as the fixed transaction balance, and the direction of the accounted transaction balance in the last accounted transaction record on November 7 is used as the direction of the fixed transaction balance, and the fixed transaction date is recorded as November 8.

[0132] If the to-be-accounted transaction date of the to-be-accounted transaction record is November 7, the to-be-accounted transaction record is determined to be the transaction record before the most recent transaction date on the business server, and the most recent transaction date is determined to be November 8. The fixed transaction balance and the fixed transaction balance direction are calculated based on the accounted transaction balance in the last accounted transaction record before November 8, i.e., November 7, and the to-be-accounted transaction amount of the to-be-accounted transaction record, the direction of the accounted transaction balance in the last accounted transaction record on November 7, and the direction of the to-be-accounted transaction amount, and the fixed transaction date is recorded as November 8.

[0133] The following combination Figure 6 A specific implementation method for selecting end-of-day transaction data from fixed transaction data and real-time transaction data is described in detail.

[0134] Please refer to Figure 6 , which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 5 ,like Figure 6 As shown, the method may also include:

[0135] S60: Determine the end-of-day transaction data from the real-time transaction data and the fixed transaction data according to the preset end-of-day data selection rule.

[0136] In this embodiment, the preset day-end data selection rule is a rule for selecting day-end transaction data based on the different day-cut states of the business server and the accounting server. The preset day-end data selection rule defines the preset correspondence between the different day-cut states of the business server and the accounting server and the selected day-end transaction data. According to the day-cut states of the business server and the accounting server, and the preset correspondence, day-end transaction data can be selected from real-time transaction data and fixed transaction data.

[0137] In one possible implementation, if the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date, the fixed transaction data is determined to be the end-of-day transaction data; if the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date, the real-time transaction data is determined to be the end-of-day transaction data.

[0138] In this embodiment, if a request for obtaining end-of-day transaction data is received from a business server, the end-of-day transaction data is determined from the real-time transaction data and the fixed transaction data according to the accounting transaction date in the latest accounting transaction record and the preset accounting date. The preset accounting date is the accounting date of the accounting server. The accounting server and the transaction server generally operate on different dates. After the transaction server undergoes a day cut, the accounting server can also undergo a day cut.

[0139] Specifically, if the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date, it is determined that the business server has had a transaction day cut. The business server processes batch business after the transaction day cut and determines that the fixed transaction data before the transaction day cut is the end-of-day transaction data.

[0140] If the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date, it is determined that the business server has not yet had a transaction day cut. The business server processes batch business before the transaction day cut and determines that the real-time transaction data within the transaction date is the end-of-day transaction data.

[0141] S70: Sending the end-of-day transaction data to the business server, so that the business server executes business transactions based on the end-of-day transaction data.

[0142] In this embodiment, after determining the end-of-day transaction data from the fixed transaction data and the real-time transaction data, the accounting server sends the end-of-day transaction data to the business server so that the business server uses the end-of-day transaction data when executing batch business processing.

[0143] In some embodiments, regarding the daily switching of the transaction server and the accounting server, the specific steps may be:

[0144] Obtain the day-cut registration book of the transaction server, which includes: the day-cut date and day-cut processing status of the transaction server, where the day-cut processing status is unprocessed; determine that the transaction server has undergone date switching based on the day-cut date; switch the day-cut of the accounting server, and update the day-cut processing status to processed.

[0145] In this embodiment, after the date of the transaction server is switched to the next day, the accounting server is called to receive the online transaction of the day cut notification. The day cut date and day cut processing status of the transaction server are recorded in the day cut registration book, and the day cut processing status is registered as unprocessed. The accounting server queries the day cut records with unprocessed day cut processing status in the day cut registration book, selects the day cut record with the smallest date record from all the day cut records, and switches the date of the accounting server to the next day based on the day cut record, and updates the day cut processing status of the day cut record to processed status to determine that the accounting server has completed the day cut according to the day cut of the transaction server.

[0146] It should be noted that the purpose of registering the daily cut processing status is to avoid the situation where, when a failure occurs on the accounting server, it is impossible to determine whether a daily cut has occurred along with the transaction server, and to avoid the situation where a daily cut has occurred on the accounting server before the failure, but another daily cut is performed after the failure is resolved, to ensure that the accounting server can perform daily cuts normally.

[0147] In one possible implementation, see Figure 7 , which is a flow chart of the transaction data processing method provided in the embodiment of the present application Figure 6 ,like Figure 7 As shown, after receiving the transaction accounting request sent by the business server, the above performs an accounting operation on the accounting transaction request according to the last accounting transaction record in the historical accounting transaction records, and obtains the latest accounting transaction record, including:

[0148] S41: According to the transaction type to which the transaction record to be recorded belongs, determining that the accounting sub-account for recording the transaction record to be recorded is a transaction sub-account, wherein different accounting sub-accounts correspond to different transaction types.

[0149] S42: Based on the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the recorded transaction request in the transaction sub-account to obtain the latest recorded transaction record.

[0150] In this embodiment, the transaction type is a type for classifying and calculating transaction content. The correspondence between transaction content and transaction type can be determined according to accounting rules. When processing a customer transaction request, the transaction server determines the corresponding transaction type according to the transaction content.

[0151] Since the transactions involved in the bank include various types, the various types of transactions are divided into two major types according to the transaction subjects to which they belong in the accounting rules. For each type of transaction, an internal account is created in the accounting system as a bookkeeping sub-account for bookkeeping and accounting of the transaction of this type, and the corresponding relationship between various types of transactions and bookkeeping sub-accounts is defined. After the accounting driving engine parses the transaction information to obtain the transaction type, the corresponding bookkeeping sub-account is determined according to the transaction type. Among them, the bookkeeping sub-account is divided into a transaction sub-account and an accounting sub-account. The bookkeeping sub-account targeted by this embodiment is a transaction sub-account.

[0152] In the transactional sub-account, an accounting operation is performed on the request for accounting transaction to be processed, so as to generate the latest accounting transaction record according to the last accounting transaction record in the historical accounting transaction records and the transaction record to be recorded. The specific accounting method is as described in S40 above and will not be described in detail here.

[0153] The transaction data processing method provided in the above embodiment determines the fixed transaction date, fixed transaction balance and fixed transaction balance direction according to the transaction date of the historical accounted transaction record and the to-be-accounted transaction record, and performs the accounting operation on the to-be-accounted transaction request according to the last accounted transaction record in the historical accounted transaction record, obtains the new accounted transaction date, new transaction balance and new transaction balance direction, obtains the fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, and obtains the real-time transaction data according to the new transaction balance and the new transaction balance direction, so as to provide the business server with the end-of-day transaction data required for processing batch business according to the fixed transaction data and the real-time transaction number. Based on the dual data mechanism of the coexistence of fixed transaction data and real-time transaction data, when the business server is executing batch business, since the real-time transaction data can still be updated, the business server can continue to provide online transactions, that is, there is no need to stop the online transactions of the business server, so that the business server can provide continuous business services 24 hours a day, 7 days a week, to ensure the continuity of the business server's business handling and improve the user experience.

[0154] Based on the above embodiments, the present application also provides a transaction data processing device, which is applied to a calculation server. Figure 8 , is a schematic diagram of the structure of a transaction data processing device provided in an embodiment of the present application, such as Figure 8 As shown, the device may include:

[0155] The accounting request receiving module 10 is used to receive a transaction accounting request sent by a business server, wherein the transaction accounting request includes: a transaction record to be accounted for;

[0156] The transaction data acquisition module 20 is used to determine the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records;

[0157] A fixed data determination module 30, for determining fixed transaction data according to a fixed transaction balance and a fixed transaction balance direction, wherein the fixed transaction data remains unchanged within the transaction date to be recorded;

[0158] The accounting operation execution module 40 is used to execute the accounting operation on the accounting transaction request according to the last accounting transaction record in the historical accounting transaction records to obtain the latest accounting transaction record;

[0159] The real-time data determination module 50 is used to determine the real-time transaction data according to the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server.

[0160] Optionally, the transaction data acquisition module 20 includes:

[0161] A first transaction record acquisition unit, configured to acquire the last recorded transaction record from historical recorded transaction records;

[0162] A transaction date determination unit, used to determine whether the to-be-accounted transaction record is a transaction record generated after the transaction date is switched, based on the recorded transaction date and the to-be-accounted transaction date in the last recorded transaction record. The transaction date switching refers to the switching of the transaction date by the business server;

[0163] The first transaction data determining unit is used to determine, if the transaction record to be accounted is a transaction record generated after the transaction date, the transaction date to be accounted, the accounted transaction balance in the last accounted transaction record, and the direction of the accounted transaction balance in the last accounted transaction record to be a fixed transaction date, a fixed transaction balance, and a fixed transaction balance direction, respectively.

[0164] Optionally, the transaction date judgment unit is specifically used to determine that the transaction record to be recorded is a transaction record generated after the transaction date if the recorded transaction date is less than the transaction date to be recorded.

[0165] Optionally, the transaction date determination unit is further configured to determine that the transaction record to be recorded is not a transaction record generated after the transaction date if the recorded transaction date is equal to the transaction date to be recorded;

[0166] The transaction data acquisition module 20 further includes:

[0167] The second transaction record acquisition unit is used to acquire the last accounted transaction record before the date of the latest transaction date according to the date of the latest transaction date;

[0168] The second transaction data determination unit is used to determine that the accounted transaction balance and the direction of the accounted transaction balance in the last accounted transaction record before the day cut date are respectively the fixed transaction balance and the fixed transaction balance direction, and the fixed transaction date is the date of the most recent transaction day cut.

[0169] Optionally, the transaction data acquisition module 20 is further configured to determine that the transaction record to be recorded is not a transaction record generated after the transaction date if the recorded transaction date is greater than the transaction date to be recorded;

[0170] The transaction data acquisition module also includes:

[0171] The third transaction record acquisition unit is used to acquire the last accounted transaction record before the date of the latest transaction date according to the date of the latest transaction date;

[0172] The third transaction data determination unit is used to determine the fixed transaction balance and the fixed transaction balance direction according to the last accounted transaction record and the pending accounted transaction record before the day cut date, and the fixed transaction date is the date of the most recent transaction day cut.

[0173] Optionally, the device further comprises:

[0174] A day-end data selection module, used to determine the day-end transaction data from the real-time transaction data and the fixed transaction data according to the preset day-end data selection rules;

[0175] The end-of-day data sending module is used to send end-of-day transaction data to the business server so that the business server executes business transactions based on the end-of-day transaction data.

[0176] Optionally, the end-of-day data selection module is specifically used to determine that the fixed transaction data is the end-of-day transaction data if the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date; or, to determine that the real-time transaction data is the end-of-day transaction data if the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date.

[0177] Optionally, the device further comprises:

[0178] An accounting sub-account determination module is used to determine, according to the transaction type to which the transaction record to be accounted belongs, that the accounting sub-account for accounting the transaction record to be accounted is a transaction sub-account, wherein different transaction types correspond to different accounting sub-accounts;

[0179] The bookkeeping operation execution module 40 is specifically used to execute the bookkeeping operation on the bookkeeping transaction request in the transaction sub-account according to the last bookkeeping transaction record in the historical bookkeeping transaction records, so as to obtain the latest bookkeeping transaction record.

[0180] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0181] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0182] Please refer to Fig. 9 , is a schematic diagram of a calculation server provided in an embodiment of the present application, such as Fig. 9 As shown, the accounting server 200 includes: a processor 201, a storage medium 202 and a bus, the storage medium 202 stores program instructions executable by the processor 201, when the accounting server 200 is running, the processor 201 and the storage medium 202 communicate through the bus, and the processor 201 executes the program instructions to perform the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0183] Optionally, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method embodiment is executed.

[0184] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, comprising a program, which is used to execute the above method embodiment when executed by a processor.

[0185] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0187] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0188] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0189] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A transaction data processing method, characterized in that: Applied to a calculation server, the calculation server and the business server are deployed in a distributed manner to perform calculations and transactions respectively, the method includes: Receiving a transaction accounting request sent by a business server, wherein the transaction accounting request includes: a transaction record to be accounted for; Determine the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records; Determining fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, wherein the fixed transaction data remains unchanged during the transaction date to be recorded; According to the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the transaction request to be recorded to obtain the latest recorded transaction record; Determining real-time transaction data according to a new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server; The method further comprises: According to a preset day-end data selection rule, the day-end transaction data is determined from the real-time transaction data and the fixed transaction data. The preset day-end data selection rule is a rule for selecting the day-end transaction data according to different date states of the business server and the accounting server. If the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date, it is determined that the business server has undergone a transaction date switch, and the fixed transaction data is determined to be the day-end transaction data; if the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date, it is determined that the business server has not undergone a transaction date switch, and the real-time transaction data is determined to be the day-end transaction data; The end-of-day transaction data is sent to the business server so that the business server executes business transactions based on the end-of-day transaction data.

2. The method according to claim 1, characterized in that Determining the fixed transaction date, the fixed transaction balance and the fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records includes: Acquire the last recorded transaction record from the historical recorded transaction records; According to the recorded transaction date in the last recorded transaction record and the pending transaction date, determining whether the pending transaction record is a transaction record generated after a transaction date cut, wherein the transaction date cut refers to a transaction date switch performed by the business server; If the to-be-billed transaction record is a transaction record generated after the transaction date, the to-be-billed transaction date, the accounted transaction balance in the last accounted transaction record, and the direction of the accounted transaction balance in the last accounted transaction record are determined to be the fixed transaction date, the fixed transaction balance, and the fixed transaction balance direction, respectively.

3. The method according to claim 2, characterized in that The step of judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes: If the accounted transaction date is less than the to-be-accounted transaction date, the to-be-accounted transaction record is determined to be a transaction record generated after the transaction date.

4. The method according to claim 2, characterized in that: The step of judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes: If the accounted transaction date is equal to the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date; The method of determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction based on the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records further includes: According to the cut-off date of the most recent transaction, obtain the last accounted transaction record before the cut-off date; Determine that the accounted transaction balance and the direction of the accounted transaction balance in the last accounted transaction record before the day cut date are the fixed transaction balance and the fixed transaction balance direction respectively, and the fixed transaction date is the date of the most recent transaction day cut.

5. The method according to claim 2, characterized in that: The step of judging whether the to-be-accounted transaction record is a transaction record generated after the transaction date according to the accounted transaction date in the last accounted transaction record and the to-be-accounted transaction date includes: If the accounted transaction date is greater than the to-be-accounted transaction date, it is determined that the to-be-accounted transaction record is not a transaction record generated after the transaction date; The method of determining a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction based on the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records further includes: According to the cut-off date of the most recent transaction, obtain the last accounted transaction record before the cut-off date; The fixed transaction balance and the fixed transaction balance direction are determined according to the last accounted transaction record before the day-cut date and the to-be-accounted transaction record, and the fixed transaction date is the date of the most recent transaction day-cut.

6. The method according to claim 1, characterized in that After receiving the transaction accounting request sent by the business server, the method further includes: According to the transaction type to which the to-be-billed transaction record belongs, determining that the accounting sub-account for accounting the to-be-billed transaction record is a transaction sub-account, wherein different accounting sub-accounts correspond to different transaction types; The step of performing a bookkeeping operation on the to-be-booked transaction request according to the last bookkeeping transaction record in the historical bookkeeping transaction records to obtain the latest bookkeeping transaction record includes: According to the last recorded transaction record in the historical recorded transaction records, a recording operation is performed on the to-be-recorded transaction request in the transaction sub-account to obtain the latest recorded transaction record.

7. A transaction data processing device, characterized in that: Applied to a calculation server, the calculation server and the business server are deployed in a distributed manner to perform calculations and transactions respectively, and the device includes: The accounting request receiving module is used to receive a transaction accounting request sent by the business server, wherein the transaction accounting request includes: a transaction record to be accounted; A transaction data acquisition module, used to determine a fixed transaction date, a fixed transaction balance and a fixed transaction balance direction according to the historical accounted transaction records and the to-be-accounted transaction date of the to-be-accounted transaction records; A fixed data determination module, configured to determine fixed transaction data according to the fixed transaction balance and the fixed transaction balance direction, wherein the fixed transaction data remains unchanged within the transaction date to be recorded; An accounting operation execution module, configured to execute an accounting operation on the to-be-accounted transaction request according to the last accounted transaction record in the historical accounted transaction records, so as to obtain the latest accounted transaction record; A real-time data determination module, configured to determine the real-time transaction data according to the new transaction balance in the latest accounting transaction record and the direction of the new transaction balance in the latest accounting transaction record; the fixed transaction data and the real-time transaction data are used to determine the end-of-day transaction data of the business server; The device also includes: a day-end data selection module, configured to determine the day-end transaction data from the real-time transaction data and the fixed transaction data according to a preset day-end data selection rule, wherein the preset day-end data selection rule is a rule for selecting the day-end transaction data according to different date states of the business server and the accounting server, and if the accounting transaction date in the latest accounting transaction record is greater than the preset accounting date, it is determined that the business server has undergone a transaction date switch, and the fixed transaction data is determined to be the day-end transaction data; if the accounting transaction date in the latest accounting transaction record is equal to the preset accounting date, it is determined that the business server has not undergone a transaction date switch, and the real-time transaction data is determined to be the day-end transaction data; The end-of-day data sending module is used to send the end-of-day transaction data to the business server, so that the business server executes business transactions based on the end-of-day transaction data.

8. A calculation server, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the accounting server is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the transaction data processing method as described in any one of claims 1 to 6.