CN109034768A - Finance allot method, apparatus, computer equipment and storage medium - Google Patents

Finance allot method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109034768A
CN109034768A CN201810708681.5A CN201810708681A CN109034768A CN 109034768 A CN109034768 A CN 109034768A CN 201810708681 A CN201810708681 A CN 201810708681A CN 109034768 A CN109034768 A CN 109034768A
Authority
CN
China
Prior art keywords
bank
task
enterprises
finance
allot
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
CN201810708681.5A
Other languages
Chinese (zh)
Other versions
CN109034768B (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810708681.5A priority Critical patent/CN109034768B/en
Priority to PCT/CN2018/108418 priority patent/WO2020006904A1/en
Publication of CN109034768A publication Critical patent/CN109034768A/en
Application granted granted Critical
Publication of CN109034768B publication Critical patent/CN109034768B/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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules
    • 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/12Accounting
    • G06Q40/125Finance or payroll
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

This application discloses a kind of finance to allot method, apparatus, computer equipment and storage medium, because enterprises end front end processor can carry out bank-corporate express function with the bank of multiple and different types, so being provided with multiple UKey interfaces, on enterprises end front end processor to guarantee the normal use of each bank account;When initiation finance allot task, bank account of alloting without manually logging in different inquires its remaining sum, it transfers accounts without the bank account of alloting manually transferred accounts to needs, the different remaining sums for alloting bank account can be inquired automatically, then judge to need which allots bank account to transfer accounts according to the remaining sum for respectively alloting bank account, and it can be automatically performed and transfer accounts, greatly increase the efficiency that finance are alloted, save human resources, and it only needs to configure primary, during finance are alloted, it is not in artificial such as output account mistake, the process for alloting finance is more accurate.

Description

Finance allot method, apparatus, computer equipment and storage medium
Technical field
This application involves computer field is arrived, especially relate to a kind of finance allot method, apparatus, computer equipment and Storage medium.
Background technique
Traditional enterprises end front end processor, each enterprises end front end processor are intelligently docked with a bank, when the financial tune of progress When dialling, need in addition to change an enterprises end front end processor after completing for a bank account operation, each finance allot needs The account for logging in multiple banks is operated, and then is needed with changing different enterprises end front end processors, cumbersome.
Summary of the invention
The main purpose of the application is to provide to fast implement the finance alloted of finance and allot method, apparatus, computer equipment And storage medium.
In order to achieve the above-mentioned object of the invention, the application proposes that a kind of finance allot method, the enterprise being arranged using enterprises end End front end processor carries out financial data with bank end and interacts, and multiple UKey interfaces, the enterprise are provided on the enterprises end front end processor Industry end front end processor corresponds to that multiple UKey interfaces are configured as can be complete with bank's end front end processor of multiple and different bank's types At financial data interaction;The method, comprising:
The multiple of management, which are alloted, by the specified needs finance of enterprises end front end processor acquisition enterprises end allots bank's account The remaining sum at family;
Whether being less than for each tune for alloting bank account setting for each remaining sum for alloting bank account judged Dial threshold value;
It is less than if there is remaining sum and allots the first of threshold value and allot bank account, then according to preset rule of transferring accounts from specified Secondary bank account allot Bank account transfer to described first.
Further, the needs finance specified by enterprises end front end processor acquisition enterprises end allot the more of management The step of a remaining sum for alloting bank account, comprising:
It sends to the enterprises end front end processor for each inquiry into balance task corresponding first for alloting bank account Task ID, wherein the first task ID is deposited into preset buffer queue by the enterprises end front end processor;
The first task ID for receiving the enterprises end front end processor feedback, obtains corresponding remaining sum according to the first task ID Query task;
The inquiry into balance task obtained according to the first task ID is sent to the enterprises end front end processor, passes through the enterprise The inquiry into balance task is sent to corresponding bank pre-machine by industry end front end processor, to allot bank account described in inquiry correspondence Account balance;
Receive the account balance that the enterprises end front end processor is obtained by the bank pre-machine.
Further, it is described be less than if there is remaining sum allot the first of threshold value and allot bank account, then according to preset Transfer accounts rule from specified secondary bank account to described first allot Bank account transfer the step of, comprising:
Finance are generated according to the rule of transferring accounts and allot task, and are sent the finance to the enterprises end front end processor and alloted Corresponding second task ID of task, wherein second task ID is deposited into preset caching team by the enterprises end front end processor In column;
The second task ID for receiving the enterprises end front end processor feedback, obtains corresponding finance according to second task ID Allot task;
It sends and allots task to the enterprises end front end processor according to the finance that second task ID obtains, pass through the enterprise The finance are alloted task and send corresponding bank pre-machine by industry end front end processor, to complete secondary bank account to described first Allot Bank account transfer.
Further, the finance allot method further include:
Receive the heartbeat detection packet that the enterprises end front end processor is sent, connection shape of the detection with the enterprises end front end processor State;
If connection status is to disconnect, send a warning.
Further, the needs finance specified by enterprises end front end processor acquisition enterprises end allot the more of management Before the step of a remaining sum for alloting bank account, comprising:
Judge the UKey equipment that corresponding various types of bank whether is inserted on the enterprises end front end processor;
If it is not, then alarming
Further, finance allot method further include:
Task is carried out with the enterprises end front end processor by way of long connection to interact.
Further, described to carry out the step that task interacts, packet with the enterprises end front end processor by way of long connection It includes:
Long connection is carried out by the synchronous blocking model of BIO and enterprises end front end processor, to complete task interaction.
The application also provides a kind of finance and allots device, and the enterprises end front end processor of enterprises end setting and bank end is utilized to carry out Financial data is interactive, is provided with multiple UKey interfaces on the enterprises end front end processor, the enterprises end front end processor corresponds to multiple institutes UKey interface is stated to be configured as to interact with bank's end front end processor of multiple and different bank's types completion financial data;The dress It sets, comprising:
Acquiring unit allots the more of management for obtaining the specified needs finance of enterprises end by the enterprises end front end processor A remaining sum for alloting bank account;
Judging unit judges that whether being less than for each remaining sum for alloting bank account described allots bank account for each Threshold value is alloted in setting;
Unit is alloted, the first of threshold value is alloted for being less than if there is remaining sum and allots bank account, then according to preset Rule of transferring accounts allots Bank account transfer from specified secondary bank account to described first.
The application also provides a kind of computer equipment, including memory and processor, and the memory is stored with computer The step of program, the processor realizes any of the above-described the method when executing the computer program.
The application also provides a kind of computer readable storage medium, is stored thereon with computer program, the computer journey The step of method described above is realized when sequence is executed by processor.
The finance of the application allot method, apparatus, computer equipment and storage medium, because enterprises end front end processor can be with The bank of multiple and different types carries out bank-corporate express function, so multiple UKey interfaces are provided on enterprises end front end processor, with Guarantee the normal use of each bank account;Finance are initiated when alloting task, different allot bank's account without manually logging in Its remaining sum is inquired at family, is transferred accounts without the bank account of alloting manually transferred accounts to needs, it can automatic inquiry is different The remaining sum for alloting bank account, then judge to need which allots bank account to according to the remaining sum for respectively alloting bank account It transfers accounts, and can be automatically performed and transfer accounts, greatly increase the efficiency that finance are alloted, save human resources, and only It needs to configure once, during finance are alloted, is not in artificial such as output account mistake, allots finance Process is more accurate.
Detailed description of the invention
Fig. 1 is that the finance of one embodiment of the invention allot the flow diagram of method;
Fig. 2 is that the above-mentioned finance of one embodiment of the invention allot the idiographic flow schematic diagram of step S1 in method;
Fig. 3 is that the above-mentioned finance of one embodiment of the invention allot the idiographic flow schematic diagram of step S3 in method;
Fig. 4 is that the finance of one embodiment of the invention allot the structural schematic block diagram of device;
Fig. 5 is the structural schematic block diagram of the acquiring unit of one embodiment of the invention;
Fig. 6 is the structural schematic block diagram for alloting unit of one embodiment of the invention;
Fig. 7 is the structural schematic block diagram of the computer equipment of one embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
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.
Referring to Fig.1, the embodiment of the present application provides a kind of finance and allots method, utilizes the enterprises end front end processor of enterprises end setting Financial data is carried out with bank end to interact, and multiple UKey interfaces is provided on the enterprises end front end processor, the enterprises end is preposition Machine corresponds to multiple UKey interfaces and is configured as that financial number can be completed with bank's end front end processor of multiple and different bank's types According to interaction.
Above-mentioned enterprises end front end processor refers to the front end processor that enterprises end is arranged in, be enterprises end financial system and bank end into Intermediate equipment when row bank-corporate express.Above-mentioned enterprises end front end processor is configured as can be with the bank end of multiple and different bank's types Front end processor completes data interaction, and configuration process is, when enterprise's installation enterprises end front end processor, enterprises end front end processor has a management Operator interfaces input specified configuration information in preset interface, which includes enterprise ID, enterprises end front end processor volume Number, bank server IP, bank port, bank bank-corporate express number, bank's end front end processor version number, bank's major class etc. enterprise Industry financial system and bank complete the call parameter of bank-corporate express, Thread Count size configuration etc. can be also configured, to realize multithreading The processing of task;Then configuration result is sent to the corresponding application server of enterprises end front end processor.It is, configuration application is logical The account and its relevant information for the bank-corporate express crossed correspond to bank at it when the account that enterprise needs to log in each bank-corporate express is obtained Data when (transaction data, inquiry data etc.), it is only necessary to corresponding UKey is inserted on enterprises end front end processor, and (one kind passes through USB is directly connected with computer, the small memory device with cryptographic authorization functions, reliable high speed), realize an enterprise End front end processor is connect with bank's end front end processor of multiple and different class banks, and enterprise uniformly manages the bank UKey of user, nothing concentratedly The handover operation of bank need to be done.The account of each bank-corporate express account of enterprise is obtained by enterprises end front end processor with can be convenient Information, transaction journal information, balance information, and can carry out relevant the relevant operations such as paying, collect, alloting.Above-mentioned silver Row major class refers to different banks, such as industrial and commercial bank and Construction Bank bank's major class etc. that belong to two different, i.e., using not Bank with front end processor is considered being different bank's major class.
The above method, comprising:
S1, obtain that specified needs of enterprises end are financial to be alloted the multiple of management and allot bank by the enterprises end front end processor The remaining sum of account.
In above-mentioned steps S1, in step sl, enterprises end can be provided with the wealth of the corresponding above-mentioned enterprises end front end processor of installation Business system, Enterprises ' Financial Workers can initiate the order that finance are alloted on financial system and give the corresponding application of enterprises end front end processor Server, application server are initiated the order that finance are alloted or application server again and are preset according to what financial system was arranged Time interval automatically initiates the order that finance are alloted.In the application, since enterprises end front end processor may be implemented to configure with multiple The bank pre-machine of bank keep connection, and data interaction is carried out, so needing finance to allot bank's account of management in inquiry When the remaining sum at family, without manually logging in different bank account inquiries, but it can be completed by financial system, certainly, Precondition is that the UKey of corresponding bank is plugged on enterprises end front end processor.In one embodiment, finance are needed to allot pipe The bank account of alloting of reason includes two, be respectively A bank allot bank account A and B bank allot bank account B, Wherein A bank and B bank are not similar bank (i.e. the bank pre-machine of A bank are different with the bank pre-machine standard of B bank), It is inserted into enterprises end front end processor without will first allot the corresponding UKey of bank account A, then logs in and allot bank account A inquiry Then its remaining sum pulls out and allots the corresponding UKey of bank account A, the corresponding UKey of bank account B is alloted in insertion, then logs in and adjusts It dials bank account B and inquires its remaining sum, but it is corresponding with bank account B is alloted to allot the corresponding UKey of bank account A simultaneously UKey is inserted into above-mentioned enterprises end front end processor, is done directly finance by above-mentioned financial system machine and allots, easily and fast, release Human resources.
S2, judge that whether being less than for each remaining sum for alloting bank account described allots bank account setting for each Allot threshold value.
In above-mentioned steps S2, the different threshold values of alloting for alloting bank account be may be the same or different, for example, The threshold value of alloting of first account is 1,000,000 RMB, and the threshold value of alloting of the second account is 5,000,000 RMB etc..In the present embodiment, What can be will acquire respectively allots the corresponding remaining sum of bank account, and corresponding threshold value of alloting is compared, in this way, it may appear that have Allot bank account needs allot, some does not need then to be alloted.At this point, can by need allot to allot bank account whole Reason comes out, for example is put into a preset transfer data list, in order to subsequent bank transfer etc..
S3, be less than if there is remaining sum and allot the first of threshold value and allot bank account, then according to it is preset transfer accounts rule from Specified secondary bank account allots Bank account transfer to described first.
In above-mentioned steps S3, above-mentioned preset rules include a variety of, for example, remaining sum, which is less than, allots threshold X, then directly from the Two Bank account transfer X allot bank account to corresponding first;For another example, no matter remaining sum is less than how much allot threshold value, all can Account bank etc. is alloted from one Flat Amount of secondary bank account transfer to first.Above-mentioned secondary bank account is generally fixed Account, one be arranged such as enterprise allots total account, is periodically transferred to money to this total account, then, when needing finance to allot Management allot bank account as above-mentioned first allot bank account when, i.e., can allot bank from this total account to first Account transfer, to realize that finance are alloted.
Referring to Fig. 2, in one embodiment, wealth is needed above by what enterprises end front end processor acquisition enterprises end was specified The step S1 of multiple remaining sums for alloting bank account of management is alloted in business, comprising:
S101, sent to the enterprises end front end processor it is corresponding for each inquiry into balance task for alloting bank account First task ID, wherein the first task ID is deposited into preset buffer queue by the enterprises end front end processor.
In above-mentioned steps S101, above-mentioned first task ID is a mark, which uniquely corresponds to the remaining sum Query task, there is no task definitions by first task ID, before preventing the message by inquiry into balance task to be placed directly on enterprises end It sets in machine, influences the running space of enterprises end front end processor, and reduce its speed of service.Because the enterprises end front end processor of the application can To connect multiple bank ends front end processor, so a variety of different tasks can be more, before being directly stacked into the message of various tasks It sets in the caching of machine, the operational efficiency of enterprises end front end processor, or even collapse can be greatly reduced.In the application, it is only put into first Task ID then greatly reduces the requirement of the spatial cache of enterprises end front end processor, improves running environment quality.The present embodiment In, preset buffer queue generally comprises transaction buffer queue and query caching queue, and different buffer queue storages is corresponding to be belonged to Property task ID, corresponding setting transaction thread pool and inquiry thread pool.Enterprises end front end processor when getting first task ID, First judge the attribute of the first task ID, wherein attribute includes transaction attribute, querying attributes, is looked into because first task ID belongs to Class is ask, then is put into query caching queue.Task in two buffer queues is according to priority ranked up, and each task can be set It is equipped with a type identification, type identification is divided into 1-8 rank, and it is grade highest if 1, represents emergency task, priority processing, Corresponding priority level can be added according to specific request according to default preset rules, for example, payment is superior to inquiry silver The rank etc. of row flowing water.
S102, the first task ID for receiving the enterprises end front end processor feedback, obtain according to the first task ID and correspond to Inquiry into balance task.
In above-mentioned steps S102, the first task ID of above-mentioned enterprises end front end processor feedback refers to, corresponding above-mentioned caching team It is available free in the thread pool of column, then task is obtained into buffer queue, and because at this time in buffer queue being task ID, Task ID can be returned to above-mentioned application server by enterprises end front end processor, and application server can be generated or be transferred according to task ID pair Answering for task.In the application, when task ID is first task ID, obtained task is corresponding inquiry into balance task.
The inquiry into balance task that S103, transmission are obtained according to the first task ID passes through to the enterprises end front end processor The inquiry into balance task is sent to corresponding bank pre-machine by the enterprises end front end processor, to allot silver described in inquiry correspondence The account balance of row account.
In step s 103, have because above-mentioned inquiry into balance task is for needing what finance alloted management to allot bank's account Family, then can include that this allots the number of the corresponding bank end front end processor of bank account, corresponding bank in configuration information Server ip etc., these information are all to configure in installation enterprises end front end processor and issue the corresponding application of enterprises end front end processor Information in server.These information can be written in task by above-mentioned application server automatically according to request, in order to enterprise Front end processor is held to connect corresponding bank end front end processor.After above-mentioned enterprises end front end processor receives inquiry into balance task, can first it parse The information needed out, such as bank's end front end processor number, corresponding bank server IP, allot bank account, then will be remaining Volume query task is accurately sent to corresponding bank pre-machine, and bank pre-machine is forwarded again to bank server, to obtain Get last account balance.
S104, the account balance that the enterprises end front end processor is obtained by the bank pre-machine is received.
In above-mentioned steps S104, query result is got -- need finance to allot the account for alloting bank account of management Remaining sum.
Referring to Fig. 3, in one embodiment, it is above-mentioned be less than if there is remaining sum allot the first of threshold value and allot bank's account Family, then according to it is preset transfer accounts rule from specified secondary bank account to described first allot Bank account transfer the step of S3, comprising:
S301, rule of transferring accounts according to generate finance and allot task, and send the wealth to the enterprises end front end processor Corresponding second task ID of task is alloted in business, wherein second task ID is deposited into preset by the enterprises end front end processor In buffer queue.
Described in above-mentioned steps S301, the second above-mentioned task ID is a mark, which uniquely corresponds to the wealth Task is alloted in business, and there is no task definitions for the second task ID, to prevent the message that finance are alloted to task to be placed directly on enterprises end In front end processor, the running space of enterprises end front end processor is influenced, and reduces the speed of service.Because the enterprises end front end processor of the application can To connect multiple bank ends front end processor, so a variety of different tasks can be more, before being directly stacked into the message of various tasks It sets in the caching of machine, the operational efficiency of enterprises end front end processor, or even collapse can be greatly reduced.In the application, it is only put into second Task ID then greatly reduces the requirement of the spatial cache of enterprises end front end processor, improves running environment quality.In the application, Second task ID is a kind of corresponding ID of transaction generic task, so it can be stored in above-mentioned transaction buffer queue.
S302, the second task ID for receiving the enterprises end front end processor feedback, obtain according to second task ID and correspond to Finance allot task.
In above-mentioned steps S302, the second task ID of above-mentioned enterprises end front end processor feedback refers to, corresponding above-mentioned caching team It is available free in the thread pool of column, then task is obtained into buffer queue, and because at this time in buffer queue being task ID, Task ID can be returned to above-mentioned application server by enterprises end front end processor, and application server can be generated or be transferred according to task ID pair The task message answered.In the application, when task ID is the second task ID, obtained humanity is that corresponding finance allot task Message.
S303, it sends and allots task to the enterprises end front end processor according to the finance that second task ID obtains, pass through The finance are alloted task and send corresponding bank pre-machine by the enterprises end front end processor, to complete secondary bank account to institute It states first and allots Bank account transfer.
In above-mentioned steps S303, because the above-mentioned finance task of alloting is to have for needing what finance alloted management to allot silver Row account and secondary bank account, then can include that this allots the corresponding bank end front end processor of bank account in configuration information Number, the number of corresponding bank server IP and the corresponding bank end front end processor of secondary bank account, corresponding bank Server ip etc., these information are all to configure in installation enterprises end front end processor and issue the corresponding application of enterprises end front end processor Information in server.These information can be written in task by above-mentioned application server automatically according to request, in order to enterprise Front end processor is held to connect corresponding bank end front end processor.Above-mentioned enterprises end front end processor receives after finance allot task, can first parse The information needed out, such as the number of bank's end front end processor, allot bank account, secondary bank account at corresponding bank server IP Then finance are alloted task message and are accurately sent to corresponding bank pre-machine by family etc., bank pre-machine is being forwarded To bank server, to complete last transfer accounts.After the corresponding bank server of secondary bank account is transferred accounts, one can be returned A result message gives enterprises end front end processor, and enterprises end front end processor can then be fed back to its corresponding application server, using clothes Business device can choose whether to feed back the result into financial system according to the configuration of the financial system of enterprise.
In one embodiment, above-mentioned finance allot method method further include:
Receive the heartbeat detection packet that the enterprises end front end processor is sent, connection shape of the detection with the enterprises end front end processor State;If connection status is to disconnect, send a warning.
Theoretically, enterprises end front end processor and application server should be online for a long time, but because being electronic product, inevitable meeting The processing such as failure or upgrading, enterprises end front end processor may break with application server and connect at this time, then passing through heartbeat The mode of detection detects the connection status of enterprises end front end processor and application server, when the two connection failure, then needs to issue police It notifies breath.It sends a warning including two kinds, the first, the information such as mail are sent to the related personnel of enterprise, and/or are sent to The third-party related personnel of enterprises end front end processor is provided;Second, before sending specified information to bank end connected to it Machine is set, and is sent to the related management system of bank, to inform the staff at bank end, bank end by bank's end front end processor Staff can manually inform that the failure etc. of connection breaking has occurred in the corresponding personnel of enterprises end.Above-mentioned reception sends heartbeat detection Packet can ensure that the financial staff of enterprises end understands enterprises end front end processor and whether application server disconnects, thus in time The things that processing needs bank-corporate express to complete originally.
In one embodiment, the specified needs finance of enterprises end are obtained above by the enterprises end front end processor and allots pipe Before the step S1 of multiple remaining sums for alloting bank account of reason, comprising:
S11, judge the UKey equipment that corresponding various types of bank whether is inserted on the enterprises end front end processor;
S12, if it is not, then alarming.
In above-mentioned steps S11 and S12, the mark of its bank's type of the correspondence of UKey equipment of each UKey interface insertion is acquired Know, then the mark is compared with the mark of all kinds of banks of representative configured when configuration enterprises end front end processor, if adopted Each mark collected covers the mark of all kinds of banks of representative configured when configuration enterprises end front end processor comprehensively when, then enterprises end is determined It is inserted into the UKey equipment of corresponding various types of bank on front end processor, can execute subsequent such as step S1, no person will not be coated The corresponding bank's type of the mark of lid extracts, and is sent to the related personnel of enterprise to alarm, at this time the relevant people of enterprise Member can perform corresponding processing, and the UKey equipment for forgetting insertion or insert division are loosened and lead to UKey equipment poor contact It reinserts, to guarantee the interaction between enterprise and each bank.In another embodiment, it can also judge the UKey got Whether the mark of equipment is identical as the quantity of the mark (not repeating) of all kinds of banks of representative configured when configuration enterprises end front end processor, Because a bank can only send out a UKey can be determined that enterprises end front end processor when quantity is identical to enterprise substantially The UKey equipment of the upper corresponding various types of bank of insertion, although such judgment method existing defects, judge that speed can be faster.
In one embodiment, above-mentioned finance allot method further include: by way of long connection and before the enterprises end It sets machine and carries out task interaction.
Because the task or received task that send to enterprises end front end processor may be continuously, to use long connection The mode service of monitoring, does not turn off after making each operated, and next time directly transmits data packet when handling, without setting up TCP (Transmission Control Protocol transmission control protocol) connection, to keep the efficiency of processing task.This reality It applies in example, application server and enterprises end front end processor are grown using BIO (block input output) synchronous blocking model Connection, to complete task interaction.Different receipt query tasks can not carry out simultaneously, thus need according to instruction sequences into Row, an instruction execution is complete could to execute next instruction, be unable to asynchronous execution, so using the synchronous obstruction of BIO in the application Mode makes application server and enterprises end front end processor carry out long connection.
In one embodiment, the message that above-mentioned enterprises end front end processor and application server are mutually sent uses Protocol Buffers is serialized.
Protocol Buffers is a kind of structural data storage format of portable and effective, can be used for structural data Serialization, serializes in other words.It is well suited for doing data storage or RPC data interchange format.It can be used for communications protocol, data are deposited The serializing structured data formats that the language in the fields such as storage is unrelated, platform is unrelated, expansible, Protobuf's is main in brief Advantage is exactly: it is simple, fastly.The application is serialized using the Protocol Buffers of GOOGLE (Google), can be improved Efficiency message encapsulation and sent.
The finance of the embodiment of the present application allot method because enterprises end front end processor can with the banks of multiple and different types into Row bank-corporate express function, so being provided with multiple UKey interfaces, on enterprises end front end processor to guarantee each bank account just It is often used;When initiation finance allot task, the bank account of alloting without manually logging in different inquires its remaining sum, without hand The bank account of alloting that dynamic ground is transferred accounts to needs is transferred accounts, it can the different remaining sums for alloting bank account is inquired automatically, Then judge to need which allots bank account to transfer accounts according to the remaining sum for respectively alloting bank account, and can be automatic Completion is transferred accounts, and the efficiency that finance are alloted is greatly increased, and saves human resources, and only need to configure once, in wealth It is not in artificial such as output account mistake during business is alloted, the process for alloting finance is more accurate.
Referring to Fig. 4, the embodiment of the present application provides a kind of finance and allots device, utilizes the enterprises end front end processor of enterprises end setting Financial data is carried out with bank end to interact, and multiple UKey interfaces is provided on the enterprises end front end processor, the enterprises end is preposition Machine corresponds to multiple UKey interfaces and is configured as that financial number can be completed with bank's end front end processor of multiple and different bank's types According to interaction.
Above-mentioned enterprises end front end processor refers to the front end processor that enterprises end is arranged in, be enterprises end financial system and bank end into Intermediate equipment when row bank-corporate express.Above-mentioned enterprises end front end processor is configured as can be with the bank end of multiple and different bank's types Front end processor completes data interaction, and configuration process is, when enterprise's installation enterprises end front end processor, enterprises end front end processor has a management Operator interfaces input specified configuration information in preset interface, which includes enterprise ID, enterprises end front end processor volume Number, bank server IP, bank port, bank bank-corporate express number, bank's end front end processor version number, bank's major class etc. enterprise Industry financial system and bank complete the call parameter of bank-corporate express, Thread Count size configuration etc. can be also configured, to realize multithreading The processing of task;Then configuration result is sent to the corresponding application server of enterprises end front end processor.It is, configuration application is logical The account and its relevant information for the bank-corporate express crossed correspond to bank at it when the account that enterprise needs to log in each bank-corporate express is obtained Data when (transaction data, inquiry data etc.), it is only necessary to corresponding UKey is inserted on enterprises end front end processor, and (one kind passes through USB is directly connected with computer, the small memory device with cryptographic authorization functions, reliable high speed), realize an enterprise End front end processor is connect with bank's end front end processor of multiple and different class banks, and enterprise uniformly manages the bank UKey of user, nothing concentratedly The handover operation of bank need to be done.The account of each bank-corporate express account of enterprise is obtained by enterprises end front end processor with can be convenient Information, transaction journal information, balance information, and can carry out relevant the relevant operations such as paying, collect, alloting.Above-mentioned silver Row major class refers to different banks, such as industrial and commercial bank and Construction Bank bank's major class etc. that belong to two different, i.e., using not Bank with front end processor is considered being different bank's major class.
Above-mentioned apparatus, comprising:
Acquiring unit 10 allots management for obtaining the specified needs finance of enterprises end by the enterprises end front end processor Multiple remaining sums for alloting bank account.
In above-mentioned acquiring unit 10, enterprises end can be provided with the financial system of the corresponding above-mentioned enterprises end front end processor of installation, Enterprises ' Financial Workers can initiate the order that finance are alloted on financial system and give the corresponding application server of enterprises end front end processor, Application server initiates the order that finance are alloted or the prefixed time interval that application server is arranged according to financial system again Automatically initiate the order that finance are alloted.In the application, since enterprises end front end processor may be implemented and multiple configured banks Bank pre-machine keeps connection, and carries out data interaction, so needing the remaining sum of the financial bank account for alloting management in inquiry When, without manually logging in different bank account inquiries, but can be completed by financial system, certainly, precondition It is that the UKey of corresponding bank is plugged on enterprises end front end processor.In one embodiment, finance is needed to allot alloting for management Bank account includes two, be respectively A bank allot bank account A and B bank allot bank account B, wherein A silver Row and B bank are not similar bank (i.e. the bank pre-machine standard of the bank pre-machine of A bank and B bank are different), without first The corresponding UKey of bank account A will be alloted to be inserted into enterprises end front end processor, then login allots bank account A and inquires remaining Then volume pulls out and allots the corresponding UKey of bank account A, the corresponding UKey of bank account B is alloted in insertion, then logs in and allots silver Row account B inquires its remaining sum, but will allot the corresponding UKey of bank account A UKey corresponding with bank account B is alloted simultaneously It is inserted into above-mentioned enterprises end front end processor, finance are done directly by above-mentioned financial system machine and are alloted, easily and fast, discharges manpower Resource.
Judging unit 20, for judging that whether being less than for each remaining sum for alloting bank account described allots silver for each Row Account Settings allot threshold value.
In above-mentioned judging unit 20, the different threshold values of alloting for alloting bank account be may be the same or different, than Such as, the threshold value of alloting of the first account is 1,000,000 RMB, and the threshold value of alloting of the second account is 5,000,000 RMB etc..The present embodiment In, what can be will acquire respectively allots the corresponding remaining sum of bank account, and corresponding threshold value of alloting is compared, in this way, can go out Existing bank account needs of alloting are alloted, and some does not need then to be alloted.At this point, can will need that allots to allot bank's account Family, which sorts out, to be come, for example is put into a preset transfer data list, in order to subsequent bank transfer etc..
Unit 30 is alloted, the first of threshold value is alloted for being less than if there is remaining sum and allots bank account, then according to default Rule of transferring accounts from specified secondary bank account to described first allot Bank account transfer.
It is alloted in unit 30 above-mentioned, above-mentioned preset rules include a variety of, for example, remaining sum, which is less than, allots threshold X, then directly Bank account is alloted from secondary bank account transfer X to corresponding first;For another example, no matter remaining sum is less than how much allot threshold value, Account bank etc. will be alloted from one Flat Amount of secondary bank account transfer to first.Above-mentioned secondary bank account is generally Fixed account, one be arranged such as enterprise allot total account, are periodically transferred to money to this total account, then, when needing finance Allot management allot bank account as above-mentioned first allot bank account when, i.e., can be alloted from this total account to first Bank account transfer, to realize that finance are alloted.
Referring to Fig. 5, in one embodiment, above-mentioned acquiring unit 10, comprising:
First sending module 101 described is alloted more than bank account for sending to the enterprises end front end processor for each The corresponding first task ID of volume query task, wherein the first task ID is deposited into preset by the enterprises end front end processor In buffer queue.
In above-mentioned first sending module 101, above-mentioned first task ID is a mark, which uniquely corresponds to institute Inquiry into balance task is stated, there is no task definitions by first task ID, to prevent the message by inquiry into balance task to be placed directly on enterprise In the front end processor of industry end, the running space of enterprises end front end processor is influenced, and reduces its speed of service.Because before the enterprises end of the application The machine of setting can connect multiple bank ends front end processor, so a variety of different tasks can be more, directly by the message heap of various tasks Product can greatly reduce the operational efficiency of enterprises end front end processor, or even collapse into the caching of front end processor.In the application, only put Enter first task ID, then greatly reduce the requirement of the spatial cache of enterprises end front end processor, improves running environment quality.This reality It applies in example, preset buffer queue generally comprises transaction buffer queue and query caching queue, different buffer queue storages pair Answer the task ID of attribute, corresponding setting transaction thread pool and inquiry thread pool.Enterprises end front end processor is getting first task When ID, the attribute of the first task ID is first judged, wherein attribute includes transaction attribute, querying attributes, because of first task ID Belong to inquiry class, is then put into query caching queue.Task in two buffer queues is according to priority ranked up, Mei Geren Business can be provided with a type identification, and type identification is divided into 1-8 rank, be grade highest if 1, represent emergency task, excellent It first handles, corresponding priority level can be added according to specific request, for example, the rank of payment is high according to default preset rules In the rank etc. of inquiry bank's flowing water.
First receiving module 102, for receiving the first task ID of the enterprises end front end processor feedback, according to described first Task ID obtains corresponding inquiry into balance task.
In above-mentioned first receiving module 102, the first task ID of above-mentioned enterprises end front end processor feedback refers to that correspondence is above-mentioned It is available free in the thread pool of buffer queue, then task is obtained into buffer queue, and because at this time in buffer queue be task ID, so task ID can be returned to above-mentioned application server by enterprises end front end processor, application server can be generated according to task ID Or transfer corresponding task.In the application, when task ID is first task ID, obtained task is corresponding inquiry into balance Task.
Enquiry module 103, for sending the inquiry into balance task obtained according to the first task ID to the enterprises end The inquiry into balance task is sent to corresponding bank pre-machine by the enterprises end front end processor by front end processor, with inquiry pair Answer the account balance for alloting bank account.
In above-mentioned enquiry module 103, because above-mentioned inquiry into balance task is the tune having for needing finance to allot management Bank account is dialled, then can include the number, right for alloting bank account corresponding bank end front end processor in configuration information Bank server IP answered etc., these information are all to configure in installation enterprises end front end processor and issue enterprises end front end processor pair The information in application server answered.These information can be written in task by above-mentioned application server automatically according to request, with Corresponding bank end front end processor is connected convenient for enterprises end front end processor.After above-mentioned enterprises end front end processor receives inquiry into balance task, Can first parse the information of needs, such as bank's end front end processor number, corresponding bank server IP, allot bank account, Then inquiry into balance task is accurately sent to corresponding bank pre-machine, bank pre-machine is forwarded again to bank service Device, to obtain account balance to the end.
Module 104 is obtained, more than the account obtained by the bank pre-machine for receiving the enterprises end front end processor Volume.
In above-mentioned acquisition module 104, get query result -- need finance to allot the bank account of alloting of management Account balance.
It is in one embodiment, above-mentioned to allot unit 30 referring to Fig. 6, comprising:
Second sending module 301 generates finance for rule of transferring accounts according to and allots task, and to before the enterprises end It sets machine and sends the finance and allot corresponding second task ID of task, wherein the enterprises end front end processor is by second task ID is deposited into preset buffer queue.
In above-mentioned second sending module 301, the second above-mentioned task ID is a mark, which uniquely corresponds to institute It states finance and allots task, there is no task definitions for the second task ID, to prevent the message that finance are alloted to task to be placed directly on enterprise In the front end processor of industry end, the running space of enterprises end front end processor is influenced, and reduces the speed of service.Because the enterprises end of the application is preposition Machine can connect multiple bank ends front end processor, so a variety of different tasks can be more, directly accumulate the message of various tasks Into the caching of front end processor, the operational efficiency of enterprises end front end processor, or even collapse can be greatly reduced.In the application, only it is put into Second task ID then greatly reduces the requirement of the spatial cache of enterprises end front end processor, improves running environment quality.The application In, the second task ID is a kind of corresponding ID of transaction generic task, so it can be stored in above-mentioned transaction buffer queue.
Second receiving module 302, for receiving the second task ID of the enterprises end front end processor feedback, according to described second Task ID obtains corresponding finance and allots task.
In above-mentioned second receiving module 302, the second task ID of above-mentioned enterprises end front end processor feedback refers to that correspondence is above-mentioned It is available free in the thread pool of buffer queue, then task is obtained into buffer queue, and because at this time in buffer queue be task ID, so task ID can be returned to above-mentioned application server by enterprises end front end processor, application server can be generated according to task ID Or transfer corresponding task message.In the application, when task ID is the second task ID, obtained humanity is corresponding finance Allot task message.
Module 303 is alloted, allots task to the enterprises end according to the finance that second task ID obtains for sending The finance are alloted task by the enterprises end front end processor and send corresponding bank pre-machine, to complete second by front end processor Bank account allots Bank account transfer to described first.
It is alloted in module 303 above-mentioned, because the above-mentioned finance task of alloting is the tune having for needing finance to allot management Bank account and secondary bank account are dialled, then can include before this allots the corresponding bank end of bank account in configuration information Set the number of the machine, number of corresponding bank server IP and the corresponding bank end front end processor of secondary bank account, corresponding Bank server IP etc., these information are all to configure in installation enterprises end front end processor and to issue enterprises end front end processor corresponding Information in application server.These information can be written in task by above-mentioned application server automatically according to request, in order to Enterprises end front end processor connects corresponding bank end front end processor.Above-mentioned enterprises end front end processor receives after finance allot task, can be first The information for parsing needs, such as the number of bank's end front end processor, allot bank account, the second silver medal at corresponding bank server IP Then finance are alloted task message and are accurately sent to corresponding bank pre-machine by row account etc., bank pre-machine is carrying out It is transmitted to bank server, to complete last transfer accounts.After the corresponding bank server of secondary bank account is transferred accounts, it can return It returns a result message and gives enterprises end front end processor, enterprises end front end processor can then be fed back to its corresponding application server, answer It can be chosen whether to feed back the result into financial system according to the configuration of the financial system of enterprise with server.
In one embodiment, above-mentioned finance allot square law device further include:
Heartbeat detection unit, the heartbeat detection packet sent for receiving the enterprises end front end processor, detection and the enterprise Hold the connection status of front end processor;If connection status is to disconnect, send a warning.
Theoretically, enterprises end front end processor and application server should be online for a long time, but because being electronic product, inevitable meeting The processing such as failure or upgrading, enterprises end front end processor may break with application server and connect at this time, then passing through heartbeat The mode of detection detects the connection status of enterprises end front end processor and application server, when the two connection failure, then needs to issue police It notifies breath.It sends a warning including two kinds, the first, the information such as mail are sent to the related personnel of enterprise, and/or are sent to The third-party related personnel of enterprises end front end processor is provided;Second, before sending specified information to bank end connected to it Machine is set, and is sent to the related management system of bank, to inform the staff at bank end, bank end by bank's end front end processor Staff can manually inform that the failure etc. of connection breaking has occurred in the corresponding personnel of enterprises end.Above-mentioned reception sends heartbeat detection Packet can ensure that the financial staff of enterprises end understands enterprises end front end processor and whether application server disconnects, thus in time The things that processing needs bank-corporate express to complete originally.
In one embodiment, above-mentioned finance allot device, comprising:
Judging unit, the UKey equipment for judging whether to be inserted into corresponding various types of bank on the enterprises end front end processor;
Alarm unit is reported if being not inserted into the UKey equipment of corresponding various types of bank on the enterprises end front end processor It is alert.
In above-mentioned judging unit and alarm unit, its bank's kind of the correspondence of UKey equipment of each UKey interface insertion is acquired Then the mark of class the mark is compared with the mark of all kinds of banks of representative configured when configuration enterprises end front end processor, If collected each mark covers the mark of all kinds of banks of representative configured when configuration enterprises end front end processor comprehensively, determine It is inserted into the UKey equipment of the various types of bank of correspondence on enterprises end front end processor, can execute subsequent such as step S1, no person, general The corresponding bank's type of uncovered mark extracts, and be sent to the related personnel of enterprise to alarm, at this time enterprise Related personnel can perform corresponding processing, and the UKey equipment for forgetting insertion or insert division are loosened and UKey equipment is caused to contact It is undesirable to reinsert, to guarantee the interaction between enterprise and each bank.In another embodiment, can also judge to get The quantity of mark and the mark (not repeating) of all kinds of banks of representative configured when configuring enterprises end front end processor of UKey equipment be It is no identical, because a bank can only send out a UKey can be determined that enterprises end when quantity is identical to enterprise substantially The UKey equipment of corresponding various types of bank is inserted on front end processor, although such judgment method existing defects, judge speed meeting Faster.
In one embodiment, above-mentioned finance allot device further include: long connection unit, for by way of long connection Task is carried out with the enterprises end front end processor to interact.
Because the task or received task that send to enterprises end front end processor may be continuously, to use long connection The mode service of monitoring, does not turn off after making each operated, and next time directly transmits data packet when handling, without setting up TCP (Transmission Control Protocol transmission control protocol) connection, to keep the efficiency of processing task.This reality It applies in example, application server and enterprises end front end processor are grown using BIO (block input output) synchronous blocking model Connection, to complete task interaction.Different receipt query tasks can not carry out simultaneously, thus need according to instruction sequences into Row, an instruction execution is complete could to execute next instruction, be unable to asynchronous execution, so using the synchronous obstruction of BIO in the application Mode makes application server and enterprises end front end processor carry out long connection.
In one embodiment, above-mentioned finance allot device further include: serialization unit, for by enterprises end front end processor with The message that application server is mutually sent is serialized by Protocol Buffers.
Protocol Buffers is a kind of structural data storage format of portable and effective, can be used for structural data Serialization, serializes in other words.It is well suited for doing data storage or RPC data interchange format.It can be used for communications protocol, data are deposited The serializing structured data formats that the language in the fields such as storage is unrelated, platform is unrelated, expansible, Protobuf's is main in brief Advantage is exactly: it is simple, fastly.The application is serialized using the Protocol Buffers of GOOGLE (Google), can be improved Efficiency message encapsulation and sent.
The finance of the embodiment of the present application allot device because enterprises end front end processor can with the banks of multiple and different types into Row bank-corporate express function, so being provided with multiple UKey interfaces, on enterprises end front end processor to guarantee each bank account just It is often used;When initiation finance allot task, the bank account of alloting without manually logging in different inquires its remaining sum, without hand The bank account of alloting that dynamic ground is transferred accounts to needs is transferred accounts, it can the different remaining sums for alloting bank account is inquired automatically, Then judge to need which allots bank account to transfer accounts according to the remaining sum for respectively alloting bank account, and can be automatic Completion is transferred accounts, and the efficiency that finance are alloted is greatly increased, and saves human resources, and only need to configure once, in wealth It is not in artificial such as output account mistake during business is alloted, the process for alloting finance is more accurate.
Referring to Fig. 7, a kind of computer equipment is also provided in the embodiment of the present application, which can be server, Its internal structure can be as shown in Figure 7.The computer equipment includes processor, the memory, network connected by system bus Interface and database.Wherein, the processor of the Computer Design is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program And database.The internal memory provides environment for the operation of operating system and computer program in non-volatile memory medium.It should The database of computer equipment allots method program etc. for storing finance.The network interface of the computer equipment is used for and outside Terminal by network connection communication.To realize that a kind of finance allot method when the computer program is executed by processor.
Above-mentioned processor executes above-mentioned finance and allots method, using enterprises end setting enterprises end front end processor and bank end into Row financial data is interactive, is provided with multiple UKey interfaces on the enterprises end front end processor, the enterprises end front end processor corresponds to multiple The UKey interface is configured as to interact with bank's end front end processor of multiple and different bank's types completion financial data;It is described Method, comprising: allot the multiple of management by the specified needs finance of enterprises end front end processor acquisition enterprises end and allot bank The remaining sum of account;Judge that whether being less than for each remaining sum for alloting bank account described allots bank account setting for each Allot threshold value;It is less than if there is remaining sum and allots the first of threshold value and allot bank account, then according to preset rule of transferring accounts from finger Fixed secondary bank account allots Bank account transfer to described first.
In one embodiment, the specified needs finance of enterprises end are obtained above by the enterprises end front end processor and allots pipe The step of multiple remaining sums for alloting bank account of reason, comprising: sent to the enterprises end front end processor and described allot silver for each The corresponding first task ID of the inquiry into balance task of row account, wherein the enterprises end front end processor deposits the first task ID Enter into preset buffer queue;The first task ID for receiving the enterprises end front end processor feedback, according to the first task ID Obtain corresponding inquiry into balance task;Before the inquiry into balance task obtained according to the first task ID is sent to the enterprises end Machine is set, the inquiry into balance task is sent to by corresponding bank pre-machine by the enterprises end front end processor, to inquire correspondence The account balance for alloting bank account;Receive the account that the enterprises end front end processor is obtained by the bank pre-machine Remaining sum.
In one embodiment, it is above-mentioned be less than if there is remaining sum allot the first of threshold value and allot bank account, then according to It is preset transfer accounts rule from specified secondary bank account to described first allot Bank account transfer the step of, comprising: according to The rule of transferring accounts generates finance and allots task, and sends the finance to the enterprises end front end processor and allot task corresponding the Two task IDs, wherein second task ID is deposited into preset buffer queue by the enterprises end front end processor;Described in reception Second task ID of enterprises end front end processor feedback obtains corresponding finance according to second task ID and allots task;Send root Task is alloted to the enterprises end front end processor according to the finance that second task ID obtains, by the enterprises end front end processor by institute It states finance and allots the corresponding bank pre-machine of task transmission, allot bank account turn to complete secondary bank account to described first Account.
In one embodiment, above-mentioned finance allot method further include: receive the heartbeat that the enterprises end front end processor is sent Detection packet, the connection status of detection and the enterprises end front end processor;If connection status is to disconnect, send a warning.
In one embodiment, the specified needs finance of enterprises end are obtained above by the enterprises end front end processor and allots pipe Before the step of multiple remaining sums for alloting bank account of reason, comprising: judge whether be inserted into correspondence on the enterprises end front end processor The UKey equipment of various types of bank;If it is not, then alarming
In one embodiment, above-mentioned finance allot method further include: by way of long connection and before the enterprises end It sets machine and carries out task interaction.
In one embodiment, the step that task interacts is carried out with the enterprises end front end processor above by the mode of long connection Suddenly, comprising: long connection is carried out by the synchronous blocking model of BIO and enterprises end front end processor, to complete task interaction.
The computer equipment of the embodiment of the present application, because enterprises end front end processor can be carried out with the bank of multiple and different types Bank-corporate express function, so being provided with multiple UKey interfaces, on enterprises end front end processor to guarantee the normal of each bank account It uses;When initiation finance allot task, the bank account of alloting without manually logging in different inquires its remaining sum, without manual What ground was transferred accounts to needs, which allot bank account, transfers accounts, it can inquires the different remaining sums for alloting bank account automatically, so Judge to need which allots bank account to transfer accounts according to the remaining sum for respectively alloting bank account afterwards, and can be automatic complete At transferring accounts, the efficiency that finance are alloted is greatly increased, saves human resources, and only need to configure once, in finance It is not in artificial such as output account mistake during alloting, the process for alloting finance is more accurate.
One embodiment of the application also provides a kind of computer readable storage medium, is stored thereon with computer program, calculates Machine program realizes that a kind of finance allot method when being executed by processor, enterprises end front end processor and bank end using enterprises end setting Financial data interaction is carried out, multiple UKey interfaces are provided on the enterprises end front end processor, the enterprises end front end processor correspondence is more A UKey interface is configured as to interact with bank's end front end processor of multiple and different bank's types completion financial data;Institute State method, comprising: allot the multiple of management by the specified needs finance of enterprises end front end processor acquisition enterprises end and allot silver The remaining sum of row account;Judge that whether being less than for each remaining sum for alloting bank account sets for each bank account of alloting Allot threshold value;Be less than if there is remaining sum and allot the first of threshold value and allot bank account, then according to it is preset transfer accounts rule from Specified secondary bank account allots Bank account transfer to described first.
Above-mentioned finance allot method, because enterprises end front end processor can carry out bank-corporate express with the bank of multiple and different types Function, so being provided with multiple UKey interfaces, on enterprises end front end processor to guarantee the normal use of each bank account;It initiates When finance allot task, the bank account of alloting without manually logging in different inquires its remaining sum, without manually to needs The bank account of alloting transferred accounts is transferred accounts, it can the different remaining sums for alloting bank account is inquired automatically, then according to each The remaining sum for alloting bank account is judged to need which allots bank account to transfer accounts, and can be automatically performed and transfer accounts, The efficiency that finance are alloted is greatly increased, human resources is saved, and only need to configure once, allots process in finance In, it is not in artificial such as output account mistake, the process for alloting finance is more accurate.
In one embodiment, the specified needs finance of enterprises end are obtained above by the enterprises end front end processor and allots pipe The step of multiple remaining sums for alloting bank account of reason, comprising: sent to the enterprises end front end processor and described allot silver for each The corresponding first task ID of the inquiry into balance task of row account, wherein the enterprises end front end processor deposits the first task ID Enter into preset buffer queue;The first task ID for receiving the enterprises end front end processor feedback, according to the first task ID Obtain corresponding inquiry into balance task;Before the inquiry into balance task obtained according to the first task ID is sent to the enterprises end Machine is set, the inquiry into balance task is sent to by corresponding bank pre-machine by the enterprises end front end processor, to inquire correspondence The account balance for alloting bank account;Receive the account that the enterprises end front end processor is obtained by the bank pre-machine Remaining sum.
In one embodiment, it is above-mentioned be less than if there is remaining sum allot the first of threshold value and allot bank account, then according to It is preset transfer accounts rule from specified secondary bank account to described first allot Bank account transfer the step of, comprising: according to The rule of transferring accounts generates finance and allots task, and sends the finance to the enterprises end front end processor and allot task corresponding the Two task IDs, wherein second task ID is deposited into preset buffer queue by the enterprises end front end processor;Described in reception Second task ID of enterprises end front end processor feedback obtains corresponding finance according to second task ID and allots task;Send root Task is alloted to the enterprises end front end processor according to the finance that second task ID obtains, by the enterprises end front end processor by institute It states finance and allots the corresponding bank pre-machine of task transmission, allot bank account turn to complete secondary bank account to described first Account.
In one embodiment, above-mentioned finance allot method further include: receive the heartbeat that the enterprises end front end processor is sent Detection packet, the connection status of detection and the enterprises end front end processor;If connection status is to disconnect, send a warning.
In one embodiment, the specified needs finance of enterprises end are obtained above by the enterprises end front end processor and allots pipe Before the step of multiple remaining sums for alloting bank account of reason, comprising: judge whether be inserted into correspondence on the enterprises end front end processor The UKey equipment of various types of bank;If it is not, then alarming
In one embodiment, above-mentioned finance allot method further include: by way of long connection and before the enterprises end It sets machine and carries out task interaction.
In one embodiment, the step that task interacts is carried out with the enterprises end front end processor above by the mode of long connection Suddenly, comprising: long connection is carried out by the synchronous blocking model of BIO and enterprises end front end processor, to complete task interaction.
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, Any reference used in provided herein and embodiment to memory, storage, database or other media, 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 speed are according to rate SDRAM (SSRSDRAM), 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..
The foregoing is merely preferred embodiment of the present application, are not intended to limit the scope of the patents of the application, all utilizations Equivalent structure or equivalent flow shift made by present specification and accompanying drawing content is applied directly or indirectly in other correlations Technical field, similarly include in the scope of patent protection of the application.

Claims (10)

1. a kind of finance allot method, which is characterized in that carry out wealth using the enterprises end front end processor and bank end of enterprises end setting Be engaged in data interaction, be provided with multiple UKey interfaces on the enterprises end front end processor, the enterprises end front end processor correspond to it is multiple described in UKey interface is configured as to interact with bank's end front end processor of multiple and different bank's types completion financial data;The side Method, comprising:
Multiple bank accounts of alloting that enterprises end specified needs finance allot management are obtained by the enterprises end front end processor Remaining sum;
Judge each remaining sum for alloting bank account whether be less than for it is each it is described allot bank account setting allot threshold Value;
It is less than if there is remaining sum and allots the first of threshold value and allot bank account, then according to preset rule of transferring accounts from specified the Two bank accounts allot Bank account transfer to described first.
2. finance according to claim 1 allot method, which is characterized in that described to be obtained by the enterprises end front end processor The step of specified needs finance of enterprises end allot multiple remaining sums for alloting bank account of management, comprising:
It sends to the enterprises end front end processor for each corresponding first task of inquiry into balance task for alloting bank account ID, wherein the first task ID is deposited into preset buffer queue by the enterprises end front end processor;
The first task ID for receiving the enterprises end front end processor feedback, obtains corresponding inquiry into balance according to the first task ID Task;
The inquiry into balance task obtained according to the first task ID is sent to the enterprises end front end processor, passes through the enterprises end The inquiry into balance task is sent to corresponding bank pre-machine by front end processor, to inquire the account for alloting bank account described in correspondence Family remaining sum;
Receive the account balance that the enterprises end front end processor is obtained by the bank pre-machine.
3. finance according to claim 1 allot method, which is characterized in that it is described if there is remaining sum be less than allot threshold value First allot bank account, then allot bank from specified secondary bank account to described first according to preset rule of transferring accounts The step of account transfer, comprising:
Finance are generated according to the rule of transferring accounts and allot task, and are sent the finance to the enterprises end front end processor and alloted task Corresponding second task ID, wherein second task ID is deposited into preset buffer queue by the enterprises end front end processor;
The second task ID for receiving the enterprises end front end processor feedback, obtains corresponding finance according to second task ID and allots Task;
It sends and allots task to the enterprises end front end processor according to the finance that second task ID obtains, pass through the enterprises end The finance are alloted task and send corresponding bank pre-machine by front end processor, are alloted with completing secondary bank account to described first Bank account transfer.
4. finance according to claim 1 allot method, which is characterized in that the method also includes:
Receive the heartbeat detection packet that the enterprises end front end processor is sent, connection status of the detection with the enterprises end front end processor;
If connection status is to disconnect, send a warning.
5. finance according to claim 1 allot method, which is characterized in that described to be obtained by the enterprises end front end processor Before the step of specified needs finance of enterprises end allot multiple remaining sums for alloting bank account of management, comprising:
Judge the UKey equipment that corresponding various types of bank whether is inserted on the enterprises end front end processor;
If it is not, then alarming.
6. finance according to claim 1 allot method, which is characterized in that the method also includes:
Task is carried out with the enterprises end front end processor by way of long connection to interact.
7. finance according to claim 6 allot method, which is characterized in that it is described by way of long connection with the enterprise Industry end front end processor carries out the step of task interaction, comprising:
Long connection is carried out by the synchronous blocking model of BIO and enterprises end front end processor, to complete task interaction.
8. a kind of finance allot device, which is characterized in that carry out wealth using the enterprises end front end processor and bank end of enterprises end setting Be engaged in data interaction, be provided with multiple UKey interfaces on the enterprises end front end processor, the enterprises end front end processor correspond to it is multiple described in UKey interface is configured as to interact with bank's end front end processor of multiple and different bank's types completion financial data;The dress It sets, comprising:
Acquiring unit, for obtaining multiple tune that the specified needs finance of enterprises end allot management by the enterprises end front end processor Dial the remaining sum of bank account;
Judging unit, for judging that whether being less than for each remaining sum for alloting bank account described allots bank account for each Threshold value is alloted in setting;
Unit is alloted, the first of threshold value is alloted for being less than if there is remaining sum and allots bank account, then transfer accounts according to preset Rule allots Bank account transfer from specified secondary bank account to described first.
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.
CN201810708681.5A 2018-07-02 2018-07-02 Financial reconciliation method, apparatus, computer device and storage medium Active CN109034768B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810708681.5A CN109034768B (en) 2018-07-02 2018-07-02 Financial reconciliation method, apparatus, computer device and storage medium
PCT/CN2018/108418 WO2020006904A1 (en) 2018-07-02 2018-09-28 Method and device for financial transfer, computer apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810708681.5A CN109034768B (en) 2018-07-02 2018-07-02 Financial reconciliation method, apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN109034768A true CN109034768A (en) 2018-12-18
CN109034768B CN109034768B (en) 2023-07-18

Family

ID=65521124

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810708681.5A Active CN109034768B (en) 2018-07-02 2018-07-02 Financial reconciliation method, apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN109034768B (en)
WO (1) WO2020006904A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109978544A (en) * 2019-04-03 2019-07-05 国网山东省电力公司 The control of enterprise's key and intelligent analysis method and system based on big data technology

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527630A (en) * 2008-12-31 2009-09-09 北京飞天诚信科技有限公司 Method, server and system for manufacturing certificate remotely
CN103413241A (en) * 2013-07-12 2013-11-27 广州银联网络支付有限公司 Bank reception and payment system
CN103679960A (en) * 2012-09-06 2014-03-26 联多科技(北京)有限公司 Cash currency unified financial platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639792B (en) * 2008-07-29 2016-04-06 阿里巴巴集团控股有限公司 A kind of concurrent data disposal route, device and a kind of electronic accounting system
CN206441153U (en) * 2016-12-26 2017-08-25 航天信息股份有限公司 A kind of data processing equipment
CN106940866A (en) * 2017-02-22 2017-07-11 深圳市喜悦智慧实验室有限公司 A kind of asset management system based on many account managements

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101527630A (en) * 2008-12-31 2009-09-09 北京飞天诚信科技有限公司 Method, server and system for manufacturing certificate remotely
CN103679960A (en) * 2012-09-06 2014-03-26 联多科技(北京)有限公司 Cash currency unified financial platform
CN103413241A (en) * 2013-07-12 2013-11-27 广州银联网络支付有限公司 Bank reception and payment system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109978544A (en) * 2019-04-03 2019-07-05 国网山东省电力公司 The control of enterprise's key and intelligent analysis method and system based on big data technology

Also Published As

Publication number Publication date
CN109034768B (en) 2023-07-18
WO2020006904A1 (en) 2020-01-09

Similar Documents

Publication Publication Date Title
CN110232565B (en) Resource clearing method, device, computer equipment and storage medium
CN108427581A (en) System micro services method and terminal device
CN109165935A (en) Batch payment method, device, computer equipment and storage medium
CN109062982A (en) Financial data exchange method, device, computer equipment and storage medium
US9015731B2 (en) Event handling system and method
CN109166026A (en) Account checking method, device, computer equipment and storage medium
CN109785042A (en) Abnormality eliminating method, server, storage medium and the device of distributed deployment
CN109118352A (en) Remaining sum monitoring method, device, computer equipment and storage medium
CN106993043A (en) Data communication system and method based on agency
CN109064144A (en) Receipt acquisition methods, device, computer equipment and storage medium
CN114416769A (en) To-do task query method and device and electronic equipment
CN109191271A (en) Fund collection method, device, computer equipment and storage medium
CN114706827A (en) Automatic generation method and device for transaction link topology
CN107171873A (en) A kind of method and apparatus of Message Processing
CN109034768A (en) Finance allot method, apparatus, computer equipment and storage medium
CN113504996A (en) Load balance detection method, device, equipment and storage medium
US9652630B2 (en) Enhanced view compliance tool
CN116051106B (en) Abnormal order processing method and device
CN107730380B (en) Method, system and server for processing joint account
CN110135190A (en) Data managing method, server and computer storage medium
CN114153583A (en) Task state management method, task management system and task calling system
CN104363111B (en) A kind of control method and equipment of third party system access
US9092258B2 (en) Task concurrency limiter
CN111353766A (en) Service process processing system and method of distributed service system
CN110909148A (en) Customer service assisting method and device

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