fix(接口测试): 修复开启url可重复,导入接口会重复添加新接口的缺陷

--bug=1025305 --user=王孝刚
【接口测试】github#23542,接口定义导入swagger文件,导入模式选择覆盖或者不覆盖都会新增接口
https://www.tapd.cn/55049933/s/1361359
This commit is contained in:
wxg0103 2023-04-11 15:23:15 +08:00 committed by xiaomeinvG
parent a0115f2b2a
commit f6ec5453f4
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ public class ApiDefinitionImportUtilService {
if (StringUtils.isBlank(request.getModuleId())) {
request.setModuleId(null);
}
List<ApiDefinitionWithBLOBs> repeatApiDefinitionWithBLOBs = extApiDefinitionMapper.selectRepeatByBLOBsSameUrl(optionData, projectId, request.getModuleId());
List<ApiDefinitionWithBLOBs> repeatApiDefinitionWithBLOBs = extApiDefinitionMapper.selectRepeatByBLOBsSameUrl(optionData, projectId, null);
//如果系统内没有重复数据要把文件重复的数据改成接口的case
if (CollectionUtils.isEmpty(repeatApiDefinitionWithBLOBs)) {