Browse Source

1. 永诚解决车辆匹配不准确问题。

ligang134 3 năm trước cách đây
mục cha
commit
cae7c363b9

+ 64 - 86
src/main/java/com/ydtech/modules/ins/service/impl/InsAlltrustApiServiceImpl.java

@@ -199,7 +199,6 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
     //
 
 
-
     public void gainVehicleModel(YcConfigureParameters ycConfigureParameters, CarInfoVo carInfo) {
 
         CarModel_Req carModelReq = new CarModel_Req();
@@ -213,7 +212,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
 
         log.info("===永诚--车型查询接口请求开始--" + carInfo.getLicenseNo() + "===");
 //        InsApiLog apiLog = httpPost(xmlMapper, m, YcBuildData.API_MODEL);
-        String responseData = httpPostResultLog(xmlMapper, m, YcBuildData.API_MODEL,"永诚API方式 - 车型查询 - ");
+        String responseData = httpPostResultLog(xmlMapper, m, YcBuildData.API_MODEL, "永诚API方式 - 车型查询 - ");
 //        String responseData = apiLog.getResponseData();
         log.info("===永诚--车型查询接口请求结束--" + carInfo.getLicenseNo() + "===");
         ModelsQueryResponse rd = null;
@@ -225,53 +224,35 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
         } catch (IOException e) {
             throw new SystemException("车型查询接口异常,请联系管理。");
         }
-        BigDecimal matchNum = BigDecimal.ZERO;
-
 
         if (CollUtil.isEmpty(rd.getVehicleInfoList())) throw new SystemException("永诚车型库查找失败");
 
         //获取上市年份大于等于注册日期的车辆信息
         List<ModelsQueryResponse.VehicleInfo> vehicleInfoList = rd.getVehicleInfoList().stream().filter(a -> DateTimeUtil.dateIsAfter(carInfo.getRegisterDate(), a.getVehicleYear())).collect(Collectors.toList());
 
+        //匹配的车辆信息数据  为空
         if (CollUtil.isEmpty(vehicleInfoList)) {
             carInfo.setModelCode(rd.getVehicleInfoList().get(0).getVehicleId());
 //                        carInfo.setCiModelCode(a.getModelCode());
             carInfo.setCiCarName(rd.getVehicleInfoList().get(0).getVehicleName());
             carInfo.setModelcname(rd.getVehicleInfoList().get(0).getVehicleName());
-            matchNum.add(BigDecimal.ONE);
-        } else {
-            //未匹配
-            if (matchNum == BigDecimal.ZERO) {
-                vehicleInfoList.stream().forEach(a -> {
-                    //购置价匹配
-                    if (a.getVehiclePrice().equals(carInfo.getPurchasePrice())) {
-                        carInfo.setModelCode(a.getVehicleId());
-                        //                        carInfo.setCiModelCode(a.getModelCode());
-                        carInfo.setCiCarName(a.getVehicleName());
-                        carInfo.setModelcname(a.getVehicleName());
-
-                        matchNum.add(BigDecimal.ONE);
-                        return;
-                    }
-
-                });
-            }
-
-            //未匹配
-            if (matchNum == BigDecimal.ZERO) {
-                carInfo.setModelCode(vehicleInfoList.get(0).getVehicleId());
-//                        carInfo.setCiModelCode(a.getModelCode());
-                carInfo.setCiCarName(vehicleInfoList.get(0).getVehicleName());
-                carInfo.setModelcname(vehicleInfoList.get(0).getVehicleName());
-            }
+            return;
         }
 
+        //匹配的车辆信息数据
+        ModelsQueryResponse.VehicleInfo matchVehicleInfo = vehicleInfoList.stream().filter(a -> a.getVehiclePrice().equals(carInfo.getPurchasePrice())).findFirst().orElse(null);
+        if (null != matchVehicleInfo) {
+            carInfo.setModelCode(matchVehicleInfo.getVehicleId());
+            carInfo.setCiCarName(matchVehicleInfo.getVehicleName());
+            carInfo.setModelcname(matchVehicleInfo.getVehicleName());
+            return;
+        }
 
-//            long count = vehicleInfoList.stream().filter(x -> x.getModelCode().equals(carInfo.getModelCode())).count();
-//
-//            if(count < 1 ){
-//
-//            }
+        //匹配的车辆信息数据里  未匹配成功   默认选择第一条
+        carInfo.setModelCode(vehicleInfoList.get(0).getVehicleId());
+//                        carInfo.setCiModelCode(a.getModelCode());
+        carInfo.setCiCarName(vehicleInfoList.get(0).getVehicleName());
+        carInfo.setModelcname(vehicleInfoList.get(0).getVehicleName());
 
 
     }
@@ -312,15 +293,15 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
         //组装参数
         Ruote m = Ruote.buildQuoteParam(yaQuoteInfoVo, ycConfigureParameters, apiComponents, adVo);
         //构造地区
-        buildRegion(m,yaQuoteInfoVo);
+        buildRegion(m, yaQuoteInfoVo);
 
         RuoteResponse rr = null;
         boolean boo = false;
         boolean isRenewal = true;
         boolean isBiRepeat = true;
-        String textHead = "==========永诚API方式 - 车架号:"+carInfo.getVinNo()+" - 报价 ";
+        String textHead = "==========永诚API方式 - 车架号:" + carInfo.getVinNo() + " - 报价 ";
         while (!boo) {
-            rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0,textHead);
+            rr = requestApi(m, new RuoteResponse(), iac, YcBuildData.API_QUOTE, InsQuoteFlow.Q_S_0, textHead);
             //处理返回信息
             //1、交强险重复投保处理
             boo = ciRepetitionInsure(rr, m);
@@ -355,10 +336,10 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             }
 
             int codeErrorNum = 0;
-            if(codeErrorNum > 3) boo = true;
+            if (codeErrorNum > 3) boo = true;
             //转保验证码错误
             boo = reinsuranceCodeError(rr, m);
-            if(!boo){
+            if (!boo) {
                 codeErrorNum++;
                 continue;
             }
@@ -404,7 +385,6 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
     }
 
 
-
     /**
      * 报价  交强险 重复 投保业务处理
      */
@@ -491,7 +471,6 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             m.getRequestLabel().getCondition().getVhl().setCBusType("0");
 
 
-
             return false;
 
         }
@@ -505,7 +484,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
      */
     public boolean reinsuranceCodeError(RuoteResponse rr, Ruote m) {
 
-        if(rr.getHead().getErrorCode().equals("009999") && rr.getHead().getErrorMessage().contains("录入的校验码有误")){
+        if (rr.getHead().getErrorCode().equals("009999") && rr.getHead().getErrorMessage().contains("录入的校验码有误")) {
             requestInfoList.add(rr.getHead().getErrorMessage());
             //转保信息清空  重新报价
             m.getRequestLabel().getCondition().getVhl().setCBusType("0");
@@ -532,7 +511,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
 
             //转保调用自动识别转保码
             if (StringUtils.isNotEmpty(cCheckCodeJQ) || StringUtils.isNotEmpty(cCheckCodeSY)) {
-                log.info(String.format("永诚API方式 - xml请求 报价,车牌号《%s》 ->   转保业务处理----------------",m.getRequestLabel().getCondition().getVhl().getCPlateNo()));
+                log.info(String.format("永诚API方式 - xml请求 报价,车牌号《%s》 ->   转保业务处理----------------", m.getRequestLabel().getCondition().getVhl().getCPlateNo()));
 
 //                //丢失交强校验码图串
 //                if (StringUtils.isEmpty(cCheckCodeJQ) && StringUtils.isNotEmpty(cQryCdeJQ)) {
@@ -629,7 +608,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             log.debug("=========永诚API方式 - xml请求 - 核保开始======");
             //接口请求
 //            InsApiLog apiLog = httpPost(xmlMapper, m, YcBuildData.API_AUDIT);
-            String responseData = httpPostResultLog(xmlMapper, m, YcBuildData.API_AUDIT,"永诚API方式 - 核保 - ");
+            String responseData = httpPostResultLog(xmlMapper, m, YcBuildData.API_AUDIT, "永诚API方式 - 核保 - ");
             log.debug("=========永诚API方式 - xml请求 - 核保结束!======");
 //            verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_1);
 //            String responseData = apiLog.getResponseData();
@@ -720,7 +699,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             ObjectMapper xmlMapper = gainXmlMapper();
             //接口请求
 //            apiLog = httpPost(xmlMapper, iUp, YcBuildData.API_UPLOAD);
-            String responseData = httpPostResultLog(xmlMapper, iUp, YcBuildData.API_UPLOAD,"永诚API方式 - 影像上传 - ");
+            String responseData = httpPostResultLog(xmlMapper, iUp, YcBuildData.API_UPLOAD, "永诚API方式 - 影像上传 - ");
             verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_2);
             try {
 //                String responseData = apiLog.getResponseData();
@@ -755,7 +734,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             ObjectMapper xmlMapper = gainXmlMapper();
             //接口请求
             log.debug("=========永诚API方式 - xml请求 - 获取缴费链接开始======");
-            String responseData = httpPostResultLog(xmlMapper, pay, YcBuildData.API_PAY,"永诚API方式 - 获取缴费链接 - ");
+            String responseData = httpPostResultLog(xmlMapper, pay, YcBuildData.API_PAY, "永诚API方式 - 获取缴费链接 - ");
 //            InsApiLog apiLog = httpPost(xmlMapper, pay, YcBuildData.API_PAY);
             log.debug("=========永诚API方式 - xml请求 - 获取缴费链接结束!======");
 //            verifyRequest(apiLog, iac, InsQuoteFlow.Q_S_3);
@@ -808,7 +787,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             ObjectMapper xmlMapper = gainXmlMapper();
             //接口请求
 //            InsApiLog apiLog = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY);
-            String respData = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY,"永诚API方式 - 补传回调 - ");
+            String respData = httpPostResultLog(xmlMapper, o, YcBuildData.API_ORDER_QUERY, "永诚API方式 - 补传回调 - ");
 
 //            log.info("永诚API方式 - xml请求 - 参数:" + apiLog.getRequestData());
 //            log.info("永诚API方式 - xml请求 ------------分割线----------------");
@@ -899,7 +878,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
         HttpResult httpResult = new HttpResult();
         try {
             InsAreaCompany iac = insAreaCompanyService.getById(policyPrintVo.getCompanyId());
-            AssertionUtils.isEmpty(iac,"报价订单不存在");
+            AssertionUtils.isEmpty(iac, "报价订单不存在");
             InsOrders order = insOrdersService.getById(iac.getOrderno());
 
 
@@ -909,10 +888,10 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             if (policyPrintVo.getType().equals("2")) {
                 Map m = new HashMap();
 
-                String jqFlagUrl = gainExistCarInsPolicy(licensePlate + "-交强险标志.pdf",licensePlate);
-                String jqUrl = gainExistCarInsPolicy(licensePlate + "-交强险保单.pdf",licensePlate);
-                String syUrl = gainExistCarInsPolicy(licensePlate + "-商业险保单.pdf",licensePlate);
-                if(null !=jqFlagUrl || null != jqUrl || null != syUrl ){
+                String jqFlagUrl = gainExistCarInsPolicy(licensePlate + "-交强险标志.pdf", licensePlate);
+                String jqUrl = gainExistCarInsPolicy(licensePlate + "-交强险保单.pdf", licensePlate);
+                String syUrl = gainExistCarInsPolicy(licensePlate + "-商业险保单.pdf", licensePlate);
+                if (null != jqFlagUrl || null != jqUrl || null != syUrl) {
                     m.put("jqFlagUrl", jqFlagUrl);
                     m.put("jqUrl", jqUrl);
                     m.put("syUrl", syUrl);
@@ -922,7 +901,6 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             }
 
 
-
             // 获取协议配置信息
             YcConfigureParameters ycConfigureParameters = gainYcConfigParams(iac.getAgreementId());
             String policyNo = policyPrintVo.getRiskCode().equals("0507") ? iac.getJqpolicyno() : iac.getSypolicyno();
@@ -934,7 +912,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             ObjectMapper xmlMapper = gainXmlMapper();
             //接口请求
             log.debug("=========永诚API方式 - xml请求 - 获取保单开始======");
-            String responseData = httpPostResultLog(xmlMapper, p, YcBuildData.API_GUARANTEE_SLIP,"永诚API方式 - 获取保单 - ");
+            String responseData = httpPostResultLog(xmlMapper, p, YcBuildData.API_GUARANTEE_SLIP, "永诚API方式 - 获取保单 - ");
 
 //            InsApiLog apiLog = httpPost(xmlMapper, p, YcBuildData.API_GUARANTEE_SLIP);
             log.debug("=========永诚API方式 - xml请求 - 获取保单结束!======");
@@ -947,19 +925,19 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             if (pResp.getHead().getResponseCompleteMessageStatus().getMessageStatusCode().equals("E0000")) {
                 Map m = new HashMap();
 
-                String bzInsUrl = StringUtils.isNotEmpty(pResp.getPolicyBZUrl())?pResp.getPolicyBZUrl().replaceAll(";pkid", "&pkid"):"";
-                String jqFlagUrl = gainCarInsPolicy(bzInsUrl,licensePlate + "-交强险标志.pdf",licensePlate);
+                String bzInsUrl = StringUtils.isNotEmpty(pResp.getPolicyBZUrl()) ? pResp.getPolicyBZUrl().replaceAll(";pkid", "&pkid") : "";
+                String jqFlagUrl = gainCarInsPolicy(bzInsUrl, licensePlate + "-交强险标志.pdf", licensePlate);
                 if (policyPrintVo.getType().equals("1")) {
                     m.put("jqFlagUrl", jqFlagUrl);
                     m.put("jqUrl", "");
                     m.put("syUrl", "");
                 }
                 if (policyPrintVo.getType().equals("2")) {
-                    String jqInsUrl = StringUtils.isNotEmpty(pResp.getJqpolicyUrl())?pResp.getJqpolicyUrl().replaceAll(";pkid", "&pkid"):"";
-                    String syInsUrl = StringUtils.isNotEmpty(pResp.getSypolicyUrl())?pResp.getSypolicyUrl().replaceAll(";pkid", "&pkid"):"";
+                    String jqInsUrl = StringUtils.isNotEmpty(pResp.getJqpolicyUrl()) ? pResp.getJqpolicyUrl().replaceAll(";pkid", "&pkid") : "";
+                    String syInsUrl = StringUtils.isNotEmpty(pResp.getSypolicyUrl()) ? pResp.getSypolicyUrl().replaceAll(";pkid", "&pkid") : "";
 
-                    String jqUrl = gainCarInsPolicy(jqInsUrl,licensePlate + "-交强险保单.pdf",licensePlate);
-                    String syUrl = gainCarInsPolicy(syInsUrl,licensePlate + "-商业险保单.pdf",licensePlate);
+                    String jqUrl = gainCarInsPolicy(jqInsUrl, licensePlate + "-交强险保单.pdf", licensePlate);
+                    String syUrl = gainCarInsPolicy(syInsUrl, licensePlate + "-商业险保单.pdf", licensePlate);
 
                     m.put("jqFlagUrl", jqFlagUrl);
                     m.put("jqUrl", jqUrl);
@@ -1005,7 +983,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             ObjectMapper xmlMapper = gainXmlMapper();
             //接口请求
             log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
-            String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT,"永诚API方式 - 获取意健险方案及险种 - ");
+            String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
 //            InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
             log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
 //            verifyRequest(apiLog, iac,InsQuoteFlow.);
@@ -1156,7 +1134,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
         ObjectMapper xmlMapper = gainXmlMapper();
         //接口请求
         log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询开始======");
-        String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT,"永诚API方式 - 获取意健险方案及险种 - ");
+        String responseData = httpPostResultLog(xmlMapper, accident, YcBuildData.API_ACCIDENT, "永诚API方式 - 获取意健险方案及险种 - ");
 //        InsApiLog apiLog = httpPost(xmlMapper, accident, YcBuildData.API_ACCIDENT);
         log.debug("=========永诚API方式 - xml请求 - 获取意健险方案及险种查询结束!======");
 //            verifyRequest(apiLog, iac,InsQuoteFlow.);
@@ -1330,7 +1308,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
      * @author: lig
      * @date: 2023年09月02日 0002
      */
-    private <T> String httpPostResultLog(ObjectMapper mapper, T requestData, String apiName,String textHead) {
+    private <T> String httpPostResultLog(ObjectMapper mapper, T requestData, String apiName, String textHead) {
 
         String xmlString = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tns=\"http://newWS.front.app.echannel.ebiz.alltrust.com/\">";
         xmlString += "<soapenv:Body>";
@@ -1345,7 +1323,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
             throw new RuntimeException("永诚API方式-xml转换失败");
         }
 //        InsApiLog iplog = HttpXmlUtil.sendXmlPost(apiComponents.getUrl() + apiName, xmlString);
-        return HttpXmlUtil.sendXmlPostReq(apiComponents.getUrl() + apiName, xmlString, log,textHead);
+        return HttpXmlUtil.sendXmlPostReq(apiComponents.getUrl() + apiName, xmlString, log, textHead);
 
     }
 //    /**
@@ -1773,7 +1751,7 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
     }
 
 
-    private void buildRegion(Ruote m,BaseQuoteInfoVo yaQuoteInfoVo) {
+    private void buildRegion(Ruote m, BaseQuoteInfoVo yaQuoteInfoVo) {
         //车主
         CustomerInfoVo owner = yaQuoteInfoVo.getOwnerInfo();
         //被保人
@@ -1786,27 +1764,27 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
         String area = "";
 
 
-        if(null != owner){
+        if (null != owner) {
             InsAlltrustRegion ownerRegion = findRegion(owner);
-            if(null != ownerRegion){
+            if (null != ownerRegion) {
                 m.getRequestLabel().getCondition().getVhlowner().setCProvince(ownerRegion.getProvinceCode());
                 m.getRequestLabel().getCondition().getVhlowner().setCCity(ownerRegion.getCityCode());
                 m.getRequestLabel().getCondition().getVhlowner().setCCounty(ownerRegion.getAreaCode());
             }
         }
 
-        if(null != insured){
+        if (null != insured) {
             InsAlltrustRegion insuredRegion = findRegion(insured);
-            if(null != insuredRegion){
+            if (null != insuredRegion) {
                 m.getRequestLabel().getCondition().getInsured().setCProvince(insuredRegion.getProvinceCode());
                 m.getRequestLabel().getCondition().getInsured().setCCity(insuredRegion.getCityCode());
                 m.getRequestLabel().getCondition().getInsured().setCCounty(insuredRegion.getAreaCode());
             }
         }
 
-        if(null != applicant){
+        if (null != applicant) {
             InsAlltrustRegion applicantRegion = findRegion(applicant);
-            if(null != applicantRegion){
+            if (null != applicantRegion) {
                 m.getRequestLabel().getCondition().getApplicant().setCProvince(applicantRegion.getProvinceCode());
                 m.getRequestLabel().getCondition().getApplicant().setCCity(applicantRegion.getCityCode());
                 m.getRequestLabel().getCondition().getApplicant().setCCounty(applicantRegion.getAreaCode());
@@ -1815,23 +1793,23 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
 
     }
 
-    private InsAlltrustRegion findRegion(CustomerInfoVo info){
+    private InsAlltrustRegion findRegion(CustomerInfoVo info) {
         String province = info.getProvince();
         String city = info.getCity();
         String area = info.getCounty();
 
         //lig 2023-09-21 临时解决   页面解决后可删除。
-        if(StringUtils.isEmpty(province) && StringUtils.isEmpty(city) && StringUtils.isEmpty(area)){
+        if (StringUtils.isEmpty(province) && StringUtils.isEmpty(city) && StringUtils.isEmpty(area)) {
             throw new SystemException("永诚报价需要录入省市县");
         }
 
         LambdaQueryWrapper<InsAlltrustRegion> lqw = new LambdaQueryWrapper<>();
-        lqw.eq(StringUtils.isNotEmpty(province),InsAlltrustRegion::getProvince, province);
-        lqw.eq(StringUtils.isNotEmpty(city),InsAlltrustRegion::getCity, city);
-        lqw.eq(StringUtils.isNotEmpty(area),InsAlltrustRegion::getArea, area);
+        lqw.eq(StringUtils.isNotEmpty(province), InsAlltrustRegion::getProvince, province);
+        lqw.eq(StringUtils.isNotEmpty(city), InsAlltrustRegion::getCity, city);
+        lqw.eq(StringUtils.isNotEmpty(area), InsAlltrustRegion::getArea, area);
         try {
             return insAlltrustRegionMapper.selectOne(lqw);
-        }catch (Exception e){
+        } catch (Exception e) {
             throw new SystemException("永诚 - 省市县校验失败," + province + city + area);
         }
     }
@@ -1965,9 +1943,9 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
      * @author: lig
      * @date: 2023年05月18日 0018
      */
-    private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf,String textHead) {
-        String responseData = httpPostResultLog(xmlMapper, m, reqUrl,textHead);
-        if(responseData.contains("报价返回信息异常")){
+    private <T> T requestApi(Object m, T response, InsAreaCompany iac, String reqUrl, InsQuoteFlow iqf, String textHead) {
+        String responseData = httpPostResultLog(xmlMapper, m, reqUrl, textHead);
+        if (responseData.contains("报价返回信息异常")) {
             throw new SystemException("永诚报价请求负荷,请稍后重试。");
         }
 
@@ -2019,23 +1997,23 @@ public class InsAlltrustApiServiceImpl implements InsAlltrustApiService {
 
 
     /**
-     *  获取车险保单
+     * 获取车险保单
      *
      * @author: lig
      * @date: 2023年09月21日 0021
      */
-    public String gainCarInsPolicy(String url,String fileName,String licensePlate){
+    public String gainCarInsPolicy(String url, String fileName, String licensePlate) {
         String dir = "carInsPolicy/" + licensePlate + "/";
-        return FileUtil.netUrlToFile(url,dir,fileName,uploadFilePath,apiUrl + showFileUrl);
+        return FileUtil.netUrlToFile(url, dir, fileName, uploadFilePath, apiUrl + showFileUrl);
     }
 
     /**
-     *  获取《存在》的保单地址
+     * 获取《存在》的保单地址
      *
      * @author: lig
      * @date: 2023年09月21日 0021
      */
-    public String gainExistCarInsPolicy(String fileName,String licensePlate){
+    public String gainExistCarInsPolicy(String fileName, String licensePlate) {
         String dir = SysConstants.CAR_INS_POLICY + "/" + licensePlate + "/";
 
         return FileUtil.fileExist(dir, fileName, uploadFilePath, apiUrl + showFileUrl);