@Component @Primary public class ExchangeRateMasterImpl extends Object implements ExchangeRateService, org.springframework.beans.factory.InitializingBean
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
| 构造器和说明 |
|---|
ExchangeRateMasterImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
String |
getName() |
BigDecimal |
rate(LegalCurrency from,
LegalCurrency to)
获取单个汇率
以from的1个标准单位进行汇率计算,返回最大四位小数值(四舍五入)
|
ExchangeRates |
rates(LegalCurrency currency)
常用货币汇率列表
|
@Autowired protected org.springframework.context.ApplicationContext applicationContext
public void afterPropertiesSet()
throws Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanExceptionpublic String getName()
getName 在接口中 com.acooly.core.utils.lang.Namedpublic BigDecimal rate(LegalCurrency from, LegalCurrency to)
ExchangeRateServicerate 在接口中 ExchangeRateServicepublic ExchangeRates rates(LegalCurrency currency)
ExchangeRateServicerates 在接口中 ExchangeRateServiceCopyright © 2024 Acooly. All rights reserved.