CN109166045A - A kind of transaction processing method, device and electronic equipment - Google Patents
A kind of transaction processing method, device and electronic equipment Download PDFInfo
- Publication number
- CN109166045A CN109166045A CN201811219833.1A CN201811219833A CN109166045A CN 109166045 A CN109166045 A CN 109166045A CN 201811219833 A CN201811219833 A CN 201811219833A CN 109166045 A CN109166045 A CN 109166045A
- Authority
- CN
- China
- Prior art keywords
- foreign exchange
- amount
- transaction
- purchase
- batch
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Abstract
The present invention provides a kind of transaction processing methods, device and electronic equipment, in the present invention after executing the foreign exchange purchase operation of every foreign exchange, deducted amount needed for calculating, and carry out operation of withholing, i.e. when the account to client is withholdd, it only deducts primary, total amount required for user directly can know more foreign exchanges of purchase according to deducted amount, it solves and needs to buy foreign currency cash simultaneously in the prior art, in foreign currency traveler's check or foreign currency bill at least two when, have more information of withholing, client, which also needs to summarize information of withholing, just can know that cost amount of RMB, problem complicated for operation.
Description
Technical field
The present invention relates to financial fields, more specifically, being related to a kind of transaction processing method, device and electronic equipment.
Background technique
With economic continuous development, more and more people like go abroad tourism or work etc., then go abroad it
Before, need bank to use RMB purchase foreign currency cash, foreign currency traveler's check or foreign currency bill etc..
Foreign currency cash, foreign currency traveler's check are bought in bank or when foreign currency bill, it is easy can only once to realize that single sells junction,
I.e. transaction can only buy one of foreign currency cash, foreign currency traveler's check and foreign currency bill every time, and have a letter of withholing
Breath has more letters of withholing when needing while buying at least two in foreign currency cash, foreign currency traveler's check or foreign currency bill
Breath, client, which also needs to summarize information of withholing, just can know that cost amount of RMB, complicated for operation.
Summary of the invention
In view of this, the present invention provides a kind of transaction processing method, device and electronic equipment, needs while buying to solve
In foreign currency cash, foreign currency traveler's check or foreign currency bill at least two when, have more information of withholing, client also needs to summarize button
Money information just can know that cost amount of RMB, problem complicated for operation.
In order to solve the above technical problems, present invention employs following technical solutions:
A kind of transaction processing method is applied to server, comprising:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes purchase needed for trading account and user
More foreign exchanges foreign exchange information;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount required for every foreign exchange of purchase are calculated simultaneously
Foreign exchange purchase operation is executed according to payment amount required for every foreign exchange;
According to payment amount and commission amount required for every foreign exchange of purchase, the required of the trading account is determined
Deducted amount, and carry out operation of withholing.
Preferably, the foreign exchange information according to every foreign exchange calculates payment amount, service charge required for every foreign exchange of purchase
The amount of money simultaneously executes foreign exchange purchase operation according to payment amount required for every foreign exchange, comprising:
According to the foreign exchange type and the purchase amount of money, the foreign exchange of acquisition and the remittance of RMB in the foreign exchange information of foreign exchange
Rate conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
Payment amount described in RMB account transfer from the trading account to the foreign exchange the foreign exchange account;
Obtain the service charge charge data for buying the foreign exchange of the foreign exchange type;
According to the service charge data, calculate the purchase purchase amount of money, the foreign exchange type foreign exchange needed for formality
Take the amount of money.
Preferably, payment amount and commission amount according to required for every foreign exchange of purchase, determines the transaction account
The required deducted amount at family, and carry out operation of withholing, comprising:
The commission amount for buying payment amount required for every foreign exchange and every foreign exchange is summarized, institute is obtained
State required deducted amount;
According to the required deducted amount, operation of withholing is carried out to the trading account.
Preferably, after the Transaction Information for obtaining batch transaction, further includes:
It generates the batch to trade corresponding batch serial number, and by the corresponding batch stateful transaction of the batch serial number
It is set as starting to process.
Preferably, further includes:
Obtain stateful transaction inquiry request;
The current procedures that server when receiving the stateful transaction inquiry request executes the batch transaction are obtained,
The corresponding batch stateful transaction of the current procedures is inquired, and exports the batch stateful transaction.
A kind of traction processing apparatus is applied to server, comprising:
Data obtaining module, for obtaining the Transaction Information of batch transaction;Wherein, the Transaction Information includes trading account
And the foreign exchange information for the more foreign exchanges bought needed for user;
First operation module calculates payment required for buying every foreign exchange for the foreign exchange information according to every foreign exchange
The amount of money, commission amount simultaneously execute foreign exchange purchase operation according to payment amount required for every foreign exchange;
Second operation module is determined for payment amount and commission amount according to required for every foreign exchange of purchase
The required deducted amount of the trading account, and carry out operation of withholing.
Preferably, first operation module includes:
First computational submodule, for according to foreign exchange foreign exchange information in foreign exchange type and purchase the amount of money, obtain
The exchange rate of the foreign exchange and RMB conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment
The amount of money;
It transfers accounts submodule, for payment amount described in the RMB account transfer from the trading account to the foreign exchange
The foreign exchange account;
Data acquisition submodule, for obtaining the service charge charge data for buying the foreign exchange of the foreign exchange type;
Second computational submodule, for calculating and buying the purchase amount of money, the foreign exchange class according to the service charge data
Commission amount needed for the foreign exchange of type.
Preferably, second operation module includes:
Collects submodule, for the commission amount of payment amount required for every foreign exchange and every foreign exchange will to be bought
Summarized, obtains the required deducted amount;
It withholds submodule, for carrying out operation of withholing to the trading account according to the required deducted amount.
Preferably, further includes:
Serial number processing module, for data obtaining module obtain batch transaction Transaction Information after, described in generation
The corresponding batch serial number of batch transaction, and the corresponding batch stateful transaction of the batch serial number is set as starting to process.
Preferably, further includes:
Request module, for obtaining stateful transaction inquiry request;
Enquiry module receives the server when stateful transaction inquiry request for obtaining and executes the batch friendship
Easy current procedures inquire the corresponding batch stateful transaction of the current procedures;
Message output module, for exporting the batch stateful transaction.
A kind of electronic equipment, comprising: memory and processor;
Wherein, the memory is for storing program;
Processor caller is simultaneously used for:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes purchase needed for trading account and user
More foreign exchanges foreign exchange information;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount required for every foreign exchange of purchase are calculated simultaneously
Foreign exchange purchase operation is executed according to payment amount required for every foreign exchange;
According to payment amount and commission amount required for every foreign exchange of purchase, the required of the trading account is determined
Deducted amount, and carry out operation of withholing.
Compared to the prior art, the invention has the following advantages:
The present invention provides a kind of transaction processing method, device and electronic equipment, every foreign exchange is being executed in the present invention
After foreign exchange purchase operation, deducted amount needed for calculating, and carry out operation of withholing, i.e., when the account to client is withholdd, only
It deducts once, total amount required for user directly can know more foreign exchanges of purchase according to deducted amount solves existing skill
When needing to buy at least two in foreign currency cash, foreign currency traveler's check or foreign currency bill in art simultaneously, more letters of withholing are had
Breath, client, which also needs to summarize information of withholing, just can know that cost amount of RMB, problem complicated for operation.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of method flow diagram of transaction processing method provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram of another transaction processing method provided in an embodiment of the present invention;
Fig. 3 is the method flow diagram of another transaction processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of traction processing apparatus provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of transaction processing methods, are applied to server, and server is the processing of backstage bank
Server where system, referring to Fig.1, transaction processing method may include:
S11, the Transaction Information for obtaining batch transaction;
Wherein, the Transaction Information includes the foreign exchange information for the more foreign exchanges bought needed for trading account and user.
Specifically, client goes bank counter to handle purchase foreign exchange, such as foreign currency cash, foreign currency traveler's check or foreign currency bill
Business when, need to inform that trading account of sales counter is bought, and which kind of foreign exchange bought, can be bought in the embodiment of the present invention
At least one foreign exchange, but at least two foreign exchanges of preferred purchase.
Which kind foreign exchange Receptionist buys in front end typing Transaction Details, i.e. which trading account, then in transaction batch
Trading account is recorded in secondary table, which kind foreign exchange of record purchase in transaction details table.
When Receptionist is after the typing Transaction Details of front end, Receptionist clicks transaction and initiates instruction, and background server is just
The Transaction Information of available batch transaction.
It should be noted that since client disposably buys a variety of foreign exchanges, so referred to as batch is traded.
Optionally, on the basis of the present embodiment, after the Transaction Information for obtaining batch transaction, can also include:
It generates the batch to trade corresponding batch serial number, and by the corresponding batch stateful transaction of the batch serial number
It is set as starting to process.
Specifically, the batch serial number of each batch transaction is different and unique, can inquire to obtain by the batch serial number
Batch transaction.
After generating batch serial number, returns to front end transaction and initiate successfully, and batch serial number can be sent to and be disappeared
Queue MQ queue is ceased, batch transaction is executed by the batch serial number in asynchronous monitoring MQ queue.According to batch stateful transaction
Difference execute different subsequent steps.
It is traded due to the batch and is just initiated, then batch stateful transaction is to start to process.
S12, according to the foreign exchange information of every foreign exchange, calculate payment amount required for every foreign exchange of purchase, service charge gold
Volume simultaneously executes foreign exchange purchase operation according to payment amount required for every foreign exchange;
Specifically, the foreign exchange information of foreign exchange may include foreign exchange type and purchase the amount of money, foreign exchange type can be sterling,
Dollar etc., the purchase amount of money is that user determines.
After foreign exchange type and the purchase amount of money determine, so that it may RMB required for each foreign exchange of purchase be calculated
The amount of money, i.e. payment amount, and then foreign exchange purchase operation is carried out according to amount of RMB, in addition it is also necessary to calculate service charge.
It should be noted that since the exchange rate of foreign exchange and RMB is real-time change, so calculating payment amount
Afterwards, with regard to carrying out foreign exchange purchase operation immediately, the payment amount as caused by Exchange Rate being avoided to change the case where.In the present embodiment
It needs to buy a variety of foreign exchanges, then needs to recycle progress foreign exchange purchase operation.
When having carried out foreign exchange purchase operation, the stateful transaction in transaction details table is updated, sterling, dollar, Europe are such as bought
First three kinds of foreign exchanges update the stateful transaction of sterling in transaction details table after having executed sterling purchase operation to be completed, when holding
After the perfect member purchase operation of row, the stateful transaction for updating dollar in transaction details table is to be completed, and has executed an Euro purchase operation
Afterwards, update transaction details table in Euro stateful transaction be completed.
After the completion of each foreign exchange purchase all, batch stateful transaction is updated, outer rear purchase is updated to and has operated
At.
After the completion of every kind of commission amount calculates, transaction details table and batch stateful transaction are also updated accordingly.
After the completion of each step executes, it is necessary to batch serial number be returned to MQ queue, will pass through batch serial number
Inquiry obtains batch stateful transaction, and then executes subsequent step.
S13, payment amount and commission amount according to required for every foreign exchange of purchase, determine the trading account
Required deducted amount, and carry out operation of withholing.
Optionally, on the basis of the present embodiment, step S13 may include:
1) commission amount for buying payment amount required for every foreign exchange and every foreign exchange is summarized, is obtained
Deducted amount needed for described;
Specifically, after the payment amount and commission amount of the purchase of every foreign exchange determine, by all payment amounts with
And commission amount is added, as required deducted amount.
2) according to the required deducted amount, operation of withholing is carried out to the trading account.
After required deducted amount determines, corresponding amount of RMB is marked from the trading account, and update and criticize
Secondary stateful transaction.
User can inquire deducted amount by Mobile banking, short massage notice etc., due to buying a variety of foreign exchanges, only carry out
It once withholds, so facilitating the user query overall consumption amount of money there is only record of once deducting money.
Optionally, on the basis of the embodiment of " generating the corresponding batch serial number of the batch transaction ", reference Fig. 2,
Further include:
S21, stateful transaction inquiry request is obtained;
Specifically, on-line transaction needs to return front end transaction results in real time, and preceding end communication is equipped with overtime control, when a certain
Sold in batch transaction converge detail amount it is big when, processing time of background system can lead to not more than the time-out time of preceding end communication
Transaction results are returned in real time, in order to avoid the problem of communication time-out, in the present embodiment, using front end active inquiry stateful transaction
Mode, specifically, Receptionist sends stateful transaction inquiry request by front end.
S22, acquisition when receiving the stateful transaction inquiry request server execute the current of the batch transaction
Step inquires the corresponding batch stateful transaction of the current procedures, and exports the batch stateful transaction.
Specifically, introduction has been carried out in the above content, stateful transaction and batch transaction shape in transaction details table
State real-time update, after receiving stateful transaction inquiry request, it is only necessary to get the transaction shape in newest transaction details table
State and batch stateful transaction, and front end is sent to by what inquiry obtained.
It should be noted that then front end need to need again when the batch stateful transaction that front end discovery receives interrupts
Transaction is initiated, and subsequent step is executed according to batch stateful transaction, is i.e. realization breakpoint brings up again function.
In addition, each step in the present embodiment uses asynchronous process mode.
In the present embodiment, after executing the foreign exchange purchase operation of every foreign exchange, deducted amount needed for calculating, and withhold
Operation is only deducted once that is, when the account to client is withholdd, and user directly can know that purchase is more according to deducted amount
Total amount required for foreign exchange, solves and needs to buy foreign currency cash, foreign currency traveler's check or foreign currency in the prior art simultaneously
In draft at least two when, have more information of withholing, client also needs to summarize information of withholing and just can know that and spend RMB gold
Volume, problem complicated for operation.
In addition, the embodiment of the present invention realizes that sell junction easily one borrows more loan modes by on-line mode, timeliness is high, meets
Client's checking requirement.
Third, after the embodiment of the present invention considers that preceding end communication system over time limit, transaction are initiated, basic handling process of the present invention
Using asynchronous process, front end transaction results are not returned in real time, it can be perfect by result queries module polls transaction results of buying foreign exchange
The integrality of overall flow.
4th, breakpoint is brought up again when mode of the present invention supports to occur abnormal transaction, is reduced the processing of service exception transactional operation, is protected
Demonstrate,prove transaction integrality.
Optionally, based on any of the above embodiments, may include: referring to Fig. 3, step S12
S31, according to foreign exchange foreign exchange information in foreign exchange type and purchase the amount of money, acquisition the foreign exchange and RMB
The exchange rate conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
Specifically, after foreign exchange type, the purchase amount of money, the exchange rate determine, so that it may the payment amount of needs be calculated.
For example, foreign exchange type is dollar, the purchase amount of money is 500, the exchange rate of RMB and dollar be 1 RMB=
0.1442 dollar, then the dollar for buying 500 needs the amount of money of RMB for 500/0.1442=3467.4 member.
Payment amount described in S32, the RMB account transfer from the trading account to the foreign exchange the foreign exchange account;
Specifically, in the trading account of each user of Bank of China include RMB BGL account and foreign exchange BGL account,
Still by taking above-mentioned example as an example, then needs for 3467.4 yuans to be transferred in dollar BGL account, then have in dollar BGL account
200 dollars.
S33, the service charge charge data for buying the foreign exchange of the foreign exchange type is obtained;
Specifically, service charge charge data is pre-generated, obtained herein,
The service charge charging standard of each foreign exchange is obtained according to transaction details table and calculates service charge.And more new lot is traded
Batch serial number is returned to MQ queue after the completion by state.
S34, according to the service charge data, calculate the purchase purchase amount of money, the foreign exchange type foreign exchange needed for
Commission amount.
Specifically, after service charge charging standard determines, so that it may calculate the foreign exchange of the purchase amount of money, the foreign exchange type
Required commission amount.
In the present embodiment, by inquiry foreign exchange and RMB the exchange rate, service charge charge mark calculate payment amount and
Service charge, and by RMB BGL account and foreign exchange BGL account transfer accounts complete all foreign exchanges to sell junction easy.
Optionally, on the basis of the embodiment of above-mentioned transaction processing method, another embodiment of the present invention provides one
Kind traction processing apparatus, is applied to server, referring to Fig. 4, may include:
Data obtaining module 101, for obtaining the Transaction Information of batch transaction;Wherein, the Transaction Information includes transaction
The foreign exchange information of account and the required more foreign exchanges bought of user;
First operation module 102 calculates branch required for buying every foreign exchange for the foreign exchange information according to every foreign exchange
It pays the amount of money, commission amount and executes foreign exchange purchase operation according to payment amount required for every foreign exchange;
Second operation module 103, for payment amount and commission amount according to required for every foreign exchange of purchase, really
The required deducted amount of the fixed trading account, and carry out operation of withholing.
Further, second operation module includes:
Collects submodule, for the commission amount of payment amount required for every foreign exchange and every foreign exchange will to be bought
Summarized, obtains the required deducted amount;
It withholds submodule, for carrying out operation of withholing to the trading account according to the required deducted amount.
Further, further includes:
Serial number processing module, for data obtaining module obtain batch transaction Transaction Information after, described in generation
The corresponding batch serial number of batch transaction, and the corresponding batch stateful transaction of the batch serial number is set as starting to process.
Further, further includes:
Request module, for obtaining stateful transaction inquiry request;
Enquiry module receives the server when stateful transaction inquiry request for obtaining and executes the batch friendship
Easy current procedures inquire the corresponding batch stateful transaction of the current procedures;
Message output module, for exporting the batch stateful transaction.
In the present embodiment, after executing the foreign exchange purchase operation of every foreign exchange, deducted amount needed for calculating, and withhold
Operation is only deducted once that is, when the account to client is withholdd, and user directly can know that purchase is more according to deducted amount
Total amount required for foreign exchange, solves and needs to buy foreign currency cash, foreign currency traveler's check or foreign currency in the prior art simultaneously
In draft at least two when, have more information of withholing, client also needs to summarize information of withholing and just can know that and spend RMB gold
Volume, problem complicated for operation.
It should be noted that the course of work of modules and submodule in the present embodiment, please refers to above-described embodiment
In respective description, details are not described herein.
Optionally, on the basis of the embodiment of any of the above-described traction processing apparatus, first operation module includes:
First computational submodule, for according to foreign exchange foreign exchange information in foreign exchange type and purchase the amount of money, obtain
The exchange rate of the foreign exchange and RMB conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment
The amount of money;
It transfers accounts submodule, for payment amount described in the RMB account transfer from the trading account to the foreign exchange
The foreign exchange account;
Data acquisition submodule, for obtaining the service charge charge data for buying the foreign exchange of the foreign exchange type;
Second computational submodule, for calculating and buying the purchase amount of money, the foreign exchange class according to the service charge data
Commission amount needed for the foreign exchange of type.
In the present embodiment, by inquiry foreign exchange and RMB the exchange rate, service charge charge mark calculate payment amount and
Service charge, and by RMB BGL account and foreign exchange BGL account transfer accounts complete all foreign exchanges to sell junction easy.
It should be noted that the course of work of modules and submodule in the present embodiment, please refers to above-described embodiment
In respective description, details are not described herein.
Optionally, on the basis of the embodiment of above-mentioned transaction processing method and device, another embodiment of the present invention is mentioned
A kind of electronic equipment has been supplied, may include: memory and processor;
Wherein, the memory is for storing program;
Processor caller is simultaneously used for:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes purchase needed for trading account and user
More foreign exchanges foreign exchange information;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount required for every foreign exchange of purchase are calculated simultaneously
Foreign exchange purchase operation is executed according to payment amount required for every foreign exchange;
According to payment amount and commission amount required for every foreign exchange of purchase, the required of the trading account is determined
Deducted amount, and carry out operation of withholing.
In the present embodiment, after executing the foreign exchange purchase operation of every foreign exchange, deducted amount needed for calculating, and withhold
Operation is only deducted once that is, when the account to client is withholdd, and user directly can know that purchase is more according to deducted amount
Total amount required for foreign exchange, solves and needs to buy foreign currency cash, foreign currency traveler's check or foreign currency in the prior art simultaneously
In draft at least two when, have more information of withholing, client also needs to summarize information of withholing and just can know that and spend RMB gold
Volume, problem complicated for operation.
Optionally, the embodiments of the present invention also provide a kind of traction processing apparatus, the traction processing apparatus includes place
Device and memory are managed, above- mentioned information obtain module, the first operation module and second operation module etc. and store as program unit
In memory, above procedure unit stored in memory is executed by processor to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, it needs while buying in foreign currency cash, foreign currency traveler's check or foreign currency bill extremely to work as by adjusting kernel parameter
When two kinds few, an only information of withholing.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The existing transaction processing method.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation
Transaction processing method described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor perform the steps of when executing program
A kind of transaction processing method is applied to server, comprising:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes purchase needed for trading account and user
More foreign exchanges foreign exchange information;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount required for every foreign exchange of purchase are calculated simultaneously
Foreign exchange purchase operation is executed according to payment amount required for every foreign exchange;
According to payment amount and commission amount required for every foreign exchange of purchase, the required of the trading account is determined
Deducted amount, and carry out operation of withholing.
Further, the foreign exchange information according to every foreign exchange calculates payment amount, service charge required for every foreign exchange of purchase
The amount of money simultaneously executes foreign exchange purchase operation according to payment amount required for every foreign exchange, comprising:
According to the foreign exchange type and the purchase amount of money, the foreign exchange of acquisition and the remittance of RMB in the foreign exchange information of foreign exchange
Rate conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
Payment amount described in RMB account transfer from the trading account to the foreign exchange the foreign exchange account;
Obtain the service charge charge data for buying the foreign exchange of the foreign exchange type;
According to the service charge data, calculate the purchase purchase amount of money, the foreign exchange type foreign exchange needed for formality
Take the amount of money.
Further, payment amount and commission amount according to required for every foreign exchange of purchase, determines the transaction account
The required deducted amount at family, and carry out operation of withholing, comprising:
The commission amount for buying payment amount required for every foreign exchange and every foreign exchange is summarized, institute is obtained
State required deducted amount;
According to the required deducted amount, operation of withholing is carried out to the trading account.
Further, after the Transaction Information for obtaining batch transaction, further includes:
It generates the batch to trade corresponding batch serial number, and by the corresponding batch stateful transaction of the batch serial number
It is set as starting to process.
Further, further includes:
Obtain stateful transaction inquiry request;
The current procedures that server when receiving the stateful transaction inquiry request executes the batch transaction are obtained,
The corresponding batch stateful transaction of the current procedures is inquired, and exports the batch stateful transaction.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step:
A kind of transaction processing method is applied to server, comprising:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes purchase needed for trading account and user
More foreign exchanges foreign exchange information;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount required for every foreign exchange of purchase are calculated simultaneously
Foreign exchange purchase operation is executed according to payment amount required for every foreign exchange;
According to payment amount and commission amount required for every foreign exchange of purchase, the required of the trading account is determined
Deducted amount, and carry out operation of withholing.
Further, the foreign exchange information according to every foreign exchange calculates payment amount, service charge required for every foreign exchange of purchase
The amount of money simultaneously executes foreign exchange purchase operation according to payment amount required for every foreign exchange, comprising:
According to the foreign exchange type and the purchase amount of money, the foreign exchange of acquisition and the remittance of RMB in the foreign exchange information of foreign exchange
Rate conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
Payment amount described in RMB account transfer from the trading account to the foreign exchange the foreign exchange account;
Obtain the service charge charge data for buying the foreign exchange of the foreign exchange type;
According to the service charge data, calculate the purchase purchase amount of money, the foreign exchange type foreign exchange needed for formality
Take the amount of money.
Further, payment amount and commission amount according to required for every foreign exchange of purchase, determines the transaction account
The required deducted amount at family, and carry out operation of withholing, comprising:
The commission amount for buying payment amount required for every foreign exchange and every foreign exchange is summarized, institute is obtained
State required deducted amount;
According to the required deducted amount, operation of withholing is carried out to the trading account.
Further, after the Transaction Information for obtaining batch transaction, further includes:
It generates the batch to trade corresponding batch serial number, and by the corresponding batch stateful transaction of the batch serial number
It is set as starting to process.
Further, further includes:
Obtain stateful transaction inquiry request;
The current procedures that server when receiving the stateful transaction inquiry request executes the batch transaction are obtained,
The corresponding batch stateful transaction of the current procedures is inquired, and exports the batch stateful transaction.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (11)
1. a kind of transaction processing method, which is characterized in that be applied to server, comprising:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes the more of purchase needed for trading account and user
The foreign exchange information of foreign exchange;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount and foundation required for every foreign exchange of purchase are calculated
Payment amount required for every foreign exchange executes foreign exchange purchase operation;
According to payment amount and commission amount required for every foreign exchange of purchase, determine that the required of the trading account is withholdd
The amount of money, and carry out operation of withholing.
2. transaction processing method according to claim 1, which is characterized in that according to the foreign exchange information of every foreign exchange, calculate
It buys payment amount required for every foreign exchange, commission amount and executes foreign exchange according to payment amount required for every foreign exchange
Purchase operation, comprising:
The exchange rate according to foreign exchange type and the purchase amount of money, the foreign exchange of acquisition and RMB in the foreign exchange information of foreign exchange is rolled over
Calculate, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
Payment amount described in RMB account transfer from the trading account to the foreign exchange the foreign exchange account;
Obtain the service charge charge data for buying the foreign exchange of the foreign exchange type;
According to the service charge data, calculate the purchase purchase amount of money, the foreign exchange type foreign exchange needed for service charge gold
Volume.
3. transaction processing method according to claim 1, which is characterized in that paid according to required for every foreign exchange of purchase
The amount of money and commission amount, determine the required deducted amount of the trading account, and carry out operation of withholing, comprising:
The commission amount for buying payment amount required for every foreign exchange and every foreign exchange is summarized, the institute is obtained
Need deducted amount;
According to the required deducted amount, operation of withholing is carried out to the trading account.
4. transaction processing method according to claim 1, which is characterized in that after the Transaction Information for obtaining batch transaction,
Further include:
The corresponding batch serial number of the batch transaction is generated, and the corresponding batch stateful transaction of the batch serial number is arranged
To start to process.
5. transaction processing method according to claim 4, which is characterized in that further include:
Obtain stateful transaction inquiry request;
Obtain the current procedures that server when receiving the stateful transaction inquiry request executes the batch transaction, inquiry
The corresponding batch stateful transaction of the current procedures, and export the batch stateful transaction.
6. a kind of traction processing apparatus, which is characterized in that be applied to server, comprising:
Data obtaining module, for obtaining the Transaction Information of batch transaction;Wherein, the Transaction Information include trading account and
The foreign exchange information for the more foreign exchanges bought needed for user;
First operation module, for the foreign exchange information according to every foreign exchange, calculate payment amount required for every foreign exchange of purchase,
Commission amount simultaneously executes foreign exchange purchase operation according to payment amount required for every foreign exchange;
Second operation module, for according to purchase every foreign exchange required for payment amount and commission amount, determine described in
The required deducted amount of trading account, and carry out operation of withholing.
7. traction processing apparatus according to claim 6, which is characterized in that first operation module includes:
First computational submodule for the foreign exchange type in the foreign exchange information of foundation foreign exchange and is bought described in the amount of money, acquisition
The exchange rate of foreign exchange and RMB conversion, calculate purchase it is described purchase the amount of money, the foreign exchange type foreign exchange needed for payment amount;
It transfers accounts submodule, for payment amount described in the RMB account transfer from the trading account to the foreign exchange of the foreign exchange
Account;
Data acquisition submodule, for obtaining the service charge charge data for buying the foreign exchange of the foreign exchange type;
Second computational submodule, for according to the service charge data, calculating the purchase purchase amount of money, the foreign exchange type
Commission amount needed for foreign exchange.
8. traction processing apparatus according to claim 6, which is characterized in that second operation module includes:
Collects submodule, the commission amount for that will buy payment amount required for every foreign exchange and every foreign exchange carry out
Summarize, obtains the required deducted amount;
It withholds submodule, for carrying out operation of withholing to the trading account according to the required deducted amount.
9. traction processing apparatus according to claim 6, which is characterized in that further include:
Serial number processing module, for generating the batch after the Transaction Information that data obtaining module obtains batch transaction
It trades corresponding batch serial number, and the corresponding batch stateful transaction of the batch serial number is set as starting to process.
10. traction processing apparatus according to claim 9, which is characterized in that further include:
Request module, for obtaining stateful transaction inquiry request;
Enquiry module, the server executes the batch transaction when receiving the stateful transaction inquiry request for obtaining
Current procedures inquire the corresponding batch stateful transaction of the current procedures;
Message output module, for exporting the batch stateful transaction.
11. a kind of electronic equipment characterized by comprising memory and processor;
Wherein, the memory is for storing program;
Processor caller is simultaneously used for:
Obtain the Transaction Information of batch transaction;Wherein, the Transaction Information includes the more of purchase needed for trading account and user
The foreign exchange information of foreign exchange;
According to the foreign exchange information of every foreign exchange, payment amount, commission amount and foundation required for every foreign exchange of purchase are calculated
Payment amount required for every foreign exchange executes foreign exchange purchase operation;
According to payment amount and commission amount required for every foreign exchange of purchase, determine that the required of the trading account is withholdd
The amount of money, and carry out operation of withholing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219833.1A CN109166045A (en) | 2018-10-19 | 2018-10-19 | A kind of transaction processing method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811219833.1A CN109166045A (en) | 2018-10-19 | 2018-10-19 | A kind of transaction processing method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109166045A true CN109166045A (en) | 2019-01-08 |
Family
ID=64878417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811219833.1A Pending CN109166045A (en) | 2018-10-19 | 2018-10-19 | A kind of transaction processing method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109166045A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111353898A (en) * | 2020-03-31 | 2020-06-30 | 中国建设银行股份有限公司 | Product data processing method and device |
CN111445248A (en) * | 2020-04-13 | 2020-07-24 | 中国银行股份有限公司 | Foreign exchange transaction processing method, device and system and storage medium |
CN111445327A (en) * | 2020-03-16 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Data resource processing method and device, computer storage medium and electronic equipment |
WO2022127675A1 (en) * | 2020-12-17 | 2022-06-23 | 网联清算有限公司 | Account limit data processing method and apparatus, and electronic device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833138A (en) * | 2017-11-06 | 2018-03-23 | 中国银行股份有限公司 | A kind of processing method and processing device of the Foreign Exchange Settlement and Sale transaction based on net amount netting |
-
2018
- 2018-10-19 CN CN201811219833.1A patent/CN109166045A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107833138A (en) * | 2017-11-06 | 2018-03-23 | 中国银行股份有限公司 | A kind of processing method and processing device of the Foreign Exchange Settlement and Sale transaction based on net amount netting |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111445327A (en) * | 2020-03-16 | 2020-07-24 | 腾讯科技(深圳)有限公司 | Data resource processing method and device, computer storage medium and electronic equipment |
US11941614B2 (en) | 2020-03-16 | 2024-03-26 | Tencent Technology (Shenzhen) Company Limited | Data resource processing method and apparatus, computer storage medium, and electronic device |
CN111353898A (en) * | 2020-03-31 | 2020-06-30 | 中国建设银行股份有限公司 | Product data processing method and device |
CN111445248A (en) * | 2020-04-13 | 2020-07-24 | 中国银行股份有限公司 | Foreign exchange transaction processing method, device and system and storage medium |
CN111445248B (en) * | 2020-04-13 | 2023-07-25 | 中国银行股份有限公司 | Foreign exchange transaction processing method, device, system and storage medium |
WO2022127675A1 (en) * | 2020-12-17 | 2022-06-23 | 网联清算有限公司 | Account limit data processing method and apparatus, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109166045A (en) | A kind of transaction processing method, device and electronic equipment | |
CN109087190A (en) | A kind of financing loan method and apparatus | |
JP6412040B2 (en) | Payment processing apparatus, method, and computer program | |
JP5919375B2 (en) | Payment for non-settled transactions | |
CN103020816A (en) | Online virtual currency third-party credit method and data processing system thereof | |
CN106779562A (en) | It is a kind of that purchasing system and method are acted on behalf of based on transaction platform | |
CN109961365A (en) | A kind of receipt on account record processing method and system based on block chain intelligence contract | |
CA2806725C (en) | Integrating payment aggregators with e-commerce platform | |
CN110473107A (en) | Transaction data processing method, device, equipment and storage medium | |
US20190236593A1 (en) | Cryptocurrency conversion | |
TWI705401B (en) | Multi-currency refund service processing method and device | |
JP2020161105A (en) | Encryption currency refund automatic payment method utilizing block chain technology | |
CN108985840A (en) | A kind of block chain electric business price protection is supported and debt-credit payment system and method | |
JP2019070931A (en) | Banking system, method and program to be executed by banking system | |
KR101695229B1 (en) | Rent trading method for FX Margin Trading | |
JP2018137005A (en) | Settlement system, settlement method, and settlement program | |
CN110659992A (en) | Heavy metal transaction data processing method and device based on block chain | |
CN102855557A (en) | Network transaction payment processing system and method | |
CN101996382A (en) | System and method for solving hot account of bank agent product transaction | |
US20190122297A1 (en) | Method for Hybrid currency and Volatility risk hedged currency | |
KR20010088377A (en) | System and method for managing a payment relation between the enterprises | |
US20220180436A1 (en) | Resource conversion data processing method and apparatus, computer device, and storage medium | |
CN109447788A (en) | Loan method, equipment and storage medium | |
KR20170052402A (en) | Method for supporting currency exchange based on an exchange rate, server and user terminal using the same | |
JP2003030429A (en) | Electronic settlement system and control program therefor |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190108 |
|
RJ01 | Rejection of invention patent application after publication |