|
@@ -144,7 +144,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
queryActualValueResponse.getActualValue(), quoteVo.getAccidentalDrivingVo(), zjConfigureParameters,
|
|
queryActualValueResponse.getActualValue(), quoteVo.getAccidentalDrivingVo(), zjConfigureParameters,
|
|
|
modelQueryResponse);
|
|
modelQueryResponse);
|
|
|
boolean isEnergy = false;
|
|
boolean isEnergy = false;
|
|
|
- if("D6,D8,D12,".contains(vehicleModelInfosDTO.getPowerTypeCode()+",")) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
|
|
|
|
+ if ("D6,D8,D12,".contains(vehicleModelInfosDTO.getPowerTypeCode() + ",")) {//纯电动 燃料电池 插电式混合动力 归属为新能源产品
|
|
|
isEnergy = true;
|
|
isEnergy = true;
|
|
|
}
|
|
}
|
|
|
String message = "";
|
|
String message = "";
|
|
@@ -153,14 +153,14 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
message, queryActualValueRequest, true);
|
|
message, queryActualValueRequest, true);
|
|
|
// 警告信息
|
|
// 警告信息
|
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(calculatePremiumResponse, quoteInfoVo,
|
|
QuoteRespVo quoteRespVo = getQuoteRespVo(calculatePremiumResponse, quoteInfoVo,
|
|
|
- quoteVo.getAccidentalDrivingVo(),isEnergy);
|
|
|
|
|
|
|
+ quoteVo.getAccidentalDrivingVo(), isEnergy);
|
|
|
if (!StringUtils.isEmpty(message)) {
|
|
if (!StringUtils.isEmpty(message)) {
|
|
|
ArrayList<String> objects = new ArrayList<>();
|
|
ArrayList<String> objects = new ArrayList<>();
|
|
|
objects.add(message);
|
|
objects.add(message);
|
|
|
quoteRespVo.setWarnMessageList(objects);
|
|
quoteRespVo.setWarnMessageList(objects);
|
|
|
}
|
|
}
|
|
|
return responseOrder(calculatePremiumResponse, quoteRespVo, ptlAgreementAttribution,
|
|
return responseOrder(calculatePremiumResponse, quoteRespVo, ptlAgreementAttribution,
|
|
|
- calculatePremiumRequest.getOrderId(), calculatePremiumRequest.getOrderNo(),quoteInfoVo);
|
|
|
|
|
|
|
+ calculatePremiumRequest.getOrderId(), calculatePremiumRequest.getOrderNo(), quoteInfoVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -406,7 +406,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public QuoteRespVo getQuoteRespVo(CalculatePremiumResponse calculatePremiumResponse,
|
|
public QuoteRespVo getQuoteRespVo(CalculatePremiumResponse calculatePremiumResponse,
|
|
|
- BaseQuoteInfoVo yaQuoteInfoVo, List<ZjQuoteAccidentVo> accidentalDrivingVo,boolean isEnergy) {
|
|
|
|
|
|
|
+ BaseQuoteInfoVo yaQuoteInfoVo, List<ZjQuoteAccidentVo> accidentalDrivingVo, boolean isEnergy) {
|
|
|
double jqPremium = 0;
|
|
double jqPremium = 0;
|
|
|
double syPremium = 0;
|
|
double syPremium = 0;
|
|
|
double sumPayTax = 0;
|
|
double sumPayTax = 0;
|
|
@@ -452,12 +452,12 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
kind.setKindCode(kindInfoVo.getKindCode());
|
|
kind.setKindCode(kindInfoVo.getKindCode());
|
|
|
kind.setKindName(kindInfoVo.getKindName());
|
|
kind.setKindName(kindInfoVo.getKindName());
|
|
|
int i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getJinZhangGuiType(), kindInfoVo.getKindCode());
|
|
int i = ArrayUtil.indexOf(InsuranceTypeCorrespondence.getJinZhangGuiType(), kindInfoVo.getKindCode());
|
|
|
- CalculatePremiumResponse.ItemKindListDTO itemKindListDTO ;
|
|
|
|
|
- if(isEnergy){
|
|
|
|
|
|
|
+ CalculatePremiumResponse.ItemKindListDTO itemKindListDTO;
|
|
|
|
|
+ if (isEnergy) {
|
|
|
itemKindListDTO = itemKindList.stream()
|
|
itemKindListDTO = itemKindList.stream()
|
|
|
.filter(a -> a.getKindCode().equals(InsuranceTypeCorrespondence.getZjConnectInsuranceTypeNewEnergy()[i]))
|
|
.filter(a -> a.getKindCode().equals(InsuranceTypeCorrespondence.getZjConnectInsuranceTypeNewEnergy()[i]))
|
|
|
.collect(Collectors.toList()).get(0);
|
|
.collect(Collectors.toList()).get(0);
|
|
|
- }else{
|
|
|
|
|
|
|
+ } else {
|
|
|
itemKindListDTO = itemKindList.stream()
|
|
itemKindListDTO = itemKindList.stream()
|
|
|
.filter(a -> a.getKindCode().equals(InsuranceTypeCorrespondence.getZjConnectInsuranceType()[i]))
|
|
.filter(a -> a.getKindCode().equals(InsuranceTypeCorrespondence.getZjConnectInsuranceType()[i]))
|
|
|
.collect(Collectors.toList()).get(0);
|
|
.collect(Collectors.toList()).get(0);
|
|
@@ -504,7 +504,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
public HttpResult<QuoteRespVo> responseOrder(CalculatePremiumResponse calculatePremiumResponse,
|
|
public HttpResult<QuoteRespVo> responseOrder(CalculatePremiumResponse calculatePremiumResponse,
|
|
|
QuoteRespVo quoteRespVo,
|
|
QuoteRespVo quoteRespVo,
|
|
|
PtlAgreementAttribution ptlAgreementAttribution, String orderId,
|
|
PtlAgreementAttribution ptlAgreementAttribution, String orderId,
|
|
|
- String orderNo,BaseQuoteInfoVo quoteInfoVo) {
|
|
|
|
|
|
|
+ String orderNo, BaseQuoteInfoVo quoteInfoVo) {
|
|
|
// 保存订单信息
|
|
// 保存订单信息
|
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
|
// 协议id
|
|
// 协议id
|
|
@@ -521,7 +521,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.insertCompanyAndOrders(insAreaCompany);
|
|
|
quoteRespVo.setCompanyId(orderNo);
|
|
quoteRespVo.setCompanyId(orderNo);
|
|
|
//添加调用费用匹配功能
|
|
//添加调用费用匹配功能
|
|
|
- feeRuleSchemeService.dealFeeOrderInfo(quoteInfoVo, quoteRespVo, ptlAgreementAttribution.getId(),insAreaCompany.getId());
|
|
|
|
|
|
|
+ feeRuleSchemeService.dealFeeOrderInfo(quoteInfoVo, quoteRespVo, ptlAgreementAttribution.getId(), insAreaCompany.getId());
|
|
|
return HttpResult.ok("报价成功", quoteRespVo);
|
|
return HttpResult.ok("报价成功", quoteRespVo);
|
|
|
}
|
|
}
|
|
|
|
|
|