Преглед изворни кода

Merge branch 'master-20240326' into test

wks пре 2 година
родитељ
комит
f352dc76ef

+ 6 - 1
src/main/java/com/ydtech/modules/order/entity/crawler/response/CrawlerQuoteResponse.java

@@ -6,6 +6,7 @@ import com.ydtech.modules.order.entity.vo.CoreModelsVo;
 import io.swagger.annotations.ApiModel;
 import lombok.*;
 import org.springframework.util.ObjectUtils;
+import org.springframework.util.StringUtils;
 
 import java.io.Serializable;
 import java.math.BigDecimal;
@@ -216,7 +217,7 @@ public class CrawlerQuoteResponse extends CrawlerBaseResponse {
         /**
          * 交强评分
          */
-        @JsonProperty(" jq_mark")
+        @JsonProperty("jq_mark")
         private String jqMark;
 
         /**
@@ -265,6 +266,10 @@ public class CrawlerQuoteResponse extends CrawlerBaseResponse {
         @JsonProperty("predict_info")
         private List<PredictInfoDTO> predictInfo;
 
+        public String getDiscount() {
+            return StringUtils.isEmpty(discount) ? "0" : discount;
+        }
+
         @NoArgsConstructor
         @Data
         @ApiModel("预核保信息")