diff --git a/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java b/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java index cb8733ac..cc69ddbc 100644 --- a/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java +++ b/src/main/java/com/glxp/api/service/sync/SpsSyncDownloadService.java @@ -275,7 +275,9 @@ public class SpsSyncDownloadService { .updateTime(cn.hutool.core.date.DateUtil.date()) .startTime(now) .build(); - createFileMethod.apply(applicationContext.getBean(this.getClass())); + if (syncTime != null) { + createFileMethod.apply(applicationContext.getBean(this.getClass())); + } basicExportService.save(exportStatus); } else if (exportStatus.getStatus().equals(BasicExportStatusEnum.WAIT_BUILT.getCode())) {//文件待生成 createFileMethod.apply(applicationContext.getBean(this.getClass()));