Merge pull request #10959 from dataease/pr@dev-v2@fixDS

fix: 数据导出中心漏掉sql
This commit is contained in:
taojinlong 2024-07-15 15:49:40 +08:00 committed by GitHub
commit fd980a98c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
package io.dataease.job.schedule;
import io.dataease.exportCenter.manage.ExportCenterManage;
import io.dataease.utils.LogUtil;
import jakarta.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
public class CleanScheduler {
@Resource(name = "exportCenterManage")
private ExportCenterManage exportCenterManage;
@Scheduled(cron = "0 0 0 * * ?")
public void clean() {
LogUtil.info("Start to execute export file cleaner ...");
exportCenterManage.cleanLog();
LogUtil.info("Execute export file cleaner success");
}
}

View File

@ -0,0 +1 @@
INSERT INTO `core_sys_setting` (`id`, `pkey`, `pval`, `type`, `sort`) VALUES (10, 'basic.exportFileLiveTime', '30', 'text', 2);