fix: 创建数据集时数据源状态不正确

This commit is contained in:
taojinlong 2024-06-26 15:58:19 +08:00
parent ae0d9387b3
commit cb2025164e

View File

@ -688,9 +688,7 @@ public class DatasourceServer implements DatasourceApi {
wrapper.eq("id", coreDatasource.getId());
CoreDatasource originData = datasourceMapper.selectById(coreDatasource.getId());
String originStatus = originData.getStatus();
if (!StringUtils.equals(coreDatasource.getStatus(), originStatus)) {
dataSourceManage.innerEditStatus(coreDatasource);
}
dataSourceManage.innerEditStatus(coreDatasource);
}
datasourceDTO.setConfiguration("");
return datasourceDTO;