|
|
@@ -322,7 +322,7 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
|
|
|
BoHaiConfigureParameters parameters = configureParametersComponents.toEntity(BoHaiConfigureParameters.class,
|
|
|
ptlAgreementAttribution);
|
|
|
|
|
|
- String applyno = StringUtils.isEmpty(insAreaCompany.getJqapplyno()) ? insAreaCompany.getJqapplyno() : insAreaCompany.getSyapplyno();
|
|
|
+ String applyno = !StringUtils.isEmpty(insAreaCompany.getJqapplyno()) ? insAreaCompany.getJqapplyno() : insAreaCompany.getSyapplyno();
|
|
|
StatusDocumentsRequest statusDocumentsRequest = new StatusDocumentsRequest(parameters, insAreaCompany.getId(), applyno);
|
|
|
StatusDocumentsResponse response = boHaiRequestApiComponent.statusDocuments(statusDocumentsRequest);
|
|
|
return response.getData().getDocumentList();
|
|
|
@@ -348,7 +348,8 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
|
|
|
if (!ObjectUtils.isEmpty(trafficPolicy)) {
|
|
|
sumPayTax = Double.parseDouble(trafficPolicy.getVehicleTax().getTotalAmount());
|
|
|
jqPremium = Double.parseDouble(trafficPolicy.getPremium());
|
|
|
- jqPolicyNo = response.getData().getTrafficPolicy().getPolicyNo();
|
|
|
+ jqPolicyNo = trafficPolicy.getPolicyNo();
|
|
|
+ quoteRespVo.setJqApplyNo(trafficPolicy.getApplicationNo());
|
|
|
}
|
|
|
// 交强
|
|
|
quoteRespVo.setStartDateJq(trafficPolicy.getStartDate());
|
|
|
@@ -358,7 +359,8 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
|
|
|
QuotationResponse.DataDTO.BusinessPolicyDTO businessPolicy = response.getData().getBusinessPolicy();
|
|
|
if (!ObjectUtils.isEmpty(businessPolicy)) {
|
|
|
syPremium = Double.parseDouble(businessPolicy.getPremium());
|
|
|
- syPolicyNo = response.getData().getBusinessPolicy().getPolicyNo();
|
|
|
+ syPolicyNo = businessPolicy.getPolicyNo();
|
|
|
+ quoteRespVo.setSyApplyNo(businessPolicy.getApplicationNo());
|
|
|
// 商业
|
|
|
quoteRespVo.setStartDateSy(businessPolicy.getStartDate());
|
|
|
quoteRespVo.setEndDateSy(businessPolicy.getEndDate());
|
|
|
@@ -420,8 +422,8 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
|
|
|
String syPolicyNo) {
|
|
|
// 保存订单信息
|
|
|
InsAreaCompany insAreaCompany = new InsAreaCompany(quoteRespVo, ptlAgreementAttribution);
|
|
|
- insAreaCompany.setJqappoint(jqPolicyNo);
|
|
|
- insAreaCompany.setSyappoint(syPolicyNo);
|
|
|
+ insAreaCompany.setJqpolicyno(jqPolicyNo);
|
|
|
+ insAreaCompany.setSypolicyno(syPolicyNo);
|
|
|
|
|
|
// 渤海业务id
|
|
|
String busUniqueId = response.getData().getBusUniqueId();
|