gongfuzhu há 9 meses atrás
pai
commit
fafdb018c4

+ 4 - 0
SpringBatchServiceServer/src/main/java/com/zswl/cloud/springBtach/server/core/publish/PetrolStationPublish.java

@@ -76,6 +76,10 @@ public class PetrolStationPublish implements ProductPublish {
 
                     collect = xiaoJuStoreResultContent.getContent().getItemInfoList().stream().map(itemPriceInfo -> itemPriceInfo.getVipPrice()).collect(Collectors.toList());
                 }
+                if (collect.isEmpty()) {
+                    return;
+                }
+
                 Integer min = Collections.min(collect);
                 LocationModel locationModel = new LocationModel();
                 locationModel.setLongitude(it.getLon());