Переглянути джерело

永安保单查询添加投保人身份证号

785834757 1 рік тому
батько
коміт
f8bc8b6376

+ 2 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/request/CrawlerBaseRequest.java

@@ -32,6 +32,8 @@ public class CrawlerBaseRequest implements Serializable {
     @JsonProperty(value = "proposalCheckNo")
     private String proposalCheckNo;
 
+
+
     public CrawlerBaseRequest(String orderNo, String username){
         this.orderNo = orderNo;
         this.username = username;

+ 24 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/request/CrawlerPolicyPrintRequest.java

@@ -0,0 +1,24 @@
+package com.ydtech.modules.order.entity.crawler.request;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.Data;
+
+
+/**
+ * 保单下载请求
+ */
+@Data
+public class CrawlerPolicyPrintRequest extends CrawlerBaseRequest{
+
+    /**
+     * 投保人身份证号
+     */
+    @JsonProperty(value = "idCard")
+    private String idCard;
+
+    public CrawlerPolicyPrintRequest(String orderNo, String username,String idCard){
+        this.setOrderNo(orderNo);
+        this.setUsername(username);
+        this.idCard = idCard;
+    }
+}

+ 5 - 2
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -445,6 +445,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         // 账号信息
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
         //组装参数
+
         CrawlerBaseRequest crawlerBaseRequest = new CrawlerBaseRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername());
         CrawlerPolicyPrintResponse response = insCrawlerOrderComponents.request(apiUrl, insAreaCompany.getCompanyId(),
                 PtlCrawlerApiType.API_6.getDesc(), crawlerBaseRequest, CrawlerPolicyPrintResponse.class);
@@ -737,12 +738,14 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
     @Override
     public HttpResult<Object> auditStatusQuery(String subOrderNo) {
         InsAreaCompany insAreaCompany = insAreaCompanyService.getById(subOrderNo);
+        InsOrders insOrders = insOrdersService.getById(insAreaCompany.getOrderno());
         String agreementId = insAreaCompany.getAgreementId();
         String apiUrl = ptlCrawlerApiService.getApiUrl(agreementId, PtlCrawlerApiType.API_8);
         // 账号信息
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
         //组装参数
-        CrawlerBaseRequest crawlerBaseRequest = new CrawlerBaseRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername());
+        CrawlerPolicyPrintRequest crawlerBaseRequest = new CrawlerPolicyPrintRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername()
+                ,insOrders.getApplyinfo().getString("identifyNumber"));
 
         CrawlerAuditResponse crawlerAuditResponse = insCrawlerOrderComponents.request(apiUrl, insAreaCompany.getCompanyId(),
                 PtlCrawlerApiType.API_8.getDesc(), crawlerBaseRequest, CrawlerAuditResponse.class);
@@ -866,7 +869,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
 
         //组装参数
-        CrawlerBaseRequest crawlerBaseRequest = new CrawlerBaseRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername());
+        CrawlerPolicyPrintRequest crawlerBaseRequest = new CrawlerPolicyPrintRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername(),insOrders.getApplyinfo().getString("identifyNumber"));
         CrawlerPolicyPrintResponse response = insCrawlerOrderComponents.request(apiUrl, insAreaCompany.getCompanyId(), PtlCrawlerApiType.API_6.getDesc(), crawlerBaseRequest, CrawlerPolicyPrintResponse.class);
         if (response.getCode() == 200) {
             //交强险标志地址