|
@@ -1,11 +1,17 @@
|
|
|
package com.ydtech.modules.order.entity.api.zj.response;
|
|
package com.ydtech.modules.order.entity.api.zj.response;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
+import com.ydtech.modules.order.entity.crawler.response.CrawlerAuditResponse;
|
|
|
|
|
+import com.ydtech.modules.order.entity.dto.DrivingInsuranceDto;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public class QueryOrderDetailResponse extends BaseResponse implements Serializable {
|
|
public class QueryOrderDetailResponse extends BaseResponse implements Serializable {
|
|
@@ -34,6 +40,13 @@ public class QueryOrderDetailResponse extends BaseResponse implements Serializab
|
|
|
@JsonProperty("terminalId")
|
|
@JsonProperty("terminalId")
|
|
|
private String terminalId;
|
|
private String terminalId;
|
|
|
|
|
|
|
|
|
|
+ @JsonProperty("orderPolicyList")
|
|
|
|
|
+ private List<OrderPolicyListDTO> orderPolicyList;
|
|
|
|
|
+
|
|
|
|
|
+ public List<DrivingInsuranceDto> getDrivingInsuranceDto(){
|
|
|
|
|
+ return orderPolicyList.stream().map(QueryOrderDetailResponse.OrderPolicyListDTO::toDrivingInsuranceDto).collect(Collectors.toList());
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@NoArgsConstructor
|
|
@NoArgsConstructor
|
|
|
@Data
|
|
@Data
|
|
|
public static class ResultObjDTO implements Serializable {
|
|
public static class ResultObjDTO implements Serializable {
|
|
@@ -59,4 +72,81 @@ public class QueryOrderDetailResponse extends BaseResponse implements Serializab
|
|
|
private String orderStatus;
|
|
private String orderStatus;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @NoArgsConstructor
|
|
|
|
|
+ @Data
|
|
|
|
|
+ public static class OrderPolicyListDTO implements Serializable {
|
|
|
|
|
+
|
|
|
|
|
+ private static final long serialVersionUID = 3045604063024832056L;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("endDate")
|
|
|
|
|
+ private String endDate;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 核保状态代码
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("underWriteFlag")
|
|
|
|
|
+ private String underWriteFlag;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 险种名称
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("typeName")
|
|
|
|
|
+ private String typeName;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 保单号
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("policyNo")
|
|
|
|
|
+ private String policyNo;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 保费
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("sumPremium")
|
|
|
|
|
+ private Double sumPremium;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 险种代码
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("typeCode")
|
|
|
|
|
+ private String typeCode;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("endHour")
|
|
|
|
|
+ private String endHour;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 核保信息
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("underWriteMessage")
|
|
|
|
|
+ private String underWriteMessage;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("startHour")
|
|
|
|
|
+ private String startHour;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 投保单号
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("insureNo")
|
|
|
|
|
+ private String insureNo;
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 保单生成时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @JsonProperty("pnpDate")
|
|
|
|
|
+ private String pnpDate;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("startDate")
|
|
|
|
|
+ private String startDate;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("startMinute")
|
|
|
|
|
+ private String startMinute;
|
|
|
|
|
+
|
|
|
|
|
+ @JsonProperty("endMinute")
|
|
|
|
|
+ private String endMinute;
|
|
|
|
|
+
|
|
|
|
|
+ private DrivingInsuranceDto toDrivingInsuranceDto() {
|
|
|
|
|
+ DrivingInsuranceDto drivingInsuranceDto = new DrivingInsuranceDto();
|
|
|
|
|
+ drivingInsuranceDto.setCode(typeCode);
|
|
|
|
|
+ drivingInsuranceDto.setName(typeName);
|
|
|
|
|
+ drivingInsuranceDto.setPolicyNumber(policyNo);
|
|
|
|
|
+ drivingInsuranceDto.setApplicationNumber(insureNo);
|
|
|
|
|
+ return drivingInsuranceDto;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|