新增MySQL和pg数据库的同步
This commit is contained in:
@@ -336,6 +336,8 @@ public class taskDbSync {
|
|||||||
errorMsg = e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName();
|
errorMsg = e.getMessage() != null ? e.getMessage() : e.getClass().getSimpleName();
|
||||||
System.err.println("同步数据失败: " + errorMsg);
|
System.err.println("同步数据失败: " + errorMsg);
|
||||||
}
|
}
|
||||||
|
task.setLastSyncTime(LocalDateTime.now());
|
||||||
|
syncTaskService.updateById(task);
|
||||||
DbConfig sourceDbConfig = dbConfigService.getById(task.getSourceDbId());
|
DbConfig sourceDbConfig = dbConfigService.getById(task.getSourceDbId());
|
||||||
DbConfig targetDbConfig = dbConfigService.getById(task.getTargetDbId());
|
DbConfig targetDbConfig = dbConfigService.getById(task.getTargetDbId());
|
||||||
LocalDateTime endTime = LocalDateTime.now();
|
LocalDateTime endTime = LocalDateTime.now();
|
||||||
|
|||||||
Reference in New Issue
Block a user