|
|
@@ -0,0 +1,99 @@
|
|
|
+package com.jzg.quotation.huanong.crawler.entity.response;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+import java.io.Serial;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 华农财险核保意见查询响应
|
|
|
+ */
|
|
|
+@NoArgsConstructor
|
|
|
+@Data
|
|
|
+@JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+public class HuaNongCrawlerQueryReviveOpinionResponse implements HuaNongHeadResponse {
|
|
|
+
|
|
|
+ @Serial
|
|
|
+ private static final long serialVersionUID = 2210550128695116894L;
|
|
|
+
|
|
|
+ @JsonProperty("head")
|
|
|
+ private HuaNongCrawlerBaseResponseHead head;
|
|
|
+
|
|
|
+ @JsonProperty("appliResult")
|
|
|
+ private List<AppliResultDTO> appliResult;
|
|
|
+
|
|
|
+ @JsonIgnore
|
|
|
+ private String rawResponseBody;
|
|
|
+
|
|
|
+ public List<OpinionDTO> getOpinions() {
|
|
|
+ List<OpinionDTO> opinions = new ArrayList<>();
|
|
|
+ if (appliResult == null) {
|
|
|
+ return opinions;
|
|
|
+ }
|
|
|
+ for (AppliResultDTO result : appliResult) {
|
|
|
+ if (result == null || result.getUwtionInfo() == null
|
|
|
+ || result.getUwtionInfo().getData() == null
|
|
|
+ || result.getUwtionInfo().getData().getData() == null) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ opinions.addAll(result.getUwtionInfo().getData().getData());
|
|
|
+ }
|
|
|
+ return opinions;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ @JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+ public static class AppliResultDTO {
|
|
|
+
|
|
|
+ @JsonProperty("uwtionInfo")
|
|
|
+ private UwtionInfoDTO uwtionInfo;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ @JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+ public static class UwtionInfoDTO {
|
|
|
+
|
|
|
+ @JsonProperty("data")
|
|
|
+ private OpinionDataDTO data;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ @JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+ public static class OpinionDataDTO {
|
|
|
+
|
|
|
+ @JsonProperty("data")
|
|
|
+ private List<OpinionDTO> data;
|
|
|
+ }
|
|
|
+
|
|
|
+ @NoArgsConstructor
|
|
|
+ @Data
|
|
|
+ @JsonIgnoreProperties(ignoreUnknown = true)
|
|
|
+ public static class OpinionDTO {
|
|
|
+
|
|
|
+ @JsonProperty("flag")
|
|
|
+ private String flag;
|
|
|
+
|
|
|
+ @JsonProperty("sHTime")
|
|
|
+ private String sHTime;
|
|
|
+
|
|
|
+ @JsonProperty("notionCode")
|
|
|
+ private String notionCode;
|
|
|
+
|
|
|
+ @JsonProperty("currentGradeName")
|
|
|
+ private String currentGradeName;
|
|
|
+
|
|
|
+ @JsonProperty("operateUserName")
|
|
|
+ private String operateUserName;
|
|
|
+
|
|
|
+ @JsonProperty("handleText")
|
|
|
+ private String handleText;
|
|
|
+ }
|
|
|
+}
|