|
@@ -4,7 +4,6 @@ package com.ydtech.modules.order.entity.api.bohai.response;
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import com.ydtech.modules.order.entity.api.bohai.constants.ResultCode;
|
|
import com.ydtech.modules.order.entity.api.bohai.constants.ResultCode;
|
|
|
import com.ydtech.modules.order.entity.dto.DrivingInsuranceDto;
|
|
import com.ydtech.modules.order.entity.dto.DrivingInsuranceDto;
|
|
|
-import com.ydtech.utils.ObjectUtil;
|
|
|
|
|
import com.ydtech.utils.StringUtils;
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
@@ -53,7 +52,7 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
|
|
|
private String total;
|
|
private String total;
|
|
|
|
|
|
|
|
@JsonProperty("propertyPolicies")
|
|
@JsonProperty("propertyPolicies")
|
|
|
- private List<UnAutoPolicyDTO> propertyPolicies;
|
|
|
|
|
|
|
+ private List<UnAutoPolicyDTO> propertyPolicies;
|
|
|
|
|
|
|
|
@JsonProperty("casualtyPolicies")
|
|
@JsonProperty("casualtyPolicies")
|
|
|
private List<UnAutoPolicyDTO> casualtyPolicies;
|
|
private List<UnAutoPolicyDTO> casualtyPolicies;
|
|
@@ -65,11 +64,11 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
|
|
|
private TrafficPolicyDTO trafficPolicy;
|
|
private TrafficPolicyDTO trafficPolicy;
|
|
|
|
|
|
|
|
public List<UnAutoPolicyDTO> getPropertyPolicies() {
|
|
public List<UnAutoPolicyDTO> getPropertyPolicies() {
|
|
|
- return ObjectUtils.isEmpty(propertyPolicies) ? new ArrayList<>() : propertyPolicies;
|
|
|
|
|
|
|
+ return ObjectUtils.isEmpty(propertyPolicies) ? new ArrayList<>() : propertyPolicies;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<UnAutoPolicyDTO> getCasualtyPolicies() {
|
|
public List<UnAutoPolicyDTO> getCasualtyPolicies() {
|
|
|
- return ObjectUtils.isEmpty(casualtyPolicies) ? new ArrayList<>() : casualtyPolicies;
|
|
|
|
|
|
|
+ return ObjectUtils.isEmpty(casualtyPolicies) ? new ArrayList<>() : casualtyPolicies;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public int verificationUnderwriting() {
|
|
public int verificationUnderwriting() {
|
|
@@ -84,9 +83,9 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
|
|
|
business = extracted(this.businessResultCode);
|
|
business = extracted(this.businessResultCode);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if(traffic == 1 && business == 1){
|
|
|
|
|
|
|
+ if (traffic == 1 && business == 1) {
|
|
|
return 1;
|
|
return 1;
|
|
|
- }else if(traffic == 2 || business == 2){
|
|
|
|
|
|
|
+ } else if (traffic == 2 || business == 2) {
|
|
|
return 2;
|
|
return 2;
|
|
|
}
|
|
}
|
|
|
return 0;
|
|
return 0;
|
|
@@ -155,7 +154,7 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
|
|
|
|
|
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
- public static class UnAutoPolicyDTO implements Serializable{
|
|
|
|
|
|
|
+ public static class UnAutoPolicyDTO implements Serializable {
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 6048226723767902266L;
|
|
private static final long serialVersionUID = 6048226723767902266L;
|
|
|
|
|
|
|
@@ -177,7 +176,14 @@ public class UnderwritingResponse extends BoHaiBaseResponse {
|
|
|
@JsonProperty("applicationNo")
|
|
@JsonProperty("applicationNo")
|
|
|
private String applicationNo;
|
|
private String applicationNo;
|
|
|
|
|
|
|
|
- public DrivingInsuranceDto toDrivingInsuranceDto(){
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 非车核保规则
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("resultMsg")
|
|
|
|
|
+ private String resultMsg;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public DrivingInsuranceDto toDrivingInsuranceDto() {
|
|
|
DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
drivingInsuranceDto.setCode(this.getProductCode());
|
|
drivingInsuranceDto.setCode(this.getProductCode());
|
|
|
drivingInsuranceDto.setName(this.getPackageCode());
|
|
drivingInsuranceDto.setName(this.getPackageCode());
|