Data verification method and device, electronic equipment and storage medium

By automatically judging and correcting the business rules and quantity abnormalities of transaction flows in the electronic equipment of securities companies, the problems of low manual audit efficiency and poor accuracy are solved, and efficient and accurate data verification is achieved.

CN120374112APending Publication Date: 2025-07-25CSC FINANCIAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510446696.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, securities companies mainly rely on manual audits to verify holding data, and there are problems of low efficiency and poor data accuracy.

Method used

Use electronic devices to obtain transaction flows from the transaction database, judge whether it complies with business rules, and correct it if it does not comply. Then determine whether the transaction quantity is abnormal, and correct it when it is abnormal, and finally determine that the transaction flow verification is completed.

Benefits of technology

It improves the efficiency and accuracy of data verification, avoids errors in manual audits, and ensures the integrity and consistency of transaction data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120374112A_ABST
    Figure CN120374112A_ABST
Patent Text Reader

Abstract

The invention provides a data verification method and device, electronic equipment and a storage medium, and relates to the technical field of data processing. The method comprises the following steps: acquiring a transaction flow of a target account, and determining a current to-be-processed transaction flow; judging whether the current to-be-processed transaction flow accords with a business rule corresponding to the business type of the current to-be-processed transaction flow or not; under the condition that the business rule is not met, executing a first correction process to enable the current transaction flow to be processed to meet the business rule; under the condition of conforming to the business rule, judging whether the transaction quantity in the current to-be-processed transaction flow is abnormal or not; in response to transaction quantity abnormity in the current to-be-processed transaction flow, executing a second correction process to enable the transaction quantity of the current to-be-processed transaction flow to be not abnormal; and in response to the fact that the transaction number of the current to-be-processed transaction flow is not abnormal, it is determined that verification of the current to-be-processed transaction flow is completed. According to the invention, the verification efficiency can be improved, and the data accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly to a data verification method, apparatus, electronic device, and storage medium. Background Art

[0002] Securities companies need to plan investment portfolios, formulate trading strategies, and manage potential risks for various financial assets based on accurate position data. Among them, various financial assets can include stocks, bonds, options, and a wide variety of financial derivatives, and position data can include the number of positions, cost, market value, etc.

[0003] In the prior art, securities companies can use manual auditing methods to verify the position data of various financial assets they hold. For example, a securities company stores the remaining number of stocks at the close of the previous day, and the exchange can send the number of stocks bought on the current day and the total number of stocks after the purchase to the securities company. The verification process can include: the securities company manually calculates the sum of the number of stocks bought on the current day and the remaining number of stocks at the close of the previous day, and then checks whether the received total number of stocks is the same as the calculated sum. If not, it can be determined that there is an error in the data sent by the exchange.

[0004] However, the manual auditing method has errors and it is difficult to achieve effective verification. How to verify position data and improve verification efficiency while improving data accuracy is an urgent problem to be solved. Summary of the Invention

[0005] The purpose of the embodiments of the present invention is to provide a data verification method, apparatus, electronic device, and storage medium to improve verification efficiency while improving data accuracy. The specific technical solutions are as follows:

[0006] In a first aspect, the embodiments of the present invention provide a data verification method applied to an electronic device. The method includes:

[0007] Obtain the transaction records of a target account from a transaction database storing multiple transaction records; where each transaction record contains the business type and transaction quantity of the transaction record.

[0008] Based on the obtained transaction records, determine the current transaction record to be processed.

[0009] Judge whether the current transaction record to be processed conforms to the business rules corresponding to the business type of the current transaction record to be processed.

[0010] In the case where the current transaction record to be processed does not conform to the business rules, execute a first correction process for the current transaction record to be processed in the transaction database so that the current transaction record to be processed conforms to the business rules;

[0011] In the case where the current transaction record to be processed conforms to the business rules, determine whether the number of transactions in the current transaction record to be processed is abnormal;

[0012] In response to the number of transactions in the current transaction record to be processed being abnormal, execute a second correction process so that the number of transactions in the current transaction record to be processed is not abnormal;

[0013] In response to the number of transactions in the current transaction record to be processed not being abnormal, determine that the verification of the current transaction record to be processed is completed.

[0014] Optionally, the determining the current transaction record to be processed based on the acquired transaction records includes:

[0015] For each acquired transaction record, if the transaction record conforms to the preset data rules, write the transaction record into the local database; wherein, the preset data rules include at least one of the following: the primary key value of the acquired transaction record does not exist in the local database, the data type of the data in the acquired transaction record is the same as the data type in the local database, and the data in the acquired transaction record belongs to the string type and the number of characters does not exceed the preset number of characters;

[0016] Read the transaction records of the target account from the local database and add the read transaction records to the message queue; wherein, the arrangement order of each transaction record in the message queue represents the processing order of each transaction record;

[0017] Select an unprocessed transaction record from the message queue in accordance with the arrangement order as the current transaction record to be processed;

[0018] The method further includes:

[0019] In response to the completion of the verification process for the current transaction record to be processed, return to execute the step of selecting an unprocessed transaction record from the message queue in accordance with the arrangement order as the current transaction record to be processed.

[0020] Optionally, the message queue includes multiple sub-message queues, the priorities of each sub-message queue are different, and the processing order of the transaction records in the sub-message queue with a higher priority is before the processing order of the transaction records in the sub-message queue with a lower priority. The transaction database includes multiple types of transaction sub-databases; the priorities of each type of transaction sub-database are different;

[0021] Adding the read transaction flow to the message queue includes:

[0022] If the priority of the transaction sub-database from which the read transaction flow is sourced is higher than that of other transaction sub-databases, determine, among the multiple sub-message queues of the message queue, the sub-message queue with a priority higher than that of other sub-message queues;

[0023] Add the read transaction flow to the determined sub-message queue;

[0024] And / or,

[0025] Obtaining the transaction flow of the target account from the transaction database storing multiple transaction flows includes:

[0026] When the preset acquisition condition is satisfied, obtain the transaction flow of the target account from the transaction database storing multiple transaction flows; wherein, the preset acquisition condition includes: the transaction database has a completion flag indicating the completion of the transaction flow warehousing, and / or, reaching a preset moment.

[0027] Optionally, each transaction flow also includes the transaction moment of this transaction flow and the transaction asset identifier;

[0028] Judging whether the number of transactions in the current to-be-processed transaction flow is abnormal includes:

[0029] Judge whether the number of transactions in the current to-be-processed transaction flow exceeds the current position quantity corresponding to the transaction asset identifier in the current to-be-processed transaction flow, to obtain a result indicating whether the number of transactions in the current to-be-processed transaction flow is abnormal; wherein, the current position quantity corresponding to the transaction asset identifier in any transaction flow is: obtained by adjusting the historical position quantity of the asset represented by this transaction asset identifier stored locally with the number of transactions in the historical transaction flow corresponding to this transaction flow; the historical transaction flow corresponding to this transaction flow is: the transaction flow with the same transaction asset identifier as this transaction flow and with a transaction moment before the transaction moment of this transaction flow.

[0030] Optionally, the first correction process includes:

[0031] Push a first type of notification characterizing the business rules that the current transaction record to be processed does not conform to to a first receiving end, so that in response to receiving the first type of notification, the first receiving end outputs the first type of notification to instruct a first target person to correct the current transaction record to be processed in the transaction database according to the business rules that the current transaction record to be processed does not conform to; and, obtain the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and return to execute the step of determining whether the current transaction record to be processed conforms to the business rules corresponding to the business type of the current transaction record to be processed; and / or,

[0032] The second correction process includes:

[0033] Push a second type of notification characterizing the abnormal transaction quantity in the current transaction record to be processed to a second receiving end, so that in response to receiving the second type of notification, the second receiving end outputs the second type of notification to instruct a second target person to correct the transaction quantity of the current transaction record to be processed in the transaction database; and, obtain the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and return to the step of determining whether the transaction quantity in the current transaction record to be processed is abnormal.

[0034] Optionally, each transaction record further includes the transaction amount of this transaction record;

[0035] The obtaining the transaction records of the target account from the transaction database storing multiple transaction records includes:

[0036] Obtain each transaction record of the target account from the transaction database storing multiple transaction records from the previous preset accounting moment to the current moment;

[0037] The method further includes:

[0038] When reaching the current preset accounting moment, use each transaction record of the target account that has completed data verification obtained from the previous preset accounting moment to the current preset accounting moment as the current transaction records to be accounted;

[0039] Based on the transaction amounts of the current transaction records to be accounted, and the first account balance of the target account stored locally at the previous preset accounting moment, calculate the second account balance of the target account at the current preset accounting moment;

[0040] Calculate the difference between the first account balance and the second account balance;

[0041] If the calculated difference is not within the preset difference range, a third type of notification indicating that the account balance of the target account is abnormal is pushed to a third receiving end, so that the third receiving end outputs the third type of notification in response to receiving the third type of notification to instruct a third target person to correct the transaction flow of the target account in the transaction database; and, obtain each transaction flow of the target account from the corrected previous preset accounting moment to the current preset accounting moment in the transaction database as the transaction amount of each current transaction flow to be accounted, and return to execute the step of calculating the second account balance of the target account at the current preset accounting moment based on the transaction amount of each current transaction flow to be accounted and the first account balance of the target account stored locally at the previous preset accounting moment until the calculated difference is within the preset difference range.

[0042] Optionally, each transaction flow further includes: the change amount and the current amount of each asset accounting element;

[0043] The method further includes:

[0044] If the calculated difference is within the preset difference range, adjust the historical amount of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in each current transaction flow to be accounted to obtain the amount to be compared of the asset accounting element;

[0045] For each asset accounting element in each current transaction flow to be accounted, determine whether the amount to be compared of the asset accounting element is the same as the current amount to obtain a result indicating whether there is an abnormality in the asset accounting element;

[0046] Generate a reconciliation statement including the result indicating whether there is an abnormality in the asset accounting element, the historical amount and the current amount of each asset accounting element;

[0047] Show the generated reconciliation statement to the user.

[0048] In a second aspect, an embodiment of the present invention provides a data verification device applied to an electronic device. The device includes:

[0049] A first acquisition module, configured to acquire the transaction flow of a target account from a transaction database storing multiple transaction flows; wherein, each transaction flow includes the business type and the transaction quantity of the transaction flow;

[0050] A first determination module, configured to determine the current transaction flow to be processed based on the acquired transaction flow;

[0051] A first judgment module, configured to judge whether the current transaction flow to be processed conforms to the business rules corresponding to the business type of the current transaction flow to be processed;

[0052] A first execution module, configured to execute a first correction process for the current to-be-processed transaction record in the transaction database to make the current to-be-processed transaction record comply with the business rules when the current to-be-processed transaction record does not comply with the business rules;

[0053] A second determination module, configured to determine whether the number of transactions in the current to-be-processed transaction record is abnormal when the current to-be-processed transaction record complies with the business rules;

[0054] A second execution module, configured to execute a second correction process to make the number of transactions in the current to-be-processed transaction record normal in response to the abnormal number of transactions in the current to-be-processed transaction record;

[0055] A second determination module, configured to determine that the verification of the current to-be-processed transaction record is completed in response to the normal number of transactions in the current to-be-processed transaction record.

[0056] An embodiment of the present invention further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0057] The memory is used to store a computer program;

[0058] The processor is configured to implement the above data verification method when executing the program stored in the memory.

[0059] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program implements the above data verification method when being executed by a processor.

[0060] Advantageous effects of the embodiments of the present invention:

[0061] In an embodiment of the present invention, an electronic device obtains the transaction records of a target account from a transaction database. Each transaction record includes the business type and the transaction quantity of the corresponding transaction record. The current transaction record to be processed is determined based on the obtained transaction records, so that the business type and the transaction quantity in the current transaction record can be determined. The electronic device can determine whether the current transaction record to be processed conforms to the business rules corresponding to its business type. In the case of non - compliance with the business rules, the current transaction record to be processed in the transaction database is corrected so that the current transaction record to be processed conforms to the business rules. Then, in the case where the transaction record conforms to the business rules, it is determined whether the transaction quantity in the current transaction record to be processed is abnormal, and the abnormal transaction quantity is corrected so that the transaction quantity of the current transaction record to be processed is not abnormal. The determination of whether the transaction quantity is abnormal is performed when the current transaction record to be processed conforms to the business rules. In response to the fact that the transaction quantity of the current transaction record to be processed is not abnormal, it can be determined that the verification of the current transaction record to be processed is completed. In the embodiments of the present invention, each transaction record in the transaction database that does not conform to the business rules and has an abnormal transaction quantity can be discovered through the electronic device, and the corrected transaction record can be obtained, avoiding manual auditing, improving the verification efficiency and the data accuracy at the same time.

[0062] Of course, it is not necessary for any product or method implementing the present invention to achieve all the above - mentioned advantages simultaneously. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other embodiments based on these drawings.

[0064] Figure 1 It is a schematic flowchart of a data verification method provided by an embodiment of the present invention;

[0065] Figure 2 It is a schematic flowchart of the account balance verification process in a data verification method provided by an embodiment of the present invention;

[0066] Figure 3 It is a schematic flowchart of the verification process of asset accounting elements in a data verification method provided by an embodiment of the present invention;

[0067] Figure 4 It is a schematic diagram of the principle of obtaining transaction records from a transaction database in a data verification method provided by an embodiment of the present invention;

[0068] Figure 5Schematic diagram of the principle of a data verification method provided by an embodiment of the present invention;

[0069] Figure 6 Schematic diagram of the structure of a data verification device provided by an embodiment of the present invention;

[0070] Figure 7 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0071] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art based on the present invention belong to the scope of protection of the present invention.

[0072] To understand the embodiments of the present invention more clearly, the prior art will be introduced in detail below.

[0073] In today's booming financial market, securities trading activities are becoming increasingly frequent. For stocks, bonds, and a wide variety of financial derivatives, the trading rhythm is accelerating, and the trading varieties are becoming more and more diverse. This change in the market environment has posed unprecedented challenges to the business accounting of securities companies. The management of position data and its accuracy are becoming increasingly important for the company's business management and risk management.

[0074] In the prior art, securities companies can use manual auditing methods to verify the position data of various financial assets they hold. However, most of the manual auditing methods only focus on the verification of the original data of a single transaction record, such as a simple verification of the core fields such as the trading volume, trading price, and trading time of a transaction flow. In the face of the complex composite position status formed by continuous transactions and the intricate internal reconciliation relationships between position data, account balances, capital flows, and financial entries, due to the limited speed of manual processing, it is difficult to quickly complete the verification work in the face of a large amount of data, and manual operations are easily affected by subjective factors, resulting in a significant discount in data accuracy. That is to say, the manual auditing method has errors and it is difficult to achieve effective verification. How to verify the position data and improve the verification efficiency while improving the data accuracy is an urgent problem to be solved.

[0075] In order to improve the verification efficiency while improving the data accuracy, the embodiments of the present invention provide a data verification method, device, electronic device, and storage medium.

[0076] Next, a data verification method provided by the embodiments of the present invention will be introduced first.

[0077] Among them, a data verification method provided by an embodiment of the present invention can be applied to an electronic device. Exemplarily, the electronic device can be a smart phone, a tablet computer, or a desktop computer. The electronic device can interact with a transaction database storing transaction flows, and obtain the transaction flows from the transaction database. The transaction database can be a database managed by an exchange, and the exchange can store each transaction flow in the transaction database.

[0078] A data verification method provided by an embodiment of the present invention may include the following steps:

[0079] Obtain the transaction flows of a target account from a transaction database storing multiple transaction flows; wherein, each transaction flow includes the business type and transaction quantity of the transaction flow.

[0080] Based on the obtained transaction flows, determine the current transaction flow to be processed.

[0081] Determine whether the current transaction flow to be processed conforms to the business rules corresponding to the business type of the current transaction flow to be processed.

[0082] In the case where the current transaction flow to be processed does not conform to the business rules, execute a first correction process for the current transaction flow to be processed in the transaction database, so that the current transaction flow to be processed conforms to the business rules.

[0083] In the case where the current transaction flow to be processed conforms to the business rules, determine whether the transaction quantity in the current transaction flow to be processed is abnormal.

[0084] In response to the transaction quantity in the current transaction flow to be processed being abnormal, execute a second correction process so that the transaction quantity of the current transaction flow to be processed is not abnormal.

[0085] In response to the transaction quantity of the current transaction flow to be processed not being abnormal, determine that the verification of the current transaction flow to be processed is completed.

[0086] In an embodiment of the present invention, an electronic device obtains the transaction records of a target account from a transaction database. Each transaction record includes the business type and the transaction quantity of the transaction record. The current transaction record to be processed is determined based on the obtained transaction records, so that the business type and the transaction quantity in the current transaction record can be determined. The electronic device can determine whether the current transaction record to be processed conforms to the business rules corresponding to its business type. If it does not conform to the business rules, the current transaction record to be processed in the transaction database is corrected so that the current transaction record to be processed conforms to the business rules. Then, when the transaction record conforms to the business rules, it is determined whether the transaction quantity in the current transaction record to be processed is abnormal, and the abnormal transaction quantity is corrected so that the transaction quantity of the current transaction record to be processed is not abnormal. The determination of whether the transaction quantity is abnormal is performed when the current transaction record to be processed conforms to the business rules. In response to the fact that the transaction quantity of the current transaction record to be processed is not abnormal, it can be determined that the verification of the current transaction record to be processed is completed. In the embodiment of the present invention, the electronic device can detect each transaction record in the transaction database that does not conform to the business rules and the abnormal transaction quantity, and obtain the corrected transaction record, avoiding manual auditing, improving the verification efficiency and the data accuracy at the same time.

[0087] The following Figure 1 introduces a data verification method provided by an embodiment of the present invention. As Figure 1 shown, the method may include steps S101-S107.

[0088] S101. Obtain the transaction records of a target account from a transaction database storing multiple transaction records.

[0089] Wherein, each transaction record includes the business type and the transaction quantity of the transaction record.

[0090] It can be understood that the transaction database stores the transaction records generated during transactions on the exchange. The transaction records saved by the securities company all originate from the transaction database. If there are errors in the transaction records in the transaction database, the transaction records saved by the securities company will also be incorrect. The embodiments of the present invention can verify the transaction records obtained from the transaction database. Among them, the target account can be a transaction account held by the securities company. Through the transaction account, the securities company can conduct transactions in the trading market. Obtaining the transaction records of the target account is precisely to verify the data generated during the transactions of the target account. Exemplarily, the obtained transaction records may include the account identifier of the target account. Optionally, the target account can be a pre-specified individual account or all accounts held by the securities company. If the target account is a pre-specified individual account, only the transaction records of the individual account are verified. If the target account is all accounts held by the securities company, the transaction records of all transactions of the securities company are verified.

[0091] The electronic device is a device used by the securities company for data verification. The electronic device can obtain the transaction records of the target account from the transaction database. Exemplarily, the electronic device can generate a query statement for querying the transaction records of the target account according to the syntax supported by the transaction database; then use the generated query statement to read the transaction records of the target account from the transaction database. Among them, each transaction record contains the business type and transaction quantity of the transaction record. To ensure that the obtained transaction records contain the business type and transaction quantity, the generated query statement can be used to query the specified fields for the business type and transaction quantity.

[0092] For example, the transaction database is a Structured Query Language (SQL) Server. The generated query statement includes a WHERE clause and a SELECT clause. The WHERE clause is used to filter out the target account, and the SELECT clause is used to specify the fields to be queried. Through the query statement, the transaction records of the target account can be read from the transaction database, and the transaction records can include the data under the specified fields of the business type and transaction quantity.

[0093] Another example is that the transaction database is a distributed storage database MongoDB. The generated query statement includes a find function, and the find function can include a restriction condition for querying the specified fields of the transaction records of the target account.

[0094] Optionally, in one implementation, when a preset acquisition condition is satisfied, transaction records of a target account are acquired from a transaction database storing multiple transaction records. The preset acquisition condition includes: the transaction database has a completion flag indicating that the transaction records have been completely stored, and / or a preset time is reached.

[0095] It can be understood that the preset acquisition condition is a trigger condition for the electronic device to acquire transaction records from the transaction database. When the preset acquisition condition is satisfied, the electronic device can acquire transaction records from the transaction database.

[0096] When a transaction record is completely stored in the transaction database, the transaction database generates a completion flag indicating that the transaction record has been completely stored. The electronic device can detect the completion flag, determine that the preset acquisition condition is satisfied, and acquire transaction records from the transaction database with the completion flag. Optionally, in one implementation, the electronic device can receive a command carrying the completion flag sent by the transaction database, so that the electronic device can detect that the transaction database has the completion flag; optionally, in another implementation, the electronic device can periodically access the transaction database to detect whether the transaction database has the completion flag.

[0097] When the preset time is reached, the electronic device can acquire transaction records from the transaction database. For example, the preset time can be a periodic time, and there is a preset time every hour. The electronic device can periodically acquire transaction records from the transaction database.

[0098] During the process of entering transaction records into the transaction database, some data may not be successfully entered due to network fluctuations, system failures, etc. In the embodiments of the present invention, transaction records are acquired only when the transaction database generates a completion flag indicating that the transaction records have been completely stored, which can ensure that the acquired transaction records of the target account are complete and without omission. This avoids problems such as subsequent transaction analysis errors and financial statistics deviations caused by acquiring incomplete data, and ensures that business decisions and operations are based on accurate data. Moreover, by setting the completion flag and the preset time as acquisition conditions, the electronic device can acquire data at an appropriate time, avoid frequently acquiring transaction record data from the transaction database, reduce load and resource consumption, and before the completion flag appears or the preset time is reached, resources can be allocated to other more needed tasks, improving the overall system operation efficiency.

[0099] S102. Determine current transaction records to be processed based on the acquired transaction records.

[0100] It can be understood that the electronic device can determine a transaction record in the acquired transaction records as the current transaction record to be processed. Subsequently, detection can be performed on the current transaction record to be processed. Optionally, in one implementation, the electronic device can use each transaction record in the acquired transaction records as the current transaction record to be processed. Optionally, in another implementation, the electronic device can screen the acquired transaction records and determine the current transaction record to be processed from the screened transaction records.

[0101] Exemplarily, in the acquired transaction records, transaction records that conform to a preset data rule can be screened out to obtain the screened transaction records. Among them, the preset data rule includes a rule that does not conform to the data structure of the local database.

[0102] Optionally, to improve the processing efficiency of the electronic device for transaction records, the electronic device can process the transaction records with the help of a message queue. Specifically, step S102 can include steps A1 - A3, and the method can further include step A4.

[0103] A1. For each acquired transaction record, if the transaction record conforms to the preset data rule, write the transaction record into the local database.

[0104] Among them, the preset data rule includes at least one of the following: the primary key value of the acquired transaction record does not exist in the local database, the data type of the data in the acquired transaction record is consistent with the data type in the local database, and the data in the acquired transaction record belongs to the string type and the number of characters does not exceed the preset number of characters.

[0105] It can be understood that the acquired transaction records are from a transaction database. Since there may be human input errors or omissions when the transaction records are entered into the transaction database, the transaction records in the transaction database have changed, or the acquired transaction records are interfered during the acquisition process, resulting in the acquired transaction records may be unavailable. The changed or unavailable transaction records can be called dirty data. If dirty data is used for data verification, it will affect the verification accuracy. Therefore, the electronic device needs to filter the acquired transaction records. Specifically, for each acquired transaction record, if the transaction record conforms to the preset data rule, the electronic device can write the transaction record into the local database; if the transaction record does not conform to the preset data rule, the transaction record will be deleted. If the number of transaction records that do not conform to the preset data rule exceeds the quantity threshold, that is, there is a lot of dirty data in the acquired transaction records, at this time, an alarm notification can be sent to the business personnel so that the business personnel can check and correct the generation process of the query statement and the data entry process of the transaction database.

[0106] Among them, by presetting data rules to check whether the primary key value of the transaction record exists in the local database, duplicate data writing can be avoided, ensuring the uniqueness of each transaction record and preventing errors in subsequent reading of transaction records; verifying the consistency of data types and that the number of characters in string-type characters does not exceed the preset value ensures the correctness of the data format and improves data accuracy.

[0107] A2. Read the transaction records of the target account from the local database and add the read transaction records to the message queue.

[0108] Among them, the arrangement order of each transaction record in the message queue represents the processing order of each transaction record.

[0109] It can be understood that the electronic device can query the transaction records of the target account from the transaction record table storing transaction records in the local database according to the processing order of each transaction record, and parse each queried transaction record into data in a format supported by the message queue. For example, the transaction record can be parsed into data in the JavaScript Object Notation (JSON) format or the eXtensible Markup Language (XML) format; then the parsing result is sent to the specified message queue.

[0110] Optionally, in one implementation, the processing order of each transaction record can be the order arranged according to the transaction time of each transaction record. Exemplarily, the processing order of the transaction record with an earlier transaction time precedes the processing order of the transaction record with a later transaction time.

[0111] Optionally, in another implementation, the processing order of each transaction record is arranged according to the priority of the transaction database from which each transaction record originates.

[0112] After this implementation, the message queue includes multiple sub-message queues, and the priorities of each sub-message queue are different. The processing order of the transaction records in the sub-message queue with a higher priority is before the processing order of the transaction records in the sub-message queue with a lower priority. The transaction database includes multiple types of transaction sub-databases; the priorities of each type of transaction sub-database are different. The process of adding the read transaction records to the message queue can include steps A21 - A22.

[0113] A21. If the priority of the transaction sub-database from which the read transaction record originates is higher than that of other transaction sub-databases, determine the sub-message queue with a higher priority than other sub-message queues among the multiple sub-message queues of the message queue.

[0114] A22, add the read transaction log to the determined sub-message queue.

[0115] It can be understood that the message queue contains multiple sub-message queues, and the priorities of each sub-message queue are different. The processing order of the transaction logs in each sub-message queue with different priorities is different. The processing order of the transaction logs arranged in sub-message queues with different priorities is different. The processing order of the transaction logs in the sub-message queue with a higher priority is before the processing order of the transaction logs in the sub-message queue with a lower priority. For example, there are sub-message queue 1 and sub-message queue 2 in the message queue. The priority of sub-message queue 1 is higher than that of sub-message queue 2. The processing order of the transaction logs in sub-message queue 1 is prior to the processing order of the transaction logs in sub-message queue 2.

[0116] The electronic device can associate and record the read transaction log and the identifier of the transaction sub-database from which the transaction log originates in the local database. Among them, the identifier of the transaction sub-database can represent the transaction database. The electronic device can determine the transaction sub-database from which the read transaction log originates according to the identifier of the transaction database in the local database. Then, according to the type to which the determined transaction sub-database belongs, determine the priority of the transaction sub-database; if the priority of the transaction sub-database from which the read transaction log originates is higher than that of other transaction sub-databases, among the multiple sub-message queues in the message queue, determine the sub-message queue with a priority higher than that of other sub-message queues, and then add the read transaction log to the determined sub-message queue.

[0117] Exemplarily, multiple types of transaction sub-databases can include a reconciliation database and an exchange database, etc. The reconciliation database is a database for manually entering transaction logs, and the exchange database is a database for automatically registering transaction logs. The possibility of the transaction logs in the reconciliation database being abnormal is higher than that of the transaction logs in the exchange database. Therefore, special attention needs to be paid to the transaction logs in the reconciliation database. That is to say, the transaction logs in the reconciliation database are processed first. The priority of the reconciliation database is higher than that of the exchange database. The transaction logs originating from the reconciliation database can be added to the sub-message queue with a priority higher than that of other sub-message queues to give priority to processing the transaction logs in the reconciliation database.

[0118] Optionally, after the processing of the transaction logs in the sub-message queue with a priority higher than that of other sub-message queues is completed, the transaction logs in other sub-message queues can be processed.

[0119] In the embodiments of the present invention, the message queue is divided into multiple sub-message queues with different priorities, and the transaction database is divided into multiple transaction sub-databases with different priorities. When adding transaction records, the sub-message queue is determined according to the priority of the transaction sub-database, which can effectively improve the efficiency and quality of transaction record processing. The transaction records in the transaction sub-database with a high priority are processed first, and the resources of the electronic device are preferentially allocated to the transaction records with a relatively high probability of exception, improving the overall resource utilization efficiency.

[0120] A3. Select an unprocessed transaction record from the message queue in the order of arrangement as the current transaction record to be processed.

[0121] It can be understood that the electronic device can process each transaction record in the message queue.

[0122] Exemplarily, the electronic device can assign a unique serial number to each transaction record according to the processing order of the transaction records in the message queue, and at the same time add a flag to mark the processing status, with the initial processing status set to "unprocessed". When selecting from the message queue, the electronic device checks the processing status of the transaction records in ascending order of the serial number. Once a transaction record with the status of "unprocessed" is found, it is determined as the current transaction record to be processed.

[0123] Optionally, the displacement serial number and processing status of each transaction record can be stored in an index table corresponding to the message queue to record the arrangement order and processing status of the transaction records in the message queue. The system searches for unprocessed transaction records in the index table in order and uses them as the current transaction records to be processed.

[0124] A4. After the verification process for the current transaction record to be processed is completed, return to the step of selecting an unprocessed transaction record from the message queue in the order of arrangement as the current transaction record to be processed.

[0125] It can be understood that after the verification process for the current transaction record to be processed is completed, the electronic device can then select unprocessed transaction records from the message queue in the order of arrangement for processing, that is, by cyclically processing the transaction records in the message queue, continuously performing verification and correction, which not only ensures the accuracy of the transaction data but also efficiently processes a large amount of transaction data, thereby improving the verification efficiency and data accuracy at the same time.

[0126] S103. Determine whether the current transaction record to be processed complies with the business rules corresponding to the business type of the current transaction record to be processed.

[0127] It can be understood that the electronic device can perform a preset verification process on the current transaction record to be processed, that is, perform per-record verification on each transaction record.

[0128] It can be understood that the business rules for each business type are pre-configured. Each transaction record obtained contains the business type. The electronic device can determine the business type of the current transaction record to be processed, and then make a judgment according to the business rules corresponding to the determined business type.

[0129] Among them, the business types include opening position records, normal records, profit and loss records, and share dividend records. Each transaction record obtained also includes: transaction amount, transaction quantity, interest amount, handling fee, and actual fund occurrence amount.

[0130] The business rules corresponding to the opening position records include: whether the transaction amount of the transaction record to be processed is greater than 0, whether the transaction quantity is greater than 0, whether the actual fund occurrence amount is less than 0, and whether the opening position record value is equal to 0; the opening position record value of a transaction record is: the sum value of the transaction amount, interest amount, handling fee, and actual fund occurrence amount of this transaction record.

[0131] The transaction amount represents the actual transaction amount completed when the transaction is concluded. The transaction quantity represents the actual transaction quantity completed when the transaction is concluded. The interest amount represents the fees or benefits generated by using or occupying funds. The handling fee represents the amount that needs to be paid to the exchange to complete the transaction. The interest amount and the handling fee are related to the trading method of the exchange. The interest amount and the handling fee may be 0. The actual fund occurrence amount represents the change in the funds of the target account. The actual fund occurrence amount is related to the transaction amount, transaction quantity, interest amount, handling fee, and other factors that may affect the change in funds.

[0132] It can be understood that since the opening position record is the transaction record of the initial transaction of the target account in the trading market, which only involves the purchase of assets, thus, the transaction amount and transaction quantity in the opening position record are greater than 0, but there is a fund outflow from the target account, the actual fund occurrence amount is less than 0, and the opening position record value is equal to 0.

[0133] The business rules corresponding to the closing position records include: whether the transaction amount of the transaction record to be processed is greater than 0, whether the transaction quantity is greater than 0, whether the actual fund occurrence amount is greater than 0, and whether the closing position record value is equal to 0; the closing position record value of a transaction record is: the difference between the sum value of the transaction amount and the interest amount of this transaction record and the sum value of the handling fee and the actual fund occurrence amount.

[0134] It can be understood that since the closing position record is the target account selling the assets it already holds and there is a fund inflow into the target account, thus, the transaction amount and transaction quantity in the closing position record are greater than 0, the actual fund occurrence amount is greater than 0, and the closing position record value is 0.

[0135] The business rules corresponding to the profit and loss transaction records include: whether the transaction amount of this transaction record is not zero, whether the transaction quantity is zero, and whether the actual fund occurrence amount is not zero.

[0136] It can be understood that since the profit and loss transaction record represents the profit or loss of other items other than asset trading in the target account during the trading process, and does not involve asset trading, the transaction quantity is zero, but there are changes in the transaction amount such as dividends from holding other items. Therefore, both the transaction amount and the actual fund occurrence amount are not zero.

[0137] The business rules corresponding to the share dividend transaction records include: whether the transaction amount of this transaction record is zero, whether the transaction quantity is not zero, and whether the actual fund occurrence amount is zero.

[0138] It can be understood that since the share dividend transaction record represents the profit amount received by the target account as a shareholder, but this part of the profit amount does not directly flow into the target account, but is represented by the transaction quantity held by the target account. The transaction amount and the actual fund occurrence amount are zero, and the transaction quantity is not zero.

[0139] S104, in the case where the current transaction record to be processed does not conform to the business rules, execute the first correction process for the current transaction record to be processed in the transaction database, so that the current transaction record to be processed conforms to the business rules.

[0140] S105, in the case where the current transaction record to be processed conforms to the business rules, determine whether the transaction quantity in the current transaction record to be processed is abnormal.

[0141] It can be understood that the electronic device can execute the first correction process for the current transaction record to be processed in the transaction database in the case where the current transaction record to be processed does not conform to the business rules, so that the current transaction record to be processed conforms to the business rules. In the case where the current transaction record to be processed conforms to the business rules, determine whether the transaction quantity in the current transaction record to be processed is abnormal. Among them, the transaction quantity is the transaction quantity in the foregoing business rules. Since the transaction quantity is closely related to the data in the business rules such as the transaction amount and the actual fund occurrence amount, if the transaction quantity (i.e., the transaction quantity) is verified first, and if there is a problem with the transaction quantity, after correcting the transaction quantity, then perform the verification of the business rules, and through the verification of the business rules, it is found that there is no problem with other data in the business rules, but there is a problem with the transaction quantity, and the transaction quantity still needs to be corrected. It is difficult to ensure that the corrected transaction quantity will not be abnormal again, and the corrected transaction quantity needs to be verified a second time. In the embodiments of the present invention, the judgment of the business rules can be performed first, and then the judgment of the transaction quantity can be performed, avoiding multiple judgments of the transaction quantity, saving computing resources and improving the verification efficiency at the same time.

[0142] Exemplarily, the first correction process includes: pushing a first type of notification characterizing the business rules that the current transaction record to be processed does not conform to to a first receiving end, so that in response to receiving the first type of notification, the first receiving end outputs the first type of notification to instruct a first target person to correct the current transaction record to be processed in the transaction database according to the business rules that the current transaction record to be processed does not conform to; and, obtaining the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and returning to execute the step of determining whether the current transaction record to be processed conforms to the business rules corresponding to the business type of the current transaction record to be processed.

[0143] It can be understood that when the current transaction record to be processed does not conform to the business rules, the electronic device can determine the business rules that the transaction record to be processed does not conform to. For example, the business rules include: whether the transaction amount of the transaction record to be processed is greater than 0, whether the transaction quantity is greater than 0, whether the actual fund occurrence amount is less than 0, and whether the open position record value is equal to 0. However, if the transaction amount in the transaction record to be processed is less than 0 and other data are all in line, then the electronic device can push the information that the transaction amount of the transaction record to be processed is not greater than 0 as the first type of notification to the first receiving end. Exemplarily, the first type of notification may include the identifier of the transaction record to be processed, the business type, and the non-conforming business rules.

[0144] After receiving the first type of notification, the first receiving end can output the first type of notification to the first target person. For example, the first type of notification can be output to the first target person by means of email or phone call. Among them, the first type of target person may be a trader responsible for inputting the transaction record to be processed. The first target person can correct the transaction record to be processed in the transaction database according to the business rules that the current transaction record to be processed does not conform to.

[0145] After the correction of the transaction record to be processed is completed, the electronic device can obtain the corrected transaction record to be processed from the transaction database and determine whether the corrected transaction record to be processed conforms to the business rules.

[0146] S106, in response to the abnormal transaction quantity in the current transaction record to be processed, execute a second correction process to make the transaction quantity of the current transaction record to be processed not abnormal.

[0147] S107, in response to the fact that the transaction quantity of the current transaction record to be processed is not abnormal, determine that the verification of the current transaction record to be processed is completed.

[0148] It can be understood that the electronic device can execute a second correction process to correct the transaction quantity of the current pending transaction flow when it determines that the transaction quantity in the current pending transaction flow is abnormal; and when the transaction quantity in the current pending transaction flow is normal, the verification of this pending transaction flow is completed. The transaction flows without abnormalities after verification are stored in the local database and wait for processing at the subsequent preset accounting time.

[0149] Exemplarily, the second correction process includes:

[0150] Pushing a second type of notification indicating that the transaction quantity in the current pending transaction flow is abnormal to a second receiving end, so that the second receiving end outputs the second type of notification in response to receiving the second type of notification to instruct a second target person to correct the transaction quantity of the current pending transaction flow in the transaction database; and, obtaining the corrected pending transaction flow from the transaction database as the current pending transaction flow, and returning to the step of determining whether the transaction quantity in the current pending transaction flow is abnormal.

[0151] It can be understood that when the transaction quantity of the current pending transaction flow is abnormal, the electronic device can push the information that the transaction quantity of the pending transaction flow is abnormal as the second type of notification to the second receiving end. Exemplarily, the second type of notification may include the identifier of the pending transaction flow and the information indicating that the transaction flow is abnormal.

[0152] After receiving the second type of notification, the second receiving end can output the second type of notification to the second target person. For example, the second type of notification is output to the second target person by means of email or phone call. Among them, the second target person may also be a trader responsible for inputting the pending transaction flow. The second target person can correct the transaction quantity of the pending transaction flow in the transaction database.

[0153] In the embodiments of the present invention, the transaction flows that do not conform to the business rules are corrected through the first correction process, and the transaction flows with abnormal transaction quantities are corrected through the second correction process, which can improve the accuracy of the transaction flows in the transaction database.

[0154] Optionally, in one implementation, each transaction flow further includes the transaction time of this transaction flow and the transaction asset identifier;

[0155] The specific process of determining whether the transaction quantity in the current pending transaction flow is abnormal includes:

[0156] Determine whether the number of transactions in the current transaction stream to be processed exceeds the current holding quantity corresponding to the transaction asset identifier in the current transaction stream to be processed, and obtain a result indicating whether the number of transactions in the current transaction stream to be processed is abnormal.

[0157] Among them, the current holding quantity corresponding to the transaction asset identifier in any transaction stream is obtained by adjusting the historical holding quantity of the asset represented by the transaction asset identifier stored locally using the number of transactions in the historical transaction stream corresponding to this transaction stream; the historical transaction stream corresponding to this transaction stream is the transaction stream with the same transaction asset identifier as this transaction stream and with a transaction time before the transaction time of this transaction stream.

[0158] It can be understood that during the process of determining whether the number of transactions is abnormal, the electronic device can determine, in the transaction streams stored locally, the transaction streams with the same transaction asset identifier as the transaction stream to be processed and with a transaction time before the transaction time of this transaction stream, and adjust the historical holding quantity of the asset represented by the transaction asset identifier stored locally based on the number of transactions in the determined transaction streams. Among them, the historical holding quantity can be the holding quantity of the asset corresponding to the transaction asset identifier of the target account at the previous preset accounting moment for the transaction stream to be processed. The transaction stream to be processed is the transaction stream at the current moment, and the historical transaction stream corresponding to the transaction stream to be processed is the transaction stream of the asset with this transaction asset identifier from the previous preset accounting moment to the current moment.

[0159] For example, for a target account with respect to an asset, the historical holding quantity at yesterday's close was 100 shares. The transaction time of the transaction stream to be processed for this asset is 10 o'clock today. From yesterday's close to 10 o'clock today, there were two transaction streams for this asset, with the number of transactions being 20 shares bought and 5 shares sold respectively. The current holding quantity of this asset is 115 shares. If the number of transactions in the transaction stream to be processed for this asset is 110 shares, which does not exceed the current holding quantity, then a result indicating that the number of transactions in the current transaction stream to be processed is normal is obtained. If the number of transactions in the transaction stream to be processed for this asset is 120 shares, which exceeds the current holding quantity, then a result indicating that the number of transactions in the current transaction stream to be processed is abnormal is obtained.

[0160] Due to reasons such as manual entry errors, the transaction streams in the transaction database may be abnormal. If the electronic device records according to the abnormal transaction streams, it will cause the recorded number of transactions to exceed the holding quantity, resulting in the situation of account shortfall, and further causing the holding data and profit and loss of the associated accounts and the departments to which the accounts belong to be affected. In the embodiments of the present invention, the number of transactions can be accounted for, avoiding the occurrence of the shortfall situation and improving data accuracy.

[0161] In the embodiments of the present invention, an electronic device can discover abnormal transaction records in the transaction database that do not conform to business rules and transaction quantities, and obtain the corrected transaction records, avoiding manual auditing, improving the verification efficiency and data accuracy at the same time.

[0162] Optionally, in one embodiment, each transaction record further includes the transaction amount of the transaction record. Figure 2 The figure is a schematic flowchart of the account balance verification process in a data verification method provided by an embodiment of the present invention. As Figure 2 shown, based on the data verification method shown in Figure 1 Figure, step S101 includes step S1011, and the method further includes steps S201-S204.

[0163] S1011: Obtain each transaction record of the target account from the transaction database storing multiple transaction records from the previous preset accounting moment to the current moment.

[0164] S201: When reaching the current preset accounting moment, use each transaction record of the target account that has completed data verification and was obtained from the previous preset accounting moment to the current preset accounting moment as the current transaction records to be accounted for.

[0165] It can be understood that the electronic device can periodically perform accounting on the transaction records between every two preset accounting moments at each preset accounting moment. The preset accounting moment can be the moment when the daily transaction closes, such as 11:30 and 15:00 every day, or it can be a fixed moment set manually, such as setting a preset accounting moment every two hours, to ensure timely accounting.

[0166] When reaching the current preset accounting moment, the electronic device can obtain, from the transaction database, each transaction record of the target account that has completed data verification and was obtained from the previous preset accounting moment to the current preset accounting moment, as the current transaction records to be accounted for.

[0167] S202: Calculate the second account balance of the target account at the current preset accounting moment based on the transaction amounts of the current transaction records to be accounted for and the first account balance of the target account stored locally at the previous preset accounting moment.

[0168] It can be understood that the electronic device locally stores the first account balance of the target account at the previous preset accounting moment. The electronic device can increase or decrease the first account balance according to the transaction direction by using the transaction amounts of each current transaction record to be accounted for. If the transaction direction of a current transaction record to be accounted for is a purchase, subtract the transaction amount of this transaction record to be accounted for from the first account balance. If the transaction direction of a current transaction record to be accounted for is a sale, add the transaction amount of this transaction record to be accounted for to the first account balance to obtain the second account balance of the target account at the current preset accounting moment.

[0169] S203. Calculate the difference between the first account balance and the second account balance.

[0170] S204. If the calculated difference is not within the preset difference range, push a third type of notification indicating that the account balance of the target account is abnormal to the third receiving end, so that the third receiving end outputs the third type of notification in response to receiving the third type of notification to instruct the third target person to correct the transaction records of the target account in the transaction database; and obtain the transaction records of the target account from the corrected previous preset accounting moment to the current preset accounting moment in the transaction database as the transaction amounts of each current transaction record to be accounted for, and return to execute the step of calculating the second account balance of the target account at the current preset accounting moment based on the transaction amounts of each current transaction record to be accounted for and the first account balance of the target account locally stored until the calculated difference is within the preset difference range.

[0171] It can be understood that the electronic device can calculate the difference between the first account balance and the second account balance. If there is no error in the data in the transaction database and the first account balance saved by the electronic device, the calculated difference is 0. Due to the situation that the data after the decimal point may not be recorded during the transmission of the transaction record or the format of recording the transaction record in the transaction database is different from that in the local database, the securities company accepts that the calculated difference is not 0, that is, there is a lag in accounting, but the difference cannot be too large. That is to say, the difference accepted by the securities company needs to be within the preset difference range. Optionally, if the securities company strictly accounts for the account balance, the preset difference range only includes the value 0. That is, a difference of 0 can determine that the account balance is normal. For this, the embodiments of the present invention are only for illustration and not for specific limitation.

[0172] If the calculated difference is not within the preset difference range, the electronic device pushes a third type of notification indicating that the account balance of the target account is abnormal to the third receiving end. Exemplarily, the third type of notification may include the identifier of the target account and the information indicating that the account balance of the target account is abnormal.

[0173] After receiving the third type of notification, the third receiving end can output the third type of notification to the third target person. For example, the third type of notification can be output to the third target person by email or phone. Among them, the third type of target person can also be a trader responsible for entering the transaction flow of the target account. The third target person can correct the transaction flow of the target account in the transaction database.

[0174] In the embodiment of the present invention, by using the account balance stored locally and the transaction amounts of each transaction flow between two preset accounting times to calculate and correct the account balance of the target account between the two preset accounting times, the accuracy of the transaction flow of the target account in the transaction database can be improved.

[0175] Optionally, if the business type of a transaction flow is a closing position flow, then the transaction quantity of this transaction flow is the closing position quantity, and the sum of the transaction quantities of each transaction flow of the target account is the total closing position quantity. The transaction flow also includes the attributes of the target account, and the attributes can include the asset side or the liability side. If the attribute of the target account is the asset side, the electronic device can determine whether the total closing position quantity exceeds the position quantity of the target account. If it does not exceed, it is determined that the attribute of the target account is normal; otherwise, it is abnormal and the target person needs to be notified for correction. If the target account is on the liability side, the electronic device can determine whether the total closing position quantity exceeds the difference between the sum of the position quantity of the target account and the borrowed quantity of the target account and the buyout quantity of the account. If it does not exceed, it is determined that the attribute of the target account is normal; otherwise, it is abnormal and the target person needs to be notified for correction. The specific implementation method of notifying the target person to correct the data is similar to the processing of the above account balance and will not be elaborated here.

[0176] Optionally, in one embodiment, each transaction flow further includes: the change amount and the current amount of each asset accounting element. Figure 3 It is a schematic flow chart of the verification process of asset accounting elements in a data verification method provided by an embodiment of the present invention. As Figure 3 shown, the method further includes S301 - S304.

[0177] S301, if the calculated difference is within the preset difference range, adjust the historical amount of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in the current transaction flows to be accounted for, to obtain the amount to be compared of the asset accounting element.

[0178] It can be understood that if the difference is within a preset difference range, the electronic device can perform verification on each asset accounting element. The asset accounting element belongs to the data in the entry data. The entry data refers to the data formed by recording each economic business according to the double-entry bookkeeping principle during the accounting process. The entry data contains data of multiple accounting subjects. Each asset accounting element can be called an accounting subject, and each asset accounting element can include at least one of the following: cost amount, handling fee, net price profit and loss, interest profit and loss, fair value provision, interest provision, and interest adjustment amount.

[0179] Each transaction record also includes: the change amount and the current amount of each asset accounting element. The electronic device can adjust the historical amount of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in each current transaction record to be accounted, so as to obtain the amount to be compared of the asset accounting element. Specifically, if the change amount of an asset accounting element is an increase amount, then use this change amount to increase the historical amount of the asset accounting element belonging to the target account stored locally; if the change amount of an asset accounting element is a decrease amount, then use this change amount to decrease the historical amount of the asset accounting element belonging to the target account stored locally, so as to obtain the amount to be compared of the asset accounting element. It should be noted that the electronic device needs to calculate the amount to be compared of each asset accounting element of each transaction record.

[0180] S302, for each asset accounting element in each current transaction record to be accounted, determine whether the amount to be compared of the asset accounting element is the same as the current amount, so as to obtain a result indicating whether there is an abnormality in the asset accounting element.

[0181] It can be understood that the electronic device can determine whether the amount to be compared of each asset accounting element in each current transaction record to be accounted is the same as the current amount. If they are the same, a result indicating that there is no abnormality in the asset accounting element is obtained; if they are not the same, a result indicating that there is an abnormality in the asset accounting element is obtained.

[0182] It should be noted that the above result indicates whether the checking relationship of the entry data is abnormal. The checking relationship refers to the logical relationship of mutual dependence and mutual verification existing among various data in the accounting books and financial statements.

[0183] Exemplarily, the checking relationship of the entry data satisfies the expression: A beginning + A increase amount - A decrease amount = A end. Wherein, A represents each asset accounting element in each current transaction record to be accounted, A beginning represents the historical amount of the asset accounting element belonging to the target account stored locally, A increase amount and A decrease amount represent the change amount of the asset accounting element, and A end represents the current amount of the asset accounting element.

[0184] S303. Generate a reconciliation statement that includes the result indicating whether there is an abnormality in the asset accounting elements, the historical quantity, and the current quantity of each asset accounting element.

[0185] S304. Display the generated reconciliation statement to the user.

[0186] It can be understood that for the convenience of financial personnel to conduct account confirmation, the electronic device can generate a reconciliation statement that includes the result indicating whether there is an abnormality in the asset accounting elements, the historical quantity, and the current quantity of each asset accounting element, and then display the generated reconciliation statement to the user. Among them, the user can be the financial personnel of the securities company.

[0187] In the embodiment of the present invention, the financial personnel need to calculate the status of each transaction record within a period of time. The electronic device can calculate the transaction records between two preset calculation times when the account balance is within an acceptable error, automatically generate a reconciliation statement and display it to the financial personnel, which can improve the convenience of the financial personnel's inspection.

[0188] Figure 4 It is a schematic diagram of the principle of obtaining transaction records from the transaction database in a data verification method provided by an embodiment of the present invention.

[0189] As Figure 4 shown, the number of transaction databases can be multiple, including transaction system 1 database, transaction system 2 database,..., transaction system n database. The data acquisition module of the electronic device can obtain the transaction records of the target account from the transaction database storing multiple transaction records; the data conversion module of the electronic device can, for each obtained transaction record, write the transaction record into the local database if the transaction record meets the preset data rules, so as to convert each transaction record into the same format of the local database.

[0190] Figure 5 It is a schematic diagram of the principle of a data verification method provided by an embodiment of the present invention.

[0191] As Figure 5 shown, the electronic device can obtain the transaction records of the target account from the transaction database storing multiple transaction records; among them, each transaction record includes the business type and transaction quantity of the transaction record.

[0192] Then, during the process of collecting and converting transaction database data, for each transaction record obtained, if the transaction record meets the preset data rules, the electronic device can write the transaction record into the local database; where the preset data rules include at least one of the following: the primary key value of the obtained transaction record does not exist in the local database, the data types of the data in the obtained transaction record are consistent with the data types in the local database, and the data in the obtained transaction record belongs to the string type and the number of characters does not exceed the preset number of characters.

[0193] The electronic device can read the transaction records of the target account from the local database and add the read transaction records to the message queue; where the arrangement order of each transaction record in the message queue represents the processing order of each transaction record. According to the arrangement order, select an unprocessed transaction record from the message queue as the current transaction record to be processed.

[0194] During the process of validating transaction data, the electronic device can determine whether the current transaction record to be processed meets the business rules corresponding to the business type of the current transaction record to be processed; in the case where the current transaction record to be processed does not meet the business rules, perform the first correction process for the current transaction record to be processed so that the current transaction record to be processed meets the business rules. The transaction data validation is implemented based on the rules controlled by the checking relations of the main elements of the transaction record.

[0195] In the case where the transaction data validation fails (no), perform the process of marking errors and outputting errors.

[0196] During the process of marking errors and outputting errors, the electronic device can push the first type of notification characterizing the business rules that the current transaction record to be processed does not meet to the first receiving end, so that the first receiving end, in response to receiving the first type of notification, outputs the first type of notification to instruct the first target person to correct the transaction record to be processed in the transaction database according to the business rules that the current transaction record to be processed does not meet, that is, confirm the error record by the first target person; and obtain the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and return to execute the step of determining whether the current transaction record to be processed meets the business rules corresponding to the business type of the current transaction record to be processed.

[0197] In the case where the current transaction record to be processed meets the business rules, that is, the transaction data validation passes, perform the accounting process. Specifically, determine whether the transaction quantity in the current transaction record to be processed is abnormal.

[0198] If the accounting process fails (No), execute the process of correcting error data. Specifically, push the second type of notification indicating the abnormal transaction quantity in the current transaction flow to be processed to the second receiving end, so that the second receiving end outputs the second type of notification in response to receiving the second type of notification to instruct the second target person to correct the transaction quantity of the transaction flow to be processed in the transaction database; and, obtain the corrected transaction flow to be processed from the transaction database as the current transaction flow to be processed, and return to the step of determining whether the transaction quantity in the current transaction flow to be processed is abnormal.

[0199] Each transaction record also includes the transaction amount of the transaction record. In the case where the accounting process passes, perform the comparison of the balance of holding funds. Specifically, obtain each transaction record of the target account from the transaction database storing multiple transaction records from the previous preset accounting moment to the current moment. When reaching the current preset accounting moment, use each transaction record of the target account that has completed data verification obtained from the previous preset accounting moment to the current preset accounting moment as the current transaction records to be accounted for; calculate the second account balance of the target account at the current preset accounting moment based on the transaction amounts of the current transaction records to be accounted for and the first account balance of the target account stored locally at the previous preset accounting moment; calculate the difference between the first account balance and the second account balance.

[0200] If the difference is not 0, that is, in the case where the balance comparison fails, output the comparison result and manually determine the difference. In the case where the difference is unacceptable, execute the process of correcting error data. In the case where the difference is acceptable or the difference is 0 (i.e., the balance comparison passes), perform the comparison of the holding entry data. Specifically, adjust the historical quantity of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in the current transaction records to be accounted for to obtain the quantity to be compared of the asset accounting element; for each asset accounting element in the current transaction records to be accounted for, determine whether the quantity to be compared of the asset accounting element is the same as the current quantity to obtain a result indicating whether the asset accounting element is abnormal; generate a reconciliation statement including the result indicating whether the asset accounting element is abnormal, the historical quantity and the current quantity of each asset accounting element; display the generated reconciliation statement to the user to output the comparison result and notify the financial verification.

[0201] Among them, the accounting process and the comparison of the balance of holding funds are implemented based on the rules for constructing relationship control of transaction holding data. The comparison of holding entry data is implemented based on the rules for controlling the entry verification reconciliation equation.

[0202] An embodiment of the present invention also provides a data verification device, which is applied to an electronic device, such as Figure 6 shown, the device includes:

[0203] A first acquisition module 610, configured to acquire the transaction flow of a target account from a transaction database storing multiple transaction flows; wherein, each transaction flow includes the business type and transaction quantity of the transaction flow;

[0204] A first determination module 620, configured to determine a current transaction flow to be processed based on the acquired transaction flow;

[0205] A first judgment module 630, configured to judge whether the current transaction flow to be processed conforms to the business rules corresponding to the business type of the current transaction flow to be processed;

[0206] A first execution module 640, configured to, when the current transaction flow to be processed does not conform to the business rules, execute a first correction process for the current transaction flow to be processed in the transaction database, so that the current transaction flow to be processed conforms to the business rules;

[0207] A second judgment module 650, configured to judge whether the transaction quantity in the current transaction flow to be processed is abnormal when the current transaction flow to be processed conforms to the business rules;

[0208] A second execution module 660, configured to execute a second correction process in response to the transaction quantity in the current transaction flow to be processed being abnormal, so that the transaction quantity of the current transaction flow to be processed is not abnormal;

[0209] A second determination module 670, configured to determine that the verification of the current transaction flow to be processed is completed in response to the transaction quantity of the current transaction flow to be processed not being abnormal.

[0210] Optionally, the first determination module 620 includes:

[0211] A writing unit, configured to, for each acquired transaction flow, if the transaction flow conforms to the preset data rules, write the transaction flow into the local database; wherein, the preset data rules include at least one of the following: the primary key value of the acquired transaction flow does not exist in the local database, the data type of the data in the acquired transaction flow is consistent with the data type in the local database, and the data in the acquired transaction flow belongs to the string type and the number of characters does not exceed the preset number of characters;

[0212] A reading unit, configured to read the transaction flow of the target account from the local database and add the read transaction flow to the message queue; wherein, the arrangement order of each transaction flow in the message queue represents the processing order of each transaction flow.

[0213] A selection unit, configured to select an unprocessed transaction record from the message queue according to the arrangement order as the current to-be-processed transaction record;

[0214] The apparatus further includes:

[0215] A selection module, configured to, upon completion of the verification process for the current to-be-processed transaction record, return to execute the step of selecting an unprocessed transaction record from the message queue according to the arrangement order as the current to-be-processed transaction record.

[0216] Optionally, the message queue includes multiple sub-message queues with different priorities. The processing order of the transaction records in the sub-message queue with a higher priority is before that in the sub-message queue with a lower priority. The transaction database includes multiple types of transaction sub-databases, and the priorities of the transaction sub-databases of different types are different;

[0217] A reading unit, specifically configured to, if the priority of the transaction sub-database from which the read transaction record is sourced is higher than that of other transaction sub-databases, determine, among the multiple sub-message queues of the message queue, the sub-message queue with a priority higher than that of other sub-message queues;

[0218] Add the read transaction record to the determined sub-message queue;

[0219] And / or

[0220] A first acquisition module 610, specifically configured to, when a preset acquisition condition is satisfied, acquire the transaction records of a target account from a transaction database storing multiple transaction records; wherein, the preset acquisition condition includes: the transaction database has a completion flag indicating the completion of the storage of transaction records, and / or, a preset time is reached.

[0221] Optionally, each transaction record further includes the transaction time and the transaction asset identifier of the transaction record;

[0222] A second judgment module 650, specifically configured to judge whether the number of transactions in the current to-be-processed transaction record exceeds the current holding quantity corresponding to the transaction asset identifier in the current to-be-processed transaction record, to obtain a result indicating whether the number of transactions in the current to-be-processed transaction record is abnormal; wherein, the current holding quantity corresponding to the transaction asset identifier in any transaction record is: the historical holding quantity of the asset represented by the transaction asset identifier stored locally is adjusted by using the number of transactions in the historical transaction record corresponding to the transaction record; the historical transaction record corresponding to the transaction record is: the transaction record with the same transaction asset identifier as that of the transaction record and with a transaction time before the transaction time of the transaction record.

[0223] Optionally, the first correction process includes:

[0224] Pushing a first type of notification characterizing the business rules that the current transaction flow to be processed does not conform to to a first receiving end, so that in response to receiving the first type of notification, the first receiving end outputs the first type of notification to instruct a first target person to correct the current transaction flow to be processed in the transaction database according to the business rules that the current transaction flow to be processed does not conform to; and, obtaining the corrected transaction flow to be processed from the transaction database as the current transaction flow to be processed, and returning to execute the step of determining whether the current transaction flow to be processed conforms to the business rules corresponding to the business type of the current transaction flow to be processed; and / or,

[0225] The second correction process includes:

[0226] Pushing a second type of notification characterizing the abnormal transaction quantity in the current transaction flow to be processed to a second receiving end, so that in response to receiving the second type of notification, the second receiving end outputs the second type of notification to instruct a second target person to correct the transaction quantity of the current transaction flow to be processed in the transaction database; and, obtaining the corrected transaction flow to be processed from the transaction database as the current transaction flow to be processed, and returning to the step of determining whether the transaction quantity in the current transaction flow to be processed is abnormal.

[0227] Optionally, each transaction flow also includes the transaction amount of this transaction flow;

[0228] The first acquisition module 610 is specifically configured to acquire each transaction flow of the target account from the transaction database storing multiple transaction flows from the previous preset accounting moment to the current moment;

[0229] The device further includes:

[0230] A third acquisition module, configured to, when reaching the current preset accounting moment, use each transaction flow of the target account that has completed data verification obtained between the previous preset accounting moment and the current preset accounting moment as the current transaction flows to be accounted;

[0231] A first calculation module, configured to calculate a second account balance of the target account at the current preset accounting moment based on the transaction amounts of the current transaction flows to be accounted and a first account balance of the target account stored locally at the previous preset accounting moment;

[0232] A second calculation module, configured to calculate the difference between the first account balance and the second account balance;

[0233] A push module, configured to, if the calculated difference is not within a preset difference range, push a third type of notification indicating that the account balance of the target account is abnormal to a third receiving end, so that the third receiving end outputs the third type of notification in response to receiving the third type of notification to instruct a third target person to correct the transaction records of the target account in the transaction database; and, obtain, from the transaction database, each transaction record of the target account from the corrected previous preset accounting moment to the current preset accounting moment as the transaction amounts of each current transaction record to be accounted, and return to execute the step of calculating the second account balance of the target account at the current preset accounting moment based on the transaction amounts of each current transaction record to be accounted and the first account balance of the target account stored locally at the previous preset accounting moment, until the calculated difference is within the preset difference range.

[0234] Optionally, each transaction record further includes: the change amount and the current amount of each asset accounting element;

[0235] The device further includes:

[0236] An adjustment module, configured to, if the calculated difference is within the preset difference range, adjust the historical amount of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in each current transaction record to be accounted, to obtain the amount to be compared of the asset accounting element;

[0237] A third judgment module, configured to, for each asset accounting element in each current transaction record to be accounted, judge whether the amount to be compared of the asset accounting element is the same as the current amount, to obtain a result indicating whether there is an abnormality in the asset accounting element;

[0238] A generation module, configured to generate a reconciliation statement including the result indicating whether there is an abnormality in the asset accounting element, the historical amount and the current amount of each asset accounting element;

[0239] A display module, configured to display the generated reconciliation statement to the user.

[0240] In an embodiment of the present invention, an electronic device obtains the transaction records of a target account from a transaction database. Each transaction record includes the business type and the transaction quantity of the transaction record. The current transaction record to be processed is determined based on the obtained transaction records. Thus, the business type and the transaction quantity in the current transaction record can be determined. The electronic device can determine whether the current transaction record to be processed conforms to the business rules corresponding to its business type. In the case of non - compliance with the business rules, the current transaction record to be processed in the transaction database is corrected so that the current transaction record to be processed conforms to the business rules. Then, in the case where the transaction record conforms to the business rules, it is determined whether the transaction quantity in the current transaction record to be processed is abnormal, and the abnormal transaction quantity is corrected so that the transaction quantity in the current transaction record to be processed is not abnormal. The determination of whether the transaction quantity is abnormal is executed when the current transaction record to be processed conforms to the business rules. In response to the fact that the transaction quantity in the current transaction record to be processed is not abnormal, it can be determined that the verification of the current transaction record to be processed is completed. In the embodiment of the present invention, the electronic device can detect each transaction record in the transaction database that does not conform to the business rules and the abnormal transaction quantity, and obtain the corrected transaction record, avoiding manual auditing, and improving the verification efficiency and data accuracy at the same time.

[0241] An embodiment of the present invention also provides an electronic device, as Figure 7 shown, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704. Among them, the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0242] The memory 703 is used to store a computer program;

[0243] The processor 701 is used to implement the foregoing data verification method when executing the program stored on the memory 703.

[0244] The communication bus mentioned in the above - mentioned electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0245] The communication interface is used for communication between the above - mentioned electronic device and other devices.

[0246] The memory may include a Random Access Memory (RAM), or may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0247] The aforementioned processor may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0248] In another embodiment provided by the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above data verification methods are implemented.

[0249] In another embodiment provided by the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the data verification methods in the above embodiments.

[0250] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

[0251] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.

[0252] Each embodiment in this specification is described in a related manner. The same or similar parts among the embodiments can be referred to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.

[0253] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are all included in the protection scope of the present invention.

Claims

1. A data verification method, characterized in that, Applied to an electronic device, the method includes: Obtain the transaction records of a target account from a transaction database storing multiple transaction records; wherein, each transaction record includes the business type and transaction quantity of the transaction record. Based on the obtained transaction records, determine the current transaction record to be processed. Determine whether the current transaction record to be processed complies with the business rules corresponding to the business type of the current transaction record to be processed. In the case where the current transaction record to be processed does not comply with the business rules, execute a first correction process for the current transaction record to be processed in the transaction database so that the current transaction record to be processed complies with the business rules. In the case where the current transaction record to be processed complies with the business rules, determine whether the transaction quantity in the current transaction record to be processed is abnormal. In response to the transaction quantity in the current transaction record to be processed being abnormal, execute a second correction process so that the transaction quantity of the current transaction record to be processed is not abnormal. In response to the transaction quantity of the current transaction record to be processed not being abnormal, determine that the verification of the current transaction record to be processed is completed.

2. The method according to claim 1, wherein The determining the current transaction record to be processed based on the obtained transaction records includes: For each obtained transaction record, if the transaction record complies with the preset data rules, write the transaction record into the local database; wherein, the preset data rules include at least one of the following: the primary key value of the obtained transaction record does not exist in the local database, the data type of the data in the obtained transaction record is consistent with the data type in the local database, and the data in the obtained transaction record belongs to the string type and the number of characters does not exceed the preset number of characters. Read the transaction records of the target account from the local database and add the read transaction records to the message queue; wherein, the arrangement order of each transaction record in the message queue represents the processing order of each transaction record. Select an unprocessed transaction record from the message queue according to the arrangement order as the current transaction record to be processed. The method further includes: In response to the verification process for the current transaction record to be processed being completed, return to execute the step of selecting an unprocessed transaction record from the message queue according to the arrangement order as the current transaction record to be processed.

3. The method according to claim 2, wherein The message queue includes multiple sub-message queues, and the priorities of each sub-message queue are different. The processing order of the transaction records in the sub-message queue with a higher priority is before the processing order of the transaction records in the sub-message queue with a lower priority. The transaction database includes multiple types of transaction sub-databases. The priorities of each type of transaction sub-database are different. The adding the read transaction records to the message queue includes: If the priority of the transaction sub-database from which the read transaction records are sourced is higher than that of other transaction sub-databases, determine the sub-message queue with a higher priority than other sub-message queues among the multiple sub-message queues in the message queue. Add the read transaction records to the determined sub-message queue. And / or Obtaining the transaction records of the target account from the transaction database storing multiple transaction records includes: When a preset obtaining condition is satisfied, obtaining the transaction records of the target account from the transaction database storing multiple transaction records; wherein, the preset obtaining condition includes: the transaction database has a completion flag indicating the completion of the transaction record warehousing, and / or, reaching a preset time.

4. The method according to claim 1, characterized in that Each transaction record also includes the transaction time and the transaction asset identifier of this transaction record; Judging whether the number of transactions in the current transaction record to be processed is abnormal includes: Judging whether the number of transactions in the current transaction record to be processed exceeds the current holding quantity corresponding to the transaction asset identifier in the current transaction record to be processed, to obtain a result indicating whether the number of transactions in the current transaction record to be processed is abnormal; wherein, the current holding quantity corresponding to the transaction asset identifier in any transaction record is: obtained by adjusting the historical holding quantity of the asset represented by this transaction asset identifier stored locally with the number of transactions in the historical transaction record corresponding to this transaction record; the historical transaction record corresponding to this transaction record is: the transaction record with the same transaction asset identifier as this transaction record and with a transaction time before the transaction time of this transaction record.

5. The method according to claim 1, wherein The first correction process includes: Pushing the first type of notification representing the business rules that the current transaction record to be processed does not conform to to the first receiving end, so that the first receiving end outputs the first type of notification in response to receiving the first type of notification to instruct the first target person to correct the current transaction record to be processed in the transaction database according to the business rules that the current transaction record to be processed does not conform to; and, obtaining the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and returning to execute the step of judging whether the current transaction record to be processed conforms to the business rules corresponding to the business type of the current transaction record to be processed; And / or, the second correction process includes: Pushing the second type of notification representing the abnormal number of transactions in the current transaction record to be processed to the second receiving end, so that the second receiving end outputs the second type of notification in response to receiving the second type of notification to instruct the second target person to correct the number of transactions in the current transaction record to be processed in the transaction database; and, obtaining the corrected transaction record to be processed from the transaction database as the current transaction record to be processed, and returning to execute the step of judging whether the number of transactions in the current transaction record to be processed is abnormal.

6. The method according to claim 1, characterized in that, Each transaction record also includes the transaction amount of this transaction record; Obtaining the transaction records of the target account from the transaction database storing multiple transaction records includes: Obtaining each transaction record of the target account from the transaction database storing multiple transaction records from the previous preset accounting time to the current time; The method further includes: When the current preset accounting moment is reached, each transaction record of the target account obtained between the previous preset accounting moment and the current preset accounting moment, for which data verification has been completed, is used as each transaction record to be accounted for currently. Based on the transaction amounts of each transaction record to be accounted for currently and the first account balance of the target account stored locally at the previous preset accounting moment, calculate the second account balance of the target account at the current preset accounting moment. Calculate the difference between the first account balance and the second account balance. If the calculated difference is not within the preset difference range, push a third type of notification indicating that the account balance of the target account is abnormal to a third receiving end, so that in response to receiving the third type of notification, the third receiving end outputs the third type of notification to instruct a third target person to correct the transaction records of the target account in the transaction database; and obtain, from the transaction database, each transaction record of the target account from the corrected previous preset accounting moment to the current preset accounting moment as the transaction amounts of each transaction record to be accounted for currently, and return to execute the step of calculating the second account balance of the target account at the current preset accounting moment based on the transaction amounts of each transaction record to be accounted for currently and the first account balance of the target account stored locally at the previous preset accounting moment, until the calculated difference is within the preset difference range.

7. The method according to claim 6, characterized in that, Each transaction record further includes: the change amount and the current amount of each asset accounting element. The method further includes: If the calculated difference is within the preset difference range, adjust the historical amount of the asset accounting element belonging to the target account stored locally according to the change amount of each asset accounting element in each transaction record to be accounted for currently, to obtain the amount to be compared of the asset accounting element. For each asset accounting element in each transaction record to be accounted for currently, determine whether the amount to be compared of the asset accounting element is the same as the current amount, to obtain a result indicating whether there is an abnormality in the asset accounting element. Generate a reconciliation statement including the result indicating whether there is an abnormality in the asset accounting element, the historical amount and the current amount of each asset accounting element. Display the generated reconciliation statement to the user.

8. A data verification device, characterized in that, Applied to an electronic device, the apparatus includes: A first acquisition module, configured to acquire the transaction records of a target account from a transaction database storing multiple transaction records; wherein each transaction record includes the business type and the transaction quantity of the transaction record. A first determination module, configured to determine the current transaction record to be processed based on the acquired transaction records. A first judgment module, configured to judge whether the current transaction record to be processed conforms to the business rules corresponding to the business type of the current transaction record to be processed. A first execution module, configured to execute a first correction process for the current transaction record to be processed in the transaction database when the current transaction record to be processed does not conform to the business rules, so that the current transaction record to be processed conforms to the business rules. A second judgment module, configured to judge whether the number of transactions in the current transaction flow to be processed is abnormal when the current transaction flow to be processed complies with the business rules; A second execution module, configured to execute a second correction process in response to an abnormal number of transactions in the current transaction flow to be processed, so that the number of transactions in the current transaction flow to be processed is not abnormal; A second determination module, configured to determine that the verification of the current transaction flow to be processed is completed in response to the fact that the number of transactions in the current transaction flow to be processed is not abnormal.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; The processor is configured to implement the method according to any one of claims 1-7 when executing the program stored on the memory.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1-7 is implemented.