|
|
@@ -928,18 +928,11 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
private UnderwritingResultsVo handlePassedUnderwriting(HtCrawlerOrder order, HtCrawlerConfigureParameters params, UnderwritingVo vo, Map<String, Object> map) {
|
|
|
UnderwritingResultsVo r = new UnderwritingResultsVo();
|
|
|
r.setUnderwritingStatus(InsOrderStatusEnum.PAY_PENDING);
|
|
|
- HtCrawlerPaymentLinkResponse pl = queryPaymentLink(order, params, new PaymentLinkVo());
|
|
|
- log.info("handlePassedUnderwriting_paymentLinkResponse: {}", JSONObject.toJSONString(pl));
|
|
|
- if (pl == null || pl.getImg() == null) {
|
|
|
- return r;
|
|
|
- }
|
|
|
- r.setPaymentLink(pl.getImg());
|
|
|
r.setJqPolicyno(map.get("jqProposalno") == null ? "" : map.get("jqProposalno").toString());
|
|
|
r.setSyPolicyno(map.get("syProposalno") == null ? "" : map.get("syProposalno").toString());
|
|
|
-
|
|
|
+ InsOrdersCarUserInfo insOrdersCarUserInfo = null;
|
|
|
order.setJqPolicyno(r.getJqPolicyno());
|
|
|
order.setSyPolicyno(r.getSyPolicyno());
|
|
|
- InsOrdersCarUserInfo insOrdersCarUserInfo = null;
|
|
|
for (InsOrdersCarUserInfo userInfo : vo.getInsOrdersCarUserInfoList()) {
|
|
|
if(userInfo.getPolicyPersonType() == 2) {
|
|
|
insOrdersCarUserInfo = userInfo;
|
|
|
@@ -947,6 +940,13 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ HtCrawlerPaymentLinkResponse pl = queryPaymentLink(order, params, new PaymentLinkVo());
|
|
|
+ log.info("handlePassedUnderwriting_paymentLinkResponse: {}", JSONObject.toJSONString(pl));
|
|
|
+ if (pl == null || pl.getImg() == null) {
|
|
|
+ orderService.update(order);
|
|
|
+ return r;
|
|
|
+ }
|
|
|
+ r.setPaymentLink(pl.getImg());
|
|
|
orderService.update(order);
|
|
|
return r;
|
|
|
}
|