refactor(接口测试): 接口导入重新调整,关闭版本管理,覆盖导入判断重复数据要排除自己
--bug=1020875--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020875
This commit is contained in:
parent
6d9e08172f
commit
70831ef161
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue