فهرست منبع

修改python非车

wks 2 سال پیش
والد
کامیت
bad53dbfb1
1فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  1. 10 0
      src/main/java/com/ydtech/modules/order/entity/crawler/vo/CrawlerPolicyPrintVo.java

+ 10 - 0
src/main/java/com/ydtech/modules/order/entity/crawler/vo/CrawlerPolicyPrintVo.java

@@ -5,8 +5,10 @@ import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.NoArgsConstructor;
+import org.springframework.util.ObjectUtils;
 
 import java.io.Serializable;
+import java.util.Collections;
 import java.util.List;
 
 @Data
@@ -29,6 +31,14 @@ public class CrawlerPolicyPrintVo implements Serializable {
     @JsonProperty("jyx_info_list")
     private List<JyxInfoListDTO> jyxInfoList;
 
+
+    public List<JyxInfoListDTO> getJyxInfoList() {
+        if(ObjectUtils.isEmpty(jyxInfoList)){
+            return Collections.emptyList();
+        }
+        return jyxInfoList;
+    }
+
     @Data
     @NoArgsConstructor
     public static class JyxInfoListDTO implements Serializable {