13693261870
2025-07-07 ecee75f72d6e14ef15e31c3c6da22601a3658abb
se-system/src/main/java/com/terra/system/config/ScheduleConfig.java
@@ -100,27 +100,4 @@
            log.error(ex.getMessage(), ex);
        }
    }
    /**
     * 同步附件
     */
    @Scheduled(fixedRate = 30 * 1000)
    public void syncAttaches() {
        try {
            List<FmeLogEntity> list = attachService.selectFmeLogs();
            if (isBusy || null == list || list.isEmpty()) {
                return;
            }
            isBusy = true;
            for (FmeLogEntity entity : list) {
                attachService.syncAttaches(entity);
                attachService.updateFmeLog(entity.getId());
            }
            isBusy = false;
        } catch (Exception ex) {
            isBusy = false;
            log.error(ex.getMessage(), ex);
        }
    }
}