|
@@ -2059,13 +2059,13 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
return dajiaBaseQuoteVo;
|
|
return dajiaBaseQuoteVo;
|
|
|
} else if (baseQuoteVo.getCompanyId().equals("BPIC1000000")) {
|
|
} else if (baseQuoteVo.getCompanyId().equals("BPIC1000000")) {
|
|
|
// 渤海财险
|
|
// 渤海财险
|
|
|
- BaseQuoteVo<List<BoHaiQuoteAccidentVo>> bohaiBaseQuoteVo = new BaseQuoteVo<>();
|
|
|
|
|
|
|
+ BaseQuoteVo<Object> bohaiBaseQuoteVo = new BaseQuoteVo<>();
|
|
|
BeanUtils.copyProperties(baseQuoteVo, bohaiBaseQuoteVo);
|
|
BeanUtils.copyProperties(baseQuoteVo, bohaiBaseQuoteVo);
|
|
|
QuoteAccidentalDrivingVo accidentalDrivingVo = baseQuoteVo.getAccidentalDrivingVo();
|
|
QuoteAccidentalDrivingVo accidentalDrivingVo = baseQuoteVo.getAccidentalDrivingVo();
|
|
|
- BoHaiQuoteAccidentVo boHaiQuoteAccidentVo = new BoHaiQuoteAccidentVo();
|
|
|
|
|
- boHaiQuoteAccidentVo.setPackageCode(accidentalDrivingVo.getProjectCode());
|
|
|
|
|
- boHaiQuoteAccidentVo.setProductCode(accidentalDrivingVo.getRiskCode());
|
|
|
|
|
- boHaiQuoteAccidentVo.setCopies(String.valueOf(accidentalDrivingVo.getQuantity()));
|
|
|
|
|
|
|
+ JSONObject boHaiQuoteAccidentVo = new JSONObject();
|
|
|
|
|
+ boHaiQuoteAccidentVo.put("comboCode",accidentalDrivingVo.getProjectCode());
|
|
|
|
|
+ boHaiQuoteAccidentVo.put("comboName",accidentalDrivingVo.getProjectName());
|
|
|
|
|
+ boHaiQuoteAccidentVo.put("count",String.valueOf(accidentalDrivingVo.getQuantity()));
|
|
|
bohaiBaseQuoteVo.setAccidentalDrivingVo(Collections.singletonList(boHaiQuoteAccidentVo));
|
|
bohaiBaseQuoteVo.setAccidentalDrivingVo(Collections.singletonList(boHaiQuoteAccidentVo));
|
|
|
return bohaiBaseQuoteVo;
|
|
return bohaiBaseQuoteVo;
|
|
|
} else if (baseQuoteVo.getCompanyId().equals("CHAC1000000")) {
|
|
} else if (baseQuoteVo.getCompanyId().equals("CHAC1000000")) {
|
|
@@ -2105,6 +2105,16 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
jsonObject.put("rideRiskCode", accidentObject.getString("riskCode"));
|
|
jsonObject.put("rideRiskCode", accidentObject.getString("riskCode"));
|
|
|
ziJinYangBaseQuoteVo.setAccidentalDrivingVo(jsonObject);
|
|
ziJinYangBaseQuoteVo.setAccidentalDrivingVo(jsonObject);
|
|
|
return ziJinYangBaseQuoteVo;
|
|
return ziJinYangBaseQuoteVo;
|
|
|
|
|
+ } else if (baseQuoteVo.getCompanyId().equals("CCIC1000000")){
|
|
|
|
|
+ BaseQuoteVo<Object> daDiBaseQuoteVo = new BaseQuoteVo<>();
|
|
|
|
|
+ BeanUtils.copyProperties(baseQuoteVo, daDiBaseQuoteVo);
|
|
|
|
|
+ JSONObject accidentObject = JSONObject.parseObject(JSONObject.toJSONString(daDiBaseQuoteVo.getAccidentalDrivingVo()));
|
|
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
|
|
+ jsonObject.put("formulaGroupCode", accidentObject.getString("riskCode"));
|
|
|
|
|
+ jsonObject.put("formulaCode", accidentObject.getString("projectCode"));
|
|
|
|
|
+ jsonObject.put("count", accidentObject.getString("quantity"));
|
|
|
|
|
+ daDiBaseQuoteVo.setAccidentalDrivingVo(jsonObject);
|
|
|
|
|
+ return daDiBaseQuoteVo;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
return null;
|