Business data processing platform, data processing method, electronic device and storage medium

By introducing a rule library and preprocessor between the accounting system and the accounting system, real-time synchronization of accounting data is realized and accounting system is solved, and the problem of low data processing flexibility and scalability of the accounting system is improved, and the stability and performance of the system are improved.

CN119624674APending Publication Date: 2025-03-14HANGZHOU PINGPONG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411476687.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

In the prior art, the accounting system has low flexibility and scalability when processing data, resulting in release risks in every business demand iteration, and lack of message connection with the accounting system, resulting in lag in the information recognition and data processing of the accounting system.

Method used

It provides a business data processing platform, including an accounting system, an accounting system and a rule library. It loads, analyzes and processes accounting rules through the first preprocessor and the second preprocessor, generates accounting instructions, and pushes accounting data to the accounting system in real time through a message queue. The accounting system processes and updates account information regularly in a buffered accounting manner.

Benefits of technology

It improves the flexibility and scalability of the accounting system, reduces the release risks caused by iteration of business demands, and realizes real-time synchronization of accounting data and accounting system, improving the timeliness and accuracy of accounting data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119624674A_ABST
    Figure CN119624674A_ABST
Patent Text Reader

Abstract

The invention relates to a business data processing platform, a data processing method, an electronic device and a storage medium, in the business data processing platform, a first preprocessor is used for responding to a target bookkeeping request and matching a corresponding first target rule from a rule base; the accounting system is used for updating account information of a first account corresponding to the target accounting request according to the first target rule, and generating a first accounting detail corresponding to the target accounting request to obtain a first accounting processing result; pushing the first accounting processing result and the message to an accounting system; the second preprocessor is used for matching a corresponding second target rule from the rule base; and the accounting system is used for updating account information of a second account corresponding to the target accounting request and generating a second accounting detail corresponding to the target accounting request. The processing logic of the accounting system does not need to be changed frequently according to business changes, and the flexibility and expandability of data processing of the accounting system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a business data processing platform, a data processing method, an electronic device and a storage medium. Background Art

[0002] Accounting systems are often used as infrastructure services for payment systems, providing general, adaptable, and easily expandable accounting capabilities for upper-level businesses. Accounting systems can describe and restore business scenarios, and clearly and promptly reflect business conditions. At present, in related technologies, accounting systems are often closely coupled with businesses, and the processing logic and rules of accounting systems are transformed as business needs iterate. In addition, as accounting systems are public services for different businesses, changes to the accounting system caused by the iteration of needs in a certain business line will have an impact on other business lines. Therefore, every time the accounting system is upgraded and iterated with business needs, there will be a release risk.

[0003] Regarding the relevant technologies, there are still problems to be solved regarding the low flexibility and scalability of data processing in accounting systems. Summary of the invention

[0004] In this embodiment, a business data processing platform, a data processing method, an electronic device and a storage medium are provided to solve the problem of low flexibility and scalability in data processing of an accounting system in the related art.

[0005] In the first aspect, a business data processing platform is provided in this embodiment, including an account system, an accounting system and a rule base; wherein:

[0006] The accounting system is associated with a first preprocessor; the accounting system is associated with a second preprocessor; the first preprocessor and the second preprocessor are processors for loading and parsing accounting rules, and processing the accounting rules to generate accounting instructions;

[0007] The rule base includes a variety of accounting rules pre-configured for a variety of business scenarios;

[0008] The first preprocessor is used to respond to the target accounting request and match the corresponding first target rule from the rule base;

[0009] The accounting system is used to update the account information of the first account corresponding to the target accounting request according to the first target rule, and generate the first accounting details corresponding to the target accounting request to obtain the first accounting processing result; then push the first accounting processing result to the accounting system in real time through the message queue;

[0010] The second preprocessor is used to match a corresponding second target rule from the rule base according to the first accounting processing result;

[0011] The accounting system is used to generate an accounting request flow corresponding to the target accounting request in real time according to the second target rule in a buffered accounting manner, keep the account information of the second account corresponding to the target accounting request not updated, and mark the accounting request flow as unregistered;

[0012] The accounting system is also used to execute a pre-configured scheduled task, poll all accounting request flows marked as unregistered to determine all accounting requests for which balances have not been updated; update the account information of the corresponding second account according to the accounting requests corresponding to all accounting request flows marked as unregistered, and generate a second accounting detail; and then update the mark of the corresponding accounting request flow to registered.

[0013] In some of the embodiments, the accounting system is used to determine the accounting entry data of the first account corresponding to the target accounting request according to the first target rule, update the account information of the first account corresponding to the target accounting request according to the accounting entry data, and generate a first accounting detail corresponding to the target accounting request.

[0014] In some of the embodiments, the first pre-processor is further configured to generate a target accounting instruction for the target accounting request, and store the target accounting instruction in an associated database.

[0015] In some of the embodiments, the accounting system is used to update the account information of the first account corresponding to the target accounting request based on optimistic locking.

[0016] In some of the embodiments, the account type of the first account is pre-configured, and is adapted to a variety of fixed account types for different business scenarios.

[0017] In some embodiments, the account types of the first account include at least: a balance account, a frozen account, an account to be settled, and a settled account.

[0018] In some of the embodiments, the accounting system is also used to periodically execute pre-configured data accounting tasks; the data accounting tasks are used to perform data verification of general ledger information based on the account information of the second account and the second account details; the data accounting tasks are a number of pre-set accounting tasks that are implemented in the form of a computer program and automatically executed within a time period divided according to a specific time point; the data accounting tasks include: reconciliation error replenishment tasks, general ledger initialization tasks, income and expenditure details export tasks, internal account balance update tasks, voucher balance check tasks, summary voucher tasks, general ledger processing tasks, total and sub-verification tasks, and general ledger report tasks.

[0019] In a second aspect, a data processing method is provided in this embodiment, which is used in the business data processing platform described in the first aspect. The method includes:

[0020] In response to the received target accounting request, matching a corresponding first target rule from the rule base according to the target accounting request by the first preprocessor;

[0021] According to the first target rule, the account information of the first account is updated and a first account detail is generated to obtain a first account processing result;

[0022] The first accounting processing result is pushed to the accounting system, so that the accounting system matches the second target rule through the second preprocessor, updates the account information of the second account according to the second target rule, and generates the second accounting details.

[0023] In a third aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the data processing method described in the second aspect when executing the computer program.

[0024] In a fourth aspect, a storage medium is provided in this embodiment, on which a computer program is stored, and when the program is executed by a processor, the data processing method described in the second aspect is implemented.

[0025] Compared with the related art, the present embodiment provides a business data processing platform, a data processing method, an electronic device and a storage medium. The business data processing platform includes an accounting system, an accounting system and a rule base; wherein: the accounting system is associated with a first preprocessor; the accounting system is associated with a second preprocessor; the rule base includes a plurality of accounting rules pre-configured for a variety of business scenarios; the first preprocessor is used to respond to a target accounting request and match the corresponding first target rule from the rule base; the accounting system is used to update the account information of the first account corresponding to the target accounting request according to the first target rule, and generate a first accounting detail corresponding to the target accounting request to obtain a first accounting processing result; then the first accounting processing result is pushed to the accounting system as a message; the second preprocessor is used to send a first accounting detail to the accounting system according to the first accounting processing result; The accounting system is used to generate an accounting request flow corresponding to the target accounting request in real time according to the second target rule in a buffered accounting manner, keep the account information of the second account corresponding to the target accounting request unupdated, and mark the accounting request flow as unregistered; the accounting system is also used to execute a pre-configured scheduled task, poll all accounting request flows marked as unregistered, to determine all accounting requests that have not updated the balance; according to the accounting requests corresponding to all accounting request flows marked as unregistered, update the account information of the corresponding second account and generate the second accounting details; then, update the mark of the corresponding accounting request flow to registered. It can respond to different accounting requests based on pre-configured accounting rules, so there is no need to frequently change the processing logic of the accounting system according to business changes, which improves the flexibility and scalability of the accounting system in data processing.

[0026] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 is a structural block diagram of the business data processing platform of this embodiment;

[0029] Figure 2 is a flow chart of the data processing method of this embodiment;

[0030] Figure 3 is a data flow diagram of a business data processing platform in some of the embodiments;

[0031] Figure 4is a request response schematic diagram of a business data processing platform in some of the embodiments;

[0032] Figure 5 It is a schematic diagram of the execution content of the accounting daily batch cutting task in some embodiments. DETAILED DESCRIPTION

[0033] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0034] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0035] In this embodiment, a business data processing platform is provided. Figure 1 is a structural block diagram of the business data processing platform 100 of this embodiment, such as Figure 1 As shown, the business data processing platform 100 includes: an account system 102, an accounting system 104 and a rule base 106; wherein:

[0036] The accounting system 102 is associated with a first preprocessor; the accounting system 104 is associated with a second preprocessor; the rule base 106 includes a plurality of accounting rules pre-configured for a plurality of business scenarios; the first preprocessor is used to respond to a target accounting request and match a corresponding first target rule from the rule base 106; the accounting system 102 is used to update the account information of the first account corresponding to the target accounting request according to the first target rule, and generate a first accounting detail corresponding to the target accounting request to obtain a first accounting processing result; then the first accounting processing result is pushed to the accounting system 104; the second preprocessor is used to match the corresponding first target rule from the rule base 106 according to the first accounting processing result. The corresponding second target rule is matched; the accounting system 104 is used to generate an accounting request flow corresponding to the target accounting request in real time according to the second target rule in a buffered accounting manner, keep the account information of the second account corresponding to the target accounting request not updated, and mark the accounting request flow as unregistered; the accounting system is also used to execute a pre-configured timed task, poll all accounting request flows marked as unregistered, so as to determine all accounting requests that have not updated the balance; according to the accounting requests corresponding to all accounting request flows marked as unregistered, update the account information of the corresponding second account and generate a second accounting detail; thereafter, update the mark of the corresponding accounting request flow to registered.

[0037] In this business data processing platform, in order to meet the accounting needs, a system system that integrates business and finance can be established in advance. Specifically, in the associated database, a three-level accounting subject system can be stored in a tree structure. Among them, accounting subjects are categories for classifying and calculating the specific contents of accounting element objects. In the three-level accounting subjects, assets, liabilities, profit and loss categories, and common categories are first-level subjects, that is, the top-level subjects. Second-level subjects are subdivisions under first-level subjects, and third-level subjects are subdivisions under second-level subjects. A tree structure can be established for each level of subjects.

[0038] For example, under the first-level account "Assets", "Bank Deposits" can be set as a second-level account, and under bank deposits, "Own Funds" and "Reserves" corresponding to each bank can be set as third-level accounts. Unique identifiers can also be set for accounting accounts of different categories.

[0039] In addition, internal accounts can be created in the database according to business scenarios. The internal accounts are used to calculate receivables, payables, fees, marketing, in-transit and other financial purposes. You can also classify the account type, account debit and credit direction and other attributes in the database.

[0040] For example, different type numbers can be set for internal accounts of different account types, and corresponding account names can be set according to specific businesses, such as "Bank Deposits", "Accounts Receivable - Awaiting Settlement", "Fee Income - User - Personal Transfer", "Fee Income - User - Other Personal" and so on.

[0041] In addition, a comparison table between pre-established accounting subjects and internal account types can be stored in the database. When an accounting operation occurs, the corresponding accounting subject can be queried in the database according to the internal account being recorded. For example, the name of the accounting subject can be set to be consistent with the name of the corresponding internal account. For example, the internal account named "accounts payable-to be settled" has the same corresponding subject name as "accounts receivable-to be settled".

[0042] In particular, in this embodiment, different business scenarios are abstracted and aggregated to form accounting rules. Specifically, according to the business scenario, accounting entries are set through three codes, namely, product code, transaction code, and business code, and accounting entries are accounting rules. When setting accounting rules, a set of accounting rules can be based on the double-entry debit and credit accounting method, so that at least two records of debit and credit are recorded, respectively recording the account types of the debit and credit parties and the account identifiers of internal accounts and external accounts, and loaded into the database. Among them, the external account refers to the external customer account. Double-entry accounting refers to an accounting method in which each economic business must be recorded in two or more interconnected accounts at the same time, and the debit and credit require equal debit. The account type is used to identify the purpose of account funds. For example, a debit and credit record may include a product name (for example, Internet payment), a transaction type, a transaction name (for example, cash withdrawal), an identifier indicating the business type, a business name (for example, credit card repayment, user cash withdrawal), a debit and credit identifier (debit or credit), an associated account number, an associated account name, an account type, an internal account or an external account, etc.

[0043] In addition, general external account types can be pre-set, such as balance accounts, frozen accounts, pending settlement accounts, and settlement accounts, thereby restricting users from creating accounts based on the set inherent account types and preventing users from adding new account types at will due to business changes and expansions.

[0044] The first preprocessor can be a processor that loads and parses accounting rules, and generates accounting instructions after processing the accounting rules. The second preprocessor can also be a processor that loads and parses accounting rules, and generates accounting instructions after processing the accounting rules. The difference between the second preprocessor and the first preprocessor is that the second preprocessor acts on the accounting system, while the first preprocessor acts on the accounting system. The accounting system can be an information system for managing account information and account details corresponding to external accounts used by users, and providing account books with accounting capabilities for upper-level businesses. The accounting system can respond to accounting requests sent by associated business systems, and update account information and generate account details for corresponding external accounts. The accounting system can be an information system for processing internal account accounts. It can be understood that the first preprocessor, as an accounting engine in front of the accounting system, parses accounting rules and fills information into business data according to the received accounting requests. The second pre-processor serves as an accounting engine in front of the accounting system, and is used to parse the accounting rules of the received account data and fill in the business data with information, and then trigger the accounting system to perform the corresponding accounting tasks. The above-mentioned rule base can be a database with a variety of accounting rules pre-set. The accounting rules in the rule base can be added, deleted and modified in a configurable manner. In particular, in order to improve the query performance, the accounting rules can be cached. That is, after starting the application service of the business data processing platform, the accounting rules in the database will be read and loaded into the memory. The above-mentioned first account is an external account.

[0045] It can be understood that the first target rule is an accounting rule in a pre-configured rule base that matches the target accounting request, and the second target rule is an accounting rule corresponding to the accounting data matched by the accounting engine from the rule base.

[0046] When the associated business system sends a target accounting request to the accounting system, the first preprocessor (i.e., the accounting engine) will respond to the target accounting request, and parse the corresponding first target rule from the rule base according to the three codes (product code, transaction code, and business code) carried by the target accounting request. After that, the corresponding account type, account ID, and other information in the first target rule are filled into the business data corresponding to the target accounting request, thereby generating an accounting instruction. The generated accounting instruction can be stored in the database as a record. Afterwards, after the accounting instruction is successfully generated, the account information such as the account balance of the external account is updated according to the first target rule, and the corresponding first account account details are generated as the corresponding accounting data. The accounting system only performs accounting operations on the accounts of external accounts.

[0047] Afterwards, the accounting system will send the generated accounting data to the accounting system through message queue (MQ) asynchronous messaging. The second preprocessor (accounting engine) of the accounting system parses the matching second target rule, and then updates the internal account balance in the same way as the accounting system, and then generates the internal account details.

[0048] In addition, in the accounting system, the update of internal accounts can adopt the buffered accounting method, first only recording the accounting request flow, but not corresponding to the update of the account balance of the second account, at this time, the corresponding accounting request flow is marked as "unregistered". According to the pre-configured timed task, the accounting request flow marked as "unregistered" is searched in a polling manner to determine the accounting request that has not been updated, and the internal account balance is updated according to the corresponding accounting request to generate the accounting details. After the update is successful, the accounting flow is updated to "already accounted" to avoid repeated accounting in the next polling task.

[0049] In this embodiment, considering that the update frequency of internal accounts is relatively high, in order to improve accounting performance, a buffered accounting method is adopted. The accounting request flow is first registered, and then the balance is uniformly updated in a polling manner, thereby improving accounting performance, reducing request response time, and improving system throughput.

[0050] In related technologies, the accounting system is often closely coupled with the business, and the processing logic and rules of the accounting system are modified as the business needs iterate. In addition, as a public service for different businesses, changes in the accounting system caused by the iteration of the needs of a certain business line will have an impact on other business lines. Therefore, every time the accounting system is upgraded and iterated with business needs, there will be a release risk. Therefore, there is a problem in the related technology that the flexibility and scalability of the accounting system for data processing are low.

[0051] Moreover, in the related technologies, the accounting system only focuses on the business account, lacks the message connection with the accounting system, and cannot synchronize the messages with the accounting system, thus failing to form an integrated business and finance system. As a result, it will be impossible to convert business data into the data required by finance in real time, causing the information acquisition and data processing of the accounting system to lag behind.

[0052] In this regard, this embodiment uses the configuration of accounting rules, matches corresponding accounting rules for different accounting requests through the accounting engine, and realizes the update of account information and the generation of accounting details based on the accounting rules. Therefore, it is possible to achieve the decoupling of the accounting system and the business, and respond to different accounting requests with configured accounting rules, so that there is no need to frequently iterate and update the accounting processing logic of the accounting system, thereby improving the stability and performance of the accounting system. Compared with related technologies, the flexibility and scalability of data processing are improved. In addition, the accounting data of the accounting system is pushed to the accounting system in real time through message push, so that the accounting system can timely perform corresponding data accounting processing based on the business data of the accounting system, and the accounting system and the accounting system are connected in series, so that the business data can be presented to the financial personnel in real time for timely corresponding responses. In addition, it is also convenient to reflect the business status in a timely manner so that decision makers can make decisions in a timely manner.

[0053] The business data processing platform provided in this embodiment can respond to different accounting requests based on pre-configured accounting rules. Therefore, there is no need to frequently change the processing logic of the accounting system according to business changes, which improves the flexibility and scalability of the accounting system for data processing.

[0054] In one embodiment, the accounting system is used to determine the accounting entry data of the first account corresponding to the target accounting request according to the first target rule, update the account information of the first account corresponding to the target accounting request according to the accounting entry data, and generate a first accounting detail corresponding to the target accounting request.

[0055] Among them, the accounting instruction is generated according to the accounting engine, and the number of entries of the first account (external account) affected by the accounting is parsed and processed through the first target rule; one accounting request corresponds to one accounting instruction and multiple accounting entries (the number of entries in the accounting rules). After the accounting instruction is successfully generated, the accounting instruction will be stored in the database, and then, according to the accounting entry data, the balance of the external account will be updated, and the accounting details will be generated.

[0056] This embodiment can accurately update external account information and generate account details based on the matching of accounting rules, thereby improving the flexibility and scalability of the accounting system in processing accounting requests.

[0057] In one embodiment, the first pre-processor is further configured to generate a target accounting instruction for the target accounting request, and store the target accounting instruction in an associated database.

[0058] Furthermore, in one embodiment, the accounting system is configured to update the account information of the first account corresponding to the target accounting request based on the optimistic lock.

[0059] Specifically, in this embodiment, the balance update scheme of "select for update" which uses pessimistic locks is cancelled and replaced by optimistic locks to implement the update-first-then-query method. In addition, the property that the balance cannot be overdrawn can also be set on the account attribute. That is, in this embodiment, in the manner of "update table set balance=balance–Xwhere balance–X>=0", the updated balance is equal to the current balance plus or minus the current amount. In order to prevent the balance from being overdrawn, the condition is set to be greater than or equal to 0 after the update.

[0060] In the related art, purely from the perspective of fund security risk, the pessimistic locking technology solution is used to implement account balance updates, which has poor accounting performance and cannot meet large-scale business needs in high-concurrency and high-throughput business scenarios. Compared with the related art, this embodiment takes into account that the pessimistic locking technology will increase system overhead and block system threads in high-concurrency and high-throughput scenarios, thereby increasing the failure rate of business, and thus adapts to the optimistic locking technology, which can improve accounting performance, reduce request response time, and improve system throughput.

[0061] In addition, in one embodiment, the account type of the first account is pre-configured to adapt to multiple fixed account types for different business scenarios. In this embodiment, based on the needs of statistical business scenarios, fixed account types for general external accounts are set, for example, balance accounts, frozen accounts, pending settlement accounts, and settlement accounts, and the corresponding account types are stored in the corresponding database in the form of fields. Therefore, when a user creates an external account, the type of the user's external account is limited based on the set fixed account type, avoiding the user's arbitrary expansion and addition of new account types.

[0062] In the related art, there are still problems of account type abuse and lack of unified management of account types. Account type abuse will increase business complexity and bring asset loss risks in the case of system transformation and account merger. In this regard, the universal fixed account type set in this embodiment can avoid account type abuse, reduce business complexity, and avoid asset loss risks.

[0063] Additionally, in one embodiment, the accounting system is used to generate an accounting request flow corresponding to a target accounting request in real time according to a second target rule, and mark the accounting request flow as unregistered; the accounting system is also used to execute a pre-configured timed task to poll all accounting request flows marked as unregistered, update the account information of the corresponding second account according to the accounting requests corresponding to all accounting request flows marked as unregistered, generate a second accounting detail, and update the mark to registered.

[0064] Additionally, in one embodiment, the accounting system is further configured to periodically execute pre-configured data accounting tasks; the data accounting tasks are configured to perform data verification of the general ledger information based on the account information of the second account and the second account details.

[0065] Among them, the day cut is to use a specific time point as the boundary for different accounting periods in the accounting system. This specific time point can be set as the end time of each working day, such as 24:00:00. The accounting system day cut can start the day cut task at 24:00:00, switch to the next accounting day, and use this time point as the boundary of different accounting periods. The accounting system calculates data based on the accounting day. The general ledger represents the accounting book information, which contains the summary information of all the accounts of the enterprise, and reflects all the economic activities of the enterprise in a specific period, such as the balance sheet and income statement.

[0066] The above data accounting tasks are several pre-set accounting tasks that are automatically executed and implemented in the form of computer programs within a period divided according to a specific time point. For example, according to the needs of the actual application scenario, daily tasks may include tasks for reconciliation error compensation, initialization of the general ledger, export of income and expenditure details, update of internal account balances, subpoena balance check tasks, summary subpoena tasks, general ledger processing tasks, total and sub-check tasks, and general ledger report tasks. Among them, subpoenas refer to the original vouchers of accounting vouchers.

[0067] Among them, the task of reconciliation error supplementation is used to check the data consistency between the account system and the accounting system, and the missing data needs to be supplemented; the task of initializing the general ledger is used to initialize the general ledger at the beginning of each accounting day, and set the balance of each level of accounting account to 0. The task of exporting income and expenditure details is used to clear the temporary table data to avoid excessive amount of overall income and expenditure details data, and then export the data of the day to the temporary table. The task of updating the balance of internal accounts is used to update the balance of internal accounts at the end of the day when the internal account attribute is the end of the day update flag. The task of subpoena balance check is used for trial balance check and debit and credit balance check, and saves unbalanced data to the pre-established abnormal data table. The task of summarizing subpoenas is used to summarize the daily amount and number of transactions according to the account type, and supplement the account information according to the reconciliation relationship table of the accounting account. The task of general ledger processing is used to update the balance of leaf accounts (third-level accounts) according to the results of the summary subpoena task, and then update the balance of the upper-level accounts by organization collection and recursion, and finally update the third-level accounts. The general and sub-account verification task is used to count the sub-account balances of all external accounts in the accounting system and to check whether the general ledger balances after the general ledger processing task is executed are consistent. The general ledger report task is used to generate a balance sheet based on the data processed by the general ledger processing task.

[0068] In this embodiment, a data processing method is provided, which is used for the business data processing platform provided in the above embodiment. Figure 2 is a flow chart of the data processing method of this embodiment, such as Figure 2 As shown, the process includes the following steps:

[0069] Step S210: In response to the received target accounting request, the first pre-processor matches the corresponding first target rule from the rule base according to the target accounting request.

[0070] Step S220: According to the first target rule, the account information of the first account is updated and a first account detail is generated to obtain a first account processing result.

[0071] Step S230, push the first accounting processing result and message to the accounting system, so that the accounting system matches the second target rule through the second preprocessor, updates the account information of the second account according to the second target rule, and generates the second accounting details.

[0072] Through the above steps S210 to S230, different accounting requests can be responded to based on pre-configured accounting rules, so there is no need to frequently change the processing logic of the accounting system according to business changes, which improves the flexibility and scalability of data processing of the accounting system.

[0073] Figure 3 Schematic diagram of data flow of business data processing platforms in some embodiments; Figure 3 As shown in the figure, after the payment core, clearing and settlement and other businesses initiate accounting requests to the accounting system, the accounting engine will execute the daily registration of accounting flow and daily update of sub-accounts, generate the accounting details of external accounts and update the balances of external accounts. The accounting engine will also execute the daily registration of accounting entries and the end-of-day update of accounting sub-accounts, generate the accounting details of internal accounts and update the balances of internal accounts.

[0074] Figure 4 Schematic diagram of request response of the business data processing platform in some embodiments; Figure 4 As shown in the figure, when the business system initiates a recharge request to the accounting system for account A, the transaction driver module of the accounting system will register the accounting flow of account A, update the balance, and notify the accounting system. The accounting system will register the accounting flow, update the internal account balance of "receivables-to-be-liquidated", perform daily cutting tasks, summarize the account balances level by level, calculate the account general ledger, and finally perform a total and sub-check together with the account general ledger and the customer account balance.

[0075] Figure 5 FIG. 1 is a schematic diagram of the execution content of the accounting daily batch cutting task in some embodiments. Figure 5As shown in the figure, the batch run task can be started at the time point of "23:58:00", and the task master table and task subtable representing the accounting daily batch run task can be accessed. The task master table controls the status of the entire accounting daily batch run task, and the task subtable controls the status of each subtask. The corresponding daily batch run task is executed according to the task master table and task subtable. Among them, the batch run task refers to the data processing and settlement work involving the accounting information system at a specific time point every day. Execute the accounting platform daily batch run, wherein the accounting platform daily batch run task is executed according to the platform operation table, platform historical operation table, and task subtable indicating the specific accounting day. Perform the reconciliation difference account replenishment task according to the internal account accounting flow table and the internal account account balance table. Execute the general ledger initialization task, use the computer program to back up the data to the general ledger historical balance table, and initialize the general ledger balance table. In the task of exporting the income and expenditure details, clear the daily account details table; assign values ​​from the accounting voucher table to the daily account details table. In the internal account balance update task, update the internal account account details table, internal account account balance, and update the balance of the day according to the non-real-time entry income and expenditure details; register the internal account historical balance information, and back up the balance of the day to the internal account historical balance table; initialize the internal account balance information, and update the balance of the next day in the internal account balance table to 0. In the subpoena balance check task, delete the temporary subpoena table; summarize the information from the daily account details table to the temporary subpoena table; import the unbalanced subpoenas from the temporary subpoena table to the subpoena error table; update the timestamp in the subpoena error table. The summary subpoena task includes clearing the daily account fund income and expenditure details summary temporary table; summarizing the daily amount and number of occurrences into the daily account fund income and expenditure details summary temporary table by account type; and supplementing the account number information.

[0076] In the general ledger processing task, update the general ledger balance; collect by organization, and update the superior organization cyclically; cyclically update the superior subject; periodically summarize the general ledger information. In the general-to-sub-check task, update the external account sub-account balance in the general-to-sub-check table; update the internal account sub-account balance in the general-to-sub-check table; update the general ledger balance in the general-to-sub-check table; check whether the general ledger month is equal to the sub-account month and the internal account balance. Finally, end the task according to the task master table and task sub-table.

[0077] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0078] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0079] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0080] S1, in response to a received target accounting request, matching a corresponding first target rule from a rule base according to the target accounting request by a first pre-processor;

[0081] S2, according to the first target rule, updating the account information of the first account and generating a first account detail to obtain a first account processing result;

[0082] S3, push the first accounting processing result and message to the accounting system, so that the accounting system matches the second target rule through the second preprocessor, updates the account information of the second account according to the second target rule, and generates the second accounting details.

[0083] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0084] In addition, in combination with the data processing method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the data processing method. The storage medium stores a computer program, and when the computer program is executed by a processor, any one of the data processing methods in the above embodiments is implemented.

[0085] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0086] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0087] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0088] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0089] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A business data processing platform, characterized in that: It includes account system, accounting system and rule base; among which: The accounting system is associated with a first preprocessor; the accounting system is associated with a second preprocessor; the first preprocessor and the second preprocessor are processors for loading and parsing accounting rules, and processing the accounting rules to generate accounting instructions; The rule base includes a variety of accounting rules pre-configured for a variety of business scenarios; The first preprocessor is used to respond to the target accounting request and match the corresponding first target rule from the rule base; The accounting system is used to update the account information of the first account corresponding to the target accounting request according to the first target rule, and generate the first accounting details corresponding to the target accounting request to obtain the first accounting processing result; then push the first accounting processing result to the accounting system in real time through the message queue; The second preprocessor is used to match a corresponding second target rule from the rule base according to the first accounting processing result; The accounting system is used to generate an accounting request flow corresponding to the target accounting request in real time according to the second target rule in a buffered accounting manner, keep the account information of the second account corresponding to the target accounting request not updated, and mark the accounting request flow as unregistered; The accounting system is also used to execute a pre-configured scheduled task, poll all accounting request flows marked as unregistered to determine all accounting requests for which balances have not been updated; update the account information of the corresponding second account according to the accounting requests corresponding to all accounting request flows marked as unregistered, and generate a second accounting detail; and then update the mark of the corresponding accounting request flow to registered.

2. The business data processing platform according to claim 1, characterized in that: The accounting system is used to determine the accounting entry data of the first account corresponding to the target accounting request according to the first target rule, update the account information of the first account corresponding to the target accounting request according to the accounting entry data, and generate a first accounting detail corresponding to the target accounting request.

3. The business data processing platform according to claim 1, characterized in that: The first preprocessor is further configured to generate a target accounting instruction for the target accounting request, and store the target accounting instruction in an associated database.

4. The business data processing platform according to claim 1, characterized in that: The accounting system is used to update the account information of the first account corresponding to the target accounting request based on optimistic locking.

5. The business data processing platform according to claim 1, characterized in that: The account type of the first account is pre-configured and is adapted to multiple fixed account types for different business scenarios.

6. The business data processing platform according to claim 5, characterized in that: The account types of the first account include at least: a balance account, a frozen account, an account to be settled, and a settled account.

7. The business data processing platform according to any one of claims 1 to 6, characterized in that: The accounting system is also used to periodically execute pre-configured data accounting tasks; the data accounting tasks are used to perform data verification of general ledger information based on the account information of the second account and the second account details; the data accounting tasks are a number of pre-set accounting tasks that are implemented in the form of computer programs and automatically executed within a time period divided according to a specific time point; The data accounting tasks include: reconciliation error compensation tasks, general ledger initialization tasks, income and expenditure details export tasks, internal account balance update tasks, subpoena balance check tasks, summary subpoena tasks, general ledger processing tasks, total and sub-check tasks and general ledger report tasks.

8. A data processing method, characterized in that: A business data processing platform for use in any one of claims 1 to 7, the method comprising: In response to the received target accounting request, matching a corresponding first target rule from the rule base according to the target accounting request by the first preprocessor; According to the first target rule, the account information of the first account is updated and a first account detail is generated to obtain a first account processing result; The first accounting processing result is pushed to the accounting system, so that the accounting system matches the second target rule through the second preprocessor, updates the account information of the second account according to the second target rule, and generates the second accounting details.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the data processing method according to claim 8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the data processing method according to claim 8 are implemented.