فهرست منبع

修改python非车

wks 2 سال پیش
والد
کامیت
4c3deed9f2

+ 20 - 3
src/main/java/com/ydtech/modules/order/entity/crawler/vo/CrawlerPolicyPrintVo.java

@@ -1,12 +1,13 @@
 package com.ydtech.modules.order.entity.crawler.vo;
 
-import com.ydtech.modules.order.entity.crawler.response.CrawlerPolicyPrintResponse;
+import com.fasterxml.jackson.annotation.JsonProperty;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
 import java.io.Serializable;
+import java.util.List;
 
 @Data
 @ApiModel("保单地址")
@@ -24,8 +25,24 @@ public class CrawlerPolicyPrintVo implements Serializable {
     @ApiModelProperty("商业险保单地址")
     private String jqxFlagUrl;
 
-    @ApiModelProperty("驾意险保单地址")
-    private String jyxPolicyUrl;
+    @ApiModelProperty("驾意险列表")
+    @JsonProperty("jyx_info_list")
+    private List<JyxInfoListDTO> jyxInfoList;
+
+    @Data
+    @NoArgsConstructor
+    public static class JyxInfoListDTO implements Serializable {
+
+        private static final long serialVersionUID = -3291704768771057208L;
+
+        @ApiModelProperty("驾意险保单地址")
+        @JsonProperty("jyx_policy_url")
+        private String jyxPolicyUrl;
+
+        @ApiModelProperty("驾意险保单地址")
+        @JsonProperty("application")
+        private String application;
+    }
 
 
 }

+ 3 - 0
src/main/java/com/ydtech/modules/order/service/impl/InsCrawlerOrderServiceImpl.java

@@ -199,6 +199,9 @@ public class InsCrawlerOrderServiceImpl implements InsCrawlerOrderService {
         crawlerPolicyPrintVo.setJqxFlagUrl(gainCarInsPolicy(request.getJqxFlagUrl(), licensePlate + "-交强险标志.pdf", licensePlate));
         crawlerPolicyPrintVo.setJqxPolicyUrl(gainCarInsPolicy(request.getJqxPolicyUrl(), licensePlate + "-交强险保单.pdf", licensePlate));
         crawlerPolicyPrintVo.setSyxPolicyUrl(gainCarInsPolicy(request.getSyxPolicyUrl(), licensePlate + "-商业险保单.pdf", licensePlate));
+        crawlerPolicyPrintVo.getJyxInfoList().forEach(
+                x -> x.setJyxPolicyUrl(gainCarInsPolicy(request.getJyxPolicyUrl(), licensePlate + "-" + x.getApplication() + "-非车险保单.pdf", licensePlate))
+        );
         return HttpResult.ok(crawlerPolicyPrintVo);
     }