|
@@ -25,6 +25,7 @@ import com.ydtech.modules.order.entity.api.yangguang.request.*;
|
|
|
import com.ydtech.modules.order.entity.api.yangguang.response.*;
|
|
import com.ydtech.modules.order.entity.api.yangguang.response.*;
|
|
|
import com.ydtech.modules.order.entity.api.zijin.constants.enums.BusType;
|
|
import com.ydtech.modules.order.entity.api.zijin.constants.enums.BusType;
|
|
|
import com.ydtech.modules.order.entity.config.YangGuangConfigureParameters;
|
|
import com.ydtech.modules.order.entity.config.YangGuangConfigureParameters;
|
|
|
|
|
+import com.ydtech.modules.order.entity.dto.DrivingInsuranceDto;
|
|
|
import com.ydtech.modules.order.entity.dto.ReadPdfUrlListDto;
|
|
import com.ydtech.modules.order.entity.dto.ReadPdfUrlListDto;
|
|
|
import com.ydtech.modules.order.entity.filter.CarModelsFilterUtils;
|
|
import com.ydtech.modules.order.entity.filter.CarModelsFilterUtils;
|
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
import com.ydtech.modules.order.entity.po.InsTaskImagesBase64;
|
|
@@ -43,6 +44,7 @@ import com.ydtech.utils.StringUtils;
|
|
|
import com.ydtech.utils.baidu.FileUtil;
|
|
import com.ydtech.utils.baidu.FileUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.bcel.generic.LSTORE;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
@@ -243,7 +245,12 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
}
|
|
}
|
|
|
if (yangGuangSubmitResponse.getPtptNonVehicleProductInformationList() != null) {
|
|
if (yangGuangSubmitResponse.getPtptNonVehicleProductInformationList() != null) {
|
|
|
- insAreaCompany.setCrossInsurance(yangGuangSubmitResponse.getPtptNonVehicleProductInformationList());
|
|
|
|
|
|
|
+ List<DrivingInsuranceDto> collect =
|
|
|
|
|
+ yangGuangSubmitResponse.getPtptNonVehicleProductInformationList()
|
|
|
|
|
+ .stream().map(YangGuangSubmitResponse.PtptNonVehicleProductInformationList::toDrivingInsuranceDto)
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+ JSONArray objects = JSON.parseArray(JSON.toJSONString(collect));
|
|
|
|
|
+ insAreaCompany.setCrossInsurance(objects);
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
}
|
|
}
|
|
|
// 核保转人工
|
|
// 核保转人工
|
|
@@ -275,7 +282,12 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
insAreaCompany.setJqapplyno(yangGuangSubmitResponse.getCiProposalNo() != null ? yangGuangSubmitResponse.getCiProposalNo() :"");
|
|
insAreaCompany.setJqapplyno(yangGuangSubmitResponse.getCiProposalNo() != null ? yangGuangSubmitResponse.getCiProposalNo() :"");
|
|
|
insAreaCompany.setSyapplyno(yangGuangSubmitResponse.getBiProposalNo() != null ? yangGuangSubmitResponse.getBiProposalNo() :"");
|
|
insAreaCompany.setSyapplyno(yangGuangSubmitResponse.getBiProposalNo() != null ? yangGuangSubmitResponse.getBiProposalNo() :"");
|
|
|
if (yangGuangSubmitResponse.getPtptNonVehicleProductInformationList() != null) {
|
|
if (yangGuangSubmitResponse.getPtptNonVehicleProductInformationList() != null) {
|
|
|
- insAreaCompany.setCrossInsurance(yangGuangSubmitResponse.getPtptNonVehicleProductInformationList());
|
|
|
|
|
|
|
+ List<DrivingInsuranceDto> collect =
|
|
|
|
|
+ yangGuangSubmitResponse.getPtptNonVehicleProductInformationList()
|
|
|
|
|
+ .stream().map(YangGuangSubmitResponse.PtptNonVehicleProductInformationList::toDrivingInsuranceDto)
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+ JSONArray objects = JSON.parseArray(JSON.toJSONString(collect));
|
|
|
|
|
+ insAreaCompany.setCrossInsurance(objects);
|
|
|
}
|
|
}
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
|
|
|
|
|
|
|
@@ -425,7 +437,13 @@ public class YangGuangOrderApiServiceImpl implements YangGuangOrderApiService {
|
|
|
insAreaCompany.setSypolicyno(yangGuangProposalStatusQueryResponse.getBiPolicyNo());
|
|
insAreaCompany.setSypolicyno(yangGuangProposalStatusQueryResponse.getBiPolicyNo());
|
|
|
insAreaCompany.setJqapplyno(yangGuangProposalStatusQueryResponse.getCiProposalNo());
|
|
insAreaCompany.setJqapplyno(yangGuangProposalStatusQueryResponse.getCiProposalNo());
|
|
|
insAreaCompany.setSyapplyno(yangGuangProposalStatusQueryResponse.getBiProposalNo());
|
|
insAreaCompany.setSyapplyno(yangGuangProposalStatusQueryResponse.getBiProposalNo());
|
|
|
- insAreaCompany.setAccidentStrInfo(yangGuangProposalStatusQueryResponse.getFCPolicyNo());
|
|
|
|
|
|
|
+ // 保存非车保单号
|
|
|
|
|
+ String fc = yangGuangProposalStatusQueryResponse.getFCPolicyNo();
|
|
|
|
|
+ JSONArray object = insAreaCompany.getCrossInsurance();
|
|
|
|
|
+ JSONObject newObj = new JSONObject();
|
|
|
|
|
+ newObj.put("policyNumber", fc);
|
|
|
|
|
+ object.add(newObj);
|
|
|
|
|
+ insAreaCompany.setCrossInsurance(object);
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
return HttpResult.ok("更新状态成功");
|
|
return HttpResult.ok("更新状态成功");
|