|
@@ -4,6 +4,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.jzg.quotation.dajia.crawler.entity.request.quote.*;
|
|
import com.jzg.quotation.dajia.crawler.entity.request.quote.*;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
+import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
@@ -36,7 +38,7 @@ public class DaJiaCrawlerPriceResponse {
|
|
|
private DriveInsuranceDTO driveInsurance;
|
|
private DriveInsuranceDTO driveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("motorDriveInsurance")
|
|
@JsonProperty("motorDriveInsurance")
|
|
|
- private String motorDriveInsurance;
|
|
|
|
|
|
|
+ private Object motorDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("checkCarInfomation")
|
|
@JsonProperty("checkCarInfomation")
|
|
|
private CheckCarInfomationDTO checkCarInfomation;
|
|
private CheckCarInfomationDTO checkCarInfomation;
|
|
@@ -57,7 +59,7 @@ public class DaJiaCrawlerPriceResponse {
|
|
|
private ExceptionCodeDTO exceptionCode;
|
|
private ExceptionCodeDTO exceptionCode;
|
|
|
|
|
|
|
|
@JsonProperty("deliveryVO")
|
|
@JsonProperty("deliveryVO")
|
|
|
- private String deliveryVO;
|
|
|
|
|
|
|
+ private Object deliveryVO;
|
|
|
|
|
|
|
|
@JsonProperty("incrementVO")
|
|
@JsonProperty("incrementVO")
|
|
|
private IncrementVODTO incrementVO;
|
|
private IncrementVODTO incrementVO;
|
|
@@ -66,10 +68,10 @@ public class DaJiaCrawlerPriceResponse {
|
|
|
private String increasedValueMsg;
|
|
private String increasedValueMsg;
|
|
|
|
|
|
|
|
@JsonProperty("jabFamilyDriveInsurance")
|
|
@JsonProperty("jabFamilyDriveInsurance")
|
|
|
- private String jabFamilyDriveInsurance;
|
|
|
|
|
|
|
+ private Object jabFamilyDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("rqbFamilyDriveInsurance")
|
|
@JsonProperty("rqbFamilyDriveInsurance")
|
|
|
- private String rqbFamilyDriveInsurance;
|
|
|
|
|
|
|
+ private Object rqbFamilyDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("reInsureVo")
|
|
@JsonProperty("reInsureVo")
|
|
|
private String reInsureVo;
|
|
private String reInsureVo;
|
|
@@ -78,19 +80,19 @@ public class DaJiaCrawlerPriceResponse {
|
|
|
private String chdDivisorVoList;
|
|
private String chdDivisorVoList;
|
|
|
|
|
|
|
|
@JsonProperty("jkFamilyDriveInsurance")
|
|
@JsonProperty("jkFamilyDriveInsurance")
|
|
|
- private String jkFamilyDriveInsurance;
|
|
|
|
|
|
|
+ private Object jkFamilyDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("yyDriveInsurance")
|
|
@JsonProperty("yyDriveInsurance")
|
|
|
- private String yyDriveInsurance;
|
|
|
|
|
|
|
+ private Object yyDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("hyDriveInsurance")
|
|
@JsonProperty("hyDriveInsurance")
|
|
|
- private String hyDriveInsurance;
|
|
|
|
|
|
|
+ private Object hyDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("jkhosDriveInsurance")
|
|
@JsonProperty("jkhosDriveInsurance")
|
|
|
- private String jkhosDriveInsurance;
|
|
|
|
|
|
|
+ private Object jkhosDriveInsurance;
|
|
|
|
|
|
|
|
@JsonProperty("jyChargeDriveInsurance")
|
|
@JsonProperty("jyChargeDriveInsurance")
|
|
|
- private String jyChargeDriveInsurance;
|
|
|
|
|
|
|
+ private Object jyChargeDriveInsurance;
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
@@ -111,4 +113,55 @@ public class DaJiaCrawlerPriceResponse {
|
|
|
private String incrementList;
|
|
private String incrementList;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private Object emptyToObject(Object str) {
|
|
|
|
|
+ if(ObjectUtils.isEmpty(str) || !StringUtils.hasLength(str.toString())) {
|
|
|
|
|
+ return new Object();
|
|
|
|
|
+ }
|
|
|
|
|
+ return str;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public DriveInsuranceDTO getDriveInsurance() {
|
|
|
|
|
+ if(ObjectUtils.isEmpty(driveInsurance) || !StringUtils.hasLength(driveInsurance.toString())) {
|
|
|
|
|
+ return new DriveInsuranceDTO();
|
|
|
|
|
+ }
|
|
|
|
|
+ return driveInsurance;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getDeliveryVO() {
|
|
|
|
|
+ return emptyToObject(deliveryVO);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getMotorDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(motorDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getJabFamilyDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(jabFamilyDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getRqbFamilyDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(rqbFamilyDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getJyChargeDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(jyChargeDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getJkhosDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(jkhosDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getHyDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(hyDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getYyDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(yyDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Object getJkFamilyDriveInsurance() {
|
|
|
|
|
+ return emptyToObject(jkFamilyDriveInsurance);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|