Просмотр исходного кода

大家商业险日期不对修改

xuqiang 3 месяцев назад
Родитель
Сommit
2a64656e53

+ 6 - 0
tenant/insurance/quotation-dajia/src/main/java/com/jzg/quotation/dajia/crawler/build/DaJiaCrawlerQuoteResultsVoBuild.java

@@ -65,6 +65,12 @@ public final class DaJiaCrawlerQuoteResultsVoBuild {
         quoteResultsVo.getCosts().setNiPremium(daJiaCrawlerSaveResponse.getDriveInsurance().getProductInfo().getPremium().equals("") ? "0.00" : daJiaCrawlerSaveResponse.getDriveInsurance().getProductInfo().getPremium());
         // 交强保费 车船税 商业保费
         buildOtherInfo(quoteResultsVo, daJiaCrawlerSaveResponse.getCompulsoryInsurance(), daJiaCrawlerSaveResponse.getBusinessInsurance());
+        BusinessInsuranceDTO.ProductInfoDTO productInfo = daJiaCrawlerSaveResponse.getBusinessInsurance().getProductInfo();
+        CompulsoryInsuranceDTO.ProductInfoDTO compulsoryInsuranceProductInfo = daJiaCrawlerSaveResponse.getCompulsoryInsurance().getProductInfo();
+        quoteResultsVo.setCiStartDate(compulsoryInsuranceProductInfo.getStartDate());
+        quoteResultsVo.setCiEndDate(compulsoryInsuranceProductInfo.getEndDate());
+        quoteResultsVo.setBiStartDate(productInfo.getStartDate());
+        quoteResultsVo.setBiEndDate(productInfo.getEndDate());
         return quoteResultsVo;
     }