Commit 32c75322 by yinyong

获取汇率

parent 49639303
...@@ -990,7 +990,7 @@ public class OrderSyncJob extends PointJob { ...@@ -990,7 +990,7 @@ public class OrderSyncJob extends PointJob {
BigDecimal whf = wmsFeeDetailDtos.getWhf() == null ? BigDecimal.ZERO : wmsFeeDetailDtos.getWhf().multiply(weightRatio).setScale(5, RoundingMode.HALF_EVEN); BigDecimal whf = wmsFeeDetailDtos.getWhf() == null ? BigDecimal.ZERO : wmsFeeDetailDtos.getWhf().multiply(weightRatio).setScale(5, RoundingMode.HALF_EVEN);
BigDecimal wmsToCnyExchangeRate = BigDecimal.ZERO; BigDecimal wmsToCnyExchangeRate = BigDecimal.ZERO;
BigDecimal wmsToUsdExchangeRate = BigDecimal.ZERO; BigDecimal wmsToUsdExchangeRate = BigDecimal.ZERO;
if(wmsFeeDetailDtos.getCurrencyCode() != null) { if(StringUtils.isBlank(wmsFeeDetailDtos.getCurrencyCode())) {
wmsFeeDetailDtos.setCurrencyCode("CNY"); wmsFeeDetailDtos.setCurrencyCode("CNY");
} }
wmsToCnyExchangeRate = CallBailunSystem.getExchangeRate(wmsFeeDetailDtos.getCurrencyCode(), Constant.RMB_CURRENCY, exchangeDate); wmsToCnyExchangeRate = CallBailunSystem.getExchangeRate(wmsFeeDetailDtos.getCurrencyCode(), Constant.RMB_CURRENCY, exchangeDate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment