Dev fix update sources in修复更新数据源之后,可能另外一个机器上部署的服务没更新 #2355fo #2356
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
因为datart可能多机器部署,目前接口更新数据源的链接信息是只更新有调用更新数据源接口的那个服务的,在多个服务多机器部署的情况下,可能另外一个服务就没更新了,
所以这里我每次执行sql之前先简单对比目前缓存了的数据源和数据库中的数据源信息是否一样,不一样则更新,这里先处理jdbc的数据源了,因为大部分报表都是jdbc的数据源
put /sources
修复更新数据源之后,可能另外一个机器上部署的服务没更新