Commit 85895940 by jianan

来佣规格匹配

parent a5007ff4
......@@ -822,7 +822,7 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
map.put("PAYMENT_TERM", policy.getPaymentTerm() != null ? String.valueOf(policy.getPaymentTerm()) : null);
map.put("RECONCILIATION_COMPANY", policy.getReconciliationCompanyBizId());
map.put("AGE", policy.getPolicyHolderAge());
map.put("PREMIUM", policy.getPaymentPremium());
map.put("PREMIUM", calculateInitialPremiumInHkd(policy.getPaymentPremium(), policy.getCurrency()));
map.put("PROFESSIONAL", professionalInvestor);
map.put("POLICY_CURRENCY", policy.getCurrency());
map.put("GUARANTEE_PERIOD", policy.getGuaranteePeriod());
......@@ -830,6 +830,13 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
return map;
}
// 匹配来佣规格 - 计算期交保费港币金额
private BigDecimal calculateInitialPremiumInHkd(BigDecimal paymentPremium, String policyCurrency) {
// 查汇率
BigDecimal exchangeRate = queryExchangeRateByFeign(policyCurrency, "HKD");
return paymentPremium.multiply(exchangeRate);
}
/**
* 根据species条件过滤列表
*/
......
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