Quellcode durchsuchen

保单位置修改

wks vor 2 Jahren
Ursprung
Commit
9855a75ee8

+ 4 - 4
src/main/java/com/ydtech/modules/order/service/impl/BoHaiOrderApiServiceImpl.java

@@ -405,21 +405,21 @@ public class BoHaiOrderApiServiceImpl implements BoHaiOrderApiService {
         String licenseno = insOrders.getLicenseno();
         if (StringUtils.isNotEmpty(data.getTrafficEPolicyUrl())) {
             crawlerPolicyPrintVo.setJqxPolicyUrl(fileComponents.gainCarInsPolicy(data.getTrafficEPolicyUrl(),
-                    licenseno + "-" + insAreaCompany.getJqpolicyno() + "-交强险保单.pdf", licenseno, customerInfoVo.getIdentifyNumber()));
+                    licenseno + "-" + insAreaCompany.getJqpolicyno() + "-交强险保单.pdf", insAreaCompany.getId(), customerInfoVo.getIdentifyNumber()));
             crawlerPolicyPrintVo.setJqxFlagUrl(fileComponents.gainCarInsPolicy(data.getTrafficEFlagUrl(),
-                    licenseno + "-" + insAreaCompany.getJqpolicyno() + "-交强险标志.pdf", licenseno, customerInfoVo.getIdentifyNumber()));
+                    licenseno + "-" + insAreaCompany.getJqpolicyno() + "-交强险标志.pdf", insAreaCompany.getId(), customerInfoVo.getIdentifyNumber()));
 
         }
         if (StringUtils.isNotEmpty(data.getBusinessEPolicyUrl())) {
             crawlerPolicyPrintVo.setSyxPolicyUrl(fileComponents.gainCarInsPolicy(data.getBusinessEPolicyUrl(),
-                    licenseno + "-" + insAreaCompany.getSypolicyno() + "-商业险保单.pdf", licenseno, customerInfoVo.getIdentifyNumber()));
+                    licenseno + "-" + insAreaCompany.getSypolicyno() + "-商业险保单.pdf", insAreaCompany.getId(), customerInfoVo.getIdentifyNumber()));
         }
 
         if (StringUtils.isNotEmpty(data.getAcciEPolicyUrl())) {
             List<CrawlerPolicyPrintVo.JyxInfoListDTO> jyxInfoListDTOS = new ArrayList<>();
             CrawlerPolicyPrintVo.JyxInfoListDTO jyxInfoListDTO = new CrawlerPolicyPrintVo.JyxInfoListDTO();
             jyxInfoListDTO.setJyxPolicyUrl(fileComponents.gainCarInsPolicy(data.getAcciEPolicyUrl(),
-                    licenseno + "-" + insAreaCompany.getSypolicyno() + "-非车险保单.pdf", licenseno, customerInfoVo.getIdentifyNumber()));
+                    licenseno + "-" + insAreaCompany.getSypolicyno() + "-非车险保单.pdf", insAreaCompany.getId(), customerInfoVo.getIdentifyNumber()));
             jyxInfoListDTOS.add(jyxInfoListDTO);
             crawlerPolicyPrintVo.setJyxInfoList(jyxInfoListDTOS);
         }

+ 3 - 3
src/main/java/com/ydtech/modules/order/service/impl/DaJiaOrderServiceImpl.java

@@ -875,7 +875,7 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
                     NVHLODR2007Response nvhlodr2007Response = daJiaRequestApiComponents.accidentPremiumWarranty(nvhlodr2007Request);
                     if ("2000".equals(nvhlodr2007Response.getStatus())) {
                         url = gainCarInsPolicy(nvhlodr2007Response.getPolicyInfos().get(0).getCPdfUrl(),
-                                insOrders.getLicenseno() + templateName, identifyNo);
+                                insOrders.getLicenseno() + templateName, insAreaCompany.getId());
                     }
                 }
             } else {
@@ -887,7 +887,7 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
                         //下载标志
                         if (vhlins2005Response.getResult().size() > 0) {
                             VHLINS2005Response.ResultDTO resultDTO = vhlins2005Response.getResult().get(0);
-                            url = gainCarInsPolicy(resultDTO.getReturnBzUrl(), insOrders.getLicenseno() + templateName, identifyNo);
+                            url = gainCarInsPolicy(resultDTO.getReturnBzUrl(), insOrders.getLicenseno() + templateName, insAreaCompany.getId());
                         } else {
                             return HttpResult.error("获取保单失败");
                         }
@@ -895,7 +895,7 @@ public class DaJiaOrderServiceImpl implements DaJiaOrderService {
                         //获取保单
                         if (vhlins2005Response.getResult().size() > 0) {
                             VHLINS2005Response.ResultDTO resultDTO = vhlins2005Response.getResult().get(0);
-                            url = gainCarInsPolicy(resultDTO.getReturnUrl(), insOrders.getLicenseno() + templateName, identifyNo);
+                            url = gainCarInsPolicy(resultDTO.getReturnUrl(), insOrders.getLicenseno() + templateName, insAreaCompany.getId());
                         } else {
                             return HttpResult.error("获取保单失败");
                         }

+ 1 - 1
src/main/java/com/ydtech/modules/order/service/impl/GuorenOrderApiServiceImpl.java

@@ -541,7 +541,7 @@ public class GuorenOrderApiServiceImpl implements GuorenOrderApiService {
                 throw new SystemException("保险编号异常");
         }
 
-        String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, licensePlate);
+        String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, insAreaCompany.getId());
         return HttpResult.ok("成功", transferUrl);
 
     }

+ 3 - 3
src/main/java/com/ydtech/modules/order/service/impl/HuaTaiOrderApiServiceImpl.java

@@ -457,10 +457,10 @@ public class HuaTaiOrderApiServiceImpl implements HuaTaiOrderApiService {
                 for (HuaTaiInsurancePolicyPrintResponse.ElecDownLoadResultDto elecDownLoadResultDto : urlList) {
                     String url = elecDownLoadResultDto.getDownURL();
                     if (InsuranceRisk.TRAFFIC.getCode().equals(riskCode)) {
-                        crawlerPolicyPrintVo.setJqxPolicyUrl(gainCarInsPolicy(url, licensePlate + "-交强险保单.pdf", licensePlate, password));
-                        crawlerPolicyPrintVo.setJqxFlagUrl(gainCarInsPolicy(url, licensePlate + "-交强险标志.pdf", licensePlate, password));
+                        crawlerPolicyPrintVo.setJqxPolicyUrl(gainCarInsPolicy(url, licensePlate + "-交强险保单.pdf", insAreaCompany.getId(), password));
+                        crawlerPolicyPrintVo.setJqxFlagUrl(gainCarInsPolicy(url, licensePlate + "-交强险标志.pdf", insAreaCompany.getId(), password));
                     } else if (InsuranceRisk.BUSINESS.getCode().equals(riskCode)) {
-                        crawlerPolicyPrintVo.setSyxPolicyUrl(gainCarInsPolicy(url, licensePlate + "-商业险保单.pdf", licensePlate, password));
+                        crawlerPolicyPrintVo.setSyxPolicyUrl(gainCarInsPolicy(url, licensePlate + "-商业险保单.pdf", insAreaCompany.getId(), password));
                     }
                     /**
                      * 先下载到本地,然后再解压到固定路径

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

@@ -262,14 +262,14 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         }
 
         CrawlerPolicyPrintVo crawlerPolicyPrintVo = new CrawlerPolicyPrintVo();
-        crawlerPolicyPrintVo.setJqxFlagUrl(gainCarInsPolicy(response.getJqxFlagUrl(), licensePlate + "-交强险标志.pdf", licensePlate));
-        crawlerPolicyPrintVo.setJqxPolicyUrl(gainCarInsPolicy(response.getJqxPolicyUrl(), licensePlate + "-交强险保单.pdf", licensePlate));
-        crawlerPolicyPrintVo.setSyxPolicyUrl(gainCarInsPolicy(response.getSyxPolicyUrl(), licensePlate + "-商业险保单.pdf", licensePlate));
+        crawlerPolicyPrintVo.setJqxFlagUrl(gainCarInsPolicy(response.getJqxFlagUrl(), licensePlate + "-交强险标志.pdf", insAreaCompany.getId()));
+        crawlerPolicyPrintVo.setJqxPolicyUrl(gainCarInsPolicy(response.getJqxPolicyUrl(), licensePlate + "-交强险保单.pdf", insAreaCompany.getId()));
+        crawlerPolicyPrintVo.setSyxPolicyUrl(gainCarInsPolicy(response.getSyxPolicyUrl(), licensePlate + "-商业险保单.pdf", insAreaCompany.getId()));
         crawlerPolicyPrintVo.setJyxInfoList(response.getJyxInfoList().stream().map(x -> {
             CrawlerPolicyPrintVo.JyxInfoListDTO jyxInfoListDTO = new CrawlerPolicyPrintVo.JyxInfoListDTO();
             jyxInfoListDTO.setApplication(x.getApplication());
             jyxInfoListDTO.setJyxPolicyUrl(gainCarInsPolicy(x.getJyxPolicyUrl(), licensePlate + "-" + x.getApplication() + "-非车险保单.pdf",
-                    licensePlate));
+                    insAreaCompany.getId()));
             return jyxInfoListDTO;
         }).collect(Collectors.toList()));
         return HttpResult.ok(crawlerPolicyPrintVo);

+ 4 - 4
src/main/java/com/ydtech/modules/order/service/impl/YongchengOrderApiServiceImpl.java

@@ -972,21 +972,21 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
                 //标志
                 if (StringUtils.isNotEmpty(pResp.getPolicyBZUrl())) {
                     String bzInsUrl = pResp.getPolicyBZUrl().replaceAll(";pkid", "&pkid");
-                    String jqFlagUrl = gainCarInsPolicy(bzInsUrl, licensePlate + policyNo + jqbz, licensePlate);
+                    String jqFlagUrl = gainCarInsPolicy(bzInsUrl, licensePlate + policyNo + jqbz, iac.getId());
                     cipDto.setJqFlagUrl(jqFlagUrl);
                 }
 
                 //交强
                 if (StringUtils.isNotEmpty(pResp.getJqpolicyUrl())) {
                     String jqInsUrl = pResp.getJqpolicyUrl().replace(";pkid", "&pkid");
-                    String jqUrl = gainCarInsPolicy(jqInsUrl, licensePlate + policyNo + jqbd, licensePlate);
+                    String jqUrl = gainCarInsPolicy(jqInsUrl, licensePlate + policyNo + jqbd, iac.getId());
                     cipDto.setJqUrl(jqUrl);
                 }
 
                 //商业
                 if (StringUtils.isNotEmpty(pResp.getSypolicyUrl())) {
                     String syInsUrl = pResp.getSypolicyUrl().replace(";pkid", "&pkid");
-                    String syUrl = gainCarInsPolicy(syInsUrl, licensePlate + policyNo + sybd, licensePlate);
+                    String syUrl = gainCarInsPolicy(syInsUrl, licensePlate + policyNo + sybd, iac.getId());
                     cipDto.setSyUrl(syUrl);
 
                 }
@@ -994,7 +994,7 @@ public class YongchengOrderApiServiceImpl implements YongchengOrderApiService {
                 // 非车险
                 if (StringUtils.isNotEmpty(pResp.getYwpolicUrl())) {
                     String jyInsUrl = pResp.getYwpolicUrl().replace(";pkid", "&pkid");
-                    String jyUrl = gainCarInsPolicy(jyInsUrl, licensePlate + policyNo + jybd, licensePlate);
+                    String jyUrl = gainCarInsPolicy(jyInsUrl, licensePlate + policyNo + jybd, iac.getId());
                     cipDto.setJyUrl(jyUrl);
                 }
 

+ 1 - 1
src/main/java/com/ydtech/modules/order/service/impl/ZhongMeiOrderApiServiceImpl.java

@@ -433,7 +433,7 @@ public class ZhongMeiOrderApiServiceImpl implements ZhongMeiOrderApiService {
                     }
 
                 }
-                String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, licensePlate);
+                String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, insAreaCompany.getId());
                 List<String> transferUrlList = new ArrayList<>();
                 transferUrlList.add(transferUrl);
                 response.setDownloadUrl(transferUrlList);

+ 1 - 1
src/main/java/com/ydtech/modules/order/service/impl/ZijinOrderApiServiceImpl.java

@@ -326,7 +326,7 @@ public class ZijinOrderApiServiceImpl implements ZijinOrderApiService {
 
         String code = busType.getCode();
         String url = zijinRequestApiComponents.getDownLoadDocumentUrl(busNo, code, identifyNo);
-        String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, licensePlate);
+        String transferUrl = gainCarInsPolicy(url, licensePlate + templateName, insAreaCompany.getId());
         return HttpResult.ok("生成成功", transferUrl);
     }