|
|
@@ -211,12 +211,10 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
insAreaCompany.setSyapplyno(submitVerifyInfo.getProposalNo());
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
|
|
|
// 3. 聚合支付服务
|
|
|
- BigDecimal multiply = insAreaCompany.getSumpremium().multiply(new BigDecimal(100));
|
|
|
- ZbfAggregatePayRequest zbfAggregatePayRequest = new ZbfAggregatePayRequest(String.valueOf(multiply.intValue()),
|
|
|
- zjConfigureParameters.getAppKey(), insAreaCompany.getId());
|
|
|
- ZbfAggregatePayResponse zbfAggregatePayResponse = zijinRequestApiComponents.zbfAggregatePay(zbfAggregatePayRequest,
|
|
|
- httpHeaders);
|
|
|
- insAreaCompany.setPaymentLink(zbfAggregatePayResponse.getPayUrl());
|
|
|
+ String multiply = insAreaCompany.getSumpremium().stripTrailingZeros().toString();
|
|
|
+ NewPayRequest newPayRequest = new NewPayRequest(multiply, insAreaCompany.getId(), zjConfigureParameters);
|
|
|
+ NewPayRequestResponse newPayRequestResponse = zijinRequestApiComponents.newPay(newPayRequest, httpHeaders);
|
|
|
+ insAreaCompany.setPaymentLink(newPayRequestResponse.getTwoDimentionImageUrl());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
return HttpResult.ok("核保成功");
|
|
|
|
|
|
@@ -436,12 +434,10 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
|
|
|
insAreaCompany.setSyapplyno(baseInfo.getProposalNo());
|
|
|
insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
|
|
|
// 3. 聚合支付服务
|
|
|
- BigDecimal multiply = insAreaCompany.getSumpremium().multiply(new BigDecimal(100));
|
|
|
- ZbfAggregatePayRequest zbfAggregatePayRequest = new ZbfAggregatePayRequest(String.valueOf(multiply.intValue()),
|
|
|
- zjConfigureParameters.getAppKey(), insAreaCompany.getId());
|
|
|
- ZbfAggregatePayResponse zbfAggregatePayResponse = zijinRequestApiComponents.zbfAggregatePay(zbfAggregatePayRequest,
|
|
|
- httpHeaders);
|
|
|
- insAreaCompany.setPaymentLink(zbfAggregatePayResponse.getPayUrl());
|
|
|
+ String multiply = insAreaCompany.getSumpremium().stripTrailingZeros().toString();
|
|
|
+ NewPayRequest newPayRequest = new NewPayRequest(multiply, insAreaCompany.getId(), zjConfigureParameters);
|
|
|
+ NewPayRequestResponse newPayRequestResponse = zijinRequestApiComponents.newPay(newPayRequest, httpHeaders);
|
|
|
+ insAreaCompany.setPaymentLink(newPayRequestResponse.getTwoDimentionImageUrl());
|
|
|
insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
|
|
|
return HttpResult.ok("核保成功");
|
|
|
} else if (OrderStatusEnum.O_3.getCode().equals(resultObj.getOrderStatus())) {
|