Explorar el Código

提交平安生成签章链接保存到数据库
平安车型查询优化
平安状态更新优化

hxl13994548489 hace 2 años
padre
commit
4ead21d1da

+ 2 - 0
src/main/java/com/ydtech/modules/order/controller/PingAnOrderApiController.java

@@ -87,6 +87,8 @@ public class PingAnOrderApiController {
     }
 
 
+
+
     /**
      *  @version
      *  @author: hxl

+ 1 - 1
src/main/java/com/ydtech/modules/order/entity/api/pingan/response/IndexResponse.java

@@ -130,7 +130,7 @@ public class IndexResponse extends PingAnBaseResponse {
      * M 必然返回
      * 中保信平台车型信息返回开关,机构维度
      */
-    private boolean showCircModelsSwitch;
+    private String showCircModelsSwitch;
     /**
      * C 条件出现
      * 业务来源(北京地区兼业代理监管新增返回)

+ 309 - 36
src/main/java/com/ydtech/modules/order/entity/api/pingan/response/SearchPAVehicleListResponse.java

@@ -1,5 +1,6 @@
 package com.ydtech.modules.order.entity.api.pingan.response;
 
+import com.beust.ah.A;
 import com.ydtech.modules.order.entity.filter.CarModelsFilter;
 import com.ydtech.modules.order.entity.vo.CoreModelsVo;
 import lombok.AllArgsConstructor;
@@ -8,6 +9,7 @@ import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
 
 import java.io.Serializable;
+import java.util.ArrayList;
 import java.util.List;
 
 
@@ -24,26 +26,106 @@ public class SearchPAVehicleListResponse extends PingAnBaseResponse {
 
     private static final long serialVersionUID = 3896621571201019470L;
 
-    private List<ModelsDto> models;
+    /**
+     * 组织机构代码证、营业执照校验不通过提示
+     * 过户车、车主信息与上年不一致但是不阻断流程的提示信息
+     * 有内容则展示,可以忽略继续后续流程。过户不阻断可能影响退保操作
+     */
+    private String validMessage;
 
+    /***
+     *  增值服务费折服联动开关   M		true/false
+     */
+    private String  clauseCaseSwitch;
+
+    /***
+     *  M	0,2新保,续保	0
+     */
+    private String  bizRenewalType;
+
+    /***
+     *  M	0,2新保,1续保	0
+     */
+    private String  forceRenewalType;
+
+    /***
+     *  M	true,false商业险是否已开通电子保单
+     */
+    private String  isBizElectronicPolicy;
+
+    /***
+     *  M	true,false交强险是否已开通电子保单
+     */
+    private String  isForceElectronicPolicy;
+
+    /***
+     * 商业险信息
+     */
+    private BizQuoteDto  bizQuote;
+
+    /***
+     * 交强险信息
+     */
+    private ForceQuote  forceQuote;
     @AllArgsConstructor
     @NoArgsConstructor
     @Data
-    public static class ModelsDto implements Serializable, CarModelsFilter  {
-
+    public static class BizQuoteDto implements Serializable{
         /**
-         * 车型编码索引
+         *  M	商业险默认起保日期  yyyy-mm-dd hh:mm:ss	2017-04-07 00:00:00
          */
-        private String modelIndex;
+        private String beginDate;
+        /***
+         *   C	是否为过户车  是-1,否-0	0
+         */
+        private String specialCarFlag;
+        /***
+         *   	C	过户日期  yyyy-mm-dd
+         */
+        private String specialCarDate;
+    }
+    @AllArgsConstructor
+    @NoArgsConstructor
+    @Data
+    public static class ForceQuote implements Serializable{
+        /**
+         *  M	交强险默认起保日期
+         */
+        private String beginDate;
+    }
+    /**
+     * C	当前机构是否支持配送  true,false
+     */
+    private String  hasDelivery;
+
+    /***
+     *  (showCircModelsSwitch为false时返回
+     */
+    private List<ModelsDto> models=new ArrayList<>();
+    @AllArgsConstructor
+    @NoArgsConstructor
+    @Data
+    /***
+     * models[]
+     * (showCircModelsSwitch为false时返回)
+     */
+    public static class ModelsDto implements Serializable, CarModelsFilter {
+
+        /***
+         *  精友车型编码
+         */
+        private String modelCode;
 
         /**
-         * 车型编码-非精友编码(可以通过车型编码,
-         * 脱离流程。暂定仅3个月有效,无法通过pa
-         * ModelCode反推精友编码)modelIndex
-         * 与paModelCode都会返回,可以选择一种
-         * 进行投保
+         * 加密后的精友车型编码
          */
         private String paModelCode;
+        /**
+         * C
+         * modelCode或者modelIndex或者paModelCode
+         * 精友车型序号
+         */
+        private String modelIndex;
 
         /**
          * 品牌名
@@ -60,10 +142,6 @@ public class SearchPAVehicleListResponse extends PingAnBaseResponse {
          */
         private String description;
 
-        /**
-         * 新车购置价
-         */
-        private String price;
 
         /**
          * 座位数
@@ -75,6 +153,12 @@ public class SearchPAVehicleListResponse extends PingAnBaseResponse {
          */
         private String marketDate;
 
+
+        /**
+         * 新车购置价
+         */
+        private String price;
+
         /**
          * 排气量(升)
          */
@@ -86,28 +170,9 @@ public class SearchPAVehicleListResponse extends PingAnBaseResponse {
         private String fullWeight;
 
         /**
-         * 燃料类型(精友)
-         * D1:汽油
-         * D2:柴油
-         * D3:天然气
-         * D4:液化石油气
-         * D5:混合动力
-         * D6:电动
-         * D7:两用燃料
-         * D8:燃料电池
-         * D9:甲醇
-         * D11 :其他
-         * D12 :插电式混合动力
-         * D13 :混合油
-         * D14 :太阳能
-         * D15 :无
-         */
-        private String powerTypeCode;
-
-        /**
-         * 车辆种类
+         上海平台车型编码
          */
-        private String vehicleType;
+        private String vehicleCodeForShangHai;
 
         @Override
         public String getCarYear() {
@@ -120,8 +185,216 @@ public class SearchPAVehicleListResponse extends PingAnBaseResponse {
         }
 
         public CoreModelsVo toCoreModelsVo() {
-          return  new CoreModelsVo(this.paModelCode, this.modelName, this.seats, this.marketDate, null,this.exhaustMeasure, this.price);
+            return  new CoreModelsVo(this.paModelCode, this.modelName, this.seats, this.marketDate, null,this.exhaustMeasure, this.price);
         }
     }
 
+    /***
+     *  精友车型车价信息
+     */
+    private List<VehicleModelsDto>  vehicleModels=new ArrayList<VehicleModelsDto>();
+
+    @Data
+    public static class VehicleModelsDto implements Serializable{
+
+        /***
+         *  精友车型车价信息
+         * (showCircModelsSwitch为true时返回
+         */
+        private List<ModelsDto> jyModels=new ArrayList<>();
+
+        /***
+         *  中保信车型车价信息
+         * (showCircModelsSwitch为true时返回)
+         */
+        private List<ModelsDto> circModels=new ArrayList<>();
+    }
+
+    /***
+     *  车辆信息
+     */
+    private  VehicleDto vehicle;
+    @Data
+    public static class VehicleDto implements Serializable {
+
+        /***
+         *  M	车牌	吉D*
+         */
+        private String licenseNo;
+        /***
+         *  M	车架号	JN1TFSY61Z0877600
+         */
+        private String frameNo;
+        /***
+         *  engineNo	M	发动机号	YB4LA7GM8BM
+         */
+        private String engineNo;
+        /***
+         *   registerDate	M	初登日期	2017-01-01
+         */
+        private String registerDate;
+        /***
+         *    modelCode	C	车型编码	SKI1003SKD
+         */
+        private String modelCode;
+        /***
+         *    brandName	M	车辆所属品牌名	斯柯达
+         */
+        private String brandName;
+        /***
+         *   M	车型名	斯柯达SKODA 1.3L轿车
+         */
+        private String modelName;
+        /***
+         *    description	M	车型描述	手动档 豪华款
+         */
+        private String description;
+        /***
+         *   M	座位数	5
+         */
+        private String seats;
+        /***
+         *  M	新车购置价	132000
+         */
+        private String price;
+
+        /***
+         * C	核载质量(吨)
+         */
+        private String tonNumber;
+        /***
+         * C	整备质量(吨)
+         */
+        private String wholeWeight;
+        /***
+         * C	排气量
+         */
+        private String exhaustMeasure;
+        /***
+         * C	号牌种类	02
+         */
+        private String licenceTypeCode;
+        /***
+         * O	车辆使用性质代码
+         */
+        private String useAttribute;
+        /***
+         * O	 使用性质细分
+         */
+        private String useAttributDetailCode;
+        /***
+         * O	所属性质
+         */
+        private String ownAttribute;
+
+        /***
+         * O	团车编码
+         */
+        private String groupBusinessCode;
+
+        /***
+         * M	车型产地
+         * 0:国产,1:合资,2:进口
+         */
+        private String importFlag;
+        /***
+         * C能源类型
+         *  北京:
+         *  A:汽油,B:柴油,c:电,D:混合油,E:天然气,F:液化石油气,L:甲醇,M:乙醇,N:太阳能,O:混合动力,Y:无,Z:其它
+         * 其他地区:
+         * 0: 燃油
+         * 1: 纯电动
+         * 2: 燃料电池
+         * 3: 插电式混合动力
+         * 4: 其他混合动力
+         */
+        private String energyType;
+    }
+    /***
+     *
+     */
+    private  RegisterDto register;
+    @Data
+    public static class RegisterDto implements Serializable {
+
+        /***
+         * 类型
+         */
+        private String personnelType;
+        /***
+         *
+         */
+        private String name;
+        /***
+         *
+         */
+        private String idType;
+        /***
+         *
+         */
+        private String idNo;
+        /***
+         *
+         */
+        private String gender;
+        /***
+         *
+         */
+        private String birthday;
+    }
+
+    /***
+     *  商业险默认
+     */
+    private  BizQuoteConfigDto  bizQuoteConfig;
+
+    @Data
+    public static class BizQuoteConfigDto implements Serializable {
+
+
+        /***
+         * M	车辆损失险默认保额	129624
+         */
+        private String amount01Default;
+        /***
+         *  M	车损险保险浮动下限	90737
+         */
+        private String amount01Min;
+        /***
+         *  M	车损险保险浮动上限	168511
+         */
+        private String amount01Max;
+        /***
+         *   M	全车盗抢险默认保额(车险综合改革后不再返回)	129624
+         */
+        private String amount03Default;
+        /***
+         *    M	全车盗抢险保额浮动下限(车险综合改革后不再返回)	25925
+         */
+        private String amount03Min;
+        /***
+         *   M	全车盗抢险保额浮动上限(车险综合改革后不再返回)	129624
+         */
+        private String amount03Max;
+        /***
+         *  	M	自燃损失险默认保额(车险综合改革后不再返回)	129624
+         */
+        private String  amount18Default;
+        /***
+         *  M	自燃损失险保额浮动下限(车险综合改革后不再返回)	25925
+         */
+        private String  amount18Min;
+        /***
+         *  	M	自燃损失险保额浮动上限(车险综合改革后不再返回)	129624
+         */
+        private String  amount18Max;
+        /***
+         * M	乘客座位数(不包括司机)	4
+         */
+        private String  passengerSeats;
+    }
+
+
+
+
 }

+ 124 - 41
src/main/java/com/ydtech/modules/order/service/impl/PingAnOrderApiServiceImpl.java

@@ -1,5 +1,7 @@
 package com.ydtech.modules.order.service.impl;
 
+
+import cn.hutool.core.collection.CollectionUtil;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
@@ -246,6 +248,8 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
             }
             //增值服务核保传入开关,打开时保费计算无需传入,保费计算返回增值服务信息,核保传入
             String clauseCaseSwitch = indexResponse.getClauseCaseSwitch();
+            // 中保信平台车型信息返回开关,机构维度
+            String showCircModelsSwitch = indexResponse.getShowCircModelsSwitch();
             // 此处返回的  flowid  4.1.续保确认  4.2.车辆信息确认  001 平安车型搜索接口  需要使用
             String flowid = indexResponse.getFlowid();
 
@@ -259,42 +263,10 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
             if (searchPAVehicleListResponse == null || !"0".equals(searchPAVehicleListResponse.getResultCode())) {
                 throw new SystemException(searchPAVehicleListResponse.getResultMessage());
             }
-            if(searchPAVehicleListResponse.getModels()==null || searchPAVehicleListResponse.getModels().size()==0){
-                throw new SystemException("未匹配到车型,请输入正确车型");
-            }
-            List<SearchPAVehicleListResponse.ModelsDto> models = searchPAVehicleListResponse.getModels();
-            SearchPAVehicleListResponse.ModelsDto model = new SearchPAVehicleListResponse.ModelsDto();
-            if (models != null && models.size() == 1) {
-                model = models.get(0);
-            } else if (models != null && models.size() > 1) {
-                //通过年款和新车购置价确定唯一
-                String purchasePrice = carInfo.getPurchasePrice();
-                String caryear = carInfo.getPurchasePrice();
-                Iterator<SearchPAVehicleListResponse.ModelsDto> it = models.iterator();
-                while(it.hasNext()){
-                    SearchPAVehicleListResponse.ModelsDto x = it.next();
-                    if(!purchasePrice.equals(x.getPrice())){
-                        it.remove();
-                    }
-                }
-                if(StringUtils.isNotBlank(caryear) && models.size()>1){
-                    Iterator<SearchPAVehicleListResponse.ModelsDto> itNew = models.iterator();
-                    while(it.hasNext()){
-                        SearchPAVehicleListResponse.ModelsDto x = itNew.next();
-                        if(!caryear.contains(x.getMarketDate())){
-                            it.remove();
-                        }
-                    }
-                }
-                if(models.size()>1){
-                    model = models.get(0);
-                }else if(models.size()==0){
-                    throw new SystemException("未匹配到车型");
-                }else if(models.size()==1){
-                    model = models.get(0);
-                }
-                //model = models.get(0);
+            if (searchPAVehicleListResponse == null || StringUtils.isNotBlank(searchPAVehicleListResponse.getValidMessage())) {
+                throw new SystemException(searchPAVehicleListResponse.getValidMessage());
             }
+            SearchPAVehicleListResponse.ModelsDto model = getModelsDto(searchPAVehicleListResponse, carInfo,showCircModelsSwitch,parameters.getUserId(),flowid,carInfo.getModelcname());
             //能源车 判断 赋值能源参数
             String  flag="";
             if("1,2,3,".contains(carInfo.getEnergyType())){
@@ -332,6 +304,79 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
             throw new SystemException(e.getMessage());
         }
     }
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/8/29 10:50
+     *  @Description:  判断是否
+     */
+    private static SearchPAVehicleListResponse.ModelsDto getModelsDto(SearchPAVehicleListResponse searchPAVehicleListResponse, CarInfoVo carInfo,String showCircModelsSwitch,String userId,String flowid,String modelName) {
+        //判断
+        SearchPAVehicleListResponse.ModelsDto model = new SearchPAVehicleListResponse.ModelsDto();
+
+        //中保信返回
+        List<SearchPAVehicleListResponse.VehicleModelsDto> vehicleModels = searchPAVehicleListResponse.getVehicleModels();
+        if("false".equals(showCircModelsSwitch)){
+            if(searchPAVehicleListResponse.getModels()==null || searchPAVehicleListResponse.getModels().size()==0){
+                throw new SystemException("未匹配到车型,请输入正确车型");
+            }
+            List<SearchPAVehicleListResponse.ModelsDto> models = searchPAVehicleListResponse.getModels();
+            model = getModelsDto(carInfo, models, model);
+        }else{
+            SearchPAVehicleListResponse.VehicleModelsDto vehicleModelsDto = vehicleModels.get(0);
+            List<SearchPAVehicleListResponse.ModelsDto> circModels = vehicleModelsDto.getCircModels();
+            if(circModels==null || circModels.size()==0){
+                throw new SystemException("未匹配到车型,请输入正确车型");
+            }
+            model = getModelsDto(carInfo, circModels, model);
+
+        }
+        return model;
+    }
+    /**
+     *  @version
+     *  @author: hxl
+     *  @Date: 2024/8/29 11:13
+     *  @Description:  判断车型唯一
+     */
+    private static SearchPAVehicleListResponse.ModelsDto getModelsDto(CarInfoVo carInfo, List<SearchPAVehicleListResponse.ModelsDto> models, SearchPAVehicleListResponse.ModelsDto model) {
+        if (models != null && models.size() == 1) {
+            model = models.get(0);
+        } else if (models != null && models.size() > 1) {
+            //通过年款和新车购置价确定唯一
+            String purchasePrice = carInfo.getPurchasePrice();
+            String caryear = carInfo.getPurchasePrice();
+            List<SearchPAVehicleListResponse.ModelsDto> modelsNew = new ArrayList<>(models);
+            Iterator<SearchPAVehicleListResponse.ModelsDto> it = models.iterator();
+            while(it.hasNext()){
+                SearchPAVehicleListResponse.ModelsDto x = it.next();
+                if(!purchasePrice.equals(x.getPrice())){
+                    it.remove();
+                }
+            }
+            if(StringUtils.isNotBlank(caryear) && models.size()>1){
+                Iterator<SearchPAVehicleListResponse.ModelsDto> itNew = models.iterator();
+                while(it.hasNext()){
+                    SearchPAVehicleListResponse.ModelsDto x = itNew.next();
+                    if(!caryear.contains(x.getMarketDate())){
+                        it.remove();
+                    }
+                }
+            }
+            if(models.size()>1){
+                model = models.get(0);
+            }else if(models.size()==0){
+                if(modelsNew.size()>0){
+                    model =modelsNew.get(0);
+                }else{
+                    throw new SystemException("未匹配到车型");
+                }
+            }else if(models.size()==1){
+                model = models.get(0);
+            }
+        }
+        return model;
+    }
     /**
      *  @version
      *  @author: hxl
@@ -619,12 +664,12 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
                 String fileName = file.getName();
                 String documentName = fileName.split("\\.")[0];
                 String documentFormat = fileName.split("\\.")[1];
-                if(StringUtils.isBlank(insUploadImagesDto.getPinganKey())){
-                    boolean upLoadFileFlag = PingAnUpLoadUtils.getUpLoadFile(properties.getHost(), properties.getBucket(), properties.getAk(), properties.getSk(), file, key);
-                    if(!upLoadFileFlag){
-                        throw new SystemException("上传影像文件失败");
-                    }
-                }
+                // if(StringUtils.isBlank(insUploadImagesDto.getPinganKey())){
+                //     boolean upLoadFileFlag = PingAnUpLoadUtils.getUpLoadFile(properties.getHost(), properties.getBucket(), properties.getAk(), properties.getSk(), file, key);
+                //     if(!upLoadFileFlag){
+                //         throw new SystemException("上传影像文件失败");
+                //     }
+                // }
                 UploadFilesRequest.DocListDTO docListDTO = new UploadFilesRequest.DocListDTO(key, documentClass, documentType, documentName,documentFormat ,
                         null);
                 list.add(docListDTO);
@@ -962,20 +1007,41 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
                     insAreaCompany.setCrossInsurance(objects);
                 }
                 pinganApiLog.setId(null);
+                String url ="";
                 //更新狀態
                 if((OrderStatusCodeEnum.ORDER_STATUS_CODE_B2.getCode().equals(status) ||   OrderStatusCodeEnum.ORDER_STATUS_CODE_B2.getCode().equals(status)) && ("0".equals(insAreaCompany.getOrderstatus()) || "1".equals(insAreaCompany.getOrderstatus()))){
                     //说明核保成功,更新大订单和小订单的状态为2  更新为已核保待缴费
+                    String signatureUrl = properties.getSignatureUrl();
+                    signatureUrl=signatureUrl+"?companyId=" +insAreaCompany.getId();
+                    SignEleApplyRequest signEleApplyRequest = new SignEleApplyRequest(parameters.getUserId(), bizApplyNo, forceApplyNo, String.valueOf(System.currentTimeMillis()), "GET", signatureUrl);
+                    SignEleApplyResponse signEleApplyResponse = null;
+                    try {
+                        signEleApplyResponse = pinganRequestApiComponents.signEleApply(signEleApplyRequest,pinganApiLog);
+                    } catch (Exception e) {
+                        throw new SystemException(e.getMessage());
+                    }
+                    if (signEleApplyResponse != null && StringUtils.isNotBlank(signEleApplyResponse.getResultMessage())) {
+                        url = signEleApplyResponse.getResultMessage();
+                    }
+                    insAreaCompany.setPaymentLink(url);
                     insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode());
                 }else if((OrderStatusCodeEnum.ORDER_STATUS_CODE_BH.getCode().equals(status) || OrderStatusCodeEnum.ORDER_STATUS_CODE_BE.getCode().equals(status)
                         ||  OrderStatusCodeEnum.ORDER_STATUS_CODE_B1.getCode().equals(status)  || OrderStatusCodeEnum.ORDER_STATUS_CODE_B6.getCode().equals(status) )  && ("0".equals(insAreaCompany.getOrderstatus()))){
                     // 待验车 BH 资料人工审核-BE B1 B6
                     insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_AUDIT.getCode());
+                }else if(OrderStatusCodeEnum.ORDER_STATUS_CODE_B4.getCode().equals(status)){
+                    //变为核保退回
+                    insAreaCompany.setOrderstatus(InsOrderStatusEnum.TO_BACK.getCode());
                 }
+
                 insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
                 //UploadFilesResponse uploadFilesResponse = getUploadResponseByParam(insAreaCompany, pinganApiLog, parameters.getUserId());
                 //if (uploadFilesResponse != null & !"0".equals(uploadFilesResponse.getResultCode()) ) {
                 //    throw new SystemException(uploadFilesResponse.getResultMessage());
                 // }
+
+
+
                 return HttpResult.ok("提交核保成功");
             }
         } else {
@@ -1611,6 +1677,20 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
                 logger.info(documentStatusListResponse.toString()+"调用状态查询接口");
                 if((OrderStatusCodeEnum.ORDER_STATUS_CODE_B2.getCode().equals(status) ||   OrderStatusCodeEnum.ORDER_STATUS_CODE_B2.getCode().equals(status)) && ("0".equals(insAreaCompany.getOrderstatus()) || "1".equals(insAreaCompany.getOrderstatus()) )){
                     //说明核保成功,更新大订单和小订单的状态为1  更新为已核保待缴费 B6  自核
+                    String url="";
+                    String signatureUrl = properties.getSignatureUrl();
+                    signatureUrl=signatureUrl+"?companyId=" +insAreaCompany.getId();
+                    SignEleApplyRequest signEleApplyRequest = new SignEleApplyRequest(parameters.getUserId(), bizApplyNo, forceApplyNo, String.valueOf(System.currentTimeMillis()), "GET", signatureUrl);
+                    SignEleApplyResponse signEleApplyResponse = null;
+                    try {
+                        signEleApplyResponse = pinganRequestApiComponents.signEleApply(signEleApplyRequest,pinganApiLog);
+                    } catch (Exception e) {
+                        throw new SystemException(e.getMessage());
+                    }
+                    if (signEleApplyResponse != null && StringUtils.isNotBlank(signEleApplyResponse.getResultMessage())) {
+                        url = signEleApplyResponse.getResultMessage();
+                    }
+                    insAreaCompany.setPaymentLink(url);
                     insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_PAY.getCode() );
                     insAreaCompanyService.updateCompanyAndOrders(insAreaCompany);
                 }else if(OrderStatusCodeEnum.ORDER_STATUS_CODE_B5.getCode().equals(status) && ("0".equals(insAreaCompany.getOrderstatus()) || "1".equals(insAreaCompany.getOrderstatus()) || "2".equals(insAreaCompany.getOrderstatus()))) {
@@ -1623,6 +1703,9 @@ public class PingAnOrderApiServiceImpl implements PingAnOrderApiService {
                         ||  OrderStatusCodeEnum.ORDER_STATUS_CODE_B1.getCode().equals(status)  || OrderStatusCodeEnum.ORDER_STATUS_CODE_B6.getCode().equals(status)){
                     // 待验车 BH 资料人工审核-BE B1 B6
                     insAreaCompany.setOrderstatus(InsOrderStatusEnum.WAIT_AUDIT.getCode());
+                }else if(OrderStatusCodeEnum.ORDER_STATUS_CODE_B4.getCode().equals(status)){
+                    //变为核保退回
+                    insAreaCompany.setOrderstatus(InsOrderStatusEnum.TO_BACK.getCode());
                 }
             }
             return HttpResult.ok(documentStatusListResponse);

+ 1 - 1
src/main/resources/application-test.yml

@@ -386,7 +386,7 @@ guoren:
     iftest: Y
 
 qrcode:
-  genAddress: http://39.98.239.48/order/qrCode/index
+  genAddress: https://test.baoxianzhanggui.com/web-api/order/qrCode/index
 
 # 渤海财险
 bohai: