新增MySQL和pg数据库的同步

This commit is contained in:
2025-08-27 17:17:47 +08:00
parent a0b51f56a5
commit fb465898f5

View File

@@ -336,6 +336,8 @@ public class taskDbSync {
errorMsg = e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName();
System.err.println("同步数据失败: " + errorMsg);
}
task.setLastSyncTime(LocalDateTime.now());
syncTaskService.updateById(task);
DbConfig sourceDbConfig = dbConfigService.getById(task.getSourceDbId());
DbConfig targetDbConfig = dbConfigService.getById(task.getTargetDbId());
LocalDateTime endTime = LocalDateTime.now();