Browse Source

Revert "阳光修改"

This reverts commit 7d0c6a8ac87c5cf23892f4c9329dfd6bf8a65a30.
wks 1 năm trước cách đây
mục cha
commit
6e8f0b253f

+ 6 - 6
src/main/java/com/ydtech/modules/order/entity/api/yangguang/request/YangGuangAccuracyCalculateRequest.java

@@ -495,16 +495,16 @@ public class YangGuangAccuracyCalculateRequest extends YangGuangBaseRequest {
             this.Name = customerInfoVo.getName();
             this.Mobile = customerInfoVo.getMobile();
             this.OwnerAdress = customerInfoVo.getAddr();
-            if ("0".equals(customerInfoVo.getProperty())) {
-                this.IdentifyType = "09";
-                this.InsuredType = "2";
-                this.CarInsuredRelation = "1";
-                this.IdentifyNumber = customerInfoVo.getOrganizationCode();
-            }else {
+            if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("1")) {
                 this.InsuredType = "0";
                 this.IdentifyType = "01";
                 this.CarInsuredRelation = "1";
                 this.IdentifyNumber = customerInfoVo.getIdentifyNumber();
+            } else if (customerInfoVo.getProperty() != null && customerInfoVo.getProperty().equals("0")) {
+                this.IdentifyType = "09";
+                this.InsuredType = "2";
+                this.CarInsuredRelation = "1";
+                this.IdentifyNumber = customerInfoVo.getOrganizationCode();
             }
         }
     }