✨ 新增BFI汇率查询接口并完善结算单合同币种传递

- 新增BfiExchangeRateController: 提供/bfi/exchange-rate接口按币种和日期查询BFI汇率
- blade-transport/pom.xml: 添加blade-bfi-api依赖
- blade-transport/application.yml: 新建配置文件加载Nacos公共配置
- blade-transport/application-dev.yml: 简化配置,数据源等已在Nacos统一管理
- PreSettlementServiceImpl: contractOptions返回中增加settlementCurrency字段
This commit is contained in:
刘泉佳
2026-09-16 14:14:03 +08:00
parent 10060e7f0b
commit eecb1ce359
5 changed files with 112 additions and 10 deletions
@@ -0,0 +1,29 @@
server:
port: 8110
spring:
application:
name: blade-transport
config:
import:
- nacos:blade.yaml?group=DEFAULT_GROUP&refreshEnabled=true
- nacos:blade-${spring.profiles.active}.yaml?group=DEFAULT_GROUP&refreshEnabled=true
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml?group=DEFAULT_GROUP&refreshEnabled=true
cloud:
nacos:
username: ${NACOS_USERNAME:${NACOS_PROD_USERNAME:nacos}}
password: ${NACOS_PASSWORD:${NACOS_PROD_PASSWORD:nacos}}
server-addr: ${NACOS_HOST:${NACOS_PROD_HOST:127.0.0.1:8848}}
discovery:
namespace: "${NACOS_NAMESPACE:}"
config:
file-extension: yaml
namespace: "${NACOS_NAMESPACE:}"
datasource:
url: ${blade.datasource.${spring.profiles.active}.url}
username: ${blade.datasource.${spring.profiles.active}.username}
password: ${blade.datasource.${spring.profiles.active}.password}
logging:
level:
org.springblade.thirdparty.bfi.feign.IBfiClient: DEBUG