fix(接口自动化): 修复数据迁移,sql类型数据源丢失问题
This commit is contained in:
parent
d1c179fc5c
commit
4dfaa1c463
|
@ -122,9 +122,8 @@ public class HistoricalDataUpgradeService {
|
|||
element.setType("DubboSampler");
|
||||
}
|
||||
if (request instanceof SqlRequest) {
|
||||
element = new MsJDBCSampler();
|
||||
SqlRequest request1 = (SqlRequest) request;
|
||||
BeanUtils.copyBean(element, request1);
|
||||
String requestJson = JSON.toJSONString(request);
|
||||
element = JSON.parseObject(requestJson, MsJDBCSampler.class);
|
||||
element.setType("JDBCSampler");
|
||||
}
|
||||
if (request instanceof TCPRequest) {
|
||||
|
|
Loading…
Reference in New Issue