Transaction accounting processing method, device, accounting server and storage medium
By parsing transaction information on the accounting server, determining the accounting sub-accounts, and adopting appropriate accounting methods, the problem of excessive transaction information causing pressure on the accounting system was solved, enabling T+N day accounting and ensuring the normal operation of the transaction system and the accounting system.
Patent Information
- Application Number
- CN202211468956.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-11-22
AI Technical Summary
In a bank's transaction system, when there is a large volume of transaction information, the accounting system may be unable to complete the accounting operations in a timely manner, which may affect the accounting between the transaction system and the accounting system.
By parsing transaction information on the accounting server, the transaction type is determined and the accounting sub-account is obtained. Based on the processing date of different information processing operations and the type of accounting sub-account, different accounting methods are adopted, including real-time accounting and end-of-day tracking, to ensure that accounting is completed within N consecutive days after the transaction date T.
This reduced the pressure on the accounting system, avoided the problem of transaction information not being recorded in a timely manner, and ensured normal accounting between the accounting system and the transaction system.
Smart Images

Figure CN115760406B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a transaction accounting processing method, device, accounting server and storage medium. Background Art
[0002] With the continuous development and growth of banking business, the transaction system is used to provide transaction services to users. The transaction services performed by the transaction system need to be accounted for in the accounting system.
[0003] However, when the transaction system sends a large amount of transaction information, a large amount of transaction information to be recorded accumulates, and the accounting system cannot complete the accounting operation in time, affecting the accounting between the transaction system and the accounting system. Summary of the invention
[0004] The purpose of the present invention is to provide a transaction accounting processing method, device, accounting server and storage medium to address the deficiencies in the above-mentioned prior art, so as to determine the accounting date and accounting method of transaction data according to the transaction date and transaction type, so as to realize flexible accounting of transaction data.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a transaction accounting processing method, which is applied to an accounting server, and the transaction server is deployed separately from the accounting server to perform information processing operations for transactions and accounting respectively, and the method includes:
[0007] Parsing the transaction information sent by the transaction server to obtain transaction data, transaction date and transaction type in the transaction information;
[0008] According to the transaction type, obtaining a bookkeeping sub-account, the bookkeeping sub-account being an account for bookkeeping the transaction data;
[0009] Determine different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts, wherein the total accounting date corresponding to the different accounting methods is based on the transaction date as the date basis, and the date sequence is continuous on the transaction date according to the amount of transaction information;
[0010] According to the different accounting methods and the corresponding transaction data, the accounting sub-accounts are accounted for respectively within the total accounting dates corresponding to the different accounting methods.
[0011] Optionally, determining different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts includes:
[0012] Determine the accounting date for the accounting processing operation of the transaction information;
[0013] According to the date relationship between the transaction date and the accounting date, different accounting methods corresponding to different accounting sub-accounts are determined.
[0014] Optionally, determining different accounting methods corresponding to different accounting sub-accounts according to the date relationship between the transaction date and the accounting date includes:
[0015] If the transaction date is greater than the accounting date, different accounting methods corresponding to different accounting sub-accounts are determined according to the mapping relationship between the type of the accounting sub-account and the accounting method.
[0016] Optionally, if the transaction date is greater than the accounting date, determining different accounting methods corresponding to different accounting sub-accounts according to the mapping relationship between the types of the accounting sub-accounts and the accounting methods includes:
[0017] If the transaction date is greater than the accounting date, and the type of the accounting sub-account is a first-type accounting sub-account, determining that the accounting method of the first-type accounting sub-account is a real-time accounting method;
[0018] If the transaction date is greater than the accounting date, and the type of the accounting sub-account is a second-type accounting sub-account, the accounting method of the second-type accounting sub-account is determined to be the end-of-day collection method.
[0019] Optionally, if the transaction date is greater than the accounting date, and the type of the accounting sub-account is a second-type accounting sub-account, after determining that the accounting method of the second-type accounting sub-account is a day-end collection method, the method further includes:
[0020] According to the transaction data, a register of uncollected amounts, account details and debt collection details is registered, the status of the transaction details in the transaction details is uncollected, and the status of the debt collection details in the debt collection details is uncollected.
[0021] Optionally, the accounting for the accounting sub-accounts is performed respectively within the total accounting dates corresponding to the different accounting methods according to the different accounting methods and the corresponding transaction data, including:
[0022] Determining the number of days for recording the unreconciled amount register book according to the unreconciled amount register book and the transaction information volume;
[0023] Determine the total accounting date according to the transaction date and the accounting days;
[0024] On the general accounting date, updating the account balance of the second-category accounting sub-account according to the uncollected amount register and the transaction information volume;
[0025] The status of the transaction details in the transaction details is updated to be credited, and the status of the debt collection details in the debt collection details is updated to be credited.
[0026] Optionally, the method further includes:
[0027] If the transaction date is equal to the accounting date, it is determined that the accounting methods of all types of the accounting sub-accounts are real-time accounting methods.
[0028] In a second aspect, the embodiment of the present application further provides a transaction accounting processing device, which is applied to an accounting server, and the transaction server is deployed separately from the accounting server to perform information processing operations of transaction and accounting respectively, and the device includes:
[0029] A transaction information parsing module, used to parse the transaction information sent by the transaction server and obtain the transaction data, transaction date and transaction type in the transaction information;
[0030] An accounting sub-account determination module is used to obtain an accounting sub-account according to the transaction type;
[0031] An accounting method determination module is used to determine different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts, wherein the total accounting date corresponding to the different accounting methods is based on the transaction date as the date basis, and the date sequence is continuous on the transaction date according to the amount of transaction information;
[0032] The accounting module is used to record the accounting sub-accounts according to the different accounting methods and the corresponding transaction data within the total accounting dates corresponding to the different accounting methods.
[0033] Optionally, the accounting method determination module includes:
[0034] A calculation date determination unit, used to determine a calculation date for performing a calculation processing operation on the transaction information;
[0035] The accounting method determination unit is used to determine different accounting methods corresponding to different accounting sub-accounts according to the date relationship between the transaction date and the accounting date.
[0036] Optionally, the accounting method determination unit is specifically used to determine different accounting methods corresponding to different accounting sub-accounts according to a mapping relationship between the type of the accounting sub-account and the accounting method if the transaction date is greater than the settlement date.
[0037] Optionally, the accounting method determination unit includes:
[0038] A real-time accounting mode determining unit, configured to determine that the accounting mode of the first type of accounting sub-account is a real-time accounting mode if the transaction date is greater than the accounting date and the type of the accounting sub-account is a first type of accounting sub-account;
[0039] The end-of-day collection method determination unit is used to determine the accounting method of the second-type accounting sub-account as the end-of-day collection method if the transaction date is greater than the accounting date and the type of the accounting sub-account is the second-type accounting sub-account.
[0040] Optionally, the device further comprises:
[0041] The detail level module is used to register the uncollected amount register, account details and debt collection details according to the transaction data, the status of the transaction details in the transaction details is uncollected, and the status of the debt collection details in the debt collection details is uncollected.
[0042] Optionally, the accounting module includes:
[0043] an accounting days calculation unit, used to determine the accounting days for accounting the unreconciled amount register book according to the unreconciled amount register book and the transaction information volume;
[0044] A total accounting date determination unit, used to determine the total accounting date according to the transaction date and the accounting days;
[0045] A balance updating unit, configured to update the account balance of the second-type accounting sub-account according to the uncollected amount register and the transaction information volume within the total accounting date;
[0046] The detail status updating unit is used to update the status of the transaction detail content in the transaction detail to be credited, and to update the status of the debt collection detail content in the debt collection detail to be credited.
[0047] Optionally, the accounting method determination unit is also used to determine that the accounting methods of all types of the accounting accounts are real-time accounting methods if the transaction date is equal to the accounting date.
[0048] 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 accounting processing method as described in any one of the first aspects.
[0049] 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 accounting processing method as described in any one of the first aspects are executed.
[0050] The beneficial effects of this application are:
[0051] The present application provides a transaction accounting processing method, device, accounting server and storage medium. By determining the accounting sub-account corresponding to the transaction type in the transaction information, different accounting methods for different accounting sub-accounts are determined according to the processing dates and types of accounting sub-accounts corresponding to different information processing operations, so that the accounting sub-accounts are accounted for separately within the total accounting date corresponding to the different accounting methods according to the different accounting methods and the corresponding transaction data. Since the total accounting date of the accounting method is obtained by continuing the date sequence on the transaction date according to the amount of transaction information, the continuous date N for accounting and accounting after the transaction date T can be determined according to the amount of transaction information, thereby realizing T+N days of accounting and accounting for the transaction data, so as to divert and account for the transaction information according to the processing dates and accounting sub-accounts corresponding to different information processing operations. On the one hand, it can reduce the accounting pressure of the accounting system, and on the other hand, it can avoid the failure to complete the accounting of transaction information that needs to be accounted for in time by the transaction system, so as to ensure the normal accounting between the accounting system and the transaction system. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] 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.
[0053] Figure 1 An architectural diagram of an application scenario provided in an embodiment of the present application;
[0054] Figure 2 Schematic diagram of the transaction accounting processing method provided in the embodiment of the present application Figure 1 ;
[0055] Figure 3 Schematic diagram of the transaction accounting processing method provided in the embodiment of the present application Figure 2 ;
[0056] Figure 4 Schematic diagram of the transaction accounting processing method provided in the embodiment of the present application Figure 3 ;
[0057] Figure 5A schematic diagram of the structure of a transaction accounting processing device provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of an accounting server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] Before introducing the transaction accounting processing method provided by this application, the application scenarios involved in this application are first explained.
[0064] Please refer to Figure 1 , is an architecture diagram of an application scenario provided in an embodiment of the present application, such as Figure 1 As shown, the application scenario includes: a transaction server 10 and an accounting server 20. The transaction server 10 provides a transaction system for executing transaction processing operations and providing transaction services to users. The accounting system of the accounting server 20 provides an accounting driving engine for performing accounting processing operations on the transaction information generated by the transaction system.
[0065] The accounting driving engine parses the transaction information to determine the transaction data, transaction date and transaction type in the transaction information, determines the accounting sub-account corresponding to the transaction type in the transaction information according to the pre-defined correspondence between multiple types of transactions and accounting sub-accounts, and determines different accounting methods for different accounting sub-accounts according to the processing dates and types of accounting sub-accounts corresponding to different information processing operations, so as to account for the accounting sub-accounts respectively within the total accounting date corresponding to the different accounting methods according to the different accounting methods and the corresponding transaction data. Since the total accounting date of the accounting method is obtained by continuing the date sequence on the transaction date according to the amount of transaction information, the continuous date N for accounting and accounting after the transaction date T can be determined according to the amount of transaction information, so as to realize T+N days of accounting and accounting for the transaction data, so as to divert and account for the transaction information according to the processing dates and accounting sub-accounts corresponding to different information processing operations. On the one hand, it can reduce the accounting pressure of the accounting system, and on the other hand, it can avoid the failure to complete the accounting of the transaction information that needs to be accounted for in time by the transaction system, so as to ensure the normal accounting between the accounting system and the transaction system.
[0066] Based on the above application scenario, a transaction accounting processing method applied to the accounting drive engine in the accounting server 20 is proposed. Figure 2 , which is a flow chart of the transaction accounting processing method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the method may include:
[0067] S10: Parse the transaction information sent by the transaction server, and obtain the transaction data, transaction date and transaction type in the transaction information.
[0068] In this embodiment, transaction information is information generated by the transaction system when processing customer transaction requests. The transaction information includes: transaction data, transaction date and transaction type, wherein the transaction data includes: transaction amount and transaction direction and other information, the transaction date is based on the date of the transaction system, and the transaction type is the type of classification and accounting of transaction data. The correspondence between transaction data and transaction type can be determined according to accounting rules. When processing customer transaction requests, the transaction system determines the corresponding transaction type based on the transaction data.
[0069] After receiving the transaction information sent by the transaction system, the accounting driving engine parses the transaction information to determine the transaction data, transaction date, and transaction type contained in the transaction information. For example, the accounting driving engine can use a preset keyword extraction method to extract keywords from the transaction information to determine the transaction data, transaction date, and transaction type contained in the transaction information. For example, after the transaction system executes the transaction request, a transaction ticket will be generated. The transaction ticket contains transaction information. By sending the transaction ticket to the accounting system, the accounting driving engine parses the transaction information in the transaction ticket to obtain the transaction data, transaction date, and transaction type.
[0070] In some embodiments, the transaction system is not used to determine the transaction type corresponding to the transaction data, but the accounting driving engine determines the transaction type to which the transaction data belongs based on the transaction data.
[0071] Specifically, a correspondence between transaction data and transaction types is set in the accounting driving engine, and after the transaction data is parsed from the transaction information, the transaction type corresponding to the transaction data is determined.
[0072] S20: According to the transaction type, obtain the accounting sub-account, which is the account for recording the transaction data.
[0073] In this embodiment, the accounting sub-account is an internal account provided by the bank for accounting scenarios, and the transaction type is the type of transaction account to which the transaction belongs, such as a cash account, a liability account, etc.
[0074] Since the transactions involved in banks 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 accounting for this type of transaction, and the correspondence between various types of transactions and bookkeeping sub-accounts is defined. After the accounting driver engine parses the transaction information to obtain the transaction type, the corresponding bookkeeping sub-account is determined according to the transaction type.
[0075] For example, the various types of transactions may include: cash transactions, profit and loss transactions, owner's equity transactions, liability principal transactions, interest expense transactions, interest receivable and payable transactions, accounts receivable transactions, transition account type transactions, etc., where the transition accounts may be: large and small inter-bank accounts launched by the People's Bank of China, inter-bank accounts launched by the Central Bank, inter-bank accounts withdrawn by China UnionPay, etc.
[0076] S30: Determine different accounting methods corresponding to different accounting sub-accounts according to the processing dates and types of accounting sub-accounts corresponding to different information processing operations.
[0077] In this embodiment, different information processing operations include transaction processing operations and accounting processing operations. The processing date corresponding to the transaction processing operation is the transaction date, which is used to indicate the time when the transaction occurs in the transaction system. The processing date corresponding to the accounting processing operation is the accounting date, which is used to indicate the date on which the accounting system receives the transaction information.
[0078] Since the transaction system and the accounting system use different dates for date switching, the transaction date and the accounting date may be different. According to the transaction date and the accounting date, it can be determined whether the transaction occurred before or after the date switching of the transaction system. In the accounting drive system, the corresponding relationship between the type of accounting sub-account and the accounting method is pre-defined for transactions that occurred before the date switching of the transaction system and transactions that occurred after the date switching. After the accounting drive engine parses the transaction information to obtain the transaction date, it determines whether the transaction is a transaction before or after the date switching. After that, the different accounting methods corresponding to different accounting sub-accounts are determined according to the type of accounting sub-account, where the total accounting date corresponding to different accounting methods is based on the transaction date as the date base, and the date sequence is continuous on the transaction date according to the amount of transaction information.
[0079] Among them, the transaction information volume refers to the amount of transaction data that can be registered and accounted for within each accounting date specified by different accounting methods. All transaction data to be accounted for can be divided according to the transaction information volume, and all transaction data to be accounted for can be divided into multiple groups. According to the number of groups N in which the transaction data is located, the total accounting date T+N of the transaction data can be determined based on the transaction date T.
[0080] S40: According to different accounting methods and corresponding transaction data, accounting is performed on the accounting sub-accounts respectively within the total accounting dates corresponding to the different accounting methods.
[0081] In this embodiment, according to the transaction information volume specified by different accounting methods and all the transaction data to be recorded, the total accounting date T+N of the transaction data is determined, and the transaction data is recorded in the accounting sub-account within the total accounting date T+N, where N is greater than or equal to 1.
[0082] The transaction accounting processing method provided in the above embodiment determines the accounting sub-account corresponding to the transaction type in the transaction information, and determines different accounting methods for different accounting sub-accounts according to the processing dates and types of accounting sub-accounts corresponding to different information processing operations, so that the accounting sub-accounts are accounted for respectively within the total accounting date corresponding to the different accounting methods according to the different accounting methods and the corresponding transaction data. Since the total accounting date of the accounting method is obtained by continuing the date sequence on the transaction date according to the amount of transaction information, the continuous date N for accounting after the transaction date T can be determined according to the amount of transaction information, thereby realizing accounting for T+N days for the transaction data, so as to divert and account for the transaction information according to the processing dates and accounting sub-accounts corresponding to different information processing operations. On the one hand, it can reduce the accounting pressure of the accounting system, and on the other hand, it can avoid the failure to complete the accounting of the transaction information that needs to be accounted for in time by the transaction system, so as to ensure the normal accounting between the accounting system and the transaction system.
[0083] The following combination Figure 3 A detailed description is given of an implementation method for determining the accounting method of the accounting sub-account based on the transaction date and the type of the accounting sub-account.
[0084] Please refer to Figure 3 , which is a flow chart of the transaction accounting processing method provided in the embodiment of the present application Figure 2 ,like Figure 3 Therefore, the process of determining different accounting methods corresponding to different accounting sub-accounts according to the processing dates and types of accounting sub-accounts corresponding to different information processing operations in S30 may include:
[0085] S31: Determine the accounting date for the accounting processing operation on the transaction information.
[0086] In this embodiment, the transaction system and the accounting system operate on different dates. Generally, the transaction system switches dates before the accounting system, that is, the transaction system switches to the next day before the accounting system. Therefore, the transaction date of the transaction system and the accounting date of the accounting system for accounting of transaction information may be different. After receiving the transaction information sent by the transaction system, the accounting date of the accounting system when receiving the transaction information is determined.
[0087] S32: Determine different accounting methods corresponding to different accounting accounts according to the date relationship between the transaction date and the accounting date.
[0088] In this embodiment, in the accounting system, for different date relationships between transaction dates and accounting dates, the corresponding relationships between different accounting sub-accounts and accounting methods are pre-defined. After receiving the transaction information, the accounting driving engine determines the date relationship between the transaction date and the accounting date, and determines the different accounting methods corresponding to the different accounting sub-accounts according to the relationship between the transaction date and the accounting date.
[0089] In some embodiments, it is possible to determine whether a transaction occurs before or after a date switch based on the date relationship between the transaction date and the accounting date, and then determine different accounting methods corresponding to different accounting sub-accounts.
[0090] The transaction accounting processing method provided in the above embodiment determines different accounting methods corresponding to different accounting sub-accounts according to the relationship between the transaction date and the accounting date, thereby realizing the switching separation of transactions and accounting dates in a complete sense. Different accounting methods are adopted for different accounting sub-accounts according to the different relationships between the transaction date and the accounting date, so as to account for the accounting sub-accounts within the total accounting date corresponding to the different accounting methods. The continuous date N for accounting and accounting after the transaction date T can be determined according to the amount of transaction information, thereby realizing accounting and accounting for T+N days for the transaction data, so as to divert and account for the transaction information according to the processing dates and accounting sub-accounts corresponding to different information processing operations. On the one hand, it can reduce the accounting pressure of the accounting system, and on the other hand, it can avoid the failure to complete the accounting of transaction information that needs to be accounted for in time by the transaction system, thereby ensuring the normal accounting between the accounting system and the transaction system.
[0091] In a possible implementation, determining different accounting methods corresponding to different accounting sub-accounts according to the date relationship between the transaction date and the accounting date may include:
[0092] If the transaction date is greater than the accounting date, the different accounting methods corresponding to different accounting sub-accounts are determined based on the mapping relationship between the type of accounting sub-accounts and the accounting methods.
[0093] In this embodiment, if the transaction date is greater than the accounting date, it is determined that the transaction system sends the transaction information to the accounting system after the date switch occurs, that is, the transaction system has undergone a date switch, but the accounting system has not yet undergone a date switch; in this case, it is necessary to determine the different accounting methods corresponding to different accounting sub-accounts based on the mapping relationship between the type of accounting sub-accounts and the accounting methods pre-defined in the accounting system.
[0094] In some embodiments, if the transaction date is greater than the accounting date, determining different accounting methods corresponding to different accounting sub-accounts according to the mapping relationship between the type of accounting sub-account and the accounting method may include:
[0095] If the transaction date is greater than the accounting date, and the type of the accounting sub-account is the first type of accounting sub-account, the accounting method of the first type of accounting sub-account is determined to be the real-time accounting method; if the transaction date is greater than the accounting date, and the type of the accounting sub-account is the second type of accounting sub-account, the accounting method of the second type of accounting sub-account is determined to be the end-of-day collection method.
[0096] In this embodiment, when the transaction system has switched dates but the accounting system has not switched dates, different accounting methods need to be determined for different accounting sub-accounts.
[0097] Among them, if the bookkeeping sub-account corresponding to the transaction type targeted by the exchange is the first type of bookkeeping sub-account, and the transaction occurs in the trading system on T day, the interest generated by the transaction will take effect on T+1 day. However, due to network delays and other reasons, the trading system will send the transaction to the accounting system after the date is switched, that is, on T+1 day, so the accounting system will delay the interest generated by the transaction, resulting in loss of customer benefits. Therefore, for transactions belonging to the first type of bookkeeping sub-account, even if the trading system sends it to the accounting system on T+1 day, since the accounting system has not switched the date at this time, the accounting system needs to immediately account for the transaction data, that is, the first type of bookkeeping sub-account needs to adopt a real-time accounting method, update the first type of bookkeeping sub-account in real time according to the transaction data, and register a transaction detail in the account details, and determine that the status of the transaction detail has been recorded. Among them, the content that needs to be updated in the first type of bookkeeping sub-account includes at least: transaction amount, transaction direction, and the bookkeeping date needs to be indicated as the transaction date.
[0098] If the accounting sub-account corresponding to the transaction type targeted by the exchange is the second-type accounting sub-account, this type of transaction does not have high requirements for real-time performance. In order to reduce the accounting pressure of the accounting system, the second-type accounting sub-account can be accounted for by the end-of-day collection method, that is, the transaction can be accounted for after the end of any day.
[0099] In one possible implementation, if the accounting sub-account corresponding to the transaction type targeted by the exchange is a second-type accounting sub-account, in order to ensure that the transaction can be settled on any date, the transaction data needs to be registered first.
[0100] In some embodiments, the method for registering transaction data can be: based on the transaction data, register the uncollected amount, account details and debt collection details, the status of the transaction details in the transaction details is not recorded in the account, and the status of the debt collection details in the debt collection details is not recorded in the account.
[0101] In this embodiment, for transactions whose corresponding accounting sub-accounts are the second type of accounting sub-accounts, since real-time accounting is not required, the transaction data needs to be registered first, specifically, the uncollected amount register, the account detail register and the debt collection detail register.
[0102] Among them, the unreconciled amount refers to the amount that has been reconciled on the customer side after the transaction system processes the transaction but has not yet been reconciled in the bank account. It can be registered according to the transaction amount involved in the transaction data. The unreconciled amount registration book may include: the debit unreconciled amount and the credit unreconciled amount generated by multiple transactions; the account detail registration book and the debt collection detail registration book are registered separately according to the transaction account information, transaction amount and other detailed information included in the transaction data. The account detail registration book is the transaction detail information of the account where the transaction occurred, and the debt collection detail registration book is the transaction detail information of the account where the transaction occurred that has not been reconciled on the bank side. The account detail registration book and the debt collection detail registration book are both detailed information that needs to be compared during accounting. The transaction details in the account detail registration book and the debt collection details in the debt collection detail registration book are both registered as unrecorded.
[0103] According to the transaction types provided to the outside, multiple types of transactions are divided into two major types. Two internal accounting sub-accounts are created according to the two types of transactions, and the two accounting sub-accounts are defined as transaction sub-accounts and accounting sub-accounts. Each accounting sub-account is responsible for accounting for a large type of transaction. Among them, the first type of accounting sub-account is a transaction sub-account. The transaction sub-account needs to be driven by the transaction system for accounting. It can be accounted online through the transaction system, or it can be accounted synchronously with the transaction system's day-end batch run when the transaction system is batched at the end of the day, and the transaction date is used as the accounting date for accounting. For example, cash type transactions, liability principal type transactions, pending account type transactions, and transactions for transition account types belong to transaction sub-accounts.
[0104] The second type of bookkeeping sub-account is the accounting sub-account. The accounting sub-account can be driven by the transaction system or the accounting system. In this embodiment, the accounting system is used to drive the accounting, and the accounting date is used as the accounting date for accounting. For example, profit and loss type transactions, owner's equity type transactions, interest expense type transactions, and receivable and payable interest type transactions belong to the accounting sub-account.
[0105] The following combination Figure 4 A method for implementing the bookkeeping method of the end-of-day collection method is described in detail.
[0106] Please refer to Figure 4 , which is a flow chart of the transaction accounting processing method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, the process of recording the accounting sub-accounts according to different accounting methods and corresponding transaction data within the total accounting dates corresponding to the different accounting methods in S40 may include:
[0107] S41: Determine the number of days for recording the unreconciled amounts in the unreconciled amounts register book according to the unreconciled amounts register book and the amount of transaction information.
[0108] In this embodiment, the unrecorded amounts in the unrecorded amount register are divided according to the amount of transaction data that can be registered and accounted for within each accounting date defined in the transaction information volume, and all the transaction data to be accounted for are divided into multiple groups, and the accounting days for the multiple groups of transaction data to be accounted for are determined to be N.
[0109] S42: Determine the total accounting date based on the transaction date and the accounting days.
[0110] In this embodiment, according to the transaction date T and the accounting days N, the total accounting date for registering the unreconciled amount in the unreconciled amount register of the accounting system is determined to be T+N.
[0111] S43: During the general accounting date, the account balances of the second-category accounting sub-accounts are updated based on the register of uncollected amounts and the amount of transaction information.
[0112] In this embodiment, on each accounting date of the total accounting date T+N of the accounting system, the accounting driving engine obtains multiple unreconciled amounts corresponding to the transaction information volume from the unreconciled amount register based on the transaction information volume, updates the unreconciled amounts in the accounting sub-accounts, and updates the account balance based on the transaction direction and the previous balance direction of the unreconciled amounts. Finally, the transaction date, balance and balance direction of the transaction are used as the previous date, previous balance and previous balance direction, respectively.
[0113] In some embodiments, the balance direction is updated according to the debit or credit type. If it is a debit accounting account, the balance direction is income, and if it is a credit accounting account, the balance direction is expenditure.
[0114] Furthermore, the available balance of the account may also be calculated after the update.
[0115] S44: the status of the transaction details in the transaction details is updated to be accounted for, and the status of the debt collection details in the debt collection details is updated to be accounted for.
[0116] In this embodiment, for the updated uncollected amount, the status of the transaction details is modified to accounted in the transaction details, and the status of the collection details is modified to accounted in the collection details, thereby completing the accounting of the transaction.
[0117] In one possible implementation, the amount of transaction information may not be limited, and the accounting system records the unreconciled amounts in the register of unreconciled amounts on each accounting date. The unreconciled amounts that have not been fully recorded on an accounting date will continue to be recorded after the accounting system switches to the next accounting date, until the registration of the unreconciled amounts in the register of unreconciled amounts is completed after N days, thereby realizing the accounting of T+N days.
[0118] The transaction accounting processing method provided in the above embodiment is for transactions where the transaction date is greater than the accounting date and the accounting sub-account of the transaction type is an accounting sub-account. By registering the uncollected amount register, account details and debt collection details, the accounting sub-account is updated according to the contents in the register on each accounting date, so as to complete the accounting operation of all transaction data to be accounted in the uncollected amount register within the total accounting date T+N.
[0119] In a possible implementation, the method may further include:
[0120] If the transaction date is equal to the accounting date, it is determined that the accounting method for all types of accounting sub-accounts is real-time accounting.
[0121] In this embodiment, if the transaction date is equal to the accounting date, it is determined that the transaction system sends the transaction information to the accounting system before the date switch occurs, that is, the transaction system has not yet switched the date, and it is determined that both the transaction sub-account and the accounting sub-account adopt the real-time accounting method, that is, for the transaction information in which the accounting sub-account corresponding to the transaction type in the transaction information is the transaction sub-account, the transaction sub-account is updated in real time according to the transaction data, and a transaction detail is registered in the account details, and the status of the transaction detail is determined to be accounted. For the transaction information in which the accounting sub-account corresponding to the transaction type in the transaction information is the accounting sub-account, the accounting sub-account is updated in real time according to the transaction data, and a transaction detail is registered in the account details, and the status of the transaction detail is determined to be accounted.
[0122] It should be noted that, in the case where the transaction date is equal to the accounting date, there is no limit on the amount of transaction information in the real-time accounting method, and there is no need to group the accounting transaction data, that is, N is equal to 0, and the total accounting date is the transaction date T.
[0123] Based on the above method embodiment, the present application embodiment also provides a transaction accounting processing device. Figure 5 , is a schematic diagram of the structure of the transaction accounting processing device provided in the embodiment of the present application, such as Figure 5 As shown, the device comprises:
[0124] The transaction information parsing module 11 is used to parse the transaction information sent by the transaction server and obtain the transaction data, transaction date and transaction type in the transaction information;
[0125] The accounting sub-account determination module 12 is used to obtain the accounting sub-account according to the transaction type, and the accounting sub-account is the account for accounting the transaction data;
[0126] The accounting method determination module 13 is used to determine different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of accounting sub-accounts. The total accounting date corresponding to different accounting methods is based on the transaction date as the date basis, and the date sequence is continuous on the transaction date according to the transaction information volume;
[0127] The accounting module 14 is used to record the accounting sub-accounts according to different accounting methods and corresponding transaction data within the total accounting dates corresponding to different accounting methods.
[0128] Optionally, the accounting method determination module 13 includes:
[0129] A calculation date determination unit, used to determine the calculation date for performing a calculation processing operation on the transaction information;
[0130] The accounting method determination unit is used to determine different accounting methods corresponding to different accounting sub-accounts based on the date relationship between the transaction date and the accounting date.
[0131] Optionally, the accounting method determination unit is used to determine that the accounting method of all types of accounting accounts is real-time accounting method if the transaction date is equal to the settlement date.
[0132] Optionally, the accounting method determination unit includes:
[0133] A real-time accounting method determination unit, for determining the accounting method of the first-type accounting sub-account as the real-time accounting method if the transaction date is greater than the accounting date and the type of the accounting sub-account is the first-type accounting sub-account;
[0134] The day-end collection method determination unit is used to determine the accounting method of the second-type accounting sub-account as the day-end collection method if the transaction date is greater than the accounting date and the type of the accounting sub-account is the second-type accounting sub-account.
[0135] Optionally, the device further comprises:
[0136] The detail level module is used to register the uncollected amount register, account details and debt collection details according to the transaction data. The status of the transaction details in the transaction details is uncollected, and the status of the debt collection details in the debt collection details is uncollected.
[0137] Optionally, the accounting module 14 includes:
[0138] The accounting days calculation unit is used to determine the accounting days for recording the unreconciled amount register book according to the unreconciled amount register book and the transaction information volume;
[0139] A total accounting date determination unit is used to determine the total accounting date based on the transaction date and the accounting days;
[0140] The balance updating unit is used to update the account balance of the second type of accounting sub-account according to the uncollected amount register and the transaction information volume within the total accounting date;
[0141] The detail status updating unit is used to update the status of the transaction detail content in the transaction detail to be accounted for, and to update the status of the debt collection detail content in the debt collection detail to be accounted for.
[0142] Optionally, the accounting method determination unit is specifically used to determine that the accounting methods of all types of accounting accounts are real-time accounting methods if the transaction date is equal to the accounting date.
[0143] 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.
[0144] 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).
[0145] Please refer to Figure 6 , is a schematic diagram of a calculation server provided in an embodiment of the present application, such as Figure 6 As shown, the accounting server 20 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 20 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.
[0146] 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.
[0147] 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.
[0148] 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.
[0149] 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.
[0150] 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.
[0151] 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 accounting processing method, characterized in that: Applied to a calculation server, a transaction server and the calculation server are deployed in a distributed manner to respectively perform information processing operations for transactions and calculations, the method comprising: Parsing the transaction information sent by the transaction server to obtain transaction data, transaction date and transaction type in the transaction information; According to the transaction type, obtaining a bookkeeping sub-account, the bookkeeping sub-account being an account for bookkeeping the transaction data; According to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts, different accounting methods corresponding to the different accounting sub-accounts are determined, the different accounting methods are: real-time accounting method or end-of-day accounting method, the total accounting date of the real-time accounting method is the date when the transaction information is received, the total accounting date corresponding to the end-of-day accounting method is based on the transaction date, and the continuous date after the transaction date is determined according to the transaction information volume, wherein the transaction information volume is the transaction data volume registered and calculated within each accounting date specified by the end-of-day accounting method, all transaction data to be accounted are grouped according to the transaction information volume, the continuous date N is determined according to the number of groups where the transaction data are located, and the total accounting date T+N corresponding to the end-of-day accounting method is determined according to the transaction date T and the continuous date N; According to the different accounting methods and the corresponding transaction data, the accounting sub-accounts are respectively accounted for within the total accounting dates corresponding to the different accounting methods, wherein the transaction data is accounted in the accounting sub-accounts within the total accounting date T+N.
2. The method according to claim 1, characterized in that Determining different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts includes: Determine the accounting date for the accounting processing operation of the transaction information; According to the date relationship between the transaction date and the accounting date, different accounting methods corresponding to different accounting sub-accounts are determined.
3. The method according to claim 2, characterized in that Determining different accounting methods corresponding to different accounting sub-accounts according to the date relationship between the transaction date and the accounting date includes: If the transaction date is greater than the accounting date, different accounting methods corresponding to different accounting sub-accounts are determined according to the mapping relationship between the type of the accounting sub-account and the accounting method.
4. The method according to claim 3, characterized in that If the transaction date is greater than the accounting date, determining different accounting methods corresponding to different accounting sub-accounts according to the mapping relationship between the types of the accounting sub-accounts and the accounting methods includes: If the transaction date is greater than the accounting date, and the type of the accounting sub-account is a first-type accounting sub-account, determining that the accounting method of the first-type accounting sub-account is a real-time accounting method; If the transaction date is greater than the accounting date, and the type of the accounting sub-account is a second-type accounting sub-account, the accounting method of the second-type accounting sub-account is determined to be the end-of-day collection method.
5. The method according to claim 4, characterized in that If the transaction date is greater than the accounting date, and the type of the accounting sub-account is a second-type accounting sub-account, after determining that the accounting method of the second-type accounting sub-account is a day-end collection method, the method further includes: According to the transaction data, a register book of uncollected amounts, an account detail register book and a debt collection detail register book are registered, and the status of the transaction detail content corresponding to the transaction data in the account detail register book is unrecorded, and the status of the debt collection detail content corresponding to the transaction data in the debt collection detail register book is unrecorded, and the unrecorded indicates that the transaction data has not completed the transaction settlement.
6. The method according to claim 5, characterized in that The method of recording the sub-accounts according to the different accounting methods and the corresponding transaction data within the total accounting dates corresponding to the different accounting methods includes: Determining the number of days for recording the unreconciled amounts in the unreconciled amounts register book according to the unreconciled amounts register book and the transaction information volume; Determine the total accounting date according to the transaction date and the accounting days; On the general accounting date, updating the account balance of the second-category accounting sub-account according to the uncollected amount register and the transaction information volume; The status of the transaction details corresponding to the transaction data in the account details register is updated to have been accounted for, and the status of the debt collection details corresponding to the transaction data in the debt collection details register is updated to have been accounted for, and the accounted for indicates that the transaction data has completed transaction accounting.
7. The method according to claim 2, characterized in that The method further comprises: If the transaction date is equal to the accounting date, it is determined that the accounting methods of all types of the accounting sub-accounts are real-time accounting methods.
8. A transaction accounting processing device, characterized in that: Applied to a calculation server, a transaction server and the calculation server are deployed in a distributed manner to perform information processing operations for transactions and calculations respectively, the device comprises: A transaction information parsing module, used to parse the transaction information sent by the transaction server and obtain the transaction data, transaction date and transaction type in the transaction information; An accounting sub-account determination module, used to obtain an accounting sub-account according to the transaction type, wherein the accounting sub-account is an account for accounting the transaction data; An accounting method determination module is used to determine different accounting methods corresponding to different accounting sub-accounts according to the processing dates corresponding to different information processing operations and the types of the accounting sub-accounts, wherein the different accounting methods are: real-time accounting method or end-of-day accounting method, wherein the total accounting date of the real-time accounting method is the date when the transaction information is received, and the total accounting date corresponding to the end-of-day accounting method is based on the transaction date, and the continuous dates after the transaction date are determined according to the amount of transaction information, wherein the amount of transaction information is the amount of transaction data registered and calculated within each accounting date specified by the different accounting methods, and all transaction data to be accounted are grouped according to the amount of transaction information, and the continuous date N is determined according to the number of groups in which the transaction data is located, and the total accounting date T+N corresponding to the end-of-day accounting method is determined according to the transaction date T and the continuous date N; The accounting module is used to account for the accounting sub-accounts respectively within the total accounting dates corresponding to the different accounting methods according to the different accounting methods and the corresponding transaction data, wherein the transaction data is accounted in the accounting sub-accounts within the total accounting date T+N.
9. 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 accounting processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the transaction accounting processing method as described in any one of claims 1 to 7 are executed.
