mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-27 14:11:33 +00:00
mongo数据同步
This commit is contained in:
@@ -79,12 +79,6 @@ public class AssignmentService {
|
||||
"不支持目的端数据源为远程服务器上的SQLite或内存方式下的SQLite");
|
||||
}
|
||||
}
|
||||
Long sourceConnectionId = assignmentConfigEntity.getSourceConnectionId();
|
||||
DatabaseConnectionEntity sourceEntity = databaseConnectionDAO.getById(sourceConnectionId);
|
||||
if (ProductTypeEnum.MONGODB == sourceEntity.getType()) {
|
||||
throw new DbswitchException(ResultCode.ERROR_INVALID_ASSIGNMENT_CONFIG,
|
||||
"不支持源端数据源为MongoDB数据库");
|
||||
}
|
||||
|
||||
return ConverterFactory.getConverter(AssignmentInfoConverter.class)
|
||||
.convert(assignmentTaskDAO.getById(assignment.getId()));
|
||||
@@ -120,12 +114,6 @@ public class AssignmentService {
|
||||
"不支持目的端数据源为远程服务器上的SQLite或内存方式下的SQLite");
|
||||
}
|
||||
}
|
||||
Long sourceConnectionId = assignmentConfigEntity.getSourceConnectionId();
|
||||
DatabaseConnectionEntity sourceEntity = databaseConnectionDAO.getById(sourceConnectionId);
|
||||
if (ProductTypeEnum.MONGODB == sourceEntity.getType()) {
|
||||
throw new DbswitchException(ResultCode.ERROR_INVALID_ASSIGNMENT_CONFIG,
|
||||
"不支持源端数据源为MongoDB数据库");
|
||||
}
|
||||
}
|
||||
|
||||
public PageResult<AssignmentInfoResponse> listAll(String searchText, Integer page, Integer size) {
|
||||
|
Reference in New Issue
Block a user