Exchange rate enquiring component device, server-side and method
Technical field
This application involves technical field of data processing, in particular to a kind of exchange rate enquiring component device, server-side and method.
Background technique
Existing exchange rate query scheme is to be looked into according to own service scene needs to the exchange rate is provided using system by each exchange rate
The system for asking service, referred to as exchange center or exchange rate query service end initiate exchange rate inquiry request, exchange rate query service end according to
It returns to the exchange rate to need using the practical application scene of system, returns to exchange rate query result to each exchange rate and use system, such as Fig. 1 institute
Show.
The exchange rate is the core data that each exchange rate uses system to be unable to do without, these exchange rate require to look by the exchange rate using system
The exchange rate value for asking server-side to inquire under scheduled date, condition and scene.Meanwhile operation system in order to avoid continually with remittance
The interaction of rate query service end, and have the exchange rate available when exchange rate query service end is unavailable, meeting is established in local system and is cached
Mechanism obtains new exchange rate data value in such a way that timing updates.Each exchange rate is directed to the industry of own system using system
There is repeated work in terms of exploitation and maintenance, cause in scene of being engaged in the corresponding caching exchange rate of a set of own service scene
Exchange rate inquiry is at high cost, while it is inconvenient to also result in maintenance.
Summary of the invention
In a first aspect, the exchange rate enquiring component device is applied to this application provides a kind of exchange rate enquiring component device
The exchange rate uses system, to reduce exchange rate inquiry cost, reduces the exchange rate and inquires cost, convenient for safeguarding, which includes:
First receiving module, the exchange rate inquiry request parameter to be matched sent for receiving the exchange rate using system;
Determining module, for being asked according to the exchange rate inquiry request parameter to be matched and the inquiry of the pre-stored exchange rate
The relationship for seeking the exchange rate under parameter and different business scene, determines that exchange rate inquiry request parameter to be matched corresponds to the remittance under business scenario
Rate;
First sending module is sent for the exchange rate inquiry request parameter to be matched to be corresponded to the exchange rate under business scenario
System is used to the exchange rate.
Second aspect, present invention also provides a kind of exchange rate query service ends, to reduce exchange rate inquiry cost, convenient for dimension
Shield, the server-side include:
The exchange rate updates request receiving module, updates inquiry request for receiving the exchange rate;
Module is obtained, for updating inquiry request according to the exchange rate, obtains exchange rate query result;The exchange rate query result packet
It includes:The update result of the relationship of the exchange rate under exchange rate inquiry request parameter and different business scene;
Exchange rate query result sending module, for issuing the exchange rate query result.
The third aspect, present invention also provides a kind of exchange rate querying method, the method is filled applied to exchange rate enquiring component
It sets, to reduce exchange rate inquiry cost, convenient for safeguarding, this method includes:
Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter with it is not of the same trade or business
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario under scene of being engaged in;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
System.
Fourth aspect, present invention also provides a kind of exchange rate querying method, the method is applied to exchange rate query service end,
To reduce exchange rate inquiry cost, convenient for safeguarding, this method includes:
It receives the exchange rate and updates inquiry request;
Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The query result includes:Exchange rate inquiry request ginseng
Several update results with the relationship of the exchange rate under different business scene;
The exchange rate query result is issued.
5th aspect, present invention also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out each instruction
Processor and storage equipment, the storage equipment are stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter with it is not of the same trade or business
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario under scene of being engaged in;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
System.
6th aspect, present invention also provides a kind of computer readable storage medium, the computer readable storage medium
It is stored with computer program, the computer program is for executing:
Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter with it is not of the same trade or business
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario under scene of being engaged in;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
System.
7th aspect, present invention also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out each instruction
Processor and storage equipment, the storage equipment are stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
Timing issues the exchange rate and updates inquiry request;
It receives and the exchange rate query result that inquiry request returns is updated according to the exchange rate;
According to exchange rate query result, the relationship of the exchange rate under the exchange rate inquiry request parameter and different business scene is updated.
Eighth aspect, it is described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium
Storage media is stored with computer program, and the computer program is for executing:
Timing issues the exchange rate and updates inquiry request;
It receives and the exchange rate query result that inquiry request returns is updated according to the exchange rate;
According to exchange rate query result, the relationship of the exchange rate under the exchange rate inquiry request parameter and different business scene is updated.
9th aspect, present invention also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out each instruction
Processor and storage equipment, the storage equipment are stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
It receives the exchange rate and updates inquiry request;
Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The exchange rate query result includes:Exchange rate inquiry is asked
Seek the update result of the relationship of the exchange rate under parameter and different business scene;
The exchange rate query result is issued.
Tenth aspect, present invention also provides a kind of computer readable storage medium, the computer readable storage medium
It is stored with computer program, the computer program is for executing:
It receives the exchange rate and updates inquiry request;
Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The exchange rate query result includes:Exchange rate inquiry is asked
Seek the update result of the relationship of the exchange rate under parameter and different business scene;
The exchange rate query result is issued.
Compared with each exchange rate in the prior art is required to obtain the scheme of the exchange rate according to own service scene using system
Compared with, in the embodiment of the present application each exchange rate using system can by apply the exchange rate enquiring component device, it is only necessary to send to
With exchange rate inquiry request parameter to exchange rate enquiring component device, itself industry can be matched by the exchange rate enquiring component device
The exchange rate under scene of being engaged in:The exchange rate inquiry request parameter to be matched that the exchange rate is sent using system is received, is inquired according to the exchange rate to be matched
The relationship of the exchange rate, determines to be matched under required parameter and pre-stored exchange rate inquiry request parameter and different business scene
Exchange rate inquiry request parameter corresponds to the exchange rate under business scenario, without duplicate code development work, reduce the exchange rate inquiry at
This, maintains easily.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, not
Constitute the restriction to the application.In the accompanying drawings:
Fig. 1 is the schematic illustration of exchange rate query scheme in the prior art;
Fig. 2 is the system architecture schematic diagram of exchange rate query scheme in the embodiment of the present application
Fig. 3 is the schematic illustration of exchange rate query scheme in the embodiment of the present application;
Fig. 4 is the structural schematic diagram of exchange rate enquiring component device in the embodiment of the present application;
Fig. 5 is the structural schematic diagram at exchange rate query service end in the embodiment of the present application;
Fig. 6 is that the exchange rate uses the schematic diagram of the exchange rate querying method of system end in the embodiment of the present application;
Fig. 7 is the schematic diagram of the exchange rate querying method at exchange rate query service end in the embodiment of the present application.
Specific embodiment
It is right below with reference to embodiment and attached drawing for the purposes, technical schemes and advantages of the application are more clearly understood
The application is described in further details.Here, the exemplary embodiment and its explanation of the application be for explaining the application, but simultaneously
Not as the restriction to the application.
Inventor's discovery:As shown in Figure 1, in traditional exchange rate query scheme, exchange rate service provider system (exchange center or remittance
Rate query service end), different exchange rate query services can be exposed, by operation system (exchange rate uses system) according to actual use industry
Scene of being engaged in is initiated to call, and needs operation system oneself to design buffering scheme, and perceive rate product (under different business scene
The exchange rate) system.Each operation system combines itself practical in traditional exchange rate inquiry solution, realizes a set of local exchange rate caching
Scheme.When caching timed task scheduling, the rate product that operation system direct basis is arranged in advance is specified to exchange center
Exchange rate query interface initiates inquiry request, and exchange center transmits the request to original exchange quotation channel, and result is directly returned
Back to operation system, operation system oneself foundation needs to format the exchange rate, and saves it in caching, exists in terms of exploitation
Many repeated works, so that exchange rate inquiry is at high cost, while later maintenance and update are also inconvenient.
Accordingly, it is considered to arrive above-mentioned technical problem, this application provides a kind of general exchange rate enquiring component device, such as Fig. 2 and
Shown in Fig. 3.The device provides the exchange rate caching capabilities of standard, exchange rate query capability and customize exchange rate fan-out capability.It is logical
The exchange rate caching capabilities of standard are crossed, each operation system need to only integrate the component, the function of caching has just been automatically integrating, without repeating
Code development work;By the exchange rate query capability of standard, all general same exchange rate querying methods of operation system are only needed
The currency type of incoming demand converges, product code and event code, the configuration that assembly apparatus can be prior according to exchange center, automatic decision
Rate product and dealing direction, return to business user, avoid each operation system oneself decision, perception and maintenance exchange and produce
The concept of product reduces the workload that the exchange rate uses system;By the exchange rate fan-out capability of customization, operation system is being initiated to inquire
When, it can inform that desired exchange rate format, such as decimal point retain digit and rounding method etc., assembly apparatus is returning to the exchange rate
When, it will do it unified exchange rate format analysis processing.In addition, assembly apparatus can also if there is the exchange rate used expired scene
Automatic printing alarm log, there may be the expired risks of the exchange rate for system for prompting business.
In figure 2 and figure 3, exchange rate user is the exchange rate using system, and exchange rate server-side is exchange rate query service end
Or exchange center, exchange rate component are exchange rate enquiring component device, operation system is the exchange rate using system, and exchange center is
Exchange rate query service end.
It describes in detail below to the exchange rate query scheme as follows.
Fig. 4 is the structural schematic diagram of exchange rate enquiring component device in the embodiment of the present application, as shown in figure 4, the assembly apparatus
Including:
First receiving module 11, the exchange rate inquiry request parameter to be matched sent for receiving the exchange rate using system;
Determining module 12, for being inquired according to the exchange rate inquiry request parameter to be matched and the pre-stored exchange rate
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds under business scenario under required parameter and different business scene
The exchange rate;
First sending module 13, for the exchange rate inquiry request parameter to be matched to be corresponded to the hair of the exchange rate under business scenario
It send to the exchange rate and uses system.
In the application implementation when the work of exchange rate enquiring component device, the first receiving module 11 is received the exchange rate and is sent using system
Exchange rate inquiry request parameter to be matched, determining module 12 is according to exchange rate inquiry request parameter to be matched and pre-stored
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to business under exchange rate inquiry request parameter and different business scene
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and sent out by the exchange rate under scene, the first sending module 13
It send to the exchange rate using system, is required to be obtained according to own service scene using system with each exchange rate in the prior art and converge
The scheme of rate compares, in the embodiment of the present application each exchange rate using system can by apply the exchange rate enquiring component device,
Only need to send exchange rate inquiry request parameter to be matched to exchange rate enquiring component device, can by the exchange rate enquiring component device come
The exchange rate under own service scene is matched, is worked without duplicate code development, exchange rate inquiry cost is reduced, maintains easily.
The embodiment of the present application mainly introduce using be stored in advance the exchange rate inquiry request parameter of (timing cache) with it is not of the same trade or business
The relationship of the exchange rate matches the exchange rate under business scene, naturally it is also possible to which the individual demand that system is used by the exchange rate passes through the exchange rate
Enquiring component device and exchange rate query service end, which interact, obtains the real-time exchange rate.
When it is implemented, above-mentioned inquire according to the exchange rate inquiry request parameter to be matched and the pre-stored exchange rate
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds under business scenario under required parameter and different business scene
The exchange rate is the rate product decision realized in Fig. 2, and rate product refers under different business scene in the embodiment of the present application
The exchange rate.
When it is implemented, above-mentioned exchange rate inquiry request parameter may include:The currency type of demand is to, product code and event code.
The relationship of the exchange rate under (caching) exchange rate inquiry request parameter and different business scene is stored in advance in exchange rate enquiring component device,
The relationship can be database table as shown in table 1 below, naturally it is also possible to be the relationship of other forms, such as chart function closes
It is formula etc..
As shown in table 1 below, the exchange rate can be cashier system using system, and corresponding business scenario is cash register business field
Scape, such as at 100 dollars of consumption abroad, but the exchange rate of user is specifically wanted using being RMB in system such as payment system
The user how much RMB brushed, it is necessary to which the exchange rate uses system by the corresponding exchange rate inquiry request parameter of the cash register business scenario
(currency type pair:RMB-dollar, product code:1000, event code:1001) it is sent to exchange rate enquiring component device.Exchange rate inquiry group
First receiving module 11 of part device receives product code, event code, currency type pair, determining module 12 according to the product code, event code,
For currency type to matching treatment is carried out in such as relationship of table 1, the exchange rate value matched is 6.7, and the first sending module 13 is by the exchange rate
Value:6.7 return to cashier system.
As another example, as shown in table 1 below, the exchange rate can be risk control system, corresponding business scenario using system
It is risk control business scenario, such as controls in consumption abroad dollar amount no more than 50,000 dollars, but user uses the exchange rate
Using being RMB in system such as payment system, specifically amount is limited with the amount of how much RMB, it is necessary to the remittance
Risk control business scenario is corresponded to exchange rate inquiry request parameter (currency type pair using system by rate:RMB-dollar, product code:
22000, event code:2001) it is sent to exchange rate enquiring component device.First receiving module 11 of exchange rate enquiring component device receives
Product code, event code, currency type pair, determining module 12 according to the product code, event code, currency type in such as relationship of table 1 into
Row matching treatment, the exchange rate value matched are 6.5, and the first sending module 13 is by exchange rate value:6.5 return to cashier system.
As another example, as shown in table 1 below, the exchange rate can be risk control system, corresponding business scenario using system
It is risk control business scenario, such as controls in consumption abroad dollar amount no more than 50,000 dollars, but user uses the exchange rate
Using being RMB in system such as Alipay system, specifically amount is limited with the amount of how much RMB, it is necessary to
The operation system is corresponded to exchange rate inquiry request parameter using system and is sent to exchange rate inquiry group in the embodiment of the present application by the exchange rate
Part device.The mark for representing the cashier system is properly termed as product code, such as 1000, and multiple events have been corresponded under the product code
Code, such as 1002, the first receiving module 11 of exchange rate enquiring component device receives product code, event code, currency type pair, determining module
12 according to the product code, event code, currency type be 6.5 to the exchange rate value matched, and the first sending module 13 is by exchange rate value:6.5 returning
Return risk control system.
Table 1
When it is implemented, multiple event codes can be corresponded to below product code, such as the corresponding face-to-face receipts of product code 3000
Silver-colored business scenario, corresponding event code 3001 is face-to-face reimbursement, such as moves back 100 dollars, but is in the payment system of user
RMB will specifically brush the user how much RMB, and the exchange rate is needed to send exchange rate inquiry request parameter (product code using system:
3000, event code:3001) to exchange rate enquiring component device, the first receiving module 11 of exchange rate enquiring component device receives product
Code, event code, currency type pair, determining module 12 are face-to-face to the business scenario matched according to the product code, event code, currency type
Reimbursement, the corresponding exchange rate value of the business scenario are 6.5, and the first sending module 13 is by exchange rate value:6.5 return to face-to-face cash register system
System.(the face-to-face payment scene in such as the following table 2) is inquired if it is face-to-face giving quotation, is detailed in the above-mentioned face-to-face reimbursement exchange rate
Inquiry, is not repeating.
Table 2
As shown in Fig. 2, above-mentioned exchange rate inquiry request parameter can also include:It expands parameter (spreading parameter), such as specified
Date, the exchange rate inquire spot etc., different business scenarios can also be determined according to these parameters, and then match different remittances
Rate.
In addition, inventor also found:As the business scenario and the exchange rate of the demand exchange rate are increased using system, each business
It when scene accesses, requires the exchange rate and is interacted with exchange rate query service end using system, the calling which interface, query argument are with what
Kind mode uploads biography, the exchange rate and how this uses.Therefore, each exchange rate using system all in accordance with own service scene demand,
There is itself a set of caching mechanism, by calling different interfaces, different modes interacts to cache with exchange rate query service end
The exchange rate, the exchange rate use system heavy workload, and inquiry and maintenance cost are high.
Accordingly, it is considered to arrive above-mentioned technical problem, inventors herein proposes and use system integration exchange rate inquiry group in the exchange rate as follows
Part device carries out the scheme of exchange rate caching:
In one embodiment, above-mentioned exchange rate enquiring component device can also include:
Second sending module updates inquiry request for periodically issuing the exchange rate;
Second receiving module updates the exchange rate query result that inquiry request returns according to the exchange rate for receiving;
Update module, for updating the exchange rate inquiry request parameter and different business according to the exchange rate query result
The relationship of the exchange rate under scene.
When it is implemented, exchange rate enquiring component device itself using timed task scheduling update by the way of, to exchange center
(exchange rate query service end) initiates the exchange rate and updates inquiry request, can be to the original quote canal of the exchange rate after exchange center receives request
Exchange rate inquiry request is initiated, and exchange rate query result is returned into exchange rate enquiring component device in road.Exchange rate enquiring component device is received
To after exchange rate query result, by exchange rate query result and the exchange rate enquiring component device caching (exchange rate inquiry request parameter with it is different
The relationship of the exchange rate under business scenario) in data compare, and be updated operation.By the exchange rate caching capabilities of standard,
Each operation system need to only integrate the component, just be automatically integrating the function of caching, work, reduce without duplicate code development
The cost of exchange rate inquiry.
In addition, due to including that all exchange rate are corresponding using the different business scene in system in exchange rate enquiring component device
The exchange rate, the exchange rate under different business scene can be matched according to exchange rate inquiry request parameter, therefore, the exchange rate is passed through using system
The integrated exchange rate enquiring component device is timed the caching mechanism for obtaining and updating the exchange rate, it is not necessary that such as the exchange rate makes in the prior art
Go perception which interface is called to interact with exchange rate query service end with system itself, each exchange rate is inquired using system by the exchange rate
Assembly apparatus is interacted with exchange rate query service end can be used same interface, and then realizes and update exchange rate enquiring component device
The relationship of the exchange rate under middle exchange rate inquiry request parameter and different business scene reduces the workload that the exchange rate uses system, simultaneously
Also reduce exchange rate inquiry and maintenance cost.
To sum up, standard (general) exchange rate component (exchange rate enquiring component device) provided in this programme, each business are provided
System (exchange rate uses system) no longer needs to be implemented separately exchange rate caching, it is only necessary to integrated exchange rate enquiring component device, group
The caching of standard is realized in part.
In one embodiment, the exchange rate inquiry request parameter may include:Exchange rate output format customized demand parameter;
The exchange rate enquiring component device can also include:
Exchange rate format analysis processing module, for exchange rate inquiry request parameter to be matched to be corresponded to the exchange rate format under business scenario
It is processed into the corresponding exchange rate format of the exchange rate output format customized demand parameter;
First sending module is specifically used for according to the corresponding exchange rate lattice of the exchange rate output format customized demand parameter
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate using system by formula.
When it is implemented, operation system can inform expectation when initiating inquiry by the exchange rate fan-out capability customized
Exchange rate format, such as decimal point retain digit and rounding method etc., exchange rate enquiring component device when returning to the exchange rate, understand into
The unified exchange rate format analysis processing of row realizes the exchange rate format output of customization, improves the flexibility of exchange rate inquiry.The implementation
Example realizes customization return, individual character output in Fig. 2.
In one embodiment, above-mentioned exchange rate enquiring component device can also include:
Alarm module, for detect be sent to the exchange rate using system the exchange rate there is a situation where it is expired
When, it sends a warning and uses system to the exchange rate.
When it is implemented, assembly apparatus can also automatic printing alarm day if there is the exchange rate used expired scene
Will, there may be the expired risks of the exchange rate for system for prompting business, improve the user experience of exchange rate inquiry.The embodiment realizes figure
Real failure management in 2.
Based on the same inventive concept, a kind of exchange rate query service end is additionally provided in the embodiment of the present application, such as following reality
Apply example.Since the principle that the exchange rate query service end solves the problems, such as is similar to exchange rate enquiring component device, exchange rate inquiry clothes
The implementation for implementing to refer to above-mentioned exchange rate enquiring component device at business end, overlaps will not be repeated.It is used below, art
The combination of the software and/or hardware of predetermined function may be implemented in language " module " or " module ".Although described by following embodiment
Device preferably realize that but the combined realization of hardware or software and hardware is also that may and be contemplated with software
's.
Fig. 5 is the structural schematic diagram at exchange rate query service end in the embodiment of the present application, as shown in figure 5, the server-side includes:
The exchange rate updates request receiving module 21, updates inquiry request for receiving the exchange rate;
Module 22 is obtained, for updating inquiry request according to the exchange rate, obtains exchange rate query result;The exchange rate query result
Including:The update result of the relationship of the exchange rate under exchange rate inquiry request parameter and different business scene;
Exchange rate query result sending module 23, for issuing the exchange rate query result.
In one embodiment, the acquisition module is specifically used for:
Obtain the business scenario in exchange rate update inquiry request;
It obtains multiple exchange quotations under the business scenario and the exchange rate that mechanism provides is provided;
The optimal exchange rate determined under the business scenario in the exchange rate that mechanism provides is provided from multiple exchange quotations;
The optimal exchange rate is sent to exchange rate query result as the exchange rate query result of the business scenario and sends mould
Block.
When it is implemented, the function of obtaining module is to realize the source decision in Fig. 2 and step 2.1 judgement in Fig. 3
The original provider of the exchange rate.It exchange rate query service end can be according to the relationship for being pre-configured with business scenario and the exchange rate or artificial dynamic
The exchange rate which exchange quotation mechanism provides is returned to exchange rate enquiring component device, improves the exchange rate and look by configuration input, decision
The flexibility of inquiry.Such as:The exchange rate of USD/CNY, it is 6.0 that exchange quotation, which provides the exchange quotation that mechanism A is provided, and exchange quotation mentions
It is 6.1 for the mechanism B exchange quotation provided, under the business scenario for selling U.S. dollar, mechanism A is more excellent than the quotation of mechanism B, then
The exchange rate that exchange quotation provides mechanism B is just returned into exchange rate enquiring component device as exchange rate query result.In another example:In reality
Border work in detect exchange quotation provide mechanism B provide the exchange rate be not it is very stable, when and 5.9, when and 6.1, then this
When exchange quotation can be provided again the exchange quotation that mechanism A is provided be 6.0 as exchange rate query results return to the exchange rate inquiry
Assembly apparatus, to sum up, embodiment improves the flexibilities of exchange rate inquiry.
Based on the same inventive concept, a kind of exchange rate querying method is additionally provided in the embodiment of the present application, such as following implementation
Example.Since the principle that the exchange rate querying method solves the problems, such as is similar to exchange rate enquiring component device, exchange rate querying method
Implementing can be with reference to the implementation of above-mentioned exchange rate enquiring component device, and overlaps will not be repeated.It is used below, term " mould
The combination of the software and/or hardware of predetermined function may be implemented in block " or " module ".Although device described in following embodiment
It is preferably realized with software, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 6 is the schematic diagram for the exchange rate querying method that the exchange rate uses system end in the embodiment of the present application, as shown in fig. 6, should
Method includes the following steps:
Step 101:Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
Step 102:According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter
With the relationship of the exchange rate under different business scene, determine that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario;
Step 103:The exchange rate inquiry request parameter to be matched is corresponded into the exchange rate under business scenario and is sent to the remittance
Rate uses system.
In an example, which can also include:
Timing issues the exchange rate and updates inquiry request;
It receives and the exchange rate query result that inquiry request returns is updated according to the exchange rate;
According to exchange rate query result, the relationship of the exchange rate under the exchange rate inquiry request parameter and different business scene is updated.
In an example, the exchange rate inquiry request parameter may include:Exchange rate output format customized demand parameter;
The exchange rate querying method can also include:Exchange rate inquiry request parameter to be matched is corresponded to the remittance under business scenario
Rate format analysis processing is at the corresponding exchange rate format of the exchange rate output format customized demand parameter;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
It unites, may include:According to the corresponding exchange rate format of the exchange rate output format customized demand parameter, the exchange rate to be matched is looked into
Ask required parameter correspond to the exchange rate under business scenario be sent to the exchange rate use system.
In an example, which can also include:
When detecting that being sent to the exchange rate has expired using the exchange rate of system, send a warning
System is used to the exchange rate.
In an example, the exchange rate inquiry request parameter includes:The currency type of demand is to, product code and event code.
Based on the same inventive concept, a kind of exchange rate querying method is additionally provided in the embodiment of the present application, such as following implementation
Example.Since the principle that the exchange rate querying method solves the problems, such as is similar to exchange rate query service end, the reality of exchange rate querying method
The implementation that can refer to above-mentioned exchange rate query service end is applied, overlaps will not be repeated.It is used below, term " module " or
The combination of the software and/or hardware of predetermined function may be implemented in person's " module ".Although device described in following embodiment is preferable
Ground is realized with software, but the realization of the combination of hardware or software and hardware is also that may and be contemplated.
Fig. 7 is the schematic diagram of the exchange rate querying method at exchange rate query service end in the embodiment of the present application, as shown in fig. 7, should
Exchange rate querying method includes the following steps:
Step 201:It receives the exchange rate and updates inquiry request;
Step 202:Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The exchange rate query result includes:It converges
The update result of the relationship of the exchange rate under rate inquiry request parameter and different business scene;
Step 203:The exchange rate query result is issued.
In one embodiment, inquiry request is updated according to the exchange rate, obtains exchange rate query result, may include:
Obtain the business scenario in exchange rate update inquiry request;
It obtains multiple exchange quotations under the business scenario and the exchange rate that mechanism provides is provided;
The optimal exchange rate determined under the business scenario in the exchange rate that mechanism provides is provided from multiple exchange quotations;
The optimal exchange rate is sent to exchange rate query result as the exchange rate query result of the business scenario and sends mould
Block.
The embodiment of the present application also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out the place of each instruction
Device and storage equipment are managed, the storage equipment is stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter with it is not of the same trade or business
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario under scene of being engaged in;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
System.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is computer program, the computer program is for executing:
Receive the exchange rate inquiry request parameter to be matched that the exchange rate is sent using system;
According to the exchange rate inquiry request parameter to be matched and pre-stored exchange rate inquiry request parameter with it is not of the same trade or business
The relationship of the exchange rate, determines that exchange rate inquiry request parameter to be matched corresponds to the exchange rate under business scenario under scene of being engaged in;
The exchange rate inquiry request parameter to be matched is corresponded to the exchange rate under business scenario and is sent to the exchange rate and uses and is
System.
The embodiment of the present application also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out the place of each instruction
Device and storage equipment are managed, the storage equipment is stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
Timing issues the exchange rate and updates inquiry request;
It receives and the exchange rate query result that inquiry request returns is updated according to the exchange rate;
According to exchange rate query result, the relationship of the exchange rate under the exchange rate inquiry request parameter and different business scene is updated.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is computer program, the computer program is for executing:
Timing issues the exchange rate and updates inquiry request;
It receives and the exchange rate query result that inquiry request returns is updated according to the exchange rate;
According to exchange rate query result, the relationship of the exchange rate under the exchange rate inquiry request parameter and different business scene is updated.
The embodiment of the present application also provides a kind of calculating equipment, the calculating equipment includes:It is adapted for carrying out the place of each instruction
Device and storage equipment are managed, the storage equipment is stored with a plurality of instruction, and described instruction is suitable for being loaded and being executed by processor:
It receives the exchange rate and updates inquiry request;
Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The exchange rate query result includes:Exchange rate inquiry is asked
Seek the update result of the relationship of the exchange rate under parameter and different business scene;
The exchange rate query result is issued.
The embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is computer program, the computer program is for executing:
It receives the exchange rate and updates inquiry request;
Inquiry request is updated according to the exchange rate, obtains exchange rate query result;The exchange rate query result includes:Exchange rate inquiry is asked
Seek the update result of the relationship of the exchange rate under parameter and different business scene;
The exchange rate query result is issued.
The embodiment of the present application provide technical solution advantageous effects be:
By the standard rate of exchange component provided in this programme, operation system no longer needs to be implemented separately exchange rate caching, only needs
Integrated package is wanted, the caching of standard is realized in component.It is produced in addition, operation system also no longer needs to perceive the different exchange rate
Product, different exchange rate query interfaces, it is only necessary to which description understands oneself desired exchange rate information, after component takes these information, meeting
Go out suitable rate product and quotation information by preparatory configuration Auto-matching, take out the exchange rate from caching, and by the exchange rate
Uniform format is the desired format of operation system.The original exchange rate for being dispersed in each operation system of exchange rate component standard is looked into
Inquiry, encapsulation and managerial ability, by this programme, operation system will become succinct, transparent to the use of the exchange rate, and maintenance cost is big
It is big to reduce;And exchange center can do unified control by exchange rate component to all inquiry requests, reduce maintenance cost.
Obviously, those skilled in the art should be understood that each module of above-mentioned the embodiment of the present application or each step can be with
It is realized with general computing device, they can be concentrated on a single computing device, or be distributed in multiple computing devices
On composed network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to by it
Store and be performed by computing device in the storage device, and in some cases, can be held with the sequence for being different from herein
The shown or described step of row, perhaps they are fabricated to each integrated circuit modules or will be multiple in them
Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present application be not limited to it is any specific hard
Part and software combine.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, the embodiment of the present application can have various modifications and variations.Within the spirit and principles of this application, made
Any modification, equivalent substitution, improvement and etc. should be included within the scope of protection of this application.