forked from github/dataease
Merge pull request #10959 from dataease/pr@dev-v2@fixDS
fix: 数据导出中心漏掉sql
This commit is contained in:
commit
fd980a98c6
@ -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");
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
INSERT INTO `core_sys_setting` (`id`, `pkey`, `pval`, `type`, `sort`) VALUES (10, 'basic.exportFileLiveTime', '30', 'text', 2);
|
Loading…
Reference in New Issue
Block a user