fix(接口测试): 导入场景补充接口用例算法优化

This commit is contained in:
baiqi 2024-10-30 09:44:34 +08:00 committed by Craftsman
parent ba00ddf70b
commit e266fb1adb

View File

@ -1024,7 +1024,6 @@ public class ApiScenarioDataTransferService {
if (existenceApiCaseNumMap.containsKey(apiTestCaseDTO.getNum())) {
returnResource.putApiTestCase(apiTestCaseDTO.getId(), existenceApiCaseNumMap.get(apiTestCaseDTO.getNum()));
} else {
apiTestCaseDTO.setProjectId(targetProjectId);
returnResource.putApiTestCase(apiTestCaseDTO.getId(), apiTestCaseDTO);
apiTestCaseDTO.setId(IDGenerator.nextStr());
apiTestCaseDTO.setName(apiTestCaseDTO.getName() + "_" + System.currentTimeMillis());