Просмотр исходного кода

1. 泰康:解决人工审核上传影像资料后,更新订单状态后依然无法获取二维码支付

wangrq 2 месяцев назад
Родитель
Сommit
0933f3b54b

+ 21 - 6
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/service/impl/TKQuotationBaseServiceImpl.java

@@ -237,7 +237,7 @@ public class TKQuotationBaseServiceImpl implements TKQuotationBaseService {
         // uploadImage(insuranceUploadImageVo);
 
         // 核保结果
-        underwritingResultsVo.setUnderwritingResult(tkEntranceFor000038Result.getData().getSpResMsg()+",原因:"+tkEntranceFor000038Result.getCheckReason());
+        underwritingResultsVo.setUnderwritingResult(tkEntranceFor000038Result.getData().getSpResMsg() + ",原因:" + tkEntranceFor000038Result.getCheckReason());
         // 核保状态
         underwritingResultsVo.setUnderwritingStatus(InsOrderStatusEnum.STAFF_PROCESS);
     }
@@ -533,15 +533,30 @@ public class TKQuotationBaseServiceImpl implements TKQuotationBaseService {
         } else if (orderStatus.equals("X")) {
             orderStatusResultVo.setOrderStatus(InsOrderStatusEnum.ORDER_CLOSE);
         }
-        String proposalNoCI = tkEntranceFor000086Result.getQuotationNoCI();
-        String proposalNoBI = tkEntranceFor000086Result.getQuotationNoBI();
+        orderStatusResultVo.setJqPolicyno(tkEntranceFor000086Result.getQuotationNoCI());
+        orderStatusResultVo.setSyPolicyno(tkEntranceFor000086Result.getQuotationNoBI());
 
         // 交强险投保单号
-        orderStatusResultVo.setJqApplyNo(proposalNoCI);
+        if (tkEntranceFor000086Result.getOrderInfoVoBZ() != null) {
+            orderStatusResultVo.setJqApplyNo(tkEntranceFor000086Result.getOrderInfoVoBZ().getJqProposalNo());
+        }
         // 商业投保单号
-        orderStatusResultVo.setSyApplyNo(proposalNoBI);
+        if (tkEntranceFor000086Result.getOrderInfoVoCI() != null) {
+            orderStatusResultVo.setSyApplyNo(tkEntranceFor000086Result.getOrderInfoVoCI().getSyProposalNo());
+        }
         // 驾意险投保单号
-        // orderStatusResultVo.setJyApplyNo(JYProposalNo);
+        if (tkEntranceFor000086Result.getDriverAccidentVo() != null) {
+            orderStatusResultVo.setJyApplyNo(tkEntranceFor000086Result.getDriverAccidentVo().getProposalNo());
+        }
+
+        // 获取支付链接
+        if ("D".equals(orderStatus)) {
+            PaymentLinkVo paymentLinkVo = new PaymentLinkVo();
+            paymentLinkVo.setOrder(orderStatusVo.getOrder());
+            PaymentLinkResultsVo paymentLink = getPaymentLink(paymentLinkVo);
+            orderStatusResultVo.setPaymentLink(paymentLink.getPaymentLink());
+        }
+
         return orderStatusResultVo;
     }