fix(接口自动化): SQL历史数据升级数据源处理

This commit is contained in:
fit2-zhao 2021-02-04 17:07:01 +08:00
parent 24b172af9f
commit bc5f317f15
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ public class HistoricalDataUpgradeService {
((MsJDBCSampler) element).setDataSourceId(dto.getDatabaseConfig().getId()); ((MsJDBCSampler) element).setDataSourceId(dto.getDatabaseConfig().getId());
((MsJDBCSampler) element).setDataSource(dto.getDatabaseConfig()); ((MsJDBCSampler) element).setDataSource(dto.getDatabaseConfig());
} }
if (CollectionUtils.isEmpty(request1.getVariables())) {
((MsJDBCSampler) element).setVariables(new ArrayList<>()); ((MsJDBCSampler) element).setVariables(new ArrayList<>());
}
element.setType("JDBCSampler"); element.setType("JDBCSampler");
} }
if (request instanceof TCPRequest) { if (request instanceof TCPRequest) {