diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioDataTransferService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioDataTransferService.java index 807320aa18..413ce82dd8 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioDataTransferService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/ApiScenarioDataTransferService.java @@ -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());