|
@@ -2,12 +2,10 @@ package com.ydtech.modules.order.service.impl;
|
|
|
|
|
|
|
|
import cn.dev33.satoken.session.SaSession;
|
|
import cn.dev33.satoken.session.SaSession;
|
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
import cn.dev33.satoken.stp.StpUtil;
|
|
|
-import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.ydtech.components.OrderComponents;
|
|
import com.ydtech.components.OrderComponents;
|
|
@@ -483,14 +481,14 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
//非车
|
|
//非车
|
|
|
if (!ObjectUtils.isEmpty(insOrdersExcel.getCrossInsurance())) {
|
|
if (!ObjectUtils.isEmpty(insOrdersExcel.getCrossInsurance())) {
|
|
|
|
|
|
|
|
- if(String.valueOf(PtlApiType.PTL_API_2.getCode()).equals(insOrdersExcel.getApiType())){
|
|
|
|
|
|
|
+ if (String.valueOf(PtlApiType.PTL_API_2.getCode()).equals(insOrdersExcel.getApiType())) {
|
|
|
List<CrawlerVerifyPaymentResponse.DrivingInsurancesDTO> drivingInsurancesDTOS =
|
|
List<CrawlerVerifyPaymentResponse.DrivingInsurancesDTO> drivingInsurancesDTOS =
|
|
|
insOrdersExcel.getCrossInsurance().toJavaList(CrawlerVerifyPaymentResponse.DrivingInsurancesDTO.class);
|
|
insOrdersExcel.getCrossInsurance().toJavaList(CrawlerVerifyPaymentResponse.DrivingInsurancesDTO.class);
|
|
|
if (!drivingInsurancesDTOS.isEmpty()) {
|
|
if (!drivingInsurancesDTOS.isEmpty()) {
|
|
|
String policyNumber = drivingInsurancesDTOS.get(0).getPolicy();
|
|
String policyNumber = drivingInsurancesDTOS.get(0).getPolicy();
|
|
|
insOrdersExcel.setJyPolicyno(policyNumber);
|
|
insOrdersExcel.setJyPolicyno(policyNumber);
|
|
|
}
|
|
}
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
List<DrivingInsuranceDto> drivingInsuranceDtos =
|
|
List<DrivingInsuranceDto> drivingInsuranceDtos =
|
|
|
insOrdersExcel.getCrossInsurance().toJavaList(DrivingInsuranceDto.class);
|
|
insOrdersExcel.getCrossInsurance().toJavaList(DrivingInsuranceDto.class);
|
|
|
if (!drivingInsuranceDtos.isEmpty()) {
|
|
if (!drivingInsuranceDtos.isEmpty()) {
|
|
@@ -577,6 +575,10 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
yaExtendInfoDto.setLossRation(String.valueOf(iac.getLossRation()));
|
|
yaExtendInfoDto.setLossRation(String.valueOf(iac.getLossRation()));
|
|
|
yaExtendInfoDto.setJqLossRation(String.valueOf(iac.getJqLossRation()));
|
|
yaExtendInfoDto.setJqLossRation(String.valueOf(iac.getJqLossRation()));
|
|
|
yaExtendInfoDto.setSyLossRation(String.valueOf(iac.getSyLossRation()));
|
|
yaExtendInfoDto.setSyLossRation(String.valueOf(iac.getSyLossRation()));
|
|
|
|
|
+ //折扣率
|
|
|
|
|
+ yaExtendInfoDto.setTotalAdjustRate(iac.getTotalAdjustRate());
|
|
|
|
|
+ yaExtendInfoDto.setJqAdjustRate(iac.getJqAdjustRate());
|
|
|
|
|
+ yaExtendInfoDto.setSyAdjustRate(iac.getSyAdjustRate());
|
|
|
|
|
|
|
|
orderAndAreaCompany.setExtendInfo(yaExtendInfoDto);
|
|
orderAndAreaCompany.setExtendInfo(yaExtendInfoDto);
|
|
|
|
|
|
|
@@ -609,7 +611,7 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
if (!Objects.isNull(insFeeOrderNew)) {
|
|
if (!Objects.isNull(insFeeOrderNew)) {
|
|
|
List<QueryOrderFeeResultVo> orderFeeVoList = feeRuleSchemeService.convertOrderFeeVoData(insFeeOrderNew);
|
|
List<QueryOrderFeeResultVo> orderFeeVoList = feeRuleSchemeService.convertOrderFeeVoData(insFeeOrderNew);
|
|
|
orderAndAreaCompany.setOrderFeeResult(orderFeeVoList);
|
|
orderAndAreaCompany.setOrderFeeResult(orderFeeVoList);
|
|
|
- List<FeeOrderNewVo> feeOrderNewVoList = feeRuleSchemeService.newConvertOrderFeeVoData(insFeeOrderNew);
|
|
|
|
|
|
|
+ List<FeeOrderNewVo> feeOrderNewVoList = feeRuleSchemeService.newConvertOrderFeeVoData(insFeeOrderNew);
|
|
|
orderAndAreaCompany.setFeeOrderNewVoList(feeOrderNewVoList);
|
|
orderAndAreaCompany.setFeeOrderNewVoList(feeOrderNewVoList);
|
|
|
List<DistributionLevelVo> distributionLevelVoList = feeRuleSchemeService.converDistrbutionData(insFeeOrderNew);
|
|
List<DistributionLevelVo> distributionLevelVoList = feeRuleSchemeService.converDistrbutionData(insFeeOrderNew);
|
|
|
orderAndAreaCompany.setDistributionLevelVoList(distributionLevelVoList);
|
|
orderAndAreaCompany.setDistributionLevelVoList(distributionLevelVoList);
|