refactor(接口测试): 接口导入重新调整,关闭版本管理,覆盖导入判断重复数据要排除自己

--bug=1020875--user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020875
This commit is contained in:
guoyuqi 2022-12-19 18:02:42 +08:00 committed by xiaomeinvG
parent 6d9e08172f
commit 70831ef161
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ public class ApiDefinitionImportUtilService {
} }
if (apiDefinition.getLatest()) { if (apiDefinition.getLatest()) {
for (ApiDefinitionWithBLOBs apiDefinitionWithBLOBs : repeatList) { for (ApiDefinitionWithBLOBs apiDefinitionWithBLOBs : repeatList) {
if (apiDefinitionWithBLOBs.getLatest()) { if (apiDefinitionWithBLOBs.getLatest() && !apiDefinition.getId().equalsIgnoreCase(apiDefinitionWithBLOBs.getId())) {
apiDefinitionWithBLOBs.setLatest(false); apiDefinitionWithBLOBs.setLatest(false);
} }
batchMapper.updateByPrimaryKey(apiDefinitionWithBLOBs); batchMapper.updateByPrimaryKey(apiDefinitionWithBLOBs);