refactor(接口测试): 版本导入重构覆盖模块加refId的值

--bug=1021045--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021045
This commit is contained in:
guoyuqi 2022-12-20 19:04:02 +08:00 committed by xiaomeinvG
parent 322416d1da
commit 09bc52347b
1 changed files with 1 additions and 0 deletions

View File

@ -532,6 +532,7 @@ public class ApiDefinitionImportUtilService {
updateApiList.add(definitionWithBLOBs); updateApiList.add(definitionWithBLOBs);
} }
} }
apiDefinitionWithBLOBs.setRefId(latestApi.getRefId());
apiDefinitionWithBLOBs.setVersionId("trash"); apiDefinitionWithBLOBs.setVersionId("trash");
} else { } else {
addNewVersionApi(apiDefinitionWithBLOBs, latestApi, "update"); addNewVersionApi(apiDefinitionWithBLOBs, latestApi, "update");