bifrons 2 lat temu
rodzic
commit
5c8ac2aa63

+ 5 - 0
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;
@@ -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("预核保信息")