支持es写入

This commit is contained in:
inrgihc
2023-12-10 19:24:30 +08:00
parent 7b920bb733
commit a5760e1be1
18 changed files with 495 additions and 4 deletions

View File

@@ -80,6 +80,13 @@ public class AssignmentService {
}
}
Long sourceConnectionId = assignmentConfigEntity.getSourceConnectionId();
DatabaseConnectionEntity sourceEntity = databaseConnectionDAO.getById(sourceConnectionId);
if (ProductTypeEnum.ELASTICSEARCH == sourceEntity.getType()) {
throw new DbswitchException(ResultCode.ERROR_INVALID_ASSIGNMENT_CONFIG,
"不支持源端数据源为ElasticSearch类型");
}
return ConverterFactory.getConverter(AssignmentInfoConverter.class)
.convert(assignmentTaskDAO.getById(assignment.getId()));
}