|
|
@@ -907,15 +907,17 @@ public class ChengTaiOrderApiServiceImpl implements ChengTaiOrderApiService {
|
|
|
// 人工核保
|
|
|
if (submitResponse.getHead().getRequestType().equals("00006")) {
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_AUDIT.getCode());
|
|
|
-// insAreaCompany.setJqapplyno(submitResponse.getProposal().getCompProposalNo());
|
|
|
-// insAreaCompany.setSyapplyno(submitResponse.getProposal().getCommProposalNo());
|
|
|
-// if (submitResponse.getProposal().getNoCarProposalNo() != null) {
|
|
|
-// List<DrivingInsuranceDto> drivingInsuranceDtos = new ArrayList<>();
|
|
|
-// DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
-// drivingInsuranceDto.setApplicationNumber(submitResponse.getProposal().getNoCarProposalNo());
|
|
|
-// drivingInsuranceDtos.add(drivingInsuranceDto);
|
|
|
-// insAreaCompany.setCrossInsurance(JSON.parseArray(JSON.toJSONString(drivingInsuranceDtos)));
|
|
|
-// }
|
|
|
+ if(submitResponse.getProposal() != null) {
|
|
|
+ insAreaCompany.setJqapplyno(submitResponse.getProposal().getCompProposalNo());
|
|
|
+ insAreaCompany.setSyapplyno(submitResponse.getProposal().getCommProposalNo());
|
|
|
+ if (submitResponse.getProposal().getNoCarProposalNo() != null) {
|
|
|
+ List<DrivingInsuranceDto> drivingInsuranceDtos = new ArrayList<>();
|
|
|
+ DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
+ drivingInsuranceDto.setApplicationNumber(submitResponse.getProposal().getNoCarProposalNo());
|
|
|
+ drivingInsuranceDtos.add(drivingInsuranceDto);
|
|
|
+ insAreaCompany.setCrossInsurance(JSON.parseArray(JSON.toJSONString(drivingInsuranceDtos)));
|
|
|
+ }
|
|
|
+ }
|
|
|
insSubOrderUpdateDetailService.insertData(insAreaCompany, insAreaCompany.getOrderstatus(), InsOrderStatusEnum.WAIT_AUDIT.getCode(), "1");
|
|
|
String message = submitResponse.getHead().getErrorMessage();
|
|
|
// String payUrl = payment(companyId);
|