Преглед на файлове

update 下载保单添加协议id

wks преди 5 месеца
родител
ревизия
d290b3a1bf

+ 2 - 1
src/main/java/com/ydtech/modules/order/entity/crawler/request/CrawlerPolicyPrintRequest.java

@@ -16,9 +16,10 @@ public class CrawlerPolicyPrintRequest extends CrawlerBaseRequest{
     @JsonProperty(value = "idCard")
     private String idCard;
 
-    public CrawlerPolicyPrintRequest(String orderNo, String username,String idCard){
+    public CrawlerPolicyPrintRequest(String orderNo, String username, String idCard, String agreementId){
         this.setOrderNo(orderNo);
         this.setUsername(username);
+        this.setAgreementId(agreementId);
         this.idCard = idCard;
     }
 }

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

@@ -828,7 +828,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
         //组装参数
         CrawlerPolicyPrintRequest crawlerBaseRequest = new CrawlerPolicyPrintRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername()
-                ,insOrders.getApplyinfo().getString("identifyNumber"));
+                ,insOrders.getApplyinfo().getString("identifyNumber"), agreementId);
 
         CrawlerAuditResponse crawlerAuditResponse = insCrawlerOrderComponents.request(apiUrl, insAreaCompany.getCompanyId(),
                 PtlCrawlerApiType.API_8.getDesc(), crawlerBaseRequest, CrawlerAuditResponse.class);
@@ -958,7 +958,7 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         PtlAgreementAttribution ptlAgreementAttribution = ptlAgreementAttributionService.getById(insAreaCompany.getAgreementId());
 
         //组装参数
-        CrawlerPolicyPrintRequest crawlerBaseRequest = new CrawlerPolicyPrintRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername(),insOrders.getApplyinfo().getString("identifyNumber"));
+        CrawlerPolicyPrintRequest crawlerBaseRequest = new CrawlerPolicyPrintRequest(insAreaCompany.getInsOrderNo(), ptlAgreementAttribution.getUsername(),insOrders.getApplyinfo().getString("identifyNumber"), insAreaCompany.getAgreementId());
         CrawlerPolicyPrintResponse response = insCrawlerOrderComponents.request(apiUrl, insAreaCompany.getCompanyId(), PtlCrawlerApiType.API_6.getDesc(), crawlerBaseRequest, CrawlerPolicyPrintResponse.class);
         if (response.getCode() == 200) {
             //交强险标志地址