|
|
@@ -779,10 +779,10 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
ordersCosts.setOrderNo(ordersNo);
|
|
|
}
|
|
|
if (BeanUtil.isNotEmpty(quoteResponse) && BeanUtil.isNotEmpty(quoteResponse.getCosts())) {
|
|
|
- BigDecimal ciPremium = quoteResponse.getCosts().getCiPremium() == null ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getCiPremium());
|
|
|
- BigDecimal biPremium = quoteResponse.getCosts().getBiPremium() == null ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getBiPremium());
|
|
|
- BigDecimal niPremium = quoteResponse.getCosts().getNiPremium() == null ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getNiPremium());
|
|
|
- BigDecimal vvTax = new BigDecimal(quoteResponse.getCosts().getVvTax());
|
|
|
+ BigDecimal ciPremium = quoteResponse.getCosts().getCiPremium() == null || quoteResponse.getCosts().getCiPremium().isEmpty() ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getCiPremium());
|
|
|
+ BigDecimal biPremium = quoteResponse.getCosts().getBiPremium() == null || quoteResponse.getCosts().getBiPremium().isEmpty() ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getBiPremium());
|
|
|
+ BigDecimal niPremium = quoteResponse.getCosts().getNiPremium() == null || quoteResponse.getCosts().getNiPremium().isEmpty() ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getNiPremium());
|
|
|
+ BigDecimal vvTax = quoteResponse.getCosts().getVvTax() == null || quoteResponse.getCosts().getVvTax().isEmpty() ? new BigDecimal("0.00") : new BigDecimal(quoteResponse.getCosts().getVvTax());
|
|
|
ordersCosts.setJqPremium(ciPremium);
|
|
|
ordersCosts.setSyPremium(biPremium);
|
|
|
ordersCosts.setJyPremium(niPremium);
|