fix(场景导入): 修复覆盖导入场景没有order的问题

--bug=1009819 --user=刘瑞斌 【接口测试】导入jmx场景选择覆盖报错 https://www.tapd.cn/55049933/s/1095972
This commit is contained in:
CaptainB 2022-01-22 10:51:40 +08:00 committed by fit2-zhao
parent ece7785fc0
commit 6020d5ffc9
1 changed files with 1 additions and 0 deletions

View File

@ -1222,6 +1222,7 @@ public class ApiAutomationService {
scenarioWithBLOBs.setId(existScenario.getId());
scenarioWithBLOBs.setRefId(existScenario.getRefId());
scenarioWithBLOBs.setVersionId(apiTestImportRequest.getUpdateVersionId());
scenarioWithBLOBs.setOrder(existScenario.getOrder());
scenarioWithBLOBs.setNum(existScenario.getNum());
List<ApiMethodUrlDTO> useUrl = this.parseUrl(scenarioWithBLOBs);
scenarioWithBLOBs.setUseUrl(JSONArray.toJSONString(useUrl));