|
|
@@ -14,6 +14,7 @@ import com.jzg.quotation.ansheng.crawler.entity.response.AnShengCrawlerCalculate
|
|
|
import com.jzg.quotation.commons.component.ConversionOfQuoteInformation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@@ -62,7 +63,13 @@ public final class AnShengCrawlerQuoteResultsVoBuild {
|
|
|
buildKindInfo(quoteResultsVo.getKindInfoVo(), contract.getPolicyCoverages());
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+ QuoteResultsVo.CostsVo costs = quoteResultsVo.getCosts();
|
|
|
+ BigDecimal bi = costs.getBiPremium() == null ? BigDecimal.ZERO : new BigDecimal(costs.getBiPremium());
|
|
|
+ BigDecimal ci = costs.getCiPremium() == null ? BigDecimal.ZERO : new BigDecimal(costs.getCiPremium());
|
|
|
+ BigDecimal vv = costs.getVvTax() == null ? BigDecimal.ZERO : new BigDecimal(costs.getVvTax());
|
|
|
+ BigDecimal total = bi.add(ci).add(vv);
|
|
|
+ String totalStr = total.toPlainString();
|
|
|
+ costs.setSumPremium(totalStr);
|
|
|
quoteResultsVo.setScoreVo(buildScoreVo(calculatePremiumApply));
|
|
|
quoteResultsVo.setQuoteStatusEnum(InsOrderStatusEnum.WAIT_AUDIT);
|
|
|
return quoteResultsVo;
|