瀏覽代碼

渤海 子订单信息保存 bug

785834757 1 年之前
父節點
當前提交
b9ff4b0c1f
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/main/java/com/ydtech/modules/order/service/impl/BoHaiOrderApiServiceImpl.java

+ 10 - 2
src/main/java/com/ydtech/modules/order/service/impl/BoHaiOrderApiServiceImpl.java

@@ -795,6 +795,8 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
         quoteRespVo.setExpectedDiscount(floatingRateOption.getAdjustFactor());
         quoteRespVo.setInitialProposalDiscount(floatingRateOption.getNonClaimDiscountRate());
 
+
+
         //  报价险种放入保费
         List<QuoteRiskRespVo> riskList1 = QuoteRiskRespVo.toQuoteRiskRespVoList(riskList, jqPremium, syPremium);
 
@@ -808,12 +810,12 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
         quoteRespVo.setTotalAdjustRate(0);
         quoteRespVo.setOrderno(yaQuoteInfoVo.getOrderNo()); //订单号
         quoteRespVo.setCoreModels(vehicleModelsDTO.toCoreModelsVo());
-        return responseOrder(response, quoteRespVo, ptlAgreementAttribution, orderNo, accidentalDrivingVo);
+        return responseOrder(response, quoteRespVo, ptlAgreementAttribution, orderNo, accidentalDrivingVo,yaQuoteInfoVo);
     }
 
     public HttpResult<QuoteRespVo> responseOrder(QuotationResponse response, QuoteRespVo quoteRespVo,
                                                  PtlAgreementAttribution ptlAgreementAttribution, String orderId,
-                                                 List<BoHaiQuoteAccidentVo> accidentalDrivingVo) {
+                                                 List<BoHaiQuoteAccidentVo> accidentalDrivingVo,BaseQuoteInfoVo baseQuoteInfoVo) {
         // 保存订单信息
         InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
 
@@ -838,6 +840,12 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
         // 驾意险
         insAreaCompany.setAccidentInfo(JSON.parseArray(JSON.toJSONString(accidentalDrivingVo)));
 
+        //车辆人员信息
+        insAreaCompany.setCarInfo(JSON.toJSONString(baseQuoteInfoVo.getCarInfo()));
+        insAreaCompany.setOwnerInfo(JSON.toJSONString(baseQuoteInfoVo.getOwnerInfo()));
+        insAreaCompany.setApplyInfo(JSON.toJSONString(baseQuoteInfoVo.getPolicyHolderInfo()));
+        insAreaCompany.setInsureInfo(JSON.toJSONString(baseQuoteInfoVo.getInsuredPersonInfo()));
+
         // 车船税
         TaxArrears taxArrears =
                 Optional.ofNullable(response.getData().getTrafficPolicy())