Merge pull request #12365 from dataease/pr@dev-v2@fixdscheck

fix: 重命名数据源校验失败
This commit is contained in:
taojinlong 2024-09-23 09:58:27 +08:00 committed by GitHub
commit cac6b54457
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -208,6 +208,7 @@ public class DatasourceServer implements DatasourceApi {
}
CoreDatasource datasource = datasourceMapper.selectById(dataSourceDTO.getId());
datasource.setName(dataSourceDTO.getName());
dataSourceDTO.setPid(datasource.getPid());
dataSourceManage.checkName(dataSourceDTO);
dataSourceManage.innerEdit(datasource);
return dataSourceDTO;