CN110232565B - Resource clearing method, device, computer equipment and storage medium - Google Patents
Resource clearing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110232565B CN110232565B CN201910418424.2A CN201910418424A CN110232565B CN 110232565 B CN110232565 B CN 110232565B CN 201910418424 A CN201910418424 A CN 201910418424A CN 110232565 B CN110232565 B CN 110232565B
- Authority
- CN
- China
- Prior art keywords
- balance
- transaction
- resource
- clearing
- resource transfer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/08—Payment architectures
- G06Q20/10—Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
- G06Q20/102—Bill distribution or payments
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/389—Keeping log of transactions for guaranteeing non-repudiation of a transaction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application relates to a resource clearing method, a device, a computer device and a storage medium. The method comprises the following steps: receiving a clearing file generated and transmitted by the transaction system; starting a plurality of threads for clearing according to the bill number of the bill data; judging whether resource transfer operation is recorded in a transaction system or not and whether resource transfer operation is recorded in a third-party memory management system or not according to each user identifier in a preset time period through a plurality of opened threads and each first transaction log; when resource transfer operation occurs in the transaction system or the third party memory management system within a preset time period, acquiring account checking balance from the account checking uneven table according to the user identification; determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system; and generating a clearing result file according to the recorded resource balance and the total balance. The adoption of the method can effectively improve the clearing efficiency.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a resource clearing method, a device, a computer device, and a storage medium.
Background
With the rapid development of computer technology and internet technology, users can enjoy digital services brought by various online services on a network without any home. While enjoying the online digital services, the user may be required to use corresponding resources (e.g., funds) on a transaction system where the user may select a corresponding service offered by a service provider to obtain the corresponding business service. To ensure the security of the user resources, the user resources are generally handed over to a third party deposit, and in particular, the business interaction mechanism hands over the user resources to a bank deposit. And the third party storage management system for realizing the third party storage management service can be responsible for storing and managing the user resources so as to ensure the safety of the user resources.
When the third party storage management system is used for clearing bill data of the transaction system, serial mode is adopted to process the bill data one by one. However, as the number of users increases, the clearing process is performed in a serial manner, so that the time taken for clearing the bill data is long, thereby affecting the transaction operation of the transaction system.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource clearing method, apparatus, computer device, and storage medium capable of improving clearing efficiency.
A resource clearing method applied to a third party storage management system, the method comprising:
receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
starting a plurality of threads for clearing according to the bill number of the bill data;
reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
when resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period, reading a reconciliation table from the database, and acquiring a reconciliation balance from the reconciliation table according to the user identification;
Determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system;
and generating a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, the determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system includes:
reading a business transaction record from the first transaction log, and determining transaction occurrence amount in the transaction system according to the business transaction record;
and calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the reconciliation balance and the resource balance in the corresponding resource account of the third party storage management system.
In one embodiment, the method further comprises:
when the clearing file comprises a user selling request, acquiring resource balance information of a user resource account;
if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account;
if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
In one embodiment, the generating a clearing result file according to the recorded resource balance and the size of the total balance includes:
when the recorded resource balance is unequal to the total balance, generating a clearing result file carrying abnormal prompt information;
the method further comprises the steps of: and sending the clearing result file to the transaction system to instruct the transaction system to re-carry out accounting according to the abnormal prompt information.
In one embodiment, the method further comprises:
when the positive punching record to be punched is detected to be stored in the database, a positive punching message is generated;
sending the positive flushing message to the transaction system;
checking accounts of the third party storage management system and the transaction system respectively according to preset checking time to generate an error detail table;
and carrying out error adjustment on the resource balance recorded on the transaction system according to the error detail table.
In one embodiment, the third party storage management system stores a second transaction log; the method further comprises the steps of:
receiving a transaction information acquisition request carrying a log number;
responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number;
And extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
In one embodiment, the method further comprises:
determining a local computing performance of running the third party memory system;
configuring a flow upper limit value according to the local computing performance;
and outputting alarm information when the data request sent by the transaction system is larger than the flow upper limit value.
A resource clearing apparatus, the apparatus comprising:
the receiving module is used for receiving the clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
the thread starting module is used for starting a plurality of threads for clearing according to the bill number of the bill data;
the judging module is used for respectively reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads and judging whether resource transfer operation of each user identifier in a transaction system occurs in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
The balance acquisition module is used for reading the account checking uneven table from the database and acquiring account checking balance from the account checking uneven table according to the user identification when the resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period;
the resource balance determining module is used for determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system;
and the file generation module is used for generating a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, the resource balance determination module is further configured to:
reading a business transaction record from the first transaction log, and determining transaction occurrence amount in the transaction system according to the business transaction record;
and calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the reconciliation balance and the resource balance in the corresponding resource account of the third party storage management system.
In one embodiment, the apparatus further comprises:
the resource account cancellation module is used for acquiring the resource balance information of the user resource account when the clearing file comprises a user sales request; if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account; if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
In one embodiment, the apparatus further comprises: a transmitting module; wherein:
the file generation module is also used for generating a clearing result file carrying abnormal prompt information when the recorded resource balance is unequal to the total balance;
and the sending module is used for sending the clearing result file to the transaction system so as to instruct the transaction system to carry out accounting again according to the abnormal prompt information.
In one embodiment, the apparatus further comprises: a punching module; wherein:
the positive punching module is used for generating a positive punching message when the positive punching record to be punched is stored in the database; sending the positive flushing message to the transaction system; checking accounts of the third party storage management system and the transaction system respectively according to preset checking time to generate an error detail table; and carrying out error adjustment on the resource balance recorded on the transaction system according to the error detail table.
In one embodiment, the third party storage management system stores a second transaction log; the apparatus further comprises: a log acquisition module; wherein:
the log acquisition module is used for receiving a transaction information acquisition request carrying a log number; responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number; and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
In one embodiment, the apparatus further comprises: a flow control module; wherein:
the flow control module is used for determining the local computing performance of the third party storage management system; configuring a flow upper limit value according to the local computing performance; and outputting alarm information when the data request sent by the transaction system is larger than the flow upper limit value.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
starting a plurality of threads for clearing according to the bill number of the bill data;
reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
When resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period, reading a reconciliation table from the database, and acquiring a reconciliation balance from the reconciliation table according to the user identification;
determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system;
and generating a clearing result file according to the recorded resource balance and the total balance.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
starting a plurality of threads for clearing according to the bill number of the bill data;
reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
When resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period, reading a reconciliation table from the database, and acquiring a reconciliation balance from the reconciliation table according to the user identification;
determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system;
and generating a clearing result file according to the recorded resource balance and the total balance.
According to the resource clearing method, the device, the computer equipment and the storage medium, the clearing file contains the bill data of a plurality of users, and a plurality of threads for clearing processing are started according to the bill number corresponding to the bill data, so that the bill data is cleared to obtain the clearing result file, the clearing processing according to the bill data is avoided, and the clearing efficiency is improved. The resource transfer list is obtained from the database through a plurality of opened threads, and whether the user performs resource transfer in the third-party storage management system can be determined without polling the database according to bill data by one stroke, so that balance clearing is performed, the step of searching corresponding resource transfer information by one stroke is omitted, and clearing efficiency is effectively improved.
Drawings
FIG. 1 is an application scenario diagram of a resource clearing method in one embodiment;
FIG. 2 is a flow diagram of a method of resource clearing in one embodiment;
FIG. 3 is a flow diagram of a user resource account cancellation step in one embodiment;
FIG. 4 is a flow chart of a method of resource clearing in another embodiment;
FIG. 5 is a block diagram of the architecture of a resource clearing device in one embodiment;
FIG. 6 is a block diagram of a resource clearing device in another embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource clearing method provided by the application can be applied to an application environment shown in figure 1. Wherein the terminal 102, the server 104 and the server 106 communicate via a network. The server 104 is installed with a third party storage management system. The server 106 is equipped with a transaction system. The server 104 receives the clearing file sent by the server 106 where the transaction system is located; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance; starting a plurality of threads for clearing according to the bill number of the bill data; judging whether the user identifications record the resource transfer operation in the transaction system in a preset time period according to each first transaction log through a plurality of opened threads, acquiring a resource transfer list from a database according to each first transaction log, and judging whether the user identifications record the resource transfer operation in a third-party memory management system in the preset time period according to the resource transfer list; when resource transfer operation occurs in the transaction system or the third party memory management system within a preset time period, acquiring account checking balance from the account checking uneven table according to the user identification; calculating the resource balance recorded by the transaction system according to the balance of the account and the resource balance in the corresponding resource account of the third party storage management system; and generating a clearing result file according to the recorded resource balance and the total balance. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a resource clearing method is provided, and the method is applied to the server 104 in fig. 1 for illustration, and includes the following steps:
s202, receiving a clearing file generated and transmitted by a transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance.
The trading system can be a securities trading system, and can be logged in through a webpage, a computer client or a mobile client to initiate business transactions (such as securities business transactions of stocks, funds, period indexes and the like) and resource transfer (such as banking transfer certificate and certificate banking transfer certificate) and the like. The above-described resource transfer may include a resource in request and a resource out request. For example, a resource transfer may refer to transferring funds from a user's personal bank settlement account to a user transaction settlement funds management account. The user personal bank settlement account can be a common banking account of the user. The user transaction settlement funds management account may be a funds-holding-management specialist for stock-buying and selling purposes, opened by a holding bank for the user. The resource may be a user's funds or a product for representing funds.
In one embodiment, when the timed clearing time condition is met, the transaction system's resident server 106 generates a clearing file to the server 104 and encapsulates the clearing file to obtain a clearing request for instructing the server 104 to conduct a clearing process.
In another embodiment, the corresponding client of the transaction system displays a clearing operation page, and when a clearing operation triggered by the transmission on the clearing operation page is detected, the clearing operation is specific to a batch of users or users with business operation in a period of time, the client generates a clearing request packaged with the clearing file, and then sends the clearing request packaged with the clearing file to the server 104 through the server 106 where the transaction system is located.
In one embodiment, the clearance request may also carry an institution identification for identifying the institution to which the transaction system belongs. When receiving the clearing request carrying the organization identification, the server 104 determines whether there is a matching identification in the organization identification list supporting 7×24 hours for the organization identification carried in the resource transfer request. If yes, executing S204, if not, refusing to execute the subsequent steps.
In one embodiment, the clearing file may also carry an institution identification for identifying the institution to which the transaction system belongs. When a clearing file carrying the organization identification is received, the server 104 records the receiving time of the clearing file, and when the receiving time does not belong to a preset working period, judges whether the matching identification exists in the organization identification list supporting 7×24 hours in the organization identification carried in the resource transfer request. If yes, executing S204, if not, refusing to execute the subsequent steps.
S204, starting a plurality of threads for clearing according to the bill number of the bill data.
The bill data may be data recorded by the user when transferring resources or handling different services within a certain time. Correspondingly, the number of bill data can be calculated according to the number of resource transfer times or the number of business processes, and the number is used for indicating the number of resource transfer times occurring within a certain time or the number of business processes, for example, the user performs two transfer operations within different time, and the corresponding number of bill data is 2. Alternatively, the number of bills may be calculated as the number of users, to indicate the number of users who have transferred resources or transacted business within a certain period of time, for example, a single user indicates that the number of bills is 1, and a plurality of users indicates that the number of bills is a plurality.
In one embodiment, server 104 parses the clearing file to obtain a plurality of user identifications and corresponding billing data, and determines the number of user identifications as the billing number. Or after the bill data is obtained, counting the number of times of resource transfer or the number of transacting different services each time within a certain time by the bill data, and taking the counted result as the bill number.
S206, respectively reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads, and judging whether resource transfer operation of each user identifier in a transaction system occurs in a preset time period according to the first resource transfer records; and acquiring a resource transfer list from the database, respectively reading second resource transfer records corresponding to the plurality of first transaction logs from the resource transfer list through a plurality of opened threads, and judging whether the resource transfer operation is recorded in the third-party memory management system or not according to the second resource transfer records.
The resource may be, among other things, the user's funds or other resources representing funds (e.g., precious metals purchased at a bank for financial purposes). The transaction log maintains a resource transfer record (e.g., a transferred resource amount and corresponding time) and a business transaction record (e.g., stock buy and sell information and corresponding time).
It should be noted that, the transaction log in the clearing file may include a resource transfer record (such as a transferred resource amount) recorded in the transaction system, and the resource transfer record recorded in the third party storage system is stored in the resource transfer list in the local database, so that whether the user identifier records the resource transfer operation in the transaction system and the third party storage system in the preset time period can be judged according to the recorded resource transfer record.
And judging the resource transfer operation on the transaction system, wherein a first resource transfer record generated on the transaction system is stored in the first transaction log, so that whether the user generates the resource transfer operation in a preset time period can be judged by reading the first resource transfer record in the first transaction log.
And judging the resource transfer operation on the third-party storage management system, wherein a resource transfer list about the resource transfer which occurs on the third-party storage management system is stored in a database, and whether the user performs the resource transfer operation in a preset time period can be judged by reading a second resource transfer record in the resource transfer list.
S208, when resource transfer operation occurs in the transaction system or the third party memory management system within a preset time period, reading the account checking uneven table from the database, and acquiring account checking difference from the account checking uneven table according to the user identification.
The account checking uneven table stores the difference between the resource balance recorded by the third party storage management system and the resource balance recorded by the transaction system.
In the process of resource transfer, if the third party storage management system performs the resource transfer, when the confirmation information of successful resource transfer is sent to the transaction system due to the network problem, the transaction system does not receive the confirmation information in time, so that the transaction system may not update the balance of the resource in time, and the balance of the transaction system and the third party storage management system are unequal. Or in the process of resource transfer, the transaction system updates the balance of the resources, and the resource transfer operation is not successfully performed in the third party storage management system, so that the balance of the resources of the transaction system and the third party storage management system are unequal. The balance between the resource balance recorded by the third party memory management system and the resource balance recorded by the transaction system is stored in the reconciliation level table.
The resource transfer includes a resource transfer-in and a resource transfer-out. For example, a resource transfer may refer to transferring funds from a user's personal bank settlement account to a user transaction settlement funds management account. The user personal bank settlement account can be a common banking account of the user. The user trade settlement funds management account may be a funds management specialist for use in stock buying and selling securities, which is opened by a third party stock bank for the user according to the securities authority requirements.
In one embodiment, when a resource transfer operation occurs in the transaction system or the third party memory system within a preset period of time, the server 104 obtains the reconciliation balance from the reconciliation balance according to the user identification according to the obtained reconciliation balance.
S210, calculating the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system.
In one embodiment, if the balance of the resources recorded by the transaction system is not equal to the balance of the resources recorded by the third party storage management system due to the network problem during the resource transfer operation, the server 104 uses the sum of the balance and the balance of the resources in the corresponding resource account of the third party storage management system as the balance of the resources recorded by the transaction system. In addition, the server 104 also uses the sum of the two values as the final balance of the resources in the corresponding resource account of the third party management system.
In one embodiment, if the balance of the resources recorded in the transaction system is not equal to the balance of the resources recorded in the third party storage management system due to the network problem during the resource transfer operation, the server 104 uses the difference between the balance of the reconciliation and the balance of the resources in the corresponding resource account of the third party storage management system as the balance of the resources recorded in the transaction system. In addition, the server 104 also uses the difference value of the two as the final balance of the resources in the corresponding resource account of the third party management system.
In one embodiment, when the balance of the resources recorded by the transaction system is unequal to the balance of the resources recorded by the third-party storage management system due to the network problem during the resource transfer operation, the server 104 sends the balance of the resources recorded by the third-party storage management system to the transaction system as a final balance of the resources, so that the transaction system updates according to the received balance of the resources.
In one embodiment, S210 may specifically include: the server 104 determines the transaction occurrence amount in the transaction system, and calculates the resource balance recorded by the transaction system according to the transaction occurrence amount, the balance and the resource balance in the corresponding resource account of the third party storage management system.
Wherein the transaction occurrence amount may be a resource amount generated by performing a business transaction at the transaction system. For example, a user purchases funds generated by stock over a stock exchange system. If the held stock is sold, the transaction occurrence is added. If the ticket is purchased, the transaction occurrence is subtracted.
S212, generating a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, S212 may specifically include: when the recorded balance of the resources is not equal to the total balance, the server 104 generates a clearing result file carrying abnormal prompt information. The method further comprises the steps of: the server 104 sends the clearing result file to the transaction system to instruct the transaction system to re-account according to the anomaly prompt.
In one embodiment, server 104 opens a plurality of threads according to the number of bill notes, and calculates the sum of the last day balance and the transaction amount generated by the transaction performed by the transaction system on the current day through the opened plurality of threads, respectively, to obtain the end-of-day balance. The server 104 compares whether the end-of-day balance is consistent with the total balance in the clearing file, and if not, the server indicates that the bill data is abnormal; if the data are consistent, the bill data are indicated to be normal.
In one embodiment, the server 104 opens a plurality of threads according to the number of bill, calculates the monthly balance of each user through the opened plurality of threads, converts the calculated monthly balance into the fund share of the transaction system, and generates a clearing result file containing the fund share.
In the above embodiment, the clearing file includes the bill data of a plurality of users, and a plurality of threads for clearing are opened according to the bill number corresponding to the bill data, so as to clear the bill data to obtain the clearing result file, thereby avoiding clearing according to the bill data, and improving the clearing efficiency. The resource transfer list is obtained from the database through a plurality of opened threads, and whether the user performs resource transfer in the third-party storage management system can be determined without polling the database according to bill data by one stroke, so that balance clearing is performed, the step of searching corresponding resource transfer information by one stroke is omitted, and clearing efficiency is effectively improved.
In one embodiment, as shown in fig. 3, the method may further comprise:
s302, when the clearance file comprises a sales request, acquiring the resource balance information of the user resource account.
In one embodiment, if the user performs a sell operation at the client, when the server 106 where the transaction system is located detects the sell operation initiated by the client, a corresponding clearing file is generated, and the clearing file is encapsulated to the sell request. The server 104 parses the clearing file to obtain the user identification corresponding to the sales request. The server 104 obtains the resource balance information corresponding to the user identification and the user resource account.
S304, if the obtained balance information of the resources represents that the balance exists in the account, the balance of the resources is transferred to the corresponding target account and then the user resource account is logged off.
In one embodiment, the server 104 determines, according to the resource balance information, whether a balance exists in a user resource account corresponding to the third party storage management system, and if so, executes S304; if not, S306 is performed.
S306, if the obtained resource balance information indicates that the account has no balance, directly logging out the user resource account.
In the above embodiment, when receiving the user initiated user selling request, the corresponding user selling operation is performed according to the resource balance information, so as to ensure the security of the user's personal resources.
In one embodiment, the method further comprises: when detecting that the positive record to be punched is stored in the database, the server 104 generates a positive message; the server 104 sends a reply message to the transaction system, and checks the third party memory management system and the transaction system respectively according to the preset checking time to generate an error detail table. The server 104 performs error adjustment on the resource balance recorded on the transaction system according to the error list, so as to realize the charging of the resource account corresponding to the transaction system.
Error adjustment may refer to, among other things: the resource transfer operation occurs on the third party storage management system, and the transaction system is not synchronized in time due to the network, so that the balance on the resource account in the third party storage management system needs to be adjusted. Or, the transaction system is provided with a resource transfer record, and the third party storage management system is not synchronized in time due to the network, so that the balance recorded on the transaction system needs to be adjusted.
In one embodiment, error values for resource balances on the transaction system and the third party memory system are described in an error detail table. The step of performing error adjustment on the resource balance recorded on the transaction system according to the error detail table may specifically include: when it is determined that an error has occurred in the balance of the resource recorded in the transaction system based on the error list, the balance recorded in the transaction system is adjusted based on the error value recorded in the error list. For example, when a 1000-yuan transfer record is recorded on the transaction system, if the balance recorded on the transaction system is inconsistent with the balance recorded on the third party deposit management system due to unsuccessful transfer caused by abnormality in the process of executing the transfer, an error value (namely, 1000 yuan) can be read from the error detail table, and only the balance recorded on the transaction system is adjusted according to the error.
Specifically, when the network is abnormal, causing overtime of a host or overdrawing of a dealer during the day, and the positive punching manager finds a positive punching record to be punched, the server 104 sends a positive punching message to the transaction system; the server 104 checks the third party storage management system and the transaction system according to the preset checking time, generates an error detail table, and performs error adjustment on balances recorded on the transaction system according to error values in the error detail table; the server 104 settles the transaction system according to the reconciliation result, so that the single-side account problem can be solved.
In one embodiment, if the daytime host times out or the transaction system deducts out, the server 104 inserts a positive record in the database. The server 104 scans the database at regular intervals (e.g., one minute) through the positive manager, and if a positive record to be positively flushed is found, a positive flushing message is automatically generated to initiate positive flushing to the transaction system.
In the above embodiment, error adjustment is performed on the resource account corresponding to the transaction system, so that the transaction system corresponding resource account is flushed, the problem of single account billing can be solved in daytime, users can conveniently master the use of funds at any time, the flexibility and the usability of the users for using the funds are improved, and the user experience is greatly improved.
In one embodiment, a third party repository system stores a second transaction log; the method further comprises the steps of: the server 104 receives a transaction information acquisition request carrying a log number; responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number; and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
Wherein, the log number can be composed of transaction code + machine code. Each business transaction or resource transfer operation is assigned a transaction code. Each service is assigned a unique 2-bit code.
As an example, each transaction request may be found in a single transaction log, where the method of searching may be that the server 104 may locate all transaction information of the transaction by using a log number (whether initiated from a bank end, a dealer end, a collaboration or a management platform, or a batch may generate a unique log number), and may obtain corresponding transaction information without searching back and forth in a plurality of different transaction logs, thereby greatly improving the efficiency of searching transactions.
In one embodiment, when an abnormality is detected in a corresponding node in the transaction log or the transaction information meets a preset condition, a highlight identifier is used for identification, so that log error information is quickly positioned according to the highlight identifier. In addition, the machine code and the log number are stored in a serial number field of the flow meter in the database, so that the corresponding transaction log can be quickly positioned in the flow meter through the log number, and meanwhile, the transaction log and the database can be established in a bidirectional query relationship by only positioning the log number in the flow meter to a server for storing the transaction log. Therefore, the staff can independently complete all methods for searching the log through training for 5 minutes, so that the production and maintenance cost is greatly reduced, and the maintenance period is greatly shortened.
In the embodiment, the corresponding log information can be searched through the log number, so that the transaction information can be quickly and effectively searched, on one hand, the corresponding transaction information can be obtained without searching back and forth in a plurality of different transaction logs, and the transaction searching efficiency is greatly improved; on the other hand, the production and maintenance cost is greatly reduced, and the maintenance period is greatly reduced.
In one embodiment, the method further comprises: server 104 determines a local computing performance for running the third party memory system; configuring a flow upper limit value according to the local computing performance; and outputting alarm information when the data request sent by the transaction system is larger than the upper limit value of the flow.
In one embodiment, the server 104 determines a local computing capability, performs a flow parameterization configuration on the transaction system and the financial management system of the partner bank according to the local computing capability, and outputs alarm information when data requests sent by the profound communication server and the financial management system of the partner bank exceed the configured flow threshold. Further, the server 104 processes the received data request in accordance with the configured traffic upper limit value, and refuses the processing of the data request portion exceeding the traffic upper limit value.
In addition, server 104 may not need to restart the system when configuring the upper flow limit and other configuration parameters. Specifically, the server 104 receives a parameter configuration request, configures corresponding parameters in a parameter table of the database according to the parameter configuration request, and loads the configured parameters into the memory. In this way, it is possible to ensure that the newly configured parameters are enabled without restarting the system, ensuring continuity of the service during the working period.
Wherein, the configuration parameters may include: the number of threads of the security passes, the number of threads available for the security passes alarm threshold, the configuration of current limiting parameters according to a dealer and a cooperation, the conversion of certificate types, the configuration of a dealer application identifier, the configuration of a security dealer individual family information file detail format, the configuration of a log, the configuration of a B-strand FTP, the configuration of a system, the configuration of the record number of each page, the configuration of the user number of the dealer, the configuration of the IP of a query service state, the configuration of a centralized operation part FTP, the configuration of backup parameters, the configuration of the B-strand security passes, the configuration of the record number of each page and the like.
For example, the number of records of each page is 10, when the channel performs transaction detail query transaction system, 10 records are returned per page, if the current business requires 20 records to be returned per page, only 10 records of the parameter table are required to be changed to 20, and then the refreshing cache is immediately effective without modifying any program code.
In the above embodiment, the flow parameter is configured according to the local computing performance, and when the received flow exceeds the configured value, the alarm information is output, so that the anti-damage capability of the system can be greatly improved, and the perceptibility of operation and maintenance personnel to the system can be greatly improved.
As an example, as shown in fig. 4, in the embodiment of the present invention, the process of dealer initiating a resource clearance request for clearance includes:
s402, receiving a clearing request sent by a dealer;
wherein, the dealer can be a stock exchange. The clearing request has a clearing file encapsulated therein.
S404, checking whether the reconciliation status in the line is complete;
s406, exiting if not completed;
s408, if so, checking whether the clearing file is completed in warehouse and the clearing state is initial;
s410, setting the reconciliation status of the dealer as in-process;
s412, checking out the account of the single user;
s414, checking account with funds sales;
s416, checking out the account by the zero-amount account-selling party;
s418, carrying out subsequent clearing file reconciliation;
s420, whether a funds account exists in which the bank has a transfer record and the dealer has no transfer record, or in which the dealer has a transfer record and the bank has no transfer record;
s422, transferring accounts-checking uneven tables of dealer without transferring accounts-checking records of dealer in the dealer clearing file;
S424, transverse collation: real-time balance at bank end + dealer end occurrence amount + balance in tie-off table = total balance sent by dealer;
s426, longitudinal checking: day-old balance + day-old occurrence amount = day-end balance, generating a dealer balance table for the day;
s428, if the previous check is the proxy reconciliation, the proxy generates a dealer transmission total balance;
s430, clearing is completed;
s432, sending the dealer reconciliation result file to the transaction system.
It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided a resource clearing apparatus comprising: a receiving module 502, a thread starting module 504, a judging module 506, a difference obtaining module 508, a resource balance determining module 510 and a file generating module 512, wherein:
a receiving module 502 for receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
a thread opening module 504, configured to open a plurality of threads for clearing according to the billing number of the billing data;
the judging module 506 is configured to read first resource transfer records in the plurality of first transaction logs through the opened plurality of threads, and judge whether resource transfer operation occurs in the transaction system for each user identifier in a preset time period according to the first resource transfer records; the resource transfer list is obtained from the database, second resource transfer records corresponding to the plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in a third-party memory management system or not is judged according to the second resource transfer records;
The balance obtaining module 508 is configured to read the reconciliation table from the database when the resource transfer operation occurs in the transaction system or the third party memory management system within the preset period of time, and obtain the reconciliation balance from the reconciliation table according to the user identifier;
the resource balance determining module 510 is configured to determine a resource balance recorded by the transaction system according to the balance of the balance and a resource balance in a resource account corresponding to the third party storage management system;
the file generating module 512 is configured to generate a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, the resource balance determination module 510 is further configured to: reading a business transaction record from the first transaction log, and determining transaction occurrence amount in a transaction system according to the business transaction record; and calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the balance and the resource balance in the corresponding resource account of the third party storage management system.
In the above embodiment, the clearing file includes the bill data of a plurality of users, and a plurality of threads for clearing are opened according to the bill number corresponding to the bill data, so as to clear the bill data to obtain the clearing result file, thereby avoiding clearing according to the bill data, and improving the clearing efficiency. The resource transfer list is obtained from the database through a plurality of opened threads, and whether the user performs resource transfer in the third-party storage management system can be determined without polling the database according to bill data by one stroke, so that balance clearing is performed, the step of searching corresponding resource transfer information by one stroke is omitted, and clearing efficiency is effectively improved.
In one embodiment, as shown in fig. 6, the apparatus further comprises: a resource account cancellation module 514, wherein:
a resource account cancellation module 514, configured to obtain resource balance information of a user resource account when the clearing file includes a request from a sales user; if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account; if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
In one embodiment, the apparatus further comprises: a transmitting module 516; wherein:
the file generating module 512 is further configured to generate a clearing result file carrying the abnormality prompt information when the recorded balance of the resources is not equal to the total balance;
and the sending module 516 is configured to send the clearing result file to the transaction system, so as to instruct the transaction system to re-perform accounting according to the abnormal prompt information.
In the above embodiment, when receiving the user initiated user selling request, the corresponding user selling operation is performed according to the resource balance information, so as to ensure the security of the user's personal resources.
In one embodiment, as shown in fig. 6, the apparatus further comprises: a punch-out module 518; wherein:
The positive punching module 518 is configured to generate a positive punching message when it is detected that a positive punching record to be punched is stored in the database; sending a positive flushing message to a transaction system; respectively checking accounts of a third party storage management system and a transaction system according to preset checking time to generate an error detail table; and performing error adjustment on the resource balance recorded on the transaction system according to the error detail table.
In the above embodiment, error adjustment is performed on the resource account corresponding to the transaction system, so that the transaction system corresponding resource account is flushed, the problem of single account billing can be solved in daytime, users can conveniently master the use of funds at any time, the flexibility and the usability of the users for using the funds are improved, and the user experience is greatly improved.
In one embodiment, a third party storage management system stores a second transaction log; as shown in fig. 6, the apparatus further includes: a log acquisition module 520; wherein:
the log obtaining module 520 is configured to receive a transaction information obtaining request carrying a log number; responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number; and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
In the embodiment, the corresponding log information can be searched through the log number, so that the transaction information can be quickly and effectively searched, on one hand, the corresponding transaction information can be obtained without searching back and forth in a plurality of different transaction logs, and the transaction searching efficiency is greatly improved; on the other hand, the production and maintenance cost is greatly reduced, and the maintenance period is greatly reduced.
In one embodiment, as shown in fig. 6, the apparatus further comprises: a flow control module 522; wherein:
a flow control module 522 for determining local computing performance of running the third party memory system; configuring a flow upper limit value according to the local computing performance; and outputting alarm information when the data request sent by the transaction system is larger than the upper limit value of the flow.
In the above embodiment, the flow parameter is configured according to the local computing performance, and when the received flow exceeds the configured value, the alarm information is output, so that the anti-damage capability of the system can be greatly improved, and the perceptibility of operation and maintenance personnel to the system can be greatly improved.
The specific limitation regarding the resource clearing device may be referred to as limitation on the resource clearing method hereinabove, and will not be described herein. The various modules in the resource clearing apparatus described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as clearing files. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a resource clearing method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance; starting a plurality of threads for clearing according to the bill number of the bill data; reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; the resource transfer list is obtained from the database, second resource transfer records corresponding to the plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in a third-party memory management system or not is judged according to the second resource transfer records; when resource transfer operation occurs in the transaction system or the third party memory management system within a preset time period, reading the account checking uneven table from the database, and acquiring account checking difference from the account checking uneven table according to the user identification; determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system; and generating a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, the processor when executing the computer program further performs the steps of: reading a business transaction record from the first transaction log, and determining transaction occurrence amount in a transaction system according to the business transaction record; and calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the balance and the resource balance in the corresponding resource account of the third party storage management system.
In one embodiment, the processor when executing the computer program further performs the steps of: when the clearing file comprises a sales request, acquiring resource balance information of a user resource account; if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account; if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
In one embodiment, the processor when executing the computer program further performs the steps of: when the recorded resource balance is unequal to the total balance, generating a clearing result file carrying abnormal prompt information; the method further comprises the steps of: and sending the clearing result file to the transaction system to instruct the transaction system to re-conduct accounting according to the abnormal prompt information.
In one embodiment, the processor when executing the computer program further performs the steps of: when the positive punching record to be punched is detected to be stored in the database, a positive punching message is generated; sending a positive flushing message to a transaction system; respectively checking accounts of a third party storage management system and a transaction system according to preset checking time to generate an error detail table; and performing error adjustment on the resource balance recorded on the transaction system according to the error detail table.
In one embodiment, a third party repository system stores a second transaction log; the processor when executing the computer program also implements the steps of: receiving a transaction information acquisition request carrying a log number; responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number; and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
In one embodiment, the processor when executing the computer program further performs the steps of: determining a local computing performance of operating the third party memory system; configuring a flow upper limit value according to the local computing performance; and outputting alarm information when the data request sent by the transaction system is larger than the upper limit value of the flow.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance; starting a plurality of threads for clearing according to the bill number of the bill data; reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; the resource transfer list is obtained from the database, second resource transfer records corresponding to the plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in a third-party memory management system or not is judged according to the second resource transfer records; when resource transfer operation occurs in the transaction system or the third party memory management system within a preset time period, reading the account checking uneven table from the database, and acquiring account checking difference from the account checking uneven table according to the user identification; determining the resource balance recorded by the transaction system according to the balance of the balance and the resource balance in the corresponding resource account of the third party storage management system; and generating a clearing result file according to the recorded resource balance and the total balance.
In one embodiment, the computer program when executed by the processor further performs the steps of: reading a business transaction record from the first transaction log, and determining transaction occurrence amount in a transaction system according to the business transaction record; and calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the balance and the resource balance in the corresponding resource account of the third party storage management system.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the clearing file comprises a sales request, acquiring resource balance information of a user resource account; if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account; if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the recorded resource balance is unequal to the total balance, generating a clearing result file carrying abnormal prompt information; the method further comprises the steps of: and sending the clearing result file to the transaction system to instruct the transaction system to re-conduct accounting according to the abnormal prompt information.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the positive punching record to be punched is detected to be stored in the database, a positive punching message is generated; sending a positive flushing message to a transaction system; respectively checking accounts of a third party storage management system and a transaction system according to preset checking time to generate an error detail table; and performing error adjustment on the resource balance recorded on the transaction system according to the error detail table.
In one embodiment, a third party repository system stores a second transaction log; the computer program when executed by the processor also performs the steps of: receiving a transaction information acquisition request carrying a log number; responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number; and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a local computing performance of operating the third party memory system; configuring a flow upper limit value according to the local computing performance; and outputting alarm information when the data request sent by the transaction system is larger than the upper limit value of the flow.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.
Claims (10)
1. A resource clearing method applied to a third party storage management system, the method comprising:
receiving a clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
starting a plurality of threads for clearing according to the bill number of the bill data;
Reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads respectively, and judging whether resource transfer operation of each user identifier occurs in a transaction system in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
when resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period, reading a reconciliation table from the database, and acquiring a reconciliation balance from the reconciliation table according to the user identification;
reading a business transaction record from the first transaction log, and determining transaction occurrence amount in the transaction system according to the business transaction record; calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the account balance and the resource balance in the corresponding resource account of the third party storage management system;
When the recorded resource balance is unequal to the total balance, generating a clearing result file carrying abnormal prompt information; and sending the clearing result file to the transaction system to instruct the transaction system to re-carry out accounting according to the abnormal prompt information.
2. The method according to claim 1, wherein the method further comprises:
analyzing the clearing file to obtain a plurality of user identifications and corresponding bill data;
determining the number of the user identifications as the billing number; or,
and taking the counted times of resource transfer or the number of different business handling in each time within a certain time in the bill data as the bill number.
3. The method according to claim 1, wherein the method further comprises:
when the clearing file comprises a user selling request, acquiring resource balance information of a user resource account;
if the obtained balance information of the resources represents that the balance exists in the account, transferring the balance of the resources to a corresponding target account and then logging off the user resource account;
if the obtained resource balance information indicates that the account has no balance, the user resource account is directly logged out.
4. The method according to claim 1, wherein the method further comprises:
when the balance of the resources recorded by the transaction system is unequal to the balance of the resources recorded by the third-party storage management system due to the network problem in the resource transfer operation process, the balance of the resources recorded by the third-party storage management system is used as the final balance of the resources to be sent to the transaction system, so that the transaction system can update according to the received balance of the resources.
5. The method according to any one of claims 1 to 4, further comprising:
when the positive punching record to be punched is detected to be stored in the database, a positive punching message is generated;
sending the positive flushing message to the transaction system;
checking accounts of the third party storage management system and the transaction system respectively according to preset checking time to generate an error detail table;
and carrying out error adjustment on the resource balance recorded on the transaction system according to the error detail table.
6. The method of any one of claims 1 to 4, wherein the third party storage management system stores a second transaction log; the method further comprises the steps of:
receiving a transaction information acquisition request carrying a log number;
Responding to the transaction information acquisition request, and acquiring a second transaction log corresponding to the log number;
and extracting transaction information from the second transaction log, and outputting and displaying the extracted transaction information.
7. The method according to any one of claims 1 to 4, further comprising:
determining a local computing performance of running the third party memory system;
configuring a flow upper limit value according to the local computing performance;
and outputting alarm information when the data request sent by the transaction system is larger than the flow upper limit value.
8. A resource clearing apparatus for use with a third party storage management system, the apparatus comprising:
the receiving module is used for receiving the clearing file generated and transmitted by the transaction system; the clearing file stores a plurality of user identifications and corresponding bill data; the billing data includes a first transaction log and a total balance;
the thread starting module is used for starting a plurality of threads for clearing according to the bill number of the bill data;
the judging module is used for respectively reading first resource transfer records in a plurality of first transaction logs through a plurality of opened threads and judging whether resource transfer operation of each user identifier in a transaction system occurs in a preset time period according to the first resource transfer records; a resource transfer list is obtained from a database, second resource transfer records corresponding to a plurality of first transaction logs are respectively read from the resource transfer list through a plurality of opened threads, and whether the resource transfer operation is recorded in the third-party memory management system or not is judged according to the second resource transfer records;
The balance acquisition module is used for reading the account checking uneven table from the database and acquiring account checking balance from the account checking uneven table according to the user identification when the resource transfer operation occurs in the transaction system or the third party memory management system within the preset time period;
the resource balance determining module is used for reading a business transaction record from the first transaction log and determining transaction occurrence amount in the transaction system according to the business transaction record; calculating the resource balance recorded by the transaction system according to the transaction occurrence amount, the account balance and the resource balance in the corresponding resource account of the third party storage management system;
the file generation module is used for generating a clearing result file carrying abnormal prompt information when the recorded resource balance is unequal to the total balance;
and the sending module is used for sending the clearing result file to the transaction system so as to instruct the transaction system to carry out accounting again according to the abnormal prompt information.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910418424.2A CN110232565B (en) | 2019-05-20 | 2019-05-20 | Resource clearing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910418424.2A CN110232565B (en) | 2019-05-20 | 2019-05-20 | Resource clearing method, device, computer equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110232565A CN110232565A (en) | 2019-09-13 |
| CN110232565B true CN110232565B (en) | 2023-09-05 |
Family
ID=67860787
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910418424.2A Active CN110232565B (en) | 2019-05-20 | 2019-05-20 | Resource clearing method, device, computer equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110232565B (en) |
Families Citing this family (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110766540A (en) * | 2019-10-25 | 2020-02-07 | 上海德启信息科技有限公司 | Bill verification and cancellation method and device and electronic equipment |
| CN111047303A (en) * | 2019-12-09 | 2020-04-21 | 湖北碳排放权交易中心有限公司 | Carbon emission right transaction settlement method and system |
| CN111061567B (en) * | 2019-12-17 | 2023-05-30 | 腾讯科技(深圳)有限公司 | Resource data processing method, device, computer readable storage medium and computer equipment |
| CN111161073B (en) * | 2019-12-30 | 2024-11-26 | 腾讯科技(深圳)有限公司 | Resource exchange method, device, computer-readable storage medium, and computer device |
| CN111340487A (en) * | 2020-02-20 | 2020-06-26 | 腾讯科技(深圳)有限公司 | Resource settlement method and device |
| CN111953650A (en) * | 2020-06-29 | 2020-11-17 | 五八到家有限公司 | Service account logout method, device, equipment and storage medium |
| CN111951009A (en) * | 2020-07-26 | 2020-11-17 | 中国建设银行股份有限公司 | A transaction data processing method, apparatus, electronic device and computer-readable storage medium |
| CN111861692B (en) * | 2020-07-27 | 2024-03-19 | 深圳乐信软件技术有限公司 | Account checking method, system, server and storage medium based on rule engine |
| CN114092237B (en) * | 2020-08-25 | 2024-12-10 | 湖南福米信息科技有限责任公司 | Clearing processing method, device, system and equipment based on difference value |
| CN112053241A (en) * | 2020-08-27 | 2020-12-08 | 中信银行股份有限公司 | Transaction clearing method and device, electronic equipment and computer-readable storage medium |
| CN112085607B (en) * | 2020-09-27 | 2024-11-29 | 中国建设银行股份有限公司 | Resource transfer method, device and equipment |
| CN112446697B (en) * | 2020-11-12 | 2024-05-28 | 深圳海付移通科技有限公司 | Account checking method, account checking device, computer equipment and storage medium |
| CN113065952A (en) * | 2020-11-23 | 2021-07-02 | 上海金融期货信息技术有限公司 | A method and system for automatic settlement of derivatives |
| CN112634045B (en) * | 2020-12-30 | 2024-08-13 | 平安证券股份有限公司 | Data processing method, device, electronic equipment and storage medium |
| CN112732415B (en) * | 2021-01-06 | 2024-03-29 | 深圳华锐分布式技术股份有限公司 | Transaction processing method, device and equipment based on resource exchange proxy system |
| CN112926962B (en) * | 2021-01-20 | 2024-07-23 | 北京思特奇信息技术股份有限公司 | Method and system for repairing business handling exception according to cost change |
| CN113988999B (en) * | 2021-09-27 | 2025-01-14 | 上海数禾信息科技有限公司 | Method, device, computer equipment and storage medium for settling business placement fees |
| CN114218056B (en) * | 2021-12-07 | 2024-06-25 | 建信金融科技有限责任公司 | Performance test method and device for transaction system, computer equipment and storage medium |
| CN114625752A (en) * | 2022-02-28 | 2022-06-14 | 携程商旅信息服务(上海)有限公司 | Generation method, system, equipment and medium of order settlement data |
| CN114693433B (en) * | 2022-03-30 | 2025-06-27 | 中国建设银行股份有限公司 | Data processing method, device, equipment, medium and computer program product |
| CN114677215A (en) * | 2022-04-25 | 2022-06-28 | 中国工商银行股份有限公司 | Bank data processing method, device, computer equipment and storage medium |
| CN115660863A (en) * | 2022-10-26 | 2023-01-31 | 中国农业银行股份有限公司 | System and method for financial management and liquidation |
| CN116401312A (en) * | 2023-03-30 | 2023-07-07 | 中国建设银行股份有限公司 | Method, system, terminal device, storage medium and product for distributed parallel historical data archiving |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101477667A (en) * | 2009-01-19 | 2009-07-08 | 阿里巴巴集团控股有限公司 | Transaction data processing method and system |
| CN101706935A (en) * | 2009-12-01 | 2010-05-12 | 中国建设银行股份有限公司 | Method, device and system for acting deposit and management service of third party |
| CN108765117A (en) * | 2018-05-18 | 2018-11-06 | 连连银通电子支付有限公司 | A kind of account checking method and system of real-time multi-task processing |
| CN109614263A (en) * | 2018-10-29 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Disaster recovery data processing method, device and system |
| CN109685494A (en) * | 2018-12-17 | 2019-04-26 | 深圳壹账通智能科技有限公司 | Payable by installment method, apparatus, computer equipment and storage medium |
-
2019
- 2019-05-20 CN CN201910418424.2A patent/CN110232565B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101477667A (en) * | 2009-01-19 | 2009-07-08 | 阿里巴巴集团控股有限公司 | Transaction data processing method and system |
| CN101706935A (en) * | 2009-12-01 | 2010-05-12 | 中国建设银行股份有限公司 | Method, device and system for acting deposit and management service of third party |
| CN108765117A (en) * | 2018-05-18 | 2018-11-06 | 连连银通电子支付有限公司 | A kind of account checking method and system of real-time multi-task processing |
| CN109614263A (en) * | 2018-10-29 | 2019-04-12 | 阿里巴巴集团控股有限公司 | Disaster recovery data processing method, device and system |
| CN109685494A (en) * | 2018-12-17 | 2019-04-26 | 深圳壹账通智能科技有限公司 | Payable by installment method, apparatus, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110232565A (en) | 2019-09-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110232565B (en) | Resource clearing method, device, computer equipment and storage medium | |
| US20200007647A1 (en) | Real-time Event Orchestrator | |
| WO2021222690A1 (en) | Blockchain network risk management universal blockchain data model | |
| CN114077948B (en) | Transaction supervision method, device and electronic device on blockchain | |
| JP2018139067A (en) | Financial transaction method and system using blockchain | |
| US20230289692A1 (en) | Risk management system interface | |
| CN111445248B (en) | Foreign exchange transaction processing method, device, system and storage medium | |
| WO2025086378A1 (en) | Data processing method and apparatus for virtual resources | |
| CN110598479B (en) | A data processing method, device and computer readable storage medium | |
| KR102107454B1 (en) | System for multiplication of financial payment networks, method for financial services using the same and computer program for the same | |
| CN114092074A (en) | Channel routing-based transaction method and device, computer equipment and storage medium | |
| CN116703395B (en) | Digital RMB payment method, device, equipment, system and medium | |
| CN112767166B (en) | Risk control method and device for transaction behaviors, computer equipment and storage medium | |
| CN116797345A (en) | Task processing method, device, computer equipment and storage medium | |
| CN115601157A (en) | Quota processing method, device, electronic equipment and computer readable medium | |
| CN117592986A (en) | Transaction methods, devices, equipment, systems and storage media | |
| US10216830B2 (en) | Multicomputer processing of client device request data using centralized event orchestrator and link discovery engine | |
| CN113822753A (en) | Credit report generation method, credit report generation device, computer equipment and storage medium | |
| CN118917946B (en) | Data processing method, data processing apparatus, computer device, and storage medium | |
| WO2020234864A1 (en) | System and method for transferring an anonymized transaction between nodes of a computer network | |
| CN110852864A (en) | Method and device for processing digital resource amount and storage medium | |
| CN115689754B (en) | Transaction result data processing method, device, equipment and storage medium | |
| US20240053999A1 (en) | Reconciliation systems and methods for unbounded streams | |
| CN110956551B (en) | Revenue distribution method and related equipment | |
| CN121504605A (en) | Blockchain-based transaction security detection methods, devices, equipment, media, and products |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |