cuixinpeng 2 лет назад
Родитель
Сommit
6154ea524b

+ 9 - 2
src/main/java/com/ydtech/modules/order/entity/api/huatai/request/HuaTaiSubmitRequest.java

@@ -23,6 +23,7 @@ import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
+import org.apache.commons.lang3.StringUtils;
 
 import java.io.Serializable;
 import java.math.BigDecimal;
@@ -376,7 +377,10 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest  {
             this.identifyValidDate = customerInfoVo.getIdentifyValidDate() + " " + TimeConstants.START_TIME;
             this.identifyValidEndDate = customerInfoVo.getIdentifyValidEndDate() + " " + TimeConstants.END_TIME;
             this.addr = customerInfoVo.getAddr();
-            this.email = customerInfoVo.getEmail();
+            this.email = "123@qq.com";
+            if(StringUtils.isNotEmpty(customerInfoVo.getEmail())){
+                this.email = customerInfoVo.getEmail();
+            }
             if("2".equals(role)){
                 this.carInsuredRelation = "1";
             }
@@ -437,7 +441,10 @@ public class HuaTaiSubmitRequest extends HuaTaiBaseRequest  {
             this.district = huaTaiConfigureParameters.getDistrict();
             this.street = customerInfoVo.getAddr();
             this.mobile = customerInfoVo.getMobile();
-            this.email = customerInfoVo.getEmail();
+            this.email = "123@qq.com";
+            if(StringUtils.isNotEmpty(customerInfoVo.getEmail())){
+                this.email = customerInfoVo.getEmail();
+            }
         }
 
     }