Pārlūkot izejas kodu

渤海企业报价bug测试bug

dongxin 1 gadu atpakaļ
vecāks
revīzija
511d40d8b1

+ 4 - 1
src/main/java/com/ydtech/modules/order/entity/api/bohai/constants/DocumentClass.java

@@ -34,12 +34,15 @@ public enum DocumentClass {
 
     C02("C02", "车主身份证正面", "Z00300", "Z001042"),
     D02("D02", "车主身份证反面", "Z00300", "Z001042"),
+    Y02("Y02", "车主营业执照", "Z00300", "Z00119"),
 
     C03("C03", "投保人身份证正面", "Z00100", "Z001042"),
     D03("D03", "投保人身份证反面", "Z00100", "Z001042"),
+    Y03("Y03", "投保人营业执照", "Z00100", "Z00119"),
 
     C04("C04", "被保人身份证正面", "Z00200", "Z001042"),
-    D04("D04", "被保人身份证反面", "Z00200", "Z001042");
+    D04("D04", "被保人身份证反面", "Z00200", "Z001042"),
+    Y04("Y04", "被保人营业执照", "Z00200", "Z00119");
 
 
     private final String code;

+ 1 - 1
src/main/java/com/ydtech/modules/order/entity/api/bohai/request/VehicleConfirmationReqeust.java

@@ -239,7 +239,7 @@ public class VehicleConfirmationReqeust extends BoHaiBaseRequest {
             VehicleKind vehicleKindEnum = VehicleKind.valueOf("VK_" + carInfo.getCimodelclass());
             this.effectDate = effectDate;
             this.vehicleKind = vehicleKindEnum.getCode();
-            if (StringUtils.isBlank(carInfo.getProperty()) || !"0".equals(carInfo.getProperty())) {
+            if (StringUtils.isBlank(carInfo.getProperty()) || "1".equals(carInfo.getProperty())) {
                 this.vehicleAffNature = VehicleAffNature.VAN_1.getCode();
             }else{
                 this.vehicleAffNature = VehicleAffNature.VAN_3.getCode();