|
@@ -7,6 +7,7 @@ import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
@@ -27,11 +28,11 @@ public class CrawlerAuditResponse extends CrawlerBaseResponse {
|
|
|
*/
|
|
*/
|
|
|
@JsonProperty("JQ_Policy")
|
|
@JsonProperty("JQ_Policy")
|
|
|
private String jqPolicy;
|
|
private String jqPolicy;
|
|
|
- /**
|
|
|
|
|
- * 驾意险
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty("drivingInsurances")
|
|
|
|
|
- private List<DrivingInsurance> drivingInsurances;
|
|
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 驾意险
|
|
|
|
|
+// */
|
|
|
|
|
+// @JsonProperty("drivingInsurances")
|
|
|
|
|
+// private List<DrivingInsurance> drivingInsurances;
|
|
|
/**
|
|
/**
|
|
|
* 商业险保单号
|
|
* 商业险保单号
|
|
|
*/
|
|
*/
|
|
@@ -49,46 +50,50 @@ public class CrawlerAuditResponse extends CrawlerBaseResponse {
|
|
|
@JsonProperty("pay_url")
|
|
@JsonProperty("pay_url")
|
|
|
private String payUrl;
|
|
private String payUrl;
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- public List<DrivingInsuranceDto> getDrivingInsuranceDto(){
|
|
|
|
|
- return drivingInsurances.stream().map(DrivingInsurance::toDrivingInsuranceDto).collect(Collectors.toList());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Data
|
|
|
|
|
- public static class DrivingInsurance implements Serializable {
|
|
|
|
|
-
|
|
|
|
|
- private static final long serialVersionUID = -1316826976645101919L;
|
|
|
|
|
- /**
|
|
|
|
|
- * 驾意险投保单号
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty("policy")
|
|
|
|
|
- private String policy;
|
|
|
|
|
- /**
|
|
|
|
|
- * 驾意险保单号
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty("application")
|
|
|
|
|
- private String application;
|
|
|
|
|
- /**
|
|
|
|
|
- * 驾意险名称
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty("name")
|
|
|
|
|
- private String name;
|
|
|
|
|
- /**
|
|
|
|
|
- * 驾意险编号
|
|
|
|
|
- */
|
|
|
|
|
- @JsonProperty("code")
|
|
|
|
|
- private String code;
|
|
|
|
|
-
|
|
|
|
|
- private DrivingInsuranceDto toDrivingInsuranceDto() {
|
|
|
|
|
- DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
|
|
- drivingInsuranceDto.setCode(code);
|
|
|
|
|
- drivingInsuranceDto.setName(name);
|
|
|
|
|
- drivingInsuranceDto.setPolicyNumber(policy);
|
|
|
|
|
- drivingInsuranceDto.setApplicationNumber(application);
|
|
|
|
|
- return drivingInsuranceDto;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+//
|
|
|
|
|
+// public List<DrivingInsuranceDto> getDrivingInsuranceDto() {
|
|
|
|
|
+// if (drivingInsurances == null) {
|
|
|
|
|
+// return Collections.emptyList();
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// return drivingInsurances.stream().map(DrivingInsurance::toDrivingInsuranceDto).collect(Collectors.toList());
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// @Data
|
|
|
|
|
+// public static class DrivingInsurance implements Serializable {
|
|
|
|
|
+//
|
|
|
|
|
+// private static final long serialVersionUID = -1316826976645101919L;
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 驾意险投保单号
|
|
|
|
|
+// */
|
|
|
|
|
+// @JsonProperty("policy")
|
|
|
|
|
+// private String policy;
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 驾意险保单号
|
|
|
|
|
+// */
|
|
|
|
|
+// @JsonProperty("application")
|
|
|
|
|
+// private String application;
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 驾意险名称
|
|
|
|
|
+// */
|
|
|
|
|
+// @JsonProperty("name")
|
|
|
|
|
+// private String name;
|
|
|
|
|
+// /**
|
|
|
|
|
+// * 驾意险编号
|
|
|
|
|
+// */
|
|
|
|
|
+// @JsonProperty("code")
|
|
|
|
|
+// private String code;
|
|
|
|
|
+//
|
|
|
|
|
+// private DrivingInsuranceDto toDrivingInsuranceDto() {
|
|
|
|
|
+// DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
|
|
+// drivingInsuranceDto.setCode(code);
|
|
|
|
|
+// drivingInsuranceDto.setName(name);
|
|
|
|
|
+// drivingInsuranceDto.setPolicyNumber(policy);
|
|
|
|
|
+// drivingInsuranceDto.setApplicationNumber(application);
|
|
|
|
|
+// return drivingInsuranceDto;
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|