更新文件状态

This commit is contained in:
chenxudong 2025-10-14 13:55:04 +08:00
parent 8df5201079
commit 6dd0c2939a
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ public class BackupTask {
} }
// 2 分钟执行一次 // 2 分钟执行一次
@Scheduled(cron = "0 */2 * * * ?") @Scheduled(cron = "0 0 4 * * ?")
public void updateFileStatus() { public void updateFileStatus() {
DateTime twoMinutesAgo = DateUtil.offsetMinute(DateUtil.date(), -2); DateTime twoMinutesAgo = DateUtil.offsetMinute(DateUtil.date(), -2);
edFileInfoMapper.update(Wrappers.<EdFileInfo>lambdaUpdate().set(EdFileInfo::getDataStatus, EleDataStatusEnum.PUBLISHED.code).le(EdFileInfo::getUpdatedTime, twoMinutesAgo)); edFileInfoMapper.update(Wrappers.<EdFileInfo>lambdaUpdate().set(EdFileInfo::getDataStatus, EleDataStatusEnum.PUBLISHED.code).le(EdFileInfo::getUpdatedTime, twoMinutesAgo));