CN110232565A - Resource liquidation method, device, computer equipment and storage medium - Google Patents

Resource liquidation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110232565A
CN110232565A CN201910418424.2A CN201910418424A CN110232565A CN 110232565 A CN110232565 A CN 110232565A CN 201910418424 A CN201910418424 A CN 201910418424A CN 110232565 A CN110232565 A CN 110232565A
Authority
CN
China
Prior art keywords
resource
transaction
party
remaining sum
record
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.)
Granted
Application number
CN201910418424.2A
Other languages
Chinese (zh)
Other versions
CN110232565B (en
Inventor
罗俊
杜佳伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN201910418424.2A priority Critical patent/CN110232565B/en
Publication of CN110232565A publication Critical patent/CN110232565A/en
Application granted granted Critical
Publication of CN110232565B publication Critical patent/CN110232565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; 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

This application involves a kind of resource liquidation method, device, computer equipment and storage mediums.Method includes: the clearance file for receiving and being generated and sent by transaction system;It is opened according to the bill stroke count of billing data multiple for clearing the thread of processing;By multiple threads of unlatching, judge in preset time period whether each user identifier has recorded resource transfers operation in transaction system according to each first transaction log, and deposit whether guard system has recorded resource transfers operation in third party;When in preset time period transaction system or third party deposit in guard system occur resource transfers operation when, then reconciliation difference is obtained from reconciliation injustice table according to user identifier;The resource remaining sum in guard system corresponding resource account is deposited according to reconciliation difference and third party, determines the resource remaining sum that transaction system is recorded;Clearance destination file is generated according to the size of the resource remaining sum of record and overall balance.Clearance efficiency can be effectively improved using this method.

Description

Resource liquidation method, device, computer equipment and storage medium
Technical field
This application involves technical field of data processing, more particularly to a kind of resource liquidation method, device, computer equipment And storage medium.
Background technique
With the fast development of computer technology and Internet technology, user can enjoy each with staying indoors on network Digital service brought by business on kind line.User is when enjoying the digital service on line, it may be necessary to which user is in transaction system It is upper using corresponding resource (such as fund) to obtain corresponding business service, in the transaction system user can choose accordingly by The business that service provider provides.In order to ensure that the safety of user resources, user resources usually generally transfer to third party to deposit pipe, have User resources are transferred to bank to deposit pipe by service interaction mechanism for body.Third party as realization third party's deposit and management service deposits piping System can be responsible for the storage to user resources and management to ensure the safety of user resources.
Third party deposits guard system when the billing data to transaction system is cleared, can be using serial mode by pair of pen Billing data is handled.However, clearance processing is carried out using serial mode, so that reconciliation with the continuous growth of number of users Forms data clear that the spent time is longer, so that the transactional operation to transaction system has an impact.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide it is a kind of can be improved clearance efficiency resource liquidation method, Device, computer equipment and storage medium.
A kind of resource liquidation method, deposits guard system applied to third party, which comprises
Receive the clearance file generated and sent by transaction system;Preserved in the clearance file multiple user identifiers and Corresponding billing data;The billing data includes the first transaction log and overall balance;
It is opened according to the bill stroke count of the billing data multiple for clearing the thread of processing;
The first resource transfer record in multiple first transaction logs is carried out respectively by multiple threads of unlatching It reads, judges in preset time period whether each user identifier occurs resource in transaction system according to first resource transfer record Transfer operation;And resource transfers list is obtained from database, through multiple threads of unlatching from the resource transfers list Secondary resource transfer corresponding with multiple first transaction logs is read respectively to record, and is shifted to record according to the Secondary resource and be sentenced Each user identifier deposits whether guard system has recorded resource transfers operation in the third party in the preset time period of breaking;
Resource transfers behaviour occurs in guard system when depositing in the preset time period in the transaction system or the third party When making, then reconciliation injustice table is read from the database, and obtain from the reconciliation injustice table according to the user identifier Reconciliation difference;
Deposit the resource remaining sum in guard system corresponding resource account according to the reconciliation difference and the third party, determine described in The resource remaining sum that transaction system is recorded;
Clearance destination file is generated according to the size of the resource remaining sum of the record and the overall balance.
It is described in one of the embodiments, that guard system corresponding resource account is deposited according to the reconciliation difference and the third party Resource remaining sum in family, the resource remaining sum for determining that the transaction system is recorded include:
Business transaction record is read from first transaction log, and the transaction is determined according to business transaction record Transaction amount incurred in system;
The money in guard system corresponding resource account is deposited according to transaction amount incurred, the reconciliation difference and the third party Source remaining sum calculates the resource remaining sum that transaction system is recorded.
In one of the embodiments, the method also includes:
When in the clearance file including cancellation request, the resource balance information of user resources account is obtained;
If the resource balance information obtained indicates surplus in account, by resource balance transfer to corresponding target account Then the user resources account is nullified in family;
If the resource balance information obtained is indicated in account without remaining sum, the user resources account is directly nullified.
The size of the resource remaining sum according to the record and the overall balance generates clear in one of the embodiments, Calculating destination file includes:
When the resource remaining sum of the record and the overall balance are unequal, the clearance for carrying abnormal prompt information is generated Destination file;
The method also includes: the clearance destination file is sent to the transaction system, to indicate the transaction system System re-starts accounting according to the abnormal prompt information.
In one of the embodiments, the method also includes:
It preserves positive when rushing positive record wait rush in database when detecting, then generates and rush positive message;
Positive message is rushed to transaction system transmission is described;
Guard system is deposited to the third party according to the default reconciliation time and the transaction system distinguishes reconciliation, generated error is bright Thin table;
Mistake adjustment is carried out to resource remaining sum documented in the transaction system according to the mistake detail list.
The third party, which deposits, in one of the embodiments, preserves the second transaction log in guard system;The method is also Include:
Receive the Transaction Information acquisition request for carrying log number;
In response to the Transaction Information acquisition request, the second transaction log corresponding with the log number is obtained;
Transaction Information is extracted from second transaction log, and the Transaction Information of extraction is subjected to output displaying.
In one of the embodiments, the method also includes:
It determines and runs the local computing performance that the third party deposits guard system;
According to the local computing performance configuration flow rate upper limit value;
When the request of data transmitted by the transaction system is greater than the flow rate upper limit value, warning message is exported.
A kind of resource clearance device, described device include:
Receiving module, for receiving the clearance file generated and sent by transaction system;It is preserved in the clearance file Multiple user identifiers and corresponding billing data;The billing data includes the first transaction log and overall balance;
Thread opening module is opened multiple for clearing the line of processing for the bill stroke count according to the billing data Journey;
Judgment module, for multiple threads by opening respectively to the first resource in multiple first transaction logs Transfer record is read out, and judges that each user identifier is in transaction system in preset time period according to first resource transfer record Whether resource transfers operation is occurred;And resource transfers list is obtained from database, by multiple threads of unlatching from the money Secondary resource transfer record corresponding with multiple first transaction logs is read in the traversal lists of source respectively, is provided according to described second Source transfer record judge in the preset time period that each user identifier deposits whether guard system has recorded resource turn in the third party Move operation;
Difference obtains module, deposits guard system in the transaction system or the third party for working as in the preset time period When middle generation resource transfers operate, then reconciliation injustice table is read from the database, and according to the user identifier from described Reconciliation difference is obtained in reconciliation injustice table;
Resource remaining sum determining module, for depositing guard system corresponding resource account according to the reconciliation difference and the third party In resource remaining sum, determine the resource remaining sum that the transaction system is recorded;
File generating module, for generating clearance result according to the resource remaining sum of the record and the size of the overall balance File.
The resource remaining sum determining module is also used in one of the embodiments:
Business transaction record is read from first transaction log, and the transaction is determined according to business transaction record Transaction amount incurred in system;
The money in guard system corresponding resource account is deposited according to transaction amount incurred, the reconciliation difference and the third party Source remaining sum calculates the resource remaining sum that transaction system is recorded.
Described device in one of the embodiments, further include:
Resource account cancellation module, for obtaining user resources account when in the clearance file including cancellation request Resource balance information;If the resource balance information obtained indicates surplus in account, by resource balance transfer to correspondence Target account then nullify the user resources account;If the resource balance information obtained is indicated in account without remaining sum, directly It connects and nullifies the user resources account.
Described device in one of the embodiments, further include: sending module;Wherein:
The file generating module is also used to when the resource remaining sum of the record and the overall balance are unequal, and generation is taken Clearance destination file with abnormal prompt information;
Sending module, for the clearance destination file to be sent to the transaction system, to indicate the transaction system Accounting is re-started according to the abnormal prompt information.
Described device in one of the embodiments, further include: rush positive module;Wherein:
Positive module is rushed, for preserving positive when rushing positive record wait rush in database when detecting, then generates and rushes positive message; Positive message is rushed to transaction system transmission is described;Guard system and the transaction are deposited to the third party according to the default reconciliation time System distinguishes reconciliation, generated error detail list;According to the mistake detail list to more than documented resource in the transaction system Volume carries out mistake adjustment.
The third party, which deposits, in one of the embodiments, preserves the second transaction log in guard system;Described device is also It include: log acquisition module;Wherein:
Log acquisition module, for receiving the Transaction Information acquisition request for carrying log number;Believe in response to the transaction Acquisition request is ceased, the second transaction log corresponding with the log number is obtained;Transaction letter is extracted from second transaction log Breath, and the Transaction Information of extraction is subjected to output displaying.
Described device in one of the embodiments, further include: flow-control module;Wherein:
Flow-control module, for determining the local computing performance for running the third party and depositing guard system;According to described Ground calculated performance configures flow rate upper limit value;When the request of data transmitted by the transaction system is greater than the flow rate upper limit value, Export warning message.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Receive the clearance file generated and sent by transaction system;Preserved in the clearance file multiple user identifiers and Corresponding billing data;The billing data includes the first transaction log and overall balance;
It is opened according to the bill stroke count of the billing data multiple for clearing the thread of processing;
The first resource transfer record in multiple first transaction logs is carried out respectively by multiple threads of unlatching It reads, judges in preset time period whether each user identifier occurs resource in transaction system according to first resource transfer record Transfer operation;And resource transfers list is obtained from database, through multiple threads of unlatching from the resource transfers list Secondary resource transfer corresponding with multiple first transaction logs is read respectively to record, and is shifted to record according to the Secondary resource and be sentenced Each user identifier deposits whether guard system has recorded resource transfers operation in the third party in the preset time period of breaking;
Resource transfers behaviour occurs in guard system when depositing in the preset time period in the transaction system or the third party When making, then reconciliation injustice table is read from the database, and obtain from the reconciliation injustice table according to the user identifier Reconciliation difference;
Deposit the resource remaining sum in guard system corresponding resource account according to the reconciliation difference and the third party, determine described in The resource remaining sum that transaction system is recorded;
Clearance destination file is generated according to the size of the resource remaining sum of the record and the overall balance.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Receive the clearance file generated and sent by transaction system;Preserved in the clearance file multiple user identifiers and Corresponding billing data;The billing data includes the first transaction log and overall balance;
It is opened according to the bill stroke count of the billing data multiple for clearing the thread of processing;
The first resource transfer record in multiple first transaction logs is carried out respectively by multiple threads of unlatching It reads, judges in preset time period whether each user identifier occurs resource in transaction system according to first resource transfer record Transfer operation;And resource transfers list is obtained from database, through multiple threads of unlatching from the resource transfers list Secondary resource transfer corresponding with multiple first transaction logs is read respectively to record, and is shifted to record according to the Secondary resource and be sentenced Each user identifier deposits whether guard system has recorded resource transfers operation in the third party in the preset time period of breaking;
Resource transfers behaviour occurs in guard system when depositing in the preset time period in the transaction system or the third party When making, then reconciliation injustice table is read from the database, and obtain from the reconciliation injustice table according to the user identifier Reconciliation difference;
Deposit the resource remaining sum in guard system corresponding resource account according to the reconciliation difference and the third party, determine described in The resource remaining sum that transaction system is recorded;
Clearance destination file is generated according to the size of the resource remaining sum of the record and the overall balance.
Above-mentioned resource liquidation method, device, computer equipment and storage medium contain multiple users in clearance file Billing data, according to the corresponding bill stroke count of billing data open it is multiple for clear handle threads, with reconciliation forms data It carries out clearance and obtains clearance destination file, avoid and carry out clearance processing by single billing data, improve clearance efficiency.Pass through The multiple threads opened obtain resource transfers list from database, without going to polling data library stroke by stroke according to billing data, It can determine that user deposits whether guard system occurs resource transfers in third party, to carry out balance account, save some inspections The step of rope corresponding resource transfers information, effectively improve clearance efficiency.
Detailed description of the invention
Fig. 1 is the application scenario diagram of resource liquidation method in one embodiment;
Fig. 2 is the flow diagram of resource liquidation method in one embodiment;
Fig. 3 is the flow diagram of user resources Account Closure step in one embodiment;
Fig. 4 is the flow diagram of resource liquidation method in another embodiment;
Fig. 5 is the structural block diagram that resource clears device in one embodiment;
Fig. 6 is the structural block diagram that resource clears device in another embodiment;
Fig. 7 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Resource liquidation method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, terminal 102, server 104 and server 106 are communicated by network.Server 104 is equipped with third party and deposits guard system.Server 106 are equipped with transaction system.The clearance file that server 106 where server 104 receives transaction system is sent;It clears in file Preserve multiple user identifiers and corresponding billing data;Billing data includes the first transaction log and overall balance;According to bill number According to bill stroke count open it is multiple for clear handle threads;By multiple threads of unlatching, according to each first transaction log Judge in preset time period whether each user identifier has recorded resource transfers operation in transaction system, and, it is handed over according to each first Easy log obtains resource transfers list from database, and judges that each user identifier exists in preset time period according to resource transfers list Third party deposits whether guard system has recorded resource transfers operation;When depositing guard system in transaction system or third party in preset time period When middle generation resource transfers operate, then reconciliation difference is obtained from reconciliation injustice table according to user identifier;According to reconciliation difference and Resource remaining sum in three-party deposit system corresponding resource account calculates the resource remaining sum that transaction system is recorded;According to record The size of resource remaining sum and overall balance generates clearance destination file.Wherein, terminal 102 can be, but not limited to be various individual calculus Machine, laptop, smart phone, tablet computer and portable wearable device, server 104 can use independent server The either server cluster of multiple servers composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of resource liquidation method, it is applied in Fig. 1 in this way It is illustrated for server 104, comprising the following steps:
S202 receives the clearance file generated and sent by transaction system;Multiple user identifiers are preserved in clearance file With corresponding billing data;Billing data includes the first transaction log and overall balance.
Wherein, transaction system can be securities exchange system, log in this by webpage, computer client or mobile client Transaction system can initiate business transaction (such as stock, fund and phase refer to that stock exchange transaction is traded) and resource transfers (as silver turns card With card turn silver) etc. business.Above-mentioned resource transfers may include that resource is transferred to request and resource produces request.For example, resource turns Enter to refer to that the fund by individual subscriber bank settlement account is transferred to customer transaction settlement fund account executive.Wherein, it uses Family Private Banking settlement accounts can be the common Unionpay storage account of user.Customer transaction settlement fund account executive can be Cun Guan bank be it is that user opens, deposit the special family of pipe for the fund of stock jobbery purposes.Resource can be the fund or use of user In the product of the fund of expression.
In one embodiment, when meeting timing clearance time conditions, server 106 where transaction system is to server 104 generate clearance files, and will clear file and be packaged to obtain to be used to indicate server 104 and carry out the clearance of clearance processing and ask It asks.
In another embodiment, the corresponding client of transaction system shows clearance operation pages, when detection is grasped in clearance Making the clearance operation of defeated triggering on the page, business operation user occurs for a collection of user or in a period of time for clearance operation, Client generates the clearance request for being packaged with clearance file, is then sent out by server 106 where transaction system to server 104 The clearance request for being packaged with clearance file sent.
In one embodiment, clearance request can also carry authority identification, for identifying the affiliated machine of transaction system Structure.When receiving the clearance for carrying authority identification request, server 104 judges mechanism entrained in resource transfers request It identifies and whether there is matched mark in the authority identification list for supporting 7 × 24 hours.If so, S204 is executed, if it is not, then Refusal executes subsequent step.
In one embodiment, which can also carry authority identification, for identifying the affiliated machine of transaction system Structure.When receiving the clearance file for carrying authority identification, server 104 records the receiving time for receiving clearance file, When being not belonging to default working hour between when 330 receiving, judge that authority identification entrained in resource transfers request is supporting 7 × 24 It whether there is matched mark in the authority identification list of hour.If so, S204 is executed, if it is not, then refusing to execute subsequent step Suddenly.
S204 is opened multiple for clearing the thread of processing according to the bill stroke count of billing data.
Wherein, billing data can be user and resource transfers occur within a certain period of time or handle what different business was recorded Data.Corresponding, bill stroke count can be calculated with resource transfer number or institute's transacting business number, for indicating in a timing The interior number that resource transfers occur, or the number of different business is handled, such as user is transferred accounts twice in different time Operation, then corresponding billing data stroke count is 2.Alternatively, bill stroke count can also be calculated with number of users, for indicating one Interior generation resource transfers of fixing time or the number of users for having handled business, such as single user indicate that bill stroke count is 1, Duo Geyong Family indicates that bill stroke count is multiple.
In one embodiment, the parsing of server 104 clearance file obtains multiple user identifiers and corresponding billing data, The quantity of user identifier is determined as bill stroke count.Alternatively, billing data statistics is every time in a timing after obtaining billing data The interior number that resource transfers occur or the number for handling different business, using the result of statistics as bill stroke count.
S206 respectively carries out the first resource transfer record in multiple first transaction logs by multiple threads of unlatching It reads, judges in preset time period whether each user identifier occurs resource transfers in transaction system according to first resource transfer record Operation;And resource transfers list is obtained from database, it is read respectively from resource transfers list by multiple threads of unlatching Secondary resource transfer record corresponding with multiple first transaction logs judges each in preset time period according to Secondary resource transfer record User identifier deposits whether guard system has recorded resource transfers operation in third party.
Wherein, the resource of resource can be user fund or other expression funds (such as is used to manage money matters what bank subscribed Precious metal).Resource transfers record (resource number and corresponding time such as transfer) and business are saved in transaction log Transaction record (such as Stock Trading information and corresponding time).
It should be noted that the transaction log in clearance file can wrap and remember containing resource transfers documented by transaction system Record (the resource number such as shifted), and save third party in the resource transfers list in local data base and deposit institute in guard system The resource transfers of record record, and may determine that each user identifier exists in preset time period according to documented resource transfers record Transaction system and deposit whether guard system has recorded resource transfers operation in third party.
For the resource transfers operation judges in transaction system, preserves in the first transaction log and occur in transaction system First resource shift record, therefore, by read the first transaction log in first resource shift record, can judge to use Whether family occurs resource transfers operation in preset time period.
Resource transfers operation judges on guard system are deposited for third party, third party is preserved in database and deposits on guard system The resource transfers list about resource transfers occurred shifts record by the Secondary resource read in resource transfers list, It can judge whether user occurs resource transfers operation in preset time period.
S208, when in preset time period transaction system or third party deposit in guard system occur resource transfers operation when, then Reconciliation injustice table is read from the database, and reconciliation difference is obtained from reconciliation injustice table according to user identifier.
Wherein, third party is preserved in reconciliation injustice table deposit the resource remaining sum that guard system is recorded recorded with transaction system Resource remaining sum between difference.
During resource transfers occur, if third party deposits guard system during carrying out resource transfers, since network is asked Topic causes in confirmation message successful to transaction system transmission resource transfers, and transaction system receives to make not in time Obtaining transaction system, more new resources remaining sum, the resource remaining sum for causing transaction system and third party to deposit guard system be not reciprocity not in time.Or Person, during resource transfers occur, transaction system end has updated resource remaining sum, and third party deposit in guard system not successfully into The operation of row resource transfers, the resource remaining sum for causing transaction system and third party to deposit guard system be not reciprocity.It is protected in reconciliation injustice table It has deposited third party and has deposited difference between the resource remaining sum that the guard system resource remaining sum recorded and transaction system are recorded.
Wherein, above-mentioned resource transfers include that resource is transferred to and produces with resource.For example, resource, which is transferred to, can refer to user The fund of Private Banking's settlement accounts is transferred to customer transaction settlement fund account executive.Wherein, individual subscriber bank settlement account Family can be the common Unionpay storage account of user.Customer transaction settlement fund account executive can be third party Cun Guan bank root According to security organization require be it is that user opens, deposit the special family of pipe for the fund of stock jobbery purposes.
In one embodiment, resource transfers occur in guard system when depositing in preset time period in transaction system or third party When operation, server 104 then obtains reconciliation difference according to reconciliation injustice table is obtained according to user identifier from reconciliation injustice table.
S210 deposits the resource remaining sum in guard system corresponding resource account according to reconciliation difference and third party, calculates transaction system The recorded resource remaining sum of system.
In one embodiment, it is produced in operating process if carrying out resource, causes transaction system to be remembered because of network problem The resource remaining sum of record and third party deposit resource remaining sum that guard system is recorded it is unequal when, server 104 is by reconciliation difference and the The resource remaining sum that resource remaining sum sum of the two in three-party deposit system corresponding resource account is recorded as transaction system.This Outside, server 104 also can by the two and value as resource remaining sum final in third party tube system corresponding resource account.
In one embodiment, it is transferred in operating process if carrying out resource, causes transaction system to be remembered because of network problem The resource remaining sum of record and third party deposit resource remaining sum that guard system is recorded it is unequal when, server 104 is by reconciliation difference and the The resource remaining sum that the difference of both resource remaining sums in three-party deposit system corresponding resource account is recorded as transaction system.This Outside, server 104 also can be using the difference of the two as resource remaining sum final in third party tube system corresponding resource account.
In one embodiment, when carrying out causing transaction system to be recorded because of network problem in resource transfers operating process Resource remaining sum, with third party deposit resource remaining sum that guard system is recorded it is unequal when, third party is deposited guard system institute by server 104 The resource remaining sum of record is sent to transaction system as final resource remaining sum, so that transaction system is according to more than the resource received Volume is updated.
In one embodiment, S210 can specifically include: server 104 determines the transaction amount incurred in transaction system, The resource remaining sum in guard system corresponding resource account is deposited according to transaction amount incurred, reconciliation difference and third party, calculates transaction system The resource remaining sum recorded.
Wherein, transaction amount incurred, which can be, carries out resource number caused by business transaction in transaction system.For example, user Fund caused by trading security on securities exchange system.If selling held stock, then plus this part transaction hair Raw volume.If buying in ticket, then this part transaction amount incurred is subtracted.
S212 generates clearance destination file according to the size of the resource remaining sum of record and overall balance.
In one embodiment, S212 can specifically include: when the resource remaining sum of record and overall balance are unequal, service Device 104 generates the clearance destination file for carrying abnormal prompt information.This method further include: server 104 will clear result text Part is sent to transaction system, to indicate that transaction system re-starts accounting according to abnormal prompt information.
In one embodiment, server 104 opens multiple threads according to bill stroke count, passes through multiple threads point of unlatching Do not calculate remaining sum on the one and the same day traded in transaction system caused by between turnover and value, obtain more than day Mo Volume.Server 104 compares end-of-day balance and whether the overall balance in clearance file is consistent, if inconsistent, then it represents that billing data Occur abnormal;If consistent, then it represents that billing data occurs normal.
In one embodiment, server 104 opens multiple threads according to bill stroke count, passes through multiple threads point of unlatching The monthly of each user is not calculated to settle interests, and will be calculated resulting monthly settle interests and is converted to the fund share of transaction system, generation includes There is the clearance destination file of fund share.
In above-described embodiment, the billing data of multiple users is contained in clearance file, it is corresponding according to billing data Bill stroke count opens multiple threads for being used to clear processing, carries out clearance with reconciliation forms data and obtains clearance destination file, avoids By single billing data clearance processing is carried out, improves clearance efficiency.It is obtained and is provided from database by multiple threads of unlatching Source traversal lists can determine that user deposits piping in third party without going to polling data library stroke by stroke according to billing data Whether system occurs resource transfers, so that the step of carrying out balance account, saving some retrievals corresponding resource transfers information, has Improve clearance efficiency to effect.
In one embodiment, as shown in figure 3, this method can also include:
S302 obtains the resource balance information of user resources account when clearing in file includes cancellation request.
In one embodiment, if user carries out cancellation operation in client, the server 106 where transaction system is detected When the cancellation initiated to client operates, corresponding clearance file is generated, and clearance Document encapsulation to cancellation is requested.Server 104 pairs of clearance files parse, and obtain user identifier corresponding with cancellation request.The acquisition of server 104 is obtained with user identifier Take the resource balance information of corresponding user resources account.
S304, if the resource balance information obtained indicates surplus in account, by resource balance transfer to corresponding Then target account nullifies the user resources account.
In one embodiment, server 104 judges that third party deposits the corresponding user of guard system according to resource balance information Whether surplus if surplus executes S304 to resource account;If it is not, then executing S306.
S306 directly nullifies the user resources account if the resource balance information obtained is indicated in account without remaining sum.
In above-described embodiment, when receiving Client-initiated cancellation request, carried out according to resource balance information corresponding Cancellation operation, to ensure the safety of individual subscriber resource.
In one embodiment, this method further include: when detect preserved in database it is positive when rushing positive record wait rush, Server 104, which then generates, rushes positive message;Server 104 rushes positive message to transaction system transmission, according to the default reconciliation time to the Three-party deposit system and transaction system distinguish reconciliation, generated error detail list.Server 104 is according to mistake detail list to transaction system Resource remaining sum documented by system carries out mistake adjustment, to realize rushing just to the corresponding resource account of transaction system.
Wherein, mistake adjustment can refer to: third party, which deposits, has occurred resource transfers operation on guard system, due to network Cause to synchronize not in time in transaction system, it is therefore desirable to which the remaining sum for depositing in guard system on resource account third party is adjusted. Alternatively, having resource transfers record in transaction system, causes third party to deposit on guard system due to network and synchronizes not in time, Therefore it needs to be adjusted the remaining sum recorded in transaction system.
In one embodiment, it describes transaction system in mistake detail list and third party deposits on guard system about more than resource The error value of volume.The step of mistake adjustment is carried out to resource remaining sum documented in transaction system according to mistake detail list, specifically It may include: when going wrong according to mistake detail list is determining to resource remaining sum documented in transaction system, according to mistake Documented error value is adjusted the remaining sum recorded in transaction system in detail list.For example, being recorded when in transaction system 1000 yuan of record of transferring accounts, if third party deposit guard system occur during execution is transferred accounts it is abnormal cause to fail turn Account, so that it is inconsistent to cause transaction system and third party to deposit documented remaining sum on guard system, at this point it is possible to from mistake detail list Middle reading error value (i.e. 1000 yuan) is only adjusted remaining sum documented in transaction system according to the mistake.
Specifically, when network appearance exception causes upper host time-out in the daytime or upper stock trader button account to surpass and rushes positive manager It was found that needing to be rushed the positive positive record that rushes, server 104 then rushes positive message to transaction system transmission;Server 104 is according to preset The reconciliation time deposits guard system and transaction system to third party and distinguishes reconciliation, generated error detail list, and according in mistake detail list Error value to remaining sum documented in transaction system carry out mistake adjustment;Server 104 is according to reconciliation result to transaction system It is settled accounts, so as to solve the problems, such as unilateral account.
In one embodiment, if host time-out or transaction system button account are overtime in the daytime, server 104 is in database It is inserted into the positive record of a punching.Server 104 is by rushing positive manager (such as one minute) scan database at regular intervals, if hair It is existing wait rush it is positive rush positive record, then automatically generate and rush positive message to initiate punching just to transaction system.
In above-described embodiment, by carrying out mistake adjustment to the corresponding resource account of transaction system, it is to transaction to realize It unites the rushing just of corresponding resource account, can so solve the problems, such as unilateral account in the daytime, user is facilitated to grasp making for fund at any time With flexibility and making property of the increase user to use of funds, user experience are substantially improved.
In one embodiment, third party, which deposits, preserves the second transaction log in guard system;This method further include: server 104 receive the Transaction Information acquisition request for carrying log number;In response to Transaction Information acquisition request, obtain corresponding with log number The second transaction log;Transaction Information is extracted from the second transaction log, and the Transaction Information of extraction is subjected to output displaying.
Wherein, log number can be made of transaction code+machine code.Each business transaction or resource transfers operation distribution one A transaction code.Each service distributes one 2 unique encodings.
As an example, every transaction request can be found in single transaction log, and the method for lookup can be service Device 104 (is either initiated from bank end, the initiation of stock trader end, cooperation row is initiated or management console initiation, or criticizes by log number Amount is initiated all generate unique log number) All Activity information that the transaction can be oriented, without multiple and different Corresponding Transaction Information can just be obtained by searching back and forth in transaction log, greatly improve the efficiency of retrieval transaction.
In one embodiment, when detect in transaction log corresponding node occur abnormal or Transaction Information meet it is default It when condition, is identified using highlighted identifier, quickly positions log error message to highlight identifier according to this.In addition, Machine code and log number are saved in the serial number field of flowing water table in database, it is quick in flowing water table will pass through log number Corresponding transaction log is navigated to, while may also uniquely navigate to the clothes for saving transaction log by the log number in flowing water table Business device, realizes transaction log and the bi-directionally established inquiry relationship of database.In this way, staff only needs the training by 5 minutes All methods that lookup log can solely be completed, greatly reduce production maintenance cost, maintenance period are greatly reduced.
In above-described embodiment, corresponding log information can be searched by log number, fast and effeciently finds transaction Information, on the one hand, can just obtain corresponding Transaction Information without searching back and forth in multiple and different transaction logs, greatly improve The efficiency of retrieval transaction;On the other hand, production maintenance cost is greatly reduced, maintenance period is greatly reduced.
In one embodiment, this method further include: server 104 determines that operation third party deposits the local computing of guard system Performance;According to local computing performance configuration flow rate upper limit value;The request of data transmitted by the transaction system is greater than flow rate upper limit value When, export warning message.
In one embodiment, server 104 determine local computing performance, according to local computing performance to transaction system with And the banking management system of cooperative bank carries out flow parameter configuration, when Shenzhen Stock Exchange leads to the Financial Management system of server and cooperation row When the transmitted request of data of system is more than configured flow threshold, warning message is exported.In addition, server 104 is according to being matched The flow rate upper limit value set handles received data request, at the data-request parts refusal beyond flow rate upper limit value Reason.
In addition, server 104 can also be when configuring flow rate upper limit value and other configurations parameter, without restarting system System.Specifically, server 104 receives parameter-configuring request, is configured in the parameter list of database according to the parameter-configuring request The parameter of configuration is loaded onto memory by corresponding parameter.So, it can be ensured that enabled in the case where not restarting systems The parameter newly configured, it is ensured that the continuity of business in working time section.
Wherein, configuration parameter may include: Shenzhen Stock Exchange leads to Thread Count, Shenzhen Stock Exchange leads to available thread number alarming threshold value, by stock trader and Cooperation row configuration current limliting parameter, type of credential is converted, stock trader's application identities configure, stock trader's single household is settled interests, and file detail formats are matched It sets, log configuration, B bursts of FTP configurations, system configuration, every page of record number setting, the configuration of stock trader's user number, query service status IP Configuration, concentrative operation portion FTP configuration, backup parameter configuration, B strands of Shenzhen Stock Exchange wildcards are set and every page of record number setting etc..
For example, configuring every page of record number inside parameter list is 10, at this time channel carries out transaction detail query transaction System can every page return to 10 records, if every page of business need returns to 20 records now, only need parameter list at this time 10 are changed to 20, and then flush buffers come into force at once, do not have to modify any program code.
In above-described embodiment, according to local computing performance configuration flow parameter, when received flow be more than to be configured When value, operation maintenance personnel pair can be greatly improved by exporting warning message so as to greatly improve the survivability of system The sensing capability of system.
As an example, as shown in figure 4, in embodiments of the present invention, stock trader initiates resource clearance request and clears Process include:
S402 receives the clearance request that stock trader sends;
Wherein, above-mentioned stock trader can be securities trading mechanism.Clearance file is packaged in clearance request.
S404 checks whether reconciliation status is completion in row;
S406, it is unfinished then exit;
S408 is completed, then it is initial for checking whether clearance file is put in storage completion and clearance state;
S410, setting stock trader's reconciliation status are in processing;
S412, single household are settled interests reconciliation;
S414, band fund cancellation are checked account;
S416, fractionl amount cancellation accounting checking;
S418 carries out subsequent clearance file accounting checking;
S420, if deposited in the bank transfer accounts record and stock trader without transfer accounts record or stock trader transfer accounts record and bank Fund account without record of transferring accounts;
S422, will transfer accounts on the same day record, but stock trader clears the accounting checking injustice table that stock trader is not transferred in file;
S424, cross-footing: difference=stock trader in the real-time balance at bank end+stock trader end amount incurred+injustice table sends The overall balance to come over;
S426, down-footing: upper day remaining sum+same day amount incurred=end-of-day balance, generate stock trader's balance sheet on the same day;
S428 checks account if front checks for agency, and agency generates stock trader and sends overall balance;
S430, clearance are completed;
S432 sends stock trader's reconciliation destination file to transaction system.
It should be understood that although each step in the flow chart of Fig. 2-4 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-4 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 5, providing a kind of resource clearance device, comprising: receiving module 502, thread Opening module 504, judgment module 506, difference obtain module 508, resource remaining sum determining module 510 and file generating module 512, Wherein:
Receiving module 502, for receiving the clearance file generated and sent by transaction system;It is preserved in clearance file more A user identifier and corresponding billing data;Billing data includes the first transaction log and overall balance;
Thread opening module 504 is opened multiple for clearing the thread of processing for the bill stroke count according to billing data;
Judgment module 506, for multiple threads by opening respectively to the first resource in multiple first transaction logs Transfer record is read out, according to first resource transfer record judge in preset time period each user identifier transaction system whether Resource transfers operation occurs;And resource transfers list is obtained from database, it is arranged by multiple threads of unlatching from resource transfers Secondary resource transfer record corresponding with multiple first transaction logs is read in table respectively, it is pre- to shift record judgement according to Secondary resource If each user identifier deposits whether guard system has recorded resource transfers operation in third party in the period;
Difference obtains module 508, provides for working as to deposit in guard system in preset time period in transaction system or third party When the transfer operation of source, then reconciliation injustice table is read from database, and reconciliation is obtained from reconciliation injustice table according to user identifier Difference;
Resource remaining sum determining module 510, for being deposited in guard system corresponding resource account according to reconciliation difference and third party Resource remaining sum determines the resource remaining sum that transaction system is recorded;
File generating module 512, for generating clearance destination file according to the resource remaining sum of record and the size of overall balance.
Resource remaining sum determining module 510 is also used in one of the embodiments: reading business from the first transaction log Transaction record records the transaction amount incurred determined in transaction system according to business transaction;According to transaction amount incurred, reconciliation difference and Third party deposits the resource remaining sum in guard system corresponding resource account, calculates the resource remaining sum that transaction system is recorded.
In above-described embodiment, the billing data of multiple users is contained in clearance file, it is corresponding according to billing data Bill stroke count opens multiple threads for being used to clear processing, carries out clearance with reconciliation forms data and obtains clearance destination file, avoids By single billing data clearance processing is carried out, improves clearance efficiency.It is obtained and is provided from database by multiple threads of unlatching Source traversal lists can determine that user deposits piping in third party without going to polling data library stroke by stroke according to billing data Whether system occurs resource transfers, so that the step of carrying out balance account, saving some retrievals corresponding resource transfers information, has Improve clearance efficiency to effect.
In one of the embodiments, as shown in fig. 6, the device further include: resource account cancellation module 514, in which:
Resource account cancellation module 514, for obtaining user resources account when clearing in file includes cancellation request Resource balance information;If the resource balance information obtained indicates surplus in account, by resource balance transfer to corresponding Then target account nullifies the user resources account;If the resource balance information obtained is indicated in account without remaining sum, directly Nullify the user resources account.
Device in one of the embodiments, further include: sending module 516;Wherein:
File generating module 512 is also used to when the resource remaining sum of record and overall balance are unequal, and generation carries exception The clearance destination file of prompt information;
Sending module 516 is sent to transaction system for that will clear destination file, to indicate that transaction system is mentioned according to abnormal Show that information re-starts accounting.
In above-described embodiment, when receiving Client-initiated cancellation request, carried out according to resource balance information corresponding Cancellation operation, to ensure the safety of individual subscriber resource.
In one of the embodiments, as shown in fig. 6, the device further include: rush positive module 518;Wherein:
Positive module 518 is rushed, for preserving positive when rushing positive record wait rush in database when detecting, then generates the positive report of punching Text;Positive message is rushed to transaction system transmission;Guard system is deposited to third party according to the default reconciliation time and transaction system distinguishes reconciliation, Generated error detail list;Mistake adjustment is carried out to resource remaining sum documented in transaction system according to mistake detail list.
In above-described embodiment, by carrying out mistake adjustment to the corresponding resource account of transaction system, it is to transaction to realize It unites the rushing just of corresponding resource account, can so solve the problems, such as unilateral account in the daytime, user is facilitated to grasp making for fund at any time With flexibility and making property of the increase user to use of funds, user experience are substantially improved.
Third party, which deposits, in one of the embodiments, preserves the second transaction log in guard system;As shown in fig. 6, the dress It sets further include: log acquisition module 520;Wherein:
Log acquisition module 520, for receiving the Transaction Information acquisition request for carrying log number;In response to Transaction Information Acquisition request obtains the second transaction log corresponding with log number;Transaction Information is extracted from the second transaction log, and will be extracted Transaction Information carry out output displaying.
In above-described embodiment, corresponding log information can be searched by log number, fast and effeciently finds transaction Information, on the one hand, can just obtain corresponding Transaction Information without searching back and forth in multiple and different transaction logs, greatly improve The efficiency of retrieval transaction;On the other hand, production maintenance cost is greatly reduced, maintenance period is greatly reduced.
In one of the embodiments, as shown in fig. 6, the device further include: flow-control module 522;Wherein:
Flow-control module 522, for determining that operation third party deposits the local computing performance of guard system;According to local computing Performance configuration flow rate upper limit value;When the request of data transmitted by the transaction system is greater than flow rate upper limit value, warning message is exported.
In above-described embodiment, according to local computing performance configuration flow parameter, when received flow be more than to be configured When value, operation maintenance personnel pair can be greatly improved by exporting warning message so as to greatly improve the survivability of system The sensing capability of system.
Specific about resource clearance device limits the restriction that may refer to above for resource liquidation method, herein not It repeats again.Modules in above-mentioned resource clearance device can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing the data such as clearance file.The network interface of the computer equipment is used for logical with external terminal Cross network connection communication.To realize a kind of resource liquidation method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 7, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor execute computer program when perform the steps of reception generated and sent by transaction system it is clear Calculate file;Multiple user identifiers and corresponding billing data are preserved in clearance file;Billing data include the first transaction log and Overall balance;It is opened according to the bill stroke count of billing data multiple for clearing the thread of processing;Pass through multiple threads point of unlatching The other first resource transfer record in multiple first transaction logs is read out, and it is default to shift record judgement according to first resource Whether each user identifier occurs resource transfers operation in transaction system in period;And resource transfers column are obtained from database Table is read Secondary resource corresponding with multiple first transaction logs respectively from resource transfers list by multiple threads of unlatching and turned Record is moved, judges in preset time period that each user identifier deposits whether guard system records in third party according to Secondary resource transfer record There is resource transfers operation;When in preset time period transaction system or third party deposit in guard system occur resource transfers operation when, Reconciliation injustice table is then read from database, and reconciliation difference is obtained from reconciliation injustice table according to user identifier;According to reconciliation Difference and third party deposit the resource remaining sum in guard system corresponding resource account, determine the resource remaining sum that transaction system is recorded;Root Clearance destination file is generated according to the resource remaining sum of record and the size of overall balance.
In one embodiment, it is also performed the steps of from the first transaction log when processor executes computer program Business transaction record is read, the transaction amount incurred determined in transaction system is recorded according to business transaction;According to transaction amount incurred, right Account difference and third party deposit the resource remaining sum in guard system corresponding resource account, calculate the resource remaining sum that transaction system is recorded.
In one embodiment, it also performs the steps of to work as in clearance file when processor executes computer program and includes When cancellation is requested, the resource balance information of user resources account is obtained;If the resource balance information obtained indicates to have a surplus in account When volume, then then resource balance transfer to corresponding target account is nullified into the user resources account;If the resource remaining sum obtained When information is indicated in account without remaining sum, then the user resources account is directly nullified.
In one embodiment, the resource remaining sum when record is also performed the steps of when processor executes computer program When unequal with overall balance, the clearance destination file for carrying abnormal prompt information is generated;Method further include: by clearance result text Part is sent to transaction system, to indicate that transaction system re-starts accounting according to abnormal prompt information.
In one embodiment, it also performs the steps of to work as when processor executes computer program and detect in database It preserves positive when rushing positive record wait rush, then generates and rush positive message;Positive message is rushed to transaction system transmission;When according to default reconciliation Between guard system and transaction system deposited to third party distinguish reconciliation, generated error detail list;According to mistake detail list to transaction system Resource remaining sum documented by upper carries out mistake adjustment.
In one embodiment, third party, which deposits, preserves the second transaction log in guard system;Processor executes computer journey The Transaction Information acquisition request for receiving and carrying log number is also performed the steps of when sequence;In response to Transaction Information acquisition request, Obtain the second transaction log corresponding with log number;Transaction Information is extracted from the second transaction log, and the transaction of extraction is believed Breath carries out output displaying.
In one embodiment, it is also performed the steps of when processor executes computer program and determines that operation third party deposits The local computing performance of guard system;According to local computing performance configuration flow rate upper limit value;The data transmitted by the transaction system are asked When asking greater than flow rate upper limit value, warning message is exported.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the clearance file for receiving and being generated and sent by transaction system when being executed by processor;Clear file In preserve multiple user identifiers and corresponding billing data;Billing data includes the first transaction log and overall balance;According to bill The bill stroke count of data is opened multiple for clearing the thread of processing;By multiple threads of unlatching respectively to multiple first transaction First resource transfer record in log is read out, and judges that each user marks in preset time period according to first resource transfer record Know whether transaction system occurs resource transfers operation;And resource transfers list is obtained from database, pass through the multiple of unlatching Thread reads Secondary resource transfer record corresponding with multiple first transaction logs respectively from resource transfers list, according to the second money Source transfer record judges in preset time period that each user identifier deposits whether guard system has recorded resource transfers operation in third party;When In preset time period when transaction system or third party deposit generation resource transfers operation in guard system, then the reading pair from database Account injustice table, and reconciliation difference is obtained from reconciliation injustice table according to user identifier;Piping is deposited according to reconciliation difference and third party Resource remaining sum in corresponding resource account of uniting, determines the resource remaining sum that transaction system is recorded;According to the resource remaining sum of record with The size of overall balance generates clearance destination file.
In one embodiment, it is also performed the steps of when computer program is executed by processor from the first transaction log Middle reading business transaction record, the transaction amount incurred determined in transaction system is recorded according to business transaction;According to transaction amount incurred, Reconciliation difference and third party deposit the resource remaining sum in guard system corresponding resource account, calculate more than the resource that transaction system is recorded Volume.
In one embodiment, it also performs the steps of when computer program is executed by processor and is wrapped when in clearance file When including cancellation request, the resource balance information of user resources account is obtained;If the resource balance information obtained indicates have in account When remaining sum, then then resource balance transfer to corresponding target account is nullified into the user resources account;If more than the resource obtained When volume information is indicated in account without remaining sum, then the user resources account is directly nullified.
In one embodiment, it is also performed the steps of when computer program is executed by processor more than the resource worked as and recorded When volume and overall balance are unequal, the clearance destination file for carrying abnormal prompt information is generated;Method further include: result will be cleared File is sent to transaction system, to indicate that transaction system re-starts accounting according to abnormal prompt information.
In one embodiment, it also performs the steps of to work as when computer program is executed by processor and detects database In preserve positive when rushing positive record wait rush, then generate and rush positive message;Positive message is rushed to transaction system transmission;According to default reconciliation Time deposits guard system to third party and transaction system distinguishes reconciliation, generated error detail list;It is to transaction according to mistake detail list Resource remaining sum documented by system carries out mistake adjustment.
In one embodiment, third party, which deposits, preserves the second transaction log in guard system;Computer program is by processor The Transaction Information acquisition request for receiving and carrying log number is also performed the steps of when execution;It is asked in response to Transaction Information acquisition It asks, obtains the second transaction log corresponding with log number;Extract Transaction Information from the second transaction log, and by the transaction of extraction Information carries out output displaying.
In one embodiment, it is also performed the steps of when computer program is executed by processor and determines operation third party Deposit the local computing performance of guard system;According to local computing performance configuration flow rate upper limit value;The data transmitted by the transaction system When request is greater than flow rate upper limit value, warning message is exported.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of resource liquidation method, deposits guard system applied to third party, which comprises
Receive the clearance file generated and sent by transaction system;Multiple user identifiers and correspondence are preserved in the clearance file Billing data;The billing data includes the first transaction log and overall balance;
It is opened according to the bill stroke count of the billing data multiple for clearing the thread of processing;
The first resource transfer record in multiple first transaction logs is read out respectively by multiple threads of unlatching, Judge in preset time period whether each user identifier occurs resource transfers in transaction system according to first resource transfer record Operation;And resource transfers list is obtained from database, distinguished from the resource transfers list by multiple threads of unlatching It reads Secondary resource transfer corresponding with multiple first transaction logs to record, is shifted to record according to the Secondary resource and judge institute It states in preset time period each user identifier and deposits whether guard system has recorded resource transfers operation in the third party;
When in the preset time period the transaction system or the third party deposit in guard system occur resource transfers operation when, Reconciliation injustice table is then read from the database, and it is poor that reconciliation is obtained according to the user identifier from the reconciliation injustice table Volume;
The resource remaining sum in guard system corresponding resource account is deposited according to the reconciliation difference and the third party, determines the transaction The resource remaining sum that system is recorded;
Clearance destination file is generated according to the size of the resource remaining sum of the record and the overall balance.
2. the method according to claim 1, wherein described deposit pipe according to the reconciliation difference and the third party Resource remaining sum in system corresponding resource account, the resource remaining sum for determining that the transaction system is recorded include:
Business transaction record is read from first transaction log, and the transaction system is determined according to business transaction record In transaction amount incurred;
It is deposited more than the resource in guard system corresponding resource account according to transaction amount incurred, the reconciliation difference and the third party Volume calculates the resource remaining sum that transaction system is recorded.
3. the method according to claim 1, wherein the method also includes:
When in the clearance file including cancellation request, the resource balance information of user resources account is obtained;
It is if the resource balance information obtained indicates surplus in account, resource balance transfer is right to corresponding target account After nullify the user resources account;
If the resource balance information obtained is indicated in account without remaining sum, the user resources account is directly nullified.
4. the method according to claim 1, wherein the resource remaining sum according to the record and described total remaining The size of volume generates clearance destination file
When the resource remaining sum of the record and the overall balance are unequal, the clearance result for carrying abnormal prompt information is generated File;
The method also includes: the clearance destination file is sent to the transaction system, to indicate that the transaction system is pressed Accounting is re-started according to the abnormal prompt information.
5. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
It preserves positive when rushing positive record wait rush in database when detecting, then generates and rush positive message;
Positive message is rushed to transaction system transmission is described;
Guard system is deposited to the third party according to the default reconciliation time and the transaction system distinguishes reconciliation, generated error detail Table;
Mistake adjustment is carried out to resource remaining sum documented in the transaction system according to the mistake detail list.
6. method according to any one of claims 1 to 4, which is characterized in that the third party, which deposits in guard system, to preserve Second transaction log;The method also includes:
Receive the Transaction Information acquisition request for carrying log number;
In response to the Transaction Information acquisition request, the second transaction log corresponding with the log number is obtained;
Transaction Information is extracted from second transaction log, and the Transaction Information of extraction is subjected to output displaying.
7. method according to any one of claims 1 to 4, which is characterized in that the method also includes:
It determines and runs the local computing performance that the third party deposits guard system;
According to the local computing performance configuration flow rate upper limit value;
When the request of data transmitted by the transaction system is greater than the flow rate upper limit value, warning message is exported.
8. a kind of resource clears device, which is characterized in that described device includes:
Receiving module, for receiving the clearance file generated and sent by transaction system;It is preserved in the clearance file multiple User identifier and corresponding billing data;The billing data includes the first transaction log and overall balance;
Thread opening module is opened multiple for clearing the thread of processing for the bill stroke count according to the billing data;
Judgment module respectively shifts the first resource in multiple first transaction logs for multiple threads by opening Record is read out, according to first resource transfer record judge in preset time period each user identifier transaction system whether Resource transfers operation occurs;And resource transfers list is obtained from database, turned by multiple threads of unlatching from the resource It moves in list and reads Secondary resource transfer record corresponding with multiple first transaction logs respectively, according to the Secondary resource turn It moves record and judges in the preset time period that each user identifier deposits whether guard system has recorded resource transfers behaviour in the third party Make;
Difference obtains module, deposits in guard system and sends out in the transaction system or the third party for working as in the preset time period When the transfer operation of production-goods source, then reconciliation injustice table is read from the database, and according to the user identifier from the reconciliation Reconciliation difference is obtained in uneven table;
Resource remaining sum determining module, for being deposited in guard system corresponding resource account according to the reconciliation difference and the third party Resource remaining sum determines the resource remaining sum that the transaction system is recorded;
File generating module, for generating clearance result text according to the resource remaining sum of the record and the size of the overall balance Part.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910418424.2A 2019-05-20 2019-05-20 Resource clearing method, device, computer equipment and storage medium Active CN110232565B (en)

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 true CN110232565A (en) 2019-09-13
CN110232565B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN111061567A (en) * 2019-12-17 2020-04-24 腾讯科技(深圳)有限公司 Resource data processing method and device, computer readable storage medium and computer equipment
CN111161073A (en) * 2019-12-30 2020-05-15 腾讯科技(深圳)有限公司 Resource exchange method, device, computer readable storage medium and computer equipment
CN111861692A (en) * 2020-07-27 2020-10-30 深圳乐信软件技术有限公司 Account correcting method, system, server and storage medium based on rule engine
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 中国建设银行股份有限公司 Transaction data processing method and device, electronic equipment and computer-readable storage medium
CN112732415A (en) * 2021-01-06 2021-04-30 深圳华锐金融技术股份有限公司 Transaction processing method, device and equipment based on resource exchange proxy system
CN112926962A (en) * 2021-01-20 2021-06-08 北京思特奇信息技术股份有限公司 Method and system for repairing abnormal business handling according to change of expenses
CN113065952A (en) * 2020-11-23 2021-07-02 上海金融期货信息技术有限公司 Method and system for automatic settlement of derivatives

Citations (5)

* Cited by examiner, † Cited by third party
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 阿里巴巴集团控股有限公司 A kind of disaster tolerance data processing method, apparatus and system
CN109685494A (en) * 2018-12-17 2019-04-26 深圳壹账通智能科技有限公司 Payable by installment method, apparatus, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
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 阿里巴巴集团控股有限公司 A kind of disaster tolerance data processing method, apparatus and system
CN109685494A (en) * 2018-12-17 2019-04-26 深圳壹账通智能科技有限公司 Payable by installment method, apparatus, computer equipment and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
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
CN111061567A (en) * 2019-12-17 2020-04-24 腾讯科技(深圳)有限公司 Resource data processing method and device, computer readable storage medium and computer equipment
CN111161073A (en) * 2019-12-30 2020-05-15 腾讯科技(深圳)有限公司 Resource exchange method, device, computer readable storage medium and computer equipment
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 中国建设银行股份有限公司 Transaction data processing method and device, electronic equipment and computer-readable storage medium
CN111861692A (en) * 2020-07-27 2020-10-30 深圳乐信软件技术有限公司 Account correcting method, system, server and storage medium based on rule engine
CN111861692B (en) * 2020-07-27 2024-03-19 深圳乐信软件技术有限公司 Account checking method, system, server and storage medium based on rule engine
CN113065952A (en) * 2020-11-23 2021-07-02 上海金融期货信息技术有限公司 Method and system for automatic settlement of derivatives
CN112732415A (en) * 2021-01-06 2021-04-30 深圳华锐金融技术股份有限公司 Transaction processing method, device and equipment based on resource exchange proxy system
CN112732415B (en) * 2021-01-06 2024-03-29 深圳华锐分布式技术股份有限公司 Transaction processing method, device and equipment based on resource exchange proxy system
CN112926962A (en) * 2021-01-20 2021-06-08 北京思特奇信息技术股份有限公司 Method and system for repairing abnormal business handling according to change of expenses

Also Published As

Publication number Publication date
CN110232565B (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110232565A (en) Resource liquidation method, device, computer equipment and storage medium
CN107705113B (en) Block chain cross-border cross-bank payment method and system based on Baas architecture
CN110148017A (en) Equity distribution method and device, electronic equipment, storage medium based on block chain
JP2020505799A (en) System and method for replay attack detection
CN108171489A (en) Data liquidation method, system and computer readable storage medium
KR101936759B1 (en) Apparatus and Method for KYC using KYC blockchain
CN108737333A (en) A kind of data detection method and device
CN109656778A (en) Data capture method, device, computer equipment and storage medium
CN108009818B (en) Online payment method and system based on distributed network
CN110209681A (en) Block chain data enter chain method, apparatus, computer equipment and storage medium
CN109472577A (en) Account keeps accounts method, apparatus, computer equipment and storage medium
CN109146653A (en) A kind of checking method and device for cutting account day based on distributed environment
EP3629273B1 (en) An apparatus, computer program and method
CN112367629A (en) Financial big data processing method based on 5G and block chain and system platform thereof
US20240097882A1 (en) Block chain modification correlation
KR102487663B1 (en) Automatic tracking method and system for virtual currency
CN112669140A (en) Financial account sales processing method and device, computer equipment and storage medium
CN106845881A (en) A kind of detection method of stock abnormal data, device and electronic equipment
CN115442380A (en) Transaction blocking method and device for intelligent contract vulnerability attack
CN106294611A (en) Core banking system and the old and new's core system data exchange method
CN111798226A (en) Block chain-based digital currency cross-border payment method and system
CN110246015A (en) Resource transfers method, apparatus, computer equipment and storage medium
Lovejoy An empirical analysis of chain reorganizations and double-spend attacks on proof-of-work cryptocurrencies
CN110264175A (en) Fund management system and method
Zhang et al. Counter-collusion smart contracts for watchtowers in payment channel networks

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