更新文件状态
This commit is contained in:
parent
8df5201079
commit
6dd0c2939a
|
|
@ -277,7 +277,7 @@ public class BackupTask {
|
|||
}
|
||||
|
||||
// 每 2 分钟执行一次
|
||||
@Scheduled(cron = "0 */2 * * * ?")
|
||||
@Scheduled(cron = "0 0 4 * * ?")
|
||||
public void updateFileStatus() {
|
||||
DateTime twoMinutesAgo = DateUtil.offsetMinute(DateUtil.date(), -2);
|
||||
edFileInfoMapper.update(Wrappers.<EdFileInfo>lambdaUpdate().set(EdFileInfo::getDataStatus, EleDataStatusEnum.PUBLISHED.code).le(EdFileInfo::getUpdatedTime, twoMinutesAgo));
|
||||
|
|
|
|||
Loading…
Reference in New Issue