|
@@ -853,7 +853,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
Map<String, Object> body = exchangeForm(url, Map.of("cmd", "submitZRG"), data, buildManualUwHeaders());
|
|
Map<String, Object> body = exchangeForm(url, Map.of("cmd", "submitZRG"), data, buildManualUwHeaders());
|
|
|
|
|
|
|
|
UnderwritingResultsVo r = new UnderwritingResultsVo();
|
|
UnderwritingResultsVo r = new UnderwritingResultsVo();
|
|
|
- r.setUnderwritingStatus(InsOrderStatusEnum.PAY_PENDING);
|
|
|
|
|
|
|
+ r.setUnderwritingStatus(InsOrderStatusEnum.AUDIT_FAIL);
|
|
|
r.setCompanyOrderNo(str(body, "quotationno"));
|
|
r.setCompanyOrderNo(str(body, "quotationno"));
|
|
|
r.setJqApplyNo(str(body, "proposal_no_jq"));
|
|
r.setJqApplyNo(str(body, "proposal_no_jq"));
|
|
|
r.setSyApplyNo(str(body, "proposal_no_sy"));
|
|
r.setSyApplyNo(str(body, "proposal_no_sy"));
|
|
@@ -872,7 +872,9 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
return r;
|
|
return r;
|
|
|
}
|
|
}
|
|
|
int s = html.indexOf("原因"), e = html.lastIndexOf("。");
|
|
int s = html.indexOf("原因"), e = html.lastIndexOf("。");
|
|
|
- throw new SystemException("审核未通过:" + (s >= 0 && e > s ? html.substring(s, e) : "审核未通过"));
|
|
|
|
|
|
|
+ // throw new SystemException("审核未通过:" + (s >= 0 && e > s ? html.substring(s, e) : "审核未通过"));
|
|
|
|
|
+ r.setUnderwritingResult(s >= 0 && e > s ? html.substring(s, e) : "审核未通过");
|
|
|
|
|
+ return r;
|
|
|
} catch (Exception e) { throw new SystemException(e.getMessage()); }
|
|
} catch (Exception e) { throw new SystemException(e.getMessage()); }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1018,19 +1020,20 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
String body = post(ORIGIN + "/htcsp/DocumentPrintAction.do?cmd=electronicPolicyEndorseDownload",
|
|
String body = post(ORIGIN + "/htcsp/DocumentPrintAction.do?cmd=electronicPolicyEndorseDownload",
|
|
|
buildDocumentHeaders(req.getCookie()), fd);
|
|
buildDocumentHeaders(req.getCookie()), fd);
|
|
|
HtCrawlerDownloadPolicyResponse res = JSONObject.parseObject(body, HtCrawlerDownloadPolicyResponse.class);
|
|
HtCrawlerDownloadPolicyResponse res = JSONObject.parseObject(body, HtCrawlerDownloadPolicyResponse.class);
|
|
|
- log.info("下载保单响应结果,{}", JSONObject.toJSONString(res));
|
|
|
|
|
|
|
+ log.info("华泰电子保单---订单号{},保单号{},下载保单响应结果,{}", order.getOrdersNo(), no, JSONObject.toJSONString(res));
|
|
|
DownloadPolicyResultVo r = new DownloadPolicyResultVo();
|
|
DownloadPolicyResultVo r = new DownloadPolicyResultVo();
|
|
|
List<HtCrawlerDownloadPolicyResponse.FtpdownloadJson> ftpdownloadJson = res.getFtpdownloadJson();
|
|
List<HtCrawlerDownloadPolicyResponse.FtpdownloadJson> ftpdownloadJson = res.getFtpdownloadJson();
|
|
|
if(!ftpdownloadJson.isEmpty()) {
|
|
if(!ftpdownloadJson.isEmpty()) {
|
|
|
if (jq) {
|
|
if (jq) {
|
|
|
r.setJqUrl(ftpdownloadJson.get(0).getDownurl());
|
|
r.setJqUrl(ftpdownloadJson.get(0).getDownurl());
|
|
|
r.setJqFlagUrl(ftpdownloadJson.get(1).getBzdownurl());
|
|
r.setJqFlagUrl(ftpdownloadJson.get(1).getBzdownurl());
|
|
|
- log.info("下载交强保单地址:{}", r.getJqUrl());
|
|
|
|
|
|
|
+ log.info("华泰电子保单---订单号{},保单号{},下载交强保单地址:{}", order.getOrdersNo(), no, r.getJqUrl());
|
|
|
} else {
|
|
} else {
|
|
|
r.setSyUrl(ftpdownloadJson.get(0).getDownurl());
|
|
r.setSyUrl(ftpdownloadJson.get(0).getDownurl());
|
|
|
- log.info("下载商业保单地址:{}", r.getSyUrl());
|
|
|
|
|
|
|
+ log.info("华泰电子保单---订单号{},保单号{},下载商业保单地址:{}", order.getOrdersNo(), no, r.getSyUrl());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ // 下载驾意险保单
|
|
|
if (StringUtils.isNotBlank(order.getJyPolicyno())) {
|
|
if (StringUtils.isNotBlank(order.getJyPolicyno())) {
|
|
|
// 1. 构造请求头
|
|
// 1. 构造请求头
|
|
|
HttpHeaders headers = getHeaders();
|
|
HttpHeaders headers = getHeaders();
|
|
@@ -1116,7 +1119,7 @@ public class HuaTaiCrawlerRequestImpl implements HuaTaiCrawlerRequest {
|
|
|
String jqApplication = "";
|
|
String jqApplication = "";
|
|
|
String fcxApplication = "";
|
|
String fcxApplication = "";
|
|
|
if ("已通过核保已实收".equals(orderStatus)) {
|
|
if ("已通过核保已实收".equals(orderStatus)) {
|
|
|
- orderStatusEnum = InsOrderStatusEnum.valueOf("PAY_PENDING");
|
|
|
|
|
|
|
+ orderStatusEnum = InsOrderStatusEnum.valueOf("UNDERWRITED"); // 已承保
|
|
|
orderStatus = orderStatusEnum.getCode();
|
|
orderStatus = orderStatusEnum.getCode();
|
|
|
List<Map<String, String>> fcxList = new ArrayList<>();
|
|
List<Map<String, String>> fcxList = new ArrayList<>();
|
|
|
// 1. 构建请求头 headers
|
|
// 1. 构建请求头 headers
|