From e667a04fdb0519d74019daf341238d06b8709a82 Mon Sep 17 00:00:00 2001 From: panbaolin <13071138970@163.com> Date: Thu, 18 Dec 2025 10:31:11 +0800 Subject: [PATCH] =?UTF-8?q?t1h=20=E4=BF=AE=E6=94=B9=20hky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/jeecg/job/DownloadT1hJob.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jeecg-module-weather/src/main/java/org/jeecg/job/DownloadT1hJob.java b/jeecg-module-weather/src/main/java/org/jeecg/job/DownloadT1hJob.java index a228cc8..697e5aa 100644 --- a/jeecg-module-weather/src/main/java/org/jeecg/job/DownloadT1hJob.java +++ b/jeecg-module-weather/src/main/java/org/jeecg/job/DownloadT1hJob.java @@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.codec.digest.DigestUtils; import org.jeecg.common.constant.enums.T1hFilePrefixEnum; import org.jeecg.common.constant.enums.WeatherDataSourceEnum; +import org.jeecg.common.constant.enums.WeatherFileSuffixEnum; import org.jeecg.common.properties.SystemStorageProperties; import org.jeecg.common.properties.T1hDownloadProperties; import org.jeecg.common.util.ExecutePyUtils; @@ -189,6 +190,8 @@ public class DownloadT1hJob { String folderPath = getFullPath(systemStorageProperties.getT1h(), baseTime); try (Stream paths = Files.list(Paths.get(folderPath))) { return paths.filter(Files::isRegularFile) + .filter(Files::isRegularFile) + .filter(path -> path.toString().toLowerCase().endsWith(WeatherFileSuffixEnum.GRIB2.getValue())) .map(Path::toFile) .map(file -> extractFileInfo(file, baseTime)) .collect(Collectors.toList());