Skip to content
Snippets Groups Projects
Commit 735c90a6 authored by 黄晋's avatar 黄晋
Browse files

每1分钟运行一次

parent 685413e2
Branches
No related merge requests found
......@@ -46,14 +46,14 @@ public class PlanServiceImpl implements PlanService {
private MongoTemplate mongoArchiveTemplate;
@Override
@Scheduled(cron ="0 0/5 * * * ?")
@Scheduled(cron ="0 0/1 * * * ?")
public void synchronizePlanTask() {
log.info("--------------synchronizePlanTask start----------");
String nowTime = parseTimeFromDateTime (LocalDateTime.now());
SynchronizeTime synchronizeTime = findSynchronizeTime();
String lastSynchronizeTime = "2024-08-28 09:53:24";
String lastSynchronizeTime = null;
if (Objects.nonNull(synchronizeTime)) {
lastSynchronizeTime = synchronizeTime.getPlan();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment